Fix last changes in editfns.c and intervals.c.
[bpt/emacs.git] / src / ChangeLog
1 2010-09-23 Eli Zaretskii <eliz@gnu.org>
2
3 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4
5 * lisp.h (clip_to_bounds): Adjust prototype.
6
7 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
8
9 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
10
11 * lisp.h: Change the definition of all marker.c functions that
12 take and return buffer stuff to be EMACS_INT instead of int.
13
14 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
15 (buf_charpos_to_bytepos, bytepos_to_charpos)
16 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
17 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
18 for all buffer positions.
19
20 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
21
22 * intervals.c (traverse_intervals, rotate_right, rotate_left)
23 (split_interval_right, find_interval, next_interval)
24 (delete_node, delete_interval, interval_deletion_adjustment)
25 (adjust_intervals_for_deletion, merge_interval_right)
26 (merge_interval_left, graft_intervals_into_buffer)
27 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
28
29 * intervals.h (traverse_intervals): Update prototype.
30
31 2010-09-23 Eli Zaretskii <eliz@gnu.org>
32
33 * indent.c (compute_motion): Use EMACS_INT for arguments to
34 region_cache_forward.
35
36 * region-cache.c (struct boundary, struct region_cache): Use
37 EMACS_INT for positions.
38 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
39 (delete_cache_boundaries, set_cache_region)
40 (invalidate_region_cache, know_region_cache)
41 (region_cache_forward, region_cache_backward, pp_cache): Use
42 EMACS_INT for buffer positions.
43
44 * region-cache.h (know_region_cache, invalidate_region_cache)
45 (region_cache_forward, region_cache_backward): Adjust prototypes.
46
47 * search.c (string_match_1, fast_c_string_match_ignore_case)
48 (looking_at_1, scan_buffer, scan_newline)
49 (find_next_newline_no_quit, find_before_next_newline)
50 (search_command, trivial_regexp_p, search_buffer, simple_search)
51 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
52 and string positions and length.
53
54 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
55 (find_before_next_newline): Adjust prototypes.
56
57 * editfns.c (transpose_markers, update_buffer_properties)
58 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
59 (get_pos_property, Fconstrain_to_field)
60 (Fline_beginning_position, Fline_end_position, Fprevious_char)
61 (Fchar_after, Fchar_before, Finsert_char)
62 (Finsert_buffer_substring, Fcompare_buffer_substrings)
63 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
64 EMACS_INT for buffer and string position variables.
65 (Finsert_char): Protect against too large insertions.
66
67 * lisp.h (clip_to_bounds): Adjust prototype.
68
69 * intervals.c (traverse_intervals, rotate_right, rotate_left)
70 (balance_an_interval, split_interval_right, split_interval_left)
71 (find_interval, next_interval, update_interval)
72 (adjust_intervals_for_insertion, delete_node, delete_interval)
73 (interval_deletion_adjustment, adjust_intervals_for_deletion)
74 (offset_intervals, merge_interval_right, merge_interval_left)
75 (graft_intervals_into_buffer, adjust_for_invis_intang)
76 (move_if_not_intangible, get_local_map, copy_intervals)
77 (copy_intervals_to_string, compare_string_intervals)
78 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
79 and for interval tree size.
80
81 * intervals.h (traverse_intervals, split_interval_right)
82 (split_interval_left, find_interval, offset_intervals)
83 (graft_intervals_into_buffer, copy_intervals)
84 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
85 (update_interval): Adjust prototypes.
86
87 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
88 Use EMACS_INT for buffer position variables and arguments.
89
90 * composite.c (get_composition_id, find_composition)
91 (run_composition_function, compose_text)
92 (composition_gstring_width, autocmp_chars)
93 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
94 for buffer positions and string length variables and arguments.
95
96 * composite.h (get_composition_id, find_composition, compose_text)
97 (composition_gstring_width): Adjust prototypes.
98
99 * editfns.c (Fformat): Use EMACS_INT for string size variables.
100
101 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
102 EMACS_INT for string positions.
103
104 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
105 position arguments.
106
107 * intervals.h (get_property_and_range): Adjust prototype.
108
109 * character.c (parse_str_as_multibyte, str_as_multibyte)
110 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
111 (string_count_byte8, string_escape_byte8, c_string_width)
112 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
113 EMACS_INT for string length variables and arguments.
114
115 * character.h (parse_str_as_multibyte, str_as_multibyte)
116 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
117 (c_string_width, strwidth, lisp_string_width): Adjust
118 prototypes.
119
120 * font.c (font_intern_prop): Use EMACS_INT for string length
121 variables.
122
123 * font.c (font_intern_prop): Use EMACS_INT for string length
124 variables.
125
126 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
127 variables.
128
129 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
130 (Fmake_string): Protect against too large strings.
131 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
132 (live_misc_p): Use ptrdiff_t instead of int for pointer
133 differences.
134 (string_bytes, check_sblock, check_string_free_list)
135 (allocate_string_data, compact_small_strings, Fmake_string)
136 (Fmake_bool_vector, make_string, make_unibyte_string)
137 (make_multibyte_string, make_string_from_bytes)
138 (make_specified_string_string, Fmake_list, Fmake_vector): Use
139 EMACS_INT for string length variables and arguments.
140 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
141 (Fpurecopy): Use EMACS_INT for string size.
142 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
143 for vector size.
144
145 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
146 (make_string_from_bytes, make_specified_string_string)
147 (make_pure_string, string_bytes, check_point_in_composition):
148 Adjust prototypes.
149
150 2010-09-22 Eli Zaretskii <eliz@gnu.org>
151
152 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
153 (check_translation): Use EMACS_INT for buffer positions and
154 length.
155
156 * undo.c (record_marker_adjustment, record_delete)
157 (record_change, record_point, record_insert)
158 (record_property_change, Fprimitive_undo): Use EMACS_INT for
159 buffer positions.
160
161 * lisp.h (record_marker_adjustment, record_delete)
162 (record_change, record_point, record_insert)
163 (record_property_change, Fprimitive_undo): Adjust prototypes.
164
165 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
166 Eli Zaretskii <eliz@gnu.org>
167
168 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
169
170 2010-09-22 Eli Zaretskii <eliz@gnu.org>
171
172 * minibuf.c (Fminibuffer_contents)
173 (Fminibuffer_contents_no_properties)
174 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
175 positions.
176
177 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
178 mark.
179
180 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
181 (allocate_string_data): Accept EMACS_INT for string length.
182
183 * editfns.c (Ffield_string, Ffield_string_no_properties)
184 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
185 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
186 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
187 (Ffield_end): Use EMACS_INT for buffer positions.
188
189 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
190 point with mark.
191
192 * lisp.h (allocate_string_data, make_uninit_string)
193 (make_uninit_multibyte_string, make_buffer_string)
194 (make_buffer_string_both): Adjust prototypes.
195
196 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
197
198 * xml.c: Switch to GNU indentation.
199 (make_dom): Change parse tree format to match xml.el.
200 (Fxml_parse_html_string_internal): Rename from html-parse-string.
201 (Fxml_parse_string_internal): Rename from xml-parse-string.
202
203 2010-09-22 Kenichi Handa <handa@m17n.org>
204
205 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
206 only if we are not at a composition.
207 (set_iterator_to_next): Give it->end_charpos to
208 composition_compute_stop_pos.
209 (set_iterator_to_next, next_element_from_buffer): Likewise.
210
211 * dispnew.c (buffer_posn_from_coords): Fix position when the
212 current display element is a grapheme cluster in bidi-reordered
213 region.
214
215 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
216
217 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
218 the regions may overlap.
219
220 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
221
222 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
223
224 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
225
226 * emacs.c: Do not include sys/ioctl.h, not needed.
227
228 * doprnt.c: Do not include stdlib.h, config.h does it.
229 Move #include before macro definition.
230
231 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
232
233 * Makefile.in (temacs): Link using $(CC) not $(LD).
234 (LD_FIRSTFLAG): Define using autoconf.
235 (LD): Remove.
236
237 Remove HAVE_TERMIOS definitions.
238 * s/usg5-4-common.h (HAVE_TERMIOS):
239 * s/template.h (HAVE_TERMIOS):
240 * s/gnu-linux.h (HAVE_TERMIOS):
241 * s/darwin.h (HAVE_TERMIOS):
242 * s/cygwin.h (HAVE_TERMIOS):
243 * s/bsd-common.h (HAVE_TERMIOS):
244 * s/aix4-2.h (HAVE_TERMIOS):
245 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
246 defined on all non-MS platforms.
247 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
248
249 * xterm.c (xt_action_hook): Use const.
250
251 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
252
253 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
254 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
255 (gethostname) [!HAVE_SOCKETS]: Remove.
256 (SOCK_REPLACE_HANDLE): Remove macro.
257 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
258 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
259 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
260 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
261
262 2010-09-18 Eli Zaretskii <eliz@gnu.org>
263
264 * deps.mk (xml.o): Add dependencies.
265
266 * xdisp.c (Fcurrent_bidi_paragraph_direction):
267 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
268
269 * bidi.c (bidi_paragraph_init): Accept an additional argument
270 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
271 search back until a paragraph with a strong directional character
272 is found, and use that to determine paragraph's base direction.
273
274 * dispextern.h (bidi_paragraph_init): Update prototype.
275
276 2010-09-17 Eli Zaretskii <eliz@gnu.org>
277
278 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
279 of w32api >= 3.15. (Bug#6989)
280
281 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
282
283 * process.c (wait_reading_process_output): Don't message about
284 accept-process-output unless the time limit really is zero.
285
286 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
287
288 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
289 int/Lisp_Object mixup).
290
291 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
292
293 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
294 not HELP.
295
296 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
297
298 * frame.c (Ftool_bar_pixel_width): New function to expose tool
299 bar's pixel width to Lisp (Bug#7048).
300
301 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
302
303 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
304
305 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
306
307 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
308 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
309
310 2010-09-17 Kenichi Handa <handa@m17n.org>
311
312 * ftfont.c (ftfont_check_otf): Fix previous change.
313
314 2010-09-14 Kenichi Handa <handa@m17n.org>
315
316 * ftfont.c (ftfont_check_otf): Fix the case of checking just
317 existence of GSUB or GPOS.
318
319 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
320
321 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
322
323 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
324
325 * xml.c (parse_buffer): Renamed to parse_string(), since that's
326 what it does.
327 (parse_string): Return nil when the document can't be parsed.
328
329 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
330
331 * xterm.c (get_current_vm_state): New function.
332 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
333 want_fullscreen so set_wm_state calls are few (Bug#7013).
334 (x_handle_net_wm_state): Move code to get_current_vm_state and
335 call that function.
336
337 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
338
339 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
340
341 2010-09-14 Kenichi Handa <handa@m17n.org>
342
343 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
344 we may use designation or locking-shift.
345
346 2010-09-14 Kenichi Handa <handa@m17n.org>
347
348 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
349 sequence when the source is multibyte.
350
351 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
352
353 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
354 Don't make first argument optional. Doc fix.
355
356 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
357
358 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
359 parameters for the doc string.
360
361 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
362
363 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
364
365 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
366
367 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
368 (syms_of_fns): Don't defsubr Sy_or_n_p.
369 * lisp.h: Don't declare Fy_or_n_p.
370 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
371
372 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
373
374 * xml.c (Fxml_parse_buffer): New function to parse XML files.
375
376 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
377
378 * xml.c: New file.
379 (Fhtml_parse_buffer): New function to interface to the libxml2
380 html parsing function.
381
382 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
383
384 * biditype.h: Regenerate.
385
386 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
387
388 * nsimage.m (ns_load_image): Check argument types.
389
390 * image.c: Remove all uses of gcpro.
391 (xpm_load): Check all lisp types.
392 (pbm_load): Likewise.
393 (png_load): Likewise.
394 (jpeg_load): Likewise.
395 (tiff_load): Likewise.
396 (gif_load): Likewise.
397 (imagemagick_load_image): Likewise.
398 (imagemagick_load): Likewise.
399 (svg_load): Likewise.
400 (gs_load): Likewise.
401
402 2010-09-04 Eli Zaretskii <eliz@gnu.org>
403
404 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
405 try to reorder grapheme clusters, since LGSTRING should always
406 hold them in the logical order.
407 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
408 return glyph codes in the logical order.
409
410 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
411
412 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
413 (imagemagick_load_image): Fix type mismatch.
414 (Fimagemagick_types): Likewise. Doc fix.
415
416 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
417
418 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
419
420 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
421
422 * xselect.c: Remove declaration of cut-buffer objects and functions.
423 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
424 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
425 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
426 (Fx_rotate_cut_buffers_internal): Remove.
427 (syms_of_xselect): Remove defsubr of above.
428 Remove intern of QCUT_BUFFERn.
429
430 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
431
432 * cmds.c (Vblink_paren_function): Remove.
433 (internal_self_insert): Make it insert N chars at a time.
434 Don't call blink-paren-function.
435 (Fself_insert_command): Adjust accordingly.
436 (syms_of_cmds): Don't declare blink-paren-function.
437
438 2010-08-31 Kenichi Handa <handa@m17n.org>
439
440 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
441 characters.
442
443 * term.c (encode_terminal_code): Fix the previous change.
444 (produce_glyphs): Don't set it->char_to_display here.
445 Don't handle unibyte-display-via-language-environment here.
446 (produce_special_glyphs): Set temp_it.char_to_display before
447 calling produce_glyphs.
448
449 * xdisp.c (get_next_display_element): Set it->char_to_display
450 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
451 characters.
452 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
453 calling PRODUCE_GLYPHS.
454 (append_space_for_newline): Save and store it->char_to_display.
455 Set it->char_to_display before calling PRODUCE_GLYPHS.
456 (extend_face_to_end_of_line): Set it->char_to_display before
457 calling PRODUCE_GLYPHS.
458 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
459 character to its byte value.
460 (get_char_glyph_code): New function.
461 (produce_stretch_glyph): Set it2.char_to_display too before
462 calling x_produce_glyphs.
463 (x_produce_glyphs): Simplify by using the same code for ASCII and
464 non-ASCII characters. Don't set it->char_to_display here.
465 Don't handle unibyte-display-via-language-environment here. For a
466 character of no glyph, use font->space_width instead of FONT_WIDTH.
467
468 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
469
470 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
471
472 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
473
474 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
475
476 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
477
478 * marker.c (Fcopy_marker): Make the first arg optional.
479
480 2010-08-30 Kenichi Handa <handa@m17n.org>
481
482 * composite.c (composition_update_it): Fix computing of
483 cmp_it->width.
484
485 2010-08-29 Kenichi Handa <handa@m17n.org>
486
487 * term.c (encode_terminal_code): Encode byte chars to the
488 corresponding bytes.
489
490 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
491
492 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
493
494 2010-08-26 Kenichi Handa <handa@m17n.org>
495
496 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
497 on calling composition_compute_stop_pos.
498
499 2010-08-25 Kenichi Handa <handa@m17n.org>
500
501 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
502 :otf.
503
504 * composite.c (composition_compute_stop_pos): Don't break
505 composition at PT.
506 (composition_reseat_it): Likewise. Fix calculation of character
507 position starting a composition.
508 (Fcomposition_get_gstring): Don't limit the number of components
509 for automatic composition.
510
511 2010-08-25 Kenichi Handa <handa@m17n.org>
512
513 * composite.c (composition_compute_stop_pos): In forward search,
514 pay attention to the possibility that some character after ENDPOS
515 will be composed with charactrs before ENDPOS.
516
517 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
518
519 * keyboard.c (command_loop_1): Don't clobber primary selection
520 during handle-switch-frame (Bug#6872).
521
522 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
523
524 * dbusbind.c: Accept UNIX domain sockets as bus address.
525 (Fdbus_close_bus): New function.
526 (Vdbus_registered_buses): New variable.
527 (xd_initialize): Implement string as bus address.
528 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
529 (Fdbus_get_unique_name, Fdbus_call_method)
530 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
531 (Fdbus_method_error_internal, Fdbus_send_signal)
532 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
533 check. This is done in xd_initialize_bus. Adapt doc string, if
534 necessary.
535 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
536 Vdbus_registered_buses.
537 (Vdbus_registered_objects_table): Create hash.
538
539 2010-08-22 Juri Linkov <juri@jurta.org>
540
541 * keyboard.c (Fexecute_extended_command): Move reading a command name
542 with `completing-read' to a new Elisp function `read-extended-command'.
543 Call it to read a command to `function' (bug#5364, bug#5214).
544
545 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
546
547 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
548
549 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
550
551 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
552 instead of SAFE_ALLOCA.
553
554 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
555
556 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
557 (Bug#6214).
558
559 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
560
561 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
562
563 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
564
565 * doc.c (Fsnarf_documentation): Initialize skip_file before
566 build-files test.
567
568 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
569
570 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
571 New definitions.
572 (HAVE_TERMIO): Remove.
573
574 2010-08-22 Eli Zaretskii <eliz@gnu.org>
575
576 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
577
578 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
579 for w32.
580
581 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
582 it's done in nt/config.nt.
583
584 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
585
586 * unexcoff.c (report_error, make_hdr, write_segment)
587 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
588 Convert argument lists and prototypes to ANSI C.
589 (make_hdr, write_segment): Remove unused variables.
590 (unexec): Remove commented-out line. Initialize `new' to shut up
591 compiler warnings.
592
593 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
594
595 Simplify termio code.
596 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
597 HAVE_TERMIO code is obsolete.
598 Replace HAVE_TERMIOS conditionals with !DOS_NT.
599 * systty.h: Do not define HAVE_TCATTR.
600 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
601 Do not define EMACS_HAVE_TTY_PGRP. Only define
602 EMACS_GET_TTY_PGRP for !DOS_NT.
603 * sysdep.c: Include sysselect.h unconditionally. Do not include
604 sys/ioctl.h and termios.h, systty.h does it. Use
605 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
606 (init_baud_rate): Remove HAVE_TERMIO code.
607 (child_setup_tty): Remove HAVE_TERMIO code.
608 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
609 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
610 (new_ltchars, new_tchars): Remove, unused.
611 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
612 code. Remove special casing for __mips__, it was a no-op. Remove
613 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
614 (init_sys_modes): Remove HPUX special case.
615 * process.c: Include stdlib.h unconditionally. Do not include
616 fcntl.h, systty.h does it. Remove conditional code for
617 HAVE_SERIAL, it is always true.
618 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
619 always true when SIGNALS_VIA_CHARACTERS is true.
620 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
621 !WINDOWSNT means HAVE_TERMIOS.
622 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
623 conditional, which is true for all HAVE_TERMIOS systems.
624 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
625 instead of HAVE_TERMIOS.
626 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
627 EMACS_HAVE_TTY_PGRP.
628 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
629 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
630 anyway.
631
632 2010-08-21 Eli Zaretskii <eliz@gnu.org>
633
634 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
635 mirroring pixel positions.
636
637 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
638
639 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
640 write only.
641 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
642 malloc_sbrk_used, nothing uses them.
643
644 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
645 defined, unconditionally defined in lisp.h.
646
647 * term.c: Do not include <termios.h>, systty.h does it.
648
649 * s/unixware.h (HAVE_TCATTR):
650 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
651 systty.h defines it when HAVE_TERMIOS is defined.
652
653 2010-08-20 Eli Zaretskii <eliz@gnu.org>
654
655 * dispnew.c (buffer_posn_from_coords): Fix last change for text
656 terminals: add one-character offset for R2L lines.
657
658 * emacs.c <emacs_version>: Add a comment regarding
659 msdos/mainmake.v2's dependency on the syntax of this declaration.
660
661 2010-08-20 Eli Zaretskii <eliz@gnu.org>
662
663 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
664 position for R2L lines by mirroring the pixel position wrt the
665 text are box. Improve commentary.
666
667 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
668
669 * image.c (imagemagick_clear_image): Remove debugging output.
670
671 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
672
673 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
674 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
675 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
676 self-insert-face.
677 (syms_of_cmds): Initialize the new vars.
678
679 2010-08-19 Jason Rumney <jasonr@gnu.org>
680
681 * w32menu.c (set_frame_menubar): Remove call to undefined function.
682
683 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
684
685 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
686
687 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
688
689 2010-08-18 Eli Zaretskii <eliz@gnu.org>
690
691 * xterm.c (x_draw_bar_cursor):
692 * w32term.c (x_draw_bar_cursor): If the character under cursor is
693 R2L, draw the bar cursor on its right rather than on its left.
694
695 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
696
697 * eval.c (Fdefmacro): Only obey one declaration.
698
699 * casefiddle.c (casify_region): Setup gl_state.
700
701 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
702
703 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
704
705 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
706
707 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
708
709 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
710
711 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
712 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
713 QPRIMARY => NXPrimaryPboard.
714 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
715 NXPrimaryPboard => QPRIMARY.
716 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
717 NXSecondaryPboard = SecondarySelection.
718 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
719
720 2010-08-18 Joakim Verona <joakim@verona.se>
721
722 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
723 defined:
724 (imagemagick_image_p): New function to test for ImageMagic image.
725 (imagemagick_load): New function to load ImageMagick image.
726 (imagemagick_load_image): New function, helper for imagemagick_load.
727 (imagemagick-types): New function.
728 (Qimagemagick): New Lisp_object.
729 (imagemagick-render-type): New variable, decides which renderer to use.
730
731 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
732
733 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
734 is a string.
735
736 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
737
738 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
739 x_set_tool_bar_position handler.
740
741 2010-08-17 Eli Zaretskii <eliz@gnu.org>
742
743 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
744 x_set_tool_bar_position handler, needed to support changes from
745 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
746
747 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
748
749 * nsselect.m: include keyboard.h for QPRIMARY, remove its
750 declaration (Bug#6863).
751 (syms_of_nsselect): Don't intern QPRIMARY.
752
753 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
754
755 * keyboard.h (QPRIMARY): Declare (Bug#6864).
756
757 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
758
759 * keyboard.c (command_loop_1): Avoid setting selection twice,
760 since it's done in deactivate-mark as well.
761 (Vselect_active_regions): Change default to t. Replace `lazy'
762 with non-default value `only', meaning only set PRIMARY for
763 temporarily active regions.
764
765 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
766 select-active-regions.
767
768 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
769
770 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
771 isn't a string.
772
773 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
774
775 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
776
777 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
778
779 * keyboard.c (parse_tool_bar_item): malloc buf.
780 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
781 new_lbl (Bug#6855).
782
783 2010-08-14 Eli Zaretskii <eliz@gnu.org>
784
785 * xterm.c (x_draw_stretch_glyph_string):
786 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
787 the cursor on the right edge of the stretch glyph.
788
789 * xdisp.c (window_box_right_offset, window_box_right):
790 Fix commentary.
791
792 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
793 direction when point is inside a run of whitespace characters.
794
795 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
796
797 2010-08-14 Jason Rumney <jasonr@gnu.org>
798
799 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
800
801 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
802
803 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
804
805 2010-08-13 Jason Rumney <jasonr@gnu.org>
806
807 * w32menu.c (simple_dialog_show): Use unicode message box if available.
808 (MessageBoxW_Proc): New function typedef.
809 (unicode-message-box): New function pointer.
810 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
811
812 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
813
814 * frame.h (Qtool_bar_position): Declare.
815
816 * xfns.c (Fx_create_frame): Call x_default_parameter for
817 Qtool_bar_position.
818
819 2010-08-13 Eli Zaretskii <eliz@gnu.org>
820
821 * unexcoff.c: Remove the parts used when "emacs" is not defined.
822 (report_error, report_error_1): Ditto.
823 (write_segment): Remove "#if 0" unused code.
824 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
825 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
826 (start_of_text): Remove unused function (was used only if NO_REMAP
827 was NOT defined).
828
829 * msdos.c (IT_set_face): Fix format string to match argument
830 types.
831 (IT_write_glyphs, IT_note_mode_line_highlight)
832 (IT_set_frame_parameters): Remove unused variables.
833 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
834 (IT_set_terminal_modes): Disambiguate expression in if clause.
835 (Fmsdos_remember_default_colors): Return Qnil.
836 (IT_set_frame_parameters): Add parens to disambiguate boolean
837 expression for logging the cursor type to termscript.
838 (keyboard_layout_list, keypad_translate_map)
839 (grey_key_translate_map): Add braces in inner initializers.
840 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
841 (dos_rawgetc): Remove unused label.
842 (XMenuActivate): Add braces to remove ambiguous `else'.
843 (dos_ttraw): Always return a value.
844 (spawnve): Declare.
845 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
846
847 * dosfns.h (x_set_title): Declare.
848
849 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
850 Remove unused variables.
851
852 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
853 variables.
854 (init_dosfns): Declare get_lim_data.
855 (system_process_attributes): Declare Fget_internal_run_time.
856
857 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
858 list to be consistent with menu.h.
859
860 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
861 warnings due to mixing of "char *" and "const char *".
862
863 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
864
865 Introduce a new comment style "c" flag.
866 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
867 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
868 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
869 (syntax_prefix_flag_p): New function.
870 (Fstring_to_syntax): Understand new "c" flag.
871 (Finternal_describe_syntax_value): Recognize new flag; use the
872 SYNTAX_FLAGS_* macros.
873 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
874 comment style to accomodate the new styles.
875 (back_comment, forw_comment, Fforward_comment, scan_lists)
876 (scan_sexps_forward): Update code to obey the new comment style flag.
877
878 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
879
880 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
881
882 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
883
884 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
885 first.
886 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
887
888 * gtkutil.h (xg_check_special_colors): Declare.
889
890 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
891 (xg_create_frame_widgets): Connect theme name changes to
892 style_changed_cb.
893
894 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
895 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
896 (x_term_init): Use char[] display_opt and name_opt instead of
897 string literal. file is const char*.
898
899 * xsmfns.c (NOSPLASH_OPT): Change to char[].
900 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
901 props. Free them at the end.
902
903 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
904
905 * xrdb.c (get_system_app): Make path const and use char *p for
906 non-const char.
907
908 * xmenu.c (Fx_popup_dialog): error_name is const char*.
909 (xmenu_show): error parameter is const char **. pane_string is const
910 char *.
911 (button_names): Is const char *.
912 (xdialog_show): error_name and pane_string is const.
913
914 * process.h (synch_process_death): Is const char*.
915
916 * w32menu.c (w32_menu_show):
917 * nsmenu.m (ns_menu_show): error parameter is const char **.
918
919 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
920 is const char **.
921
922 * menu.c (Fx_popup_menu): error_name is const.
923
924 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
925 with unsigned char and XtPointer with void *.
926
927 * gtkutil.h: Replace widget_value with struct _widget_value.
928 (enum button_type, struct _widget_value): Remove and use the one from
929 keyboard.h.
930
931 * gtkutil.c (get_utf8_string): Always return an allocated string.
932 Parameter is const.
933 (create_dialog, xg_create_one_menuitem, create_menus)
934 (xg_item_label_same_p, xg_update_menu_item): Free result from
935 get_utf8_string.
936 (xg_separator_p, xg_item_label_same_p): label is const.
937
938 * font.h (font_open_by_name): Make name const.
939
940 * font.c (font_open_by_name): Make name const.
941
942 * floatfns.c (matherr): Use a const char* variable for x->name.
943
944 * emacs.c (main): Pass char[] to putenv instead of literal.
945
946 * callproc.c (synch_process_death): Make const.
947 (Fcall_process): Make signame const.
948
949 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
950 (addDisplayItemWithImage): Use const char*.
951
952 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
953 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
954
955 * nsfont.m (ns_descriptor_to_entity): Use const char*.
956
957 * keyboard.h (_widget_value): name, value and key are const char*.
958
959 * unexmacosx.c (unexec_error): Use const char *.
960
961 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
962
963 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
964 (font_parse_name, font_open_by_name):
965 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
966 (font_parse_name, font_open_by_name): Remove const.
967
968 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
969
970 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
971 definition.
972
973 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
974 * m/amdx86-64.h: Likewise.
975 * m/arm.h: Likewise.
976 * m/hp800.h: Likewise.
977 * m/ia64.h: Likewise.
978 * m/ibmrs6000.h: Likewise.
979 * m/ibms390.h: Likewise.
980 * m/intel386.h: Likewise.
981 * m/iris4d.h: Likewise.
982 * m/m68k.h: Likewise.
983 * m/macppc.h: Likewise.
984 * m/mips.h: Likewise.
985 * m/sh3.h: Likewise.
986 * m/sparc.h: Likewise.
987 * m/template.h: Likewise.
988 * m/vax.h: Likewise.
989 * m/xtensa.h: Likewise.
990 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
991 WORDS_BIG_ENDIAN.
992 * lisp.h: Likewise.
993 * md5.c: Likewise.
994 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
995
996 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
997
998 Use const char* instead of char*.
999 Reduce the number of warnings with -Wwrite-strings.
1000 * xrdb.c (get_environ_db, get_system_name):
1001 * unexelf.c (find_section):
1002 * term.c (string_cost, string_cost_one_line, per_line_cost)
1003 (get_named_tty, init_tty):
1004 * sysdep.c (sys_subshell):
1005 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1006 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1007 * search.c (Freplace_match):
1008 * process.c (Fmake_network_process, send_process, init_process):
1009 * lread.c (Fload, init_lread):
1010 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1011 * keyboard.c (parse_tool_bar_item, struct event_head):
1012 * gtkutil.h (xg_get_font_name):
1013 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1014 (make_widget_for_menu_item, make_menu_item, create_menus)
1015 (xg_make_tool_item):
1016 * font.c (parse_matrix, font_parse_name):
1017 * floatfns.c (rounding_driver, float_error_fn_name):
1018 * filelock.c (get_boot_time_1, lock_file_1):
1019 * fileio.c (barf_or_query_if_file_exists, check_writable):
1020 * editfns.c (get_system_name, get_operating_system_release)
1021 (Fencode_time, Fset_time_zone_rule):
1022 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1023 * buffer.c (defvar_per_buffer): Use const.
1024
1025 2010-08-08 Kenichi Handa <handa@m17n.org>
1026
1027 * charset.c: Include <stdlib.h>.
1028 (struct charset_sort_data): New struct.
1029 (charset_compare): New function.
1030 (Fsort_charsets): New function.
1031 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1032
1033 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1034 number in CTEXT extended segment.
1035
1036 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1037
1038 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1039 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1040
1041 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1042
1043 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1044 (Fhash_table_size): Fix typos in docstrings.
1045 (Fmake_hash_table): Doc fix.
1046
1047 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1048
1049 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1050 Doc fix (bug#5625).
1051
1052 2010-08-08 Ken Brown <kbrown@cornell.edu>
1053
1054 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1055 the MSDOS definition.
1056
1057 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1058
1059 Use const char* instead of char*.
1060 * xterm.c (x_create_toolkit_scroll_bar):
1061 * xfont.c (xfont_list_pattern):
1062 * xfns.c (x_default_scroll_bar_color_parameter)
1063 (xic_create_fontsetname, x_default_font_parameter)
1064 (x_screen_planes):
1065 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1066 (store_mode_line_string, decode_mode_spec, display_string):
1067 * menu.c (digest_single_submenu):
1068 * keymap.h (initial_define_key, initial_define_lispy_key):
1069 * keymap.c (initial_define_key, initial_define_lispy_key):
1070 * image.c (image_error, image_keyword):
1071 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1072 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1073 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1074 (ftfont_list, ftfont_match):
1075 * frame.c (frame_parm_table):
1076 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1077 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1078 (font_add_log, font_deferred_log):
1079 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1080 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1081 (font_add_log, font_deferred_log):
1082 * emacs.c (argmatch):
1083 * dispextern.h (struct it):
1084 * coding.c (ENCODE_DESIGNATION):
1085 * charset.c (define_charset_internal): Use const.
1086
1087 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1088
1089 * xrdb.c: Remove include guard.
1090 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1091 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1092 realloc->xrealloc instead of using #defines.
1093
1094 2010-08-08 Eli Zaretskii <eliz@gnu.org>
1095
1096 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
1097 * editfns.c (Fline_beginning_position, Fline_end_position):
1098 State in the doc strings that start and end of line are in the
1099 logical order.
1100
1101 * xdisp.c (display_line): Move the handling of overlay arrow after
1102 the call to find_row_edges. (Bug#6699)
1103
1104 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1105
1106 * keyboard.c (command_loop_1):
1107 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1108
1109 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1110
1111 * insdel.c (prepare_to_modify_buffer): Save active region text to
1112 Vsaved_region_selection.
1113
1114 * xselect.c (QPRIMARY): Move to keyboard.c.
1115
1116 * keyboard.c (Vselect_active_regions): Move from simple.el.
1117 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1118 (command_loop_1): Set window selection prior to deactivating the mark.
1119
1120 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
1121
1122 * alloc.c (lisp_malloc):
1123 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1124 * charset.h (emacs_mule_charset):
1125 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1126 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1127 (bitch_at_user):
1128 * lisp.h (Fcheck_coding_system, Fget_text_property)
1129 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1130 Remove duplicate declarations.
1131
1132 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1133
1134 * process.c: Simplify include logic.
1135
1136 * keyboard.h (quit_char): Add declaration.
1137 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
1138 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1139 Add declarations.
1140 * sysdep.c:
1141 * w32.c: Remove the above declarations.
1142
1143 Remove extern declarations in .c files, .h files have them.
1144 * xterm.c:
1145 * xdisp.c:
1146 * msdos.c:
1147 * image.c:
1148 * gtkutil.c:
1149 * fileio.c:
1150 * eval.c: Remove declarations.
1151
1152 * frame.c (frame_params): Make const.
1153
1154 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1155
1156 * emacs.c (emacs_copyright, emacs_version): Make static.
1157 (Vinitial_window_system, Vauto_save_list_file_name)
1158 (Vinhibit_redisplay): Remove declarations.
1159 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1160 for AIX.
1161
1162 Use const for some arrays and functions.
1163 * xterm.h (xg_set_icon_from_xpm_data):
1164 * xfns.c (xg_set_icon_from_xpm_data):
1165 * term.c (fkeys):
1166 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1167 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1168 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1169 (frame.c frame_parms):
1170 * emacs-icon.h (gnu_xpm_bits):
1171 * callint.c (callint_argfuns): Use const.
1172
1173 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1174
1175 * sysdep.c: Move include term.h last of includes (Bug#6812).
1176
1177 2010-08-06 Eli Zaretskii <eliz@gnu.org>
1178
1179 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1180
1181 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1182
1183 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1184
1185 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1186
1187 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1188
1189 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1190
1191 * xterm.h (x_get_focus_frame): Declare.
1192
1193 * keyboard.h (poll_for_input_1): Unconditionally declare.
1194
1195 * nsterm.h (x_set_menu_bar_lines): Declare.
1196
1197 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1198
1199 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1200
1201 * window.c: Include menu.h.
1202
1203 * unexmacosx.c (print_region_list, print_regions)
1204 (build_region_list, find_emacs_zone_regions)
1205 (unexec_regions_merge, read_load_commands, dump_it)
1206 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1207
1208 * term.c: Check HAVE_SYS_IOCTL_H.
1209
1210 * sysdep.c: Check HAVE_TERM_H.
1211
1212 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
1213
1214 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1215 (ns_ring_bell, ns_defined_color, hide_hourglass)
1216 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1217 Convert to ANSI C prototypes.
1218 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1219 before code.
1220
1221 * nsterm.h : Include sysselect.h.
1222 (x_sync, x_get_focus_frame, x_set_mouse_position)
1223 (x_set_mouse_pixel_position, x_make_frame_visible)
1224 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1225 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1226 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1227 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
1228 Declare.
1229
1230 * nsmenu.m (popup_activated, name_is_separator)
1231 (syms_of_nsmenu): Convert to ANSI C prototypes.
1232 (runMenuAt): Prototypes and move declarations before code.
1233
1234 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1235
1236 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1237 prototypes.
1238
1239 * nsfns.m (have_menus_p, ns_display_info_for_name)
1240 (x_set_cursor_type, ns_appkit_version_str)
1241 (ns_appkit_version_int, ns_do_applescript)
1242 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1243 (syms_of_nsfns): Convert to ANSI C prototypes.
1244
1245 * menu.h (x_set_menu_bar_line): Declare.
1246 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1247
1248 * lisp.h (fmod_float): Declare.
1249
1250 * image.c (xpm_scan, xpm_make_color_table_v)
1251 (xpm_put_color_table_v, xpm_get_color_table_v)
1252 (xpm_make_color_table_h, xpm_put_color_table_h)
1253 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1254 (xpm_load): Convert to ANSI C prototypes.
1255
1256 * emacs.c: Include nsterm.h if HAVE_NS.
1257
1258 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1259
1260 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1261
1262 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1263 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1264 (socket_options): Use const char* for name.
1265
1266 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1267
1268 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1269
1270 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1271 Don't declare xmalloc_widget_value and digest_single_submenu.
1272
1273 * w32font.c (Qlatin): Remove declaration.
1274
1275 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1276
1277 * dired.c (compile_pattern): Restore declaration.
1278
1279 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1280
1281 Remove extern declarations in .c files, .h files have them.
1282 * data.c:
1283 * dired.c:
1284 * editfns.c:
1285 * filelock.c:
1286 * fns.c:
1287 * font.c:
1288 * fontset.c:
1289 * frame.c:
1290 * fringe.c:
1291 * ftfont.c:
1292 * gtkutil.c:
1293 * indent.c:
1294 * keyboard.c:
1295 * keymap.c:
1296 * lread.c:
1297 * menu.c:
1298 * print.c:
1299 * search.c:
1300 * sound.c:
1301 * window.c:
1302 * xdisp.c:
1303 * xfaces.c:
1304 * xfns.c:
1305 * xfont.c:
1306 * xftfont.c:
1307 * xmenu.c:
1308 * xterm.c: Remove declarations.
1309
1310 Cleanup syssignal.h.
1311 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1312 (main_thread): Move down to remove #ifdef.
1313 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1314 Remove conditional definition following unconditional ones.
1315
1316 * lisp.h: Remove HAVE_SHM code, unused.
1317 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1318 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1319 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1320 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1321 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1322 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1323 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1324 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1325 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1326 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1327 (Qwindow_scroll_functions, Vafter_load_alist)
1328 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1329 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1330 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1331 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1332 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1333 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1334 (initial_argv, last_nonmenu_event, load_in_progress)
1335 (noninteractive_need_newline, scroll_margin): Add declarations.
1336
1337 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1338 declarations, menu.h has them.
1339 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1340 (Vinput_method_function, Qinput_method_function)
1341 (Qevent_symbol_element_mask, last_event_timestamp):
1342 * dispextern.h (Voverflow_newline_into_fringe):
1343 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1344 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1345 (syms_of_w32font, syms_of_nsfont):
1346 * fontset.h (find_font_encoding, Qlatin):
1347 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1348 (Vtool_bar_mode, set_frame_menubar):
1349 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1350 * xterm.h (Qx_gtk_map_stock):
1351 * keymap.h (meta_prefix_char): Add declarations.
1352
1353 * term.c: Remove dead code.
1354
1355 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1356 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1357 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1358 which is what was there before BSD_PGRPS was removed.
1359
1360 2010-08-05 Eli Zaretskii <eliz@gnu.org>
1361
1362 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1363
1364 * unexcoff.c: Renamed from unexec.c.
1365
1366 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1367
1368 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1369
1370 2010-08-03 Johan Bockgård <bojohan@gnu.org>
1371
1372 * data.c (Flocal_variable_p): Handle variable aliases correctly.
1373 (Bug#6744)
1374
1375 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1376
1377 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1378 to TRUE if depth of screen is < 16.
1379
1380 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1381 USE_GTK_TOOLTIP.
1382 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1383 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
1384 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
1385 USE_GTK_TOOLTIP.
1386 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1387
1388 * xterm.h (USE_GTK_TOOLTIP): New define.
1389 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1390
1391 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1392 to Control-D (Bug#6771).
1393
1394 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
1395
1396 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1397 Wording by Drew Adams <drew.adams@oracle.com>.
1398
1399 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1400
1401 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1402 ttip_lbl.
1403
1404 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1405 calling gtk_widget_queue_draw.
1406 (x_free_frame_resources): Call xg_free_frame_widgets.
1407
1408 * xfns.c (x_gtk_use_system_tooltips): New variable.
1409 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1410 new gtkutil tooltip functions to show the tooltip.
1411 (Fx_hide_tip): Call xg_hide_tooltip.
1412 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1413
1414 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1415 (xg_show_tooltip, xg_hide_tooltip): Declare.
1416
1417 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
1418 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1419 New functions.
1420 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1421 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1422 Remove code that is commented out.
1423
1424 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1425
1426 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1427
1428 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
1429
1430 * xselect.c (x_own_selection): Use list4.
1431
1432 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1433
1434 * buffer.c (Qwindow): Do not define, already defined in data.c.
1435 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1436
1437 2010-07-29 Chad Brown <yandros@mit.edu>
1438
1439 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1440 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1441 * config.in: Undef HAVE_DIRENT_H.
1442 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
1443 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1444
1445 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1446
1447 Rename s/usg5-4.h -> s/usg5-4-common.h.
1448 * s/usg5-4.h: Rename file to ...
1449 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1450 * s/unixware.h:
1451 * s/sol2-6.h:
1452 * s/irix6-5.h: Update includes accordingly.
1453
1454 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1455
1456 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1457
1458 * xterm.h (struct x_output): Add toolbar_top_height,
1459 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1460 Remove toolbar_height.
1461 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
1462 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1463 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1464 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1465
1466 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1467
1468 * xfns.c (x_set_tool_bar_position): New function.
1469 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1470 (x_frame_parm_handlers): Add x_set_tool_bar_position.
1471 (syms_of_xfns): If USE_GTK, provide move-toolbar.
1472
1473 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1474 and FRAME_TOOLBAR_LEFT_WIDTH.
1475
1476 * gtkutil.h (xg_change_toolbar_position): Declare.
1477
1478 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1479 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1480 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1481 (xg_create_frame_widgets): Create a hobox for placing widgets
1482 vertically. Use gtk_box_pack_start.
1483 (xg_height_or_width_changed): Renamed from xg_height_changed.
1484 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1485 (xg_update_frame_menubar, free_frame_menubar): Change to
1486 xg_height_or_width_changed.
1487 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1488 size correctly. Remove hardcoded 4, instead use handlebox size -
1489 toolbar size.
1490 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
1491 size correctly. Use handlebox size + toolbar size as additional size.
1492 (xg_pack_tool_bar): POS is a new parameter.
1493 Set orientation of tool bar based on pos.
1494 Only make handlebox_widget if NULL.
1495 Check if tool bar goes to vbox or hbox depending on pos.
1496 (xg_update_tool_bar_sizes): New function.
1497 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
1498 height, call xg_update_tool_bar_sizes instead.
1499 (free_frame_tool_bar): Remove from hbox or vbox depending on
1500 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1501 (xg_change_toolbar_position): New function.
1502
1503 * frame.h (struct frame): Add tool_bar_position.
1504 (Qbottom): Declare.
1505
1506 * frame.c (Qtool_bar_position): New variable.
1507 (make_frame): Set tool_bar_position to Qtop.
1508 (frame_parms): Add tool-bar-position.
1509 (x_report_frame_params): Store tool_bar_position.
1510 (x_set_fringe_width): Reset wm size hint after fringe changes.
1511
1512 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1513
1514 Make lisp_time_argument declaration work on all systems.
1515 * lisp.h (lisp_time_argument): Move declaration ...
1516 * systime.h (lisp_time_argument): ... here
1517 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1518
1519 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1520
1521 * vm-limit.c (POINTER): Add typedef for it.
1522 (start_of_data): Change return type from POINTER to char *.
1523
1524 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1525 HAVE_WINDOW_SYSTEM.
1526
1527 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1528
1529 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1530 Remove reference to __osf__, unused.
1531
1532 * mem-limits.h: Remove duplicated includes.
1533 (NULL): Remove definition, unused.
1534 (POINTER): Remove definition.
1535 (start_of_data): Use char* in prototype, as the function
1536 definition does.
1537
1538 Remove extern declarations from .c files, and them to .h files.
1539 * keyboard.h (Qhelp_echo, waiting_for_input)
1540 (input_available_clear_time, ignore_mouse_drag_p)
1541 (Vdouble_click_time, real_this_command, Vthis_original_command):
1542 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1543 (Voverriding_local_map_menu_flag):
1544 * lisp.h (Qinteractive_form, use_file_dialog)
1545 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1546 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1547 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1548 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1549 (Qfunction, debug_on_next_call, Qfield)
1550 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1551 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1552 (Qfile_directory_p, Qinsert_file_contents)
1553 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1554 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1555 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1556 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1557 (Qminibuffer_prompt)
1558 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1559 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1560 (gray_bitmap_bits, xic_create_fontsetname):
1561 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1562
1563 * xsmfns.c (Vuser_login_name):
1564 * xrdb.c (Vdouble_click_time):
1565 * xfaces.c (xic_create_fontsetname):
1566 * w32select.c (waiting_for_input):
1567 * print.c (minibuffer_auto_raise):
1568 * msdos.c (Qhelp_echo):
1569 * macros.c (real_this_command):
1570 * keymap.c (Voverriding_local_map):
1571 * xterm.c (poll_for_input_1, gray_bitmap_width)
1572 (gray_bitmap_height, gray_bitmap_bits;
1573 * xmenu.c ( Voverriding_local_map)
1574 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1575 (use_file_dialog, Xt_app_con):
1576 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1577 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1578 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1579 (Qtool_bar_lines, ignore_mouse_drag_p):
1580 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1581 (Qrear_nonsticky, nconc2):
1582 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1583 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1584 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1585 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1586 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1587 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1588 (gc_in_progress):
1589 * doc.c (Voverriding_local_map, Qremap):
1590 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1591 (Vcompletion_regexp_list):
1592 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1593 (Qcompletion_ignore_case):
1594 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1595 (Vhistory_length, Vthis_original_command, real_this_command)
1596 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1597 * image.c (Qrisky_local_variable):
1598 * fontset.c (QCname):
1599 * fns.c (minibuffer_auto_raise, QCname):
1600 * dispnew.c (char_ins_del_cost):
1601 * composite.c (font_fill_lglyph_metrics):
1602 * cmds.c (Qface, Vtranslation_table_for_input):
1603 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1604 * ccl.c (charset_unicode):
1605 * callproc.c (Vtemporary_file_directory):
1606 * buffer.c (emacs_strerror): Remove extern declarations.
1607
1608 * data.c (Qwindow): Make non-static, used from other files too.
1609 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1610
1611 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1612 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1613 * s/usg5-4.h (COFF):
1614 * s/template.h:
1615 * s/msdos.h (COFF, NO_REMAP):
1616 * s/ms-w32.h (NO_REMAP):
1617 * s/hpux10-20.h (NO_REMAP):
1618 * m/sparc.h (SEGMENT_MASK):
1619 * m/m68k.h (NO_REMAP):
1620 * m/intel386.h (SEGMENT_MASK):
1621 * m/arm.h (NO_REMAP):
1622 * m/alpha.h (COFF):
1623 * m/template.h: Remove references to unused defines.
1624
1625 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1626
1627 * xsettings.c (Ftool_bar_get_system_style): Also check for
1628 Qtext_image_horiz.
1629
1630 * xdisp.c (Qtext_image_horiz): Define.
1631 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
1632 to documentation of tool-bar-style.
1633
1634 * lisp.h (Qtext_image_horiz): Declare.
1635
1636 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1637 style text_image_horiz.
1638
1639 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1640
1641 * emacs.c (Fkill_emacs): Remove return statement.
1642
1643 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1644 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1645 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1646 local extern declarations.
1647
1648 * xmenu.c: Do not included lwlib.h, not needed.
1649
1650 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1651
1652 * process.c: Move definitions earlier to minimize #ifdefs.
1653
1654 * xterm.h (x_get_customization_string, x_load_resources)
1655 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1656 (x_check_errors, x_property_data_to_lisp, defined_color)
1657 (xic_set_xfontset, x_defined_color): Use const.
1658
1659 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1660 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1661
1662 * xselect.c (selection_data_to_lisp_data)
1663 (x_property_data_to_lisp):
1664 * xrdb.c (x_get_string_resource, file_p)
1665 (x_get_customization_string, magic_file_p, search_magic_path)
1666 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1667 (x_get_string_resource): Use const.
1668
1669 * xfns.c: Include xlwmenu.h when USE_LUCID.
1670 (x_defined_color, xic_set_xfontset): Use const.
1671 (Fx_hide_tip): Remove local extern declaration.
1672
1673 * xfaces.c (Qmouse_face): Remove declaration.
1674 (face_color_gray_p, tty_defined_color, defined_color)
1675 (face_color_gray_p, face_color_supported_p): Add const.
1676
1677 * xdisp.c (do_mouse_tracking): Remove declaration.
1678 (add_to_log): Use const.
1679
1680 * minibuf.c (Qmouse_face): Remove declaration.
1681
1682 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1683
1684 * keyboard.h (do_mouse_tracking): Add declaration.
1685
1686 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1687 (QCdata, QCtype, Qcenter): Remove declarations.
1688
1689 * frame.c (x_get_resource_string, x_get_string_resource)
1690 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1691 (x_default_parameter): Use const.
1692
1693 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1694 (QCheight, QCsize, QCname): Remove declarations.
1695
1696 * emacs.c (main): Remove local extern declaration.
1697
1698 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1699 declarations.
1700
1701 * dispnew.c: Remove duplicate #include <unistd.h>.
1702 (update_window, update_frame_1, init_display): Remove local extern
1703 declarations.
1704
1705 * dispextern.h (add_to_log): Remove declaration.
1706 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1707 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1708
1709 * dired.c (scmp): Add const.
1710 (directory_files_internal): Remove local extern declaration.
1711
1712 * data.c (Finteractive_form): Use const.
1713
1714 * composite.c (syms_of_composite): Remove local extern declarations.
1715
1716 * charset.c (add_to_log): Remove declaration.
1717
1718 * character.c (strwidth, parse_str_to_multibyte): Add const.
1719
1720 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1721
1722 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1723
1724 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1725 (Lisp_Subr): Make doc and intspec constant.
1726 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1727 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1728 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1729 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1730 (display_arg): Add declarations.
1731
1732 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1733
1734 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1735
1736 * window.c (Fwindow_height): Doc fix (bug#6518).
1737
1738 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1739
1740 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1741
1742 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1743
1744 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1745 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1746 functions.
1747
1748 * frame.h (Qtty_color_mode): Add declaration.
1749
1750 * lisp.h (Ftop_level, Fexit_recursive_edit)
1751 (Fabort_recursive_edit): Mark as NO_RETURN.
1752
1753 2010-07-26 Kenichi Handa <handa@m17n.org>
1754
1755 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1756 number of glyphs gets smaller than the original length. (Bug#6621)
1757
1758 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1759
1760 * lread.c (unreadpure, mapatoms_1): Make static.
1761
1762 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1763
1764 * terminfo.c (tparam): Fix prototype of tparm.
1765
1766 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1767
1768 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1769 find start of text segment.
1770 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1771 is defined.
1772
1773 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1774
1775 2010-07-25 Ken Brown <kbrown@cornell.edu>
1776
1777 * vm-limit.c (check_memory_limits): Fix previous change;
1778 accidentally reverted an earlier change.
1779
1780 2010-07-25 Ken Brown <kbrown@cornell.edu>
1781
1782 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1783 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1784
1785 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1786
1787 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1788 * dired.c (opendir, readdir): Fix prototypes.
1789 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1790 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1791 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1792 (telldir): Remove declaration.
1793 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1794 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1795 * syssignal.h (strsignal): Fix prototype.
1796 * term.c (tparam): Fix prototype.
1797 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1798 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1799 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1800 and __morecore.
1801 * w32gui.h (XParseGeometry): Fix prototype.
1802 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1803 * w32term.c (my_set_focus): Declare inside #if 0.
1804 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1805 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1806 (drain_message_queue, get_next_msg, post_msg, parse_button)
1807 (ClipboardSequence_Proc): Fix prototypes.
1808 (wait_for_sync): Remove declaration.
1809
1810 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1811
1812 * w32fns.c (w32_to_x_color): Remove, unused.
1813
1814 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1815
1816 * lisp.h: Remove leftover P_.
1817
1818 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1819
1820 * ecrt0.c, unexalpha.c: Remove files, unused.
1821
1822 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1823
1824 * cmds.c (internal_self_insert): Make static.
1825 * lisp.h (internal_self_insert): Remove declaration.
1826
1827 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1828
1829 * alloc.c (free_float):
1830 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1831 * frame.c (delete_frame_handler):
1832 * ralloc.c (reorder_bloc):
1833 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1834 Remove unused static functions.
1835
1836 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1837 it is called only from NS code.
1838
1839 * w32term.c (my_set_focus): #ifdef away; it is called only from
1840 "#ifdef 0" code.
1841
1842 * w32fns.c (x_edge_detection):
1843 * xfaces.c (may_use_scalable_font_p):
1844 Remove obsolete static declarations.
1845
1846 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1847
1848 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1849 (emacs_blocked_realloc, uninterrupt_malloc):
1850 * fringe.c (w32_reset_fringes):
1851 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1852 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1853 * sound.c (be2hs, do_play_sound):
1854 * vm-limit.c (get_lim_data, ret_lim_data):
1855 * w32term.c (x_free_frame_resources):
1856 * xfaces.c (x_create_gc, x_free_gc):
1857 Convert definitions to standard C.
1858
1859 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1860
1861 * eval.c (Feval, Ffuncall): Use the new names.
1862
1863 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1864 (DEFUN): Add braces around the union initialisation and use ## to
1865 specify the right union alternative and avoid a cast.
1866
1867 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1868
1869 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1870
1871 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1872
1873 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1874
1875 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1876
1877 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1878 is related to the menu bar (Bug#6499).
1879 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1880
1881 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1882
1883 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1884
1885 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1886
1887 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1888 i.e. don't put back ButtonRelease (Bug#6608).
1889
1890 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1891 instead of Window. Call xg_event_is_for_menubar when
1892 USE_GTK (Bug#6499).
1893
1894 * gtkutil.h (xg_event_is_for_menubar): Declare.
1895
1896 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1897
1898 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1899
1900 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1901 when it's the same as the old foreground. (Bug#6609)
1902
1903 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1904
1905 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1906 widget is non-null (Bug#6645).
1907
1908 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1909
1910 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1911 Convert old-style definition.
1912
1913 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1914 timestamp argument.
1915
1916 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1917
1918 * fringe.c (update_window_fringes): Restore mistakenly reverted
1919 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1920
1921 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1922
1923 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1924 (SET_SAVED_KEY_EVENT): Remove (not used).
1925 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1926 remove size parameter.
1927 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1928 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1929 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1930 ButtonRelease.
1931 (x_set_window_size_1): scroll_bar_actual_width is always
1932 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1933
1934 * xdisp.c (pending_menu_activation): Remove extern declaration.
1935 (prepare_menu_bars): Remove setting of pending_menu_activation.
1936
1937 * xmenu.c (pending_menu_activation): Remove.
1938 (x_activate_menubar): Set popup_activated_flag for Xt also.
1939 Remove setting of pending_menu_activation.
1940 (set_frame_menubar): Remove check of pending_menu_activation.
1941 Declare menubar_size before code. Correct spelling in comment.
1942
1943 2010-07-14 Kenichi Handa <handa@m17n.org>
1944
1945 * font.c (font_open_entity): Cancel previous change.
1946 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1947
1948 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1949
1950 Remove subprocesses #ifdefs.
1951 * process.c <inhibit_sentinels>: Move to the common part.
1952 (Fwaiting_for_user_input_p): Move to the common part; return nil
1953 if async subprocesses aren't supported.
1954 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1955 MS-DOS. Remove "#ifdef subprocesses".
1956 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1957 (gettimeofday): Remove "#ifdef subprocesses".
1958 (wait_without_blocking): Remove function.
1959 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1960 Remove "#ifdef subprocesses".
1961 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1962 compiled on MS-DOS.
1963 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1964 wait_for_termination on MS-DOS.
1965 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1966 initialization of inhibit_sentinels.
1967 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1968 subprocesses" conditional.
1969 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1970 wait_for_termination, since `buffer' cannot be an integer when
1971 async subprocesses are not supported
1972 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1973 for ifdefing away the call to Fprocess_status.
1974
1975 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1976 away the entire body of the function.
1977
1978 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1979
1980 Remove subprocesses #ifdefs from term.c.
1981 * process.c (add_keyboard_wait_descriptor)
1982 (delete_keyboard_wait_descriptor): Move to common section, do
1983 nothing when subprocesses is not defined.
1984 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1985 Remove subprocesses #ifdefs.
1986
1987 Convert maybe_fatal to standard C.
1988 * lisp.h (verror): Declare.
1989 * eval.c (verror): New function containing the code from ...
1990 (error): ... this. Call verror.
1991 * term.c (vfatal): New function containing the code from ...
1992 (fatal): ... this. Call vfatal.
1993 (maybe_fatal): Convert to standard C, use variable number of
1994 arguments. Declare as non-return.
1995 (init_tty): Fix maybe_fatal call.
1996
1997 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1998
1999 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2000 (_scroll_bar_note_movement): Convert definitions to standard C.
2001 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2002 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2003
2004 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2005
2006 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2007 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2008 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2009 (xaw_jump_callback, xaw_scroll_callback)
2010 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2011 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2012 definitions to standard C.
2013 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2014 (popup_activate_callback, popup_deactivate_callback)
2015 (menu_highlight_callback, menubar_selection_callback)
2016 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2017 (free_frame_menubar, popup_selection_callback, as)
2018 (create_and_show_popup_menu, dialog_selection_callback)
2019 (create_and_show_dialog):
2020 * xfns.c (hack_wm_protocols, x_window):
2021 * xfaces.c (x_update_menu_appearance):
2022 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2023 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2024 (set_frame_size, update_wm_hints, setup_frame_gcs)
2025 (update_various_frame_slots, update_from_various_frame_slots)
2026 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2027 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2028 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2029
2030 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2031
2032 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
2033
2034 2010-07-12 Eli Zaretskii <eliz@gnu.org>
2035
2036 * process.c (setup_process_coding_systems): Move to the part
2037 shared by non-subprocesses systems, and make its body empty when
2038 subprocesses is not defined.
2039 (close_process_descs): Move to the part shared by non-subprocesses
2040 systems.
2041 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2042 ANSI C.
2043
2044 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2045
2046 * editfns.c (transpose_markers): Convert old-style definition.
2047 * emacs.c (abort, shut_down_emacs, fixup_locale)
2048 (synchronize_system_time_locale)
2049 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2050 * floatfns.c (extract_float, matherr, init_floatfns)
2051 (syms_of_floatfns): Likewise.
2052 * fns.c (make_hash_table): Likewise.
2053 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2054 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2055 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2056 (ftfont_variation_glyphs): Likewise.
2057 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2058 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2059 * lread.c (read_filtered_event): Likewise.
2060 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2061 * process.c (wait_reading_process_output): Likewise.
2062 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2063 * search.c (search_buffer, boyer_moore): Likewise.
2064 * syntax.c (scan_sexps_forward): Likewise.
2065 * xdisp.c (try_scrolling): Likewise.
2066 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2067 (face_at_string_position): Likewise.
2068 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2069 * xselect.c (x_get_window_property, receive_incremental_selection)
2070 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2071 Likewise.
2072 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2073
2074 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2075
2076 * callproc.c (child_setup): Remove subprocesses conditional.
2077 Remove code dealing with SET_EMACS_PRIORITY, unused.
2078
2079 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2080 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2081
2082 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2083 (__do_global_dtors, __main): Use void in definition.
2084 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2085 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2086 the only users from ...
2087 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2088 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2089 (HAVE_VOLATILE): Remove, unused.
2090
2091 Convert more function definitions to standard C.
2092 * xdisp.c (window_box_edges, handle_single_display_spec)
2093 (display_string): Convert definition to standard C.
2094 * scroll.c (do_direct_scrolling, scrolling_1):
2095 * dispnew.c (allocate_matrices_for_frame_redisplay)
2096 (mirrored_line_dance):
2097 * coding.c (code_convert_string):
2098 * charset.c (map_charset_chars):
2099 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2100 (Fregister_ccl_program, Fregister_code_conversion_map):
2101 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2102 (head_table): Make static and const.
2103
2104 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2105
2106 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2107 (PROFILING_LDFLAGS): Set from substitution.
2108 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2109 CFLAGS last.
2110
2111 2010-07-12 Kenichi Handa <handa@m17n.org>
2112
2113 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2114 (shortlisp): Likewise.
2115
2116 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2117
2118 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2119 of FONT_ENTITY_INDEX.
2120 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2121 property, get the property value dynamically.
2122 (Ffont_put): Accept font-entity and font-object too.
2123 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2124 return value changed.
2125 (syms_of_font): Adjusted for the above change.
2126
2127 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2128
2129 * blockinput.h: Remove obsolete comment.
2130
2131 * lisp.h: Include <stddef.h>.
2132 (OFFSETOF): Don't define.
2133 (VECSIZE): Use offsetof instead of OFFSETOF.
2134 (PSEUDOVECSIZE): Likewise.
2135 * process.c (conv_sockaddr_to_lisp): Likewise.
2136 * alloc.c: Don't include <stddef.h>.
2137 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2138
2139 * process.c: Remove obsolete comment.
2140
2141 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
2142
2143 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2144
2145 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2146
2147 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2148 index, rindex.
2149 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2150 * editfns.c (Fuser_full_name, Fformat): Likewise.
2151 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2152 * fileio.c (Ffile_symlink_p): Likewise.
2153 * filelock.c (current_lock_owner): Likewise.
2154 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2155 * fontset.c (fontset_pattern_regexp): Likewise.
2156 * lread.c (read1): Likewise.
2157 * sysdep.c (init_system_name): Likewise.
2158 * xfns.c (select_visual): Likewise.
2159 * s/hpux10-20.h (index, rindex): Don't define.
2160 * s/ms-w32.h (index): Likewise.
2161 * s/usg5-4.h: Likewise.
2162
2163 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2164
2165 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2166 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2167 (egetenv): Likewise.
2168 * doprnt.c (doprnt): Likewise.
2169 * editfns.c (set_time_zone_rule, format2): Likewise.
2170 * emacs.c (decode_env_path): Likewise.
2171 * eval.c (signal_error, error): Likewise.
2172 * insdel.c (replace_range_2): Likewise.
2173 * keyboard.c (cmd_error_internal): Likewise.
2174 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2175 * print.c (write_string, write_string_1, print_error_message):
2176 Likewise.
2177 * vm-limit.c (warn_function, memory_warnings): Likewise.
2178 * xdisp.c (message1, message1_nolog, message_with_string)
2179 (vmessage, message, message_nolog): Likewise.
2180 * emacs.c: Remove duplicate declaration.
2181 * keyboard.h: Likewise.
2182 * lisp.h: Update prototypes.
2183
2184 * eval.c: Fix indentation problem.
2185
2186 * keyboard.c: Include "process.h"
2187
2188 * eval.c: Remove obsolete noinline declaration.
2189 * fns.c: Likewise.
2190
2191 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
2192
2193 * doprnt.c (doprnt): Take a va_list argument instead of count and
2194 pointer.
2195 * eval.c (error): Change to a standard-C variadic function.
2196 * xdisp.c (vmessage): Renamed from message, made static, and
2197 changed to take a va_list argument.
2198 (message): New variadic wrapper.
2199 (message_nolog): Now a variadic function, calling vmessage.
2200 * lisp.h: Include stdarg.h for va_list.
2201 (doprnt, error, message, message_nolog): Decls updated.
2202
2203 2010-07-11 Eli Zaretskii <eliz@gnu.org>
2204
2205 * process.c (syms_of_process) <delete-exited-processes>: Define
2206 even if !subprocesses.
2207 (delete_exited_processes): Ditto.
2208
2209 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2210 (delete_exited_processes): Don't define.
2211
2212 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2213
2214 * frame.c (make_frame): Initialize menu_bar_lines and
2215 tool_bar_lines members.
2216 (make_initial_frame, make_terminal_frame): Initialize
2217 menu_bar_lines using value of menu-bar-mode.
2218
2219 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2220
2221 2010-07-10 Eli Zaretskii <eliz@gnu.org>
2222
2223 * process.c: Reshuffle #include's. Condition some of the global
2224 and static variables on `subprocesses'.
2225 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2226 Leave only one implementation.
2227 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2228 (kill_buffer_processes, Flist_system_processes)
2229 (Fprocess_attributes, init_process, syms_of_process): Unify the
2230 implementations for with subprocesses and without them.
2231
2232 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2233
2234 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2235 correct size for Motif.
2236 (free_frame_menubar): Call x_set_window_size to update frame size.
2237
2238 * xfns.c (x_window): Set borderWidth to 0 for pane and
2239 EmacsFrame. Frame size calculation is wrong otherwise.
2240
2241 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
2242
2243 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2244 allows to suppress errors when polling in Emacs' main loop.
2245 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2246 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2247 (Fdbus_method_error_internal, Fdbus_send_signal)
2248 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2249 (Fdbus_register_method): Use it. (Bug#6579)
2250
2251 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2252
2253 * alloc.c: Convert DEFUNs to standard C.
2254 * buffer.c:
2255 * bytecode.c:
2256 * callint.c:
2257 * callproc.c:
2258 * casefiddle.c:
2259 * casetab.c:
2260 * category.c:
2261 * character.c:
2262 * charset.c:
2263 * chartab.c:
2264 * cmds.c:
2265 * coding.c:
2266 * composite.c:
2267 * data.c:
2268 * dbusbind.c:
2269 * dired.c:
2270 * dispnew.c:
2271 * doc.c:
2272 * dosfns.c:
2273 * editfns.c:
2274 * emacs.c:
2275 * eval.c:
2276 * fileio.c:
2277 * filelock.c:
2278 * floatfns.c:
2279 * fns.c:
2280 * font.c:
2281 * fontset.c:
2282 * frame.c:
2283 * fringe.c:
2284 * image.c:
2285 * indent.c:
2286 * insdel.c:
2287 * keyboard.c:
2288 * keymap.c:
2289 * lread.c:
2290 * macros.c:
2291 * marker.c:
2292 * menu.c:
2293 * minibuf.c:
2294 * msdos.c:
2295 * nsfns.m:
2296 * nsmenu.m:
2297 * nsselect.m:
2298 * print.c:
2299 * process.c:
2300 * search.c:
2301 * sound.c:
2302 * syntax.c:
2303 * term.c:
2304 * terminal.c:
2305 * textprop.c:
2306 * undo.c:
2307 * w16select.c:
2308 * w32console.c:
2309 * w32fns.c:
2310 * w32font.c:
2311 * w32menu.c:
2312 * w32proc.c:
2313 * w32select.c:
2314 * window.c:
2315 * xdisp.c:
2316 * xfaces.c:
2317 * xfns.c:
2318 * xmenu.c:
2319 * xselect.c:
2320 * xsettings.c:
2321 * xsmfns.c: Likewise.
2322
2323 2010-07-08 Eli Zaretskii <eliz@gnu.org>
2324
2325 * process.c (kbd_is_on_hold, hold_keyboard_input)
2326 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2327
2328 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2329
2330 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2331 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2332 unless USE_LUCID.
2333
2334 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2335
2336 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2337 declaration.
2338
2339 Clean up include guards.
2340 * tparam.c: Remove include guards for config.h, string.h and code
2341 that assumes #ifndef emacs.
2342 * termcap.c:
2343 * unexalpha.c:
2344 * sysdep.c:
2345 * filemode.c:
2346 * filelock.c:
2347 * bidi.c: Likewise.
2348
2349 Remove prefix-args.c
2350 * prefix-args.c: Remove file.
2351 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2352 * Makefile.in (temacs${EXEEXT}): Remove references to
2353 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2354 (mostlyclean): Remove reference to prefix-args.
2355 (prefix-args): Remove.
2356
2357 Simplify cstart_of_data, start_of_code and related code.
2358 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2359 (start_of_data): Merge into start_of_data function.
2360 * sysdep.c (start_of_text): Remove. Move simplified versions of
2361 it in the only users: unexaix.c and unexec.c.
2362 (read_input_waiting): Remove local declaration of quit_char.
2363 (start, etext): Remove declarations.
2364 (start_of_data): Merge with the version in mem-limits.h and move
2365 to vm-limits.c.
2366 * vm-limit.c (start_of_data): Merged and simplified version of the
2367 code formerly in mem-limits.h and sysdep.c.
2368 * unexec.c (start): New declaration, moved from sysdep.c.
2369 (start_of_text): Simplified version of the code formerly in sysdep.c.
2370 * unexaix.c (start_of_text): Simplified version of the code
2371 formerly in sysdep.c.
2372 * m/alpha.h (HAVE_TEXT_START): Remove.
2373 (TEXT_START): Move ...
2374 * unexalpha.c (TEXT_START): ... here.
2375 * s/hpux10-20.h (TEXT_START): Remove.
2376 * s/darwin.h (TEXT_START):
2377 * m/mips.h (TEXT_START):
2378 * m/macppc.h (HAVE_TEXT_START):
2379 * m/m68k.h (TEXT_START):
2380 * m/iris4d.h (TEXT_START):
2381 * m/intel386.h (TEXT_START):
2382 * m/ibmrs6000.h (TEXT_START):
2383 * m/ia64.h (HAVE_TEXT_START):
2384 * s/msdos.h (TEXT_START): Likewise.
2385
2386 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2387
2388 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2389 (overrun_check_free, xstrdup, allocate_string)
2390 (allocate_string_data, compact_small_strings, Fmake_string)
2391 (make_unibyte_string, make_multibyte_string)
2392 (make_string_from_bytes, make_specified_string, make_float)
2393 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2394 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2395 memcpy, memmove, memset, memcmp.
2396 * atimer.c (start_atimer, set_alarm): Likewise.
2397 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2398 (mmap_realloc, init_buffer_once): Likewise.
2399 * callint.c (Fcall_interactively): Likewise.
2400 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2401 (getenv_internal_1): Likewise.
2402 * casefiddle.c (casify_object): Likewise.
2403 * ccl.c (ccl_driver): Likewise.
2404 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2405 * charset.c (load_charset_map_from_file)
2406 (load_charset_map_from_file, load_charset_map_from_vector)
2407 (Fdefine_charset_internal): Likewise.
2408 * cm.c (Wcm_clear): Likewise.
2409 * coding.c (decode_eol, decode_coding_object)
2410 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2411 * data.c (Faset): Likewise.
2412 * dired.c (directory_files_internal, file_name_completion_stat):
2413 Likewise.
2414 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2415 (clear_glyph_row, copy_row_except_pointers)
2416 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2417 (save_current_matrix, restore_current_matrix)
2418 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2419 (mirror_line_dance, scrolling_window): Likewise.
2420 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2421 Likewise.
2422 * doprnt.c (doprnt): Likewise.
2423 * editfns.c (Fuser_full_name, make_buffer_string_both)
2424 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2425 * emacs.c (sort_args): Likewise.
2426 * eval.c (Fapply, Ffuncall): Likewise.
2427 * fileio.c (Ffile_name_directory, make_temp_name)
2428 (Fexpand_file_name, search_embedded_absfilename)
2429 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2430 (auto_save_error): Likewise.
2431 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2432 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2433 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2434 (Fmake_hash_table): Likewise.
2435 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2436 * ftfont.c (ftfont_text_extents): Likewise.
2437 * getloadavg.c (getloadavg): Likewise.
2438 * image.c (define_image_type, make_image, make_image_cache)
2439 (x_create_x_image_and_pixmap, xbm_image_p)
2440 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2441 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2442 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2443 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2444 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2445 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2446 Likewise.
2447 * indent.c (scan_for_column, compute_motion): Likewise.
2448 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2449 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2450 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2451 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2452 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2453 (store_user_signal_events, menu_bar_items, tool_bar_items)
2454 (process_tool_bar_item, append_tool_bar_item)
2455 (read_char_minibuf_menu_prompt, read_key_sequence)
2456 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2457 Likewise.
2458 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2459 Likewise.
2460 * lisp.h (STRING_COPYIN): Likewise.
2461 * lread.c (Fload, read1, oblookup): Likewise.
2462 * msdos.c (Frecent_doskeys): Likewise.
2463 * nsfns.m (Fx_create_frame): Likewise.
2464 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2465 Likewise.
2466 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2467 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2468 Likewise.
2469 * nsmenu.m (ns_update_menubar): Likewise.
2470 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2471 * print.c (print_unwind, printchar, strout, print_string)
2472 (print_error_message): Likewise.
2473 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2474 (Fmake_network_process, Fnetwork_interface_list)
2475 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2476 (init_process): Likewise.
2477 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2478 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2479 Likewise.
2480 * scroll.c (do_scrolling, do_direct_scrolling)
2481 (scrolling_max_lines_saved): Likewise.
2482 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2483 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2484 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2485 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2486 (emacs_set_tty): Likewise.
2487 * term.c (encode_terminal_code, calculate_costs)
2488 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2489 Likewise.
2490 * termcap.c (tgetst1, gobble_line): Likewise.
2491 * termhooks.h (EVENT_INIT): Likewise.
2492 * tparam.c (tparam1): Likewise.
2493 * unexalpha.c (unexec): Likewise.
2494 * unexec.c (write_segment): Likewise.
2495 * unexmacosx.c (unexec_write_zero): Likewise.
2496 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2497 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2498 * w32font.c (w32font_list_family, w32font_text_extents)
2499 (w32font_list_internal, w32font_match_internal)
2500 (w32font_open_internal, compute_metrics, Fx_select_font):
2501 Likewise.
2502 * w32menu.c (set_frame_menubar, add_menu_item)
2503 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2504 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2505 * w32uniscribe.c (uniscribe_list_family): Likewise.
2506 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2507 * window.c (make_window, replace_window, set_window_buffer)
2508 (Fsplit_window): Likewise.
2509 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2510 (add_to_log, message3, x_consider_frame_title)
2511 (append_space_for_newline, extend_face_to_end_of_line)
2512 (decode_mode_spec_coding, init_glyph_string): Likewise.
2513 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2514 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2515 (face_attr_equal_p, make_realized_face, make_face_cache)
2516 (free_realized_faces, lookup_named_face, smaller_face)
2517 (face_with_height, lookup_derived_face)
2518 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2519 (Finternal_set_font_selection_order, realize_default_face)
2520 (compute_char_face, face_at_buffer_position)
2521 (face_for_overlay_string, face_at_string_position, merge_faces):
2522 Likewise.
2523 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2524 (Fx_window_property, x_create_tip_frame)
2525 (Fx_backspace_delete_keys_p): Likewise.
2526 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2527 (xfont_text_extents): Likewise.
2528 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2529 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2530 * xselect.c (x_queue_event, x_get_window_property)
2531 (receive_incremental_selection): Likewise.
2532 * xsmfns.c (x_session_check_input): Likewise.
2533 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2534 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2535 Likewise.
2536 * character.h (BCOPY_SHORT): Removed.
2537 * config.in: Regenerate.
2538 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2539 * emacs.c (main) [PROFILING]: Don't declare
2540 dump_opcode_frequencies.
2541 * lisp.h (safe_bcopy): Remove declaration.
2542 (memset) [!HAVE_MEMSET]: Declare.
2543 (memcpy) [!HAVE_MEMCPY]: Likewise.
2544 (memmove) [!HAVE_MEMMOVE]: Likewise.
2545 (memcmp) [!HAVE_MEMCMP]: Likewise.
2546 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2547 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2548 Don't define.
2549 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2550 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2551 (BCOPY_DOWNWARD_SAFE): Don't define.
2552 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2553 (memcpy) [!HAVE_MEMCPY]: Define.
2554 (memmove) [!HAVE_MEMMOVE]: Define.
2555 (memcmp) [!HAVE_MEMCMP]: Define.
2556
2557 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2558
2559 * process.c (kbd_is_on_hold): New variable.
2560 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2561 New functions.
2562 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2563 select on empty input mask.
2564 (init_process): Initialize kbd_is_on_hold to 0.
2565
2566 * process.h (hold_keyboard_input, unhold_keyboard_input)
2567 (kbd_on_hold_p): Declare.
2568
2569 * keyboard.c (input_available_signal): Declare.
2570 (kbd_buffer_nr_stored): New function.
2571 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2572 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2573 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2574 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2575 (tty_read_avail_input): If input is on hold, return.
2576 Don't read more that free slots in kbd_buffer (Bug#6571).
2577
2578 2010-07-07 Eli Zaretskii <eliz@gnu.org>
2579
2580 * msdos.h:
2581 * msdos.c:
2582 * dosfns.c:
2583 * w16select.c: Convert function definitions to ANSI C.
2584
2585 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2586 Remove unused prototypes.
2587
2588 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2589
2590 * coding.c, sysdep.c: Convert some more functions to standard C.
2591
2592 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2593
2594 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2595 (encode_coding_object): Use SPECPDL_INDEX.
2596 (syms_of_coding): Use DOS_NT.
2597
2598 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2599
2600 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2601
2602 Make the function member of Lisp_Subr use standard C prototypes.
2603 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2604 (DECL_ALIGN): Add a cast for the function.
2605 * eval.c (Feval, Ffuncall): Use the proper type for each type
2606 function call.
2607
2608 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
2609
2610 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2611 fringe face id, so face-remapping-alist works (Bug#6091).
2612
2613 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
2614
2615 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2616 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2617 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2618
2619 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2620
2621 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2622 * lisp.h: Declare x_get_keysym_name.
2623 * keyboard.c (modify_event_symbol): Don't declare
2624 x_get_keysym_name here.
2625
2626 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2627
2628 * ecrt0.c: Revert conversion to standard C.
2629
2630 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2631
2632 * vm-limit.c (memory_warnings):
2633 * keyboard.c (modify_event_symbol):
2634 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2635 (round2, emacs_rint):
2636 * process.c (send_process, old_sigpipe): Convert function
2637 definitions and declarations to standard C.
2638
2639 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
2640
2641 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2642 * xdisp.c: Convert function definitions to standard C.
2643
2644 * cm.c (cmputc): Arg C is now int, not char.
2645 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2646
2647 2010-07-05 James Cloos <cloos@jhcloos.com>
2648
2649 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2650
2651 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2652 _NET_WM_ICON_NAME atoms.
2653
2654 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2655 and _NET_WM_ICON_NAME properties, too, matching what is
2656 done in the Gtk+ case.
2657
2658 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2659
2660 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2661
2662 * xsmfns.c (SSDATA): New macro.
2663 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2664 passed to strlen/strcpy/strcat.
2665 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2666 7:th arg to XChangeProperty to (unsigned char *)
2667
2668 * xsettings.c (something_changedCB, parse_settings)
2669 (apply_xft_settings): Reformat prototype.
2670 (something_changedCB, init_gconf): Remove unused variable i.
2671 (read_settings): Remove unused variable long_len.
2672
2673 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2674 (xg_get_image_for_pixmap, create_dialog)
2675 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2676 (menuitem_highlight_callback, make_menu_item)
2677 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2678 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2679 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2680 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2681 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2682 (xg_tool_bar_item_expose_callback): Reformat prototype.
2683 (xg_update_menubar): GList *group => GSList *group.
2684 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2685 before use.
2686 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2687 to GTK_IMAGE (wimage).
2688
2689 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2690
2691 * atimer.c: Use "" instead of <> for local includes for
2692 consistency with the rest of the code.
2693
2694 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2695 * xrdb.c (get_system_name):
2696 * window.c (shrink_windows):
2697 * syntax.c (forw_comment):
2698 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2699 (ins_del_costs):
2700 * mem-limits.h (start_of_data):
2701 * lread.c (readevalloop):
2702 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2703 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2704 * frame.c (x_get_focus_frame):
2705 * floatfns.c (fmod_float):
2706 * fileio.c (choose_write_coding_system):
2707 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2708 (malloc_initialize_hook, sort_args, synchronize_locale):
2709 * doprnt.c (doprnt):
2710 * dired.c (compile_pattern):
2711 * data.c (fmod_float):
2712 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2713 (map_char_table_for_charset):
2714 * charset.c (define_charset_internal):
2715 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2716 to standard C.
2717
2718 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2719 Stefan Monnier <monnier@iro.umontreal.ca>
2720
2721 * lread.c (read1): Fix up last change to not mess up `c'.
2722
2723 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2724
2725 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2726
2727 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2728
2729 Fix prototypes.
2730
2731 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2732 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2733 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2734 arg, as required by internal_condition_case_1.
2735 * print.c (strout): Use const char* for arg PTR.
2736 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2737 (analyse_first): Fix "const const".
2738 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2739 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2740 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2741
2742 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2743
2744 * alloc.c: Convert function definitions to standard C.
2745 * atimer.c:
2746 * bidi.c:
2747 * bytecode.c:
2748 * callint.c:
2749 * callproc.c:
2750 * casefiddle.c:
2751 * casetab.c:
2752 * category.c:
2753 * ccl.c:
2754 * character.c:
2755 * charset.c:
2756 * chartab.c:
2757 * cmds.c:
2758 * coding.c:
2759 * composite.c:
2760 * data.c:
2761 * dbusbind.c:
2762 * dired.c:
2763 * dispnew.c:
2764 * doc.c:
2765 * doprnt.c:
2766 * ecrt0.c:
2767 * editfns.c:
2768 * fileio.c:
2769 * filelock.c:
2770 * filemode.c:
2771 * fns.c:
2772 * font.c:
2773 * fontset.c:
2774 * frame.c:
2775 * fringe.c:
2776 * ftfont.c:
2777 * ftxfont.c:
2778 * gtkutil.c:
2779 * indent.c:
2780 * insdel.c:
2781 * intervals.c:
2782 * keymap.c:
2783 * lread.c:
2784 * macros.c:
2785 * marker.c:
2786 * md5.c:
2787 * menu.c:
2788 * minibuf.c:
2789 * prefix-args.c:
2790 * print.c:
2791 * ralloc.c:
2792 * regex.c:
2793 * region-cache.c:
2794 * scroll.c:
2795 * search.c:
2796 * sound.c:
2797 * strftime.c:
2798 * syntax.c:
2799 * sysdep.c:
2800 * termcap.c:
2801 * terminal.c:
2802 * terminfo.c:
2803 * textprop.c:
2804 * tparam.c:
2805 * undo.c:
2806 * unexelf.c:
2807 * window.c:
2808 * xfaces.c:
2809 * xfns.c:
2810 * xfont.c:
2811 * xftfont.c:
2812 * xgselect.c:
2813 * xmenu.c:
2814 * xrdb.c:
2815 * xselect.c:
2816 * xsettings.c:
2817 * xsmfns.c:
2818 * xterm.c: Likewise.
2819
2820 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2821
2822 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2823 frames other than the initial one. Fix reversal of colors when
2824 `reverse' is specified in the frame parameters. Call
2825 update_face_from_frame_parameter instead of
2826 internal-set-lisp-face-attribute. Initialize screen colors from
2827 initial_screen_colors[] when f->default_face_done_p is zero,
2828 instead of depending on being called with default-frame-alist as
2829 the alist argument.
2830
2831 * xfaces.c (update_face_from_frame_parameter): Move out of
2832 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2833 with HAVE_WINDOW_SYSTEM.
2834
2835 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2836 to menu-bar-mode, if not set in the frame parameters or in
2837 default-frame-alist.
2838
2839 * w32console.c (sys_tputs): Adjust argument list to prototype in
2840 term.c.
2841
2842 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2843
2844 * lisp.h (memory_warnings): Fix prototype.
2845
2846 * cm.h (evalcost): Fix prototype.
2847
2848 * cm.c (evalcost): Fix arg type.
2849
2850 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2851
2852 * term.c (term_clear_mouse_face, Fidentity):
2853 * syssignal.h (signal_handler_t):
2854 * lisp.h (memory_warnings):
2855 * coding.h (preferred_coding_system):
2856 * cm.h (evalcost):
2857 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2858
2859 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2860
2861 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2862 from prototypes.
2863
2864 * msdos.h (load_pixmap): Don't define away.
2865
2866 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2867
2868 * lisp.h:
2869 * atimer.h: Remove define for P_.
2870
2871 * alloc.c: Remove __P and P_ from .c and .m files.
2872 * atimer.c:
2873 * buffer.c:
2874 * callint.c:
2875 * category.c:
2876 * charset.c:
2877 * chartab.c:
2878 * cm.c:
2879 * coding.c:
2880 * composite.c:
2881 * data.c:
2882 * dired.c:
2883 * dispnew.c:
2884 * doc.c:
2885 * editfns.c:
2886 * emacs.c:
2887 * eval.c:
2888 * fileio.c:
2889 * filelock.c:
2890 * fns.c:
2891 * font.c:
2892 * fontset.c:
2893 * frame.c:
2894 * ftfont.c:
2895 * ftxfont.c:
2896 * gmalloc.c:
2897 * gtkutil.c:
2898 * image.c:
2899 * indent.c:
2900 * intervals.c:
2901 * keyboard.c:
2902 * keymap.c:
2903 * lread.c:
2904 * marker.c:
2905 * menu.c:
2906 * minibuf.c:
2907 * print.c:
2908 * process.c:
2909 * scroll.c:
2910 * search.c:
2911 * sound.c:
2912 * strftime.c:
2913 * syntax.c:
2914 * sysdep.c:
2915 * term.c:
2916 * terminal.c:
2917 * textprop.c:
2918 * unexalpha.c:
2919 * w32console.c:
2920 * w32fns.c:
2921 * w32font.c:
2922 * w32menu.c:
2923 * w32term.c:
2924 * w32uniscribe.c:
2925 * window.c:
2926 * xdisp.c:
2927 * xfaces.c:
2928 * xfns.c:
2929 * xfont.c:
2930 * xftfont.c:
2931 * xmenu.c:
2932 * xselect.c:
2933 * xterm.c: Likewise.
2934
2935 Remove P_ and __P macros.
2936 * atimer.h: Remove P_ and __P macros.
2937 * buffer.h:
2938 * category.h:
2939 * ccl.h:
2940 * character.h:
2941 * charset.h:
2942 * cm.h:
2943 * coding.h:
2944 * composite.h:
2945 * dispextern.h:
2946 * disptab.h:
2947 * dosfns.h:
2948 * font.h:
2949 * fontset.h:
2950 * frame.h:
2951 * gtkutil.h:
2952 * indent.h:
2953 * intervals.h:
2954 * keyboard.h:
2955 * keymap.h:
2956 * lisp.h:
2957 * macros.h:
2958 * md5.h:
2959 * menu.h:
2960 * msdos.h:
2961 * nsterm.h:
2962 * puresize.h:
2963 * region-cache.h:
2964 * syntax.h:
2965 * syssignal.h:
2966 * systime.h:
2967 * termhooks.h:
2968 * w32font.h:
2969 * w32term.h:
2970 * widget.h:
2971 * window.h:
2972 * xgselect.h:
2973 * xsettings.h:
2974 * xterm.h: Likewise.
2975
2976 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2977
2978 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2979
2980 Cleanup old code.
2981 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2982 * syssignal.h: Remove code for Lynx, not supported anymore.
2983 * vm-limit.c: Remove unused code the depends on emacs not being
2984 defined and NO_LIM_DATA being defined.
2985 * mem-limits.h: Remove dead code.
2986
2987 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2988
2989 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2990
2991 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2992 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2993
2994 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2995 parameters, they are already absolute.
2996
2997 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2998 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2999
3000 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3001
3002 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3003 Update FRAME_TOOLBAR_HEIGHT.
3004
3005 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3006 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
3007
3008 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
3009
3010 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3011 check default-frame-alist.
3012
3013 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3014
3015 * process.c (create_process): Avoid using invalid file descriptors.
3016
3017 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3018
3019 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3022 Improve documentation. Return font regardless of use_system_font.
3023 (syms_of_xsettings): Improve documentation for font-use-system-font.
3024
3025 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3026
3027 * xfaces.c (realize_face): Garbage the frame if a face is removed
3028 (Bug#6593).
3029
3030 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3031
3032 * keyboard.c: Remove duplicate <setjmp.h>.
3033 (read_key_sequence): Remove volatile qualifiers.
3034
3035 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3036
3037 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3038 (struct glyph_row): New members left_fringe_offset and
3039 right_fringe_offset.
3040
3041 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3042 specially.
3043 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3044 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3045
3046 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
3047 Take account of bitmap offset.
3048 (draw_window_fringes): Take account of window vscroll.
3049 (update_window_fringes): Likewise. Extend top-aligned top indicator
3050 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3051 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3052 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3053
3054 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3055
3056 * w32fns.c (Qtooltip): Declare.
3057 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3058
3059 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3060
3061 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3062 grab on just Press (Bug#6499).
3063
3064 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
3065
3066 * frame.c (Qtooltip): New var.
3067 (delete_frame): Use it. Fix faulty if statement. Don't update
3068 mode line for tooltip frames. Suggested by Martin Rudalics.
3069
3070 * xfns.c (x_create_tip_frame):
3071 * w32fns.c (x_create_tip_frame): Use it.
3072
3073 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
3074
3075 * xftfont.c (xftfont_open): Check font width one by one also when
3076 spacing is dual.
3077
3078 * ftfont.c (ftfont_open): Ditto.
3079
3080 2010-06-30 Glenn Morris <rgm@gnu.org>
3081
3082 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3083
3084 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3085
3086 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3087 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3088 * s/darwin.h (SYSTEM_MALLOC):
3089 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3090
3091 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3092
3093 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3094 (ns_get_screen): Don't assign integer to f.
3095 (Fx_display_color_cells): Declarations before statements.
3096
3097 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3098
3099 * xfns.c (x_default_font_parameter): Remove got_from_system
3100 (Bug#6526).
3101
3102 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3103 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3104 defines based on what configure finds.
3105
3106 * xterm.c (XTflash): Use gtk_widget_get_window.
3107 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3108 gtk_adjustment_get_page_size.
3109 (handle_one_xevent): Use gtk_widget_get_mapped.
3110 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3111 messages.
3112
3113 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3114
3115 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3116 HAVE_GTK_FILE_SELECTION_NEW.
3117
3118 * gtkutil.c (xg_display_open, xg_display_close): Remove
3119 HAVE_GTK_MULTIDISPLAY, it is always defined.
3120 (xg_display_open): Return type is void.
3121 (gtk_widget_set_has_window)
3122 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3123 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3124 (gtk_adjustment_set_page_increment)
3125 (gtk_adjustment_get_step_increment): #define these if not found
3126 by configure.
3127 (remove_submenu): New define based on Gtk+ version.
3128 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3129 gtk_widget_get_window.
3130 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3131 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3132 (create_dialog): Use gtk_dialog_get_action_area and
3133 gtk_dialog_get_content_area.
3134 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3135 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3136 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3137 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3138 g_object_ref and g_object_unref.
3139 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3140 gtk_widget_get_sensitive.
3141 (xg_update_submenu): Use remove_submenu.
3142 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3143 properties instead to get old x and y position.
3144 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3145 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
3146 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
3147 (xg_get_tool_bar_widgets): New function.
3148 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3149 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3150 (toolbar_set_orientation): New #define based on if configure
3151 finds gtk_orientable_set_orientation.
3152 (xg_create_tool_bar): Call toolbar_set_orientation.
3153 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3154 instead of gtk_box_pack_start_defaults.
3155
3156 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
3157
3158 * cmds.c (Fdelete_backward_char): Move into Lisp.
3159
3160 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3161
3162 * s/freebsd.h (BSD4_2): Remove redundant definition.
3163 bsd-common.h defines it already.
3164
3165 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
3166
3167 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3168 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3169 tool-bar-mode, which are now set using these X resources at
3170 startup, to determine the defaults (Bug#2249).
3171
3172 * w32fns.c (Fx_create_frame):
3173 * nsfns.m (Fx_create_frame): Likewise.
3174
3175 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3176
3177 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
3178
3179 * gtkutil.c (xg_update_scrollbar_pos):
3180 Avoid C99 mid-block variable declaration.
3181
3182 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3183
3184 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3185
3186 * gtkutil.h (xg_show_scroll_bar): Remove.
3187
3188 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3189 if height is less than scroll bar min size.
3190 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3191
3192 * xfns.c (x_default_font_parameter): Try to open font from system
3193 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3194
3195 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
3196
3197 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3198
3199 2010-06-20 Eli Zaretskii <eliz@gnu.org>
3200
3201 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3202 most-positive-fixnum, be extra accurate when scrolling window
3203 start, to avoid missing the cursor line.
3204
3205 2010-06-19 Eli Zaretskii <eliz@gnu.org>
3206
3207 * xdisp.c (try_scrolling): Compute the limit for searching point
3208 in forward scroll from scroll_max, instead of an arbitrary limit
3209 of 10 screen lines. See
3210 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3211 and
3212 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3213 for details.
3214
3215 2010-06-16 Glenn Morris <rgm@gnu.org>
3216
3217 * editfns.c (Fbyte_to_string): Pacify compiler.
3218
3219 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3220
3221 * lread.c (read1): Phase out old-style backquotes a bit more.
3222
3223 2010-06-12 Eli Zaretskii <eliz@gnu.org>
3224
3225 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3226 bidimirror.h.
3227
3228 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3229
3230 * bidi.c (bidi_initialize): Remove explicit initialization of
3231 bidi_type_table; include biditype.h instead. Don't support
3232 entries whose second codepoint is zero. Initialize bidi_mirror_table.
3233 (bidi_mirror_char): Use bidi_mirror_table.
3234
3235 * biditype.h: New file.
3236
3237 * bidimirror.h: New file.
3238
3239 * window.c (syms_of_window): Doc fix (bug#6409).
3240
3241 2010-06-12 Romain Francoise <romain@orebokech.com>
3242
3243 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3244 ediff-hook.
3245
3246 2010-06-10 Glenn Morris <rgm@gnu.org>
3247
3248 * editfns.c (Fbyte_to_string): Pacify compiler.
3249
3250 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3251
3252 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3253
3254 * alloc.c (Fmake_byte_code): Don't access undefined argument
3255 (Bug#6517).
3256
3257 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
3258
3259 * xdisp.c (next_element_from_image): Ensure that after-strings are
3260 read the next time we hit handle_stop (Bug#1336).
3261
3262 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3263
3264 * lread.c (read1): Signal error if #s is not followed by paren.
3265
3266 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
3267
3268 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3269
3270 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3271
3272 2010-06-15 Glenn Morris <rgm@gnu.org>
3273
3274 * editfns.c (Fbyte_to_string): Pacify compiler.
3275
3276 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3277
3278 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3279 Check `object's type before accessing its guts.
3280
3281 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3282
3283 * s/usg5-4.h: Fix previous change.
3284 Suggested by Lawrence Mitchell <wence@gmx.li>
3285
3286 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3287
3288 * minibuf.c (Fall_completions): Add more checks.
3289
3290 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
3291
3292 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3293
3294 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3295
3296 * lread.c (X_OK): Remove, unused.
3297
3298 * dispnew.c: Remove obsolete comment.
3299
3300 Remove INCLUDED_FCNTL.
3301 * xterm.c (INCLUDED_FCNTL):
3302 * callproc.c (INCLUDED_FCNTL):
3303 * alloc.c (INCLUDED_FCNTL):
3304 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3305 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3306
3307 2010-06-07 Martin Rudalics <rudalics@gmx.at>
3308
3309 * window.c (Fselect_window): Move `record_buffer' up to the
3310 beginning of this function, so the buffer gets recorded
3311 even if the selected window does not change.
3312 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3313
3314 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
3315
3316 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3317 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3318
3319 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3320
3321 Remove BSTRING related code, all platforms define it.
3322 * s/usg5-4.h (BSTRING): Remove definition.
3323 * s/template.h (BSTRING):
3324 * s/msdos.h (BSTRING):
3325 * s/ms-w32.h (BSTRING):
3326 * s/hpux10-20.h (BSTRING):
3327 * s/gnu-linux.h (BSTRING):
3328 * s/darwin.h (BSTRING):
3329 * s/cygwin.h (BSTRING):
3330 * s/bsd-common.h (BSTRING):
3331 * s/aix4-2.h (BSTRING): Likewise.
3332 * sysdep.c: Remove code depending on BSTRING not being defined.
3333
3334 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
3335
3336 Remove obsolete macro BASE_LEADING_CODE_P.
3337 * character.h (BASE_LEADING_CODE_P): Remove.
3338 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3339 * buffer.c (Fset_buffer_multibyte):
3340 * indent.c (scan_for_column, compute_motion):
3341 * insdel.c (count_combining_before, count_combining_after):
3342 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3343
3344 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
3345
3346 Turn `directory-sep-char' into a noop.
3347
3348 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3349 (DIRECTORY_SEP): Define unconditionally.
3350
3351 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3352
3353 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3354 call dostounix_filename directly.
3355
3356 * fileio.c (CORRECT_DIR_SEPS): Remove.
3357 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3358 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3359 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3360 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3361
3362 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3363 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3364
3365 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3366
3367 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3368 (Bug#6346)
3369
3370 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3371
3372 * ccl.c (Fccl_program_p): Fix typo in docstring.
3373
3374 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3375
3376 Move UNEXEC definition to autoconf.
3377 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3378 * s/sol2-10.h (UNEXEC):
3379 * s/irix6-5.h (UNEXEC):
3380 * s/hpux10-20.h (UNEXEC):
3381 * s/gnu-linux.h (UNEXEC):
3382 * s/darwin.h (UNEXEC):
3383 * s/cygwin.h (UNEXEC):
3384 * s/bsd-common.h (UNEXEC):
3385 * s/aix4-2.h (UNEXEC):
3386 * m/alpha.h (UNEXEC): Likewise.
3387 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3388
3389 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3390
3391 Remove obsolete pre-unicode2 macros.
3392 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3393 * composite.c (composition_reseat_it):
3394 * data.c (Faset):
3395 * fns.c (Ffillarray):
3396 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3397 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3398
3399 2010-06-03 Juri Linkov <juri@jurta.org>
3400
3401 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3402 (Fswitch_to_buffer): Remove unused variable `err'.
3403
3404 2010-06-03 Glenn Morris <rgm@gnu.org>
3405
3406 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3407
3408 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3409 now that AH_BOTTOM does it.
3410
3411 * m/hp800.h (HAVE_ALLOCA):
3412 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3413
3414 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3415 Remove NOT_C_CODE tests, it is always true now.
3416
3417 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3418
3419 Fix config.h includes.
3420 * xsettings.c:
3421 * xgselect.c:
3422 * nsterm.m:
3423 * nsselect.m:
3424 * nsimage.m:
3425 * nsfont.m:
3426 * nsfns.m:
3427 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3428 other files do.
3429
3430 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3431
3432 * s/sol2-6.h: Remove obsolete comments.
3433
3434 Remove unnecessary alloca.h includes.
3435 * keymap.c: Do not include alloca.h, config.h does that.
3436 * sysdep.c: Likewise. Do not define fwrite, not used.
3437
3438 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3439
3440 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3441 the HAVE_TERMIO where it belongs (bug#6149).
3442
3443 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3444
3445 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3446 of bug#6305).
3447
3448 2010-05-30 Eli Zaretskii <eliz@gnu.org>
3449
3450 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3451 state is always cached (bug#6306).
3452
3453 2010-05-29 Eli Zaretskii <eliz@gnu.org>
3454
3455 Fix cursor motion in bidi-reordered continued lines.
3456 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3457 only after finding point's row. Fix the logic. Rewrite the loop
3458 over continuation lines in bidi-reordered buffers. Return
3459 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3460 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3461
3462 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
3463
3464 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3465
3466 2010-05-28 Kenichi Handa <handa@m17n.org>
3467
3468 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3469 Don't sheck SPEC if it is nil.
3470 (font_list_entities): Call font_delete_unmatched if
3471 Vface_ignored_fonts is non-nil. (Bug#6287)
3472
3473 2010-05-28 Glenn Morris <rgm@gnu.org>
3474
3475 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3476
3477 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3478
3479 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3480 whether to trash.
3481 (internal_delete_file, Frename_file): Callers changed.
3482 (delete_by_moving_to_trash): Doc fix.
3483 (Fdelete_directory_internal): Don't move to trash.
3484
3485 * callproc.c (delete_temp_file):
3486 * buffer.c (Fkill_buffer): Callers changed.
3487
3488 * lisp.h: Update prototype.
3489
3490 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3491
3492 * xdisp.c (redisplay_window): After redisplay, check if point is
3493 still valid before setting it (Bug#6177).
3494
3495 2010-05-27 Glenn Morris <rgm@gnu.org>
3496
3497 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3498 Convert comments to Makefile format.
3499
3500 * Makefile.in (bootstrap-clean): No more Makefile.c.
3501
3502 2010-05-26 Glenn Morris <rgm@gnu.org>
3503
3504 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3505 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3506
3507 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3508 Remove.
3509 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3510
3511 2010-05-26 Kenichi Handa <handa@m17n.org>
3512
3513 * composite.c (composition_compute_stop_pos): Fix condition for
3514 backward scanning.
3515
3516 2010-05-25 Glenn Morris <rgm@gnu.org>
3517
3518 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3519 Move before TEMACS_LDFLAGS.
3520 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3521 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3522
3523 * Makefile.in (NOT_C_CODE): No longer define.
3524 (config.h): No longer include.
3525
3526 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3527 variables it may reference.
3528
3529 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3530 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3531
3532 2010-05-25 Kenichi Handa <handa@m17n.org>
3533
3534 * dispextern.h (struct composition_it): New members rule_idx and
3535 charpos.
3536
3537 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3538 that the character positions of IT point the last character of the
3539 current grapheme cluster.
3540 (next_element_from_composition): Don't change character positions
3541 of IT.
3542 (append_composite_glyph): Set glyph->charpos to
3543 it->cmp_it.charpos.
3544
3545 * composite.c (autocmp_chars): Change the first argument to RULE,
3546 and try composition with RULE only.
3547 (composition_compute_stop_pos): Record the index number of the
3548 composition rule in CMP_IT->rule_idx.
3549 (composition_reseat_it): Call autocmp_chars repeatedly until the
3550 correct rule of the composition is found.
3551 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3552 is at the last character of the current grapheme cluster when
3553 CMP_IT->reversed_p is nonzero.
3554
3555 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3556
3557 * editfns.c (Fbyte_to_string): New function.
3558
3559 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3560
3561 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3562 Suggested by Masatake YAMATO <yamato@redhat.com>.
3563
3564 2010-05-23 Eli Zaretskii <eliz@gnu.org>
3565
3566 * dispextern.h (init_iterator): Sync prototype with changed definition.
3567
3568 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3569
3570 * s/netbsd.h: If terminfo is found, use it in preference to
3571 termcap. (Bug#6190) [Backport from trunk]
3572
3573 2010-05-19 Eli Zaretskii <eliz@gnu.org>
3574
3575 Redesign and reimplement bidi-aware edge positions of glyph rows.
3576
3577 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3578 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3579 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3580 and maxpos members instead of start.pos and end.pos, respectively.
3581
3582 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3583 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3584 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
3585 (try_window_reusing_current_matrix, try_window_id):
3586 Use ROW->minpos rather than ROW->start.pos.
3587 (init_from_display_pos, init_iterator): Use EMACS_INT for
3588 character and byte positions.
3589 (find_row_edges): Rename from find_row_end. Accept additional
3590 arguments for minimum and maximum buffer positions seen by
3591 display_line for this row. Don't use iterator to find the
3592 position following the maximum one; instead, increment the
3593 position found by display_line directly. Fix logic; eol_pos
3594 should be tested before the rest. Handle the case of characters
3595 delivered from display vector (bug#6036). Fix tests related to
3596 it->method. Handle the truncated_on_right_p rows.
3597 (RECORD_MAX_MIN_POS): New macro.
3598 (display_line): Use it to record the minimum and maximum buffer
3599 positions for glyphs in the row being assembled. Record the
3600 position of the newline that terminates the line. If word wrap is
3601 in effect, restore minimum and maximum positions seen up to the
3602 wrap point, when iterator returns to it.
3603 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3604 row and cursor not already at point. Restore original pre-bidi
3605 code for unidirectional buffers.
3606
3607 * dispnew.c (increment_row_positions, check_matrix_invariants):
3608 Increment and check row->start.pos and row->end.pos, in addition
3609 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3610
3611 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3612 Display truncated_on_left_p and truncated_on_right_p flags.
3613 Formatting fixes.
3614 (pmtxrows): Display the ordinal number of each row. Don't display
3615 rows beyond the last one.
3616
3617 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3618 it is not copied by bidi_copy_it.
3619
3620 2010-05-22 Eli Zaretskii <eliz@gnu.org>
3621
3622 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3623 (Bug#6237)
3624
3625 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
3626
3627 * image.c (Fimage_flush): Rename from image-refresh.
3628
3629 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
3630
3631 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3632 just one window.
3633
3634 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3635 (clear_image_cache): If the number of cached images is unusually
3636 large, decrease the cache eviction delay (Bug#6230).
3637
3638 2010-05-21 Glenn Morris <rgm@gnu.org>
3639
3640 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3641 Move these rules to ns.mk.
3642 * ns.mk: New file.
3643
3644 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3645
3646 * Makefile.in (CANNOT_DUMP): New, set by configure.
3647 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3648
3649 2010-05-20 Juri Linkov <juri@jurta.org>
3650
3651 * fileio.c (Fdelete_file): Change interative spec to use
3652 `read-file-name' like in `find-file-read-args' where the default
3653 value is `default-directory' instead of `buffer-file-name'.
3654 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3655
3656 2010-05-20 Kevin Ryde <user42@zip.com.au>
3657
3658 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3659 (Voverriding_terminal_local_map, Vsystem_key_alist)
3660 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3661
3662 2010-05-20 Glenn Morris <rgm@gnu.org>
3663
3664 * Makefile.in (DEPDIR): New constant.
3665 (DEPFLAGS): Set with configure, not cpp.
3666 (MKDEPDIR): New, set by configure.
3667 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3668 (clean): Use $DEPDIR.
3669 (deps_frag): Include from configure.
3670 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3671 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3672
3673 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3674 reallocation of the cache. (Bug#6210)
3675
3676 2010-05-19 Glenn Morris <rgm@gnu.org>
3677
3678 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3679
3680 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3681 (GNULIB_VAR): Remove.
3682 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3683
3684 * m/ibms390x.h (LINKER):
3685 * m/macppc.h (LINKER) [GNU_LINUX]:
3686 * s/aix4-2.h (ORDINARY_LINK):
3687 * s/cygwin.h (LINKER):
3688 * s/darwin.h (ORDINARY_LINK):
3689 * s/gnu.h (ORDINARY_LINK):
3690 * s/netbsd.h (LINKER):
3691 * s/usg5-4.h (ORDINARY_LINK):
3692 Move to configure.
3693
3694 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3695
3696 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3697
3698 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3699 prevent stack overflow if number of arguments is too large
3700 (Bug#6214).
3701
3702 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3703
3704 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3705
3706 2010-05-18 Glenn Morris <rgm@gnu.org>
3707
3708 * s/gnu-linux.h: Combine two conditionals.
3709
3710 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3711 $(POST_ALLOC_OBJ).
3712
3713 * Makefile.in (RALLOC_OBJ): New, set by configure.
3714 (rallocobj): Replace with the previous variable.
3715 (otherobj): Use $RALLOC_OBJ.
3716
3717 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3718 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3719
3720 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3721 (gmallocobj, vmlimitobj): Replace with previous two variables.
3722 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3723
3724 2010-05-17 Glenn Morris <rgm@gnu.org>
3725
3726 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3727 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3728
3729 2010-05-16 Glenn Morris <rgm@gnu.org>
3730
3731 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3732
3733 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3734
3735 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3736 trailing "/".
3737
3738 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3739 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3740
3741 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3742 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3743 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3744 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3745 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3746
3747 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3748 Remove ${STARTFLAGS}, nothing ever sets it.
3749
3750 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3751
3752 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3753
3754 2010-05-16 Glenn Morris <rgm@gnu.org>
3755
3756 * Makefile.in (LIBX_BASE): Always define.
3757
3758 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3759
3760 * Makefile.in (LIBXT): Always define.
3761
3762 2010-05-15 Glenn Morris <rgm@gnu.org>
3763
3764 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3765
3766 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3767 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3768
3769 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3770
3771 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3772 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3773
3774 * emacs.c (main): Initialize initial-environment and
3775 process-environment before generating from env, not after.
3776
3777 Handle --version reasonably in CANNOT_DUMP configuration.
3778 * emacs.c (emacs_version, emacs_copyright): New string variables.
3779 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3780 (syms_of_emacs): Defvar them, and initialize them from the C
3781 string variables.
3782 (main): If initialization hasn't been done, print initial version
3783 info from the C strings, instead of starting an interactive session.
3784
3785 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3786
3787 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3788 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3789 (bidi_paragraph_init): Remove redundant assertion that we are at
3790 the beginning of a line after call to bidi_find_paragraph_start.
3791
3792 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3793 (syms_of_xdisp): Defsubr it.
3794
3795 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3796
3797 * Makefile.in: Fix MSDOS-related comments.
3798
3799 2010-05-15 Glenn Morris <rgm@gnu.org>
3800
3801 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3802 (really-lwlib, really-oldXMenu): Always define.
3803 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3804
3805 * Makefile.in: Simplify cpp conditional.
3806
3807 * Makefile.in (${ns_appdir}): Simplify using umask.
3808
3809 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3810
3811 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3812
3813 * eval.c (specbind): Remove left-over duplicate test.
3814 Disallow let-binding frame-local vars. Add comment.
3815
3816 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3817
3818 Make the cache of bidi iterator states dynamically allocated.
3819 * bidi.c (bidi_cache_shrink): New function.
3820 (bidi_init_it): Call it.
3821 (bidi_cache_iterator_state): Enlarge the cache if needed.
3822
3823 * bidi.c (bidi_move_to_visually_next): Rename from
3824 bidi_get_next_char_visually. All callers changed.
3825
3826 2010-05-14 Kenichi Handa <handa@m17n.org>
3827
3828 * dispextern.h (struct composition_it): New member reversed_p.
3829
3830 * composite.c (composition_compute_stop_pos): Search backward if
3831 ENDPOS < CHARPOS.
3832 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3833 Set CMP_IT->reversed_p.
3834 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3835
3836 * xdisp.c (set_iterator_to_next):
3837 Call composition_compute_stop_pos with negative ENDPOS if we are
3838 scanning backward. Call composition_compute_stop_pos if scan
3839 direction is changed.
3840 (next_element_from_buffer): Call composition_compute_stop_pos with
3841 negative ENDPOS if we are scanning backward.
3842 (next_element_from_composition): Pay attention to
3843 IT->cmp_it.reversed_p.
3844
3845 2010-05-14 Kenichi Handa <handa@m17n.org>
3846
3847 * font.c (font_range): Return the range for the font found at first.
3848
3849 2010-05-14 Glenn Morris <rgm@gnu.org>
3850
3851 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3852
3853 * Makefile.in (mktime, X11, register): Move undefs to configure.
3854
3855 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3856 (MSDOS_X_OBJ): New variable.
3857 (MSDOS_SUPPORT_REAL): New constant.
3858 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3859 (obj): Use MSDOS_X_OBJ.
3860 (lisp): Use MSDOS_SUPPORT as a variable.
3861
3862 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3863 (GPM_MOUSE_SUPPORT): Now it's a constant.
3864 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3865 not cpp.
3866
3867 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3868 (ns_appresdir): Remove, unused.
3869
3870 * Makefile.in (SHELL): Move outside cpp section.
3871
3872 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3873
3874 2010-05-13 Glenn Morris <rgm@gnu.org>
3875
3876 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3877 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3878
3879 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3880 HAVE_WINDOW_SYSTEM must be too.
3881
3882 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3883 (lisp): Remove WINNT_SUPPORT.
3884
3885 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3886 Let configure set these variables (to empty) in this case as well.
3887
3888 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3889 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3890
3891 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3892 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3893 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3894 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3895 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3896 the values output by configure.
3897 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3898
3899 2010-05-12 Glenn Morris <rgm@gnu.org>
3900
3901 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3902 (LINKER_WAS_SPECIFIED): Remove.
3903
3904 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3905 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3906 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3907 * s/cygwin.h (LIB_GCC):
3908 * s/freebsd.h (LIB_GCC):
3909 * s/gnu-linux.h (LIB_GCC):
3910 * s/msdos.h (LIB_GCC):
3911 * s/netbsd.h (LIB_GCC):
3912 Move to configure.
3913
3914 2010-05-11 Karel Klic <kklic@redhat.com>
3915
3916 * ftfont.c: Fix incorrect parentheses of #if condition for
3917 definining M17N_FLT_USE_NEW_FEATURE.
3918
3919 2010-05-11 Glenn Morris <rgm@gnu.org>
3920
3921 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3922 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3923
3924 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3925
3926 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3927 unibyte buffers. See
3928 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3929
3930 2010-05-10 Glenn Morris <rgm@gnu.org>
3931
3932 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3933 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3934 (LIBES): Use LIBS_SYSTEM as a variable.
3935 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3936 * s/aix4-2.h (LIBS_SYSTEM):
3937 * s/freebsd.h (LIBS_SYSTEM):
3938 * s/hpux10-20.h (LIBS_SYSTEM):
3939 * s/sol2-6.h (LIBS_SYSTEM):
3940 * s/unixware.h (LIBS_SYSTEM):
3941 Move to configure.
3942
3943 * s/aix4-2.h (MAIL_USE_LOCKF):
3944 * s/bsd-common.h (MAIL_USE_FLOCK):
3945 * s/darwin.h (MAIL_USE_FLOCK):
3946 * s/gnu-linux.h (MAIL_USE_FLOCK):
3947 * s/irix6-5.h (MAIL_USE_FLOCK):
3948 * s/template.h (MAIL_USE_FLOCK):
3949 Move to configure.
3950
3951 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3952
3953 * Version 23.2 released.
3954
3955 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3956
3957 * composite.c (autocmp_chars): Save point as marker before calling
3958 auto-composition-function (Bug#5984).
3959
3960 * lisp.h (restore_point_unwind): Add prototype.
3961
3962 * fileio.c (restore_point_unwind): Remove static attribute.
3963
3964 2010-05-08 Kenichi Handa <handa@m17n.org>
3965
3966 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3967 new feature of libotf and m17n-flt.
3968 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3969 Call OTF_check_features even if no specific feature is given.
3970 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3971 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3972 that OUT is NULL. Use OTF_drive_gsub_with_log and
3973 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3974 OTF_drive_gpos.
3975 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3976 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3977 Setup mflt_enable_new_feature and mflt_try_otf.
3978
3979 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3980
3981 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3982
3983 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3984 box and toolbar (Bug #6139).
3985 (xg_create_tool_bar): Remove comment (Bug #6139).
3986 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3987 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3988
3989 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3990
3991 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3992 Update dependencies.
3993
3994 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3995
3996 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3997 R2L lines.
3998
3999 2010-05-08 Glenn Morris <rgm@gnu.org>
4000
4001 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4002
4003 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4004 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4005 (termcapobj): Replace with TERMCAP_OBJ.
4006 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4007 (LIBES): Use LIBS_TERMCAP as a variable.
4008
4009 * s/freebsd.h (osreldate.h): No longer include, since this file
4010 does not use __FreeBSD_version any more.
4011
4012 * s/aix4-2.h (TERMINFO):
4013 * s/cygwin.h (TERMINFO):
4014 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4015 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4016 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4017 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4018 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4019 * s/irix6-5.h (TERMINFO):
4020 * s/netbsd.h (LIBS_TERMCAP):
4021 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4022 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4023 * s/usg5-4.h (TERMINFO):
4024 Move to configure.
4025
4026 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4027
4028 * eval.c (unbind_to): Don't unbind a local binding into the global
4029 binding when the local binding disappeared. Inversely, don't unbind
4030 a global binding into a newly created local binding.
4031 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4032 can specify the frame to use, when applicable. Adjust callers.
4033
4034 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
4035 Stefan Monnier <monnier@iro.umontreal.ca>
4036
4037 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4038
4039 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4040
4041 * w32fns.c: Include w32.h.
4042 (Fw32_shell_execute): Decode the error message before passing it
4043 to `error'. (Bug#6126)
4044
4045 * msdos.c (dos_set_window_size):
4046 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4047 instead of `XSYMBOL (foo)->value'.
4048
4049 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4050
4051 Fix the MS-DOS build, broken by autoconfiscation.
4052
4053 * Makefile.in: Don't use Make-style comments past the "start of
4054 cpp stuff" line.
4055 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4056
4057 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4058 edited directly by msdos/sed1v2.inp).
4059
4060 2010-05-07 Glenn Morris <rgm@gnu.org>
4061
4062 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4063 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4064 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4065 move out of cpp section.
4066 * s/freebsd.h (LD_SWITCH_SYSTEM):
4067 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4068 * s/netbsd.h (LD_SWITCH_SYSTEM):
4069 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4070
4071 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4072
4073 Define LIB_STANDARD and START_FILES using autoconf.
4074 * s/usg5-4.h (LIB_STANDARD):
4075 * s/netbsd.h (START_FILES):
4076 * s/irix6-5.h (LIB_STANDARD):
4077 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4078 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4079 * s/freebsd.h (START_FILES):
4080 * s/darwin.h (START_FILES):
4081 * s/cygwin.h (START_FILES):
4082 * s/aix4-2.h (LIB_STANDARD):
4083 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4084 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4085 autoconf, not cpp.
4086
4087 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4088
4089 Remove NEED_BSDTTY and NEED_UNISTD_H.
4090 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4091 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4092 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4093 <sys/ptyio.h> and <unistd.h>.
4094
4095 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4096
4097 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4098 * s/gnu.h (START_FILES): Remove empty definition.
4099
4100 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4101
4102 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4103
4104 2010-05-06 Glenn Morris <rgm@gnu.org>
4105
4106 * Makefile.in (CPP, LN_S): Remove unused variables.
4107
4108 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4111
4112 2010-05-05 Lawrence Mitchell <wence@gmx.li>
4113
4114 * m/sparc.h: Fix typo in earlier change.
4115
4116 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4117
4118 Misc tweaks.
4119 * eval.c (Fdefvaralias): Remove unintended nested if.
4120 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4121
4122 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
4123
4124 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4125
4126 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4127
4128 Remove BSD_PGRPS.
4129 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4130 * s/gnu-linux.h (BSD_PGRPS): Remove.
4131 * term.c (dissociate_if_controlling_tty):
4132 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4133 (init_sys_modes, reset_sys_modes):
4134 * emacs.c (main):
4135 * callproc.c (Fcall_process, child_setup): Remove code depending
4136 on BSD_PGRPS.
4137
4138 Remove POSIX_SIGNALS.
4139 * s/usg5-4.h (POSIX_SIGNALS):
4140 * s/netbsd.h (POSIX_SIGNALS):
4141 * s/msdos.h (POSIX_SIGNALS):
4142 * s/ms-w32.h (POSIX_SIGNALS):
4143 * s/hpux11.h (POSIX_SIGNALS):
4144 * s/gnu.h (POSIX_SIGNALS):
4145 * s/gnu-linux.h (POSIX_SIGNALS):
4146 * s/freebsd.h (POSIX_SIGNALS):
4147 * s/darwin.h (POSIX_SIGNALS):
4148 * s/cygwin.h (POSIX_SIGNALS):
4149 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4150 * s/unixware.h:
4151 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4152 * process.c (create_process):
4153 * syssignal.h:
4154 * sysdep.c (wait_for_termination, init_signals):
4155 * process.c (create_process):
4156 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4157 remove all code that assumes the contrary.
4158
4159 2010-05-04 Glenn Morris <rgm@gnu.org>
4160
4161 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4162 variable.
4163 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4164 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4165 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4166 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4167 LD_SWITCH_SYSTEM_tmp.
4168 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4169 New variables, set by configure.
4170
4171 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4172 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4173 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4174 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4175 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4176
4177 * s/aix4-2.h (C_SWITCH_SYSTEM):
4178 * m/alpha.h (C_SWITCH_MACHINE):
4179 Move to configure.in.
4180 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4181 New variables, set by configure.
4182 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4183 $c_switch_machine and $c_switch_system.
4184
4185 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4186
4187 * s/hpux10-20.h (LIB_STANDARD): New definition.
4188 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4189 on it, not used anymore.
4190
4191 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
4192
4193 * eval.c (internal_condition_case_n): Rename from
4194 internal_condition_case_2.
4195 (internal_condition_case_2): New function.
4196
4197 * xdisp.c (safe_call): Use internal_condition_case_n.
4198
4199 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4200 (internal_delete_file, Frename_file): Callers changed.
4201
4202 * buffer.c (Fkill_buffer):
4203 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4204
4205 * lisp.h: Update prototypes.
4206
4207 2010-05-03 Glenn Morris <rgm@gnu.org>
4208
4209 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4210 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4211 (LIBXT): Set with configure, not cpp.
4212 (LIBX): Remove.
4213 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4214
4215 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4216
4217 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4218 The FreeBSD is not needed, the default works, Solaris version is
4219 not needed, and the remaining case is not supported by configure.
4220
4221 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4222
4223 * xsmfns.c (CHDIR_OPT): New define.
4224 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4225 restarting emacs.
4226
4227 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4228 shut_down_emacs.
4229
4230 * emacs.c (USAGE1): Mention --chdir.
4231 (main): Handle --chdir.
4232 (standard_args): Add --chdir.
4233 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4234 #5552).
4235
4236 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4237
4238 Remove LD_SWITCH_MACHINE.
4239 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4240 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4241
4242 Clean up IRIX code.
4243 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4244 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4245
4246 Clean up AIX code.
4247 * m/ibmrs6000.inp: Remove file, unused.
4248 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4249 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4250 definition ...
4251 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4252
4253 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4254 unused.
4255
4256 2010-05-01 Eli Zaretskii <eliz@gnu.org>
4257
4258 Emulate POSIX_SIGNALS on MS-Windows.
4259
4260 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4261 (SIG_SETMASK, SIG_UNBLOCK): Define.
4262
4263 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4264 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4265 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4266
4267 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4268 New stubs.
4269
4270 Miscellaneous fixes of bidi display.
4271
4272 * xdisp.c (find_row_end): New function, refactored from display_line.
4273 (display_line): Use it.
4274 (extend_face_to_end_of_line): In almost-filled rows, extend only
4275 if the row is R2L and not continued.
4276 (display_line): Fix prepending of truncation glyphs to R2L rows.
4277 Preserve overlay and string info in row->end.
4278 (insert_left_trunc_glyphs): Support addition of left truncation
4279 glyphs to R2L rows.
4280 (set_cursor_from_row): Don't place cursor on the vertical border
4281 glyph between adjacent windows. Fix a crash when a display string
4282 is continued to the next line. Don't return zero if cursor was
4283 found by `cursor' property of a display string.
4284 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4285 test for that explicitly.
4286
4287 2010-05-01 Glenn Morris <rgm@gnu.org>
4288
4289 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4290 for clarity.
4291 (OTHER_OBJ): Remove.
4292 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4293 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4294
4295 2010-05-01 Karel Klíč <kklic@redhat.com>
4296
4297 * fileio.c (Ffile_selinux_context): Context functions may return null.
4298
4299 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4300
4301 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
4302
4303 2010-04-30 Glenn Morris <rgm@gnu.org>
4304
4305 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4306 (OTHER_OBJ): Define as a separate variable, for clarity.
4307
4308 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4309
4310 * xsettings.c: include limits.h and update file comment.
4311
4312 2010-04-30 Glenn Morris <rgm@gnu.org>
4313
4314 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4315 Set with configure, not cpp.
4316 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4317
4318 * Makefile.in (mallocobj): Remove.
4319 (otherobj): Simplify using @OTHER_OBJ@.
4320
4321 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4322 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4323 Don't bother making nsgui.h dependency platform-specific.
4324
4325 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4326
4327 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4328
4329 * process.c (read_process_output, exec_sentinel): Don't burp if the
4330 sentinel/filter kills the current buffer (bug#6060).
4331
4332 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
4333 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4334 Remove unused var `args'.
4335 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4336 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4337 * doc.c (store_function_docstring): Use XSETCAR.
4338
4339 2010-04-28 Glenn Morris <rgm@gnu.org>
4340
4341 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4342 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4343
4344 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4345
4346 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4347 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4348
4349 * Makefile.in (FONT_OBJ): New, set by configure.
4350 (FONT_DRIVERS): Use $FONT_OBJ.
4351
4352 * Makefile.in (LIBXMU): Set with configure, not cpp.
4353 * s/aix4-2.h (LIBXMU):
4354 * s/hpux10-20.h (LIBXMU):
4355 Remove definition, now set in configure.
4356
4357 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4358
4359 * m/amdx86-64.h [i386]: Move this test to configure.in.
4360
4361 2010-04-27 Glenn Morris <rgm@gnu.org>
4362
4363 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4364 * s/unixware.h (NEED_LIBW): Remove definition.
4365
4366 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4367 (TOOLKIT_LIBW): New, set by configure.
4368 (@X_TOOLKIT_TYPE@): No longer define it.
4369
4370 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4371 (MOTIF_LIBW): Set with configure, not cpp.
4372 * s/aix4-2.h (LIB_MOTIF):
4373 * s/gnu-linux.h (LIB_MOTIF):
4374 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4375
4376 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4377
4378 Reduce CPP usage.
4379 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4380 (obj): Use autoconf for unexec instead of cpp.
4381 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4382 definitions and undefs. Inline definitions in the only user.
4383 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
4384
4385 2010-04-27 Glenn Morris <rgm@gnu.org>
4386
4387 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4388 since the defaults (set by the system file) are fine in most cases.
4389 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4390 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4391 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4392 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4393 Remove definitions, since they are set correctly in s/gnu-linux.h.
4394 * s/freebsd.h (START_FILES, LIB_STANDARD):
4395 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4396 * s/hpux10-20.h (START_FILES):
4397 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4398 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4399
4400 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4401 (MOTIF_LIBW): Use $LIBXP.
4402 (otherobj): Use $WIDGET_OBJ.
4403
4404 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4405
4406 * Makefile.in (LIBS_MACHINE): Remove, unused.
4407
4408 Use autoconf instead of cpp for LIB_MATH.
4409 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4410 * s/cygwin.h (LIB_MATH): Likewise.
4411 * Makefile.in (LIB_MATH): Do not define with cpp.
4412 (LIBES): Use autoconf for LIB_MATH.
4413
4414 2010-04-26 Kenichi Handa <handa@m17n.org>
4415
4416 * composite.c (Ffind_composition_internal): Fix the return value
4417 for an automatic composition.
4418
4419 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4420
4421 Remove all NO_ARG_ARRAY uses.
4422 * fns.c (concat2, concat3, nconc2):
4423 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4424 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4425 * m/xtensa.h (NO_ARG_ARRAY):
4426 * m/template.h (NO_ARG_ARRAY):
4427 * m/sparc.h (NO_ARG_ARRAY):
4428 * m/sh3.h (NO_ARG_ARRAY):
4429 * m/mips.h (NO_ARG_ARRAY):
4430 * m/macppc.h (NO_ARG_ARRAY):
4431 * m/iris4d.h (NO_ARG_ARRAY):
4432 * m/intel386.h (NO_ARG_ARRAY):
4433 * m/ibms390x.h (NO_ARG_ARRAY):
4434 * m/ibms390.h (NO_ARG_ARRAY):
4435 * m/ibmrs6000.h (NO_ARG_ARRAY):
4436 * m/ia64.h (NO_ARG_ARRAY):
4437 * m/hp800.h (NO_ARG_ARRAY):
4438 * m/arm.h (NO_ARG_ARRAY):
4439 * m/amdx86-64.h (NO_ARG_ARRAY):
4440 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4441
4442 2010-04-25 Eli Zaretskii <eliz@gnu.org>
4443
4444 * xdisp.c (display_line): Don't assume 2nd call to
4445 get_next_display_element cannot return zero. (Bug#6030)
4446 (iterate_out_of_display_property): New function, body from pop_it.
4447 (pop_it): Use it.
4448
4449 2010-04-24 Glenn Morris <rgm@gnu.org>
4450
4451 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4452 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4453 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4454 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4455
4456 2010-04-24 Eli Zaretskii <eliz@gnu.org>
4457
4458 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4459 use `get_next_display_element' and `set_iterator_to_next' to
4460 advance to the next character, when looking for the character that
4461 begins the next row.
4462
4463 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
4464 definition of "struct Lisp_Symbol".
4465
4466 2010-04-24 Glenn Morris <rgm@gnu.org>
4467
4468 * Makefile.in (CRT_DIR): New variable, set by configure.
4469 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4470 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4471
4472 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4473
4474 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4475
4476 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4477
4478 Remove redundant flags.
4479 * s/freebsd.h (C_SWITCH_SYSTEM):
4480 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4481 * s/netbsd.h (C_SWITCH_SYSTEM):
4482 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4483 of these.
4484
4485 Simplify m/intel386.h.
4486 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4487 user: ecrt0.c.
4488 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4489 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4490 the only user: s/unixware.h.
4491 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4492 from m/intel386.h.
4493 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4494 moved here from m/intel386.h.
4495
4496 * m/mips.h: Remove #if 0 code.
4497
4498 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4499
4500 Fix display of composed characters from L2R scripts in bidi buffers.
4501 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4502 After advancing IT past the composition, resync the bidi iterator
4503 with IT's position. (Bug#5977)
4504
4505 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4506
4507 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4508 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4509
4510 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4511
4512 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4513
4514 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4515
4516 Support `display' text properties and overlay strings in bidi buffers.
4517 * xdisp.c (pop_it): When the stack is popped after displaying
4518 from a string, bidi-iterate to exit from the text portion covered
4519 by the `display' property or overlay. (Bug#5988, bug#5920)
4520
4521 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4522
4523 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4524 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4525
4526 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4527 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4528
4529 Simplify STARTFILES definition.
4530 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4531 relying on Makefile.in to define it.
4532 * s/cygwin.h (START_FILES): Likewise.
4533 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4534
4535 Clean up Solaris code.
4536 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4537 (LIB_MOTIF): Remove, configure takes care of this.
4538 (NOT_USING_MOTIF): Remove, unused.
4539 * xrdb.c: Remove #if 0-ed #include.
4540 (SYSV): Remove conditional for old SysV.
4541 * sysdep.c (closedir): Remove conditional code for Solaris,
4542 Solaris has closedir.
4543
4544 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4545
4546 * xsettings.c (read_and_apply_settings): Check if current_font is
4547 NULL before strcmp (Bug#6001).
4548
4549 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4550
4551 Clean up HP-UX files.
4552 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4553 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4554 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4555 * s/hpux10-20.h: ... to the only user, here.
4556
4557 2010-04-21 Eli Zaretskii <eliz@gnu.org>
4558
4559 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4560 use buffer-local values of paragraph-start and paragraph-separate.
4561 <paragraph_start_re, paragraph_separate_re>: Rename from
4562 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4563 (Bug#5992)
4564
4565 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4566
4567 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4568 current_tool_bar_style are new.
4569 (store_config_changed_event): Rename from store_font_changed_event.
4570 (XSETTINGS_TOOL_BAR_STYLE): New define.
4571 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4572 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4573 HAVE_XFT.
4574 (something_changedCB): store_font_changed_event is now
4575 store_config_changed_event.
4576 (parse_settings): Rename from parse_xft_settings. Read
4577 non-xft xsettings outside #ifdef HAVE_XFT.
4578 (read_settings): Renamed from read_xft_settings.
4579 (apply_xft_settings): Take current settings as parameter. Do not
4580 call read_(xft)_settings.
4581 (read_and_apply_settings): New function.
4582 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4583 read_and_apply_settings if there are settings to be read.
4584 (init_xsettings): Renamed from init_xfd_settings.
4585 Call read_and_apply_settings unconditionally.
4586 (xsettings_initialize): Call init_xsettings.
4587 (Ftool_bar_get_system_style): New function.
4588 (syms_of_xsettings): Define Qmonospace_font_name and
4589 Qtool_bar_style. Initialize current_tool_bar_style to nil.
4590 defsubr Stool_bar_get_system_style. Fprovide on
4591 dynamic-setting.
4592 Move misplaced HAVE_GCONF
4593
4594 * xsettings.h (Ftool_bar_get_system_style): Declare.
4595
4596 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4597 Qtext, Qboth, Qboth_horiz are new.
4598 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4599 Vtool_bar_style, tool_bar_max_label_size.
4600
4601 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4602
4603 * keyboard.c: QClabel is new.
4604 (parse_tool_bar_item): Take out QClabel from tool bar items.
4605 Try to construct a label if ther is no QClabel.
4606 (syms_of_keyboard): Intern :label as QClabel.
4607
4608 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4609 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4610 New.
4611
4612 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4613 dynamic-setting.el.
4614
4615 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4616 (xg_make_tool_item, xg_show_toolbar_item): New function.
4617 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4618 Call xg_make_tool_item to make a tool bar item.
4619 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4620
4621 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4622 into account for toolbars.
4623
4624 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4625
4626 * data.c (make_blv): Declarations before code (Bug#5993).
4627
4628 2010-04-21 Glenn Morris <rgm@gnu.org>
4629
4630 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4631 Define using autoconf, not cpp.
4632 (LIBXSM): New variable, set by autoconf.
4633 (LIBXT): Use $LIBXSM.
4634
4635 2010-04-21 Dan Nicolaescu <local_user@dannlt>
4636
4637 Remove NOMULTIPLEJOBS, unused.
4638 * s/template.h (NOMULTIPLEJOBS):
4639 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4640
4641 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4642 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4643 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4644 detects -znocombreloc and passes it to the linker
4645 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4646
4647 2010-04-21 Glenn Morris <rgm@gnu.org>
4648
4649 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4650
4651 2010-04-21 Karel Klíč <kklic@redhat.com>
4652
4653 * Makefile.in (LIBSELINUX_LIBS): New.
4654 (LIBES): Add $LIBSELINUX_LIBS.
4655 * eval.c, lisp.h (call7): New function.
4656 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4657 (Ffile_selinux_context, Fset_file_selinux_context):
4658 New functions.
4659 (Fcopy_file): New parameter preserve-selinux-context.
4660 (Frename_file): Preserve selinux context when renaming by copy-file.
4661
4662 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
4663 Eli Zaretskii <eliz@gnu.org>
4664
4665 Don't depend on cm.c or termcap.c on Windows, use stubs.
4666 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4667 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4668 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4669 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4670 (sys_tputs, sys_tgetstr): New stubs.
4671 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4672 (tputs, tgetstr): New; define to sys_*.
4673
4674 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
4675
4676 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4677
4678 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4679
4680 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4681 Just signal a warning rather than an error when inside a let.
4682 (Fmake_variable_frame_local): Add the same test.
4683
4684 * font.c (syms_of_font): Make the style table vars read-only.
4685
4686 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4687 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4688
4689 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4690
4691 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4692
4693 Fix R2L paragraph display on TTY.
4694
4695 * xdisp.c (unproduce_glyphs): New function.
4696 (display_line): Use it when produced glyphs are discarded from R2L
4697 glyph rows.
4698 (append_composite_glyph): In R2L rows, prepend the glyph rather
4699 than appending it.
4700
4701 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4702 rather than append it. Set up the resolved_level and bidi_type
4703 attributes of the appended glyph.
4704 (produce_special_glyphs): Mirror the backslash continuation
4705 character in R2L lines.
4706
4707 Implement display of R2L paragraphs in GUI sessions.
4708
4709 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4710 append_stretch_glyph.
4711 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4712 off-by-one error in computing x at end of text in the row.
4713 (append_stretch_glyph): In reversed row, prepend the glyph rather
4714 than append it. Set resolved_level and bidi_type of the glyph.
4715 (extend_face_to_end_of_line): If the row is reversed, prepend a
4716 stretch glyph whose width is such that the rightmost glyph will be
4717 drawn at the right margin of the window. Fix off-by-one error on
4718 TTY frames in testing whether a line needs face extension. Fix
4719 face extension at ZV. If this is the last glyph row, use
4720 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4721 region face.
4722 (set_cursor_from_row, display_line): Use
4723 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4724 row->continuation_lines_width.
4725 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4726 are at ZV. Fixes a crash when reseated to ZV by
4727 try_window_reusing_current_matrix.
4728 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4729 which happens with R2L glyph rows. Fixes a crash when inserting a
4730 character at end of an R2L line.
4731 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4732 treat them as having zero-width characters. Improve comments.
4733 Don't reverse pos_before and pos_after for reversed glyph rows.
4734 Set cursor.x to negative value when the cursor might be on the
4735 left fringe.
4736 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4737 left fringe, not the right one.
4738 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4739 (erase_phys_cursor): For reversed cursor_row, support cursor on
4740 the left fringe.
4741
4742 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4743 of continuation indicators on the fringes.
4744 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4745 left fringe.
4746
4747 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4748 draw cursor on the left fringe.
4749
4750 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4751 cursor on the left fringe.
4752
4753 * dispnew.c (update_text_area): Handle reversed desired rows when
4754 the cursor is on the left fringe.
4755 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4756 below, not by 0, for when the cursor is on the left fringe.
4757
4758 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4759
4760 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4761 widget is a scrollbar.
4762
4763 2010-04-20 Kenichi Handa <handa@m17n.org>
4764
4765 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4766 only when the arg CHARSET_LIST is nil.
4767
4768 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4769
4770 Make variable forwarding explicit rather the using special values.
4771 Basically, this makes the structure of buffer-local values and object
4772 forwarding explicit in the type of Lisp_Symbols rather than use
4773 special Lisp_Objects for that. This tends to lead to slightly more
4774 verbose code, but is more C-like, simpler, and makes it easier to make
4775 sure we handled all cases, among other things by letting the compiler
4776 help us check it.
4777 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4778 Removing forwarding objects.
4779 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4780 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4781 explicit rather than hiding them inside Lisp_Object "values".
4782 (XFWDTYPE): New macro.
4783 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4784 (XBUFFER_LOCAL_VALUE): Remove.
4785 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4786 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4787 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4788 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4789 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4790 Remove the Lisp_Misc_* header.
4791 (struct Lisp_Buffer_Local_Value): Redefine.
4792 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4793 (struct Lisp_Misc_Any): Add filler to get the right size.
4794 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4795 Lisp_Intfwd.
4796 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4797 (DEFVAR_KBOARD): Allocate a forwarding object.
4798 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4799 (let_shadows_global_binding_p): New function.
4800 (union Lisp_Val_Fwd): New type.
4801 (make_blv): New function.
4802 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4803 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4804 (swap_in_symval_forwarding, find_symbol_value, Fset)
4805 (let_shadows_buffer_binding_p, set_internal, default_value)
4806 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4807 (Fkill_local_variable, Fmake_variable_frame_local)
4808 (Flocal_variable_p, Flocal_variable_if_set_p)
4809 (Fvariable_binding_locus):
4810 * xdisp.c (select_frame_for_redisplay):
4811 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4812 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4813 * frame.c (store_frame_param):
4814 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4815 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4816 value structure.
4817 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4818 (clone_per_buffer_values): Only adjust markers into the current buffer.
4819 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4820 (Fbuffer_local_value, set_buffer_internal_1)
4821 (swap_out_buffer_local_variables):
4822 Adapt to the new symbol value structure.
4823 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4824 (defvar_per_buffer): Take a new arg for the fwd object.
4825 (buffer_lisp_local_variables): Return a proper alist (different fix
4826 for bug#4138).
4827 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4828 (Fgarbage_collect): Don't handle buffer_defaults specially.
4829 (mark_object): Handle new symbol value structure rather than the old
4830 special Lisp_Misc_* objects.
4831 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4832 * term.c (set_tty_color_mode):
4833 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4834 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4835 a buffer_local_flags.
4836 * print.c (print_object): Get rid of impossible forwarding objects.
4837
4838 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4839
4840 * bidi.c (bidi_get_type, bidi_get_category)
4841 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4842 (bidi_type_of_next_char, bidi_level_of_next_char):
4843 Declare static. Use `INLINE' rather than `inline'.
4844
4845 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4846
4847 * dired.c (Ffile_attributes): Fix typo in docstring.
4848
4849 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4850
4851 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4852 NSInteger (Bug#5811).
4853
4854 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4855
4856 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4857 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4858
4859 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4860
4861 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4862
4863 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4864
4865 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4866 terminal frames (Bug#5837).
4867
4868 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4869
4870 * .gdbinit (xsubchartable): New command.
4871
4872 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4873
4874 * xdisp.c (display_line): Don't write beyond the last glyph row in
4875 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4876 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4877 and
4878 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4879
4880 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4881
4882 * alloc.c (Fpurecopy): Hash-cons if requested.
4883 (syms_of_alloc): Update purify-flag docstring.
4884
4885 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4886
4887 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4888 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4889
4890 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4891
4892 Fix a crash when an NSM character is inserted at BEGV.
4893
4894 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4895 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4896 NEUTRAL_B or UNKNOWN_BT.
4897
4898 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4899
4900 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4901 other rows with cursor unless they are different from this row and
4902 this row is part of a continued line. (Bug#5943)
4903
4904 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4905
4906 * s/freebsd.h: Restore osreldate.h include.
4907 Suggested by Naohiro Aota.
4908
4909 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4910
4911 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4912
4913 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4914
4915 * s/cygwin.h: Avoid linking against static libgcc.
4916
4917 2010-04-15 Juri Linkov <juri@jurta.org>
4918
4919 * window.c: Add Qscroll_command.
4920 Remove Vscroll_preserve_screen_position_commands.
4921 (window_scroll_pixel_based, window_scroll_line_based): Check the
4922 `scroll-command' property on the last command instead of searching
4923 the last command in Vscroll_preserve_screen_position_commands.
4924 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4925 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4926 (scroll-preserve-screen-position): Doc fix.
4927 (Vscroll_preserve_screen_position_commands): Remove variable.
4928
4929 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4930
4931 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4932
4933 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4934
4935 Reduce cpp use in Makefile.in.
4936 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4937 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4938 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4939 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4940 (CRT0_COMPILE): Remove, inline it in the only user.
4941
4942 2010-04-14 Juri Linkov <juri@jurta.org>
4943
4944 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4945 `scroll-up-command' and `M-v' from `scroll-down' to
4946 `scroll-down-command'.
4947
4948 2010-04-14 Juri Linkov <juri@jurta.org>
4949
4950 * window.c (Vscroll_preserve_screen_position_commands): New variable
4951 with the default value as the list of Qscroll_down and Qscroll_up.
4952 (window_scroll_pixel_based, window_scroll_line_based): Search the
4953 last command in the list Vscroll_preserve_screen_position_commands
4954 instead of comparing with Qscroll_up and Qscroll_down.
4955
4956 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4957
4958 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4959 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4960 does that.
4961
4962 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4963 to zero.
4964
4965 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4966
4967 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4968
4969 Try to solve the problem of spurious EOF chars in long lines of text
4970 sent to interactive subprocesses.
4971 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4972 (system_process_attributes): Remove unused var `ttotal'.
4973 * process.c (send_process): Don't bother breaking long line with EOF
4974 chars when talking to ttys any more.
4975 (wait_reading_process_output): Output a warning when called in such
4976 a way that it could block without being interruptible.
4977
4978 Try to detect file modification within the same second.
4979 * buffer.h (struct buffer): New field modtime_size.
4980 * buffer.c (reset_buffer): Initialize it.
4981 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4982 (Fverify_visited_file_modtime): Check it.
4983 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4984 (Fset_visited_file_modtime): Set (or clear) it.
4985
4986 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4987
4988 * process.c (status_notify): Remove unused var `ro'.
4989
4990 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4991
4992 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4993 more than one visual (Bug#5938).
4994
4995 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4996
4997 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4998 Undefine.
4999
5000 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5001
5002 Remove C_SWITCH_SYSTEM_TEMACS.
5003 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5004 (malloc, realloc, free): Use emacs, not temacs for conditional
5005 definition.
5006
5007 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5008 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5009
5010 Use autoconf, not cpp for some variables.
5011 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5012 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5013 (ALL_CFLAGS): Use them as make variables.
5014 (really-lwlib, really-oldXMenu): Do not pass them.
5015
5016 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5017
5018 * xmenu.c (apply_systemfont_to_dialog): New.
5019 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5020
5021 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5022
5023 * process.c (exec_sentinel): Preserve current-buffer.
5024
5025 * process.c (read_process_output): Move the save-current-buffer to
5026 apply to both the filter and the non-filter branches.
5027
5028 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5029
5030 * s/msdos.h (UNEXEC): New definition.
5031
5032 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5033
5034 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5035 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5036
5037 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5038 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5039 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5040 TRY_WINDOW_CHECK_MARGINS.
5041
5042 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5043 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5044 width only when it is for padding.
5045
5046 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5047
5048 * xfns.c (Fx_show_tip): Call try_window in a loop until
5049 fonts_changed_p is zero (Bug#2423).
5050
5051 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5052
5053 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5054 the end of TEXT_AREA. (Bug#5856)
5055
5056 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5057
5058 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5059 HAVE_GCONF.
5060
5061 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5062
5063 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5064 prev.orig_type, for resolving type of NSM. (Bug#5858)
5065
5066 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5067
5068 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5069 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5070 in current_font.
5071 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
5072 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5073 New functions.
5074 (syms_of_xsettings): Initialize current_font.
5075 defsubr Sfont_get_system_normal_font.
5076
5077 * xsettings.h (Ffont_get_system_normal_font)
5078 (xsettings_get_system_normal_font): Declare.
5079
5080 * xfns.c (extern xlwmenu_default_font): Remove.
5081 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5082 to xlwmenu.c.
5083
5084 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5085 menu items in UTF-8.
5086
5087 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5088 (apply_systemfont_to_menu): New function.
5089 (set_frame_menubar, create_and_show_popup_menu): Call
5090 apply_systemfont_to_menu.
5091
5092 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5093
5094 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5095 FRAME_LINE_TO_PIXEL_Y.
5096
5097 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5098 pixelwidth/height.
5099
5100 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5101
5102 Simplify code for HP machines.
5103 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5104 for GNU_LINUX, not needed.
5105 (UNEXEC, NEED_BSDTTY): Move definitions...
5106 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5107
5108 * m/iris4d.h (UNEXEC): Move definition ...
5109 * s/irix6-5.h (UNEXEC): ... here.
5110
5111 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5112
5113 * xfns.c (set_machine_and_pid_properties): New function.
5114 (Fx_create_frame): Call set_machine_and_pid_properties.
5115
5116 2010-04-03 Eli Zaretskii <eliz@gnu.org>
5117
5118 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5119 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5120 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5121
5122 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5123 in this function. (Bug#5703)
5124
5125 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
5126
5127 * nsterm.h: Fix last change.
5128
5129 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5130
5131 * m/intel386.h (NO_REMAP): Move definition ...
5132 * s/msdos.h (NO_REMAP): ... here.
5133
5134 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5135
5136 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5137 used on those platforms.
5138
5139 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5140
5141 Remove extern errno declarations.
5142 * xterm.c:
5143 * xrdb.c:
5144 * w32term.c:
5145 * unexec.c:
5146 * unexaix.c:
5147 * sysdep.c:
5148 * process.c:
5149 * lread.c:
5150 * keyboard.c:
5151 * floatfns.c:
5152 * filelock.c:
5153 * fileio.c:
5154 * emacs.c (main):
5155 * ecrt0.c:
5156 * dispnew.c:
5157 * callproc.c:
5158 * buffer.c: Remove errno extern declarations.
5159 * s/netbsd.h (NEED_ERRNO): Remove.
5160
5161 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5162
5163 Remove all uses of LIBX11_SYSTEM.
5164 * Makefile.in (LIBX11_SYSTEM): Remove.
5165 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5166 instead.
5167
5168 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5169
5170 Remove support for DJGPP v1.x (bug#5813).
5171
5172 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
5173 * s/msdos.h:
5174 * unexec.c (make_hdr, copy_text_and_data):
5175 * sysdep.c (wait_for_termination, sys_subshell):
5176 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
5177 (IT_set_terminal_modes, __write, _rename, gethostname)
5178 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5179 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5180 the value of __DJGPP__.
5181 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5182 compatibility code.
5183 * lread.c:
5184 * gmalloc.c (memalign):
5185 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5186 * emacs.c (main):
5187 * dosfns.c (init_dosfns):
5188 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5189
5190 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5191
5192 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5193 string with `cursor' property comes from an `after-string'
5194 overlay. (Bug#5816)
5195
5196 2010-04-01 Glenn Morris <rgm@gnu.org>
5197
5198 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5199 Define as Makefile variables.
5200 (LIBX): Use above variables rather than directly using autoconf.
5201
5202 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5203
5204 Clean up BSD_SYSTEM use.
5205 * xterm.c:
5206 * process.c:
5207 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5208 for including <sys/ioctl.h>.
5209 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5210 code is only used for MSDOS.
5211
5212 2010-03-31 Juri Linkov <juri@jurta.org>
5213
5214 * image.c: Add `Qextension_data'.
5215 (syms_of_image): Initialize and staticpro `Qextension_data'.
5216 (Fimage_metadata): Rename from `Fimage_extension_data'.
5217 (gif_load): Put GIF extension data to the property
5218 `Qextension_data'.
5219
5220 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5221
5222 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5223 * nsterm.h: Fix prototype.
5224
5225 2010-03-31 Eli Zaretskii <eliz@gnu.org>
5226
5227 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5228 trailing whitespace in right-to-left rows.
5229
5230 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5231
5232 Get rid of the direct_output optimizations.
5233 * keyboard.c (nonundocount): Remove extern declaration.
5234 (command_loop_1): Remove brittle optimisation for cheap and
5235 common operations.
5236 * xdisp.c (redisplay_internal): Don't bother checking
5237 redisplay_performed_directly_p any more.
5238 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5239 any more.
5240 * dispnew.c (redisplay_performed_directly_p)
5241 (direct_output_for_insert, direct_output_forward_char):
5242 * dispextern.h (redisplay_performed_directly_p)
5243 (direct_output_for_insert, direct_output_forward_char): Remove.
5244 * cmds.c (nonundocount): Make it static.
5245
5246 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
5247
5248 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5249
5250 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
5251
5252 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5253 invisible (Bug#5766).
5254
5255 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
5256
5257 * xdisp.c (x_consider_frame_title, update_window_cursor):
5258 Remove HAVE_NS conditionals.
5259 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
5260
5261 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5262 filename for the title.
5263 (ns_set_doc_edited): Do nothing if the selected window is a
5264 minibuffer window.
5265
5266 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5267 ns_set_doc_edited.
5268
5269 * nsterm.m: Remove unneeded prototype.
5270
5271 2010-03-31 Glenn Morris <rgm@gnu.org>
5272
5273 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5274 in the DOC file. (Bug#5336)
5275
5276 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5277
5278 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5279
5280 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5281
5282 * window.c (keys_of_window): Remove redundant/overridden bindings.
5283
5284 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5285
5286 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5287 Restore original behavior when the iterator is not bidi_p.
5288
5289 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5290
5291 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5292
5293 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5294
5295 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5296 are outside the range of cached character positions.
5297
5298 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
5299
5300 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5301
5302 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5303
5304 Initial support for bidirectional editing.
5305
5306 * Makefile.in (obj): Include bidi.o.
5307 (bidi.o): New target.
5308
5309 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5310 ($(BLD)/bidi.$(O)): New target.
5311
5312 * bidi.c: New file.
5313
5314 * buffer.h (struct buffer): New members bidi_display_reordering
5315 and bidi_paragraph_direction.
5316
5317 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5318 and bidi_paragraph_direction.
5319 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5320 and bidi-paragraph-direction.
5321 (Fbuffer_swap_text): Swap the values of
5322 bidi_display_reordering and bidi_paragraph_direction.
5323
5324 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5325 (bidi_type_t, bidi_dir_t): New types.
5326 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5327 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5328 prev_stop, base_level_stop, and eol_pos.
5329 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5330 (IT_STACK_SIZE): Enlarge to 5.
5331 (struct glyph_row): New member reversed_p.
5332 <string_buffer_position>: Update prototype.
5333 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5334 glyph_row if bidi_it.paragraph_dir == R2L.
5335 (struct glyph): New members resolved_level and bidi_type.
5336
5337 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5338 processing or buffer's direction is right-to-left.
5339 (prepare_desired_row): Preserve the reversed_p flag.
5340 (row_equal_p): Compare the reversed_p attributes as well.
5341
5342 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5343 bidi_init_it and set it->paragraph_embedding from the current
5344 buffer's value of bidi_paragraph_direction.
5345 (reseat_1): Initialize bidi_it.first_elt.
5346 (set_iterator_to_next, next_element_from_buffer): Use the value of
5347 paragraph_embedding to determine the paragraph direction.
5348 (set_iterator_to_next): Under bidi reordering, call
5349 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5350 new_paragraph flag is set in the bidi iterator.
5351 (next_element_from_buffer): If bidi_it.first_elt is set,
5352 initialize paragraph direction and find the first character to
5353 display in the visual order. If reseated to a middle of a line,
5354 prime the bidi iterator starting at the line's beginning. Handle
5355 the situation where we overstepped stop_charpos due to
5356 non-linearity of the bidi iteration. Likewise for when we back up
5357 beyond the previous stop_charpos. When moving across stop_charpos,
5358 record it in prev_stop.
5359 (display_line): Set row->end and it->start for the next row to the
5360 next character in logical order. Always extend reversed_p rows to
5361 the end of line, even if they end at ZV. Copy the reversed_p flag
5362 to the next glyph row. Keep calling set_cursor_from_row for
5363 bidi-reordered rows even if we already have a possible candidate
5364 for cursor position. Set row_end after all the row's glyphs have
5365 been produced, by looping over the glyphs. Record the position
5366 after EOL in it->eol_pos, and use it to set end_pos of the last
5367 row produced for a continued line.
5368 <Qright_to_left, Qleft_to_right>: New variables.
5369 (syms_of_xdisp): Initialize and staticpro them.
5370 (string_buffer_position_lim): New function.
5371 (string_buffer_position): Most of code moved to
5372 string_buffer_position_lim. Last argument and return value are
5373 now EMACS_INT; all callers changed.
5374 (set_cursor_from_row): Rewritten to support bidirectional text and
5375 reversed glyph rows.
5376 (text_outside_line_unchanged_p, try_window_id): Disable
5377 optimizations if we are reordering bidirectional text and the
5378 paragraph direction can be affected by the change.
5379 (append_glyph, append_composite_glyph)
5380 (produce_image_glyph, append_stretch_glyph): Set the
5381 resolved_level and bidi_type members of each glyph.
5382 (append_glyph): If the glyph row is reversed, prepend the glyph
5383 rather than appending it.
5384 (handle_stop_backwards): New function.
5385 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5386 (reseat): call handle_stop_backwards to recompute prev_stop and
5387 base_level_stop for the new position.
5388 (handle_invisible_prop): Under bidi iteration, skip invisible text
5389 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5390 paragraph direction. Update IT->prev_stop after skipping
5391 invisible text.
5392 (move_it_in_display_line_to): New variables prev_method
5393 and prev_pos. Compare for strict equality in
5394 BUFFER_POS_REACHED_P.
5395 (try_cursor_movement): Examine all the candidate rows that occlude
5396 point, to return the best match. If rows are bidi-reordered
5397 and point moved backwards, back up to the row that is not a
5398 continuation line, and start looking for a suitable row from
5399 there.
5400
5401 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5402 rather than appending, if the glyph_row's reversed_p flag is set.
5403 Set the resolved_level and bidi_type members of each glyph.
5404
5405 * .gdbinit (pbiditype): New command.
5406 (pgx): Use it to display bidi level and type of the glyph.
5407 (pitx): Display some bidi information about the iterator.
5408 (prowlims, pmtxrows): New commands.
5409
5410 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5411
5412 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5413 * s/usg5-4.h (LIBS_DEBUG):
5414 * s/irix6-5.h (C_DEBUG_SWITCH):
5415 * s/gnu-linux.h (LIBS_DEBUG):
5416 * s/darwin.h (LIBS_DEBUG):
5417 * s/bsd-common.h (LIBS_DEBUG):
5418 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5419 * m/iris4d.h (LIBS_DEBUG):
5420 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5421
5422 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5423 (LIBS_DEBUG): Remove definition.
5424
5425 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
5426
5427 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5428 Windows.
5429
5430 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5431
5432 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5433 `connect' (Bug#5723).
5434
5435 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
5436
5437 * process.c (Fmake_network_process): Call `select' for interrupted
5438 `connect' rather than creating new socket (Bug#5173).
5439
5440 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
5441
5442 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5443
5444 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5445
5446 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5447
5448 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5449
5450 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5451 XLoadQueryFont.
5452
5453 2010-03-24 Kenichi Handa <handa@m17n.org>
5454
5455 * coding.c (decode_coding_ccl): Fix previous change for the
5456 multibyte case.
5457 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5458 case that the output buffer is fullfilled.
5459 (encode_coding): Setup ccl program here.
5460
5461 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5462
5463 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5464
5465 Simplify LIBS_MACHINE definitions.
5466 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5467 * m/iris4d.h (LIBS_MACHINE): Likewise.
5468 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5469 * s/aix4-2.h (LIBS_SYSTEM): ... here.
5470 * s/netbsd.h: Remove commented out code.
5471
5472 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5473
5474 Remove dead code dealing with POSIX_SIGNALS.
5475 * atimer.c (set_alarm): Remove dead code, all USG systems define
5476 POSIX_SIGNALS.
5477 * data.c (arith_error): Likewise.
5478 * keyboard.c (input_available_signal, handle_user_signal)
5479 (interrupt_signal): Likewise.
5480 * process.c (sigchld_handler): Likewise.
5481 (create_process): Remove if 0 code. Remove HPUX conditional when
5482 !defined (POSIX_SIGNALS), it cannot be true.
5483 * syssignal.h: Remove USG5_4 and USG conditionals when
5484 !POSIX_SIGNALS, they cannot be true.
5485
5486 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5487 NO_SOCK_SIGIO, not used anymore.
5488
5489 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5490
5491 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5492 support vax on BSDs.
5493
5494 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5495 * s/aix4-2.h (ORDINARY_LINK): ... here.
5496
5497 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5498
5499 * Makefile.in (abs_builddir): Define.
5500 (bootstrap_exe): Use it.
5501 (VPATH): Use $(srcdir) instead of @srcdir@.
5502
5503 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5504
5505 * Makefile.in (bootstrap_exe): Use an absolute name.
5506
5507 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5508
5509 Remove support for old GNU/Linux using libc version 5.
5510 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5511 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5512
5513 Consolidate redundant definitions in s/bsd-common.h.
5514 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5515 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5516 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5517 doing it in all files that include this one.
5518 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5519 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5520 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5521 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5522 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5523 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5524 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5525 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5526 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5527
5528 Consolidate redundant definitions.
5529 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5530 it's undefined in all files that include this one.
5531 (POSIX_SIGNALS): Define here instead of doing it in all files that
5532 include this one.
5533 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5534 (POSIX_SIGNALS): Do not define.
5535 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5536 (POSIX_SIGNALS): Do not define.
5537 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5538 (POSIX_SIGNALS): Do not define.
5539
5540 Remove support for old UNIX System V systems.
5541 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5542 * s/usg-5-4-2.h: Remove.
5543
5544 Remove support for Solaris on PPC and for old versions.
5545 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5546 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5547 that cancel each other.
5548 * s/sol2-3.h:
5549 * s/sol2-4.h:
5550 * s/sol2-5.h: Remove.
5551 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5552 (NO_REMAP): Remove, unused.
5553 (UNEXEC): Move definition ...
5554 * s/aix4-2.h (UNEXEC): ... here.
5555
5556 * s/openbsd.h: Remove support for non-ELF and for systems that do
5557 not support shared libraries.
5558 * s/netbsd.h:
5559 * s/freebsd.h: Likewise.
5560
5561 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5562
5563 Remove non-working support for lynxos 3.0.
5564 * s/lynxos.h: Remove file.
5565
5566 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5567 COFF_BSD_SYMBOLS, nothing defines it anymore.
5568
5569 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5570
5571 Remove obsolete uses of HAVE_SHM.
5572 * emacs.c (standard_args):
5573 (Fdump_emacs):
5574 (syms_of_emacs): Remove code depending on HAVE_SHM.
5575
5576 * alloc.c: Remove HAVE_SHM dependent definition.
5577
5578 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5579
5580 2010-03-18 Glenn Morris <rgm@gnu.org>
5581
5582 * emacs.c (USAGE4): Hard-code bug address.
5583 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5584 (bug_reporting_address): Remove.
5585 (main): Don't call bug_reporting_address.
5586
5587 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5588 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5589
5590 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
5591
5592 * xfns.c (Fx_create_frame):
5593 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5594 on left.
5595
5596 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5597
5598 * editfns.c (Fformat): Account for string precision when computing
5599 field width (Bug#5710).
5600
5601 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
5602
5603 * xfns.c (Fx_create_frame): Set default to Qright.
5604
5605 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5606 all window systems.
5607
5608 2010-03-12 Eli Zaretskii <eliz@gnu.org>
5609
5610 These changes remove termcap.c from the build on Posix platforms.
5611 * Makefile.in (termcapobj): Move termcap.o from here...
5612 (MSDOS_OBJ): ...to here.
5613 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5614 now identical to when LIBS_TERMCAP is defined.
5615
5616 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5617
5618 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5619
5620 * config.in: Regenerated. (See top-level ChangeLog.)
5621
5622 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
5623
5624 * Branch for 23.2.
5625
5626 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5627
5628 Cleanup setup of gl_state in various parts of the code.
5629 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5630 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5631 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5632 (skip_chars):
5633 * regex.c (regex_compile): Use it.
5634 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5635 it's now set in regex_compile when/if we need it.
5636
5637 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5638
5639 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5640 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5641 (QUIT): Use it to consolidate code and remove redundancy.
5642 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5643
5644 * regex.c (regex_compile): Setup gl_state as well.
5645
5646 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5647 (in_classes): Use CONSP before XCAR/XCDR.
5648
5649 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
5650
5651 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5652 definitions, so that keyboard macros are correctly handled
5653 (Bug#5481).
5654
5655 2010-03-02 Eli Zaretskii <eliz@gnu.org>
5656
5657 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5658 text that could be relocated inside the call to emacs_mule_char.
5659 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5660 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5661
5662 2010-03-02 Kenichi Handa <handa@m17n.org>
5663
5664 * character.c (parse_str_as_multibyte): Fix handling of the
5665 multibyte form of raw-bytes.
5666 (str_as_multibyte): Likewise.
5667
5668 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5669 form of raw-bytes.
5670
5671 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * charset.c (load_charset_map_from_file)
5674 (load_charset_map_from_vector): Zero out allocated
5675 charset_map_entries before using them.
5676
5677 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5678
5679 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5680
5681 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5684 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
5685
5686 2010-02-26 Kenichi Handa <handa@m17n.org>
5687
5688 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5689
5690 * xdisp.c (reseat_to_string): Fix previous change.
5691
5692 2010-02-26 David Reitter <david.reitter@gmail.com>
5693
5694 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5695 Lisp_Object (Bug#4736).
5696
5697 2010-02-25 Kenichi Handa <handa@m17n.org>
5698
5699 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5700
5701 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5702
5703 * xterm.c (XTflash): Move declarations before statements.
5704
5705 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5706 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5707 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5708 (xg_create_tool_bar): Remove unused variables.
5709 (x_wm_set_size_hint): Move declarations before statements.
5710 (xg_create_frame_widgets): Remove variable grav.
5711
5712 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5715
5716 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5717
5718 * term.c (fatal): Add a final \n if needed (bug#5596).
5719
5720 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5721
5722 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5723
5724 2010-02-18 Glenn Morris <rgm@gnu.org>
5725
5726 * callint.c (Finteractive): Doc fix.
5727
5728 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5729
5730 * coding.c (record_conversion_result):
5731 Handle CODING_RESULT_INSUFFICIENT_DST.
5732 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5733 memory allocation error.
5734
5735 2010-02-17 Kenichi Handa <handa@m17n.org>
5736
5737 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5738 Fix for the case that the output buffer is fullfilled.
5739 (decode_coding): Setup ccl program here. Keep looping when the
5740 decoder stopped because the output buffer is
5741 fullfilled (bug#5534).
5742
5743 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5744
5745 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5746
5747 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5748 bug #5571.
5749 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5750 overdrawn.
5751
5752 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5753
5754 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5755 doing_interact here.
5756 (ice_connection_closed): New function.
5757 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5758 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5759 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5760 returns I/O error.
5761 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5762 bug #5512.
5763
5764 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5765
5766 * nsfont.m (nsfont_open): The system's value for the font descent
5767 is negative, so round it down to avoid clipping.
5768
5769 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5770
5771 * charset.c (load_charset_map_from_file)
5772 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5773 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5774
5775 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5776
5777 * charset.c (load_charset_map_from_file): Allocate large
5778 charset_map_entries structure on the heap rather than the stack.
5779 (Bug#5526).
5780
5781 2010-01-31 Kenichi Handa <handa@m17n.org>
5782
5783 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5784 size in NAME is invalid, return -1 (Bug#5396).
5785
5786 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5787
5788 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5789 <deactivated@gmail.com> (Bug#3605).
5790
5791 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5792
5793 * fileio.c (Frename_file): Correctly rename symlinks to
5794 directories (Bug#5496).
5795
5796 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5797
5798 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5799
5800 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5801
5802 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5803
5804 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5805
5806 * frame.c (DEFAULT_ROWS): Change default to 35.
5807
5808 * xfns.c (x_default_font_parameter): Change default XFT font to
5809 monospace-10 (Bug#3643).
5810
5811 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5812
5813 * w32inevt.c (key_event): Remove unnecessary comparison of
5814 event->uChar.AsciiChar with 128.
5815
5816 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5817
5818 * fileio.c (Frename_file): Fix last change (Bug#5487).
5819
5820 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5821
5822 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5823
5824 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5825
5826 * xfns.c (Fx_create_frame): Remove window size matching code from
5827 2010-01-15.
5828 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5829
5830 2010-01-27 Jason Rumney <jasonr@gnu.org>
5831
5832 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5833 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5834
5835 2010-01-27 Kenichi Handa <handa@m17n.org>
5836
5837 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5838 pattern string (Bug#4209).
5839
5840 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5841
5842 * fileio.c (Frename_file): Call copy-directory and
5843 delete-directory for directories, in order to handle cross-device
5844 renaming (Bug#3353).
5845
5846 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5847
5848 * xfns.c (Fx_create_frame): If frame height is too big, try
5849 sizes 24 and 10. Bug #3643.
5850
5851 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5852
5853 Try and fix bug#788, hopefully for real this time.
5854 * keymap.c (shadow_lookup): Add `remap' arg.
5855 (describe_map, describe_vector): Update calls to shadow_lookup.
5856 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5857 `remapped' so this flag is applicable to `sequence'. Be careful to
5858 perform remapping during shadow_lookup check of remapped_sequences.
5859
5860 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5861
5862 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5863 png_check_sig, which has been removed in libpng 1.4.
5864
5865 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5866
5867 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5868 lacks this header file).
5869
5870 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5871
5872 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5873 as in Emacs 22.
5874
5875 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5876
5877 * lisp.h (make_pure_string): String pointer arg now points to const.
5878
5879 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5880 args now point to const.
5881
5882 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5883
5884 * lread.c (Fload): Don't treat files without .elc extension as
5885 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5886 them. (bug#5303)
5887
5888 2010-01-20 Kenichi Handa <handa@m17n.org>
5889
5890 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5891 treat the source as actual byte sequence.
5892
5893 2010-01-19 Alan Mackenzie <acm@muc.de>
5894
5895 Fix spurious before-change-functions invocation from (insert ?\n).
5896 * textprop.c (set_text_properties): Rename parameter
5897 `signal_after_change_p' to `coherent_change_p', and make the
5898 invocation of `modify_region' conditional on it.
5899
5900 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5901
5902 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5903 for debug purpose.
5904 (syms_of_xsettings): Declare xft-settings.
5905
5906 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5907
5908 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5909
5910 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5911
5912 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5913
5914 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * emacs.c (standard_args): Adjust arg priorities to reflect how
5917 they are processed in startup.el.
5918
5919 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5920
5921 * Makefile.in (lisp, shortlisp): Update.
5922
5923 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5924
5925 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5926 code, link the new kboard into all_kboard before running Lisp code,
5927 and protect the new terminal with GCPRO (Bug#5365).
5928 (x_term_init): Remove unused var `atom'.
5929 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5930
5931 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5932
5933 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5934 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5935 to find out usable size of the desktop. Don't make frames larger than
5936 this. Bug #3643.
5937
5938 2010-01-15 Kenichi Handa <handa@m17n.org>
5939
5940 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5941
5942 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * nsterm.m (Qnone): Define.
5945
5946 * nsfns.m (Qnone): Move definition to nsterm.m.
5947
5948 2010-01-14 Kenichi Handa <handa@m17n.org>
5949
5950 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5951 systems.
5952
5953 2010-01-14 Kenichi Handa <handa@m17n.org>
5954
5955 Make auto-composition work on all buffers even if they are
5956 fundamental mode.
5957
5958 * composite.c (Vauto_composition_mode): New variable.
5959 (composition_compute_stop_pos): Check Vauto_composition_mode
5960 instead of Vauto_composition_function.
5961 (composition_adjust_point, Ffind_composition_internal): Likewise.
5962 (syms_of_composite): Declare Lisp variable
5963 "auto-composition-mode" here.
5964
5965 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5966
5967 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5968 during call to vendor-specific-keysyms (Bug#5365).
5969
5970 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5971
5972 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5973 Call SIGNAL_THREAD_CHECK (Bug#5333).
5974
5975 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5976 Call SIGNAL_THREAD_CHECK.
5977
5978 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5979
5980 Try to fix bug#5314. This is probably not the final word, tho.
5981 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5982 recent-auto-save-p as a side-effect.
5983 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5984 * buffer.c (Fkill_buffer, reset_buffer):
5985 * editfns.c (Fsubst_char_in_region):
5986 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5987 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5988
5989 2010-01-13 Kenichi Handa <handa@m17n.org>
5990
5991 Display buffer name, etc. in mode line by composing correctly.
5992
5993 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5994 STRING is not nil.
5995 (display_mode_element): Adjust for the change of
5996 decode_mode_spec and display_line.
5997 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5998 (display_string): Handle the case that STRING is non-null and
5999 LISP_STRING is not nil.
6000
6001 * xterm.c (x_draw_composite_glyph_string_foreground):
6002 Pay attention to s->face->overstrike.
6003
6004 * composite.c (composition_reseat_it): Don't check PT if STRING is
6005 non nil.
6006
6007 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6008
6009 * keyboard.c (read_char): Don't apply previous change when current
6010 buffer is unchanged by command execution.
6011
6012 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6013
6014 * keyboard.c (read_char): Return after executing from special map.
6015
6016 2010-01-12 Glenn Morris <rgm@gnu.org>
6017
6018 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6019 bug-gnu-emacs rather than emacs-pretest-bug.
6020
6021 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6024 initializing the Lisp variables that depend on them.
6025
6026 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6027
6028 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6029 Clear areas that will not be updated after change of menu bar lines.
6030 Clear the menu bar window's current matrix when the window gets empty.
6031
6032 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
6033
6034 * intervals.h, textprop.c (extend_property_ranges): Return value
6035 and args changed. Discard properties that begin at or after the
6036 new end (Bug#5306).
6037
6038 * editfns.c (Fformat): Caller changed.
6039
6040 * nsterm.m (ns_set_default_prefs): Delete function.
6041 (syms_of_nsterm): Initialize ns_command_modifier,
6042 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6043 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6044
6045 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6046 position (Bug#4040).
6047
6048 2010-01-09 Eli Zaretskii <eliz@gnu.org>
6049
6050 * editfns.c (Ffloat_time): Doc fix.
6051
6052 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6053
6054 * xfns.c (Fx_create_frame): Don't create frame larger than display
6055 by default bug#3643.
6056
6057 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6058
6059 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6060 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6061 windows above internal border.
6062
6063 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6064 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6065 windows above internal border.
6066
6067 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6068 tool bar windows specially.
6069
6070 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6071
6072 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6073 specially.
6074 (XTflash): Take account of menu bar height.
6075
6076 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6077 specially.
6078
6079 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6080
6081 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
6082 also be true before we can return early (bug #5339).
6083
6084 2010-01-06 David Reitter <david.reitter@gmail.com>
6085
6086 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6087 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6088 (Bug#3233).
6089
6090 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6091
6092 * font.c (font_open_entity): Enable chache and call cached_font_ok
6093 for the driver if defined.
6094 (QCuser_spec): New symbol.
6095 (font_spec_from_name): Save name as user-spec.
6096 (font_load_for_lface): Keep user-spec instead of name.
6097 (font_open_by_name): Save name as user-spec.
6098 (syms_of_font): Initialize QCuser_spec.
6099 (font_clear_prop): Clear name if it exists in font (bug#5157).
6100
6101 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6102 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6103 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6104
6105 * font.h (struct font_driver): Add cached_font_ok.
6106
6107 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6108
6109 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6110
6111 * xterm.c (x_new_font): Move code for setting rows/cols before
6112 resizing ...
6113 (x_set_window_size): ... to here. Bug #2568.
6114
6115 * gtkutil.c (xg_clear_under_internal_border): New function.
6116 (xg_frame_resized, xg_frame_set_char_size):
6117 Call xg_clear_under_internal_border.
6118 (xg_update_scrollbar_pos): Clear under old scroll bar position.
6119
6120 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
6121
6122 * keyboard.c (read_key_sequence): Catch keyboard switch after
6123 making a new tty frame (Bug#5095).
6124
6125 2010-01-05 Kenichi Handa <handa@m17n.org>
6126
6127 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6128
6129 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6130
6131 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6132 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6133 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6134
6135 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
6136
6137 * dbusbind.c (xd_add_watch): Improve debug message.
6138 (xd_remove_watch): Improve debug message. If DATA is the session
6139 bus, unset D-Bus session environment.
6140 (Fdbus_init_bus): Pass the bus as argument to
6141 dbus_connection_set_watch_functions. (Bug#5283)
6142
6143 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
6144
6145 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6146
6147 * lread.c (syms_of_lread): Make it clearer that these are the
6148 names of loaded files (Bug#5068).
6149
6150 * eval.c (run_hook_with_args): Handle the case where the global
6151 value has the obsolete single-function form (Bug#5026).
6152
6153 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
6154
6155 * minibuf.c (Fall_completions): Minor optimization.
6156
6157 2009-12-26 Eli Zaretskii <eliz@gnu.org>
6158
6159 * .gdbinit (pgx): Fix display of composite glyphs.
6160 Display cmp.from and cmp.to as well.
6161 (pitx): Fix last change.
6162
6163 2009-12-25 Kenichi Handa <handa@m17n.org>
6164
6165 * composite.h (composition_adjust_point): Update prototype.
6166
6167 * composite.c (composition_reseat_it): Don't make a composition
6168 spanning over point.
6169 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6170 composable characters.
6171 (composition_adjust_point): New arg NEW_PT. Callers changed.
6172
6173 * keyboard.c (command_loop_1): Force redisplay if the last point
6174 was within a composition.
6175 (adjust_point_for_property): Don't adjust point for automatic
6176 composition when called after buffer modification.
6177
6178 2009-12-19 Eli Zaretskii <eliz@gnu.org>
6179
6180 * .gdbinit (pitx): Don't use enum names, use their values.
6181 Remove reference to non-existing value GET_FROM_COMPOSITION.
6182 (pgx): Don't use enum names, use their values.
6183 (pitmethod): New helper command.
6184 (pitx): Use it to display iteration method.
6185 (pgrowit): New command.
6186
6187 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6188
6189 Update dependencies in Makefile.in.
6190
6191 * Makefile.in (alloc.o): Depend on termhooks.h.
6192 (atimer.o): Depend on blockinput.h.
6193 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6194 and frame.h.
6195 (callint.o): Depend on systime.h, coding.h, and composite.h.
6196 (callproc.o): Depend on buffer.h.
6197 (casefiddle.o): Don't depend on charset.h.
6198 (casetab.o): Depend on character.h.
6199 (ccl.o): Depend on composite.h.
6200 (chartab.o): Depend on ccl.h.
6201 (cm.o): Depend on dispextern.h.
6202 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6203 (coding.o): Don't depend on $(INTERVALS_H).
6204 (composite.o): Don't depend on dispextern.h explicitly (it's in
6205 $(INTERVALS_H)). Depend on ccl.h.
6206 (data.o): Depend on systime.h, coding.h, composite.h,
6207 dispextern.h, font.h, and ccl.h.
6208 (dired.o): Depend on composite.h.
6209 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6210 composite.h (it's in $(INTERVALS_H)).
6211 (doc.o): Depend on systime.h, coding.h, and composite.h.
6212 (editfns.o): Don't depend explicitly on dispextern.h.
6213 (emacs.o): Depend on frame.h and coding.h.
6214 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6215 (fileio.o): Depend on frame.h and commands.h. Don't depend
6216 explicitly on dispextern.h.
6217 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6218 composite.h.
6219 (fns.o): Don't depend on termhooks.h.
6220 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6221 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6222 coding.h, $(INTERVALS_H), window.h, xterm.h.
6223 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6224 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6225 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6226 fontset.h, ccl.h, and ftfont.h.
6227 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6228 (gtkutil.o): Depend on dispextern.h and composite.h.
6229 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6230 termhooks.h, and ccl.h.
6231 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6232 (intervals.o): Depend on systime.h and coding.h.
6233 (keyboard.o): Depend on composite.h and coding.h.
6234 (keymap.o): Depend on coding.h and frame.h.
6235 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6236 (macros.o): Depend on systime.h, coding.h, and composite.h.
6237 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6238 and atimer.h.
6239 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6240 dispextern.h explicitly.
6241 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6242 Don't depend explicitly on dispextern.h and composite.h.
6243 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6244 (regex.o): Don't depend on charset.h.
6245 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6246 (search.o): Don't depend explicitly on composite.h.
6247 (sound.o): Depend on atimer.h and systime.h.
6248 (syntax.o): Don't depend explicitly on composite.h.
6249 (sysdep.o): Depend on coding.h and composite.h.
6250 (term.o): Depend on xterm.h and buffer.h.
6251 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6252 (textprop.o): Don't depend on dispextern.h explicitly.
6253 (undo.o): Depend on dispextern.h.
6254 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6255 dispextern.h and composite.h explicitly.
6256 (xdisp.o): Depend on ccl.h.
6257 (xfaces.o): Depend on coding.h and ccl.h.
6258 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6259 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6260 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6261 ftfont.h.
6262 (xgselect.o): New dependency.
6263 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6264 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6265 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6266 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6267 (xsmfns.o): Depend on frame.h and dispextern.h.
6268 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6269 sysselect.h.
6270
6271 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6272
6273 * font.c (Fclear_font_cache): Pass correct cache argument to
6274 font_clear_cache.
6275
6276 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6277
6278 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6279 twice.
6280
6281 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
6282
6283 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6284 calling file-remote-p. Reported by Jim Meyering.
6285
6286 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
6287
6288 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
6289 avoid compiler warnings. (Bug #5217)
6290
6291 2009-12-14 Kenichi Handa <handa@m17n.org>
6292
6293 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6294 in 8-bit encoding.
6295
6296 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
6297
6298 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6299 tooltip windows.
6300
6301 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6302
6303 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6304 Xatom_net_window_type.
6305
6306 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6307 Xatom_net_window_type.
6308
6309 * xterm.c (my_log_handler): New function.
6310 (x_term_init): Set my_log_handler as log handler during gtk_init
6311 so we can filter out buggy messages. (Bug #5120).
6312
6313 * xterm.c (xg_scroll_callback): Parameter list changed,
6314 use parameter GtkScrollType to determine scroll/line/page.
6315 Only allow dragging if a button < 4 is grabbed (bug #5177).
6316 (xg_end_scroll_callback): New function.
6317 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6318 xg_create_scroll_bar.
6319
6320 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6321 (scroll_end_callback): Remove.
6322 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6323 button-release-event. Replace value-changed event with change-value,
6324 bug #5177.
6325 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6326 bug #5177.
6327
6328 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6329 (xg_create_scroll_bar): Add GCallback end_callback.
6330
6331 * xftfont.c (QClcdfilter): New variable.
6332 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6333 (syms_of_xftfont): Initialize QClcdfilter.
6334
6335 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6336
6337 * xsettings.c (struct xsettings): Add member seen.
6338 (parse_xft_settings): Update member seen with what we have read.
6339 Return non-zero if Xft-settings have been parsed, 0 otherwise.
6340 (apply_xft_settings): Only update Xft settings with what member seen
6341 indicates as new.
6342
6343 2009-12-12 Eli Zaretskii <eliz@gnu.org>
6344
6345 * dispextern.h (struct text_pos): Use EMACS_INT.
6346 (struct glyph): Use EMACS_INT for charpos.
6347 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6348 region_beg_charpos, region_end_charpos,
6349 redisplay_end_trigger_charpos, and also for
6350 iterator_stack_entry.end_charpos and
6351 iterator_stack_entry.stop_charpos.
6352
6353 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6354
6355 * gtkutil.c (scroll_end_callback): New function (bug #5177).
6356 (xg_create_scroll_bar): Call scroll_end_callback on button release
6357 event (bug #5177).
6358 (xg_event_is_for_scrollbar): != replaced with ==.
6359
6360 2009-12-12 Kenichi Handa <handa@m17n.org>
6361
6362 * ftfont.c (struct ftfont_info): New member matrix.
6363 (ftfont_open): Setup xftfont_info->matrix.
6364 (MFLTFontFT): New member matrix.
6365 (FLOOR, CEIL, ROUND): New macros.
6366 (ftfont_get_metrics): Handle matrix transformation.
6367 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6368
6369 * xftfont.c (struct xftfont_info): New member matrix.
6370 (xftfont_open): Setup xftfont_info->matrix.
6371
6372 2009-12-10 Kenichi Handa <handa@m17n.org>
6373
6374 * xdisp.c (append_space_for_newline): Consider face-remapping.
6375
6376 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6377
6378 * xsettings.c: Include "keyboard.h".
6379
6380 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6381
6382 Fix implicit function declarations.
6383 * cmds.c: Include "frame.h".
6384 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6385 * frame.h: Move declaration of delete_frame outside of
6386 HAVE_WINDOW_SYSTEM.
6387
6388 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6389
6390 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6391
6392 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6393 GTK builds.
6394
6395 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6396
6397 * unexelf.c (unexec): Don't search for .data twice.
6398
6399 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6402 if push failed.
6403 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6404 of push_display_prop (Bug#5000).
6405
6406 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6407 value of font_list_entities (Bug#5085).
6408
6409 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
6410
6411 Fix `string-to-number' to deal consistently with integers and floats.
6412 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6413 trailing characters, not just whitespace.
6414 (read1): Pass new arg 0 to keep old behavior.
6415 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6416 trailing chars, as it is already done for integers. Doc fixes.
6417 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6418
6419 2009-12-04 Eli Zaretskii <eliz@gnu.org>
6420
6421 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6422 Delete unused enumeration value.
6423
6424 2009-12-03 Eli Zaretskii <eliz@gnu.org>
6425
6426 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6427
6428 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6429
6430 * process.c (Fmake_network_process): Fix up the tests for
6431 "connectionless socket", so they DTRT for seqpacket sockets as well.
6432
6433 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6434
6435 * process.c (Qseqpacket): New symbol.
6436 (HAVE_SEQPACKET): New macro.
6437 (Fmake_network_process): Accept new :type `seqpacket'.
6438 (init_process): Add `seqpacket' feature when applicable.
6439 (syms_of_process): Initialize Qseqpacket.
6440
6441 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6442
6443 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6444 if entity is Qnil.
6445
6446 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6447
6448 * print.c (print_preprocess): Preprocess the key_and_value table of
6449 hashtables, even tho they're "hidden" (bug#5082).
6450
6451 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6452
6453 * frame.c (frame_make_pointer_invisible)
6454 (frame_make_pointer_visible): Declare f before statements.
6455
6456 2009-11-28 Eli Zaretskii <eliz@gnu.org>
6457
6458 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6459 omitted dependencies on lisp.h.
6460
6461 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6462
6463 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6464 is NULL.
6465
6466 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6467
6468 * frame.c (frame_make_pointer_invisible)
6469 (frame_make_pointer_visible): Just return if there isn't any selected
6470 frame.
6471
6472 * search.c (simple_search): Remove warning by making *p const.
6473
6474 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6475
6476 * xdisp.c (power_letter): Remove duplicate const.
6477
6478 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6479
6480 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6481
6482 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
6483 defaults (bug #5025).
6484
6485 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6486
6487 * insdel.c (adjust_markers_for_delete): Move it in the
6488 right direction! (bug#4803)
6489
6490 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6491
6492 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6493
6494 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6495
6496 2009-11-24 Glenn Morris <rgm@gnu.org>
6497
6498 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6499
6500 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6501
6502 * Makefile.in: Must create deps for ecrt0.o in its rule.
6503
6504 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6505 because that is what Gtk+ font dialog understands.
6506
6507 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6508 of Fcopy_sequence.
6509 (font_open_by_name): Put name given into QCname for font-object returned.
6510
6511 * frame.c (x_set_font): Save original font name as frame parameter
6512 font-parameter.
6513
6514 * xsettings.c (set_default_xft_settings): New function.
6515 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6516 is found.
6517
6518 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6519
6520 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6521 searching backwards through multibyte buffer.
6522
6523 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6524
6525 * xterm.c: #include xgselect.h.
6526 (x_initialize): Call xgselect_initialize.
6527
6528 * xsettings.c (something_changedCB): C++ comments => C comments.
6529 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6530 does that now.
6531
6532 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6533 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6534 (scroll_bar_button_cb): Remove.
6535 (create_menus): C++ comments => C comments. Don't bind grab-notify
6536 event.
6537 (xg_create_scroll_bar): Don't bind button-press-event and
6538 button-release-event.
6539
6540 * process.c: Include xgselect.h if defined (USE_GTK) ||
6541 defined (HAVE_GCONF).
6542 (wait_reading_process_output): Call xg_select for the same condition.
6543
6544 * xgselect.c (xg_select): New function to better integrate with
6545 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6546
6547 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6548
6549 * Makefile.in (XOBJ): Add xgselect.o.
6550
6551 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6552
6553 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6554 Remove ignored second argument. All callers changed.
6555 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6556 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6557 * xdisp.c (string_char_and_length): Likewise.
6558
6559 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6560
6561 * xterm.c (x_new_font):
6562 * print.c (print_object):
6563 * cmds.c (Fself_insert_command): Move declarations before statements.
6564
6565 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6566
6567 * s/cygwin.h: Remove unneeded linker flags.
6568
6569 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6570
6571 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6572
6573 * xsettings.h: Declare xsettings_get_system_font.
6574
6575 * xsettings.c (xsettings_get_system_font): New function.
6576 (init_gconf): No use initiating gconf unless we have Xft also.
6577 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6578 HAVE_GCONF.
6579
6580 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6581 add a blank entry so it doesn't collapse into nothing.
6582
6583 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6584
6585 * lread.c (Funintern): Comment out last change.
6586
6587 2009-11-19 Richard Stallman <rms@gnu.org>
6588
6589 * lread.c (Funintern): Error if symbol is t or nil.
6590
6591 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6592
6593 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6594 representation of Lisp integers.
6595 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6596
6597 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6598
6599 * lisp.h: Remove declaration of Ffont_get_system_font.
6600 * xfns.c: Move include of "xsettings.h".
6601 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6602
6603 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6604
6605 * xsettings.c (something_changedCB, Ffont_get_system_font):
6606 Check use_system_font.
6607 (syms_of_xsettings): DEFVAR font-use-system-font.
6608
6609 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6610
6611 * xfns.c (x_default_font_parameter): Remove dead assignment.
6612
6613 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6614
6615 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6616
6617 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
6618 not have FC_LCD_*. #define them if not there.
6619
6620 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
6621
6622 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6623
6624 * xterm.c (handle_one_xevent): Call xft_settings_event for
6625 ClientMessage, PropertyNotify and DestroyNotify.
6626 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6627 Call xsettings_initialize.
6628
6629 * xftfont.c (xftfont_fix_match): New function.
6630 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6631 Call xftfont_fix_match after XftFontMatch.
6632
6633 * xfont.c (xfont_driver): Initialize all members.
6634
6635 * xfns.c (x_default_font_parameter):
6636 Try font from Ffont_get_system_font.
6637 Do not get font from x_default_parameter if we got one from
6638 Ffont_get_system_font.
6639 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
6640
6641 * w32font.c (w32font_driver): Initialize all members.
6642
6643 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6644
6645 * lisp.h: Declare syms_of_xsettings.
6646
6647 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6648 Handle CONFIG_CHANGED_EVENT.
6649
6650 * ftfont.c (ftfont_filter_properties): New function.
6651
6652 * frame.c (x_set_font): Remove unused variable lval.
6653
6654 * font.h (struct font_driver): Add filter_properties.
6655
6656 * font.c (font_put_extra): Don't return if val is nil, it means
6657 boolean option is off.
6658 (font_parse_fcname): Collect all extra properties in extra_props
6659 and call filter_properties for all drivers with extra_props and
6660 font as parameter.
6661 (font_open_entity): Do not use cache, it does not pick up new
6662 fontconfig settings like hinting.
6663 (font_load_for_lface): If spec had a name in it, store it in entity.
6664
6665 * emacs.c (main): Call syms_of_xsettings.
6666
6667 * config.in: HAVE_GCONF is new.
6668
6669 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6670 xsettings.o is new.
6671
6672 2009-11-17 Kenichi Handa <handa@m17n.org>
6673
6674 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6675 back to the default font in case that no suitable font is found.
6676
6677 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6678
6679 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6680 Suggested by Chad Brown <yandros@mit.edu>.
6681 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6682
6683 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6684
6685 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6686
6687 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6688
6689 * Makefile.in: Ignore errors from mkdir when creating deps directory.
6690
6691 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6692
6693 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6694 has a parent.
6695
6696 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6697 dependency files in deps/. Include those files into Makefile.
6698
6699 * config.in: Generated (AUTO_DEPEND).
6700
6701 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6702
6703 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6704 Vdbus_registered_functions_table, because it contains also
6705 properties. Fix docstring.
6706 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6707
6708 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6709
6710 * alloc.c (mark_object): Don't reprocess marked strings.
6711 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6712 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6713
6714 2009-11-13 Kenichi Handa <handa@m17n.org>
6715
6716 * category.c (word_boundary_p): Adjust for the change of the
6717 semantics of Vword_combining_categories.
6718 (Vword_combining_categories): Describe the slight change of the
6719 semantics.
6720
6721 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6722
6723 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6724
6725 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6726
6727 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6728
6729 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6730
6731 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6732
6733 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6734
6735 2009-11-11 David Reitter <david.reitter@gmail.com>
6736
6737 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6738 variables to fix 2009-11-09 change.
6739
6740 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 * process.c (ifflag_def): Make flag_sym constant.
6743 (Fnetwork_interface_info): Use a constant pointer.
6744 (ifflag_table):
6745 * xfns.c (cursor_bits):
6746 * xdisp.c (power_letter):
6747 * termcap.c (speeds, esctab):
6748 * sysdep.c (baud_convert):
6749 * keyboard.c (lispy_accent_codes, modifier_names):
6750 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6751 (jpeg_format, tiff_format, gif_format, svg_format)
6752 (interlace_start, interlace_increment, gs_format):
6753 * gtkutil.c (separator_names):
6754 * fringe.c (swap_nibble):
6755 * fns.c (base64_value_to_char, base64_char_to_value):
6756 * fileio.c (make_temp_name_tbl):
6757 * coding.c (suffixes): Make constant.
6758
6759 * frame.c (make_initial_frame):
6760 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6761 build_string.
6762 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6763
6764 * s/freebsd.h:
6765 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6766
6767 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6768 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6769
6770 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6771 * xterm.c (syms_of_xterm):
6772 * xfaces.c (syms_of_xfaces):
6773 * xdisp.c (syms_of_xdisp):
6774 * lread.c (syms_of_lread):
6775 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6776 build_string.
6777
6778 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6779
6780 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6781
6782 * fns.c (Fplist_get): Merge the active and the commented out code.
6783
6784 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6785
6786 * keyboard.h: Declare timer_check.
6787
6788 * keyboard.c (timer_check_2): New function that does what the old
6789 timer_check did.
6790 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6791 returned, i.e. don't return -1 with timers pending.
6792
6793 * process.c: Remove extern declaration of timer_check.
6794
6795 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6796 even if timer_check returned -1.
6797
6798 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6799 xg_dialog_data.
6800 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6801 the event loop.
6802 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6803 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6804 Destroy the dialog after xg_dialog_run.
6805
6806 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6807
6808 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6809
6810 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6811
6812 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6813
6814 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6815
6816 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6817
6818 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6819
6820 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6821 w32menu.c, and nsmenu.m.
6822 Simplify the obsolete case where position is nil.
6823 (cleanup_popup_menu): New function, moved from nsmenu.m.
6824 (struct skp): Remove slot `notreal'.
6825 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6826 adjust callers.
6827 (single_menu_item): Adjust call to parse_menu_item.
6828 (syms_of_menu): Defsubr x-popup-menu.
6829 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6830 (keymap_panes): Don't export any more.
6831 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6832 (xmenu_show): Declare.
6833 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6834 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6835 * keyboard.h (parse_menu_item): Update declaration.
6836 * xmenu.c (Fx_popup_menu): Remove.
6837 (syms_of_xmenu): Don't defsubr x-popup-menu.
6838 * w32menu.c (Fx_popup_menu): Remove.
6839 (syms_of_w32menu): Don't defsubr x-popup-menu.
6840 * nsmenu.m (cleanup_popup_menu): Remove.
6841 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6842 moved to menu.c's Fx_popup_menu.
6843 (Fx_popup_menu): Remove.
6844 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6845 menu_items (it's done in menu.c already).
6846
6847 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6848
6849 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6850 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6851
6852 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6855 xmenu_show. Hide any tooltip before opening a menu.
6856 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6857 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6858
6859 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6860
6861 Let integers use up 2 tags to give them one extra bit and thus double
6862 their range.
6863 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6864 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6865 New macros.
6866 (enum Lisp_Type): Use them. Give explicit values.
6867 (Lisp_Type_Limit): Remove.
6868 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6869 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6870 Pay attention to USE_2_TAGS_FOR_INTS.
6871 (INTEGERP): Use LISP_INT_TAG_P.
6872 * fns.c (internal_equal): Simplify the default case.
6873 (sxhash): Use case_Lisp_Int.
6874 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6875 any more.
6876 (Ftype_of): Use case_Lisp_Int.
6877 (store_symval_forwarding): Take into account the fact that Ints can
6878 now have more than one tag.
6879 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6880 (buffer_slot_type_mismatch):
6881 * xfaces.c (face_attr_equal_p):
6882 * print.c (print_object):
6883 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6884 Use case_Lisp_Int.
6885
6886 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6887
6888 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6889
6890 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6891 warning.
6892
6893 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6894
6895 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6896
6897 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6898
6899 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6900 ButtonPressRelease and MotionNotify (bug#4870).
6901
6902 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6903
6904 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6905
6906 * xterm.c (syms_of_xterm):
6907 * xselect.c (syms_of_xselect):
6908 * xmenu.c (syms_of_xmenu):
6909 * xfns.c (syms_of_xfns):
6910 * xfaces.c (syms_of_xfaces):
6911 * xdisp.c (syms_of_xdisp):
6912 * window.c (syms_of_window):
6913 * w32fns.c (syms_of_w32fns):
6914 * undo.c (syms_of_undo):
6915 * textprop.c (syms_of_textprop):
6916 * terminal.c (syms_of_terminal):
6917 * syntax.c (syms_of_syntax):
6918 * sound.c (syms_of_sound):
6919 * search.c (syms_of_search):
6920 * print.c (syms_of_print):
6921 * minibuf.c (syms_of_minibuf):
6922 * macros.c (syms_of_macros):
6923 * keymap.c (syms_of_keymap, initial_define_key)
6924 (initial_define_lispy_key):
6925 * keyboard.c (syms_of_keyboard):
6926 * insdel.c (syms_of_insdel):
6927 * image.c (syms_of_image):
6928 * fringe.c (syms_of_fringe):
6929 * frame.c (syms_of_frame):
6930 * fontset.c (syms_of_fontset):
6931 * fns.c (syms_of_fns):
6932 * fns.c (syms_of_fns):
6933 * fileio.c (syms_of_fileio):
6934 * fileio.c (syms_of_fileio):
6935 * eval.c (syms_of_eval):
6936 * doc.c (syms_of_doc):
6937 * dispnew.c (syms_of_display):
6938 * dired.c (syms_of_dired):
6939 * dbusbind.c (syms_of_dbusbind):
6940 * data.c (syms_of_data):
6941 * composite.c (syms_of_composite):
6942 * coding.c (syms_of_coding):
6943 * cmds.c (syms_of_cmds):
6944 * charset.c (define_charset_internal, syms_of_character):
6945 * ccl.c (syms_of_ccl):
6946 * category.c (syms_of_category, init_category_once):
6947 * casetab.c (syms_of_casetab):
6948 * casefiddle.c (syms_of_casefiddle):
6949 * callint.c (syms_of_callint):
6950 * bytecode.c (syms_of_bytecode):
6951 * buffer.c (keys_of_buffer, syms_of_buffer):
6952 * alloc.c (syms_of_alloc):
6953 * process.c (syms_of_process, init_process):
6954 * lread.c (syms_of_lread, init_obarray):
6955 * font.c (build_style_table):
6956 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6957 intern_c_string, calls to make_pure_string with
6958 make_pure_c_string. Use pure_cons instead of Fcons.
6959
6960 * process.c (socket_options): Make it const.
6961 (set_socket_option, init_process): Use a const pointer.
6962
6963 * lread.c (intern_c_string): New function.
6964 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6965 (defvar_int): Uset it. Make the name const char*.
6966
6967 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6968 (defvar_int): Update prototypes.
6969 (DEFUN, EXFUN): Support for prototypes is now required.
6970 (intern_c_string): New prototype.
6971 (struct Lisp_Subr): Make symbol_name constant.
6972
6973 * font.c (struct table_entry): Remove unused member. Make NAMES
6974 constant.
6975 (weight_table, slant_table, width_table): Make constant.
6976
6977 * emacs.c (struct standard_args): Make name and longname constant.
6978
6979 * character.h (DEFSYM): Use intern_c_string.
6980
6981 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6982
6983 * alloc.c (make_pure_c_string): New function.
6984
6985 * eval.c (Fautoload): Purecopy all arguments.
6986
6987 2009-11-05 Kenichi Handa <handa@m17n.org>
6988
6989 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6990 the buffer in case of replace.
6991
6992 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6993
6994 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6995
6996 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6997
6998 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6999 when applicable (bug#4851).
7000
7001 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7002 (P_): Support for prototypes is now required.
7003
7004 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
7005
7006 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7007 (Bug#4827).
7008
7009 2009-10-30 Eli Zaretskii <eliz@gnu.org>
7010
7011 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
7012
7013 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7014
7015 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7016
7017 * lread.c (Fload): Purecopy the file name when building
7018 Vpreloaded_file_list.
7019
7020 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7021
7022 * w32fns.c (syms_of_w32fns): Change default value of
7023 w32-scroll-lock-modifier to nil. (Bug#2827)
7024
7025 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7026
7027 * minibuf.c (Fall_completions): Fix typos in docstring.
7028
7029 2009-10-26 Andreas Schwab <schwab@redhat.com>
7030
7031 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7032
7033 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7034
7035 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7036 For delta < 0, skip check that only makes sense when the mini-window
7037 is going to be enlarged. (Bug#4534)
7038
7039 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
7040
7041 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7042 string in menu maps (Bug#4471).
7043
7044 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
7045
7046 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7047 FRAME_NS_VIEW on terminal frames (Bug#4765).
7048
7049 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7050
7051 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7052 DBUS_TYPE_UINTnn separately to get proper sign extension.
7053
7054 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7055 can properly handle unsigned types.
7056 (make_uid, make_gid): Remove.
7057
7058 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7059 types again.
7060
7061 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
7062 (system_process_attributes): Likewise.
7063
7064 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7065
7066 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7067
7068 * eval.c (Fautoload): Purecopy the filename. Simplify.
7069
7070 * category.c (Fdefine_category): Purecopy docstring.
7071
7072 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7073
7074 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7075
7076 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7077
7078 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
7079
7080 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7081 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7082 (Bug#4775).
7083
7084 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7085
7086 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7087 (init_fileio_once):
7088 * lisp.h (init_fileio_once): Remove.
7089 * emacs.c (main): Don't call init_fileio_once.
7090
7091 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7092
7093 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7094
7095 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7096
7097 * doprnt.c (doprnt): Fix overflow check.
7098
7099 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7100
7101 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7102
7103 * xterm.h (x_wait_for_event): Declare it.
7104
7105 * xterm.c (pending_event_wait): New variable.
7106 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7107 see pending_event_wait.eventtype.
7108 (handle_one_xevent): Don't change gravity when parent changes.
7109 (x_new_font): Call change_frame_size with new rows/columns before we
7110 try to resize the frame.
7111 (x_wait_for_event): New function.
7112 (x_set_window_size_1): Don't change gravity unless change_gravity
7113 is set.
7114 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7115 don't change frame size, instead wait for the ConfigureNotify.
7116 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7117 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7118 (x_initialize): Initialize pending_event_wait.
7119
7120 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7121 size.
7122
7123 * widget.c (EmacsFrameSetValues): Add comment.
7124 (EmacsFrameSetCharSize): Just call x_set_window_size.
7125
7126 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7127 x_wait_for_event.
7128 (flush_and_sync): Remove again.
7129 (xg_get_font_name): Suggest monospace if no previous font is known.
7130
7131 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7132
7133 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
7134 8th bit, since that only made sense in the ASCII world (bug#4751).
7135
7136 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7137
7138 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7139 processing pending events when event is filtered for input method.
7140 (Bug#3681)
7141
7142 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
7143
7144 * fns.c: Add #endif accidentally removed in previous change.
7145
7146 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7147
7148 * fns.c: Remove code for unsupported system: MAC_OS.
7149 * image.c: Likewise. Include setjmp.h.
7150
7151 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7152
7153 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7154 pixel -1 (bug #4742).
7155
7156 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7157
7158 * process.c (create_pty): Remove conditionals for no longer
7159 supported systems: UNIPLUS and RTU.
7160
7161 * xterm.c:
7162 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7163
7164 * alloc.c: Do not define struct catchtag.
7165 * eval.c: Move struct catchtag definition ...
7166 * lisp.h: ... here.
7167
7168 * image.c: Move png.h #include earlier to avoid warnings.
7169
7170 * xterm.c:
7171 * xsmfns.c:
7172 * xselect.c:
7173 * xrdb.c:
7174 * xmenu.c:
7175 * xftfont.c:
7176 * xfont.c:
7177 * xfns.c:
7178 * xfaces.c:
7179 * xdisp.c:
7180 * window.c:
7181 * widget.c:
7182 * w32xfns.c:
7183 * w32uniscribe.c:
7184 * w32term.c:
7185 * w32select.c:
7186 * w32reg.c:
7187 * w32proc.c:
7188 * w32menu.c:
7189 * w32inevt.c:
7190 * w32heap.c:
7191 * w32font.c:
7192 * w32fns.c:
7193 * w32console.c:
7194 * w32.c:
7195 * w16select.c:
7196 * vm-limit.c:
7197 * unexsol.c:
7198 * unexec.c:
7199 * unexcw.c:
7200 * unexaix.c:
7201 * undo.c:
7202 * tparam.c:
7203 * textprop.c:
7204 * terminfo.c:
7205 * terminal.c:
7206 * termcap.c:
7207 * term.c:
7208 * syntax.c:
7209 * sound.c:
7210 * sheap.c:
7211 * search.c:
7212 * scroll.c:
7213 * region-cache.c:
7214 * regex.c:
7215 * ralloc.c:
7216 * process.c:
7217 * print.c:
7218 * nsterm.m:
7219 * nsselect.m:
7220 * nsmenu.m:
7221 * nsimage.m:
7222 * nsfont.m:
7223 * nsfns.m:
7224 * msdos.c:
7225 * minibuf.c:
7226 * menu.c:
7227 * marker.c:
7228 * macros.c:
7229 * keymap.c:
7230 * keyboard.c:
7231 * intervals.c:
7232 * insdel.c:
7233 * indent.c:
7234 * gtkutil.c:
7235 * ftxfont.c:
7236 * ftfont.c:
7237 * fringe.c:
7238 * frame.c:
7239 * fontset.c:
7240 * font.c:
7241 * fns.c:
7242 * floatfns.c:
7243 * filelock.c:
7244 * fileio.c:
7245 * emacs.c:
7246 * editfns.c:
7247 * dosfns.c:
7248 * doprnt.c:
7249 * doc.c:
7250 * dispnew.c:
7251 * dired.c:
7252 * dbusbind.c:
7253 * data.c:
7254 * composite.c:
7255 * coding.c:
7256 * cmds.c:
7257 * cm.c:
7258 * chartab.c:
7259 * charset.c:
7260 * character.c:
7261 * ccl.c:
7262 * category.c:
7263 * casetab.c:
7264 * casefiddle.c:
7265 * callproc.c:
7266 * callint.c:
7267 * bytecode.c:
7268 * buffer.c:
7269 * atimer.c: Include setjmp.h. (Bug#4643)
7270
7271 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7272
7273 Remove leftover table unibyte_to_multibyte_table.
7274 * character.c (unibyte_to_multibyte_table): Remove.
7275 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7276 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7277 * character.h (UNIBYTE_TO_CHAR): New macro.
7278 (MAKE_CHAR_MULTIBYTE): Use it.
7279 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7280 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7281 (message_dolog, set_message_1):
7282 * search.c (Freplace_match):
7283 * editfns.c (Fcompare_buffer_substrings):
7284 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7285 (concat):
7286 * insdel.c (copy_text, count_size_as_multibyte):
7287 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7288 * term.c (produce_glyphs):
7289 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7290 * regex.c (RE_CHAR_TO_MULTIBYTE):
7291 * cmds.c (internal_self_insert):
7292 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7293
7294 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7295
7296 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7297
7298 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7299
7300 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
7301
7302 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7303
7304 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7305
7306 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7307 still needed under Tiger.
7308
7309 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7310
7311 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7312 __Apple__.
7313
7314 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7315
7316 2009-10-15 Kenichi Handa <handa@m17n.org>
7317
7318 * print.c (print_object): Escape a symbol like "2E10" too.
7319
7320 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
7321
7322 Cleanups and changes for 64-bit compile under Snow Leopard.
7323 Based on suggestions by Erik Charlebois.
7324
7325 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7326
7327 * nsfont.m (ns_char_width): Replace deprecated call.
7328 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7329 cast argument.
7330 (nsfont_open): Use ns_char_width() everywhere.
7331 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
7332
7333 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7334
7335 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7336 where appropriate.
7337
7338 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7339 where appropriate.
7340 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7341 Use stringWithUTF8String.
7342 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7343
7344 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7345 Add formal protocol mention to inheritance.
7346 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7347
7348 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7349 Fix printf format.
7350 (ns_query_color): Use CGFloat where appropriate.
7351 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
7352 (EmacsScroller-mouseDown:): Use long format in printf, and cast
7353 argument.
7354
7355 * config.in (NS_HAVE_NSINTEGER): Drop.
7356
7357 * dbusbind.c (dbus-method-return-internal)
7358 (dbus-method-error-internal): Use long format in printf, and cast
7359 argument.
7360
7361 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7362 in printf, and cast argument.
7363
7364 * process.c (list_processes_1): Use long format in printf, and
7365 cast argument.
7366
7367 2009-10-11 Glenn Morris <rgm@gnu.org>
7368
7369 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7370
7371 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7372
7373 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7374 menu bar with a small width so it doesn't enlarge the frame.
7375
7376 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
7377
7378 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7379
7380 2009-10-06 Glenn Morris <rgm@gnu.org>
7381
7382 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7383 SOME_MACHINE_LISP (this enters indirectly via DOC).
7384
7385 2009-10-05 Eli Zaretskii <eliz@gnu.org>
7386
7387 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7388
7389 2009-10-04 Eli Zaretskii <eliz@gnu.org>
7390
7391 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7392 Doc fix.
7393
7394 2009-10-03 Martin Rudalics <rudalics@gmx.at>
7395
7396 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7397
7398 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
7399
7400 * lisp.h (Qdelete_directory_internal): Remove, because it is not
7401 used anymore outside fileio.c.
7402
7403 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7404
7405 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
7406
7407 * lisp.h (Qdelete_directory_internal):
7408 Declare, instead of Qdelete_directory.
7409
7410 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7411
7412 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7413
7414 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7415
7416 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
7417
7418 * fileio.c (Fdelete_directory_internal): Rename from
7419 Fdelete_directory. It is not a command anymore. It has no file
7420 name handler.
7421
7422 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7423
7424 * xdisp.c (get_next_display_element): Use an enum in last change.
7425
7426 2009-09-28 Kenichi Handa <handa@m17n.org>
7427
7428 * xdisp.c (get_next_display_element): Pay attention to
7429 unibyte_display_via_language_environment in handling
7430 Vnobreak_char_display.
7431
7432 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7433
7434 * nsterm.h (ns_app_name): New extern variable.
7435
7436 * nsterm.m (ns_app_name): New variable.
7437 (ns_term_init): Set and use it.
7438 (ns_term_shutdown): Use it.
7439
7440 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7441 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7442
7443 * nsfns.m (ns_set_name_iconic, ns_set_name)
7444 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7445 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7446
7447 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7448 Remove double-casting in client_data comparison.
7449
7450 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7451
7452 * keyboard.c (make_lispy_event): Remember last wheel direction.
7453 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7454
7455 2009-09-26 Glenn Morris <rgm@gnu.org>
7456
7457 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7458 internal.elc. Add term/pc-win.elc.
7459 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7460 term/x-win.elc.
7461 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7462 term/w32-win.elc.
7463 (NS_SUPPORT): New.
7464 (lisp): Add NS_SUPPORT.
7465 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7466
7467 2009-09-25 David Reitter <david.reitter@gmail.com>
7468
7469 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7470 on Mac OS X 10.6+ (bug#4513).
7471
7472 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7473
7474 * frame.c (xrdb_get_resource): Return nil for empty string resources;
7475 some parts of Emacs code (like font selection) don't grok them.
7476 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
7477
7478 2009-09-24 Andreas Schwab <schwab@redhat.com>
7479
7480 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7481
7482 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7483
7484 * dired.c (Fdirectory_files): Fix typo in docstring.
7485
7486 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7487
7488 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7489 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7490 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7491 under GNUstep.
7492 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7493
7494 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7495 glyph advancement.
7496
7497 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7498
7499 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
7500 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
7501
7502 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7503 deleted (bug #4492).
7504
7505 * nsfont.m (Vns_reg_to_script): New lisp variable.
7506 (syms_of_nsfont): Declare it.
7507 (ns_registry_to_script): New function.
7508 (ns_get_req_script): Call it.
7509 (ns_findfonts): Don't give up on non-unicode registry.
7510
7511 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7512
7513 2009-09-20 Tom Tromey <tromey@redhat.com>
7514
7515 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7516 batch mode (bug#4228).
7517
7518 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
7519
7520 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
7521 carefully. (Bug #4339)
7522
7523 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
7526
7527 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7528
7529 * emacs.c (inhibit_x_resources): Update doc string for NS.
7530 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
7531 legacy code for -NXHost. Fix error printf in daemon case.
7532
7533 * nsterm.h (ns_no_defaults): Remove.
7534
7535 * nsterm.m (ns_no_defaults): Remove.
7536 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7537 (ns_use_qd_smoothing): Remove legacy variable.
7538 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7539 don't update the NSWindow itself.
7540 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
7541 state detection and store user rect ourselves. (Bug #3581)
7542
7543 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7544 ns_use_qd_smoothing.
7545
7546 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7547 platform versions. Drop support for emacs-20-style face specs.
7548 (x-close-connection): Drop PSFlush() under OS X.
7549 (x-focus-frame): Activate the app first. (Bug #4180)
7550
7551 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
7552
7553 * emacs.c (inhibit_x_resources): New variable.
7554 (main) [HAVE_NS]: Don't process --quick command line option.
7555 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7556
7557 * lisp.h (inhibit_x_resources): Declare it extern.
7558
7559 * w32reg.c (x_get_string_resource):
7560 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7561
7562 2009-09-17 Eli Zaretskii <eliz@gnu.org>
7563
7564 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7565 Add lisp/term/internal.elc.
7566
7567 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7568
7569 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7570 (bug#4461).
7571
7572 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7573
7574 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7575
7576 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7577 (OBJECTS_MACHINE): Remove, unused.
7578
7579 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7580
7581 * frame.c (x_get_resource_string): Remove unused.
7582
7583 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7584
7585 * xterm.c (x_new_font): Call change_frame_size before calling
7586 x_set_window_size, in case frame size won't change.
7587
7588 * frame.c (x_set_font): Remove dead code.
7589
7590 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7591
7592 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7593
7594 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7595
7596 * lread.c (Fload): Don't output a message after loading an obsolete
7597 package any more (done in Lisp now).
7598
7599 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7602
7603 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7604
7605 * keymap.c (Fwhere_is_internal): Use nconc2.
7606
7607 2009-09-11 Alan Mackenzie <acm@muc.de>
7608
7609 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7610 batch mode.
7611
7612 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7613
7614 * xdisp.c (display_mode_element): Detect cycles.
7615
7616 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7617
7618 * keymap.c (where_is_internal): Don't erroneously return nil right after
7619 filling the cache.
7620 (where_is_internal_1): Fix up typo.
7621
7622 2009-09-11 Glenn Morris <rgm@gnu.org>
7623
7624 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7625 share a common doc-string.
7626
7627 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7628
7629 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7630 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7631
7632 * keymap.c (QCadvertised_binding): New constant.
7633 (syms_of_keymap): Initialize it.
7634 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7635 if applicable.
7636
7637 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7638
7639 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7640 (parse_menu_item): Streamline since bindings are recomputed all the
7641 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7642 more and don't support lmenu's menu-alias any more either.
7643
7644 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7645 (where_is_internal): Strip it down to only traverse the keymaps.
7646 Move the cache handling from Fwhere_is_internal to here.
7647 (Fwhere_is_internal): Move the handling of remapping and the choice of
7648 the best binding from where_is_internal to here.
7649 Unify the cached/noncached paths, so remapping is also handled
7650 correctly when the cache is used, and so the cache can be used to
7651 speed up remap-handling when applicable.
7652 Give preference to non-remapped bindings.
7653 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7654 non-remapped bindings.
7655 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7656 command remapping.
7657
7658 * xdisp.c (display_mode_element): Move list length limit from 50 to
7659 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7660
7661 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
7662
7663 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7664
7665 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7666
7667 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7668 (Bug#4334)
7669
7670 * keymap.c (where_is_internal): Filter out shadowed remappings.
7671 Assume that where_is_internal returns unshadowed bindings to simplify
7672 the code and get rid of the gotos. Use ASIZE.
7673
7674 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7675
7676 * xterm.c (x_focus_changed): If we get a focusout and pointer
7677 is invisible, make it visible.
7678
7679 * xterm.h: Remove condition for declaration of
7680 x_*_window_to_frame.
7681
7682 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7683
7684 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7685 initial terminal as well.
7686
7687 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7688
7689 * xterm.h: Rename x_non_menubar_window_to_frame to
7690 x_menubar_window_to_frame.
7691
7692 * xterm.c: Remove declarations also in xterm.h.
7693 (XTmouse_position): Do not return valid positions
7694 for clicks in the menubar and the toolbar for Gtk+.
7695
7696 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7697 if the widget for the event has the same top level as a frame,
7698 return the frame.
7699 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7700 internal windows, bug #4122.
7701 (x_non_menubar_window_to_frame): Remove.
7702
7703 2009-09-02 Glenn Morris <rgm@gnu.org>
7704
7705 * buffer.c (default-major-mode): Move most of the doc from here...
7706 (major-mode): ... to here.
7707
7708 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7709
7710 * process.c (wait_reading_process_output): Keep the descriptor
7711 when pty is used by a non-child process, e.g., in I/O buffer of
7712 GDB this allows inferior to be restarted.
7713
7714 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7715
7716 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7717 both branches into one.
7718
7719 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7720
7721 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7722 (main): Use enable-multibyte-characters rather than
7723 default-enable-multibyte-characters. Output a warning message when
7724 running a unibyte session.
7725
7726 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7727
7728 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7729 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7730 (copy_data_segment): Also copy __program_vars section.
7731 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7732 (dump_it) [LC_DYLD_INFO]: Use it.
7733
7734 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7735
7736 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7737
7738 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7739 $(SRC)/buildobj.h.
7740 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7741 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7742 $(SRC)/buildobj.h.
7743 (clean): Add buildobj.h.
7744
7745 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7746
7747 * print.c (print_object): Set escapeflag to 1 when printing
7748 hashtable keys and values.
7749
7750 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7751
7752 * lread.c (read_integer): Use doubles (and potentially return a float
7753 number) as we do in string-to-number.
7754 (read1): Use strtol to read integers, signal errors on strtol's
7755 overflow and use floats if strtol's output is too large for
7756 Elisp integers.
7757
7758 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7759
7760 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7761 (make-buildobj-SH): Fix last change.
7762 (SRC): Move to before where it's first used.
7763
7764 2009-08-27 Kenichi Handa <handa@m17n.org>
7765
7766 * process.c (send_process): Use encode_coding_object instead of
7767 encode_coding_string to perform eol-conversion even if the string
7768 is unibyte.
7769
7770 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7771 character.
7772
7773 * cmds.c (Fself_insert_command): Avoid unnecessay
7774 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7775
7776 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7777
7778 * callproc.c (Fcall_process): Remove always true #if.
7779
7780 * lisp.h: Replace #if 0 code for checking with text pointing to
7781 the --enable-checking configure flag.
7782
7783 * emacs.c (main): Mention the --enable-profiling configure flag
7784 instead of using CFLAGS.
7785
7786 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7787
7788 * Makefile.in (buildobj.h): New target.
7789 (doc.o): Depend on it.
7790 (temacs${EXEEXT}): Don't generate buildobj.lst.
7791 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7792 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7793 ($(BLD)/doc.$(O)): Depend on it.
7794 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7795 provided by Eli Zaretskii.)
7796 ($(TEMACS)): Don't generate buildobj.lst.
7797 * doc.c: Include buildobj.h.
7798 (buildobj): New static variable.
7799 (Fsnarf_documentation): Use it, instead of opening and reading
7800 buildobj.lst.
7801
7802 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7803
7804 * dbusbind.c (Fdbus_call_method)
7805 (Fdbus_call_method_asynchronously): Use English numeric format for
7806 timeout values in doc string.
7807
7808 2009-08-25 Kenichi Handa <handa@m17n.org>
7809
7810 * alloc.c (mark_char_table): New function.
7811 (mark_object): Use mark_char_table for a char-table.
7812
7813 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7814 (CHAR_TABLE_REF): Use it.
7815
7816 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7817
7818 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7819 before invoking the newly build emacs to check for load-path
7820 shadowing.
7821
7822 2009-08-22 Glenn Morris <rgm@gnu.org>
7823
7824 * Makefile.in (bootstrap_exe): New variable.
7825 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7826 Use ${bootstrap_exe}.
7827
7828 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7829
7830 * coding.h (encode_coding_string): Don't encode unibyte strings.
7831 (Bug#4047)
7832
7833 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7834
7835 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7836
7837 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7838 intended as hotfix only.
7839 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7840
7841 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7842
7843 * nsterm.m (ns_get_color): Update documentation properly for last
7844 change, and clean up loose ends in the code left by it. Fix
7845 longstanding bug with 16-bit hex parsing, and add support for
7846 yet another X11 format (rgb:r/g/b) for compatibility.
7847 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7848 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7849
7850 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7851
7852 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7853
7854 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7855
7856 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7857 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7858 (xd_initialize, xd_pending_messages): Check, whether
7859 $DBUS_SESSION_BUS_ADDRESS is set.
7860
7861 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7862
7863 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7864
7865 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7866
7867 2009-08-20 Glenn Morris <rgm@gnu.org>
7868
7869 * emacs.c (system-type): Doc fix.
7870
7871 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7872
7873 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7874 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7875
7876 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7877
7878 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7879 New functions.
7880 (xd_initialize): Revert change from 2009-08-16.
7881
7882 2009-08-18 Kenichi Handa <handa@m17n.org>
7883
7884 * fontset.c (Ffontset_font): If a nil element is found in a
7885 font-group vector, return nil.
7886
7887 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7888
7889 * process.c (status_notify): Don't perform redisplay.
7890 (Fdelete_process, list_processes_1, process_send_signal):
7891 Expliticly perform redisplay.
7892 (wait_reading_process_output): Always check process status, but
7893 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7894
7895 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7896
7897 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7898 (XFLOAT_INIT): New macro for storing a float value.
7899 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7900 * fns.c (sxhash): Copy out the value of a float in order to
7901 examine its bytes.
7902 * dbusbind.c (xd_append_arg): Likewise.
7903
7904 * emacs.c (main): Don't call syms_of_data twice.
7905
7906 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7907
7908 * dbusbind.c (xd_initialize): Add connection file descriptor to
7909 input_wait_mask, in order to let select() detect, whether a new
7910 message has been arrived.
7911 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7912
7913 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7914
7915 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7916 New functions.
7917
7918 * lisp.h (xd_pending_messages): Declare.
7919
7920 * keyboard.c (readable_events): Call xd_pending_messages.
7921
7922 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7925
7926 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7927
7928 * buffer.c (set_buffer_internal_1)
7929 (swap_out_buffer_local_variables): Check for unbound local
7930 variables (Bug#4138).
7931
7932 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7933
7934 * process.c (create_pty): Fix last change.
7935
7936 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7937
7938 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7939 (xbm_load_image): Caller changed.
7940 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7941
7942 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7943
7944 * process.c (create_pty): New function.
7945 (Fstart_process): Use it to allow Emacs to just associate a pty
7946 with the buffer. See associated change in gdb-mi.el.
7947 (list_processes_1): Deal with no program name.
7948 (start_process_unwind): Use pid == -2 to mean no process.
7949
7950 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7951
7952 * cmds.c (nonundocount): New global variable.
7953 (keys_of_cmds): Initialize it.
7954 (Fself_insert_command): Use it to combine upto 20 sequential chars
7955 into a single undo entry, just like the Qself_insert_command code in
7956 keyboard.c does.
7957 Call frame_make_pointer_invisible, also like the Qself_insert_command
7958 code in keyboard.c does.
7959 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7960 than its own local replacement for it.
7961
7962 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7963
7964 * fns.c (concat): Don't re-set string length to its current value.
7965
7966 * coding.h (decode_coding_string, encode_coding_string):
7967 Use SBYTES macro.
7968
7969 * doprnt.c (doprnt_lisp): Delete unused function.
7970 (doprnt): Merge with doprnt1, discarding lispstrings code.
7971 * lisp.h (doprnt_lisp): Don't declare.
7972
7973 2009-08-07 Juri Linkov <juri@jurta.org>
7974
7975 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7976
7977 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7978
7979 * print.c (syms_of_print): Undo previous change.
7980
7981 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7982
7983 * lread.c (read1, syms_of_lread): Read hashtables back from the
7984 readable format.
7985
7986 * print.c (print_preprocess, print_object): Print hashtables fully
7987 and readably.
7988 (syms_of_print): Provide 'hashtable-print-readable.
7989
7990 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7991
7992 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7993 no family set.
7994 (nsfont_open): Handle case when entity has no family.
7995
7996 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7997
7998 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7999 element, not a list, for match case.
8000
8001 2009-07-28 Kenichi Handa <handa@m17n.org>
8002
8003 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8004 rigidly.
8005
8006 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8007 font_parse_xlfd. Check font properties more rigidly.
8008
8009 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8010
8011 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8012 bsd-common.h.
8013
8014 2009-07-27 Kenichi Handa <handa@m17n.org>
8015
8016 * xfaces.c (face_with_height): Call font_clear_prop.
8017
8018 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
8019
8020 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8021
8022 * xterm.c (x_term_init): Use Qx.
8023
8024 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8025
8026 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
8027 (ns_get_color): Revert 2009-07-16 change.
8028
8029 2009-07-25 Eli Zaretskii <eliz@gnu.org>
8030
8031 * lread.c (syms_of_lread) <force_load_messages>: New variable.
8032 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
8033
8034 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
8035
8036 * coding.h (decode_coding_string, encode_coding_string):
8037 Use SCHARS macro.
8038
8039 * lread.c: Rewrite 2009-07-21 changes.
8040 (load_depth): Delete.
8041 (Qload_in_progress): New variable.
8042 (load_unwind): Don't reference load_depth or load_in_progress.
8043 (Fload): Likewise; specbind Qload_in_progress instead.
8044 (init_lread): Don't initialize load_depth.
8045 (syms_of_lread): Initialize and protect Qload_in_progress.
8046
8047 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8048
8049 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8050
8051 2009-07-23 Yavor Doganov <yavor@gnu.org>
8052
8053 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8054
8055 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8056
8057 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
8058 Bugs 3792, 3720, 2402.
8059 (ns_lookup_indexed_color): Check for bad index.
8060 (ns_index_color): Init unused slot to 0.
8061 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8062 Bug 3714, possibly 3082.
8063
8064 2009-07-22 Jason Rumney <jasonr@gnu.org>
8065
8066 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8067 Position IME window at cursor (Bug#2570).
8068 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8069 (globals_of_w32fns): Dynamically load functions required above.
8070
8071 * w32term.c (w32_draw_window_cursor): Send message to reposition
8072 any IME window.
8073
8074 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8075
8076 * fileio.c: Revert 2009-07-16 changes.
8077 (Vauto_save_include_big_deletions): New variable.
8078 (Fdo_auto_save): Disable auto-save only if
8079 auto-save-include-big-deletions is nil.
8080
8081 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8082
8083 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8084 the overflowed pixels into account (Bug#3879).
8085
8086 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
8087
8088 * lread.c (load_depth): New variable.
8089 (Fload, load_unwind, init_lread): Set it to the load recursion
8090 depth; set load_in_progress as a simple boolean based on the
8091 current load_depth. (Bug#3892)
8092
8093 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8094
8095 * nsfont.m (ns_has_attribute): Remove.
8096 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8097
8098 2009-07-18 Juri Linkov <juri@jurta.org>
8099
8100 * process.c (Fset_process_query_on_exit_flag): Mention killing
8101 a buffer in docstring.
8102
8103 2009-07-17 Kenichi Handa <handa@m17n.org>
8104
8105 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8106
8107 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8108
8109 * nsfns.m (Fns_set_alpha): Remove function.
8110 (syms_of_nsfns): Don't defsubr it.
8111
8112 * nsterm.m (ns_get_color): Remove incompatible color formats.
8113 (ns_color_to_lisp): Generate #rrggbb color format string.
8114
8115 2009-07-16 Richard Stallman <rms@gnu.org>
8116
8117 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8118 (Fset_buffer_auto_saved): Handle save_length = -2.
8119
8120 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
8121
8122 * xterm.c (Qx_gtk_map_stock): New var.
8123
8124 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8125 of calling intern each time.
8126
8127 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8128
8129 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8130 does tiling.
8131
8132 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8133
8134 2009-07-14 Kenichi Handa <handa@m17n.org>
8135
8136 * font.c (font_vconcat_entity_vectors): New function.
8137 (struct font_sort_data): New member font_driver_preference.
8138 (font_compare): Check font_driver_preference.
8139 (font_sort_entities): The format of the first argument changed.
8140 (font_delete_unmatched): Likewise.
8141 (font_list_entities): The return type changed.
8142 (font_select_entity): The format of the second argument changed.
8143 (font_find_for_lface): Adjuste for the above changes.
8144 Don't suppress the checking of C even if the repertory supports it.
8145 (Flist_fonts): Adjust for the above changes.
8146
8147 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8148 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
8149 Reject a font who has adstyle property that is different from a
8150 langname derived from registry property.
8151 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
8152
8153 2009-07-13 Eli Zaretskii <eliz@gnu.org>
8154
8155 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8156 local copy of dirfilename.
8157
8158 2009-07-13 Kenichi Handa <handa@m17n.org>
8159
8160 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8161 against max_char.
8162
8163 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8164 calling XSYMBOL (sym).
8165
8166 2009-07-11 Eli Zaretskii <eliz@gnu.org>
8167
8168 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8169 New function.
8170 (directory_files_internal) [WINDOWSNT]:
8171 Bind w32-get-true-file-attributes to either t or nil, depending whether
8172 the filesystem of the directory is fast or slow.
8173
8174 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8175 file name.
8176 (is_slow_fs): New function.
8177 (stat): Use it to determine whether to issue more system calls to
8178 get accurate file attributes, when w32-get-true-file-attributes is
8179 `local'.
8180
8181 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8182
8183 * xfns.c (Fx_select_font): Remember last font selected in
8184 x_last_font_name and use that the next time. Also try the frame
8185 parameter font-parameter as default to the font dialog.
8186
8187 2009-07-10 Kenichi Handa <handa@m17n.org>
8188
8189 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8190
8191 2009-07-09 Eli Zaretskii <eliz@gnu.org>
8192
8193 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8194
8195 * w32.c (stat): Treat UNC file names as residing on remote
8196 drives. (Bug#3542)
8197
8198 2009-07-09 Kenichi Handa <handa@m17n.org>
8199
8200 * fontset.c (fontset_find_font): Fix previous change.
8201
8202 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
8203
8204 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8205 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8206 error flag.
8207
8208 2009-07-08 Kenichi Handa <handa@m17n.org>
8209
8210 * fontset.c (fontset_find_font): Fix the logic of handling
8211 charset_matched.
8212 (font_for_char): Delete unused var.
8213 (generate_ascii_font_name): Delete it.
8214
8215 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8216
8217 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8218 (encode_coding_sjis): Fix the code range check.
8219
8220 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
8221
8222 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8223 (Fexpand_file_name): Copy string data properly (Bug#3772).
8224
8225 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8226
8227 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8228 first MapNotify.
8229
8230 2009-07-07 Kenichi Handa <handa@m17n.org>
8231
8232 * character.h (unibyte_has_multibyte_table): Delete extern.
8233 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8234
8235 * charset.c (Fset_charset_priority): Update charset_unibyte.
8236 (syms_of_charset): Initialize charset_unibyte.
8237
8238 * character.c (unibyte_has_multibyte_table): Delete it.
8239 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8240 charset_unibyte.
8241 (multibyte_char_to_unibyte_safe): Likewise.
8242 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8243
8244 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
8245 (x_produce_glyphs): Likewise.
8246
8247 * .gdbinit (xcharset): Fix the treating $arg0.
8248
8249 2009-07-04 Eli Zaretskii <eliz@gnu.org>
8250
8251 Emulation of `getloadavg' on MS-Windows.
8252 * w32.c: Include float.h.
8253 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8254 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8255 (get_native_system_info, get_system_times): New functions.
8256 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8257 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8258 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8259 g_b_init_get_system_times, and num_of_processors.
8260
8261 2009-07-03 Jason Rumney <jasonr@gnu.org>
8262
8263 * w32term.c (w32_initialize): Use standard types.
8264
8265 2009-07-03 Eli Zaretskii <eliz@gnu.org>
8266
8267 * dired.c (Ffile_attributes): Decode user and group names by the
8268 locale's encoding. (Bug#3443)
8269
8270 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8271
8272 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8273 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8274
8275 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8276
8277 * term.c (init_tty): Remove spurious #ifdef.
8278
8279 * m/mips.h: Mention this file is also used for netbsd.
8280 * m/pmax.h: Remove file.
8281
8282 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8283
8284 * xterm.h (struct x_display_info): Add invisible_cursor.
8285 (struct x_output): Add current_cursor.
8286
8287 * xterm.c (XTtoggle_invisible_pointer): New function.
8288 (x_define_frame_cursor): Don't define cursor if invisible or the
8289 same as before. Set current_cursor.
8290 (x_create_terminal): Set toggle_invisible_pointer_hook.
8291
8292 * xfns.c (make_invisible_cursor): New function.
8293 (x_set_mouse_color): Call make_invisible_cursor.
8294 Set current_cursor.
8295 (x_window): Set current_cursor.
8296
8297 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8298
8299 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8300 inserting a character.
8301 (read_avail_input): Call frame_make_pointer_visible.
8302
8303 * frame.c (Vmake_pointer_invisible): New variable.
8304 (frame_make_pointer_invisible, frame_make_pointer_visible):
8305 New functions.
8306 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8307
8308 * frame.h: Declare frame_make_pointer_invisible and
8309 frame_make_pointer_visible.
8310 (struct frame): Add pointer_invisible.
8311
8312 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8313
8314 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8315 frame isn't visible.
8316 (xg_frame_resized): If width/height is -1, get size of window
8317 from X server.
8318
8319 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8320 for MapNotify.
8321
8322 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
8323 here or call change_frame_size. Just call flush_and_sync.
8324 (flush_and_sync): Reintroduce.
8325
8326 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
8327
8328 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
8329
8330 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8331 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8332
8333 * frame.h: Declare Qsticky.
8334
8335 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8336
8337 * nsfns.m (ns_frame_parm_handlers): Ditto.
8338
8339 * frame.c: Declare Qsticky.
8340 (frame_parms): Add sticky.
8341
8342 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8343
8344 * xterm.h: Declare x_set_sticky.
8345
8346 * xterm.c (x_set_sticky): New function.
8347
8348 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8349 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8350 xg_tool_bar_proxy_help_callback.
8351
8352 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8353
8354 * frame.c: Qmaximized is new.
8355 (x_set_frame_parameters): Do not handle fullscreen specially.
8356 Only set width and height if explicitly set.
8357 (x_set_fullscreen): Handle Qmaximized.
8358 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8359 (syms_of_frame): Initialize Qmaximized.
8360
8361 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8362 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
8363
8364 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
8365 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8366 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
8367 set gravity to NorthWestGravity when USE_GTK.
8368 (set_wm_state): New function.
8369 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
8370 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8371 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
8372 or the case when no window manager is running. That means remove calls
8373 to x_real_positions and x_fullscreen_adjust.
8374
8375 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8376 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8377 flush_and_sync.
8378 (xg_height_changed): New function.
8379 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
8380 and gtk_window_set_policy. Set frame gravity after parsing the
8381 geometry string.
8382 (xg_update_frame_menubar, free_frame_menubar)
8383 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8384 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8385 Remove calls to xg_frame_set_char_size.
8386
8387 2009-07-01 Kenichi Handa <handa@m17n.org>
8388
8389 * keyboard.c (decode_keyboard_code): New function.
8390 (tty_read_avail_input): Decode the input bytes if necessary.
8391
8392 * coding.c (setup_coding_system):
8393 Initialize coding->carryover_bytes to 0.
8394 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8395 use Qno_conversion.
8396
8397 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8398
8399 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8400
8401 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
8404
8405 2009-06-30 Jason Rumney <jasonr@gnu.org>
8406
8407 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8408 is already loaded.
8409 Set user model ID if supported (bug#1849).
8410
8411 2009-06-29 Jim Meyering <meyering@redhat.com>
8412
8413 Remove useless if-before-xfree test.
8414 * nsfont.m (nsfont_close): Remove useless test.
8415 * term.c (delete_tty): Likewise.
8416 * w32.c (system_process_attributes): Likewise.
8417 * w32font.c (w32font_close): Likewise.
8418 * xfaces.c (x_free_gc): Likewise.
8419 * xselect.c (buffer): Likewise.
8420
8421 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8422
8423 * process.c (send_process): Keep decoded string in a local
8424 variable and protect it from GC. (Bug#3521)
8425
8426 2009-06-28 Eli Zaretskii <eliz@gnu.org>
8427
8428 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8429 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8430
8431 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * xdisp.c (start_display, handle_face_prop)
8434 (move_it_vertically_backward, cursor_row_fully_visible_p)
8435 (redisplay_window, try_window_id, produce_image_glyph):
8436 Delete some #ifdef-ed out code chunks that are now obsolete.
8437
8438 * xterm.c (x_update_window_begin, x_new_focus_frame)
8439 (x_scroll_bar_handle_click, handle_one_xevent)
8440 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8441 (x_make_frame_visible, x_make_frame_invisible)
8442 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8443 code chunks that are now obsolete.
8444
8445 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
8446
8447 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8448 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8449 for hours, when optimzation is enabled.
8450 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8451 (xd_read_message): Make them static.
8452
8453 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8454
8455 * term.c (turn_on_face): Allow simultaneously bold and dim
8456 terminal faces (Bug#3530).
8457
8458 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
8459
8460 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8461
8462 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8463 truncation glyphs (Bug#3686).
8464
8465 2009-06-27 Glenn Morris <rgm@gnu.org>
8466
8467 * m/pmax.h: Restore file, with only netbsd portions.
8468
8469 2009-06-26 David Reitter <david.reitter@gmail.com>
8470
8471 * nsterm.m (keydown): Avoid infinite loop.
8472
8473 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8474
8475 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8476 the arg FORCE_SYMBOL.
8477
8478 2009-06-25 Kenichi Handa <handa@m17n.org>
8479
8480 * fontset.c (fontset_find_font): When a usable rfont_def is found
8481 in a fallback font-group, make it the first element of the group.
8482
8483 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
8484
8485 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8486
8487 2009-06-24 Kenichi Handa <handa@m17n.org>
8488
8489 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8490 set for C.
8491 (fontset_font): Record the availability of a font for C both in
8492 the realized fontsets of the current one and the default one.
8493
8494 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8495
8496 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8497 conditional, it is always defined on AIX.
8498
8499 2009-06-23 Miles Bader <miles@gnu.org>
8500
8501 * window.c (Vrecenter_redisplay): New variable.
8502 (syms_of_window): Initialize it.
8503 (Qtty): New extern declaration.
8504 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8505
8506 2009-06-23 Jim Meyering <meyering@redhat.com>
8507
8508 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8509 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
8510 pointer dereferences are guaranteed to be valid.
8511
8512 2009-06-23 Kenichi Handa <handa@m17n.org>
8513
8514 * emacs.c (main): Call init_font ().
8515
8516 * font.h (Vfont_log): Extern it.
8517 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8518
8519 * font.c (font_sort_entities, font_list_entities)
8520 (font_matching_entity, font_open_entity)
8521 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8522 (Vfont_log): Delete static.
8523 (font_log_env_checked): Delete this variable.
8524 (font_add_log): Don't check font_log_env_checked.
8525 (font_deferred_log): Check Vfont_log.
8526 (init_font): New function.
8527
8528 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8529
8530 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8531
8532 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8533
8534 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8535
8536 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8537 (face_for_char): Don't call font_deferred_log here.
8538 (font_for_char): Likewise.
8539
8540 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
8541
8542 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8543 rather than its background_width for drawing the overline and
8544 underline (Bug#489).
8545
8546 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8547 rather than its background_width for drawing the overline and
8548 underline (Bug#489).
8549 (xg_default_icon_file): New variable.
8550 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8551 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
8552
8553 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8554 (load_overlay_strings): Remove externs.
8555 (fast_find_position): Function deleted.
8556 (mouse_face_from_buffer_pos): New function, based on
8557 fast_find_position. Correctly handle before-strings,
8558 display-strings, and after-strings (Bug#1220).
8559 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8560
8561 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8562
8563 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
8564 (move_it_in_display_line_to, move_it_in_display_line_to)
8565 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8566
8567 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8568
8569 * Branch for 23.1.
8570
8571 2009-06-21 Jason Rumney <jasonr@gnu.org>
8572
8573 * w32term.c (keyboard_codepage): New static variable.
8574 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8575 (w32_read_socket) [WM_CHAR]: Use it to decode character
8576 input (bug#3237).
8577 (w32_initialize): Initialize it.
8578 (codepage_for_locale): New function.
8579
8580 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
8581
8582 * process.c (status_message): Pass Faset index argument as a lisp
8583 object, so as to work with USE_LISP_UNION_TYPE.
8584
8585 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8586
8587 * coding.c (Ffind_coding_systems_region_internal):
8588 Cache checked characters.
8589
8590 2009-06-18 Kenichi Handa <handa@m17n.org>
8591
8592 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
8593
8594 2009-06-18 Andreas Schwab <aschwab@redhat.com>
8595
8596 * xdisp.c (redisplay_internal): Check that the frame is still
8597 live after redisplay of its windows.
8598 (redisplay_windows): Check that the window is still live.
8599
8600 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8601
8602 * coding.c (detect_coding_utf_16): Fix previous change.
8603
8604 2009-06-16 Kenichi Handa <handa@m17n.org>
8605
8606 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8607 UTF-16 by checking the dispersion of Eth and Oth bytes.
8608
8609 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8610
8611 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8612
8613 2009-06-15 Kenichi Handa <handa@m17n.org>
8614
8615 * process.c (status_message): Fix previous change. Be sure to
8616 decode a localized string.
8617
8618 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8619
8620 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8621 add comment explaining why.
8622
8623 2009-06-14 Sidney Markowitz <sidney@sidney.com>
8624
8625 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
8626
8627 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8628
8629 * nsfont.m (ns_attribute_value): Remove.
8630 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8631 (ns_has_attribute): Shrink the normal range.
8632 (ns_findfonts): Don't worry about requested spec in determining
8633 need for synthItal.
8634 (ns_get_covering_families): Retain scriptToFamilies.
8635
8636 2009-06-14 Seiji Zenitani <zenitani@mac.com>
8637
8638 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8639
8640 2009-06-11 Kenichi Handa <handa@m17n.org>
8641
8642 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8643 overhang for the static composition case.
8644
8645 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8646
8647 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8648 overhang for the automatic composition case.
8649
8650 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8651 composition case.
8652
8653 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
8654
8655 * xdisp.c (get_next_display_element): When handling wrap-prefix
8656 and line-prefix, treat \n as a control character (bug#3502).
8657
8658 2009-06-10 Kenichi Handa <handa@m17n.org>
8659
8660 * font.c (font_parse_family_registry): Fix for one-char foundry.
8661 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8662
8663 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8664
8665 * process.c (status_message): Fix handling of multibyte signal
8666 string (Bug#3499).
8667
8668 2009-06-09 Jim Meyering <meyering@redhat.com>
8669
8670 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8671 color name is missing.
8672
8673 2009-06-09 Kenichi Handa <handa@m17n.org>
8674
8675 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8676 FROM-CODE and TO-CODE are codepoints of CHARSET.
8677
8678 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8679
8680 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8681
8682 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8683
8684 Changes to support :script/:lang/:otf in NS font driver.
8685 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8686 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8687 indicate not part of font driver interface, and change callers.
8688 (ns_get_family): Remove pointless null check.
8689 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8690 ns_spec_to_descriptor, ns_descriptor_to_entity.
8691 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8692 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8693 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8694 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8695 (ns_get_req_script, ns_accumulate_script_ranges)
8696 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8697 New functions.
8698 (nsfont_list, nsfont_match): Use ns_findfonts.
8699 (nsfont_open): Use font descriptor instead of traits.
8700 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8701 (dump_glyphstring): Rename to ns_dump_glyphstring.
8702
8703 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8704
8705 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8706
8707 * fontset.c (fontset_from_font): Remove NS-specific code.
8708
8709 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8710
8711 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8712 nonactive windows.
8713
8714 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8715
8716 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8717
8718 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8719
8720 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8721
8722 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8723
8724 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8725 account for the overflowing of newlines into the last glyph on the
8726 display line (Bug#3482).
8727
8728 2009-06-05 David Reitter <david.reitter@gmail.com>
8729
8730 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8731 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8732 Fns_selection_exists_p, Fns_selection_owner_p.
8733
8734 2009-06-03 Jason Rumney <jasonr@gnu.org>
8735
8736 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8737 available. (Bug#3379)
8738
8739 2009-05-29 Kenichi Handa <handa@m17n.org>
8740
8741 * coding.c (get_translation_table):
8742 Check Venable_character_translation.
8743
8744 2009-05-26 David Reitter <david.reitter@gmail.com>
8745
8746 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8747 (x_make_frame_visible): Move frame to front rather than calling
8748 ns_raise_frame().
8749 (keyDown:): Do not swallow events that aren't re-sent if frame
8750 isn't key window.
8751 (drawRect:): Do not set visibility/iconified flags because
8752 drawRect may be called by NSView even if the frame is hidden.
8753
8754 * nsfns.m (Fx_create_frame): Follow other ports in
8755 determining visibility; default to t. Ensure async_visible is set.
8756
8757 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8758
8759 * dired.c (Ffile_attributes): Doc fix.
8760
8761 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8762
8763 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8764
8765 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8766
8767 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8768 and xfont_scratch_props.
8769 (syms_of_xfont): Do it here instead.
8770 (xfont_find_ccl_program): Delete, unused.
8771 (xfont_open): Delete unused var `i'.
8772
8773 2009-05-21 Kenichi Handa <handa@m17n.org>
8774
8775 * fontset.c (Qlatin): Don't make it static.
8776
8777 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8778 New functions.
8779 (xfont_scripts_cache, xfont_scratch_props): New variables.
8780 (Qlatin, Vscalable_fonts_allowed): Extern it.
8781 (xfont_list_pattern): Argument changed. Callers changed.
8782 Check Vscalable_fonts_allowed. Check the support of a script.
8783 (xfont_list): Don't reject a font spec with :script property.
8784 (xfont_has_char): Fix setting of encoding.
8785 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8786 xfont_scratch_props.
8787
8788 2009-05-19 Kenichi Handa <handa@m17n.org>
8789
8790 * font.c (font_sort_entities): Rename from font_sort_entites.
8791 Callers changed.
8792
8793 2009-05-18 Kenichi Handa <handa@m17n.org>
8794
8795 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8796
8797 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8798
8799 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8800 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8801
8802 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8803
8804 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8805 (x_delete_terminal): Dissociate resource database from display and
8806 then call XrmDestroyDatabase before closing display.
8807
8808 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8809
8810 * nsterm.m (ns_read_socket): Remove unused variable.
8811 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8812 whether selected frame is viable before raising it (based on patch
8813 by David Reitter), and improve commentary.
8814 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8815
8816 2009-05-15 Kenichi Handa <handa@m17n.org>
8817
8818 * font.c (Ffont_spec): Check arguments.
8819
8820 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8821
8822 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8823 weight when testing attributes (Bug#3282).
8824
8825 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8826
8827 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8828 what we expect to get in the next ConfigureNotify event.
8829
8830 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8831 before Xft one (Bug#1696).
8832
8833 2009-05-07 David Reitter <david.reitter@gmail.com>
8834
8835 * nsfns.m (Fx_display_planes): Compute bitplanes using
8836 NSBitsPerPixelFromDepth (Bug#3207).
8837
8838 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8839
8840 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8841
8842 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8843
8844 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8845
8846 2009-05-07 David Reitter <david.reitter@gmail.com>
8847
8848 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8849 Respect mouse face background.
8850
8851 2009-05-07 David Reitter <david.reitter@gmail.com>
8852
8853 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8854 Mouse movement/highlight: bracket drawing operations
8855 in ns_update_begin and ns_update_end.
8856
8857 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8858
8859 * nsfns.m (ns_get_screen): Rewrite.
8860 Don't presume selected-frame is of type `ns'.
8861
8862 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8863 all drivers.
8864
8865 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8866
8867 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8868
8869 * keyboard.h (add_user_signal): Fix typo in extern.
8870
8871 * lisp.h (add_user_signal): Remove extern.
8872
8873 * unexelf.c (unexec): Consider a section to precede the .bss section
8874 if its addresses overlap that of .bss.
8875 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8876 instead of dumping process.
8877
8878 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8879
8880 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8881
8882 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8883
8884 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8885
8886 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8887
8888 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8889 any statements.
8890
8891 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8892
8893 * process.c (read_process_output): Make sure the current buffer is
8894 always restored.
8895
8896 * coding.c (record_conversion_result): Don't modify
8897 Vlast_code_conversion_error for successful result.
8898 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8899
8900 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8901
8902 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8903 (load_charset_map): Remove unnecessary code.
8904
8905 2009-04-30 David Reitter <david.reitter@gmail.com>
8906
8907 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8908 through f24.
8909
8910 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8911
8912 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8913
8914 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8915 face_at_buffer_position.
8916 (face_before_or_after_it_pos, get_next_display_element)
8917 (note_mouse_highlight): Update face_at_buffer_position call.
8918
8919 * term.c (term_mouse_highlight):
8920 * msdos.c (IT_note_mouse_highlight):
8921 * fontset.c (Finternal_char_font):
8922 * font.c (font_at, font_range): Update face_at_buffer_position call.
8923
8924 * dispextern.h (face_at_buffer_position): Update prototype.
8925
8926 2009-04-30 Kenichi Handa <handa@m17n.org>
8927
8928 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8929
8930 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8931
8932 * callproc.c (Fcall_process): Fix GC protection. Make sure
8933 current buffer is always restored.
8934
8935 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8936
8937 * atimer.c (init_atimer): Also clear stopped_atimers.
8938
8939 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8940
8941 * process.c (create_process): Clean up merger residues of
8942 2008-07-17 change.
8943
8944 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8945
8946 * lread.c (Vread_circle): New variable.
8947 (read1): Disable recursive read if Vread_circle is nil.
8948
8949 2009-04-29 Kenichi Handa <handa@m17n.org>
8950
8951 * fontset.h (set_default_ascii_font): Delete extern.
8952
8953 * fontset.c (set_default_ascii_font): Delete this unused function.
8954
8955 * frame.c (x_set_font): When ARG is a font-object, check if the
8956 font-object matches with the ASCII font-spec of the frame's
8957 fontset. If not, create a new fontset for the frame. (Bug #3075)
8958
8959 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8960
8961 * fns.c (Flocale_info): Protect vector from GC during decoding.
8962
8963 * process.c (Fstart_process): Protect argv strings from GC during
8964 encoding.
8965
8966 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8967
8968 * sysdep.c: Include <ctype.h>.
8969
8970 2009-04-27 David Reitter <david.reitter@gmail.com>
8971
8972 * nsfont.m (nsfont_open): Remove unused variable shrink.
8973 Remove commented-out code.
8974
8975 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8976
8977 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8978
8979 2009-04-25 Jason Rumney <jasonr@gnu.org>
8980
8981 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8982
8983 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8984
8985 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8986 Swap bytes in short integer if fringe bitmap width > 8.
8987
8988 2009-04-23 Kenichi Handa <handa@m17n.org>
8989
8990 * xfaces.c (Fx_list_fonts): If a font size is specified in
8991 PATTERN, set it in returned scalable fonts.
8992
8993 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8994
8995 * keyboard.c (Fset_input_meta_mode): Doc fix.
8996
8997 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8998
8999 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
9000
9001 * coding.c (Fterminal_coding_system): Doc fix.
9002
9003 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9004 (Fx_display_pixel_height, Fx_display_planes)
9005 (Fx_display_color_cells, Fx_server_max_request_size)
9006 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9007 (Fx_display_mm_height, Fx_display_mm_width)
9008 (Fx_display_backing_store, Fx_display_visual_class)
9009 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9010 Doc fixes, replacing "terminal id" with "terminal object".
9011 (check_x_display_info): Handle terminal objects instead of
9012 terminal ids.
9013
9014 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9015 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
9016 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9017 Doc fixes, replacing "terminal id" with "terminal object".
9018
9019 2009-04-21 Kenichi Handa <handa@m17n.org>
9020
9021 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
9022 (font_score): Check AVGWIDTH too.
9023
9024 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9025 worst case.
9026 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9027 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
9028
9029 2009-04-19 Jason Rumney <jasonr@gnu.org>
9030
9031 The following changes fix Bug#3005 for wide glyphs on each platform,
9032 without reintroducing Bug#1258 for stretch glyphs.
9033
9034 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9035 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9036 get_phys_cursor_geometry.
9037
9038 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
9039 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9040 using get_phys_cursor_geometry.
9041
9042 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9043 correctly calculated.
9044
9045 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9046
9047 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9048 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
9049 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9050 is deprecated.
9051
9052 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9053
9054 * font.c (font_put_frame_data): Use xfree instead of free.
9055
9056 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
9057
9058 * w32font.c (Qja, Qko): Remove declarations.
9059 (syms_of_w32font): Don't DEFSYM them.
9060
9061 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
9062
9063 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9064
9065 * font.h (Qja, Qko): Extern them.
9066
9067 * ftfont.c (Qja, Qko): Remove declarations.
9068
9069 * xfont.c (Qja, Qko): Remove declarations.
9070
9071 2009-04-17 Kenichi Handa <handa@m17n.org>
9072
9073 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9074 string from a vector to handle Latin-1 characters correctly.
9075
9076 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9077 entity even if the cache hits.
9078
9079 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9080
9081 * search.c (boyer_moore): Use zero as marker value for a possible
9082 match instead of depending on overflow behavior. (Bug#2844)
9083
9084 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9085 * lisp.h: Adjust prototypes.
9086
9087 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
9088
9089 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9090 change (Bug#3003).
9091
9092 2009-04-16 Kenichi Handa <handa@m17n.org>
9093
9094 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
9095
9096 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9097 adstyle.
9098
9099 * ftfont.c (Qja, Qko): Don't make them static.
9100 (enum ftfont_cache_for): New enum.
9101 (fc_charset_table): Undo the previous change.
9102 (ftfont_get_latin1_charset): Delete it.
9103 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9104 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
9105 non-scarable font, try to get AVERAGE_WIDTH.
9106 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9107 Change ft_face_cache from a list of a hash-table. Don't check
9108 `ja' and `ko' adstyle here.
9109 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9110 FTFONT_CACHE_FOR_CHARET.
9111 (ftfont_get_charset): Undo the previous change.
9112 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
9113 (ftfont_close): Likewise.
9114 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9115
9116 * font.c (font_sort_entites): Change the meaning of the arg
9117 BEST-ONLY. Don't optimize for VEC of lenght 1.
9118 (font_select_entity): Just return the value of font_sort_entites.
9119
9120 * xfaces.c (merge_face_vectors): Reflect font properties in
9121 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9122 font_clear_prop if a face attribute doesn't change.
9123
9124 * charset.h (charset_ksc5601): Extern it.
9125
9126 * charset.c (charset_ksc5601): New variable.
9127 (Fdefine_charset_internal): Set charset_ksc5601.
9128 (init_charset_once): Initialize charset_ksc5601 to -1.
9129
9130 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9131
9132 * fileio.c (history_delete_duplicates): Remove unused declaration.
9133
9134 * callint.c (history_delete_duplicates): New declaration.
9135 (Fcall_interactively): Remove command history duplicates when
9136 history_delete_duplicates is true.
9137
9138 2009-04-14 Eli Zaretskii <eliz@gnu.org>
9139
9140 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9141
9142 2009-04-14 Kenichi Handa <handa@m17n.org>
9143
9144 * font.c (Ffont_info): Fix docstring. Fix the second element of
9145 the returned value (bug#2949).
9146
9147 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
9148
9149 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9150
9151 2009-04-14 Kenichi Handa <handa@m17n.org>
9152
9153 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9154 encoding charset is ascii_compatible.
9155
9156 * charset.c (Fdefine_charset_internal): Make charset
9157 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9158 code_offset is 0, and covers all ASCII characters.
9159
9160 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9161
9162 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9163 (ns_string_to_pasteboard_internal):
9164 * nsmenu.m (process_dialog):
9165 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9166 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9167 * lisp.h (Fx_load_color_file): Declare.
9168
9169 2009-04-13 Kenichi Handa <handa@m17n.org>
9170
9171 * font.c (font_delete_unmatched): Preserve the order of list elements.
9172 (font_select_entity): Suppress the code to optimize for the same
9173 kind of fonts.
9174 (font_load_for_lface): Get a font that supports at least ASCII
9175 characters.
9176
9177 * ftfont.c (Qja, Qko): New variables.
9178 (fc_charset_table): Delete uniquifier data for iso8859-1.
9179 (ftfont_get_latin1_charset): New function.
9180 (get_adstyle_property): New function.
9181 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9182 bitmap fonts.
9183 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9184 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9185 `ko' or `ja'.
9186 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
9187 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
9188 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9189 property.
9190 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9191 (syms_of_ftfont): DEFSYM Qja and Qko.
9192
9193 2009-04-09 Kenichi Handa <handa@m17n.org>
9194
9195 * charset.c (map_charset_chars): For a charset of `superset'
9196 method, fix calculation of code range.
9197
9198 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9199 from the list of extra properties.
9200 (font_clear_prop): Be sure to delete `:name' font property.
9201
9202 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9203
9204 * dispnew.c (redraw_overlapping_rows): Fix detection of
9205 overlapping for topmost and bottommost rows.
9206
9207 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
9208
9209 2009-04-06 Jason Rumney <jasonr@gnu.org>
9210
9211 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9212
9213 2009-04-06 Kenichi Handa <handa@m17n.org>
9214
9215 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9216
9217 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9218
9219 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9220
9221 * ftfont.c (ftfont_open): Fix checking of the return value of
9222 FT_Load_Char. Fix setting font->underline_thickness.
9223
9224 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9227 (Fterminal_parameters, Fterminal_parameter)
9228 (Fset_terminal_parameter): In doc string, refer to terminal
9229 objects rather than terminal ids.
9230
9231 2009-04-04 Eli Zaretskii <eliz@gnu.org>
9232
9233 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9234 ret_lim_data. (Bug#2867)
9235
9236 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
9237
9238 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9239 so they don't get wider than the window, matching 2006-01-23
9240 change to the partner function in xdisp.c (Bug#2800).
9241
9242 2009-04-03 Kenichi Handa <handa@m17n.org>
9243
9244 * print.c (print_object): Make each lowest sub_char_table start a
9245 new line (Bug#2866).
9246
9247 2009-04-02 Kenichi Handa <handa@m17n.org>
9248
9249 * fontset.c (fontset_font): Record no-font when a fontset
9250 explicitly tells not to try another font-specs.
9251
9252 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9253
9254 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9255
9256 2009-03-30 Kenichi Handa <handa@m17n.org>
9257
9258 * fontset.c (fontset_from_font): Specify only registry in a
9259 font-spec for all characters supported by that registry.
9260
9261 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9262 even if HAVE_M17N_FLT is not defined.
9263
9264 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9265
9266 * ftfont.c: Conditionalize prototyping and use of
9267 ftfont_variation_glyphs.
9268
9269 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9270
9271 * frame.c (delete_frame): Work around compiler bug.
9272
9273 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9274 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9275 Some more EMACS_INT.
9276 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9277
9278 * xdisp.c (dump_glyph): Fix typo.
9279
9280 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9281 (adjust_markers_gap_motion, adjust_markers_for_delete)
9282 (adjust_markers_for_insert, adjust_point)
9283 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9284 (make_gap, copy_text, count_size_as_multibyte, insert)
9285 (insert_and_inherit, insert_before_markers)
9286 (insert_before_markers_and_inherit, insert_1)
9287 (count_combining_before, count_combining_after, insert_1_both)
9288 (insert_from_string, insert_from_string_before_markers)
9289 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9290 (insert_from_buffer_1, adjust_after_replace)
9291 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9292 (replace_range_2, del_range, del_range_1, del_range_byte)
9293 (del_range_both, del_range_2, modify_region)
9294 (prepare_to_modify_buffer, signal_before_change)
9295 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9296 for buffer positions and sizes.
9297 * lisp.h: Adjust prototypes accordingly.
9298
9299 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9300 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9301 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9302
9303 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9304
9305 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9306
9307 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9308 lines and columns so we keep the same pixel height and width.
9309
9310 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9311 the property _NET_WM_STATE has changed.
9312 (x_handle_net_wm_state): New function to update frame parameter
9313 fullscreen.
9314 (x_term_init): Initialize atoms for _NET_WM_STATE.
9315
9316 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9317
9318 2009-03-27 Kevin Ryde <user42@zip.com.au>
9319
9320 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9321 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9322 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9323 (Fgpm_mouse_stop): Pass that new parameter.
9324 * termhooks.h (close_gpm): Adjust prototype.
9325
9326 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9327
9328 * lisp.h (Fx_focus_frame): Declare.
9329
9330 * callint.c (Fcall_interactively): For '^' just delegate the work to
9331 handle-shift-selection.
9332 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9333
9334 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
9335
9336 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9337
9338 * data.c (Qinteractive_form): New variable.
9339 (Finteractive_form): Use it.
9340
9341 * eval.c (Fcommandp): Use Qinteractive_form.
9342
9343 2009-03-24 Jason Rumney <jasonr@gnu.org>
9344
9345 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9346 Calculate total size precisely. Decode environment variables
9347 before substituting. (Bug#38)
9348
9349 2009-03-24 Kenichi Handa <handa@m17n.org>
9350
9351 * font.c (find_font_encoding): Return Qnil for unsupported
9352 encoding (Bug#2722).
9353
9354 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9355
9356 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9357 that gdpy is set.
9358
9359 2009-03-22 Alan Mackenzie <acm@muc.de>
9360
9361 * callint.c (Finteractive): Clarify the doc string - even
9362 promptless elements need \n separators.
9363
9364 2009-03-22 Jason Rumney <jasonr@gnu.org>
9365
9366 * w32term.c (syms_of_w32term): Doc fix for
9367 x-use-underline-position-properties.
9368
9369 2009-03-21 Eli Zaretskii <eliz@gnu.org>
9370
9371 * w32.c (getpwuid): Change argument type to unsigned.
9372 (struct w32_id): Change type of `rid' member to unsigned.
9373 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9374 argument ID to unsigned. All callers changed.
9375 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9376
9377 2009-03-20 Eli Zaretskii <eliz@gnu.org>
9378
9379 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9380 negative, produce a float value.
9381
9382 * dired.c (make_uid, make_gid): New functions.
9383 (Ffile_attributes): Use them to avoid negative UID and GID.
9384
9385 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
9386
9387 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9388 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9389 Fix typos in docstrings.
9390
9391 2009-03-19 Kenichi Handa <handa@m17n.org>
9392
9393 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
9394 changed, use font_load_for_lface to get a new font object.
9395 Call free_realized_fontset after handling ASCII font change.
9396
9397 * frame.c (x_set_font): Handle the case that ARG is a cons.
9398
9399 2009-03-19 Glenn Morris <rgm@gnu.org>
9400
9401 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9402
9403 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
9404
9405 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9406
9407 2009-03-19 Kenichi Handa <handa@m17n.org>
9408
9409 * charset.c (load_charset_map_from_file): When a mapfile can't be
9410 loaded, signal an error.
9411
9412 2009-03-18 Eli Zaretskii <eliz@gnu.org>
9413
9414 * dired.c (Ffile_attributes): Make sure UID and GID are always
9415 positive, even if the value is too large for a positive EMACS_INT.
9416 Doc fix.
9417
9418 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9419
9420 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9421
9422 * xmenu.c (xdialog_show): Move Fredisplay call ...
9423 (Fx_popup_dialog): ... here.
9424
9425 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9426
9427 * dired.c (file_name_completion): Disable the first optimization just
9428 installed, since it is not implemented correctly.
9429
9430 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9431
9432 * dired.c (file_name_completion): Check completion-ignored-extensions
9433 only if the entry can affect bestmatch.
9434 Stop the search early, as Ftry_completion already does.
9435
9436 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
9437
9438 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
9439
9440 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
9441
9442 * keyboard.c (parse_menu_item): Don't display remappings as menu
9443 equivalent bindings (Bug#788).
9444
9445 2009-03-15 Jason Rumney <jasonr@gnu.org>
9446
9447 * w32term.h (WM_EMACS_PAINT): New message.
9448 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9449 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9450 before passing to lisp thread. (Bug#950)
9451
9452 2009-03-14 David Reitter <david.reitter@gmail.com>
9453
9454 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9455 variable as it was never reset.
9456 (ns_term_init): Remove initialization of Lisp-settable defaults
9457 and ns_expand_space.
9458 (-setPanelFromDefaultValues): Remove ns_expand_space.
9459 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9460 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
9461 i.e. no additional spacing, similar to Carbon port.
9462
9463 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9464 * nsfns.m (ns-popup-prefs-panel): Remove.
9465
9466 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9467
9468 * sound.c (alsa_configure): Remove call to deprecated
9469 snd_pcm_sw_params_set_xfer_align.
9470
9471 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
9472
9473 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9474 after clicking in a detached tool bar.
9475 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9476
9477 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9478
9479 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9480 int/Lisp_Object mixup).
9481
9482 2009-03-13 Kenichi Handa <handa@m17n.org>
9483
9484 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
9485 Handle NAME nil and t correctly. Callers changed.
9486 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9487 (set_fontset_font): Change ARG to a vector. Handle range_list in
9488 ARG correctly.
9489 (Fset_fontset_font): Fix the case that TARGET is both a script
9490 name and charset name. Adjust the arg to set_fontset_font for
9491 the above change.
9492 (fontset_from_font): Fix previous change.
9493 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
9494 entry. If FONTSET is the default fontset, don't set the extra
9495 slot of the returning char-table.
9496
9497 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
9498
9499 * nsfns.m (Fx_close_connection): Doc fix.
9500 (Fns_do_applescript): Reflow docstring.
9501 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9502 (Fx_display_pixel_width, Fx_display_pixel_height)
9503 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9504 Fix typos in docstrings.
9505 (Fns_set_alpha): Fix typos in error messages.
9506
9507 2009-03-12 David Reitter <david.reitter@gmail.com>
9508
9509 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
9510 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9511 were used for such events.
9512
9513 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9514 (toggleToolbar, performDragOperation, runHelp): Use it.
9515
9516 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
9517 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9518
9519 2009-03-11 Kenichi Handa <handa@m17n.org>
9520
9521 * font.h (font_open_by_spec): Extern it.
9522
9523 * font.c (font_open_by_spec): New function.
9524 (font_open_by_name): Use font_open_by_spec.
9525
9526 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9527 fontset of the frame.
9528
9529 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9530 modify the default font of frames that use this fontset.
9531 (num_auto_fontsets): New variable.
9532 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9533 name. Be sure to set FONTSET_ASCII to the correct font name.
9534 (update_auto_fontset_alist): New function.
9535
9536 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
9537
9538 * makefile.w32-in: Update dependencies.
9539
9540 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9541
9542 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9543
9544 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9545
9546 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9547
9548 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
9549
9550 * lread.c (Feval_buffer): Doc fix.
9551
9552 2009-03-09 Kenichi Handa <handa@m17n.org>
9553
9554 * charset.c (Qfile_name_handler_alist): Extern it.
9555 (load_charset_map_from_file): Temporarily bind
9556 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9557
9558 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
9559
9560 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9561 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
9562
9563 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9564
9565 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9566 (x_set_window_size): Change back to calculated method of setting
9567 toolbar height under Cocoa. (Bug#2546)
9568 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9569 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9570
9571 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9572
9573 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9574 accelerator in parens under GNUstep.
9575
9576 2009-03-06 Kenichi Handa <handa@m17n.org>
9577
9578 These changes are to detect incorrect composition sequence without
9579 looking ahead the source. (Bug#2370)
9580
9581 * coding.h: Include "composite.h".
9582 (enum compisition_state): New enum.
9583 (struct compisition_status): New struct.
9584 (struct iso_2022_spec): New member cmp_status.
9585 (struct emacs_mule_spec): New struct.
9586 (struct coding_system): New members ctext_extended_segment_len and
9587 embedded_utf_8. Change the union member
9588 spec.emacs_mule_full_support to spec.emacs_mule.
9589
9590 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9591 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
9592 (MAX_ANNOTATION_LENGTH): Define to 5.
9593 (ADD_COMPOSITION_DATA): New arg nbytes.
9594 (emacs_mule_char): New arg cmp_status.
9595 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9596 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9597 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9598 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9599 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9600 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9601 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9602 (EMACS_MULE_COMPOSITION_END): New macro.
9603 (emacs_mule_finish_composition): New function.
9604 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9605 (decode_coding_emacs_mule): Avoid long looking ahead while
9606 handling composition.
9607 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9608 (ENCODE_COMPOSITION_RULE): New macro.
9609 (finish_composition): New function.
9610 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9611 (DECODE_COMPOSITION_START): New implementation.
9612 (DECODE_COMPOSITION_END): Likewise.
9613 (STORE_COMPOSITION_RULE): New macro.
9614 (decode_coding_iso_2022): Avoid long looking ahead while handling
9615 composition, CTEXT extended segment, and embedded UTF-8.
9616 (setup_coding_system): For a coding of type iso-2022, reset
9617 CODING_ISO_EXTSEGMENT_LEN (coding) and
9618 CODING_ISO_EMBEDDED_UTF_8 (coding).
9619 (get_translation): Delete arguments last_block, from_nchars,
9620 to_nchars. Callers changed.
9621 (produce_chars): Don't modify charbuf. Adjusted for the change of
9622 get_translation.
9623 (produce_composition): Adjust for the new annotation sequence.
9624 (handle_composition_annotation): Likewise.
9625 (consume_chars): Adjust for the change of get_translation.
9626
9627 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9628
9629 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
9630
9631 2009-03-05 Kenichi Handa <handa@m17n.org>
9632
9633 * font.c (font_select_entity): New function.
9634 (font_find_for_lface): Use font_select_entity to select a font.
9635
9636 * fontset.c (fontset_find_font): If a font found without
9637 restricting to the characters C doesn't support C, try to find a
9638 font with C restriction.
9639
9640 2009-03-04 Nikolaj Schumacher <me@nschum.de>
9641
9642 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
9643
9644 2009-03-04 Jason Rumney <jasonr@gnu.org>
9645
9646 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
9647 characters that have already been read. (Bug#2569)
9648
9649 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9650 Log an error message if check_image_size failed.
9651 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
9652 (gs_load): Mention max-image-size in size error message. (Bug#2560)
9653
9654 2009-03-02 Eli Zaretskii <eliz@gnu.org>
9655
9656 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9657 when decoding process output.
9658
9659 2009-03-01 Richard M Stallman <rms@gnu.org>
9660
9661 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9662
9663 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9664
9665 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9666
9667 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9668 (decode_coding_emacs_mule, decode_coding_iso_2022)
9669 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9670 (decode_coding_raw_text, decode_coding_charset)
9671 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9672 Honor inhibit-eol-conversion. (Bug #2186)
9673
9674 2009-02-28 Jason Rumney <jasonr@gnu.org>
9675
9676 * coding.c (detect_coding_charset): If not checking latin extra,
9677 fail on characters between 0x80 and 0xA0. (Bug#2354)
9678
9679 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9680
9681 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
9682 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
9683
9684 2009-02-27 Glenn Morris <rgm@gnu.org>
9685
9686 * callint.c (Finteractive): Doc fix.
9687
9688 2009-02-27 Kenichi Handa <handa@m17n.org>
9689
9690 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9691
9692 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9693
9694 * font.c (font_style_to_value): Set value for unknown symbols to
9695 100 instead of 255.
9696 (weight_table, slant_table, width_table): Treat "unspecified" as
9697 the default value.
9698
9699 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9700
9701 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9702
9703 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9704
9705 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9706 error as soon as a recursive load is detected.
9707
9708 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9709
9710 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9711 before caching.
9712
9713 2009-02-24 Kenichi Handa <handa@m17n.org>
9714
9715 * fontset.c (fontset_find_font): Fix the condition for checking
9716 unavailable font.
9717
9718 2009-02-24 Glenn Morris <rgm@gnu.org>
9719
9720 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9721 whitespace that confuses documentation.
9722
9723 2009-02-23 Miles Bader <miles@gnu.org>
9724
9725 * process.c (Flist_system_processes, Fprocess_attributes)
9726 (syms_of_process): Rename `system-process-attributes' to
9727 `process-attributes'.
9728
9729 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9730
9731 * coding.h (struct coding_system): Make safe_charsets a pointer to
9732 unsigned char.
9733 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9734 being 255.
9735 (SAFE_CHARSET_P): Likewise.
9736 (setup_iso_safe_charsets): Properly setup safe_charsets.
9737 (Fdefine_coding_system_internal): Likewise.
9738 (setup_coding_system): Likewise. Remove unneeded casts.
9739 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9740 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9741 unneeded casts.
9742
9743 * insdel.c (del_range_2): Don't modify gap contents when called
9744 from decode_coding_object. (Bug#1809)
9745
9746 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9747
9748 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9749 Qfont_object.
9750 (Ftype_of): Recognize font objects.
9751
9752 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9753
9754 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9755 moved to data.c.
9756
9757 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9758
9759 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9760 async_iconified. Based on a patch by Christian Lynbech
9761 <christian.lynbech@tieto.com>.
9762 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9763
9764 2009-02-20 Glenn Morris <rgm@gnu.org>
9765
9766 * syntax.c (Fskip_chars_forward): Fix doc typo.
9767
9768 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9769
9770 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9771
9772 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9773
9774 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9775
9776 2009-02-19 Kenichi Handa <handa@m17n.org>
9777
9778 * coding.c (detect_coding): Preserve coding->mode.
9779 Don't overflow coding->carryover. (Bug#2370)
9780
9781 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9782
9783 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9784
9785 2009-02-18 Kenichi Handa <handa@m17n.org>
9786
9787 * font.c (font_check_otf_features): Fix handling of `nil' element.
9788 (Ffont_spec): Describe :lang and :otf in the docstring.
9789
9790 2009-02-16 Andreas Schwab <schwab@suse.de>
9791
9792 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9793 string.
9794
9795 2009-02-16 Kenichi Handa <handa@m17n.org>
9796
9797 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9798 (Bug#1723)
9799
9800 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9801
9802 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9803
9804 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9805 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9806
9807 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9808
9809 * msdos.c (MAX_SCREEN_BUF): New macro.
9810 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9811 Encode the entire run of glyphs sharing the same face, instead of
9812 doing that one glyph at a time (fixes a bug with displaying
9813 double-size characters).
9814
9815 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9816
9817 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9818
9819 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9820 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9821 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9822
9823 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9824 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9825
9826 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9827
9828 * keyboard.c (adjust_point_for_property): Allow stopping between two
9829 invisible areas.
9830
9831 2009-02-12 Jason Rumney <jasonr@gnu.org>
9832
9833 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9834 (add_font_entity_to_list): Call check_face_name even when family
9835 is unspecified.
9836
9837 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9838 Release DC when finished. Use NULL window to refer to desktop.
9839 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9840
9841 * w32font.c (add_font_entity_to_list): Fix check for substituted
9842 raster fonts. (Bug#2219)
9843
9844 2009-02-12 Kenichi Handa <handa@m17n.org>
9845
9846 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9847 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9848 (autocmp_chars): Use fast_looking_at. Don't compose more
9849 characters than MAX_COMPOSITION_COMPONENTS.
9850 (find_automatic_composition): While looking forward and backward,
9851 check static composition. Fix where to stop looking forward.
9852 (composition_adjust_point): Fix checking of static composition.
9853 (Fcomposition_get_gstring): Pay attention to
9854 MAX_COMPOSITION_COMPONENTS.
9855
9856 * lisp.h (fast_looking_at): Extern it.
9857
9858 * search.c (fast_looking_at): New function.
9859
9860 * term.c (encode_terminal_code): Adjust for the change of
9861 <struct glyph>.u.cmp.to.
9862 (append_composite_glyph): Likewise.
9863
9864 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9865 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9866 composition.
9867 (append_composite_glyph): Adjust for the change of
9868 <strcut glyph>.u.cmp.to.
9869
9870 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9871
9872 * casetab.c (init_casetab_once):
9873 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9874 * font.c (font_update_lface):
9875 * fontset.c (Fnew_fontset):
9876 * ftfont.c (ftfont_drive_otf):
9877 * xfont.c (xfont_open):
9878 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9879
9880 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9881
9882 * fileio.c (Fwrite_region): !NILP -> CONSP.
9883
9884 2009-02-10 Andreas Schwab <schwab@suse.de>
9885
9886 * process.c (send_process): Properly relocate pointer into data
9887 when using encoded data. (Bug#2272)
9888
9889 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9890
9891 * coding.c (detect_coding_charset): Fix previous change.
9892
9893 2009-02-08 Jason Rumney <jasonr@gnu.org>
9894
9895 * w32fns.c (w32_hide_hourglass): Handle case where frame
9896 disappeared while hourglass was displayed. (Bug #2193)
9897
9898 2009-02-07 Andreas Schwab <schwab@suse.de>
9899
9900 * unexelf.c (unexec): Fix error message.
9901
9902 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9903
9904 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9905 when modal window is active. (Bug #2152)
9906 (applicationShouldTerminate:): Remove now-unneeded while loop
9907 around NSRunAlertPanel.
9908
9909 * nsmenu.m (popupSession): New file-global variable.
9910 (pop_down_menu): End the popupSession before closing dialog.
9911 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9912 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9913 don't query NSApp for events (just sleep instead).
9914
9915 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9916
9917 * coding.c (syms_of_coding) <translation-table-for-input>:
9918 Modify doc string to discourage use for character code unification.
9919
9920 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9921
9922 * atimer.c (run_timers): Update pending_atimers.
9923
9924 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9925
9926 * image.c (svg_load_image): Fix last change.
9927
9928 * xfns.c (Fx_create_frame): Signal an error if no font is
9929 found (Bug#2147).
9930
9931 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9932
9933 * character.c (syms_of_character) <script-representative-chars>:
9934 Fix typo in docstring.
9935
9936 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9937
9938 * nsmenu.m (pop_down_menu): New function.
9939 (ns_popup_dialog): Call it on unwind.
9940 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9941 call timer_check() (Bug#2154).
9942 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9943 handling_signal is set.
9944 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9945
9946 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9947
9948 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9949
9950 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9951
9952 * keyboard.c (poll_for_input_1, handle_async_input):
9953 Set handling_signal under HAVE_NS.
9954
9955 2009-02-04 Glenn Morris <rgm@gnu.org>
9956
9957 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9958
9959 2009-02-04 Kenichi Handa <handa@m17n.org>
9960
9961 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9962
9963 * charset.c (Fchar_charset): New optional arg restriction.
9964
9965 * coding.h (coding_system_charset_list): Extern it.
9966
9967 * coding.c (coding_system_charset_list): New function.
9968
9969 * composite.c: Include coding.h and termhooks.h.
9970 (composition_gstring_p): Fix for the terminal case.
9971 (composition_gstring_width): Likewise.
9972 (fill_gstring_body): Likewise.
9973 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9974 the frame.
9975 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9976 is within a composition.
9977 (Fcomposition_get_gstring): Fix the terminal case.
9978
9979 * term.c (encode_terminal_code): Fix handling of composition.
9980 (produce_composite_glyph): For static composition, get pixel_width
9981 from struct composition.
9982
9983 2009-02-02 Andreas Schwab <schwab@suse.de>
9984
9985 * unexelf.c (unexec): Handle unaligned bss offset.
9986
9987 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9988
9989 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9990 XT,w32read_socket changes to ns_read_socket.
9991
9992 * keyboard.c (handle_interrupt): Don't call
9993 quit_throw_to_read_char() under NS.
9994
9995 * blockinput.h: Remove NS-specific code.
9996
9997 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9998
9999 * dispnew.c (window_change_signal): Don't try to get the size of a
10000 suspended tty frame.
10001 * term.c (Fresume_tty): Resize if the size has changed while the
10002 tty was suspended.
10003
10004 * alloc.c (mark_stack): Properly conditionalize previous change.
10005
10006 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10007
10008 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10009 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10010 Remove; this code is not used on Windows.
10011
10012 2009-01-30 Eli Zaretskii <eliz@gnu.org>
10013
10014 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10015 EOLs that also has stray ^M characters.
10016
10017 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10018
10019 * atimer.c (run_timers, alarm_signal_handler):
10020 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10021 * w32inevt.c (w32_console_read_socket):
10022 * w32term.c (w32_read_socket):
10023 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10024
10025 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
10026
10027 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10028 Initialize it as a relative filename pattern.
10029 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10030 (Fcall_process_region): Simplify temp file creation using
10031 temporary-file-directory.
10032
10033 2009-01-29 Eli Zaretskii <eliz@gnu.org>
10034
10035 * msdos.c: Rename pending_signals to msdos_pending_signals.
10036 (sig_suspender, sigprocmask): Adjust.
10037
10038 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
10039
10040 * keyboard.c (pending_signals): New var.
10041 (poll_for_input, input_available_signal, init_keyboard): Set it.
10042 (process_pending_signals): New function.
10043
10044 * lisp.h (QUIT): Check pending_signals instead of
10045 interrupt_input_pending. Use process_pending_signals.
10046
10047 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
10048
10049 * process.c (wait_reading_process_output): Use process_pending_signals.
10050
10051 * sysdep.c (emacs_write): Use process_pending_signals.
10052
10053 * xterm.c (XTread_socket): Update pending_signals.
10054
10055 * w32term.c (w32_read_socket): Update pending_signals.
10056
10057 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10058
10059 2009-01-29 Kenichi Handa <handa@m17n.org>
10060
10061 * xftfont.c (xftfont_has_char): New function.
10062 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10063
10064 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10065
10066 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10067 under GNUstep.
10068 (ns_query_color): New declaration.
10069
10070 * nsterm.m (ns_confirm_quit): New variable.
10071 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10072 (EmacsApp-applicationShouldTerminate:): Use it.
10073 (EmacsPrefsController): Let user set it.
10074 (ns_query_color): New function.
10075 (ns_defined_color): Use it.
10076 (ns_initialize): Drop.
10077 (ns_term_init): Add two lines from ns_initialize(), and set
10078 input_interrupt_mode to nil.
10079
10080 * image.c (svg_load_image): Don't right-shift background RGB when
10081 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
10082
10083 2009-01-28 Kenichi Handa <handa@m17n.org>
10084
10085 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10086 (fontset_get_font_group): Remember that no font-group is specified
10087 for C.
10088
10089 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
10090
10091 * fns.c (concat): Check for string overflow (bug#1787).
10092
10093 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10094 Quadruple undo limits (bug#1501).
10095
10096 2009-01-27 Kenichi Handa <handa@m17n.org>
10097
10098 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10099 directly use GT_Get_Char_index.
10100
10101 * xftfont.c (struct xftfont_info): New member `index'.
10102
10103 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10104 (Ffontset_font): Adjust for the change of fontset entry.
10105
10106 2009-01-26 Kenichi Handa <handa@m17n.org>
10107
10108 * fontset.c (fontset_find_font): Fix handling of non-cons return
10109 value of fontset_get_font_group.
10110 (fontset_font): Revert last change.
10111
10112 2009-01-26 Jason Rumney <jasonr@gnu.org>
10113
10114 * w32font.c (w32font_list_internal): Return quickly if registry is
10115 unknown. Simplify final return.
10116 (add_font_entity_to_list): Break complex logic down into more
10117 manageable chunks. Move unknown registry check to
10118 w32font_list_internal.
10119
10120 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10121
10122 Changes to remove Feval calls from GUI under NS.
10123
10124 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10125 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
10126 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10127
10128 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10129 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10130 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10131 instead of NON_ASCII_KEYSTROKE_EVENT.
10132 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10133 (EmacsApp-applicationShouldTerminate:): Query user.
10134 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10135 instead of Feval.
10136
10137 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10138
10139 * keyboard.c (kbd_buffer_get_event): Check for it.
10140 (keys_of_keyboard): Define lispy keys for
10141 ns-put/unput-working-text.
10142
10143 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10144 versions.
10145 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10146
10147 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
10148
10149 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
10150 setting current_buffer directly. (Bug#2044)
10151
10152 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
10153
10154 * fontset.c (fontset_font): If we know there is no font, don't do
10155 any work. (Bug#1952, bug#1990).
10156
10157 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
10158
10159 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10160
10161 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
10162 (ns_no_defaults): New declaration.
10163 (main): Use it.
10164
10165 * nsterm.h (ns_no_defaults): New declaration.
10166
10167 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
10168
10169 * nsterm.m (ns_no_defaults): New variable.
10170 (ns_initialize): Don't read defaults when ns_no_defaults.
10171 (EmacsView-readSelectionFromPasteboard:)
10172 (writeSelectionToPasteboard:types:): New stubbed-out methods for
10173 NSServicesRequests protocol. (Bug#1435)
10174 (ns_dumpglyphs_stretch): New function.
10175 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
10176 of 2008-11-15 to other terms. (Bug#615)
10177
10178 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10179
10180 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10181
10182 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10183 call for Sparc64.
10184
10185 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10186
10187 * nsfns.m:
10188 * nsgui.h:
10189 * nsmenu.m:
10190 * nsselect.m:
10191 * nsterm.h:
10192 * nsterm.m: Remove '23' comments that indicated code added during
10193 update from emacs-20 -> emacs-23.
10194
10195 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10196
10197 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
10198 ns_alternate_modifier. (Bug#1217)
10199
10200 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10201 Display all shortcuts, including those w/o super modifier.
10202
10203 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10204
10205 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
10206
10207 * fileio.c (Vwrite_region_post_annotation_function)
10208 (Vwrite_region_annotation_buffers): New vars.
10209 (build_annotations_unwind): Just reset
10210 Vwrite_region_annotation_buffers.
10211 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10212 Call write-region-post-annotation-function.
10213 (build_annotations): Add to Vwrite_region_annotation_buffers if
10214 buffer changes.
10215
10216 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10217
10218 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10219 Tiger.
10220 * nsfns.m (ns_do_applescript):
10221 Conditionalize typeUTF16ExternalRepresentation on Tiger.
10222
10223 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10224
10225 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10226
10227 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10228
10229 * nsmenu.m (NSMENUPROFILE): Change #if style.
10230
10231 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10232
10233 * nsterm.m (x_set_frame_alpha): Add prototype.
10234 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10235 handle Ctrl-tab. (Bug#1841)
10236 (ns_get_color): Use unsigned long long for scanned hex string value.
10237 (ns_term_shutdown): Abort on non SIGTERM signals.
10238 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
10239 (EmacsPrefsController-setPanelFromDefaultValues): New function.
10240 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
10241 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
10242 (ns_defined_color): Fix settings of the XColor variable fields:
10243 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
10244
10245 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
10246 DPI. (Bug#1316)
10247 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10248 values in onTiger section.
10249
10250 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10253 Check return value of font_spec_from_name.
10254 (Fx_list_fonts): Doc fix. (Bug#1951)
10255
10256 * font.c (font_spec_from_name): Return Qnil if font name could not
10257 be parsed.
10258 (font_parse_name): Treat a `?' character as part of an XLFD.
10259
10260 * fns.c (Fsubstring): Doc fix.
10261
10262 2009-01-19 Kenichi Handa <handa@m17n.org>
10263
10264 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
10265 (ftfont_list): Likewise.
10266
10267 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
10268
10269 * dbusbind.c (Fdbus_register_signal):
10270 * process.c (conv_sockaddr_to_lisp):
10271 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10272
10273 * callproc.c (Fgetenv_internal): Doc fix.
10274
10275 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
10276
10277 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10278 it is not even used.
10279
10280 2009-01-16 Glenn Morris <rgm@gnu.org>
10281
10282 * font.c (Ffont_variation_glyphs): Silence compiler.
10283
10284 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
10285
10286 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10287 Reported by David Robinow <drobinow@gmail.com>.
10288
10289 2009-01-15 Kenichi Handa <handa@m17n.org>
10290
10291 * coding.c (detect_coding_system): Fix handling of null_byte_found.
10292
10293 2009-01-14 Jason Rumney <jasonr@gnu.org>
10294
10295 * frame.c (x_set_font): Always store a font to the font parameter,
10296 never a fontset. (Bug#1562)
10297
10298 2009-01-14 Kenichi Handa <handa@m17n.org>
10299
10300 * coding.c (TWO_MORE_BYTES): New macro.
10301 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
10302
10303 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
10304
10305 * font.c (font_clear_prop): If clearing the family, clear the font
10306 width index too.
10307
10308 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
10309
10310 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
10311
10312 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10313 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10314 functions, use sizeof.
10315
10316 2009-01-12 Martin Rudalics <rudalics@gmx.at>
10317
10318 * keyboard.c (read_char): Fix case where last_nonmenu_event
10319 returned a bad value with submenus. (Bug#447)
10320
10321 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
10322
10323 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10324 family, clear the font width index too.
10325
10326 2009-01-11 Jason Rumney <jasonr@gnu.org>
10327
10328 * keyboard.c (cmd_error_internal): Exit when errors occur before
10329 frame creation and not in daemon mode. (Bug#1836)
10330
10331 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
10332
10333 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10334 of a display vector, backtrack.
10335 (try_window_reusing_current_matrix): Check glyph type before
10336 referencing charpos member.
10337
10338 2009-01-10 Eli Zaretskii <eliz@gnu.org>
10339
10340 Fix Bug #876:
10341
10342 * coding.c (inhibit_null_byte_detection): New variable.
10343 (detect_coding, detect_coding_system): Don't pay attention to null
10344 bytes if inhibit_null_byte_detection is non-zero.
10345 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
10346 <inhibit-iso-escape-detection>: Doc fix.
10347
10348 2009-01-09 Jason Rumney <jasonr@gnu.org>
10349
10350 * w32font.c (add_font_entity_to_list): Don't report unknown
10351 Windows charset as any unrecognized registry. (Bug#1548)
10352 Only report Unicode Plane 2 fonts as unicode-sip.
10353
10354 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
10355
10356 * xfaces.c (Fx_font_family_list): Delete function.
10357 Move compatibility version to faces.el.
10358
10359 * font.c (Ffont_family_list): Return a list of strings, not symbols.
10360
10361 2009-01-09 Martin Rudalics <rudalics@gmx.at>
10362
10363 * frame.c (x_set_frame_parameters): Remember requested value for
10364 fullscreen before it's reset by the parameter handler.
10365
10366 2009-01-09 Glenn Morris <rgm@gnu.org>
10367
10368 * keyboard.c (last_command_char): For clarity, rename to...
10369 (last_command_event): ... and update all users.
10370 (last_input_char): For clarity, rename to...
10371 (last_input_event): ... and update all users.
10372 (last-command-char, last-input-char): Move to subr.el as aliases.
10373 * cmds.c, commands.h: Update for last_command_char rename.
10374
10375 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
10376
10377 * font.c (font_open_for_lface): Handle unspecified height attribute.
10378
10379 2009-01-08 Jason Rumney <jasonr@gnu.org>
10380
10381 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10382 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10383 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10384 Don't declare.
10385 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
10386 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10387
10388 2009-01-07 Kenichi Handa <handa@m17n.org>
10389
10390 * fileio.c (Finsert_file_contents): In the case of replace,
10391 remember the coding system used for decoding in
10392 coding_system (Bug#1039).
10393
10394 * coding.c (decode_coding_utf_8): Check byte_after_cr before
10395 breaking the loop. (Bug#870)
10396 (decode_coding_utf_16, decode_coding_emacs_mule)
10397 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10398 (decode_coding_charset): Likewise.
10399
10400 2009-01-05 Martin Rudalics <rudalics@gmx.at>
10401
10402 * frame.c (x_set_frame_parameters): Make sure height (width) get
10403 applied when fullwidth (fullheight) is set. (Bug#1522)
10404
10405 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
10406
10407 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10408 (utc_base): Declare as ULONGLONG, not long double.
10409 (convert_time_raw): Delete.
10410 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10411 (initialize_utc_base): New function.
10412 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10413 (convert_from_time_t): Use initialize_utc_base; compute result with
10414 64-bit arithmetic.
10415 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10416
10417 2009-01-03 Eli Zaretskii <eliz@gnu.org>
10418
10419 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
10420 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10421 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10422 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10423 [!subprocesses]: Define.
10424 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10425 (Flist_system_processes, Fsystem_process_attributes)
10426 [!subprocesses]: Call list_system_processes and
10427 system_process_attributes instead of returning Qnil.
10428
10429 * dosfns.c (system_process_attributes, list_system_processes):
10430 New functions.
10431
10432 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10433
10434 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10435 Don't use the default (no-op) implementation.
10436
10437 2009-01-03 Jason Rumney <jasonr@gnu.org>
10438
10439 * keyboard.c (parse_modifiers_uncached): Wheel events are
10440 clicks (bug#687).
10441
10442 * w32term.c (x_query_colors, x_query_color): New functions.
10443
10444 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10445 (svg_load_image): Cast returned pointers from dynamically loaded
10446 functions. Eliminate W32 specific code.
10447
10448 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10449
10450 * nsfns.m (x_set_foreground_color, x_set_background_color)
10451 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10452 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10453 x_ prefix instead of ns_. Update references.
10454 (syms_of_nsfns): Add a FIXME comment.
10455
10456 * nsterm.m (x_set_cursor_type): New prototype.
10457 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10458
10459 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10460 for Solaris instead of incorrectly providing Qutime and Qcutime.
10461
10462 2009-01-02 Eli Zaretskii <eliz@gnu.org>
10463
10464 * w32.c (process_times): Compute sum of utime and stime.
10465 (system_process_attributes): Add Qtime to the alist.
10466
10467 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10468 and add them to the alist.
10469
10470 * process.c (top level) <Qtime, Qctime>: New variables.
10471 (syms_of_process): staticpro them.
10472 (Fsystem_process_attributes): Add their documentation to the doc
10473 string.
10474
10475 * process.h: Declare Qtime and Qctime.
10476
10477 2009-01-02 Jason Rumney <jasonr@gnu.org>
10478
10479 * image.c (Qgobject): New symbol.
10480 (syms_of_image): Initialize it.
10481 (init_svg_functions): Load some functions from gobject library.
10482
10483 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10484
10485 * frame.c (make_terminal_frame): Remove redundant code and useless
10486 block.
10487
10488 2009-01-01 Andreas Schwab <schwab@suse.de>
10489
10490 * process.c (conv_sockaddr_to_lisp): Add workaround for
10491 getsockname bug on BSD.
10492
10493 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
10494
10495 * xfns.c (x_create_tip_frame): Set border width of the X window.
10496
10497 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
10498
10499 2009-01-01 Jason Rumney <jasonr@gnu.org>
10500
10501 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
10502 Don't block input, as per earlier xterm.c changes.
10503
10504 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10505
10506 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10507 (ns_appkit_version_int): New function.
10508 (x-server-version): Use ns_appkit_version_int and follow 21+
10509 convention of returning 3 integers.
10510
10511 2008-12-30 Kenichi Handa <handa@m17n.org>
10512
10513 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10514 (CHAR_SURROGATE_PAIR_P): New macro.
10515
10516 * font.h (struct font_driver): New member get_variation_glyphs.
10517
10518 * font.c (font_range): Don't require a font for a variation selector.
10519 (Ffont_variation_glyphs): New function.
10520 (syms_of_font): Defsubr it.
10521
10522 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10523 ftfont_variation_glyphs.
10524 (setup_otf_gstring): New function.
10525 (ftfont_drive_otf): Use it.
10526 (ftfont_shape_by_flt): Handle variation selector.
10527 (ftfont_variation_glyphs): New function.
10528
10529 2008-12-30 Martin Rudalics <rudalics@gmx.at>
10530
10531 * frame.c (Vemacs_iconified): Remove.
10532
10533 2008-12-30 Jason Rumney <jasonr@gnu.org>
10534
10535 * frame.c (store_frame_param, x_get_arg): Enable newer code on
10536 WINDOWSNT too, as related changes have already been synced. (Bug#117)
10537
10538 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * indent.c (Fvertical_motion): Don't advance iterator if we have
10541 reseated to the desired position.
10542
10543 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10544 checking for pos match.
10545
10546 2008-12-30 Kenichi Handa <handa@m17n.org>
10547
10548 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10549 just get the low 8-bit of the code.
10550
10551 * font.c (font_intern_prop): Validate str as multibyte.
10552
10553 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10554
10555 * dispextern.h (struct face): Move lface and hash from the middle
10556 of bitfields.
10557
10558 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10559
10560 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10561
10562 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10563 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10564 instead of intervals.h.
10565
10566 2008-12-26 Andreas Schwab <schwab@suse.de>
10567
10568 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10569 cons.
10570
10571 2008-12-26 Martin Rudalics <rudalics@gmx.at>
10572
10573 * textprop.c (Qminibuffer_prompt): New variable.
10574 (syms_of_textprop): Initialize it.
10575 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10576 in minibuffer-prompt face. (Bug#1662)
10577
10578 2008-12-25 Jason Rumney <jasonr@gnu.org>
10579
10580 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10581
10582 2008-12-24 Jason Rumney <jasonr@gnu.org>
10583
10584 * ralloc.c (r_alloc_reset_variable): New function.
10585
10586 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
10587 record of what points where. (Bug#716)
10588
10589 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10590
10591 * minibuf.c (read_minibuf): Follow the non-interactive case when
10592 running as a daemon, before detaching.
10593
10594 2008-12-22 Andreas Schwab <schwab@suse.de>
10595
10596 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10597 * gtkutil.c (free_widget_value): Use xfree instead of free.
10598
10599 2008-12-22 Martin Rudalics <rudalics@gmx.at>
10600
10601 * frame.c (delete_frame): New function derived from
10602 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10603 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10604 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10605 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10606 * frame.h: Extern delete_frame.
10607 * window.c (window_loop):
10608 * terminal.c (delete_terminal):
10609 * xterm.c (x_connection_closed):
10610 * xfns.c (Fx_hide_tip):
10611 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
10612
10613 2008-12-21 Jason Rumney <jasonr@gnu.org>
10614
10615 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10616 when character maps to .notdef character.
10617
10618 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10619
10620 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10621
10622 2008-12-20 Jason Rumney <jasonr@gnu.org>
10623
10624 * frame.c (Fmake_terminal_frame): Raise an error when called from
10625 a graphical frame on Windows. (Bug#1325)
10626
10627 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10628
10629 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10630
10631 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
10632
10633 * minibuf.c (Fread_buffer): Doc fix.
10634
10635 2008-12-20 Jason Rumney <jasonr@gnu.org>
10636
10637 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
10638 server name in UNC paths. (Bug#719)
10639
10640 * coding.c (decode_coding): Clear chars_at_source flag when using
10641 charbuf. (Bug#1035)
10642
10643 2008-12-19 Daniel Engeler <engeler@gmail.com>
10644
10645 * sysdep.c (serial_configure): Fix typo.
10646
10647 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10648
10649 * sysdep.c: Include alloca.h.
10650 (system_process_attributes): Add implementation for Solaris.
10651
10652 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
10653
10654 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10655
10656 Reorganize implementation of Flist_system_processes and
10657 Fsystem_process_attributes. No functional changes.
10658 * process.c: Don't #include pwd.h, grp.h and limits.h.
10659 (Flist_system_processes): Just call list_system_processes.
10660 (Fsystem_process_attributes): Just call system_process_attributes.
10661 (procfs_list_system_processes, time_from_jiffies)
10662 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10663 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10664
10665 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10666 (list_system_processes): Rename from
10667 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10668 Provide a do nothing implementation.
10669 (system_process_attributes): Rename from
10670 procfs_list_system_processes.
10671 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10672 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
10673
10674 * w32.c (list_system_processes): Rename from
10675 w32_list_system_processes.
10676 (system_process_attributes): Rename from
10677 w32_system_process_attributes.
10678
10679 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10680
10681 * process.h (w32_list_system_processes)
10682 (w32_system_process_attributes): Remove.
10683 (list_system_processes, system_process_attributes):
10684 New prototypes.
10685
10686 2008-12-19 Kenichi Handa <handa@m17n.org>
10687
10688 * xfont.c (xfont_decode_coding_xlfd): New function.
10689 (xfont_encode_coding_xlfd): New function.
10690 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10691 (xfont_list): Decode and encode XLFD by iso-8859-1.
10692 (xfont_match): Likewise.
10693 (xfont_list_family): Likewise.
10694 (xfont_open): Likewise.
10695
10696 * ftfont.c (ftfont_open): Generate a multibyte string if given
10697 names are utf-8.
10698
10699 * xftfont.c (xftfont_open): Generate a multibyte string if given
10700 names are utf-8.
10701
10702 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10703
10704 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10705 changed.
10706 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10707 clicked on a detached tool bar button.
10708
10709 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10710
10711 * emacs.c (main): Print and error and exit when no data is read
10712 from the pipe.
10713
10714 2008-12-17 Jason Rumney <jasonr@gnu.org>
10715
10716 * w32font.c (w32font_has_char): Always return -1.
10717
10718 2008-12-16 Kenichi Handa <handa@m17n.org>
10719
10720 * font.c (font_open_entity): Fix previous change.
10721
10722 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10723
10724 * process.c: Include <limits.h>.
10725
10726 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10727
10728 * font.c (font_update_drivers): Fix mistake in reconstructing the
10729 driver list.
10730
10731 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10732
10733 * font.c (font_clear_cache): Fix format of font cache data.
10734
10735 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10736
10737 * xftfont.c (xftfont_open): Free Xft font pattern if
10738 XftFontOpenPattern fails.
10739
10740 * xterm.c (x_free_frame_resources): Remove extraneous call to
10741 free_frame_faces.
10742
10743 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10744
10745 * xterm.c (x_delete_display): Move xim_close_dpy call to
10746 x_delete_terminal.
10747 (x_delete_terminal): Call xim_close_dpy.
10748
10749 2008-12-13 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32font.c (intern_font_name): New function.
10752 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10753 (w32font_open_internal, Fx_select_font): Decode font name.
10754 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10755
10756 * w32font.h (intern_font_name): Declare new function.
10757
10758 * w32uniscribe.c (add_opentype_font_name_to_list):
10759 Use intern_font_name.
10760
10761 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10762
10763 * frame.c (Fdelete_frame): Call free_font_driver_list.
10764
10765 * font.c (free_font_driver_list): Implement missing function.
10766
10767 * w32term.c (w32_term_init): Don't initialize the image cache
10768 here; it will be done in init_frame_faces.
10769
10770 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10771 (struct x_display_info): Remove unused member null_pixel. New
10772 member xim_callback_data.
10773
10774 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10775 (xim_initialize): Save pointer to callback function data.
10776 (xim_close_dpy): Free callback function data. Call XCloseIM,
10777 reverting 2008-11-04 change by David Smith.
10778 (x_term_init): Don't initialize the image cache here; it will be
10779 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10780 (x_delete_display): Free x_dnd_atoms member.
10781
10782 2008-12-13 Kenichi Handa <handa@m17n.org>
10783
10784 * font.c (font_rescale_ratio): Moved from xfaces.c.
10785 Argument type changed. Handle a font-spec too.
10786 (font_score): Check Vface_font_rescale_alist.
10787 (font_open_entity): Likewise. (Bug#1547)
10788
10789 * xfaces.c (font_rescale_ratio): Moved to font.c.
10790
10791 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10792
10793 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10794
10795 2008-12-12 Jason Rumney <jasonr@gnu.org>
10796
10797 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10798 Vwindow_system_version to the real w32 major version.
10799
10800 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10801
10802 * term.c (init_tty): Move setting the terminal name before the
10803 potential user: maybe_fatal.
10804
10805 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10806
10807 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10808 all callers changed. Call free_frame_faces to free the face cache.
10809
10810 2008-12-11 Jason Rumney <jasonr@gnu.org>
10811
10812 * w32font.c (fill_in_logfont): Don't assume symbol script means
10813 SYMBOL_CHARSET. (Bug#547)
10814
10815 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10816 size for surrogates. (Bug#1096, bug#872)
10817
10818 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10819
10820 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10821
10822 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10823
10824 * process.c (Fsystem_process_attributes, syms_of_process):
10825 Fix typo in name of Ssystem_process_attributes.
10826 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10827
10828 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10829
10830 * syntax.c (Fmodify_syntax_entry): Doc fix.
10831
10832 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10833
10834 * font.c (Ffont_spec): Move usage to end of docstring.
10835
10836 2008-12-10 Jason Rumney <jasonr@gnu.org>
10837
10838 * w32font.c (Qcham): New symbol.
10839 (font_supported_scripts): Add cham, and comments for other new
10840 scripts in bitfield from OpenType spec.
10841 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10842 contain characters beyond the bmp.
10843
10844 2008-12-10 Kenichi Handa <handa@m17n.org>
10845
10846 * ftfont.c (fc_charset_table): Add "unicode-sip".
10847 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10848 Qunicode_sip.
10849
10850 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10851
10852 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10853 (Fcoding_system_put): Use QCdefault_char.
10854 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10855
10856 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10857
10858 * xftfont.c (syms_of_xftfont): Fix typo.
10859
10860 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10861
10862 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10863
10864 * emacs.c (main): Close daemon_pipe on exec.
10865
10866 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10867
10868 * termchar.h (struct tty): New members termcap_term_buffer and
10869 termcap_strings_buffer.
10870
10871 * term.c (encode_terminal_code): Free any previous memory blocks
10872 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10873 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10874 All callers changed.
10875 (init_tty): Store termcap data and string buffers in new struct
10876 tty members termcap_term_buffer and termcap_strings_buffer.
10877 (delete_tty): Free them.
10878 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10879
10880 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10881
10882 * nsfns.m (ns_set_background_color): Remove code duplication.
10883 It was a substitute for face-transparency on OS X 10.3.
10884
10885 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10886
10887 * coding.c (make_conversion_work_buffer): Disable buffer
10888 modification hooks in the work buffer.
10889
10890 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10891
10892 * process.c (procfs_system_process_attributes): If `nread' has a
10893 negative value, assign zero to it.
10894
10895 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10896
10897 * eval.c (Vdebug_on_error): Doc fix.
10898
10899 2008-12-05 Kenichi Handa <handa@m17n.org>
10900
10901 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10902 second character is a combining character.
10903
10904 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10905
10906 * process.c (procfs_system_process_attributes): Don't use cmd,
10907 cmdsize, and q without initializing them first.
10908
10909 2008-12-04 Jason Rumney <jasonr@gnu.org>
10910
10911 * w32font.c (w32font_draw): Initialize orig_clip before getting
10912 it, and delete it when finished.
10913
10914 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10915
10916 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10917 case when running as a daemon before detaching.
10918
10919 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10920
10921 * w32.c (init_environment): Don't unload library shell32.dll.
10922
10923 2008-12-03 Kenichi Handa <handa@m17n.org>
10924
10925 * font.c (font_at): Set `multibyte' at first.
10926
10927 * coding.c (decode_coding_charset): Check type of an element of
10928 vector VALIDS.
10929 (encode_coding_emacs_mule): Be sure to set `code'.
10930
10931 * fontset.c (face_for_char): Handle invalid charset property correctly.
10932 (font_for_char): Likewise.
10933
10934 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10935
10936 * font.c (Fopen_font): Compute pixel size correctly.
10937 (font_update_lface): Handle fonts with corrupted size specs,
10938 i.e. non-int and non-float.
10939
10940 * ftfont.c (ftfont_match): Initialize entity variable.
10941 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10942 (ftfont_list_family): Initialize list var earlier.
10943
10944 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10945
10946 * xterm.c (x_draw_glyph_string): Fall back on
10947 underline_minimum_offset for underline position.
10948
10949 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10950
10951 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10952
10953 * character.c (c_string_width): Specify the type for LEN.
10954
10955 2008-12-03 Kenichi Handa <handa@m17n.org>
10956
10957 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10958 (decode_coding_utf_8): Likewise.
10959 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10960 (produce_chars): Initialize consumed_chars to 0.
10961
10962 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10963
10964 * keyboard.c (make_lispy_position): Only use PT if the selected
10965 window is current.
10966
10967 2008-12-02 Andreas Schwab <schwab@suse.de>
10968
10969 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10970
10971 * doprnt.c (doprnt1): Fix size of charbuf.
10972
10973 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10974
10975 * keyboard.c (timer_check): Revert last change.
10976
10977 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10978
10979 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10980
10981 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10982
10983 * makefile.w32-in: Update dependencies.
10984 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10985
10986 2008-12-01 Andreas Schwab <schwab@suse.de>
10987
10988 * font.c (register_font_driver): Use xmalloc.
10989 (font_put_frame_data): Likewise.
10990
10991 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10992
10993 * xfaces.c (realize_x_face): Make abort condition clearer.
10994
10995 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10996
10997 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10998
10999 * keyboard.c (timer_check): After a timer runs, ensure that the
11000 selected window's buffer is current.
11001
11002 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
11003
11004 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11005 It was accidentally restored by the Unicode merge.
11006
11007 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11008
11009 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
11010
11011 * w32proc.c: Include "coding.h".
11012 (Fw32_short_file_name): Encode filename passed to Windows API.
11013 (Fw32_long_file_name): Encode filename passed to Windows API and
11014 decode back the result. (Bug#1433)
11015
11016 2008-11-29 Kenichi Handa <handa@m17n.org>
11017
11018 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11019 not before accessing it.
11020
11021 * charset.c (Fdefine_charset_internal): After calculating
11022 min_char, max_char, and fastmap, copy the charset structure again.
11023 (encode_char): Fix the previous change.
11024
11025 2008-11-28 Seiji Zenitani <zenitani@mac.com>
11026
11027 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11028
11029 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11030
11031 * nsterm.m (x_set_frame_alpha): New function.
11032
11033 2008-11-27 Eli Zaretskii <eliz@gnu.org>
11034
11035 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11036
11037 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
11038
11039 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11040 pointer to check_face_name.
11041
11042 2008-11-27 Kenichi Handa <handa@m17n.org>
11043
11044 * category.h (SET_CATEGORY_SET): Call set_category_set.
11045 (set_category_set): Extern it.
11046
11047 * category.c (hash_get_category_set): New function.
11048 (Fmodify_category_entry): Adjusted for the change of
11049 char_table_ref_and_range. Call hash_get_category_set to get a
11050 category set to store in the table.
11051
11052 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11053 Funify_charset.
11054
11055 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
11056 (DECODE_CHAR): Check if the decoder vector is ready.
11057 (ENCODE_CHAR): Check if the encoder char-table is ready.
11058 (maybe_unify_char): Extern it.
11059
11060 * charset.c (Vchar_unified_charset_table): Delete it.
11061 (inhibit_load_charset_map): New variable.
11062 (temp_charset_work): New variable.
11063 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11064 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11065 New macros.
11066 (load_charset_map): Meaning of control_flag changed. If
11067 inhibit_load_charset_map is nonzero, setup a table in
11068 temp_charset_work.
11069 (load_charset): New argument control_flag.
11070 (map_charset_for_dump): New function.
11071 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11072 map_charset_for_dump.
11073 (Fdefine_charset_internal): If the charset method is MAP, load
11074 mapping tables by calling load_charset.
11075 (Funify_charset): Don't load a mapping table but directly set
11076 Vchar_unify_table.
11077 (maybe_unify_char): New function.
11078 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11079 Handle the case of inhibit_load_charset_map being nonzero.
11080 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11081 Handle the case of inhibit_load_charset_map being nonzero.
11082 (Fclear_charset_maps): Just free temp_charset_work.
11083 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11084 variable.
11085
11086 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11087 change of char_table_ref_and_range.
11088 (char_table_ref_and_range): Change the meaning of argument FROM
11089 and TO. Now the caller must provide initial values for *FROM
11090 and *TO.
11091
11092 * fontset.c (fontset_add): Adjusted for the change of
11093 char_table_ref_and_range.
11094 (fontset_get_font_group): Likewise.
11095 (Ffontset_info): Likewise.
11096
11097 * keymap.c (describe_vector): Adjusted for the change of
11098 char_table_ref_and_range. For char-table, put boundary between
11099 non-ASCII and 8-bit characters.
11100
11101 * print.c (print_object): For bool-vector, delete unnecessary
11102 check of ASCII_BYTE_P.
11103
11104 2008-11-26 Jason Rumney <jasonr@gnu.org>
11105
11106 * w32font.c (w32font_open_internal): Don't include external
11107 leading in font height. (Bug#879)
11108
11109 2008-11-26 Glenn Morris <rgm@gnu.org>
11110
11111 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11112 redefinition with ifdef. (Bug#1383)
11113
11114 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11115
11116 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11117
11118 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11119
11120 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11121 New EmacsView methods.
11122 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11123 Fixes bug #1048,1357,1414.
11124
11125 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11126
11127 Fix bug #1362.
11128 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11129 is not an indexed color.
11130 * nsterm.m (free_indexed_color): Add argument checking.
11131 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11132
11133 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
11134
11135 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11136 Document confirm-after-completion value for
11137 minibuffer-completion-confirm.
11138
11139 2008-11-24 Jason Rumney <jasonr@gnu.org>
11140
11141 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11142 warning.
11143
11144 2008-11-23 Jason Rumney <jasonr@gnu.org>
11145
11146 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11147 restored before returning.
11148
11149 * w32font.c (check_face_name): New function.
11150 (add_font_entity_to_list): Use it to filter out common substituted
11151 fonts. (Bug#642)
11152
11153 2008-11-22 Martin Rudalics <rudalics@gmx.at>
11154
11155 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11156 confirm-nonexistent-file-or-buffer in doc-string.
11157
11158 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11159
11160 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11161 Fix copy/paste typo. Add checks.
11162
11163 2008-11-21 Kenichi Handa <handa@m17n.org>
11164
11165 * coding.c (detect_coding_iso_2022): Reject invalid composition
11166 sequence.
11167 (DECODE_COMPOSITION_START): If the current source is the last
11168 block, and the current composition doesn't end, regard this
11169 sequence as invalid.
11170 (decode_coding_iso_2022): Handle invalid composition sequence.
11171
11172 2008-11-20 Martin Rudalics <rudalics@gmx.at>
11173
11174 * window.c (coordinates_in_window): Don't return
11175 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11176 line when the window is not the rightmost one. (Bug#1372)
11177
11178 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11179
11180 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11181
11182 2008-11-15 Eli Zaretskii <eliz@gnu.org>
11183
11184 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11185 and bright_bg if noninteractive is non-zero.
11186
11187 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11188
11189 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11190 x_draw_glyph_string_background.
11191
11192 * w32term.c (x_draw_glyph_string): Likewise.
11193
11194 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
11195
11196 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11197 the next glyph string once past the overhang width.
11198
11199 * nsterm.m (ns_draw_glyph_string): Likewise.
11200
11201 * w32term.c (x_draw_glyph_string): Likewise.
11202
11203 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11204
11205 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11206 double file close.
11207
11208 2008-11-14 Martin Rudalics <rudalics@gmx.at>
11209
11210 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11211 dedicated status of window before attempting to display another
11212 buffer in it.
11213
11214 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
11215
11216 * msdos.c (Fmsdos_long_file_names):
11217 (syms_of_msdos) <dos-unsupported-char-glyph>:
11218 * dosfns.c (Fint86): Fix typos in docstrings.
11219
11220 2008-11-14 Eli Zaretskii <eliz@gnu.org>
11221
11222 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11223
11224 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11225
11226 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11227
11228 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11229
11230 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11231
11232 * frame.h: Negative alpha means "don't touch".
11233
11234 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11235
11236 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11237
11238 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11239
11240 * hftctl.c:
11241 * chpdef.h:
11242 * acldef.h: Remove files used only for systems no longer supported.
11243
11244 * Makefile.in: Fix .o alphabetical ordering.
11245 (hftctl.o): Remove dependency, file removed.
11246 (keymap.o, print.o): Depend on charset.h.
11247
11248 2008-11-10 Kenichi Handa <handa@m17n.org>
11249
11250 * character.c (Fget_byte): Fix and make it faster for unibyte target.
11251
11252 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
11253
11254 * dired.c (file_name_completion): If completion_ignore_case is
11255 enabled, ignore case when checking completion-regexp-list.
11256
11257 2008-11-08 Eli Zaretskii <eliz@gnu.org>
11258
11259 * vm-limit.c (get_lim_data): Fix last change.
11260
11261 2008-11-08 Kenichi Handa <handa@m17n.org>
11262
11263 * character.c (Fget_byte): New function.
11264 (syms_of_character): Defsubr Fget_byte.
11265
11266 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
11267
11268 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11269 cursor position is valid after scrolling.
11270
11271 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
11272
11273 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11274
11275 2008-11-06 Glenn Morris <rgm@gnu.org>
11276
11277 * xterm.c (handle_one_xevent): Don't let popup menus cause
11278 mouse-autoselect-window related window switching. (Bug#1261)
11279
11280 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11281
11282 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11283
11284 2008-11-04 Andreas Schwab <schwab@suse.de>
11285
11286 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11287
11288 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
11289
11290 * xfns.c (Fx_wm_set_size_hint): New function.
11291
11292 2008-11-03 Martin Rudalics <rudalics@gmx.at>
11293
11294 * textprop.c (Fprevious_single_char_property_change): Return 0
11295 when there's no change in a string. (Bug#1301)
11296
11297 2008-11-02 Martin Rudalics <rudalics@gmx.at>
11298
11299 * frame.c (do_switch_frame): New argument NORECORD passed to
11300 Fselect_window.
11301 (Fselect_frame): New argument NORECORD passed to
11302 do_switch_frame.
11303 (Fset_frame_selected_window): New argument NORECORD passed to
11304 Fselect_frame.
11305 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11306 in call of do_switch_frame.
11307 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11308 Handle NORECORD argument in call of Fselect_frame.
11309 * lisp.h (do_switch_frame, Fselect_frame)
11310 (Fset_frame_selected_window): Adjust declarations.
11311 * window.c (select_frame_norecord): New function.
11312 (run_window_configuration_change_hook): Use it and call
11313 Fselect_frame with NORECORD set.
11314 (Fselect_window): Pass NORECORD to Fselect_frame.
11315 (Fset_window_configuration): Handle NORECORD argument in call of
11316 do_switch_frame.
11317 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11318 Fset_frame_selected_window.
11319 * keyboard.c (command_loop_1): Handle NORECORD in call of
11320 Fselect_frame (currently ifdefd).
11321
11322 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11323
11324 * emacs.c (USAGE2): Untabify.
11325
11326 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11327
11328 * composite.c (fill_gstring_header): Fix copy/paste typo.
11329
11330 2008-10-31 Martin Rudalics <rudalics@gmx.at>
11331
11332 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11333 (Fother_window): Rename argument and rewrite doc-string.
11334 (select_window_norecord): Fix return value. (Bug#1276)
11335
11336 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
11337
11338 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11339 new frames overriding foreground for tooltips. Based on similar patch
11340 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11341
11342 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
11343
11344 * emacs.c (Fdaemon_initialized): Initialize nfd.
11345
11346 2008-10-29 Martin Rudalics <rudalics@gmx.at>
11347
11348 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11349 (Fwindow_text_height): Clarify doc-strings.
11350 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11351 doc-string of window-scroll-functions.
11352
11353 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11354
11355 * category.c (syms_of_category): Fix typo in docstring.
11356
11357 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
11358
11359 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11360 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11361 Fix typos in docstrings.
11362
11363 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11364
11365 * emacs.c (daemon_pipe): Make non-static.
11366 (IS_DAEMON): Move definition ...
11367 * lisp.h (IS_DAEMON): ... here.
11368 (daemon_pipe): Declare.
11369 (is_daemon): Remove.
11370 * dispnew.c (init_display): Use IS_DAEMON.
11371
11372 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11375 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11376
11377 * emacs.c (is_daemon): Remove.
11378 (main): Don't set is_daemon.
11379 (IS_DAEMON): New macro.
11380 (Fdaemonp, Fdaemon_initialized): Use it.
11381 (Fdaemon_initialized): Write a char into the pipe to make sure the
11382 parent exits.
11383 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11384
11385 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
11386
11387 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11388 over-sized glyph, draw it with the default glyph width.
11389
11390 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11391 glyph, draw it with the default glyph width.
11392
11393 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11394 glyph, draw it with the default glyph width.
11395
11396 * xdisp.c (try_scrolling): When computing the distance from the
11397 scroll margin to PT, try moving some distance past the window
11398 bottom before giving up.
11399
11400 2008-10-27 Martin Rudalics <rudalics@gmx.at>
11401
11402 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11403 (Fset_window_buffer): Explain in doc-string that a window can be
11404 "strongly" dedicated to its buffer.
11405
11406 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11407
11408 * emacs.c (daemon_name): New variable.
11409 (main): Deal with --daemon=SERVER_NAME.
11410 (Fdaemonp): Return a name if one was passed to --daemon.
11411
11412 2008-10-26 Romain Francoise <romain@orebokech.com>
11413
11414 * emacs.c (daemon_pipe): New variable.
11415 (main): Create a pipe before forking, make the parent exit only after
11416 the child has closed its end of the pipe. Move closing the
11417 descriptors ...
11418 (Fdaemon_initialized): ... here. New function.
11419
11420 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11421
11422 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11423 the previous unoptimized table.
11424
11425 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11426 the distinction between non-nil and non-t value of `dedicated'.
11427
11428 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
11431 read_char_minibuf_menu_text is large enough to hold the menu string.
11432
11433 2008-10-25 Martin Rudalics <rudalics@gmx.at>
11434
11435 * window.c (Fget_buffer_window, Fdelete_windows_on)
11436 (Freplace_buffer_in_windows): Make buffer argument optional and
11437 rename to buffer_or_name.
11438
11439 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
11440
11441 * xdisp.c (handle_single_display_spec, handle_display_prop):
11442 Undo 2005-05-16 change.
11443 (handle_stop): Pop iterator if it's loaded with an empty string.
11444 (get_overlay_strings_1): Don't save iterator if it's loaded with
11445 an empty string (bug#1201).
11446
11447 2008-10-24 Kenichi Handa <handa@m17n.org>
11448
11449 * ftfont.c (ftfont_otf_features): Fix previous change.
11450 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11451 calling ftfont_otf_features.
11452
11453 2008-10-24 Kenichi Handa <handa@m17n.org>
11454
11455 * font.c (font_match_p): Fix for the case that a vector of
11456 characters is in script-representative-chars.
11457
11458 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
11459
11460 * dbusbind.c (xd_in_read_queued_messages): New variable.
11461 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
11462 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11463 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
11464 macro. (Bug#1186)
11465
11466 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
11467
11468 * s/sol2-10.h: New file.
11469
11470 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11471
11472 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11473 poor beast has survived 9+ years and the jump from xterm.c!).
11474
11475 2008-10-23 Martin Rudalics <rudalics@gmx.at>
11476
11477 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11478 Reword doc-string.
11479 (Fbury_buffer): In doc-string say what happens to the buffer's window.
11480
11481 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11482
11483 * character.c (syms_of_character) <script-representative-chars>:
11484 <unicode-category-table>: Doc fixes.
11485
11486 2008-10-23 Noah Friedman <friedman@splode.com>
11487
11488 * coding.c (make_conversion_work_buffer): Check that
11489 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11490 Fget_buffer_create.
11491
11492 2008-10-23 Kenichi Handa <handa@m17n.org>
11493
11494 * font.c (font_add_log): Check the values of extra properties.
11495
11496 2008-10-22 Martin Rudalics <rudalics@gmx.at>
11497
11498 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11499 Reword doc-string.
11500 (Fset_window_parameter): Use NILP.
11501 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
11502 (Frecenter): Use "selected" instead of "current" window in doc-strings.
11503
11504 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11505
11506 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11507
11508 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11509
11510 * nsfns.m (ns_appkit_version): New function.
11511 (x-server-version): Use it.
11512 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11513 (x-server-vendor): Don't check_ns().
11514
11515 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11516
11517 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11518
11519 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11520 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11521
11522 2008-10-22 Kenichi Handa <handa@m17n.org>
11523
11524 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11525 scripts.
11526
11527 * category.c (word_boundary_p): Check scripts instead of charset.
11528 Handle nil value in word-separating-categories and
11529 word-combining-categories.
11530 (syms_of_category): Fix docstrings of word-separating-categories
11531 and word-combining-categories.
11532
11533 2008-10-21 Eli Zaretskii <eliz@gnu.org>
11534
11535 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11536 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11537
11538 2008-10-21 Martin Rudalics <rudalics@gmx.at>
11539
11540 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11541 Rename arg "buffer" to "buffer_or_name".
11542 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11543 it optional.
11544 (no_switch_window): Remove since the return value is not used.
11545 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
11546 Consider window as dedicated when Fwindow_dedicated_p returns a
11547 non-nil value.
11548 * lisp.h: Remove prototype for no_switch_window.
11549
11550 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11551
11552 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
11553 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
11554
11555 2008-10-21 Kenichi Handa <handa@m17n.org>
11556
11557 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11558 check Vlatin_extra_code_table.
11559
11560 2008-10-20 Eli Zaretskii <eliz@gnu.org>
11561
11562 * fileio.c (Fset_file_modes): Doc fix.
11563
11564 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
11565
11566 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11567 in arrays.
11568
11569 2008-10-19 Martin Rudalics <rudalics@gmx.at>
11570
11571 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11572 Mention kill-buffer in doc-string.
11573 (Fset_window_buffer): Reinsert tem check removed in last commit.
11574 (Fenlarge_window, Fshrink_window): Have argument names and
11575 doc-string follow Elisp manual more closely.
11576
11577 2008-10-18 Eli Zaretskii <eliz@gnu.org>
11578
11579 * fileio.c (Fset_file_modes): Doc fix.
11580
11581 2008-10-18 Martin Rudalics <rudalics@gmx.at>
11582
11583 * window.c (Fwindow_width, Fset_window_start)
11584 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
11585 (Fdelete_windows_on, Freplace_buffer_in_windows):
11586 Make doc-strings follow code and Elisp manual more closely.
11587 (Fwindow_dedicated_p): Make window argument optional.
11588 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11589 (Fset_window_buffer): Respect any non-nil dedicated value for
11590 window. Rename "buffer" argument to "buffer_or_name".
11591
11592 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
11593
11594 * m/sh3.h: New file, machine description for SuperH.
11595
11596 2008-10-17 Martin Rudalics <rudalics@gmx.at>
11597
11598 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11599
11600 2008-10-17 Kenichi Handa <handa@m17n.org>
11601
11602 * ftfont.c (ftfont_otf_features): Fix indexing
11603 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11604
11605 2008-10-16 Magnus Henoch <mange@freemail.hu>
11606
11607 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11608 (Fdbus_call_method_asynchronously): Ditto.
11609 This change makes C-h f display the argument list.
11610
11611 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
11612
11613 * fileio.c (Fexpand_file_name): Doc fix.
11614
11615 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11616 of :foreground and :background equivalent to unspecified (20.x
11617 compatibility).
11618
11619 2008-10-15 Eli Zaretskii <eliz@gnu.org>
11620
11621 * buffer.c (syms_of_buffer): Doc fix.
11622
11623 2008-10-14 Kenichi Handa <handa@m17n.org>
11624
11625 * font.c (font_clear_prop): When clearing font width, clear the
11626 average width field too.
11627
11628 2008-10-12 Andreas Schwab <schwab@suse.de>
11629
11630 * ftfont.c (ftfont_shape_by_flt): Make static.
11631 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11632
11633 * font.c: Don't include <m17n-flt.h>.
11634
11635 2008-10-10 Eli Zaretskii <eliz@gnu.org>
11636
11637 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11638
11639 2008-10-09 Eli Zaretskii <eliz@gnu.org>
11640
11641 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11642 away code.
11643
11644 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * dispnew.c (update_text_area): Avoid looping due to large glyph
11647 overhangs (bug#1070).
11648
11649 2008-10-09 Kenichi Handa <handa@m17n.org>
11650
11651 * fontset.c (face_for_char): If face->fontset is negative, just
11652 return ascii_face.
11653
11654 * font.c (font_delete_unmatched): Fix previous change.
11655 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
11656
11657 2008-10-09 Martin Rudalics <rudalics@gmx.at>
11658
11659 * frame.c (Fraise_frame): On text-only terminals select frame in
11660 order to make it visible. (Bug#1061)
11661
11662 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
11663
11664 * fontset.c (fontset_find_font): Check frame validity.
11665
11666 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
11667
11668 * gtkutil.c (xg_display_open): Reset default display if none exists.
11669 (xg_display_close): Allow Emacs to close all displays (bug#985).
11670
11671 2008-10-06 Andreas Schwab <schwab@suse.de>
11672
11673 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
11674
11675 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
11676
11677 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
11678
11679 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
11680
11681 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11682 during initialization.
11683
11684 2008-10-04 Eli Zaretskii <eliz@gnu.org>
11685
11686 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11687 whole thing on MSDOS frames as well as on a TTY.
11688
11689 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11690 well as for TTY.
11691 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11692 well as on a TTY.
11693
11694 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11695 as well as for TTY.
11696
11697 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11698
11699 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11700 MSDOS frames as well.
11701
11702 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11703
11704 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11705 correct arguments.
11706 * menu.c (find_and_return_menu_selection): Add cast.
11707
11708 2008-10-03 Glenn Morris <rgm@gnu.org>
11709
11710 * emacs.c (USAGE1): Add --daemon.
11711
11712 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11713
11714 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11715 100, so it's in percents as advertised.
11716
11717 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11718
11719 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11720 (ns_output.current_cursor, ns_output.desired_cursor)
11721 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11722 (FRAME_NEW_CURSOR_COLOR): Remove.
11723
11724 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11725 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11726 enumeration (HOLLOW_BOX_CURSOR, etc.).
11727
11728 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11729 (draw_window_cursor): Simplify code.
11730 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11731 Don't change cursor type. In latter, call rehighlight instead of doing
11732 updates manually.
11733 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11734 Use core Emacs cursor types.
11735
11736 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11737
11738 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11739
11740 * process.c (Faccept_process_output): Fix doc-string.
11741
11742 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11743
11744 * gmalloc.c (__sbrk): Also define for uClibc.
11745
11746 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11747 for uClibc.
11748
11749 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11750
11751 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11752 styles.
11753 (nsfont_open): Reenable the cache.
11754
11755 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11756
11757 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11758 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11759
11760 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11761
11762 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11763 a suspended terminal.
11764
11765 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11766
11767 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11768
11769 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11770
11771 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11772
11773 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11774
11775 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11776 in a continued line coincides with a line beginning.
11777
11778 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11779
11780 * nsfont.m (nsfont_trait_distance): Fix bug.
11781 (nsfont_list): Return a list rather than a vector (syncs with Handa
11782 changes of 2008-05-14).
11783 (nsfont_open): Improve logging.
11784
11785 2008-09-29 Andreas Schwab <schwab@suse.de>
11786
11787 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11788
11789 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11790
11791 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11792 name as char-resolve-modifiers.
11793 Reported by: Markus Triska <markus.triska@gmx.at>
11794
11795 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11796
11797 * dispnew.c (init_display): Return earlier when running as a daemon.
11798
11799 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11800
11801 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11802
11803 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11804
11805 * composite.c (Fcomposition_get_gstring)
11806 (Fcompose_region_internal, Fcompose_string_internal)
11807 (Ffind_composition_internal): Doc fix.
11808 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11809 (syms_of_composite) <auto-composition-function>: Doc fix.
11810 (syms_of_composite) <composition-function-table>: Doc fix.
11811
11812 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11813
11814 * search.c (wordify): New argument for lax word-ends.
11815 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11816
11817 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11818
11819 * lisp.h (is_daemon): Declare.
11820 * dispnew.c (init_display): Do not try to initialize the terminal
11821 when running as a daemon.
11822
11823 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11824
11825 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11826 x_display_pixel_height.
11827
11828 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11829
11830 * undo.c (record_point): Don't call Fundo_boundary for first
11831 change. (Bug#731)
11832
11833 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11834
11835 * emacs.c (Fdaemonp): Doc fix.
11836
11837 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11838
11839 * emacs.c (main): Place #ifdef in the proper place.
11840
11841 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11842
11843 * emacs.c (standard_args): Add --daemon.
11844 (main): Disconnect from the terminal when --daemon is passed.
11845 (is_daemon): New variable.
11846 (Fdaemonp): New function.
11847 (syms_of_emacs): Defsubr it.
11848
11849 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11850
11851 * xdisp.c (get_next_display_element): Handle string display
11852 correctly when checking for the end of a box run.
11853
11854 2008-09-20 Glenn Morris <rgm@gnu.org>
11855
11856 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11857 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11858 (Frename_file): Avoid copying to trash if a rename involves
11859 a delete. (Bug#964).
11860
11861 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11862
11863 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11864 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11865 frames as well as termcap frames.
11866 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11867 get_named_tty.
11868
11869 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11870
11871 * process.c (procfs_system_process_attributes): Fix cmdline in
11872 case /proc/PID/cmdline is empty.
11873
11874 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11875 x_display_pixel_height.
11876
11877 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11878
11879 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11880
11881 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11882 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11883
11884 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11885
11886 * dispextern.h (struct it): Move line_wrap away from the middle of
11887 bitfields. Move voffset in struct iterator_stack_entry after the
11888 bitfields. Move tab_width near after another short.
11889
11890 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11891
11892 * frame.h (struct frame): Move alpha from the middle of bitfields.
11893
11894 * window.h (struct window): Move frozen_window_start_p after the
11895 rest of the bitfields to reduce padding.
11896
11897 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11898
11899 * xterm.h (x_display_info): Remove `height' and `width' members.
11900
11901 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11902
11903 * w32term.h (w32_display_info): Remove `height', `width',
11904 `height_in', and `width_in' members.
11905
11906 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11907 New functions.
11908 (x_calc_absolute_position): Use them.
11909 (x_term_init): Omit removed `height' and `width' members.
11910
11911 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11912 New functions.
11913 (w32_read_socket, x_calc_absolute_position): Use them.
11914 (w32_initialize_display_info, w32_term_init): Omit removed members
11915 of w32_display_info.
11916
11917 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11918 New functions.
11919 (ns_initialize_display_info): Omit removed members of ns_display_info.
11920
11921 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11922 New functions.
11923 (x_calc_absolute_position): Use them.
11924 (x_term_init): Omit removed `height' and `width' members.
11925
11926 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11927 (compute_tip_xy):
11928 * frame.c (x_fullscreen_adjust):
11929 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11930 x_display_pixel_width.
11931
11932 2008-09-18 Kenichi Handa <handa@m17n.org>
11933
11934 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11935 (composition_compute_stop_pos): Fix handling of static composition.
11936 (Fcomposition_get_gstring): Check FROM and TO at first.
11937
11938 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11941 mixup (YAILOM).
11942
11943 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11944
11945 * indent.c (Fvertical_motion): Use position reported by iterator
11946 instead of PT for determining screen motion (bug#943).
11947
11948 2008-09-17 Romain Francoise <romain@orebokech.com>
11949
11950 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11951
11952 2008-09-17 Kenichi Handa <handa@m17n.org>
11953
11954 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11955
11956 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11957 if necessary.
11958
11959 2008-09-16 Kenichi Handa <handa@m17n.org>
11960
11961 * coding.c (make_conversion_work_buffer): Avoid calling
11962 Fget_buffer_create if it is not necessary.
11963
11964 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11965
11966 * window.c (Fselect_window): Don't update window_select_count and
11967 use_time when norecord is not nil.
11968
11969 2008-09-14 Kenichi Handa <handa@m17n.org>
11970
11971 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11972 specpdl_ptr.
11973
11974 2008-09-12 Kenichi Handa <handa@m17n.org>
11975
11976 * indent.c (scan_for_column): Don't handle automatic composition
11977 if the current buffer is not associated with a window.
11978
11979 * composite.c (composition_reseat_it): If the current buffer is
11980 not associated with a window, ignore the automatic composition.
11981 (find_automatic_composition): Likewise.
11982
11983 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11984
11985 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11986 (Fgpm_mouse_stop): Use it.
11987 * termhooks.h (close_gpm): Declare.
11988 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11989 connection if Gpm_GetEvent fails.
11990
11991 * window.c (set_window_buffer): Always preserve current-buffer.
11992
11993 2008-09-12 Glenn Morris <rgm@gnu.org>
11994
11995 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11996
11997 2008-09-11 Glenn Morris <rgm@gnu.org>
11998
11999 * charset.c (charset-map-path): Doc fix.
12000
12001 2008-09-10 Kenichi Handa <handa@m17n.org>
12002
12003 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12004
12005 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12006 compose a grapheme cluster with the preceding base glyph.
12007
12008 * composite.c (composition_compute_stop_pos): Fix previous change.
12009 Reset cmp_it->id to -1 at first.
12010
12011 2008-09-10 Glenn Morris <rgm@gnu.org>
12012
12013 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12014
12015 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
12016
12017 * keyboard.c (read_key_sequence): Reapply translation maps when
12018 switching keyboards.
12019
12020 2008-09-09 Kenichi Handa <handa@m17n.org>
12021
12022 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12023 characters.
12024
12025 * composite.c (FORWARD_CHAR): Fix calculation
12026 of (POSITION).pos_byte.
12027 (composition_compute_stop_pos): Limit the search of composition to
12028 at most 500 characters ahead. If we reach the limit or find a
12029 newline, set cmp_it->ch to -2 and return 0.
12030 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12031
12032 2008-09-08 Kenichi Handa <handa@m17n.org>
12033
12034 * indent.c (Fvertical_motion): Be sure to set
12035 it_overshoot_expected if it.cmp_it.id is non-negative.
12036
12037 2008-09-07 Andreas Schwab <schwab@suse.de>
12038
12039 * callproc.c (Fcall_process): Don't hold references to string data
12040 across garbage collection. Move initialisation of new_argv down
12041 to avoid compiler bug.
12042
12043 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12044
12045 * process.c (Fsystem_process_attributes): Doc fix.
12046
12047 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
12048
12049 * callproc.c (Fcall_process): Canonicalize current directory name.
12050
12051 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12052 iterator advances to the next line if the current line ends in a
12053 continued tab.
12054
12055 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12056
12057 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12058 member to point to cmp_from.
12059
12060 * xdisp.c: Doc fix for references to gidx data member.
12061
12062 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12063
12064 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12065
12066 2008-09-07 Kenichi Handa <handa@m17n.org>
12067
12068 * composite.c (FORWARD_CHAR): Check STOP after
12069 incrementing (POSITION).pos.
12070
12071 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12072
12073 * process.c (Fsystem_process_attributes): Doc fix.
12074
12075 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
12076
12077 * keyboard.c (Ftop_level): Doc fix.
12078
12079 2008-09-06 Eli Zaretskii <eliz@gnu.org>
12080
12081 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12082 minibuffer, don't let lower part of menu invade the echo area.
12083
12084 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12085 "char *q" to access menu text and advance through it. Revert the
12086 change that displayed ">" instead of ASCII character 0x10.
12087
12088 2008-09-05 Eli Zaretskii <eliz@gnu.org>
12089
12090 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12091 toggle boxes and radio buttons on MS-DOS as well.
12092
12093 2008-09-05 Kenichi Handa <handa@m17n.org>
12094
12095 * composite.c (autocmp_chars): Check lookback count.
12096 (composition_compute_stop_pos): Set cmp_it->lookback.
12097 (composition_reseat_it): Check lookback count.
12098 (struct position_record): New struct.
12099 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12100 (find_automatic_composition): New function.
12101 (composition_adjust_point): Use find_automatic_composition.
12102
12103 * dispextern.h (struct composition_it): New member lookback.
12104
12105 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
12106
12107 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12108 if moving by a single line.
12109
12110 2008-09-02 Andreas Schwab <schwab@suse.de>
12111
12112 * xterm.c (x_delete_display): Fix merge error.
12113
12114 * fileio.c (Fexpand_file_name): Remove unused variables.
12115
12116 2008-09-02 Eli Zaretskii <eliz@gnu.org>
12117
12118 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12119 storage on all platforms, not just on DOS_NT.
12120
12121 2008-09-02 Jason Rumney <jasonr@gnu.org>
12122
12123 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12124 Ensure mouse is not grabbed after menu is finished.
12125
12126 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
12127
12128 * xfaces.c (Finternal_set_alternative_font_family_alist)
12129 (Finternal_set_alternative_font_registry_alist): Properly copy
12130 entire alist structure.
12131
12132 2008-09-01 Kenichi Handa <handa@m17n.org>
12133
12134 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
12135 representative chars of the script is a vector.
12136 (ftfont_list): Handle the case where the representative chars of
12137 the script is a vector.
12138
12139 * character.c (syms_of_character): Docstring of
12140 script-representative-chars fixed.
12141
12142 2008-08-31 Eli Zaretskii <eliz@gnu.org>
12143
12144 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12145 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12146 the menu. Allocate larger buffer for `text', to account for
12147 possible ^C characters.
12148
12149 2008-08-31 Martin Rudalics <rudalics@gmx.at>
12150
12151 * xdisp.c (prepare_menu_bars): Don't call
12152 Vwindow_size_change_functions with arg Qt.
12153
12154 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12155
12156 * font.h (font_range):
12157 * fileio.c (report_file_error):
12158 * composite.c (composition_update_it): Yet another int/Lisp_Object
12159 mixup (YAILOM).
12160
12161 2008-08-30 Glenn Morris <rgm@gnu.org>
12162
12163 * data.c (Fmake_variable_frame_local): Doc fix.
12164
12165 * frame.c (Fmodify_frame_parameters): Doc fix.
12166
12167 2008-08-30 Eli Zaretskii <eliz@gnu.org>
12168
12169 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12170 needed by GetTokenInformation.
12171 (w32_system_process_attributes): Check return values of all system
12172 APIs.
12173
12174 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12175 only when the state changes.
12176 (IT_update_begin, IT_update_end): Add termscript trace.
12177
12178 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12179 clipboard is unavailable. Set dst to NULL if it doesn't point to
12180 malloc'ed data.
12181 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12182 passing random values to xfree.
12183
12184 * dispnew.c (init_display): Set `tty's association in frame's
12185 parameters alist to the name of the terminal device, if that is known.
12186
12187 2008-08-29 Jason Rumney <jasonr@gnu.org>
12188
12189 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12190
12191 2008-08-29 Eli Zaretskii <eliz@gnu.org>
12192
12193 * composite.c (fill_gstring_body): Avoid compiler warnings.
12194
12195 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12196 LGLYPH_SET_CODE to avoid compiler warnings.
12197
12198 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
12199
12200 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12201
12202 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12203 LGLYPH_SET_CODE.
12204
12205 2008-08-29 Kenichi Handa <handa@m17n.org>
12206
12207 * fileio.c (report_file_error): Don't downcase the first character
12208 of errstring if it is still unibyte.
12209
12210 2008-08-29 Kenichi Handa <handa@m17n.org>
12211
12212 These changes are to re-implement the automatic composition so
12213 that it doesn't use text properties.
12214
12215 * Makefile.in (ftfont.o): Depend on composite.h.
12216 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12217
12218 * character.h (Vunicode_category_table): Extern it.
12219
12220 * character.c (Vunicode_category_table): New variable.
12221 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12222
12223 * chartab.c (optimize_sub_char_table): Perform more greedy
12224 optimization.
12225
12226 * composite.h (enum composition_method):
12227 Delete COMPOSITION_WITH_GLYPH_STRING.
12228 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12229 (Vcomposition_function_table): Extern it.
12230 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12231 (composition_gstring_put_cache, composition_gstring_from_id)
12232 (composition_gstring_p, composition_gstring_width)
12233 (composition_compute_stop_pos, composition_reseat_it)
12234 (composition_update_it, composition_adjust_point): Extern them.
12235 (Fcomposition_get_gstring): EXFUN it.
12236
12237 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
12238 (Vcomposition_function_table)
12239 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
12240 (gstring_hash_table, gstring_work, gstring_work_headers):
12241 New variables.
12242 (gstring_lookup_cache, composition_gstring_put_cache)
12243 (composition_gstring_from_id, composition_gstring_p)
12244 (composition_gstring_width, fill_gstring_header)
12245 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12246 (composition_reseat_it, composition_update_it)
12247 (composition_adjust_point, Fcomposition_get_gstring): New functions.
12248 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12249 and gstring_work_headers. DEFVAR_LISP composition-function-table.
12250 Defsubr composition_get_gstring.
12251
12252 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12253 cmp_id.
12254 (struct glyph_string): Delete the member gidx. New members
12255 cmp_id, cmp_from, and cmp_to.
12256 (enum it_method): Delete GET_FROM_COMPOSITION.
12257 (struct composition_it): New struct.
12258 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12259 Delete c, len, cmp_id, cmp_len in u.comp.
12260
12261 * font.h (enum lgstring_indices): Delete it.
12262 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
12263 (enum lglyph_indices): Likewise.
12264 (font_range): Adjust extern.
12265 (font_fill_lglyph_metrics): Extern it.
12266
12267 * font.c (QCf): New variable.
12268 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12269 (font_prepare_composition): Delete this function.
12270 (font_range): Type and arguments changed.
12271 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12272 (font_fill_lglyph_metrics): New function.
12273 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
12274 (syms_of_font): DEFSYM QCf. Delete defsubr for
12275 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12276 Defsubr Sfont_shape_gstring.
12277
12278 * fontset.h (font_for_char): Extern it.
12279
12280 * fontset.c (font_for_char): New function.
12281
12282 * ftfont.c: Include composite.h.
12283 (ftfont_resolve_generic_family): Add langset "en" to pattern.
12284 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12285
12286 * indent.c: Include composite.h and dispextern.h.
12287 (check_composition): Delete this function.
12288 (scan_for_column): Handle composition by
12289 composition_compute_stop_pos, composition_reseat_it, and
12290 composition_update_it.
12291 (compute_motion): Likewise.
12292 (Fvertical_motion): Fix checking of composition.
12293
12294 * keyboard.c (adjust_point_for_property): Check composition by
12295 composition_adjust_point.
12296
12297 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
12298 struct glyph_string.
12299
12300 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12301 (append_composite_glyph): Adjust for the change of struct it and
12302 struct glyph.
12303 (produce_composite_glyph): Likewise.
12304
12305 * w32term.c (x_draw_composite_glyph_string_foreground):
12306 Adjust for the change of struct glyph_string.
12307 (x_draw_glyph_string): Likewise.
12308
12309 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12310 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12311
12312 * xdisp.c: Include font.h.
12313 (it_props): Delete the entry for Qauto_composed.
12314 (init_iterator): Initialize it->cmp_it.id to -1.
12315 (compute_stop_pos): Call composition_compute_stop_pos.
12316 (face_before_or_after_it_pos): Adjust for the change of struct it.
12317 (handle_auto_composed_prop): Delete it.
12318 (handle_composition_prop): Handle only static composition.
12319 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12320 from xassert. Initialize it->cmp_it.stop_pos.
12321 (push_it): Adjust for the change of struct it.
12322 (pop_it): Likewise.
12323 (get_next_element): Delete next_element_from_composition.
12324 (CHAR_COMPOSED_P): New macro.
12325 (get_next_display_element): For automatic composition, get a face
12326 from the font in the glyph-string.
12327 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
12328 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
12329 (next_element_from_string): Check if the character at the current
12330 position is composed by CHAR_COMPOSED_P.
12331 (next_element_from_buffer): Likewise.
12332 (next_element_from_composition): Adjust for the change of struct it.
12333 Update it->cmp_it.
12334 (dump_glyph): Adjust for the change of struct glyph.
12335 (fill_composite_glyph_string): Adjust for the change of struct
12336 it and struct glyph. Don't handle automatic composition here.
12337 (fill_gstring_glyph_string): New function.
12338 (x_get_glyph_overhangs): Handle automatic composition.
12339 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
12340 (BUILD_GSTRING_GLYPH_STRING): New macro.
12341 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12342 automatic composition.
12343 (append_composite_glyph): Adjust for the change of struct it and
12344 struct glyph.
12345 (x_produce_glyphs): Adjust for the change of struct it.
12346
12347 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12348 the change of struct glyph_string.
12349 (x_draw_glyph_string): Likewise.
12350
12351 2008-08-29 Glenn Morris <rgm@gnu.org>
12352
12353 * buffer.c (word-wrap): Doc fix.
12354 * xdisp.c (truncate-partial-width-windows): Doc fix.
12355 Increase default to 50.
12356
12357 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
12358
12359 * xdisp.c (update_tool_bar_unwind): New function.
12360 (update_tool_bar): Temporarily set selected frame before building
12361 tool-bar items.
12362
12363 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
12364
12365 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12366 snprintf, respectively.
12367 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12368
12369 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
12370
12371 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12372 LDFLAGS to GNUstep CC invocation.
12373
12374 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
12375
12376 * indent.c (Fvertical_motion): Revert last change. Handle the
12377 general case where we are moving forward, and PT spans multiple
12378 screen lines.
12379
12380 * eval.c (find_handler_clause): Temporarily increase
12381 max-lisp-eval-depth while printing the backtrace buffer, to
12382 guarantee that help-mode code can run.
12383
12384 2008-08-27 Eli Zaretskii <eliz@gnu.org>
12385
12386 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12387 colors under -rv.
12388 (IT_set_frame_parameters): Don't swap foreground and background
12389 colors if `(reverse . t)' is present in the frame properties.
12390 (internal_terminal_init): Call init_frame_faces only for the
12391 initial frame.
12392
12393 2008-08-27 Andreas Schwab <schwab@suse.de>
12394
12395 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12396
12397 2008-08-27 Andreas Schwab <schwab@suse.de>
12398
12399 * search.c (search_buffer): Set char_base to zero only at the end.
12400
12401 2008-08-27 Kenichi Handa <handa@m17n.org>
12402
12403 * fileio.c (report_file_error): Fix handling of multibyte error string.
12404
12405 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12406
12407 * xterm.c (x_term_init): Temporarily hide the partially
12408 initialized terminal while calling vendor-specific-keysyms.
12409
12410 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12411
12412 * msdos.c (internal_terminal_init): Most initializations done only
12413 once, especially initial_screen_colors[] and termscript open.
12414
12415 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12416
12417 * eval.c (Fcondition_case): Doc fix.
12418
12419 * widgetprv.h (EmacsFramePart): Change font member to the new font
12420 struct.
12421
12422 * widget.c: Include character.h and font.h for XSETFONT.
12423 (setup_frame_gcs): Compute X font id from font struct, just once.
12424
12425 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12426
12427 * term.c (get_named_tty): Fix last change.
12428
12429 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12430
12431 * indent.c (Fvertical_motion): If moving forward starting from a
12432 multi-line string, move the iterator to the last line of that string.
12433
12434 2008-08-25 Eli Zaretskii <eliz@gnu.org>
12435
12436 * frame.c (do_switch_frame): Mark previously displayed frame as
12437 obscured for FRAME_MSDOS_P frames as well.
12438
12439 2008-08-24 Eli Zaretskii <eliz@gnu.org>
12440
12441 * frame.c (make_terminal_frame): Initialize f->terminal,
12442 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12443 Set the top frame to newly created frame.
12444 (Fmake_terminal_frame): Reuse the_only_display_info.
12445
12446 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12447 estimating available memory.
12448
12449 2008-08-23 David Reitter <david.reitter@gmail.com>
12450
12451 * nsterm.m (ns_draw_window_cursor): Don't call
12452 NSDisableScreenUpdates and NSEnableScreenUpdates on
12453 non-NS_IMPL_COCOA systems.
12454
12455 2008-08-23 Andreas Schwab <schwab@suse.de>
12456
12457 * process.c (procfs_system_process_attributes): Fix use of
12458 uninitialized variables.
12459
12460 2008-08-23 Eli Zaretskii <eliz@gnu.org>
12461
12462 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12463
12464 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12465 calling tty-set-up-initial-frame-faces.
12466
12467 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12468 Allow MSDOS frames along with X frames.
12469
12470 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12471 addition to output_termcap.
12472
12473 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12474
12475 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12476 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12477 highlight.
12478
12479 * process.c [!subprocesses]: Define QCname.
12480 (syms_of_process): Intern and staticpro it.
12481
12482 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
12483 Adjust for changes in encoding/decoding routines.
12484 Use encode_coding_object and decode_coding_object instead of
12485 encode_coding and decode_coding.
12486
12487 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
12488
12489 * dosfns.c: Include frame.h before termhooks.h.
12490 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12491 variable termscript.
12492
12493 * s/msdos.h (USER_FULL_NAME): Define.
12494 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12495
12496 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12497 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12498 pw->pw_gecos.
12499
12500 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12501 SELECTED_FRAME as additional (1st) argument.
12502 (tty_read_avail_input): Handle output_msdos_raw in
12503 addition to output_termcap.
12504
12505 * msdos.c: Include frame.h before termhooks.h.
12506 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12507 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12508 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12509 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12510 (IT_set_terminal_modes, IT_reset_terminal_modes)
12511 (IT_set_frame_parameters): Use tty->termscript instead of a global
12512 variable termscript.
12513 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12514 global variable terminal_coding. Don't refer to
12515 Vnonascii_translation_table.
12516 (internal_terminal_init): Set Vwindow_system in current_kboard.
12517 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12518 Announce date and time of session start, if termscript is open.
12519 Don't zero out the_only_display_info (it is done in
12520 term.c:init_tty). Open termscript only of not already open.
12521 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
12522 here instead of dos_ttraw. Don't initialize display if this is an
12523 initial tty. Don't set FRAME_FONT.
12524 (Vwindow_system_version): Bump to 23.
12525 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12526 is available, set up mouse_position_hook.
12527 (dos_ttraw, IT_set_terminal_modes): If called with initial
12528 terminal, do nothing.
12529 (IT_set_frame_parameters): Handle the Qtty_type frame
12530 parameter by calling internal_terminal_init.
12531 (dos_set_window_size, show_mouse_face)
12532 (clear_mouse_face, IT_note_mode_line_highlight)
12533 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12534 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12535 (initialize_msdos_display): New function.
12536 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12537 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12538 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12539 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
12540 Accept additional argument: a pointer to a frame. Update all callers.
12541 (request_sigio, unrequest_sigio): Don't define, now defined on
12542 sysdep.c.
12543 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12544
12545 * term.c [MSDOS]: Include msdos.h.
12546 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12547 conditional to DOS_NT. Allow only one call to this function in a
12548 session. Don't allocate a new struct tty_display_info; instead,
12549 reuse the_only_display_info. Call get_tty_size to get screen
12550 dimensions. Call init_baud_rate to set bad_rate.
12551 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12552 (Fsuspend_tty) [MSDOS]: Don't close input and output.
12553 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
12554 (get_tty_terminal, get_named_tty, Ftty_type)
12555 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12556 output_termcap.
12557 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12558 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
12559 only when subprocesses are supported.
12560
12561 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12562 f->output_data.x.
12563 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12564 terminal devices.
12565
12566 * msdos.h: Remove definition of struct x_display_info and struct
12567 x_output.
12568 (FRAME_FONT): Use output_data.tty.
12569 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
12570 (struct x_display_info): Rename from display_info. Update all users in
12571 msdos.c.
12572 (struct x_output): Remove background_pixel and foreground_pixel.
12573 (the_only_display_info): Rename from the_only_x_display.
12574 (dos_ttraw): Update prototype.
12575
12576 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12577 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12578
12579 2008-08-23 Jason Rumney <jasonr@gnu.org>
12580
12581 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12582 (fn_TIFFSetDirectory): New library function used.
12583 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12584 (tiff_load): Use :index to select among multiple images. Set count
12585 property when multiple images exist.
12586 (gif_format): Use :index, not :image.
12587
12588 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
12589
12590 * xdisp.c (try_scrolling): Check INT_MAX instead of
12591 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12592 to obtain INT_MAX.
12593
12594 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12595
12596 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12597
12598 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12599
12600 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12601 GNUstep library location.
12602
12603 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
12604
12605 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12606 before using it.
12607
12608 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12609
12610 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12611
12612 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12613 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12614 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12615 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12616 (EmacsApp-cursor_blink_handler): Remove declaration.
12617 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12618 match 01 Feb 2008 changes in xterm.c.
12619 (ns_read_socket): Add cast to avoid warning.
12620 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12621 GNUstep.
12622
12623 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
12624
12625 * xselect.c (x_get_foreign_selection): Return nil if desired
12626 selection could not be obtained, instead of signalling an error.
12627
12628 2008-08-20 David Reitter <david.reitter@gmail.com>
12629
12630 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12631 * nsterm.m: Remove ns-specific code for cursor blinking.
12632 (ns_draw_window_cursor): Clear cursor properly rather than
12633 redrawing the area. Respect width of bar cursors.
12634 These changes enable the use of generic blink-cursor-mode and
12635 generic cursor types in NS and support smooth cursor movements (do
12636 not blink off after command).
12637 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12638 Nextstep, too.
12639
12640 2008-08-19 Kenichi Handa <handa@m17n.org>
12641
12642 * font.c (Vfont_log_deferred): New variable.
12643 (font_add_log): Check Vfont_log_deferred.
12644 (font_deferred_log): New function.
12645
12646 * font.h (font_deferred_log): Extern it.
12647
12648 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12649 for sorting.
12650 (face_for_char): Use deferred log.
12651
12652 2008-08-18 Kenichi Handa <handa@m17n.org>
12653
12654 * fontset.c (face_for_char): Add font log.
12655
12656 * font.c (font_add_log): Add the font properties :script, :lang,
12657 and :otf in the log.
12658
12659 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
12660
12661 * xdisp.c: Remove dead code.
12662 (handle_invisible_prop, next_overlay_string): Defer call to
12663 setup_for_ellipsis.
12664 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12665
12666 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
12667
12668 * xfaces.c (lookup_derived_face): Properly handle possible zero
12669 return value of get_lface_attributes.
12670 (merge_faces): Don't tell lookup_derived_face to signal an error
12671 if face is not found.
12672
12673 * dired.c (Fdirectory_files): Doc fix.
12674
12675 * process.c (make_process): Initialize kill_without_query struct
12676 member.
12677
12678 2008-08-15 Eli Zaretskii <eliz@gnu.org>
12679
12680 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12681 Alternative calculation of totphys for Visual Studio 6.
12682
12683 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12684
12685 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12686 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12687 All users changed.
12688 (stat): Only root directory passed to GetDriveType. Allow RAM
12689 disk as well as local fixed disk when w32-get-true-file-attributes
12690 is set to `local'.
12691 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12692 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12693 (w32_cached_id, w32_add_to_cache): New functions.
12694 (get_name_and_id): Look account names in the cache before calling
12695 lookup_account_sid.
12696 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12697 New initialization flags.
12698 (globals_of_w32): Initialize them to zero.
12699 (w32_system_process_attributes): Use w32_cached_id and
12700 w32_add_to_cache.
12701
12702 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12703
12704 * lread.c (Fread_char, Fread_char_exclusive): If no character
12705 event is read before timeout is reached, return nil, rather than
12706 converting to a number.
12707
12708 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12709
12710 * fns.c (use_dialog_box): Doc fix.
12711
12712 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12713 on OS X.
12714
12715 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12716
12717 * frame.c (Qns_parse_geometry): New var.
12718 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12719
12720 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12721
12722 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12723 space character in calculating tabs.
12724
12725 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12726
12727 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12728
12729 2008-08-10 Glenn Morris <rgm@gnu.org>
12730
12731 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12732 silence gcc "limited range of data type" warnings in some
12733 make_fixnum_or_float calls.
12734
12735 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12736
12737 * w32.c (w32_system_process_attributes): If the process does not
12738 exist, return nil.
12739
12740 * w32.c: Include thelp32.h, psapi.h and coding.h.
12741 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12742 declarations.
12743 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12744 (Process32Next_Proc): New typedefs.
12745 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12746 (g_b_init_process32_next, g_b_init_open_thread_token)
12747 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12748 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12749 (g_b_init_get_process_working_set_size)
12750 (g_b_init_global_memory_status_ex): New static variables.
12751 (globals_of_w32): Initialize them.
12752 (create_toolhelp32_snapshot, process32_first, process32_next)
12753 (open_thread_token, impersonate_self, revert_to_self)
12754 (get_process_memory_info, get_process_working_set_size)
12755 (global_memory_status, global_memory_status_ex): New wrapper
12756 functions.
12757 (w32_list_system_processes, w32_system_process_attributes)
12758 (enable_privilege, restore_privilege, ltime, process_times):
12759 New functions.
12760 (convert_time_raw): New function.
12761 (convert_time): Remove conversion of FILETIME into time in 100
12762 nsec units, call convert_time_raw instead.
12763
12764 * process.h (w32_list_system_processes, w32_system_process_attributes):
12765 Add prototypes.
12766 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12767 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12768 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12769 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12770
12771 * process.c (Fsystem_process_attributes): Doc fix.
12772
12773 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12774
12775 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12776 a continued multi-char glyph; if so, advance to the actual glyph.
12777
12778 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12779
12780 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12781
12782 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12783 (.m.o): Use it.
12784 * config.in: Regenerate.
12785
12786 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12787
12788 * xdisp.c (redisplay_window): Revert last change.
12789 (try_window): Check bottom scroll margin too.
12790
12791 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12792
12793 * config.in: Regenerate.
12794
12795 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12796 -list-load-path-shadows'.
12797 (nsgui.h): Reduce number of things depending on it.
12798
12799 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12800
12801 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12802 instead of window-end which does the wrong thing at eob.
12803 (try_cursor_movement): Minor optimization.
12804 (redisplay_window): If scroll margin is defined, don't assume
12805 window doesn't need scrolling.
12806
12807 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12808
12809 * config.in: Regenerate.
12810
12811 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12812 (mostlyclean): Don't delete *.d under NS.
12813
12814 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12815
12816 2008-08-06 Kenichi Handa <handa@m17n.org>
12817
12818 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12819
12820 2008-08-06 Andreas Schwab <schwab@suse.de>
12821
12822 * config.in: Regenerate.
12823
12824 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12825
12826 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12827 forcing a window start.
12828
12829 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12830 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12831
12832 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12833
12834 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12835 argument.
12836
12837 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12838
12839 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12840 <scroll-down-aggressively, before-change-functions>:
12841 <after-change-functions>: Reflow docstrings.
12842
12843 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12844 Ken Raeburn <raeburn@gnu.org>
12845
12846 Dock menu customization, based on a patch by Ken Raeburn, plus some
12847 other fixes.
12848 * nsmenu.m (dockMenu): New variable.
12849 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12850
12851 * nsterm.h (dockMenu): Declare.
12852
12853 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12854 (ns_term_init): Initialize dockMenu.
12855 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12856 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12857 left.
12858
12859 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12860
12861 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12862
12863 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12864
12865 * config.in: Regenerate.
12866
12867 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12868
12869 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12870
12871 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12872
12873 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12874
12875 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12876
12877 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12878
12879 * keyboard.h: Comment an #endif.
12880
12881 * lisp.h (have_menus_p): Adjust comment.
12882
12883 * menu.c (find_and_return_menu_selection): Fix comparison with
12884 client_data.
12885
12886 * nsmenu.m (popup_activated_flag): New variable.
12887 (popup_activated): New function.
12888 (menu-or-popup-active-p): New exported lisp definition.
12889 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12890 when popup done.
12891 (ns_popup_dialog): Set popup_activated_flag.
12892
12893 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12894 version for GNUstep (handled by conditional typedef in nsterm.m).
12895 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12896 in rgb.txt).
12897
12898 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12899
12900 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12901
12902 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12903
12904 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12905 shortcircuit if popup_activated like GTK and X toolkit.
12906
12907 * m/inter386.h: Change DARWIN to DARWIN_OS.
12908
12909 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12910 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12911 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12912 comment on NO_SOCK_SIGIO.
12913
12914 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12915
12916 * nsterm.m (windowDidResize): Remove stopModal call.
12917
12918 2008-08-03 Andreas Schwab <schwab@suse.de>
12919
12920 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12921 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12922
12923 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12924
12925 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12926 Don't use uninitialized pointer variable when using getrlimit.
12927
12928 2008-08-02 Jason Rumney <jasonr@gnu.org>
12929
12930 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12931
12932 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12933
12934 * alloc.c (NSTATICS): Bump to 0x640.
12935
12936 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12937
12938 * lisp.h: Add prototype for directory_files_internal.
12939
12940 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12941 New functions.
12942 (syms_of_process): Defsubr them. Add initializations for various
12943 Q* symbols used in procfs_system_process_attributes.
12944 (procfs_list_system_processes, procfs_system_process_attributes)
12945 [HAVE_PROCFS]: New functions.
12946 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12947 (procfs_get_total_memory): New functions.
12948
12949 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12950
12951 * xfaces.c (Fx_load_color_file): Fix previous change;
12952 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12953
12954 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12955
12956 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12957
12958 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12959
12960 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12961
12962 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12963
12964 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12965
12966 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12967 define NSApplicationDelegateReplySuccess.
12968 (EmacsView -converstationIdentifier): Use long instead of
12969 NSInteger for GNUstep, since it doesn't have NSInteger.
12970
12971 * xmenu.c: Revert last change.
12972
12973 * keyboard.h: Fix last change.
12974
12975 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12976
12977 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12978 on Windows.
12979
12980 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12981
12982 Warning clearing and clean-up in NS port.
12983 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12984 Add prototypes.
12985 * nsgui.h (FACE_DEFAULT): Remove, unused.
12986 (XGCValues): Change colors to unsigned long.
12987 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12988 nsterm.m.
12989 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12990 (ns_list_fonts): Remove, unused.
12991 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12992 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12993 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12994 (nsfont_draw): Compare face colors to 0, not nil.
12995 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12996 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12997 (-addSubmenuWithTitle:): Use NSMenuItem class.
12998 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12999 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13000 (ns_clip_to_row): Make gc arg a BOOL.
13001 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13002 ns_clip_to_row() call.
13003 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13004 used). Cast FRAME_FONT assignments.
13005 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13006 (ns_string_to_lispmod): Change arg to const char.
13007 (ns_term_init): Use NSMenuItem class.
13008 (EmacsApp -openFile:): Move to different section of file.
13009 (EmacsApp -application:openFiles:): Don't return a value, call
13010 -replyToOpenOrPrint:.
13011 (EmacsView -keyDown:): Fix up cast.
13012 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13013 (EmacsView -menuDown:): Cast tag in call to
13014 find_and_call_menu_selection().
13015 (ns_list_fonts): Remove, unused.
13016 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13017 (ns_fontname_to_xlfd): Make static.
13018 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13019 Remove prototypes (now in keyboard.h).
13020 (next_menubar_widget_id): Remove, unused.
13021 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13022 Remove prototypes (now in keyboard.h).
13023 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13024
13025 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13026
13027 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13028 (floatfns.o): Depend on syssignal.h.
13029 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13030
13031 * systty.h: Fix previous change that removed BSD_TERMIOS.
13032 Add comments to #ifdefs.
13033
13034 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13035
13036 * w32fns.c (w32-load-color-file): Remove.
13037 (x-open-connection): Use renamed Fx_load_color_file.
13038 * xfaces.c (x-load-color-file): Add.
13039 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13040 Emacs.clr.
13041 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13042
13043 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
13044
13045 * dbusbind.c (Fdbus_call_method_asynchronously)
13046 (Fdbus_method_error_internal): New defuns.
13047 (xd_read_message): Handle also reply messages.
13048 (Vdbus_registered_functions_table): Extend docstring.
13049
13050 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
13051
13052 * keyboard.c (gobble_input): Fix previous change.
13053
13054 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13055
13056 * bitmaps/README:
13057 * xfns.c:
13058 * termcap.c:
13059 * term.c:
13060 * syswait.h:
13061 * systty.h:
13062 * systime.h:
13063 * syssignal.h:
13064 * sysdep.c:
13065 * process.h:
13066 * process.c:
13067 * print.c:
13068 * ndir.h:
13069 * lread.c:
13070 * keyboard.c:
13071 * getpagesize.h:
13072 * floatfns.c:
13073 * fileio.c:
13074 * emacs.c:
13075 * doc.c:
13076 * dispnew.c:
13077 * dired.c:
13078 * data.c:
13079 * callproc.c:
13080 * buffer.c:
13081 * README:
13082 * Makefile.in:
13083 * s/template.h:
13084 * s/msdos.h:
13085 * m/vax.h: Remove VMS support.
13086 * s/vms.h:
13087 * vlimit.h:
13088 * uaf.h:
13089 * temacs.opt:
13090 * param.h:
13091 * ioctl.h: Remove file.
13092
13093 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13094
13095 * s/ms-w32.h (MULTI_KBOARD): Remove.
13096 * xterm.c:
13097 * xselect.c:
13098 * xfns.c:
13099 * window.c:
13100 * w32term.c:
13101 * w32fns.c:
13102 * terminal.c:
13103 * termhooks.h:
13104 * term.c:
13105 * sysdep.c:
13106 * keyboard.h:
13107 * keyboard.c:
13108 * frame.h:
13109 * frame.c:
13110 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13111 * config.in: Regenerate.
13112
13113 2008-07-30 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13116
13117 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13118 (w32font_open_internal): Get unicode version of textmetrics.
13119 Don't enable or disable glyph indices here.
13120 (w32font_open): Disable use of glyph indices.
13121
13122 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13123
13124 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
13125
13126 * minibuf.c (Vread_buffer_function): Doc fix.
13127
13128 2008-07-30 John Paul Wallington <jpw@pobox.com>
13129
13130 * minibuf.c (read_buffer_completion_ignore_case): New var.
13131 (Fread_buffer): Use it.
13132
13133 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13134
13135 * systty.h (sensemode): Remove empty #if. Remove reference to
13136 BSD_TERMIOS, unused.
13137
13138 * sysdep.c: Remove reference to DGUX.
13139 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13140
13141 * config.in: Regenerate.
13142
13143 2008-07-30 Jason Rumney <jasonr@gnu.org>
13144
13145 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13146
13147 2008-07-29 Jason Rumney <jasonr@gnu.org>
13148
13149 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13150 is populated.
13151 (uniscribe_encode_char): Always use uniscribe.
13152 Avoid using context if cache is populated.
13153
13154 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13155
13156 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13157 open menu.
13158
13159 * gtkutil.c (menu_nav_ended): Remove.
13160 (create_menus): Remove signal connect for menu_nav_ended.
13161
13162 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
13163
13164 * xdisp.c (redisplay_window): Check return value of
13165 compute_window_start_on_continuation_line before forcing a window
13166 start.
13167
13168 2008-07-28 Jason Rumney <jasonr@gnu.org>
13169
13170 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13171
13172 * w32term.c (w32_enable_unicode_output, cleartype_active):
13173 Remove obsolete display options.
13174 (x_draw_glyph_string_background): Don't use old cleartype_active
13175 workaround.
13176 (w32_initialize): Remove cleartype_active initialization.
13177 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13178
13179 2008-07-28 Andreas Schwab <schwab@suse.de>
13180
13181 * lisp.h (init_weak_hash_tables, syms_of_font)
13182 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13183 (remove_hash_entry): Don't declare.
13184 * eval.c (maybe_call_debugger): Make static and move before use.
13185 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13186 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13187 * xterm.h (x_set_frame_alpha): Declare.
13188
13189 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13190
13191 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13192 (create_menus): Connect selection-done to menu_nav_ended.
13193
13194 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13195
13196 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13197 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13198 parameter with read of 'alpha' one.
13199 (Qns_frame_parameter): Remove.
13200 * nsselect.m (selection-coding-system)
13201 (next-selection-coding-system, Vselection_coding_system)
13202 (Vnext_selection_coding_system): Drop.
13203
13204 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13205
13206 * nsfns.m (do-applescript, do_applescript): Rename to
13207 ns-do-applescript, ns_do_applescript, and move within file.
13208
13209 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13210
13211 Remove support for Mac Carbon.
13212 * mactoolbox.c:
13213 * macterm.h:
13214 * macterm.c:
13215 * macselect.c:
13216 * macmenu.c:
13217 * macgui.h:
13218 * macfns.c:
13219 * mac.c: Remove file.
13220 * s/darwin.h:
13221 * m/intel386.h:
13222 * xfaces.c:
13223 * xdisp.c:
13224 * window.c:
13225 * tparam.c:
13226 * termhooks.h:
13227 * termcap.c:
13228 * term.c:
13229 * syssignal.h:
13230 * sysselect.h:
13231 * sysdep.c:
13232 * process.c:
13233 * lread.c:
13234 * lisp.h:
13235 * keyboard.c:
13236 * image.c:
13237 * fringe.c:
13238 * frame.h:
13239 * frame.c:
13240 * fontset.c:
13241 * font.h:
13242 * font.c:
13243 * fns.c:
13244 * fileio.c:
13245 * emacs.c:
13246 * dispnew.c:
13247 * dispextern.h:
13248 * config.in:
13249 * atimer.c:
13250 * Makefile.in: Remove code for Carbon.
13251
13252 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13253
13254 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13255
13256 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13257
13258 * macterm.h (kCGBitmapByteOrder32Host): New define for
13259 non-universal SDKs.
13260
13261 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13262 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13263
13264 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13265 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13266
13267 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13268
13269 * w32inevt.c: Include dispextern.h.
13270
13271 2008-07-26 Andreas Schwab <schwab@suse.de>
13272
13273 * print.c (print_object): Fix off-by-one in last change.
13274
13275 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
13276
13277 * term.c (syms_of_term): Don't initialize default_orig_pair,
13278 default_set_foreground and default_set_background on Windows.
13279
13280 2008-07-25 Jason Rumney <jasonr@gnu.org>
13281
13282 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13283 ScriptItemize. Clean up return value checking. Remove unused
13284 variables.
13285 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13286 shaping engine.
13287
13288 * w32font.c (w32font_has_char): Handle the case where we can't
13289 determine the script for a character.
13290
13291 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13292
13293 * term.c (syms_of_term): Initialize default_orig_pair,
13294 default_set_foreground, and default_set_background.
13295
13296 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13297 clash (bug#86).
13298 (getloadavg): Callers changed.
13299
13300 * image.c (svg_load_image): Fix last change.
13301 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13302 image size is valid. Use g_object_unref instead of deprecated
13303 rsvg_handle_free to free rsvg handle.
13304 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13305
13306 2008-07-25 Jason Rumney <jasonr@gnu.org>
13307
13308 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13309 surrogates before looking up glyph index.
13310 (w32font_text_extents): Encode as surrogates if falling back to
13311 functions that need UTF-16 wide chars.
13312
13313 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13314 BMP as surrogates before looking up glyph index.
13315
13316 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13317
13318 * image.c (svg_load_image): Check for failure in return value of
13319 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13320
13321 2008-07-25 Jason Rumney <jasonr@gnu.org>
13322
13323 * w32font.c (Fx_select_font): Reverse sense of second arg.
13324
13325 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13326
13327 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13328 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13329
13330 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13331 (PURESIZE): Use it.
13332
13333 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13334
13335 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13336 * m/alpha.h (TEXT_END):
13337 * m/ibmrs6000.h (TEXT_END):
13338 * m/macppc.h (TEXT_END):
13339 * s/darwin.h (TEXT_END):
13340 * s/msdos.h (TEXT_END): Remove, unused.
13341 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13342 * s/cygwin.h: Remove comment.
13343
13344 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13345 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13346 * m/intel386.h (DOT_GLOBAL_START):
13347 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13348 (USG): Remove, file not used on USG platforms.
13349
13350 * Makefile.in (HAVE_X11): Remove empty #else.
13351
13352 2008-07-24 Andreas Schwab <schwab@suse.de>
13353
13354 * fileio.c (Finsert_file_contents): Properly adjust undo list
13355 after format conversion.
13356
13357 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13358
13359 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13360 (menu_nav_ended): Remove.
13361 (create_menus): Remove signal connect for menu_nav_ended.
13362 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13363 create_menus.
13364 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13365
13366 2008-07-23 Jason Rumney <jasonr@gnu.org>
13367
13368 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13369 with opened font.
13370 (w32font_open): Set font type to gdi.
13371
13372 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13373
13374 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13375
13376 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13377 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13378 defines it.
13379 * unexec.c (ADDR_CORRECT): Define unconditionally.
13380
13381 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13382
13383 * unexec.c: Remove code depending on !COFF and USG, the file is
13384 not used for such systems.
13385
13386 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13387 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13388 (LD_SWITCH_SYSTEM_1): Remove, update users.
13389
13390 * s/darwin.h (DATA_END):
13391 * m/intel386.h (DATA_END):
13392 * m/ibmrs6000.h (DATA_END):
13393 * m/alpha.h (DATA_END): Remove, unused.
13394
13395 * config.in: Regenerate.
13396 * s/ms-w32.h (subprocesses): Define unconditionally.
13397 * s/template.h (subprocesses): Update comment.
13398 * s/vms.h (subprocesses):
13399 * s/usg5-4.h (subprocesses):
13400 * s/hpux10-20.h (subprocesses):
13401 * s/gnu-linux.h (subprocesses):
13402 * s/cygwin.h (subprocesses):
13403 * s/bsd-common.h (subprocesses):
13404 * s/aix4-2.h (subprocesses):
13405 * s/darwin.h (subprocesses): Do not define, defined by default now.
13406
13407 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13408 Remove all references.
13409 (temacs): Add GNUstep specific ld flags.
13410
13411 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13412 similarly to what X does.
13413
13414 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13415
13416 * nsfns.m (x-list-fonts): Remove.
13417 (syms_of_nsfns): Drop the x-list-fonts declaration.
13418 * nsterm.m: Get rid of remaining "//" comments.
13419
13420 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
13421
13422 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13423
13424 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13425 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13426 (Fns_own_selection_internal, Fx_disown_selection_internal)
13427 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13428
13429 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13430 ... */' style of docstrings. Doc fixes.
13431
13432 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13433
13434 * terminfo.c (UP, BC, PC): Undo previous change.
13435
13436 * nsfns.m: Rename ns prefixed functions/variables to the
13437 corresponding x versions. Update references.
13438
13439 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13440
13441 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13442
13443 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13444
13445 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13446 Remove forwarding functions.
13447 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13448 non-static.
13449 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13450 non-static.
13451 (ns_frame_parm_handlers): Use the new names.
13452 (syms_of_nsfns): Move to the end of file.
13453
13454 * nsterm.m (syms_of_nsterm): Move to the end of file.
13455
13456 * dispnew.c (init_display): Remove code for X10.
13457
13458 2008-07-22 Jason Rumney <jasonr@gnu.org>
13459
13460 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13461 bare drive.
13462
13463 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13464
13465 * nsterm.m (syms_of_nsterm): Remove debugging println.
13466
13467 2008-07-22 David Reitter <david.reitter@gmail.com>
13468
13469 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13470 Carbon implementation of the same functionality: execute arbitrary
13471 AppleScript code.
13472
13473 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13474
13475 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13476 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13477 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13478 (Fx_display_mm_height, Fx_display_mm_width)
13479 (Fx_display_backing_store, Fx_display_visual_class)
13480 (Fx_display_save_under, Fx_open_connection)
13481 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13482 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13483 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13484 (Fx_display_pixel_width, Fx_display_pixel_height)
13485 (Fx_display_usable_bounds, Fx_display_planes)
13486 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13487 ... */' style of docstrings.
13488
13489 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13490
13491 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13492 on this platform.
13493 (mips):
13494 * m/iris4d.h (mips): Do not define.
13495 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13496
13497 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13498
13499 * image.c:
13500 * nsfns.m:
13501 * nsselect.m:
13502 * nsterm.h:
13503 * nsterm.m: Rename ns prefixed functions/variables to the
13504 corresponding x versions. Update references.
13505
13506 * m/ibms390x.h (NO_REMAP): Do not undefine.
13507
13508 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13509
13510 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
13511
13512 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13513 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13514 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13515 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13516 (Fns_display_mm_height, Fns_display_mm_width)
13517 (Fns_display_backing_store, Fns_display_visual_class)
13518 (Fns_display_save_under, Fns_open_connection)
13519 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13520 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13521 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13522 (Fns_display_pixel_width, Fns_display_pixel_height)
13523 (Fns_display_usable_bounds, Fx_display_planes)
13524 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13525
13526 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13527
13528 * print.c (print_object): Check print_depth before searching for
13529 circularities.
13530
13531 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
13532
13533 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13534 only sprintf.
13535
13536 2008-07-21 Kenichi Handa <handa@m17n.org>
13537
13538 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13539
13540 2008-07-20 Andreas Schwab <schwab@suse.de>
13541
13542 * syntax.c (find_start_pos, find_start_value)
13543 (find_start_value_byte, find_start_begv, find_defun_start)
13544 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13545
13546 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13547
13548 * s/sol2-3.h: Insert contents of s/sol2.h.
13549 (LD_SWITCH_SYSTEM): Remove redundant definition.
13550 * s/sol2.h: Remove, unused.
13551
13552 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13553
13554 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13555
13556 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13557
13558 * Makefile.in (ns_appdir): Fix typo in find command.
13559
13560 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13561
13562 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13563
13564 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13565 added not supported anymore.
13566
13567 * s/usg5-4-2.h (LIBS_SYSTEM):
13568 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13569
13570 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13571 * s/lynxos.h (GETPGRP_NO_ARG):
13572 * s/hpux10-20.h (NO_SIOCTL_H):
13573 * s/gnu.h (GETPGRP_NO_ARG):
13574 * s/gnu-linux.h (NO_SIOCTL_H):
13575 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13576 * s/cygwin.h (GETPGRP_NO_ARG):
13577 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13578 (C_DEBUG_SWITCH): Remove duplicate definition.
13579
13580 * m/ibms390.h: Remove boilerplate comments.
13581
13582 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13583
13584 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13585 (wait_reading_process_output): Remove code for SunOS, platform not
13586 supported anymore. Use SOLARIS2 instead of sun.
13587
13588 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13589
13590 * font.c (font_open_by_name): Under NS, default lface height to zero.
13591 (font_open_for_lface): Under NS, set size based on frame fontsize.
13592 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13593 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13594
13595 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13596
13597 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13598 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13599 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13600 YES/NO.
13601 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13602 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13603 * Makefile.in (clean): Clear out build destination dir.
13604
13605 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13606
13607 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13608 xterm, xselect.
13609 * lisp.h: Remove declaration of hash_remove.
13610 * nsgui.h: Remove redefinitions of hash_remove.
13611 * fns.c (hash_remove): Rename to hash_remove_from_table.
13612
13613 2008-07-19 Seiji Zenitani <zenitani@mac.com>
13614
13615 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13616 strdup() the family UTF8String before modifying it.
13617
13618 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13619
13620 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13621 NS_FACE_BACKGROUND with 0 instead of nil.
13622 * nsfont.m (nsfont_draw): Same.
13623
13624 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
13625
13626 * nsfns.m (ns_set_background_color): Fix crash.
13627
13628 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
13629
13630 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13631
13632 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13633
13634 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13635
13636 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13637
13638 * gtkutil.c: Include <config.h> instead of "config.h".
13639
13640 * lisp.h (Foverlay_buffer): Add EXFUN.
13641
13642 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13643 child process to complete child_setup. Undo 2005-09-21 change.
13644
13645 * s/darwin.h: Mention setsid after vfork.
13646
13647 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13648
13649 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13650 Depend on macgui.h.
13651
13652 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13653 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13654
13655 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13656 and f19.
13657 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13658
13659 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13660 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13661 Remove enumerators.
13662
13663 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13664 Check if FACE_FROM_ID returns NULL.
13665
13666 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13667
13668 * w32inevt.c (change_frame_size): Remove extern declaration.
13669 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13670 change_frame_size.
13671
13672 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13673
13674 * getloadavg.c: Revert last change (2008-07-15).
13675
13676 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13677
13678 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
13679 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
13680 from configure.
13681
13682 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13683
13684 * s/sol2.h:
13685 * s/sol2-4.h: Reorganize conditionals.
13686
13687 * ecrt0.c: Remove code depending on m68000, not used anymore.
13688
13689 * fns.c (hash_remove): Make static.
13690 * lisp.h (hash_remove): Don't prototype.
13691
13692 * m/ibmrs6000.h:
13693 * m/ibms390x.h:
13694 * m/macppc.h: Remove boilerplate comments.
13695
13696 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13697 Solaris, which does not need them.
13698
13699 * m/vax.h: Remove comments about unsupported systems.
13700
13701 * s/darwin.h: Reorganize ifdefs.
13702
13703 2008-07-17 Andreas Schwab <schwab@suse.de>
13704
13705 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13706
13707 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13708
13709 Use SDATA. Follow coding convention of placing operators at
13710 beginning of next line rather than end of previous line, and placing
13711 spaces around infix operators.
13712
13713 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13714 in case it was defined already.
13715 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13716 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13717 ns_default.
13718 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13719 Lisp_Objects.
13720 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13721 (ns_defined_color, ns_color_to_lisp): Declare.
13722 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13723 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13724 it's accepted even with USE_LISP_UNION_TYPE.
13725 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13726 (update_frame_tool_bar): Remove apparently obsolete tests for
13727 non-integerness of f->tool_bar_lines.
13728 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13729 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13730 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13731 (nsfont_open): Don't confuse NULL for Qnil.
13732 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13733 * menu.h (find_and_call_menu_selection):
13734 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13735 (find_and_return_menu_selection): Always return something.
13736 * frame.h: Include dispextern.h for Display_Info.
13737 (display_x_get_resource): Declare.
13738
13739 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13740
13741 * syntax.c: Remove stdio.h include accidentally introduced in
13742 Emacs.app commit.
13743 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13744 NS_IMPL_COCOA.
13745 * keyboard.c (handle_async_input, input_available_signal): Remove
13746 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13747
13748 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13749
13750 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13751 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13752 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13753 Use SDATA.
13754
13755 * keymap.c: Remove all NS-specific code.
13756 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13757 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13758 where_is_preferred_modifier, return a different value depending on how
13759 preferred is the binding.
13760 (where_is_internal): Adjust accordingly.
13761 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13762 Adjust to new preferred_sequence_p.
13763 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13764 * keyboard.c (parse_solitary_modifier): Not static any more.
13765 * keyboard.h (parse_solitary_modifier): Declare.
13766
13767 2008-07-16 Andreas Schwab <schwab@suse.de>
13768
13769 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13770 of easymenu.
13771
13772 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13773
13774 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13775 that we don't move off the line.
13776
13777 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13778
13779 * keyboard.c (Qsuper): Remove.
13780 (parse_menu_item): Don't call where_is_internal specially for NS.
13781
13782 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13783
13784 * s/gnu-linux.h: Remove boilerplate comments.
13785
13786 * m/alpha.h (__ELF__): Consolidate conditions.
13787
13788 * m/m68k.h (linux): Use GNU_LINUX instead.
13789 Remove boilerplate comments.
13790
13791 * m/intel386.h: Undo refactoring from previous change.
13792 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13793 too, remove dead code.
13794 (linux): Use GNU_LINUX instead.
13795
13796 2008-07-16 Jason Rumney <jasonr@gnu.org>
13797
13798 * w32gui.h: Repeat 26 June changes lost by last change.
13799
13800 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13801
13802 * systty.h: Remove code for Aix on 386, unsupported platform.
13803
13804 * s/ms-w32.h: Remove boilerplate comments.
13805 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13806
13807 * s/gnu-linux.h (TERM): Remove support.
13808 (HAVE_SYSVIPC): Remove, unused.
13809 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13810 for this system.
13811
13812 * process.c: Remove support for IRIS, unused.
13813 Remove support for TERM, not relevant anymore.
13814
13815 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13816 used with the definition.
13817
13818 * s/aix4-2.h (static): Do not undef.
13819
13820 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13821 only used on Aix.
13822 (HAVE_SYSVIPC): Remove, unused.
13823
13824 * m/hp800.h (CANNOT_DUMP): Do not undef.
13825
13826 * m/alpha.h: Fix comment.
13827
13828 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13829 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13830 used by this configuration.
13831 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13832 * unexec.c: Remove code depending on HPUX and
13833 USG_SHARED_LIBRARIES, not used with this file. Remove code
13834 depending on IRIS, unused. Remove if 0-ed code.
13835
13836 * s/template.h: Remove comments about static.
13837
13838 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13839 Remove if 0-ed code.
13840 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13841 were the same as the default.
13842 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13843 Remove boilerplate comments.
13844 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13845 (HAVE_SYSVIPC): Remove, unused.
13846 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13847
13848 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13849 Remove boilerplate comments.
13850 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13851 Remove boilerplate comments.
13852 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13853 Remove boilerplate comments.
13854 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13855
13856 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13857 USG systems which do not use DATA_SEG_BITS.
13858 Refactor code. Remove boilerplate comments.
13859
13860 * m/ibms390.h:
13861 * m/m68k.h:
13862 * s/bsd-common.h:
13863 * s/cygwin.h:
13864 * s/darwin.h:
13865 * s/freebsd.h:
13866 * s/gnu.h:
13867 * s/msdos.h: Remove boilerplate comments.
13868
13869 * m/iris4d.h: Remove boilerplate comments and code for systems that
13870 do not use this file.
13871 (IRIS_4D): Remove, unused.
13872
13873 * m/mips.h: Remove boilerplate comments and code for systems that
13874 do not use this file.
13875 (SIGN_EXTEND_CHAR):
13876 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13877 * unexmips.c: Remove file, unused.
13878
13879 * editfns.c (Fuser_full_name): Replace the only use of
13880 USER_FULL_NAME with its value.
13881 * config.in: Regenerate.
13882
13883 2008-07-16 David Reitter <david.reitter@gmail.com>
13884
13885 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13886 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13887
13888 2008-07-16 Glenn Morris <rgm@gnu.org>
13889
13890 * emacs.c (system-type): Doc fix.
13891
13892 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13893
13894 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13895 If the cache doesn't work, let's fix it, rather than work around it.
13896
13897 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13898
13899 * Makefile.in: Correct additions for nsfont.o in last commit.
13900 * nsfont.m: New file (forgot last commit).
13901
13902 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13903
13904 * callproc.c (set_initial_environment): Initialize
13905 Vprocess_environment under CANNOT_DUMP (fixes crash when
13906 batch-compiling for bootstrap).
13907
13908 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13909 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13910
13911 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13912 CANNOT_DUMP case -- fix crash due to different init order.
13913
13914 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13915
13916 Changes and additions for NeXTstep windowing system (Cocoa and
13917 GNUstep) support.
13918
13919 * Makefile.in:
13920 * config.in: Support defines and build commands for NS port.
13921 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13922 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13923 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13924 windowing.
13925 (struct face): Add synth_ital field.
13926 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13927 (init_display): Initialize Vinitial_window_system to "ns" when so
13928 compiled.
13929 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13930 (display_arg): Use under NS.
13931 (main): Under NS, allocate autorelease pool and handle command line
13932 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13933 (standard_args): Add NS-specific args.
13934 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13935 * font.c (DEFAULT_ENCODING): New variable.
13936 (font_find_for_lface): Use it.
13937 (syms_of_font): Load syms_of_nsfont under NS.
13938 * font.h: Declare nsfont_driver when compiled under NS.
13939 * fontset.c: When compiling under NS, include nsterm.h.
13940 (fontset_from_font): Autoconstruct fontset under NS.
13941 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13942 symbol, document and use it.
13943 (do_switch_frame): When for_deletion under Cocoa, add
13944 Fraise_frame(Qnil).
13945 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13946 (x_get_arg): Allow "yes" and "no" as boolean values.
13947 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13948 Qright under Cocoa.
13949 (focus-follows-mouse): Default to 0 under NS.
13950 * frame.h (enum output_method): Add output_ns.
13951 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13952 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13953 (FRAME_WINDOW_P): NS-specific definition.
13954 * fringe.c (max_used_fringe_bitmap): Make public.
13955 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13956 (getloadavg): Use NeXT code under descendant OS's.
13957 * image.c (includes and header section, x_create_bitmap_from_data)
13958 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13959 (image_background_transparent, x_clear_image_1)
13960 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13961 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13962 (x_to_xcolors, x_from_xcolors, x_disable_image)
13963 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13964 other GUIs, including XPM support using code originally written for
13965 Carbon GUI.
13966 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13967 using NS API.
13968 (image_ascent): Use font metrics macros instead of direct struct field
13969 access.
13970 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13971 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13972 Also, handle NS as GTK for menu bar purposes.
13973 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13974 toolkit where they differ.
13975 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13976 use cachelist, still needed under NS.
13977 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13978 (struct widget_value): Define it here for menu.c.
13979 * keymap.c (includes): Include modifier internals.
13980 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13981 NS.
13982 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13983 support for preferring sequences using certain modifiers, specified by
13984 the FIRSTONLY argument.
13985 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13986 under NS GNUstep implementation.
13987 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13988 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13989 * menu.c: Include nsterm.h under NS.
13990 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13991 (free_menubar_widget_tree_value, update_submenu_strings)
13992 (find_and_call_menu_selection): Treat NS as X and NT.
13993 (find_and_return_menu_selection): New function, used for popup menus.
13994 * nsgui.h:
13995 * nsterm.h:
13996 * nsfns.m:
13997 * nsimage.m:
13998 * nsmenu.m:
13999 * nsselect.m:
14000 * nsterm.m: New files.
14001 * process.c (wait_reading_process_output): Under NS, call ns_select()
14002 instead of plain select().
14003 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14004 beginning of buffer.
14005 * sysselect.h (init_process): Rename when compiling under Cocoa to
14006 avoid name conflict.
14007 * termhooks.h (display_info): Add ns_display_info to union.
14008 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14009 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14010 COCOA environment.
14011 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14012 unexec() signature. (Note, this will dump, but the resulting file
14013 crashes; unexosx is used instead; keeping around for reference and
14014 possible aid in getting dump working under GNUstep.)
14015 * w32gui.h (button_type, widget_value): Remove definitions (now in
14016 keyboard.h).
14017 * window.c: Include nsterm.h when compiling under NS.
14018 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14019 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14020 other GUI windowing systems.
14021 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14022 GTK.
14023 (x_consider_frame_title): Under NS, set icon type and frame
14024 modified-state indicator; use ns_set_name_as_filename() when using
14025 formatted title.
14026 (update_window_cursor): Make public when compiling under NS.
14027 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14028 (hourglass_atimer, Vhourglass_delay
14029 * xfaces.c (header section, init_frame_faces, clear_font_table)
14030 (defined_color, unload_color, x_face_list_fonts)
14031 (prepare_face_for_display): Add NS support parallel to other GUIs.
14032 Emulate GCs like other non-X GUIs.
14033 (split_font_name): Don't lowercase font name under NS.
14034 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14035 under NS.
14036 * s/darwin.h: Add support for compilation under NS.
14037
14038 2008-07-15 Jason Rumney <jasonr@gnu.org>
14039
14040 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14041 (w32_show_hourglass): Rename from show_hourglass.
14042 (w32_hide_hourglass): Rename from hide_hourglass.
14043 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14044 (Vhourglass_delay): Declare extern.
14045 (hourglass_started): Remove.
14046
14047 * xdisp.c (Vhourglass_delay): Remove static.
14048 (hourglass_started, start_hourglass, cancel_hourglass):
14049 Don't include these versions on WINDOWSNT.
14050
14051 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14052
14053 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14054 variables (formerly in xfns.c).
14055 (show_hourglass, hide_hourglass): New prototypes (same).
14056 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14057 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14058 in xfns.c).
14059 (syms_of_xdisp): Declare/initialize display-hourglass,
14060 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14061 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14062 formerly in xfns.c.
14063 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14064 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14065 (start_hourglass, cancel_hourglass): Remove.
14066 (show_hourglass, hide_hourglass): Remove prototypes and static
14067 modifiers.
14068 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14069 hourglass_atimer, hourglass_shown_p declaration/initialization.
14070 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14071 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14072 (start_hourglass, cancel_hourglass): Remove.
14073 (show_hourglass, hide_hourglass): Remove prototypes and static
14074 modifiers.
14075 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14076 hourglass_atimer, hourglass_shown_p declaration/initialization.
14077 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14078 (DEFAULT_HOURGLASS_DELAY): Remove.
14079 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14080 hourglass_shown_p declaration/initialization.
14081
14082 2008-07-14 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32fns.c (w32_get_arg): Remove wrapper function.
14085 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14086 directly.
14087 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14088
14089 2008-07-14 Kenichi Handa <handa@m17n.org>
14090
14091 * xfont.c (xfont_open): Add workaround for X's bug.
14092
14093 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14094
14095 * fontset.c: Include <stdio.h> unconditionally.
14096
14097 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
14098
14099 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14100 for filtering.
14101
14102 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14103
14104 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14105
14106 * m/macppc.h:
14107 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14108
14109 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
14110 (SPECIAL_EMACS_INT):
14111 * m/ia64.h (SPECIAL_EMACS_INT):
14112 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14113 * s/gnu.h (NLIST_STRUCT):
14114 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14115 * s/gnu-linux.h (LINUX):
14116 * s/msdos.h (HAVE_FACES):
14117 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14118
14119 * systty.h:
14120 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14121 anymore.
14122
14123 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14124
14125 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14126 always defined as int.
14127
14128 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14129 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14130 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14131 * s/freebsd.h (HAVE_WAIT_HEADER):
14132 * s/bsd-common.h (HAVE_UNION_WAIT):
14133 * s/aix4-2.h (HAVE_WAIT_HEADER):
14134 * m/mips.h (HAVE_UNION_WAIT):
14135 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14136 (COFF, static): Do not define, they are undefined later in the file.
14137
14138 * process.c (update_status): Don't use a union.
14139 (status_convert):
14140 (sigchld_handler): Use int instead of WAITTYPE.
14141
14142 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
14143
14144 * indent.c (Fvertical_motion): Restore hscroll before moving to
14145 goal column.
14146
14147 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14148
14149 * lisp.h: Remove left over code.
14150
14151 2008-07-11 Andreas Schwab <schwab@suse.de>
14152
14153 * lisp.h: Fix logic in last change.
14154
14155 * menu.h: New file.
14156 * menu.c: Include it.
14157 * xmenu.c: Likewise.
14158 * Makefile.in: Update dependencies.
14159
14160 2008-07-11 Kenichi Handa <handa@m17n.org>
14161
14162 * fontset.c (fontset_from_font): Cancel the previous change.
14163
14164 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14165
14166 * lisp.h:
14167 * w32heap.c:
14168 * emacs.c:
14169 * alloc.c: Replace all references of NO_UNION_TYPE with
14170 USE_LISP_UNION_TYPE.
14171
14172 * m/xtensa.h (NO_UNION_TYPE):
14173 * m/vax.h (NO_UNION_TYPE):
14174 * m/template.h (NO_UNION_TYPE):
14175 * m/sparc.h (NO_UNION_TYPE):
14176 * m/mips.h (NO_UNION_TYPE):
14177 * m/macppc.h (NO_UNION_TYPE):
14178 * m/m68k.h (NO_UNION_TYPE):
14179 * m/iris4d.h (NO_UNION_TYPE):
14180 * m/intel386.h (NO_UNION_TYPE):
14181 * m/ibms390x.h (NO_UNION_TYPE):
14182 * m/ibms390.h (NO_UNION_TYPE):
14183 * m/ibmrs6000.h (NO_UNION_TYPE):
14184 * m/ia64.h (NO_UNION_TYPE):
14185 * m/hp800.h (NO_UNION_TYPE):
14186 * m/arm.h (NO_UNION_TYPE):
14187 * m/amdx86-64.h (NO_UNION_TYPE):
14188 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14189 defining it the same.
14190
14191 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
14192
14193 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14194
14195 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14196
14197 * fileio.c:
14198 * sysdep.c:
14199 * systty.h:
14200 * m/ibmrs6000.h:
14201 * m/iris4d.h:
14202 * s/aix4-2.h:
14203 * s/freebsd.h:
14204 * s/gnu-linux.h:
14205 * s/hpux10-20.h:
14206 * s/hpux11.h:
14207 * s/netbsd.h:
14208 * s/sol2-3.h:
14209 * s/sol2-4.h:
14210 * s/sol2.h:
14211 * s/usg5-4.h:
14212 * s/vms.h: Remove references to unused variables.
14213
14214 2008-07-10 Andreas Schwab <schwab@suse.de>
14215
14216 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14217 pattern before matching the generic family.
14218
14219 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14220
14221 * unexec.c:
14222 * s/vms.h:
14223 * s/usg5-4-2.h:
14224 * s/sol2-5.h:
14225 * s/freebsd.h:
14226 * s/darwin.h: Remove dead code.
14227
14228 * m/template.h:
14229 * m/sparc.h:
14230 * m/mips.h:
14231 * m/m68k.h:
14232 * m/iris4d.h:
14233 * m/intel386.h:
14234 * m/ibms390x.h:
14235 * m/ibms390.h:
14236 * m/ia64.h:
14237 * m/hp800.h:
14238 * m/arm.h:
14239 * m/amdx86-64.h: Remove dead code and references to unused
14240 and compiler defined symbols.
14241
14242 * unexmips.c:
14243 * unexelf.c: Remove references to desupported systems.
14244
14245 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14246
14247 * m/powermac.h: Remove boilerplate comments.
14248 (NO_REMAP): Remove unused definition.
14249
14250 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14251 define them.
14252
14253 2008-07-10 Kenichi Handa <handa@m17n.org>
14254
14255 * xfont.c (xfont_open): Log the reason of failure.
14256
14257 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14258
14259 * fontset.c (fontset_get_font_group):
14260 * font.c (font_check_otf): Specify argument types.
14261
14262 2008-07-09 Kenichi Handa <handa@m17n.org>
14263
14264 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14265 non-ASCII char is found.
14266
14267 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14268 (reorder_font_vector): Change the arg preferred_family to font.
14269 Prefer the spec matching with font.
14270 (fontset_get_font_group): New function.
14271 (fontset_find_font): Change the format of an element of a realized
14272 fontset. Use fontset_get_font_group.
14273 (fontset_font): Try the current fontset, the default fontset, the
14274 fallbacks of the current fontset, and the fallbacks of the default
14275 fontset in this order.
14276 (face_for_char): Delete the shortcut to use the current font.
14277 (fontset_from_font): Don't set fonts for Latin in the fontset.
14278
14279 * font.h (font_make_object, font_match_p): Adjust prototypes.
14280
14281 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14282
14283 * font.c (font_make_object): New arg entity and pixelsize.
14284 (font_check_otf_features, font_check_otf): New functions.
14285 (font_match_p): Check :lang, :script, and :otf properties.
14286
14287 * xfont.c (xfont_open): Adjust it for the change of
14288 font_make_object.
14289 (xfont_text_extents): Fix initial setting of metrics.
14290
14291 * ftfont.c (struct ftfont_info): New member index, delete member
14292 fc_charset_idx. Make the member order compatible with struct
14293 xftfont_info.
14294 (fc_charset_table): Change charset names to registry names.
14295 (ftfont_pattern_entity): Delete the args registry and
14296 fc_charset_idx. Change the value of :font-entity property
14297 to (FONTNAME . INDEX). Always set :registry property to
14298 `iso10646-1'.
14299 (struct ftfont_cache_data): New struct.
14300 (ftfont_lookup_cache): New arg for_face.
14301 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14302 (ftfont_driver): Set the member otf_capability.
14303 (ftfont_get_charset): Adjust it for the change of
14304 fc_charset_table.
14305 (OTF_TAG_SYM): New macro.
14306 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14307 for the change of fc_charset_table.
14308 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14309 ftfont_pattern_entity. Add FC_INDEX to objset.
14310 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14311 and ftfont_pattern_entity.
14312 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14313 font_make_object, struct ftfont_info.
14314 (ftfont_has_char): Use ftfont_get_fc_charset.
14315 (ftfont_otf_features, ftfont_otf_capability): New functions.
14316 (ftfont_shape): Use ftfont_get_otf.
14317 (ftfont_text_extents): Fix initial setting of metrics.
14318
14319 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14320 member order compatible with struct ftfont_info.
14321 (xftfont_open): Add FC_CHARSET to the pattern. Set
14322 xftfont_info->ft_size. Don't unlock the face. Check BDF
14323 properties if appropriate.
14324 (xftfont_close): Unlock the face.
14325 (xftfont_anchor_point, xftfont_shape): Deleted.
14326 (syms_of_xftfont): Don't set members anchor_point and shape of
14327 xftfont_driver.
14328
14329 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14330 font_make_object.
14331
14332 * w32font.c (w32font_open): Adjust it for the change of
14333 font_make_object.
14334 (w32font_open_internal): Don't set properties of font_object here.
14335
14336 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
14337
14338 * macfns.c (x_create_tip_frame):
14339 * w32fns.c (x_create_tip_frame):
14340 * xfns.c (x_create_tip_frame): Pass parameter argument to
14341 face-set-after-frame-default.
14342
14343 * xfaces.c (Finternal_merge_in_global_face): Save merged
14344 attributes for the default face back into the face vector.
14345
14346 2008-07-08 Andreas Schwab <schwab@suse.de>
14347
14348 * fontset.h: Declare fontset_from_font. Don't declare
14349 new_fontset_from_font and fontset_from_font_name.
14350 * xterm.c: Include "fontset.h".
14351 * Makefile.in (xterm.o): Update dependencies.
14352
14353 2008-07-08 Glenn Morris <rgm@gnu.org>
14354
14355 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14356 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14357
14358 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
14359
14360 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14361 (x_set_frame_parameters): Don't bind it.
14362
14363 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
14364
14365 * w32fns.c (map_w32_filename): Declare extern.
14366
14367 2008-07-07 Jason Rumney <jasonr@gnu.org>
14368
14369 * w32term.c (WS_EX_LAYERED): Define if not already.
14370
14371 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
14372
14373 * xfaces.c (set_font_frame_param): Don't try to set the font
14374 parameter if it is still unspecified in the lface.
14375
14376 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14377
14378 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14379 face if it didn't already exist.
14380
14381 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14382
14383 2008-07-05 Andreas Schwab <schwab@suse.de>
14384
14385 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14386
14387 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14388
14389 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14390 word-wrapping.
14391 (IT_DISPLAYING_WHITESPACE): New macro.
14392 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14393 when word-wrapping. Simplify word-wrapping logic. Use correct
14394 pixel positions when saving copies of the iterator.
14395 (display_line): Use proper wrap point if the last character on a
14396 line was preceded by whitespace.
14397
14398 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14399
14400 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14401
14402 2008-07-04 Kenichi Handa <handa@m17n.org>
14403
14404 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14405
14406 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14407
14408 2008-07-02 Jason Rumney <jasonr@gnu.org>
14409
14410 * xfns.c (syms_of_xfns): Only define x-select-font when both
14411 HAVE_FREETYPE and USE_GTK.
14412
14413 * xdisp.c (next_element_from_display_vector): Move assignment out
14414 of if statement.
14415
14416 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14417
14418 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14419
14420 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14421 (syms_of_fileio): Initialize and export them.
14422 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14423
14424 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14425 (Fsystem_move_file_to_trash): New function.
14426 (syms_of_w32fns): Export it to lisp.
14427
14428 2008-07-01 Jason Rumney <jasonr@gnu.org>
14429
14430 * w32font.c (w32font_text_extents): Don't count overhang as part
14431 of width.
14432
14433 2008-06-30 Miles Bader <miles@gnu.org>
14434
14435 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14436 Add `avoid_cursor_p' field.
14437
14438 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14439 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14440 (append_glyph, append_composite_glyph, produce_image_glyph)
14441 (append_stretch_glyph): Initialize avoid_cursor_p.
14442 (get_it_property): Rename from `get_line_height_property'.
14443 (x_produce_glyphs): Use get_it_property.
14444 (handle_line_prefix, push_display_prop): New functions.
14445 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14446 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14447 New variables.
14448 (syms_of_xdisp): Initialize them.
14449
14450 2008-06-30 Kenichi Handa <handa@m17n.org>
14451
14452 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14453 XftDefaultSubstitute (they are called in XftFontMatch).
14454 (xftfont_open): Fix args to ftfont_font_format.
14455
14456 * ftfont.c (fc_charset_table): New member lang.
14457 (ftfont_resolve_generic_family): New arg pattern.
14458 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
14459 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14460 (ftfont_open): Fix args to ftfont_font_format.
14461 (ftfont_font_format): New arg filename.
14462
14463 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
14464
14465 * xfaces.c (Finternal_merge_in_global_face): If default face was
14466 modified, realize it again. Update the font face attribute.
14467
14468 2008-06-29 Jason Rumney <jasonr@gnu.org>
14469
14470 * w32term.c (x_set_frame_alpha): Fix logic.
14471
14472 2008-06-29 Kenichi Handa <handa@m17n.org>
14473
14474 * fontset.c (Finternal_char_font): Return font-object instead of
14475 font-name.
14476
14477 * composite.c (get_composition_id): Fix the width calculation for TAB.
14478
14479 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14480
14481 * indent.c (Fvertical_motion): Properly handle float column arg.
14482
14483 2008-06-28 Jason Rumney <jasonr@gnu.org>
14484
14485 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14486 (pfnSetLayeredWindowAttributes): New function pointer.
14487 (w32_initialize): Initialize it when supported.
14488 (x_set_frame_alpha): New function.
14489
14490 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14491 (w32_frame_parm_handlers): Set alpha handler.
14492
14493 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14494
14495 2008-06-27 Jason Rumney <jasonr@gnu.org>
14496
14497 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14498 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14499 (w32_to_x_charset, x_to_w32_charset)
14500 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14501 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14502 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14503 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14504 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14505 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14506 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14507 (Qw32_charset_unicode): Remove.
14508 (syms_of_w32fns): Update for above changes.
14509
14510 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14511 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14512 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14513 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14514 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14515 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14516 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14517 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14518 (syms_of_w32font): Update for above changes.
14519
14520 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14521
14522 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14523 removed #if.
14524 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14525
14526 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14527 Eli Zaretskii <eliz@gnu.org>
14528
14529 * makefile.w32-in (LOCAL_FLAGS):
14530 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14531
14532 * sysdep.c (_spawnlp, _getpid):
14533 Declare with explicit _cdecl instead of _CRTAPI1.
14534
14535 * editfns.c (Fget_internal_run_time):
14536 Check for WINDOWSNT with #ifdef, not #if.
14537
14538 2008-06-26 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14541
14542 * w32term.c (x_draw_glyph_string_foreground)
14543 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14544 Use FONT_HANDLE macro.
14545 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14546
14547 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14548 (uniscribe_encode_char): Use FONT_HANDLE macro.
14549
14550 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14551 (w32font_text_extents): Use precast w32_font.
14552 (w32font_close): Free cached metrics.
14553 (w32font_open_internal): Allocate space for name on stack.
14554
14555 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
14556
14557 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14558
14559 2008-06-26 Jason Rumney <jasonr@gnu.org>
14560
14561 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14562 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14563
14564 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14565
14566 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14567
14568 2008-06-26 Jason Rumney <jasonr@gnu.org>
14569
14570 * w32bdf.c, w32bdf.h: Remove obsolete files.
14571
14572 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14573
14574 * w32gui.h: Don't include w32bdf.h.
14575 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14576 Remove obsolete font support.
14577
14578 * w32font.h (struct w32font_info): Remove compat_w32_font.
14579 Add hfont member.
14580 (FONT_COMPAT): Remove obsolete macro.
14581
14582 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14583 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14584 (w32font_open_internal): Remove compat code. Set new hfont member.
14585 (Fx_select_font): Use new hfont member.
14586
14587 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14588 (uniscribe_encode_char): Use new hfont member.
14589
14590 * w32term.c (x_draw_glyph_string_foreground)
14591 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14592 (x_draw_glyph_string): Use metrics in w32font_info.
14593
14594 2008-06-26 Kenichi Handa <handa@m17n.org>
14595
14596 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14597
14598 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14599
14600 * unexnext.c:
14601 * m/ews4800.h:
14602 * m/hp9000s300.h:
14603 * m/ibm370aix.h:
14604 * m/mips-siemens.h:
14605 * m/ncr386.h:
14606 * m/next.h:
14607 * m/pmax.h:
14608 * m/powerpcle.h:
14609 * m/tandem-s2.h:
14610 * s/386bsd.h:
14611 * s/bsd386.h:
14612 * s/bsd4-1.h:
14613 * s/bsd4-2.h:
14614 * s/bsdos2-1.h:
14615 * s/bsdos2.h:
14616 * s/bsdos3.h:
14617 * s/bsdos4.h:
14618 * s/nextstep.h:
14619 * s/ultrix4-3.h:
14620 * s/usg5-0.h:
14621 * s/usg5-2-2.h:
14622 * s/usg5-2.h:
14623 * s/usg5-4-3.h:
14624 * s/ux4800.h:
14625 * s/uxpds.h:
14626 * s/uxpv.h: Remove support for obsolete systems.
14627 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
14628 Remove, insert contents in s/hpux10-20.h.
14629 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14630 Remove, insert contents in s/aix4-2.h.
14631 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14632 * s/bsd4-3.h: Rename to ...
14633 * s/bsd-common.h: ... this.
14634 * data.c:
14635 * doc.c:
14636 * ecrt0.c:
14637 * emacs.c:
14638 * fileio.c:
14639 * floatfns.c:
14640 * keyboard.c:
14641 * mem-limits.h:
14642 * print.c:
14643 * process.c:
14644 * sysdep.c:
14645 * syssignal.h:
14646 * systty.h:
14647 * syswait.h:
14648 * term.c:
14649 * unexec.c:
14650 * unexelf.c:
14651 * unexhp9k800.c:
14652 * m/hp800.h:
14653 * m/ibmrs6000.h:
14654 * m/mips.h:
14655 * m/vax.h:
14656 * s/darwin.h:
14657 * s/freebsd.h:
14658 * s/gnu.h:
14659 * s/ms-w32.h:
14660 * s/msdos.h:
14661 * s/netbsd.h:
14662 * s/template.h: Remove references to obsolete variables.
14663
14664 * Makefile.in: Add dependencies for all unexec files.
14665 (admindir): Remove unused variable.
14666 (UNEXEC_SRC): Remove references.
14667
14668 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
14669
14670 * xfns.c (x_default_font_parameter): If Xft is available, first
14671 try Monospace-12 for the default font.
14672
14673 2008-06-25 Jason Rumney <jasonr@gnu.org>
14674
14675 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14676
14677 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14678
14679 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14680
14681 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14682
14683 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
14684
14685 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14686 <scroll-conservatively>: Fix typo in docstring.
14687
14688 * xselect.c (Fx_send_client_event): Doc fix.
14689
14690 2008-06-25 Kenichi Handa <handa@m17n.org>
14691
14692 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14693
14694 * font.c (font_parse_fcname): Remove unused variables.
14695 (font_sort_entites): Delete the arg SPEC. Caller changed.
14696 Fix for the case of ! best_only.
14697 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14698
14699 * lisp.h (Fstring_to_unibyte): EXFUN it.
14700
14701 * character.h (str_to_unibyte): Extern it.
14702
14703 * character.c (str_to_unibyte): New function.
14704
14705 * fns.c (Fstring_to_unibyte): New function.
14706 (syms_of_fns): Defsubr it.
14707
14708 2008-06-24 Kenichi Handa <handa@m17n.org>
14709
14710 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14711 DPI too.
14712 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14713
14714 2008-06-24 Andreas Schwab <schwab@suse.de>
14715
14716 * Makefile.in (${lispsource}loaddefs.el): Rename from
14717 ../lisp/loaddefs.el.
14718 (bootstrap-clean): Do what distclean does but don't remove
14719 Makefile.
14720 (distclean): Depend on bootstrap-clean and remove Makefile.
14721
14722 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14723
14724 * buffer.h (struct buffer): New member word_wrap.
14725
14726 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14727 word-wrap.
14728 (init_buffer_once): Initialize them.
14729
14730 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14731 line_wrap enum possessing three possible values.
14732
14733 * termopts.h: Replace truncate_partial_width_windows with
14734 Vtruncate_partial_width_windows.
14735
14736 * dispnew.c (direct_output_for_insert): Avoid direct output when
14737 inserting a space with word wrap on.
14738
14739 * indent.c (compute_motion): Obey integer values of
14740 truncate-partial-width-windows.
14741
14742 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14743 replacing truncate_partial_width_windows.
14744 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14745 truncate only if the window width is below that integer.
14746 (start_display, resize_mini_window, produce_stretch_glyph)
14747 (display_string, move_it_in_display_line_to): Use line_wrap.
14748 (back_to_previous_visible_line_start, reseat_1): Reset
14749 string_from_display_prop_p.
14750 (display_line): Extend default face to end of line when wrapping.
14751
14752 2008-06-24 Kim F. Storm <storm@cua.dk>
14753
14754 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14755 to wrap continued lines at word boundaries.
14756
14757 2008-06-24 Jason Rumney <jasonr@gnu.org>
14758
14759 * font.c (Ffont_face_attributes): Multiply pixel size before point
14760 conversion to avoid multiplying rounding error.
14761
14762 2008-06-23 Jason Rumney <jasonr@gnu.org>
14763
14764 * w32term.c (x_draw_glyph_string_background)
14765 (x_draw_glyph_string): Remove old bdf font code.
14766
14767 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14768
14769 2008-06-22 Kenichi Handa <handa@m17n.org>
14770
14771 * font.c (font_find_for_lface): Try the adstyle specified in
14772 the property of LFACE_FONT of LFACE (if any).
14773
14774 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14775 Ryo Yoshitake <ryo@shiftmode.net>
14776
14777 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14778
14779 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14780
14781 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14782 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14783 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14784 (witness-emacs): Remove.
14785 (lisp, shortlisp): Move loaddefs.el earlier.
14786 (mostlyclean): Forget about witness-emacs.
14787
14788 2008-06-22 Glenn Morris <rgm@gnu.org>
14789
14790 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14791 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14792
14793 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14794
14795 * Makefile.in (PRECOMP): Remove.
14796 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14797 (witness-emacs): Run `compile-first'.
14798 (.el.elc): Use the new compile-onefile target.
14799
14800 2008-06-21 Kenichi Handa <handa@m17n.org>
14801
14802 * xftfont.c (xftfont_open): Handle QCembolden only when
14803 FC_EMBOLDEN is defined.
14804
14805 2008-06-21 Andreas Schwab <schwab@suse.de>
14806
14807 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14808 (.el.elc): Likewise.
14809
14810 2008-06-21 Miles Bader <miles@gnu.org>
14811
14812 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14813 build dir, not the lisp source dir.
14814
14815 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14816
14817 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14818 (bootstrapclean): Remove.
14819 (.el.elc): New rule.
14820 (PRECOMP): New var.
14821 (../lisp/subdirs.el): Remove.
14822 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14823 (witness-emacs): New target.
14824 (mostlyclean): Remove witness-emacs as well.
14825 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14826 Add witness-emacs dependency.
14827
14828 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14829
14830 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14831 defined by the font.
14832
14833 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14834
14835 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14836 (bootstrap-clean): New target that keeps TAGS around.
14837 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14838 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14839
14840 2008-06-20 Jason Rumney <jasonr@gnu.org>
14841
14842 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14843 Remove obsolete font code.
14844
14845 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14846 to determine language support.
14847
14848 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14849
14850 * sysdep.c (cfsetspeed): New fun extracted from the code.
14851 (cfmakeraw): Move before first use.
14852
14853 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14854
14855 * sysdep.c (cfmakeraw): Provide fallback implementation.
14856 (serial_configure): Provide fallback implementation of cfsetspeed.
14857
14858 2008-06-20 Kenichi Handa <handa@m17n.org>
14859
14860 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14861 the pattern.
14862
14863 * fontset.c (fontset_from_font): Copy font_spec before changing
14864 the elements.
14865
14866 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14867
14868 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14869
14870 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14871 for explicit `font' parameters.
14872
14873 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14874
14875 2008-06-19 Kenichi Handa <handa@m17n.org>
14876
14877 * frame.c: Include <ctype.h>.
14878 (x_set_font_backend): Allow spacing characters in the X resource
14879 for FontBackend.
14880
14881 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14882
14883 * w32fns.c, xfns.c (Qfont_param): New var.
14884 (syms_of_w32fns): Initialize it.
14885 (x_default_font_parameter): Record explicit `font' into
14886 `font-parameter'.
14887
14888 2008-06-18 Kenichi Handa <handa@m17n.org>
14889
14890 * font.c (font_parse_xlfd): Fix previous change.
14891 (font_parse_fcname): Don't use :fc-unknown-spec.
14892 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14893 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14894 (font_add_log): Prepend the driver name to the resulting fonts.
14895
14896 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14897 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14898 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14899
14900 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14901 (QCembolden): New variables.
14902 (syms_of_xftfont): DEFSYM them.
14903 (xftfont_open): Call XftFontMatch. Don't trust the result of
14904 XftTextExtents8 if the pixel_size is less than 5.
14905
14906 2008-06-18 Andreas Schwab <schwab@suse.de>
14907
14908 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14909 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14910
14911 2008-06-18 Jason Rumney <jasonr@gnu.org>
14912
14913 * w32font.c (w32font_list, w32font_match): Add logging.
14914
14915 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14916
14917 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14918
14919 * font.c (font_parse_fcname): Store divider characters for
14920 unknown-spec list. For known key symbols, intern using correct
14921 symbol name.
14922
14923 2008-06-17 Kenichi Handa <handa@m17n.org>
14924
14925 * xfaces.c (realize_default_face): If the frame is not on window
14926 system, set the fontset of face to nil.
14927
14928 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14929
14930 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14931
14932 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14933
14934 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14935 (build_font_name_from_vector): Delete externs.
14936
14937 * xfaces.c (struct font_name): Don't declare.
14938
14939 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14940
14941 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14942
14943 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14944
14945 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14946
14947 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14948
14949 * font.c (Ffont_spec): Fix usage in docstring.
14950 (Ffont_face_attributes): Doc fix.
14951
14952 2008-06-16 Andreas Schwab <schwab@suse.de>
14953
14954 * font.c (Ffont_face_attributes): Fix definition.
14955
14956 2008-06-16 Jason Rumney <jasonr@gnu.org>
14957
14958 * font.h (font_style_symbolic_from_value): Remove.
14959
14960 * font.c (font_style_symbolic_from_value): Remove.
14961 (font_style_symbolic): Revert to pre 2008-06-13 version.
14962
14963 * w32font.c (w32_to_fc_weight): New function.
14964 (w32font_full_name, logfont_to_fcname): Use it.
14965
14966 2008-06-16 Kenichi Handa <handa@m17n.org>
14967
14968 * font.c (font_check_object): Delete it.
14969 (font_clear_cache): Check if a font-object is alive.
14970 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14971 font-object to nil.
14972 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14973 (font_at): Don't call font_check_object.
14974 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14975
14976 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14977
14978 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14979
14980 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14981
14982 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14983
14984 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14985
14986 * font.c (font_parse_fcname): Only one decimal point.
14987 (font_unparse_fcname): Handle data in family and foundry indices
14988 as symbols, not strings.
14989 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14990
14991 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14992
14993 * font.h (font_unparse_gtkname): Add prototype.
14994
14995 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14996
14997 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14998
14999 2008-06-15 Andreas Schwab <schwab@suse.de>
15000
15001 * font.c (font_update_drivers): Fix crash when no drivers match.
15002
15003 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15004
15005 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15006 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15007
15008 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15009
15010 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15011
15012 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15013
15014 * process.c (Fserial_process_configure, Fprocess_send_eof):
15015 Use EQ to compare Lisp_Objects.
15016
15017 2008-06-13 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32fns.c (Fw32_select_font): Remove old font API function.
15020
15021 * w32font.c (logfont_to_fcname): New function.
15022 (Fx_select_font): New font dialog function compatible with
15023 GTK/fontconfig version.
15024
15025 * font.c (font_style_symbolic_from_value): New function.
15026 (font_style_symbolic): Use it.
15027
15028 * font.h (font_style_symbolic_from_value): Declare new function.
15029
15030 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
15031
15032 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15033 <font-width-table>: Fix typos in docstrings.
15034
15035 2008-06-13 Daniel Engeler <engeler@gmail.com>
15036
15037 These changes add serial port access.
15038 * process.c: Add HAVE_SERIAL.
15039 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15040 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15041 (list_processes_1, select_wrapper, Fstop_process)
15042 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15043 (status_notify): Modify to handle serial processes.
15044 [HAVE_SERIAL] (Fserial_process_configure)
15045 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15046 New functions.
15047 * process.h (struct Lisp_Process): Add `type'.
15048 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15049 New functions.
15050 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15051 serial ports.
15052 (serial_open, serial_configure): New functions.
15053 * w32.h: Add FILE_SERIAL.
15054 (struct _child_process): Add ovl_read, ovl_write.
15055
15056 2008-06-13 Kenichi Handa <handa@m17n.org>
15057
15058 * dispextern.h (enum lface_attribute_index): New member
15059 LFACE_FOUNDRY_INDEX.
15060
15061 * font.c (font_score): Delete arg alternate_families. Check only
15062 weight, slant, width, and size. Ignore the difference of alias
15063 style symbols.
15064 (font_sort_entites): Adjust for the above change. Reflect the
15065 order of font-driver to scores.
15066 (font_list_entities): Don't check alternate_familes here.
15067 (font_clear_prop): Handle foundry.
15068 (font_update_lface): Don't parse "foundry-family" form here.
15069 Handle FONT_FOUNDRY_INDEX.
15070 (font_find_for_lface): Likewise. Handle alternate families here.
15071 If registry is nil, try iso8859-1 and ascii-0.
15072 (font_open_for_lface): Pay attention to size in ENTITY.
15073 (font_open_by_name): Simplify by calling font_load_for_lface.
15074 (free_font_driver_list): Delete it.
15075 (font_update_drivers): Preserve the order of backends.
15076 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15077 of font_score and font_sort_entites.
15078 (font_update_sort_order): Likewise.
15079
15080 * xfaces.c (LFACE_FOUNDRY): New macro.
15081 (check_lface_attrs): Check foundry.
15082 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15083 (merge_face_vectors): Check foundry.
15084 (merge_face_ref): Likewise.
15085 (Finternal_set_lisp_face_attribute): Likewise.
15086 (x_update_menu_appearance): Likewise.
15087 (Finternal_get_lisp_face_attribute): Likewise.
15088 (lface_hash): Likewise.
15089 (lface_same_font_attributes_p): Likewise.
15090 (x_supports_face_attributes_p): Likewise.
15091 (tty_supports_face_attributes_p): Likewise.
15092 (Finternal_set_alternative_font_family_alist): Intern strings.
15093 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15094 (realize_default_face): Set LFACE_FOUNDRY (lface).
15095
15096 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15097 font-driver at first.
15098
15099 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15100
15101 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15102
15103 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15104
15105 2008-06-12 Jim Meyering <meyering@redhat.com>
15106
15107 Make unexec_free handle NULL the same way free does.
15108 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15109
15110 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15113 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15114 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15115 (WEAK_ALIAS): Simplify.
15116 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15117 when searching a unibyte buffer.
15118
15119 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
15120
15121 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15122
15123 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
15124
15125 * w32font.c: Include ctype.h.
15126
15127 2008-06-11 Jason Rumney <jasonr@gnu.org>
15128
15129 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15130 misreported as space.
15131 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15132 as aliases for registry iso10646-1.
15133
15134 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15135
15136 * buffer.c (clone_per_buffer_values): Skip `name'.
15137
15138 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
15139
15140 * font.c (font_parse_fcname): Fix last change; accept decimal
15141 points in font size.
15142
15143 2008-06-10 Jason Rumney <jasonr@gnu.org>
15144
15145 * w32uniscribe.c (add_opentype_font_name_to_list):
15146 Skip non unicode fonts.
15147
15148 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15149
15150 * xfns.c (Fx_font_dialog): New function.
15151
15152 * gtkutil.c (xg_dialog_response_cb): Rename from
15153 xg_file_response_callback.
15154 (pop_down_dialog): Rename from pop_down_file_dialog.
15155 (xg_get_file_name): Callers changed.
15156 (xg_get_font_name): New function.
15157
15158 * gtkutil.h (xg_get_font_name): Insert prototype.
15159
15160 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15161
15162 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15163 x_underline_minimum_display_offset.
15164 (syms_of_xdisp): Declare it here rather than in xterm.c.
15165 * dispextern.h (underline_minimum_offset): Declare it.
15166 * w32term.c (x_draw_glyph_string): Use it.
15167 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15168 (syms_of_xterm): Don't declare it any more.
15169 (x_draw_glyph_string): Adjust to the new name.
15170
15171 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
15172
15173 * xterm.c (x_underline_minimum_display_offset): New var.
15174 (x_draw_glyph_string): Use it.
15175 (syms_of_xterm): Declare it.
15176
15177 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15178
15179 * font.c (font_parse_fcname): Accept GTK-style font names too.
15180
15181 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15182
15183 * dired.c (file_name_completion): Don't return t if the match is exact
15184 but with different capitalization.
15185 * minibuf.c (Ftry_completion): Simplify.
15186
15187 * window.c (Vwindow_point_insertion_type): New var.
15188 (set_window_buffer): Use it.
15189 (syms_of_window): Init and export it to Lisp.
15190
15191 2008-06-10 Kenichi Handa <handa@m17n.org>
15192
15193 * font.h (font_intern_prop): Prototype adjusted.
15194
15195 * font.c (font_intern_prop): New arg force_symbol.
15196 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15197 Adjust for the change of font_intern_prop.
15198
15199 * ftfont.c (ftfont_pattern_entity):
15200 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15201 (w32_registry):
15202 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15203 the change of font_intern_prop.
15204
15205 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
15206
15207 * w32menu.c (digest_single_submenu): Declare extern.
15208
15209 2008-06-09 Jason Rumney <jasonr@gnu.org>
15210
15211 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15212
15213 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15214 (parse_single_submenu): Remove.
15215 (digest_single_submenu): Remove.
15216 (syms_of_w32menu): Don't initialise variables that have moved
15217 to menu.c.
15218 (set_frame_menubar): Sync with version in xmenu.c.
15219 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15220
15221 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15222 Make static again.
15223
15224 2008-06-09 Jason Rumney <jasonr@gnu.org>
15225
15226 Changes to w32 files related to the move of common menu code
15227 to menu.c on 2008-06-08 by Chong Yidong.
15228
15229 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15230 defs to w32gui.h.
15231 (single_keymap_panes, push_menu_item, push_menu_pane):
15232 Make globally visible.
15233
15234 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15235 (local_free, malloc_widget_value, free_widget_value)
15236 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15237 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15238 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15239 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15240 (menu_items, menu_items_allocated, menu_items_used)
15241 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15242 (init_menu_items, finish_menu_items, discard_menu_items)
15243 (grow_menu_items, push_submenu_start, push_submenu_end)
15244 (push_left_right_boundary, push_menu_pane, push_menu_item)
15245 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15246 (free_menubar_widget_tree_value, parse_single_submenu)
15247 (update_submenu_strings): Remove functions.
15248 (xmalloc_widget_value): Remove and declare extern.
15249
15250 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15251 (OBJ1): Build it.
15252
15253 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15254 (local_heap, local_alloc, local_free, malloc_widget_value)
15255 (free_widget_value): Define here.
15256
15257 2008-06-09 Kenichi Handa <handa@m17n.org>
15258
15259 * font.h (Qascii_0): Extern it.
15260
15261 * font.c (Qascii_0): New variable.
15262 (syms_of_font): DEFSYM it.
15263 (font_open_by_name): If the registry "iso8859-1" fails, try also
15264 "ascii-0".
15265
15266 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15267
15268 2008-06-08 Kenichi Handa <handa@m17n.org>
15269
15270 * .gdbinit (xfont): New command.
15271
15272 2008-06-08 Andreas Schwab <schwab@suse.de>
15273
15274 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15275 * Makefile.in (menu.o): Update dependencies.
15276
15277 * Makefile.in (obj): Always add menu.o.
15278 * emacs.c (main): Always call syms_of_menu.
15279 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15280
15281 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
15282
15283 * Makefile.in: Compile menu.c.
15284
15285 * lisp.h: Declare syms_of_menu.
15286
15287 * emacs.c (main): Call syms_of_menu.
15288
15289 * keyboard.h: Relocate platform-independent menu definitions from
15290 xmenu.c.
15291
15292 * menu.c: New file. Relocate platform-independent menu
15293 definitions from xmenu.c. Suggested by Adrian Robert.
15294
15295 * xmenu.c: Remove platform-independent menu definitions.
15296 (menu_items, menu_items_inuse, menu_items_allocated)
15297 (menu_items_used, menu_items_n_panes)
15298 (menu_items_submenu_depth): Move to keyboard.h.
15299 (init_menu_items, finish_menu_items, unuse_menu_items)
15300 (discard_menu_items, restore_menu_items, save_menu_items)
15301 (grow_menu_items, push_submenu_start, push_submenu_end)
15302 (push_left_right_boundary, push_menu_pane, push_menu_item)
15303 (keymap_panes, single_keymap_panes, single_menu_item)
15304 (list_of_panes, list_of_items, find_and_call_menu_selection)
15305 (xmalloc_widget_value, free_menubar_widget_value_tree)
15306 (parse_single_submenu, digest_single_submenu)
15307 (update_submenu_strings): Move to menu.c.
15308
15309 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15310
15311 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15312
15313 2008-06-06 Miles Bader <miles@gnu.org>
15314
15315 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15316 face, not frame default.
15317
15318 2008-06-05 Martin Rudalics <rudalics@gmx.at>
15319
15320 * window.c (pop_up_windows, pop_up_frames)
15321 (display_buffer_reuse_frames, Vpop_up_frame_function)
15322 (Vdisplay_buffer_function, Veven_window_heights)
15323 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15324 (Vspecial_display_function, Vsame_window_buffer_names)
15325 (Vsame_window_regexps, split_height_threshold)
15326 (Vsplit_window_preferred_function): Move those vars to window.el.
15327 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15328 (Fdisplay_buffer): Move those functions to window.el.
15329 (syms_of_window): Remove corresponding declarations.
15330 (display_buffer): New function.
15331 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15332 * dispnew.c (Flast_nonminibuf_frame): New function.
15333 * buffer.c (Fpop_to_buffer): Move to window.el.
15334
15335 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15336
15337 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15338
15339 2008-06-05 Kenichi Handa <handa@m17n.org>
15340
15341 * coding.c (detect_coding): Fix previous change.
15342 (detect_coding_system): Likewise.
15343
15344 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15345
15346 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15347
15348 * keymap.c (Vminibuffer_local_filename_must_match_map):
15349 Rename from Vminibuffer_local_must_match_filename_map.
15350 (syms_of_keymap):
15351 * minibuf.c (Fcompleting_read): Adjust accordingly.
15352 * commands.h: Rename declaration as well.
15353
15354 2008-06-05 Kenichi Handa <handa@m17n.org>
15355
15356 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15357 family name.
15358 (Ffont_put): Likewise.
15359
15360 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15361 current font-spec.
15362
15363 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15364 is unspecified.
15365
15366 * xfaces.c (realize_x_face): If the font-related face attributes
15367 are the same as those of default face, realize a new fontset from
15368 default->fontset.
15369 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15370
15371 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15372
15373 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15374 (move_it_in_display_line): New wrapper.
15375
15376 * window.c (window_scroll_pixel_based_preserve_x)
15377 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15378 (window_scroll_pixel_based, window_scroll_line_based):
15379 Use them to preserve column positions.
15380 (syms_of_window): Initialize them.
15381
15382 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15383 (HPOS . VPOS) pair.
15384
15385 * dispextern.h (move_it_in_display_line): Declare.
15386
15387 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
15388
15389 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15390 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15391 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15392
15393 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
15394
15395 * window.c (Fset_window_parameter): Doc fix.
15396 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15397
15398 2008-06-04 Joakim Verona <joakim@verona.se>
15399
15400 * window.h (struct window): Add new member window_parameters.
15401
15402 * window.c (Fwindow_parameters, Fwindow_parameter)
15403 (Fset_window_parameter): New defuns.
15404 (syms_of_window): Defsubr the new defuns.
15405 (make_window): Initialize window_parameters to nil.
15406
15407 2008-06-04 John Paul Wallington <jpw@pobox.com>
15408
15409 * eval.c (Fdefmacro): Doc fix.
15410
15411 2008-06-04 Kenichi Handa <handa@m17n.org>
15412
15413 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15414 Be sure to call setup_coding_system when we find a proper coding system.
15415 (detect_coding_system): Fix handling of coding->head_ascii.
15416
15417 2008-06-03 Andreas Schwab <schwab@suse.de>
15418
15419 * font.c (font_prop_validate_spacing): Fix last change.
15420
15421 2008-06-03 Kenichi Handa <handa@m17n.org>
15422
15423 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15424 (font_parse_fcname): Fix handling of unknown key.
15425
15426 * xfont.c (xfont_list): Try an alias.
15427
15428 * charset.c (char_charset): Return NULL if the arg charset_list is
15429 specified and C doesn't belong to any of them.
15430
15431 2008-06-02 Chip Coldwell <coldwell@redhat.com>
15432
15433 * font.c (font_pixel_size): Don't take cdr of an integer.
15434
15435 2008-06-02 Jim Meyering <meyering@redhat.com>
15436
15437 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15438 * alloc.c (xfree): Return right away for a NULL arg.
15439 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15440 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15441 * mac.c (create_apple_event_from_event_ref): Likewise.
15442 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15443 Likewise.
15444 * doprnt.c (doprnt1): Likewise.
15445 * frame.c (frame): Likewise.
15446 * keyboard.c (wipe_kboard): Likewise.
15447 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15448 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15449 * term.c (tty_default_color_capabilities, maybe_fatal)
15450 (delete_tty): Likewise.
15451 * w16select.c (string): Likewise.
15452 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15453 * w32bdf.c (w32_free_bdf_font): Likewise.
15454 * w32fns.c (w32_unload_font): Likewise.
15455 * w32font.c (w32font_close): Likewise.
15456 * window.c (size_window): Likewise.
15457 * xselect.c (receive_incremental_selection): Likewise.
15458 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15459 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15460 * w32.c (stat): Likewise.
15461
15462 Remove useless if-before-free tests.
15463 * editfns.c (Fset_time_zone_rule): Likewise.
15464 * lread.c (nosuffix): Likewise.
15465 * ralloc.c (get_bloc): Likewise.
15466 * regex.c (reg_free): Likewise.
15467 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15468 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15469 * xsmfns.c (smc_save_yourself_CB): Likewise.
15470
15471 2008-06-02 Kenichi Handa <handa@m17n.org>
15472
15473 * font.c (font_find_for_lface): Handle float font size.
15474 (font_open_for_lface): Likewise.
15475
15476 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15477 comparing the properties.
15478
15479 2008-06-01 Jason Rumney <jasonr@gnu.org>
15480
15481 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15482 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15483 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15484 Don't add empty script list.
15485 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15486
15487 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15488
15489 * Makefile.in (dot, dotdot): Remove, update users.
15490 ".." has been used elsewhere in the file for a long time.
15491 (LIBXT_STATIC): Remove conditional based on unused variable.
15492
15493 2008-06-01 Miles Bader <miles@gnu.org>
15494
15495 * xfaces.c (Vface_remapping_alist): New variable.
15496 (syms_of_xfaces): Initialize it.
15497 (enum named_merge_point_kind): New type.
15498 (struct named_merge_point): Add `named_merge_point_kind' field.
15499 (push_named_merge_point): Make cycle detection respect different
15500 named-merge-point kinds.
15501 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15502 Remove face-name alias resolution.
15503 (lface_from_face_name): New definition using
15504 `lface_from_face_name_no_resolve'.
15505 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15506 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15507 (get_lface_attributes): New definition that layers face-remapping on
15508 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15509 (lookup_basic_face): New function.
15510 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15511 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15512 `get_lface_attributes'.
15513 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15514 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15515 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15516
15517 * xdisp.c (init_iterator): Pass base_face_id through
15518 `lookup_basic_face' when we actually use it as a face-id.
15519 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15520 DEFAULT_FACE_ID.
15521
15522 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15523 lookup the initial face-id.
15524
15525 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15526
15527 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
15528
15529 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15530 (Fremove_text_properties): Fix typos in docstrings.
15531
15532 2008-05-31 Kenichi Handa <handa@m17n.org>
15533
15534 * font.c (font_list_entities): Fix the car part of data to be
15535 stored in the cache.
15536
15537 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15538
15539 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15540
15541 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15542 Add a `test' argument so another predicate than `equal' can be used.
15543 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15544 (map_char_table): Remove unused vars `c' and `i'.
15545 * lisp.h (Foptimize_char_table): Adjust declaration.
15546 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15547
15548 2008-05-30 Kenichi Handa <handa@m17n.org>
15549
15550 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15551 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15552 defined.
15553
15554 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15555
15556 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15557 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15558 frame-local settings for the same variable.
15559
15560 2008-05-30 Kenichi Handa <handa@m17n.org>
15561
15562 * fontset.c (Ffont_info): Move to font.c.
15563 (syms_of_fontset): Delete defsubr of Sfont_info.
15564
15565 * font.c (font_style_to_value, font_score): Delete casting of the
15566 args to xstcasecmp.
15567 (register_font_driver): Increment num_font_drivers only when
15568 registering the driver globally.
15569 (Ffont_info): Move from fontset.c. Handle a font object too.
15570 (syms_of_font): Defsubr Sfont_info.
15571
15572 2008-05-29 Kenichi Handa <handa@m17n.org>
15573
15574 * coding.h (enum define_coding_utf8_arg_index): New enum.
15575 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15576 coding_attr_utf_bom.
15577 (enum utf_bom_type): Rename from utf_16_bom_type.
15578 (struct utf_16_spec): Adjust for the above change.
15579 (struct coding_system): Add utf_8_bom in `spec' union.
15580
15581 * coding.c (CODING_UTF_8_BOM): New macro.
15582 (enum coding_category): Delete coding_category_utf_8, add
15583 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15584 coding_category_utf_8_sig.
15585 (CATEGORY_MASK_UTF_8): Delete it.
15586 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15587 (CATEGORY_MASK_UTF_8_SIG): New macros.
15588 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15589 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15590 CATEGORY_MASK_UTF_8_SIG.
15591 (CATEGORY_MASK_UTF_8): New macro.
15592 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15593 (detect_coding_utf_8): Check BOM.
15594 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15595 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15596 (encode_coding_utf_16): Likewise.
15597 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15598 (detect_coding, detect_coding_system): Handle utf-8-auto.
15599 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15600 (syms_of_coding): Fix setting up of Vcoding_category_table.
15601
15602 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15603
15604 * process.c (Faccept_process_output): If `millisec' is non-nil,
15605 `seconds' default to 0.
15606 (wait_reading_process_output): Also return non-nil if we read output
15607 from a non-running process.
15608
15609 2008-05-29 Jason Rumney <jasonr@gnu.org>
15610
15611 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15612 `raster' specified.
15613 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15614 in the uniscribe backend, but disallow any font that has no
15615 unicode subrange support.
15616
15617 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
15618
15619 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15620 Fix typos in docstrings.
15621
15622 2008-05-29 Kenichi Handa <handa@m17n.org>
15623
15624 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15625 (Fx_family_fonts): Set frame correctly.
15626
15627 2008-05-28 Jason Rumney <jasonr@gnu.org>
15628
15629 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15630
15631 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15632
15633 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15634 calling build_annotations.
15635
15636 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
15637
15638 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15639 (Fencode_coding_string):
15640 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15641 <latin-extra-code-table>: Fix typos in docstrings.
15642 (syms_of_coding) <coding-system-alist>: Doc fix.
15643 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15644
15645 2008-05-28 Kenichi Handa <handa@m17n.org>
15646
15647 * fontset.c (Ffont_info): Don't call font_close_object.
15648
15649 * font.c (font_parse_family_registry): Use Ffont_put to validate
15650 foundry and family.
15651 (font_delete_unmatched): Don't check spacing.
15652 (font_list_entities): Add spacing to the spec to list fonts.
15653
15654 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15655 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15656
15657 * coding.c (encode_coding_raw_text): Fix previous change.
15658 (encode_coding_object): When the dst_object is a buffer and is
15659 different from src_object, move gap to PT.
15660
15661 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15662
15663 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15664
15665 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15666
15667 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15668 all branches. Compute it differently.
15669
15670 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15671
15672 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
15673
15674 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15675 into "else if () ... else ...".
15676
15677 2008-05-27 Jason Rumney <jasonr@gnu.org>
15678
15679 * w32font.c (w32font_open_internal): Determine if glyph indices
15680 are likely to work here.
15681
15682 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15683
15684 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15685 draw overlap glyphs with appropriate highlighting.
15686
15687 2008-05-27 Kenichi Handa <handa@m17n.org>
15688
15689 * xfont.c (xfont_open): Fix calculation of font->average_width.
15690
15691 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15692
15693 * casefiddle.c (casify_object): Try to guess better whether the
15694 argument is a byte or a char.
15695
15696 2008-05-26 Andreas Schwab <schwab@suse.de>
15697
15698 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15699 Always send multiples of format size.
15700
15701 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15702
15703 2008-05-26 Jason Rumney <jasonr@gnu.org>
15704
15705 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15706 (compute_metrics): Don't set failure if we just cleared the cache.
15707 (w32_weight_table): Remove unused variable.
15708 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15709 backwards compatibility.
15710
15711 2008-05-25 Kenichi Handa <handa@m17n.org>
15712
15713 * w32term.c (x_draw_glyph_string):
15714 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15715
15716 * xfaces.c: Delete unused function prototypes.
15717 (xstrlwr, font_frame): Delete them.
15718 (clear_face_cache): Delete unused variable.
15719
15720 * xftfont.c (xftfont_open): Delete unused variable.
15721 If underline_thickness is not 1, adjust underline_position.
15722
15723 * ftxfont.c (ftxfont_open): Delete unused variable.
15724
15725 * fontset.c (face_for_char): Optimize for the case of no charset
15726 property.
15727
15728 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15729 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15730 (otf_open, font_otf_capability, generate_otf_features)
15731 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15732 Comment out by surrounding "#if 0" and "#endif" for the moment.
15733 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15734 (syms_of_font): Codes for accessing above commented out.
15735
15736 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15737
15738 * w32proc.c: Include dispextern.h.
15739
15740 * w32.c: Include dispextern.h.
15741
15742 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15743
15744 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15745 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15746 Fix typos in docstrings.
15747
15748 2008-05-23 Jason Rumney <jasonr@gnu.org>
15749
15750 * xsmfns.c: Remove includes that are already included by config.h.
15751
15752 2008-05-23 Kenichi Handa <handa@m17n.org>
15753
15754 * charset.c (Qemacs, charset_emacs): New variables.
15755 (char_charset): Fix for non-Unicode characters.
15756 (syms_of_charset): Define charset_emacs.
15757
15758 * w32term.c (x_draw_glyph_string): Be sure to update
15759 s->underline_thickness and s->underline_position. Be sure to draw
15760 underline within the current line area.
15761
15762 * xterm.c (x_draw_glyph_string): Be sure to update
15763 s->underline_thickness and s->underline_position. Be sure to draw
15764 underline within the current line area.
15765
15766 * fontset.c: Delete unused variables and add casting for char *
15767 throughout the file.
15768 (fontset_font): Try the fallback fonts of the current fontset
15769 before consulting the default fontset.
15770
15771 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15772
15773 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15774
15775 2008-05-22 Jason Rumney <jasonr@gnu.org>
15776
15777 * font.c: Don't include strings.h.
15778
15779 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15780
15781 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15782 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15783 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15784 to call xstrcasecmp.
15785
15786 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15787
15788 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15789
15790 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15791
15792 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15793
15794 2008-05-22 Kenichi Handa <handa@m17n.org>
15795
15796 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15797
15798 * font.c (font_prop_validate_style): Adjust for the format
15799 change of font_style_table.
15800
15801 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15802 two args.
15803
15804 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15805 two args.
15806
15807 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15808
15809 * minibuf.c (keys_of_minibuf): Delete.
15810 * lisp.h (keys_of_minibuf): Delete.
15811 * emacs.c (main): Don't call keys_of_minibuf.
15812
15813 2008-05-22 Kenichi Handa <handa@m17n.org>
15814
15815 * ftfont.c (ftfont_resolve_generic_family): Rename from
15816 ftfont_list_generic_family. Return a single family for each
15817 generic family.
15818 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15819 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15820 Call font_add_log.
15821 (ftfont_match): Call font_add_log.
15822
15823 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15824 (FONT_DEBUG): Define it.
15825 (font_add_log): Extern it.
15826 (font_assert): Rename from xassert.
15827
15828 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15829 (xfont_list_family): Call font_add_log.
15830 (xfont_match): Likewise.
15831 (memq_no_quit): Delete.
15832
15833 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15834 call of Ffont_xlfd_name.
15835
15836 * xfaces.c (struct table_entry, slant_table, weight_table)
15837 (swidth_table): Move to font.c.
15838
15839 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15840 xassert are changed to font_assert. Delete many unused variables.
15841 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15842 New variables.
15843 (struct table_entry): Move from xfaces.c and modified.
15844 (weight_table, slant_table, width_table): Move from xfaces.c and
15845 contents adjusted for the change of struct table_entry.
15846 (font_style_to_value, font_style_symbolic): Adjust for the
15847 format change of font_style_table.
15848 (font_parse_family_registry): Don't overwrite existing foundry and
15849 family of font_spec.
15850 (font_score): Fix calculation of diff for sizes.
15851 (font_sort_entites): Call font_add_log.
15852 (font_delete_unmatched): Return a newly created list.
15853 (font_list_entities): Fix previous change. Call font_add_log.
15854 (font_matching_entity, font_open_entity, font_close_entity):
15855 Call font_add_log.
15856 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15857 (Finternal_set_font_style_table): Delete.
15858 (BUILD_STYLE_TABLE): New macro.
15859 (build_style_table): New function.
15860 (Vfont_log, font_log_env_checked): New variables.
15861 (font_add_log): New function.
15862 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15863 Declare Lisp variables "font-weight-table", "font-slant-table",
15864 "font-width-table", and "font-log". Initialize font_style_table.
15865
15866 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15867
15868 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15869
15870 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15871 Ryo Yoshitake <ryo@shiftmode.net>
15872
15873 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15874 (Vframe_alpha_lower_limit): New variable.
15875 (x_set_alpha): New function.
15876
15877 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15878
15879 * xfns.c (x-create-frame, Qalpha):
15880 Initialize the frame parameter `alpha'.
15881 * xterm.c (OPAQUE, OPACITY): New.
15882 (x_set_frame_alpha): New function.
15883 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15884
15885 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15886 * w32fns.c (w32_frame_parm_handlers): Likewise.
15887
15888 2008-05-20 Jason Rumney <jasonr@gnu.org>
15889
15890 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15891 truetype fonts to opentype list.
15892
15893 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15894
15895 * fontset.c (Ffontset_info): Doc fix.
15896 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15897 <ignore-relative-composition>: Fix typos in docstrings.
15898
15899 * font.c (syms-of-font) <font-encoding-alist>:
15900 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15901 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15902 (Ffont_otf_alternates): Doc fixes.
15903
15904 2008-05-20 Kenichi Handa <handa@m17n.org>
15905
15906 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15907 font.h through out the file.
15908 (FONT_DRIVERS): Rename from FONTOBJ.
15909 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15910 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15911
15912 * emacs.c (main): Call syms_of_font unconditionally.
15913
15914 * font.h (find_font_encoding): Extern it.
15915
15916 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15917 fontset.c.
15918 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15919 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15920 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15921 only when HAVE_WINDOW_SYSTEM is defined.
15922 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15923 when HAVE_WINDOW_SYSTEM is defined.
15924
15925 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15926 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15927
15928 * xfaces.c: Include font.h unconditionally.
15929 (merge_face_ref, merge_face_vectors)
15930 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15931
15932 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15933
15934 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15935 indirect_variable.
15936 * eval.c (lisp_indirect_variable): New fun.
15937 (Fuser_variable_p): Use it.
15938
15939 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15940
15941 * lisp.h (indirect_variable):
15942 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15943 Use Lisp_Symbol pointers rather than Lisp_Object.
15944 Adjust callers.
15945 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15946 To this end, change calling-convention.
15947
15948 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15949 if some non-hidden buffers are selected by string&pred.
15950
15951 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15952
15953 * process.c (wait_reading_process_output): Always check status
15954 when in batch mode.
15955
15956 2008-05-19 Kenichi Handa <handa@m17n.org>
15957
15958 * font.c (font_list_entities): Fix handling of cache.
15959 (font_matching_entity): Likewise.
15960
15961 * ftfont.c (cs_iso8859_1): Delete.
15962 (ft_face_cache): New variable.
15963 (struct ftfont_info): New member fc_charset_idx.
15964 (ftfont_build_basic_charsets): Delete.
15965 (fc_charset_table): New variable.
15966 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15967 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15968 Callers changed.
15969 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15970 (ftfont_spec_pattern): New argument fc_charset_idx.
15971 Check registry more rigidly. Change callers.
15972 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15973 change of :font-entity property of the font.
15974
15975 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15976 property of the font.
15977
15978 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15979
15980 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15981 (Funencodable_char_position, Fcheck_coding_systems_region)
15982 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15983 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15984 (Ffind_operation_coding_system, Fset_coding_system_priority)
15985 (Fcoding_system_eol_type): Doc fixes.
15986
15987 2008-05-17 Glenn Morris <rgm@gnu.org>
15988
15989 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15990
15991 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15992
15993 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15994 and st_gid.
15995
15996 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15997 HAVE_WINDOW_SYSTEM is not defined.
15998
15999 * xfaces.c (merge_face_ref, merge_face_vectors)
16000 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16001 HAVE_WINDOW_SYSTEM is defined.
16002 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16003
16004 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16005
16006 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16007
16008 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009
16010 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16011
16012 2008-05-15 Kenichi Handa <handa@m17n.org>
16013
16014 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16015 preference.
16016
16017 2008-05-15 Glenn Morris <rgm@gnu.org>
16018
16019 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16020
16021 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
16022
16023 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16024 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16025
16026 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16027
16028 2008-05-15 Kenichi Handa <handa@m17n.org>
16029
16030 * ftfont.c (ftfont_list): Downcase family name to check generic
16031 families.
16032
16033 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16034 font-spec for QCfont value.
16035
16036 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16037 buffer. Check the return value of it.
16038
16039 2008-05-14 Jason Rumney <jasonr@gnu.org>
16040
16041 * w32term.c (w32_get_glyph_overhangs): Remove.
16042 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16043
16044 2008-05-14 Kenichi Handa <handa@m17n.org>
16045
16046 * font.c (font_prop_validate): Make nil a valid value.
16047 (font_clear_cache): Check if the cached vector of entities is nil
16048 or not.
16049
16050 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16051
16052 * emacs.c (main_thread): Conditionalize on
16053 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16054 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16055
16056 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16057 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16058 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16059
16060 2008-05-14 Kenichi Handa <handa@m17n.org>
16061
16062 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16063 has no corresponding coding system.
16064
16065 2008-05-14 Jason Rumney <jasonr@gnu.org>
16066
16067 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16068
16069 * w32font.h (w32font_open_internal): Update declaration.
16070
16071 * w32font.c (w32font_open_internal): Change last argument from
16072 w32font_info struct to font object. Fill in font object from
16073 font_entity. Get Outline metrics if possible. Use them to
16074 calculate underline position and thickness. Use xlfd name as name
16075 property. Don't set codepage.
16076 (w32font_open): Pass font_object to w32font_open_internal. Don't
16077 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16078 (w32font_draw): Use s->font.
16079 (clear_cached_metrics): Don't clear non-existent blocks.
16080
16081 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16082 font was not found.
16083 (x_draw_glyph_string): Use underline position and thickness from font.
16084
16085 * w32uniscribe.c (uniscribe_open): Pass font_object to
16086 w32font_open_internal.
16087
16088 2008-05-14 Kenichi Handa <handa@m17n.org>
16089
16090 These changes are to delete all legacy font-handling codes, and
16091 make Emacs use only font-backends.
16092
16093 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16094 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16095
16096 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16097
16098 * charset.h (Vcharset_non_preferred_head)
16099 (Vcurrent_iso639_language): Extern them.
16100
16101 * charset.c (Vcharset_non_preferred_head): New variable.
16102 (Vcurrent_iso639_language): New variable.
16103 (syms_of_charset): Declare it as a Lisp variable.
16104 (char_charset): Don't check non preferred charsets. As a last
16105 resort, return charset_unicode.
16106 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16107
16108 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16109 conditionals. Don't check enable_font_backend. Delete all codes
16110 used only when USE_FONT_BACKEND is not defined.
16111
16112 * dispextern.h (struct glyph_string): Change type of `font' to
16113 `struct font *'.
16114 (struct glyph_string): New member underline_position and
16115 underline_thickness.
16116 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16117 (struct face): Change type of `font' to `struct font *'. Remove
16118 members `font_name', `font_info_id'.
16119 (per_char_metric, encode_char): Delete externs.
16120 (calc_pixel_width_or_height): Adjust the prototype.
16121
16122 * emacs.c (enable_font_backend): Delete extern.
16123 (main): Don't set enable_font_backend. Don't check the command
16124 line argument "-disable-font-backend".
16125
16126 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16127 (enum font_property_index): New members FONT_DPI_INDEX,
16128 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16129 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16130 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16131 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16132 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16133 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16134 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16135 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16136 (struct font_spec, struct font_entity): New structs.
16137 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16138 (struct font): Many members from old "struct font_info" moved to
16139 here. Members font and entity deleted.
16140 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16141 the new font-related objects.
16142 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16143 (CHECK_FONT_GET_OBJECT): Likewise.
16144 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16145 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16146 (struct font_driver): New members case_sensitive anc check. Type
16147 of the member list and open changed.
16148 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16149 (font_symbolic_width, font_find_object, font_get_spec)
16150 (font_set_lface_from_name): Delete extern.
16151 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16152
16153 * font.c: Include <strings.h>.
16154 (enable_font_backend): Delete it.
16155 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16156 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16157 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16158 (null_string): Delete it.
16159 (null_vector): Make it static.
16160 (font_family_alist): Delete it.
16161 (Qnormal): Extern it.
16162 (QCextra, QClanguage): Delete it.
16163 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16164 (font_make_spec, font_make_entity, font_make_object)
16165 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16166 the string. Callers changed.
16167 (font_pixel_size): Adjusted for the format change of font-related
16168 objects.
16169 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16170 (font_style_to_value, font_style_symbolic): New function.
16171 (build_font_family_alist): Delete it.
16172 (font_registry_charsets): Use Fassoc_string instead of
16173 assq_no_quit.
16174 (font_prop_validate_symbol): Don't return null_string.
16175 (font_prop_validate_style): Adjusted for the change of
16176 style-related values in a font vector.
16177 (font_property_table): Delete entries for QClanguage and
16178 QCantialias, add entries for QCavgwidth.
16179 (get_font_prop_index): Delete the 2nd argument FROM.
16180 (font_prop_validate): Arguments changed.
16181 (font_put_extra): Adjusted for the change of font-related objects.
16182 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16183 (font_parse_fcname, font_unparse_fcname)
16184 (font_prepare_composition): Likewise.
16185 (font_parse_family_registry): Renamed from font_merge_old_spec.
16186 (otf_open): Delete the 1st arg entity.
16187 (font_otf_capability): Adjusted for the above change.
16188 (font_score): New arg alternate_families. Adjusted for the change
16189 of font-related objects.
16190 (font_sort_entites): New arg best_only.
16191 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16192 Delete them.
16193 (font_match_p): Check alternate families.
16194 (font_find_object): Delete it.
16195 (font_check_object): New function.
16196 (font_clear_cache): Adjusted for the change of font-related objects.
16197 (font_delete_unmatched): New arg.
16198 (font_list_entities): Call font_driver->list with a spec that
16199 doesn't specify style-related properties.
16200 (font_matching_entity): Arguments changed. Caller changed.
16201 (font_open_entity): Adjusted for the change of font-related objects.
16202 (font_close_object, font_has_char, font_encode_char)
16203 (font_get_name, font_get_spec): Likewise.
16204 (font_spec_from_name, font_clear_prop, font_update_lface):
16205 New functions.
16206 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16207 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16208 (font_at): Adjusted for the change of font-related objects.
16209 (font_range): New function.
16210 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16211 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16212 (Fcopy_font_spec, Fmerge_font_spec): New function.
16213 (Ffont_family_list): Renamed from list-families.
16214 (Finternal_set_font_style_table): Arguments changed.
16215 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16216 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16217 change of font-related objects.
16218 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16219
16220 * fontset.h (struct font_info): Delete it. Most members go to
16221 struct font.
16222 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16223 (enum FONT_SPEC_INDEX): Delete it.
16224 (font_info, list_fonts_func, load_font_func, query_font_func)
16225 (set_frame_fontset_func, find_ccl_program_func)
16226 (get_font_repertory_func, new_fontset_from_font_name): Delete
16227 externs.
16228 (fontset_from_font_name): Extern it.
16229 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16230 (FONT_INFO_FROM_FACE): Deleted.
16231 (face_for_font): Adjust prototype.
16232
16233 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16234 conditionals. Don't check enable_font_backend. Delete all codes
16235 used only when USE_FONT_BACKEND is not defined.
16236 (get_font_info_func, list_font_func, load_font_func)
16237 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16238 (get_font_repertory_func): Delete them.
16239 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16240 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16241 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16242 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16243 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16244 (fontset_compare_rfontdef): New function.
16245 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16246 rfont-defs by qsort. Adjusted for the change of font-group vector.
16247 (load_font_get_repertory): Deleted.
16248 (fontset_find_font): Use new macros to ref/set elements of
16249 font-def and rfont-def.
16250 (fontset_font): Fix the timing of remembering that no font for C.
16251 (free_face_fontset): Do nothing if the face has no fontset.
16252 (face_suitable_for_char_p): Use new macros to ref/set elements of
16253 rfont-def.
16254 (face_for_char): Likewise. Call face_for_char with font_object.
16255 (fs_load_font): Delete. Delete #pragma surrounding it.
16256 (fs_query_fontset): Use strcasecmp instead of strcmp.
16257 (generate_ascii_font_name): Adjusted for the format change of
16258 font-spec.
16259 (Fset_fontset_font): Likewise. Use new macros to set elements of
16260 font-def.
16261 (Fnew_fontset): Use font_unparse_xlfd to generate
16262 FONTSET_ASCII (fontset).
16263 (new_fontset_from_font_name): Deleted.
16264 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16265 a fontset is already created for the font. FIx updating of
16266 Vfontset_alias_alist.
16267 (fontset_ascii_font): Deleted.
16268 (Ffont_info): Adjusted for the format change of font-spec.
16269 (Finternal_char_font): Likewise.
16270 (Ffontset_info): Likewise.
16271 (syms_of_fontset): Don't check load_font_func.
16272
16273 * fns.c (internal_equal): Handle PREV_FONT.
16274
16275 * frame.h: Delete USE_FONT_BACKEND conditional.
16276
16277 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16278 conditionals. Don't check enable_font_backend. Delete all codes
16279 used only when USE_FONT_BACKEND is not defined.
16280 (x_set_font): Call x_new_font, not x_new_fontset2.
16281 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16282 already set for the frame.
16283
16284 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16285 a font-entity by font_make_entity. Use font_intern_prop instead
16286 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16287 font property. If a font is scalable, set avgwidth property to 0.
16288 Set font-entity property by font_put_extra.
16289 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16290 (ffont_driver): Adjusted for the change of struct font_driver.
16291 (ftfont_spec_pattern): New function.
16292 (ftfont_list): Return a list, not vector.
16293 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16294 (ftfont_list_family): Don't downcase names.
16295 (ftfont_free_entity): Deleted.
16296 (ftfont_open): Return a font-object. Adjusted for the change of
16297 struct font. Get underline_thickness and underline_position from
16298 font property. Don't update dpyinfo->smallest_font_height and
16299 dpyinfo->smallest_char_width.
16300 (ftfont_close): Don't free `struct font'.
16301 (ftfont_has_char): Adjusted for the format change of font-entity.
16302 (ftfont_encode_char, ftfont_text_extents): Likewise.
16303
16304 * ftxfont.c (ftxfont_list): Return a list, not vector.
16305 (ftxfont_open): Return a font-object. Adjusted for the change of
16306 struct font. Get underline_thickness and underline_position from
16307 font property. Don't update dpyinfo->smallest_font_height and
16308 dpyinfo->smallest_char_width.
16309 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16310 (ftxfont_draw): Adjusted for the change of struct font.
16311
16312 * image.c (image_ascent): Don't include "charset.h". Include
16313 "character.h" and "font.h".
16314
16315 * lisp.h (enum pvec_type): New member PREV_FONT.
16316 (Fassoc_string): EXFUN it.
16317
16318 * print.c: Include font.h.
16319 (print_object): Handle font-related objects.
16320
16321 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16322 conditionals. Don't check enable_font_backend. Delete all codes
16323 used only when USE_FONT_BACKEND is not defined.
16324 (handle_auto_composed_prop): Do nothing if it->f is not on a
16325 window system. Check how many following characters can be
16326 displayed by the same font.
16327 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16328 'struct font *'.
16329 (get_char_face_and_encoding): Assign the whole encoding task to
16330 the `encode-char' method of a font driver.
16331 (fill_composite_glyph_string): Adjusted for the change of `struct
16332 face' and `struct glyph_string'.
16333 (fill_glyph_string): Likewise.
16334 (get_per_char_metric): Arguments changed.
16335 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16336 and `struct glyph_string'.
16337 (produce_stretch_glyph, calc_line_height_property)
16338 (x_produce_glyphs): Likewise.
16339
16340 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16341 conditionals. Don't check enable_font_backend. Delete all codes
16342 used only when USE_FONT_BACKEND is not defined. Use
16343 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16344 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16345 (Qp): Extern them.
16346 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16347 Deleted.
16348 (struct font_name): Deleted.
16349 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16350 (compare_fonts_by_sort_order): New function.
16351 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16352 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16353 Deleted.
16354 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16355 compare_fonts_by_sort_order.
16356 (Fx_font_family_list): Call Ffont_family_list.
16357 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16358 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16359 (face_symbolic_slant, face_symbolic_swidth)
16360 (split_font_name_into_vector, build_font_name_from_vector)
16361 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16362 (font_rescale_ratio, split_font_name, build_font_name)
16363 (free_font_names, sort_fonts, x_face_list_fonts)
16364 (face_font_available_p, sorted_font_list, cmp_font_names)
16365 (font_list_1, concat_font_list, font_list, remove_duplicates):
16366 Deleted.
16367 (Fx_list_fonts): Use Ffont_list.
16368 (LFACE_AVGWIDTH): Deleted.
16369 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16370 by FONTP.
16371 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16372 (set_lface_from_font_name): Delete it.
16373 (set_lface_from_font): Renamed from
16374 set_lface_from_font_and_fontset. Caller changed. Don't set
16375 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16376 for face.
16377 (merge_face_vectors): Copy font-spec if necessary.
16378 Clear properties of the font-spec if necessary.
16379 (merge_face_ref): Clear properties of the font-spec if necessary.
16380 (Finternal_set_lisp_face_attribute): Likewise.
16381 (set_font_frame_param): Use font_load_for_lface to load a
16382 font-object, and call Fmodify_frame_parameters with it.
16383 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16384 font name by Ffont_xlfd_name.
16385 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16386 QCslant, and QCwidth.
16387 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16388 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16389 Compare fonts by EQ.
16390 (lookup_non_ascii_face): Deleted.
16391 (face_for_font): The 2nd argument changed.
16392 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16393 Check atomic font properties by case insensitive.
16394 (realize_non_ascii_face): Set face->overstrike correctly.
16395 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16396 (dump_realized_face): Get font name from
16397 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16398
16399 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16400 conditionals. Don't check enable_font_backend. Delete all codes
16401 used only when USE_FONT_BACKEND is not defined.
16402 (xic_create_xfontset): Original code deleted and renamed from
16403 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16404 (x_make_gc): Don't set GCFont in GCs.
16405 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16406 opened by "fixed".
16407 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16408 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16409 get_font_repertory_func.
16410
16411 * xfont.c: Include <stdlib.h> and "ccl.h".
16412 (struct xfont_info): New structure.
16413 (xfont_query_font): Deleted.
16414 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16415 moved from xterm.c.
16416 (xfont_driver): Adjusted for the change of struct font_driver.
16417 (compare_font_names): New function.
16418 (xfont_list_pattern): Sort font names case insensitively. Make
16419 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16420 (xfont_list): Return a list, not vector.
16421 (xfont_match): If the font doesn't have QCname property, generate
16422 a name from the other font properties.
16423 (xfont_open): Return a font-object. Adjusted for the change of
16424 struct font. Get underline_thickness and underline_position from
16425 font property. Don't update dpyinfo->smallest_font_height and
16426 dpyinfo->smallest_char_width.
16427 (xfont_close): Don't free struct font.
16428 (xfont_prepare_face): Adjusted for the change of struct font.
16429 (xfont_done_face): Deleted.
16430 (xfont_has_char): Adjusted for the change of struct font.
16431 (xfont_encode_char, xfont_draw): Likewise.
16432 (xfont_check): New function.
16433
16434 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16435 callback function.
16436 (xftfont_match): Adjusted for the format change of font-entity.
16437 (xftfont_open): Adjusted for the format change of font-entity and
16438 font-object. Adjusted for the change of struct font. Return a
16439 font-object. Don't update dpyinfo->smallest_font_height and
16440 dpyinfo->smallest_char_width.
16441 (xftfont_close): Block input while calling XftFontClose.
16442 (xftfont_prepare_face): Don't block input while calling
16443 xftfont_get_colors. Adjusted for the change of struct font.
16444 (xftfont_shape): Return value of error case fixed.
16445
16446 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16447
16448 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16449 conditionals.
16450 (FONT_WIDTH): Return (f)->max_width.
16451 (struct x_display_info): Delete member `font'.
16452 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16453 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16454 (struct x_output): Change type of `font' to `struct font *'.
16455
16456 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16457 conditionals. Don't check enable_font_backend. Delete all codes
16458 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16459 (x_per_char_metric, x_encode_char): Deleted.
16460 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16461 (x_compute_glyph_string_overhangs): Adjusted for the change of
16462 `struct face'.
16463 (x_draw_glyph_string_foreground)
16464 (x_draw_composite_glyph_string_foreground): Likewise.
16465 (x_draw_glyph_string): Likewise. Use font->underline_position and
16466 font->underline_thickness.
16467 (x_new_font): Renamed from x_new_fontset2.
16468 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16469 (x_check_font): Call `check' method of a font driver.
16470 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16471 (x_query_font, x_get_font_repertory): Deleted.
16472 (x_find_ccl_program): Renamed and moved to xfont.c.
16473 (x_redisplay_interface): Adjusted for the change of `struct
16474 redisplay_interface'.
16475
16476 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16477 conditionals. Don't check enable_font_backend. Delete all codes
16478 used only when USE_FONT_BACKEND is not defined. Surround non-used
16479 code by "#ifdef OLD_FONT" and "endif".
16480 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16481
16482 * w32font.h (struct w32font_info): New member.
16483 (FONT_COMPAT): New macro.
16484 (w32font_open_internal): Prototype adjusted.
16485
16486 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16487 OLD_FONT" and "endif".
16488
16489 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16490 conditionals. Don't check enable_font_backend. Delete all codes
16491 used only when USE_FONT_BACKEND is not defined.
16492 (w32font_open): Return a font-object. Make a font-object by
16493 font_make_object. Adjusted for the change of struct w32font_info.
16494 (w32font_close): Don't free struct font. Adjusted for the change
16495 of struct w32font_info.
16496 (w32font_encode_char, w32font_text_extents, w32font_draw):
16497 Adjusted for the change of struct w32font_info.
16498 (w32font_draw): Likewise.
16499 (w32font_list_internal): Return a list, not vector.
16500 (w32font_open_internal): Change the 4th arg to font-object.
16501 Adjusted for the change of struct w32font_info and font-object format.
16502 (add_font_name_to_list): Don't downcase names.
16503 (w32_enumfont_pattern_entity): Make a font-entity by
16504 font_make_entity. Adjusted for the format change of font-entity.
16505 Use FONT_SET_STYLE to set a style-related font property. If a
16506 font is scalable, set avgwidth property to 0. Set font-entity
16507 property by font_put_extra.
16508 (font_matches_spec): Adjusted for the format change of font-entity.
16509 (w32_weight_table, w32_decode_weight): New variables.
16510 (w32_encode_weight): New function.
16511 (fill_in_logfont): Adjusted for the format change of font-spec.
16512 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16513 weight value.
16514 (w32font_driver): Adjusted for the change of struct font_driver.
16515
16516 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16517 conditionals. Don't check enable_font_backend. Surround non-used
16518 code by "#ifdef OLD_FONT" and "endif".
16519 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16520 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16521
16522 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16523 conditionals. Don't check enable_font_backend. Delete all codes
16524 used only when USE_FONT_BACKEND is not defined. Surround non-used
16525 code by "#ifdef OLD_FONT" and "endif".
16526
16527 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16528 (uniscribe_open): Return value changed to font-object.
16529 Adjusted for the format change of font-object.
16530 (uniscribe_otf_capability): Adjusted for the change of struct font.
16531 (add_opentype_font_name_to_list): Don't downcase names.
16532 (uniscribe_font_driver): Adjusted for the change of struct
16533 font_driver.
16534
16535 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
16536
16537 * dispnew.c (update_frame_1): Check if tty output is still valid
16538 before flushing it.
16539
16540 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16541
16542 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16543 to Gtk+ menus.
16544
16545 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16546
16547 * dired.c (file_name_completion): Tweak the code so as to always do it
16548 in a single pass. Tighten the scope of some variables.
16549
16550 * dired.c (Qdefault_directory): New var.
16551 (file_name_completion): Use it instead of Fexpand_file_name.
16552 (syms_of_dired): Initialize it.
16553
16554 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16555
16556 * fileio.c (double_dollars): Remove dead code.
16557
16558 2008-05-10 Eli Zaretskii <eliz@gnu.org>
16559
16560 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16561 Mention w32-get-true-file-attributes in doc string.
16562
16563 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16564
16565 2008-05-09 Glenn Morris <rgm@gnu.org>
16566
16567 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16568 2008-04-23.
16569
16570 2008-05-09 Eli Zaretskii <eliz@gnu.org>
16571
16572 Support for reporting owner and group of each file on MS-Windows:
16573 * dired.c (stat_uname, stat_gname): New functions, with special
16574 implementation for w32.
16575 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16576
16577 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16578 (dflt_group_name): New static variable.
16579 (dflt_group): Rename from the_group.
16580 (init_user_info): Init dflt_group fields. Get user's group name
16581 from LookupAccountSid.
16582 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16583 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16584 New initialization states.
16585 (globals_of_w32): Initialize them to zero. Initialize the default
16586 group name to "None".
16587 (GetFileSecurity_Name): New global var, the name of the function
16588 to call for GetFileSecurity.
16589 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16590 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16591 (get_file_security, get_security_descriptor_owner)
16592 (get_security_descriptor_group, is_valid_sid)
16593 (get_file_security_desc, get_rid, get_name_and_id)
16594 (get_file_owner_and_group): New functions.
16595 (stat): Use get_file_security_desc and get_file_owner_and_group to
16596 report the owner and primary group of each file. Don't ignore the
16597 high 32 bits of file's size, now that st_size is 64-bit wide.
16598 Fix test when to get true file attributes.
16599 (init_user_info): Use get_rid instead of equivalent inline code.
16600 (fstat): Don't ignore the high 32 bits of file's size.
16601
16602 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
16603
16604 * image.c (png_load): Use correct bit-depth for setting background
16605 color.
16606
16607 2008-05-08 Eli Zaretskii <eliz@gnu.org>
16608
16609 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16610 epa-hook.elc.
16611
16612 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
16613
16614 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16615
16616 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16617
16618 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16619 because the original parameters are in pure storage now.
16620 (mac_window): Remove unused params. Update callers.
16621
16622 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16623
16624 * lread.c (substitute_object_recurse): Use lower-level primitives.
16625 Don't signal errors when traversing sub-char-tables.
16626 Don't loop over all the possible characters when traversing char-tables.
16627
16628 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16629 just like we do in print.c.
16630
16631 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16632
16633 * minibuf.c (Ftry_completion): Remove code left over from when we used
16634 scmp instead of Fcompare_strings.
16635
16636 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
16637
16638 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16639
16640 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16641
16642 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16643 Create bitmap context in native byte order.
16644
16645 * macterm.c (XDrawLine)
16646 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16647 context in native byte order.
16648
16649 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16650
16651 * config.in: Regenerate.
16652
16653 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16654 New definitions for Image I/O support.
16655 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16656 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16657 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16658 (mac_data_provider_release_data, image_load_image_io)
16659 [USE_MAC_IMAGE_IO]: New functions.
16660 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16661 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16662 (init_image_func_pointer) [MAC_OSX]: Remove function.
16663 (image_load_quartz2d) [MAC_OSX]: Check availability of
16664 CGImageCreateWithPNGDataProvider at compile time.
16665 Use lowercase `false' for boolean constant.
16666 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16667 Use image_load_image_io.
16668 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16669 Don't check MyCGImageCreateWithPNGDataProvider.
16670 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16671 Don't call init_image_func_pointer.
16672
16673 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16674
16675 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16676 Make variable non-static.
16677 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16678 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16679
16680 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16681 (RED_FROM_ULONG): Mask off higher bits.
16682 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16683
16684 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16685 Include AvailabilityMacros.h.
16686 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16687 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16688
16689 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16690
16691 * chartab.c (Fset_char_table_range): If range is t, really set all
16692 chars to that value.
16693
16694 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16695
16696 * dired.c (Ffile_attributes): Don't allow the device number become
16697 negative.
16698
16699 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16700
16701 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16702
16703 2008-05-02 Juri Linkov <juri@jurta.org>
16704
16705 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16706 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16707 DEFAULT argument as a list of default values in docstrings.
16708
16709 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16710
16711 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16712
16713 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16714
16715 * dispnew.c (change_frame_size_1): Preserve small windows when
16716 shrinking frames by calling set_window_height|width with third
16717 arg 2.
16718
16719 * window.h (struct window): Replace field too_small_ok by field
16720 resize_proportionally.
16721
16722 * window.c (make_window): Initialize resize_proportionally.
16723 (enlarge_window): Temporarily set resize_proportionally to make
16724 sure that shrink_windows does scale the window proportionally.
16725 (shrink_windows): When window has resize_proportionally set try
16726 to shrink it proportionally by stealing from other windows.
16727 (struct saved_window, Fset_window_configuration)
16728 (compare_window_configurations): Handle resize_proportionally.
16729 (WINDOW_TOTAL_SIZE): New macro.
16730 (window_min_size, shrink_windows, size_window): Use it.
16731 (check_min_window_sizes): Remove. Invalid values of
16732 window-min-height|width are handled by window_min_size_2 now.
16733 (size_window, Fsplit_window, enlarge_window)
16734 (adjust_window_trailing_edge, grow_mini_window): Don't call
16735 check_min_window_sizes.
16736 (window_min_size_2, window_min_size_1, window_min_size):
16737 New argument safe_p for retrieving "safe" minimum sizes.
16738 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16739 (adjust_window_trailing_edge, grow_mini_window):
16740 Adjust arguments of window_min_size... functions.
16741 (shrink_windows): Argument min_size removed. New argument
16742 safe_p allows shrinking windows to their safe minimum sizes.
16743 Calculate minimum size and decide whether a window shall be
16744 deleted for each window individually.
16745 (size_window): When nodelete_p equals 2, tell shrink_windows to
16746 delete windows only if their new minimum size is no more safe.
16747 (shrink_window_lowest_first): Call window_min_size_1 to make
16748 sure to preserve modeline of bottom-most window when resizing
16749 the minibuffer.
16750 (Fset_window_configuration, Fcurrent_window_configuration)
16751 (compare_window_configurations): Do not handle
16752 window-min-height|width any more.
16753 (syms_of_window): Clarify window-min-height|width doc-strings.
16754
16755 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16756
16757 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16758 some more. Copy some of the code from Ftry_completions.
16759 Remove special case code that dates back to initial revision when the
16760 slash was only added when necessary and that can't trigger nowadays.
16761
16762 2008-04-27 Kenichi Handa <handa@m17n.org>
16763
16764 * font.c (font_prop_validate): Signal `error' instead of `font'.
16765
16766 2008-04-29 Jason Rumney <jasonr@gnu.org>
16767
16768 * w32fns.c (Fw32_battery_status): New defun.
16769 (syms_of_w32fns): Defsubr it.
16770
16771 2008-04-28 Andreas Schwab <schwab@suse.de>
16772
16773 * dired.c (file_name_completion): Fix another mixing of encoded
16774 and decoded names.
16775
16776 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16777
16778 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16779
16780 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16781
16782 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16783
16784 2008-04-27 Andreas Schwab <schwab@suse.de>
16785
16786 * dired.c (file_name_completion): Fix inappropriate mixing of
16787 encoded and decoded names.
16788
16789 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16790
16791 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16792
16793 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16794
16795 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16796 2008-03-31, it's not needed anymore with `struct stat' definition
16797 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16798 for the same reasons.
16799
16800 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16801
16802 * m/sparc.h: Additional redefinitions for GNU/Linux.
16803
16804 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16805
16806 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16807 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16808 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16809 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16810 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16811 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16812 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16813 Likewise.
16814
16815 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16816 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16817 (mac_ax_number_of_characters): Add externs.
16818 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16819 [USE_MAC_TSM]: Likewise.
16820 (mac_handle_text_input_event) [MAC_OSX]:
16821 Handle kEventTextInputOffsetToPos for no active input area case.
16822 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16823 (mac_handle_document_access_event)
16824 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16825 (install_application_handler) [MAC_OSX]: Register handlers for
16826 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16827 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16828 Register mac_handle_document_access_event.
16829
16830 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16831 Make functions non-static.
16832
16833 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16834
16835 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16836 (read_file_name_completion_ignore_case, insert_default_directory)
16837 (Qdefault_directory): Move to minibuffer.el.
16838 (Fread_file_name): Call the new `read-file-name' instead.
16839
16840 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16841
16842 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16843 Make function non-static.
16844 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16845 Remove function.
16846 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16847 Move to mactoolbox.c.
16848 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16849
16850 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16851 (mac_rect_make): New macro.
16852
16853 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16854 instead of float.
16855 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16856 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16857 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16858 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16859 CGRectMake.
16860 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16861 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16862 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16863 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16864 instead of WindowRef in argument type.
16865 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16866 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16867 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16868 instead of DISPLAY. All uses changed.
16869 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16870 (x_calc_absolute_position): Simplify so as not to use
16871 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16872
16873 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16874 instead of WindowRef in argument type.
16875 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16876 [TARGET_API_MAC_CARBON]: Remove externs.
16877 (create_apple_event, mac_event_parameters_to_lisp)
16878 [TARGET_API_MAC_CARBON]: Add externs.
16879
16880 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16881 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16882 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16883 is clicked.
16884 (x_activate_menubar): Remove extern for saved_menu_event_location.
16885 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16886 Move from mac.c.
16887
16888 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16889
16890 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16891 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16892
16893 2008-04-23 Jason Rumney <jasonr@gnu.org>
16894
16895 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16896 attributes only for local files.
16897
16898 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16899 default to Qlocal.
16900
16901 2008-04-22 Juri Linkov <juri@jurta.org>
16902
16903 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16904 read-buffer-to-switch instead of using the letter "B".
16905
16906 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16907
16908 * fileio.c (Qdefault_directory): New variable.
16909 (Fread_file_name): Use it to pass `dir' to the completion functions.
16910
16911 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16912
16913 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16914
16915 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16916
16917 * keyboard.c (Vpre_help_message): Remove.
16918 (show_help_echo): Remove default C code.
16919
16920 * dired.c (directory_files_internal, file_name_completion):
16921 Only call ENCODE_FILE if the string is indeed decoded.
16922
16923 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16924
16925 * Makefile.in (TOOLKIT_DEFINES): Remove.
16926 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16927
16928 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16929
16930 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16931 (mactoolbox.o): New target.
16932
16933 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16934 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16935
16936 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16937 Use mac_set_frame_window_background instead of XSetWindowBackground.
16938 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16939 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16940 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16941 instead of SetWindowTitleWithCFString.
16942 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16943 Move function to mactoolbox.c.
16944 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16945 Use mac_set_window_modified instead of SetWindowModified.
16946 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16947 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16948 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16949 FrontNonFloatingWindow. Use mac_activate_window instead of
16950 ActivateWindow. Use mac_active_non_floating_window instead of
16951 ActiveNonFloatingWindow.
16952 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16953 Use mac_show_hourglass and mac_hide_hourglass.
16954 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16955 instead of GetGlobalMouse.
16956 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16957 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16958 Use mac_bring_window_to_front instead of BringToFront.
16959 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16960 mactoolbox.c.
16961 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16962 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16963 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16964 mactoolbox.c.
16965
16966 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16967 (XtPointer): Move typedef from macmenu.c.
16968 (enum button_type): Move enum from macmenu.c.
16969 (widget_value): Move typedef from macmenu.c.
16970 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16971 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16972 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16973 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16974 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16975 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16976 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16977 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16978 (Selection): Move typedef from macselect.c.
16979 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16980 macterm.c.
16981 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16982 (mac_is_window_collapsed, mac_bring_window_to_front)
16983 (mac_send_window_behind, mac_hide_window, mac_show_window)
16984 (mac_collapse_window, mac_front_non_floating_window)
16985 (mac_active_non_floating_window, mac_activate_window)
16986 (mac_move_window_structure, mac_move_window, mac_size_window)
16987 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16988
16989 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16990 (enum mac_menu_kind): Move enum to mactoolbox.c.
16991 (min_menu_id): Move variable to mactoolbox.c.
16992 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16993 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16994 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16995 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16996 [TARGET_API_MAC_CARBON]: Likewise.
16997 (XtPointer): Move typedef to macgui.h.
16998 (enum button_type): Move enum to macgui.h.
16999 (widget_value): Move typedef to macgui.h.
17000 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17001 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17002 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17003 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17004 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17005 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17006 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17007 (popup_activated_flag): Make variable non-static.
17008 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17009 (add_menu_item, fill_menu, dispose_menus):
17010 Move functions to mactoolbox.c.
17011 (restore_show_help_function, menu_target_item_handler)
17012 (install_menu_target_item_handler, mac_handle_dialog_event)
17013 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17014 [TARGET_API_MAC_CARBON]: Likewise.
17015 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17016 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17017 (find_and_call_menu_selection, name_is_separator): Make function
17018 non-static.
17019 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17020 to mactoolbox.c.
17021 (set_frame_menubar): Don't call install_menu_quit_handler.
17022 (menu_item_selection): New variable.
17023 (mac_menu_show): Use create_and_show_popup_menu.
17024 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17025 selection but set variable menu_item_selection. All uses changed.
17026 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17027 Call install_menu_quit_handler. Move to mactoolbox.c.
17028
17029 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17030 (Selection): Move typedef to macgui.h.
17031 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17032 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17033 Make variables non-static.
17034 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17035 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17036 Make functions non-static.
17037 (Vmac_service_selection) [MAC_OSX]: Likewise.
17038 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17039 (mac_valid_selection_target_p, mac_clear_selection)
17040 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17041 (mac_put_selection_value, mac_selection_has_target_p)
17042 (mac_get_selection_value, mac_get_selection_target_list)
17043 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17044 Move functions to mactoolbox.c.
17045 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17046 Likewise.
17047 (copy_scrap_flavor_data, mac_handle_service_event)
17048 (install_service_handler) [MAC_OSX]: Likewise.
17049 (syms_of_macselect) <Vmac_dnd_known_types>:
17050 Use mac_dnd_default_known_types.
17051
17052 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17053 Move to mactoolbox.c.
17054 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17055 (Fx_selection_owner_p): Add EXFUN.
17056 (install_window_handler, remove_window_handler, XSetWindowBackground):
17057 Remove externs.
17058 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17059 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17060 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17061 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17062 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17063 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17064 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17065 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17066 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17067 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17068 (mac_valid_selection_target_p, mac_clear_selection)
17069 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17070 (mac_put_selection_value, mac_selection_has_target_p)
17071 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17072 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17073 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17074 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17075 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17076 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17077 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17078 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17079 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17080
17081 * mactoolbox.c: New file.
17082
17083 2008-04-18 Jason Rumney <jasonr@gnu.org>
17084
17085 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17086
17087 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17088
17089 * character.c (Fmultibyte_char_to_unibyte):
17090 Return latin1 chars unchanged.
17091
17092 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17093 relocated if it points to `name'.
17094
17095 2008-04-17 Kenichi Handa <handa@m17n.org>
17096
17097 * data.c (Faset): Allow setting a multibyte character in an
17098 ASCII-only unibyte string.
17099
17100 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17101
17102 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17103
17104 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17105 done in config.h.
17106
17107 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
17108
17109 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17110 (Fchar_direction): Add usage in the docstring.
17111
17112 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
17113
17114 * keyboard.c (read_key_sequence): Remove always-true checks.
17115
17116 2008-04-14 Jason Rumney <jasonr@gnu.org>
17117
17118 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17119 compatibility struct, for better underline positioning.
17120
17121 2008-04-13 David Hansen <david.hansen@gmx.net>
17122
17123 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17124 string.
17125
17126 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17127
17128 * m/hp800.h (XUINT, XSET): Remove.
17129
17130 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
17131
17132 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17133 previous change.
17134
17135 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17136
17137 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17138 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17139
17140 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17141
17142 * keymap.h (map_keymap_canonical): Declare.
17143 * xmenu.c (single_keymap_panes): Use it.
17144
17145 2008-04-11 Glenn Morris <rgm@gnu.org>
17146
17147 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17148 set the target's value to that of the alias.
17149
17150 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17151
17152 * term.c (set_tty_color_mode): Left over typo.
17153
17154 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
17155
17156 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17157 only after check for file name handler functions. Signal, when
17158 native functionality is not supported.
17159 (syms_of_fileio): Declare it unconditionally.
17160
17161 2008-04-10 Jason Rumney <jasonr@gnu.org>
17162
17163 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17164 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17165
17166 * w32.c (logon_network_drive): Also logon to remote drives that
17167 are mapped to drive letters.
17168
17169 2008-04-10 Glenn Morris <rgm@gnu.org>
17170
17171 * xdisp.c (truncate-partial-width-windows): Doc fix.
17172
17173 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17174
17175 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17176 Move functions to minibuffer.el.
17177 (syms_of_fileio): Don't declare them.
17178
17179 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17180
17181 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17182 (syms_of_minibuf): Remove its initialization.
17183
17184 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17185
17186 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
17187
17188 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17189
17190 2008-04-09 Jason Rumney <jasonr@gnu.org>
17191
17192 * makefile.w32-in (distclean): Delete makefile too.
17193 (maintainer-clean): New target.
17194
17195 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17196
17197 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17198 for new font backend and composite cases.
17199
17200 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17201
17202 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17203 Most of the code moved to run_timers.
17204 (do_pending_atimers): Call run_timers.
17205 (run_timers): New function.
17206
17207 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17208 run atimers.
17209
17210 * process.c (wait_reading_process_output): The same as above.
17211
17212 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17213
17214 * minibuf.c (last_exact_completion): Remove variable.
17215 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17216 (complete_and_exit_1, complete_and_exit_2)
17217 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17218 (Fdisplay_completion_list, display_completion_list_1)
17219 (Fminibuffer_completion_help, Fself_insert_and_exit)
17220 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17221 minibuffer.el.
17222 (syms_of_minibuf): Remove corresponding initializations.
17223
17224 * keyboard.c (Qdeactivate_mark): New var.
17225 (command_loop_1): Use it to call `deactivate-mark'.
17226 (syms_of_keyboard): Initialize it.
17227
17228 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17229 to another frame.
17230 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17231 Don't call set_tty_color_mode.
17232 (store_frame_param): Reset previous_frame rather than call
17233 set_tty_color_mode.
17234 * term.c (set_tty_color_mode): Rewrite.
17235 * dispextern.h (set_tty_color_mode): New type.
17236 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17237
17238 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17239
17240 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17241 for generic chars, which do not exist any more in emacs-unicode.
17242
17243 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
17244
17245 * coding.c (detect_coding_emacs_mule)
17246 (Ffind_operation_coding_system): Fix typo.
17247
17248 2008-04-08 Jason Rumney <jasonr@gnu.org>
17249
17250 * w32uniscribe.c (SNAME): Extract only symbol name.
17251
17252 * w32font.h (struct w32_metric_cache): New struct.
17253 (w32font_info): Use it.
17254 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17255 (CACHE_BLOCKSIZE): New constants.
17256
17257 * w32font.c (Qja, Qko, Qzh): New symbols.
17258 (syms_of_w32font): Initialise them.
17259 (font_matches_spec): Use them to filter by language.
17260 (recompute_cached_metrics): Remove function.
17261 (compute_metrics, clear_cached_metrics): New functions.
17262 (w32font_encode_char): Use them to manage metric cache.
17263 (w32font_text_extents): Cache metrics for all glyphs on demand.
17264 Delay converting glyph indices to WORD until needed.
17265 (w32font_open_internal): Initialize metric cache to empty.
17266 (registry_to_w32_charset): Charset should always be a symbol.
17267 (fill_in_logfont, list_all_matching_fonts): Family should
17268 always be a symbol.
17269
17270 2008-04-06 Jason Rumney <jasonr@gnu.org>
17271
17272 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17273 Give up if glyph indices not supported. Use uniscribe obtained
17274 ABC widths for individual metrics. Map glyph clusters back to
17275 characters using fClusterStart flag. Return number of glyphs
17276 produced, not chars processed.
17277 (uniscribe_shape): Map char at FROM to current glyph.
17278
17279 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17280
17281 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17282 Use SetMenuItemHierarchicalMenu.
17283
17284 2008-04-05 Jason Rumney <jasonr@gnu.org>
17285
17286 * image.c (pbm_load): Allow color values up to 65535.
17287 Throw an error if max_color_idx is outside the supported range.
17288 Report an error when image size is invalid.
17289 Read two bytes at a time when raw images have max_color_idx above 255.
17290
17291 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17292
17293 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17294 append "CCL: Quitted" when the CCL program is quitted.
17295 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17296
17297 * ccl.h (struct ccl_program): New member quit_silently.
17298
17299 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
17300
17301 * search.c (compile_pattern_1): Treat non-nil and non-string of
17302 search-spaces-regexp as nil.
17303
17304 * minibuf.c (Fassoc_string): Tweak docstring.
17305
17306 2008-04-05 Eli Zaretskii <eliz@gnu.org>
17307
17308 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17309 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17310 2008-03-14 to force inode be positive.
17311
17312 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17313 _S_* ones, since we now use our own sys/stat.h.
17314 (stat, fstat): Don't mangle the inode number.
17315 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17316
17317 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17318
17319 * frame.h (struct frame): Give one more bit to `visible' since we use
17320 values larger than 1 to indicate obscured frames on ttys.
17321
17322 * keymap.c (Qkeymap_canonicalize): New var.
17323 (Fmap_keymap_internal): New fun.
17324 (describe_map): Use keymap-canonicalize.
17325
17326 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17327 (Fundo_boundary): Set them.
17328 (syms_of_undo): Initialize them.
17329 (record_point): Use them instead of last_point_position*.
17330 (last_undo_buffer): Change type.
17331
17332 2008-04-04 Jason Rumney <jasonr@gnu.org>
17333
17334 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17335 (recompute_cached_metrics): Don't set ascent and descent per char.
17336
17337 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17338 (uniscribe_check_otf): Add GC protection before consing.
17339 Rearrange loop for counting features.
17340
17341 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17342
17343 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17344 buffer with byte-size of source buffer.
17345
17346 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
17347
17348 * callint.c (Fcall_interactively): Handle temporary region even
17349 when shift-select-mode is off.
17350
17351 2008-04-03 Jason Rumney <jasonr@gnu.org>
17352
17353 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17354
17355 2008-04-03 Kenichi Handa <handa@m17n.org>
17356
17357 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17358 (CATEGORY_MASK_UTF_16): Likewise.
17359 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17360 binary file.
17361 (detect_coding): Add null-byte detection for a binary file.
17362 (detect_coding_system): Likewise.
17363
17364 2008-04-03 Jason Rumney <jasonr@gnu.org>
17365
17366 * w32uniscribe.c: New file.
17367
17368 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17369
17370 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17371
17372 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17373 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17374 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17375 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17376 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17377 (Qphonetic): New symbols.
17378 (syms_of_w32font): Initialize them.
17379 (font_supported_scripts): Use them.
17380 (w32font_list_family): List all charsets.
17381 (w32font_text_extents, recompute_cached_metrics): Fix metric
17382 calculations.
17383 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17384 Give opentype fonts their own format.
17385 (font_matches_spec): New arguments backend and logfont.
17386 Handle :otf spec for uniscribe backend.
17387 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17388 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17389
17390 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17391 font backend.
17392 (globals_of_w32fns): Initialize uniscribe font backend.
17393
17394 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17395 dependencies.
17396 (w32uniscribe.$(O)): New file to build.
17397 (FONT_OBJ): Include w32uniscribe.$(O).
17398 (LIBS): Add uniscribe libraries.
17399
17400 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17401
17402 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
17403
17404 * callint.c (Vshift_select_mode): New var.
17405 (Finteractive): Document new ^ spec.
17406 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17407 is present.
17408
17409 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17410 (command_loop_1): Avoid running the direct display versions of
17411 forward-char and backward-char if shift-selection may occur.
17412 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17413 shift-translation takes place.
17414
17415 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17416 avoid clobbering by define-minor-mode.
17417
17418 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17419 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17420
17421 * syntax.c (Fforward_word): Add ^ interactive spec.
17422
17423 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17424 (Fscroll_right): Add ^ interactive spec.
17425
17426 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17427
17428 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17429
17430 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17431
17432 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17433
17434 2008-03-31 Juri Linkov <juri@jurta.org>
17435
17436 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17437
17438 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17439
17440 * gtkutil.c (xg_set_geometry): Fix indentation.
17441 (xg_resize_outer_widget): Remove.
17442 (x_wm_size_hint_off): Fix indentation.
17443 (xg_frame_set_char_size): Call flush_and_sync after
17444 gtk_window_resize.
17445 (x_wm_set_size_hint): Pass NULL as geometry window to
17446 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17447 Add menu bar and tool bar height to base height.
17448 (xg_update_frame_menubar, free_frame_menubar)
17449 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17450 (update_frame_tool_bar, free_frame_tool_bar):
17451 Change xg_resize_outer_widget to xg_frame_set_char_size.
17452
17453 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
17454
17455 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17456 (Fdbus_call_method): New parameter TIMEOUT.
17457 (dbus-send-signal): Optimize UNGCPRO call.
17458
17459 2008-03-29 Juri Linkov <juri@jurta.org>
17460
17461 * window.c (Fdisplay_buffer): Move call to
17462 Vsplit_window_preferred_function out of conditions that check
17463 if window is eligible for vertical splitting.
17464 When Vsplit_window_preferred_function is non-nil, call it and use
17465 its non-nil return value as window. Otherwise, continue doing
17466 vertical splitting using Fsplit_window with arg horflag=nil.
17467 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17468 default value from `split-window' to nil.
17469
17470 2008-03-29 Juri Linkov <juri@jurta.org>
17471
17472 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17473 for interactive code letters 'b' and 'B'.
17474
17475 2008-03-29 Eli Zaretskii <eliz@gnu.org>
17476
17477 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17478 multibyte string.
17479
17480 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17481
17482 * keyboard.c (pending_funcalls): New var.
17483 (timer_check): Run it.
17484 (syms_of_keyboard): Initialize it.
17485 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17486 (Vdelete_terminal_functions): New vars.
17487 (syms_of_terminal): Initialize them.
17488 (Fdelete_terminal): Run delete-terminal-functions.
17489 * xdisp.c (safe_eval): Rewrite.
17490 (safe_call2): New fun.
17491 * frame.c (Qdelete_frame_functions): New var.
17492 (syms_of_frame): Initialize it.
17493 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17494 * lisp.h (safe_call2, pending_funcalls): Declare.
17495
17496 2008-03-28 Andreas Schwab <schwab@suse.de>
17497
17498 * indent.c (Fmove_to_column): Move declaration before statements.
17499
17500 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17501
17502 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17503 (struct frame): Use bit fields for boolean vars.
17504
17505 * process.c (server_accept_connection): Simplify naming.
17506 (emacs_get_tty_pgrp): Use SDATA.
17507
17508 * coding.c (decode_coding_object): Fix last change.
17509
17510 2008-03-27 Jason Rumney <jasonr@gnu.org>
17511
17512 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17513
17514 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17515
17516 * charset.c (Fdefine_charset_internal): Change the way of
17517 registering charsets in Vcharset_order_list.
17518 (syms_of_charset): Make the charset `eight-bit' supplementary.
17519
17520 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17521
17522 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17523 operations, to avoid having the difference between pointers
17524 overflow.
17525
17526 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17527
17528 * indent.c (check_display_width): New fun.
17529 (scan_for_column): Use it.
17530
17531 * data.c (syms_of_data): Mark most-positive-fixnum and
17532 most-negative-fixnum as constants.
17533
17534 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17535
17536 * indent.c (scan_for_column): Extract from current_column_1.
17537 Merge with the same code from Fmove_to_column.
17538 (current_column_1, Fmove_to_column): Use it.
17539
17540 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17541
17542 * keymap.c (map_keymap_internal): New fun.
17543 (map_keymap): Use it.
17544 (Fmap_keymap_internal): New fun.
17545 (Fmap_keymap): Remove left-out test from before make_save_value.
17546
17547 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17548
17549 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17550 Use XCAR/XCDR.
17551
17552 * process.h (struct Lisp_Process): Remove filter_multibyte.
17553 * process.c (QCfilter_multibyte): Remove.
17554 (setup_process_coding_systems): Don't use filter_multibyte.
17555 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17556 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17557 (Fset_process_filter_multibyte): Change the coding-system to
17558 approximate the previous behavior.
17559 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17560 coding-system.
17561
17562 * coding.c (decode_coding_object): When not decoding into a buffer,
17563 obey the coding system's preference of (uni|multi)byte.
17564
17565 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17566
17567 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17568 every char is changed and has a different byte-length.
17569 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17570 Fix int -> EMACS_INT.
17571
17572 2008-03-23 David Hansen <david.hansen@gmx.net>
17573
17574 * dbusbind.c (xd_read_message): Remove extra copying of message
17575 strings. Check for NULL `interface' or `member'.
17576
17577 2008-03-22 Eli Zaretskii <eliz@gnu.org>
17578
17579 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17580 cFileName a file name that includes `?' characters, use the 8+3
17581 alias in cAlternateFileName instead.
17582
17583 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17584
17585 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17586
17587 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17588
17589 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17590 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17591 work on current_buffer only instead (that was already the case
17592 for some of the code anyway).
17593 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17594 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17595 (SET_PT, SET_PT_BOTH): Adjust.
17596 * intervals.h (set_point, temp_set_point, set_point_both)
17597 (temp_set_point_both): Remove redundant declarations.
17598
17599 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17600
17601 * fileio.c (Finsert_file_contents):
17602 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17603 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17604 when buffer != current_buffer anyway.
17605
17606 2008-03-20 Andreas Schwab <schwab@suse.de>
17607
17608 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17609 as default.
17610
17611 2008-03-19 Jason Rumney <jasonr@gnu.org>
17612
17613 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17614 (syms_of_w32fns): Initialize them.
17615 (HOURGLASS_ID): New constant.
17616 (x_window_to_frame): Don't check hourglass_window.
17617 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17618 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17619 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17620 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17621 Only change the cursor if hourglass is not active.
17622 (Fx_create_frame): Initialize frame's current_cursor.
17623 (hourglass_atimer): Remove.
17624 (hourglass_started): New function.
17625 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17626 (show_hourglass): Adapt to w32, changing argument to frame.
17627
17628 * w32term.h (struct w32_output): Remove hourglass_window.
17629 Add current_cursor.
17630
17631 * eval.c (call_debugger, Fsignal):
17632 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17633 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17634 (Fexecute_extended_command, cancel_hourglass_unwind):
17635 * minibuf.c (read_minibuf):
17636 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17637
17638 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17639
17640 * window.c (run_funs): New fun.
17641 (run_window_configuration_change_hook): Use it to run the buffer-local
17642 and the global part of the hook.
17643
17644 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17645 (unwind_format_mode_line): Restore selected window.
17646 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17647
17648 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17649
17650 * editfns.c (Fchar_equal): Check they are valid characters.
17651
17652 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17653
17654 2008-03-17 Andreas Schwab <schwab@suse.de>
17655
17656 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17657 against a charset.
17658
17659 * lisp.h (Fbuffer_list): Declare.
17660
17661 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
17662
17663 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17664 handlebox_widget is != 0.
17665
17666 2008-03-16 Juri Linkov <juri@jurta.org>
17667
17668 * callint.c (Fcall_interactively): For interactive code letters
17669 'b' and 'B' put the buffer list into the list of default "future"
17670 values of the minibuffer.
17671
17672 2008-03-16 Andreas Schwab <schwab@suse.de>
17673
17674 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17675 modifiers.
17676
17677 * regex.c (re_match_2_internal): Correct matching of a charset
17678 against latin-1 characters.
17679
17680 2008-03-16 Kenichi Handa <handa@m17n.org>
17681
17682 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17683 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17684 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17685 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17686 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17687 CHAR_STRING_ADVANCE.
17688 (produce_chars): Fix for the case that the source and the
17689 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17690 instead of CHAR_STRING_ADVANCE.
17691 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17692 STRING_CHAR_ADVANCE.
17693
17694 2008-03-15 Andreas Schwab <schwab@suse.de>
17695
17696 * regex.c (re_match_2_internal): Correct matching of eight bit
17697 characters in unibyte strings.
17698
17699 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17700
17701 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17702 at end of range when it coincides with the end of the buffer.
17703
17704 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17705
17706 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17707
17708 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17709
17710 2008-03-14 Jason Rumney <jasonr@gnu.org>
17711
17712 * editfns.c (initial_tz): New variable.
17713 (syms_of_editfns): Initialize it.
17714 (Fset_time_zone_rule): Set it when first called.
17715 Use it when TZSTRING is nil.
17716
17717 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17718 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17719 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17720 (globals_of_w32fns): Initialize them.
17721 (compute_tip_xy): Use them to position tooltips.
17722
17723 2008-03-14 Glenn Morris <rgm@gnu.org>
17724
17725 * emacs.c (main): Revert previous change.
17726 (standard_args): Revert -internal-script back to -scriptload,
17727 and remove the long-option form.
17728
17729 2008-03-13 Glenn Morris <rgm@gnu.org>
17730
17731 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17732 Remove option -enable-font-backend.
17733
17734 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17735
17736 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17737
17738 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17739
17740 * xterm.c (x_connection_closed): For GTK: If this is the last
17741 terminal just exit without closing the display.
17742
17743 2008-03-11 Jason Rumney <jasonr@gnu.org>
17744
17745 * w32font.c (w32font_full_name): Use floor to round.
17746
17747 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17748
17749 * sound.c (alsa_configure): Declare vol at beginning of block.
17750
17751 * fontset.c (Ffontset_info): Remove extra semicolon.
17752
17753 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17754
17755 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17756 size of resulting string.
17757
17758 2008-03-10 Jason Rumney <jasonr@gnu.org>
17759
17760 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17761
17762 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17763
17764 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17765 Don't pretend as if characters with display property haven't been
17766 consumed for string-replacing-string case.
17767
17768 2008-03-08 Kim F. Storm <storm@cua.dk>
17769
17770 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17771 (get_next_display_element, next_element_from_string)
17772 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17773
17774 2008-03-08 Andreas Schwab <schwab@suse.de>
17775
17776 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17777
17778 2008-03-06 Jason Rumney <jasonr@gnu.org>
17779
17780 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17781 when charset not specified. Only translate ANSI to unicode when
17782 font_type is truetype.
17783 (w32font_coverage_ok): New function.
17784 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17785
17786 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17787
17788 * lread.c (Fread_char): Resolve modifiers.
17789 (Fread_char_exclusive): Likewise.
17790
17791 * character.c (char_resolve_modifier_mask): New function.
17792 (char_string): Use char_resolve_modifier_mask.
17793 (Fchar_resolve_modifiers): New function.
17794 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17795 function.
17796
17797 2008-03-04 Jason Rumney <jasonr@gnu.org>
17798
17799 * makefile.w32-in: Always include w32font.c in the build.
17800 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17801
17802 2008-03-04 Andreas Schwab <schwab@suse.de>
17803
17804 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17805 (versionclean): Likewise.
17806
17807 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17808
17809 * .cvsignore: Add oo.
17810
17811 2008-03-03 Andreas Schwab <schwab@suse.de>
17812
17813 * coding.c (decode_coding_object): Inhibit gap shrinking while
17814 decoding in place.
17815
17816 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17817
17818 * w32term.c: Remove unused include "gnu.h".
17819 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17820
17821 * gnu.h: Rename to ...
17822 * emacs-icon.h: ... this.
17823 * xterm.c: Use emacs-icon.h instead of gnu.h.
17824 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17825
17826 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17827
17828 * w32font.c: Include math.h.
17829
17830 2008-03-03 Jason Rumney <jasonr@gnu.org>
17831
17832 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17833 Compute options separately.
17834 (w32font_open_internal): Set glyph_idx before caching metrics.
17835
17836 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17837 Define if system headers don't.
17838 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17839 (w32font_encode_char): Don't declare here.
17840
17841 * w32font.c (Quniscribe, QCformat): New symbols.
17842 (syms_of_w32font): Define them.
17843 (w32font_has_char): Indicate uncertainty.
17844 (w32font_encode_char): Encode as glyph point. Make static.
17845 (recompute_cached_metrics): New function.
17846 (w32font_open_internal): Use it. Set font to use glyph points
17847 initially. Set format based on type of font.
17848 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17849 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17850 on it. Set format based on information available here.
17851 (add_font_entity_to_list): Identify backend based on opentype_only.
17852
17853 2008-03-02 Andreas Schwab <schwab@suse.de>
17854
17855 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17856
17857 * coding.c (decode_coding_big5, produce_chars):
17858 Fix typos in last change.
17859
17860 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17861
17862 * gnu.h: New icon.
17863
17864 2008-03-02 Kenichi Handa <handa@m17n.org>
17865
17866 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17867 `dos', don't decode '\r' if that is the last in the source.
17868 (decode_coding_utf_16, decode_coding_emacs_mule)
17869 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17870 (decode_coding_raw_text, decode_coding_charset): Likewise.
17871 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17872
17873 2008-03-01 Jason Rumney <jasonr@gnu.org>
17874
17875 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17876
17877 2008-03-01 Kim F. Storm <storm@cua.dk>
17878
17879 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17880
17881 2008-03-01 Jason Rumney <jasonr@gnu.org>
17882
17883 * w32font.c (w32font_full_name): New function.
17884 (w32font_open_internal): Use it.
17885
17886 2008-03-01 Kim F. Storm <storm@cua.dk>
17887
17888 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17889
17890 2008-03-01 Jason Rumney <jasonr@gnu.org>
17891
17892 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17893
17894 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17895
17896 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17897 xg_frame_resized when the event is for the edit widget.
17898
17899 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17900
17901 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17902 set_char_size.
17903 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17904 operations on widgets here. Just set frame size if needed.
17905 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17906 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17907 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17908 the whole frame.
17909 (xg_create_tool_bar): Move attachment of the tool bar to
17910 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17911 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17912
17913 2008-03-01 Jason Rumney <jasonr@gnu.org>
17914
17915 * w32fns.c (w32_msg_pump): Disable debug code.
17916
17917 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17918
17919 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17920
17921 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17922
17923 * xdisp.c (next_overlay_string): Don't set
17924 overlay_strings_at_end_processed_p if we're currently reading from
17925 a display string.
17926
17927 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17928
17929 * xdisp.c (get_overlay_strings_1): Fix typo.
17930
17931 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17932
17933 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17934
17935 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17936
17937 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17938
17939 * xdisp.c (display_mode_element): Cancel the previous change.
17940 (decode_mode_spec): Likewise.
17941 (handle_auto_composed_prop): Don't make composition if it->string
17942 is a string.
17943
17944 2008-02-27 Kim F. Storm <storm@cua.dk>
17945
17946 * lisp.h (GLYPH): Change type from int to struct with separate char
17947 and face_id members.
17948 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17949 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17950 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17951 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17952 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17953 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17954 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17955 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17956 handle new Lisp glyph code encoding, either an integer or a cons.
17957
17958 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17959 (GLYPH_ALIAS): Delete.
17960 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17961 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17962 (GLYPH_FROM_CHAR): Replace macro by ...
17963 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17964
17965 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17966 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17967 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17968 (GLYPH_INVALID_P): New macro.
17969 (spec_glyph_lookup_face): Update prototype.
17970
17971 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17972 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17973 new glyph code encoding.
17974 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17975 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17976
17977 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17978 Adapt to new glyph type and new glyph code encoding.
17979
17980 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17981
17982 * indent.c (current_column, current_column_1, Fmove_to_column)
17983 (compute_motion): Adapt to new glyph code encoding.
17984
17985 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17986
17987 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17988
17989 * process.c (wait_reading_process_output): Check for window
17990 changes caused by timers.
17991 Suggested by Johan Bockgård.
17992
17993 2008-02-27 Glenn Morris <rgm@gnu.org>
17994
17995 * emacs.c (USAGE1): Add `--disable-font-backend'.
17996
17997 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17998
17999 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18000 is made to the buffer.
18001
18002 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18003
18004 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18005 (face_at_string_position):
18006 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18007 (face_at_string_position):
18008 * xdisp.c (display_string, next_overlay_change):
18009 * buffer.h (overlays_at):
18010 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18011 Update callers.
18012
18013 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
18014
18015 * editfns.c (Fformat): Doc fix.
18016
18017 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
18018
18019 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18020 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18021 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18022
18023 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18024
18025 * buffer.c (Fbuffer_swap_text): New function.
18026 (syms_of_buffer): Defsubr it.
18027
18028 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
18029
18030 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18031
18032 2008-02-25 Jason Rumney <jasonr@gnu.org>
18033
18034 * w32font.c (w32font_draw): Draw one character at a time when padding.
18035
18036 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18037
18038 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18039 Handle a nil arg. Use run_window_configuration_change_hook.
18040 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18041 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18042 Use run_window_configuration_change_hook.
18043
18044 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18045
18046 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18047 1-pixel width.
18048
18049 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18050
18051 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18052 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18053 if the glyph in the font is zero pixel with.
18054
18055 * dispextern.h (struct glyph_string): New member padding_p.
18056
18057 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18058
18059 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18060
18061 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18062
18063 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18064
18065 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18066
18067 2008-02-25 Jason Rumney <jasonr@gnu.org>
18068
18069 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18070
18071 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18072
18073 Allow fine-grained image-cache flushing.
18074 * dispextern.h (struct image): Add `dependencies' field.
18075 (clear_image_caches): Change arg to Lisp_Object.
18076 * image.c (make_image): Initialize `dependencies' field.
18077 (clear_image_cache): Change arg to allow fine-grained flushing.
18078 Perform the flush even if image-cache-eviction-delay is nil.
18079 (clear_image_caches): Change arg to Lisp_Object.
18080 (Fclear_image_cache): Expand meaning of the argument.
18081 (mark_image): Mark `dependencies' field.
18082 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18083 (lface_hash): Use XHASH rather than XFASTINT.
18084 (face_at_buffer_position): Fix int -> EMACS_INT position.
18085 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18086 (select_frame_for_redisplay): Remove code duplication.
18087 (redisplay_internal): Adapt arg to call to clear_image_caches.
18088
18089 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18090
18091 * s/vms4-0.h:
18092 * s/vms4-2.h:
18093 * s/vms4-4.h:
18094 * s/vms5-5.h: Remove, unused.
18095
18096 * s/irix5-2.h:
18097 * s/irix6-0.h:
18098 * s/riscos5.h:
18099 * s/mach-bsd4-3.h:
18100 * m/mips4.h: Remove files for obsolete systems.
18101
18102 * Makefile.in:
18103 * filelock.c:
18104 * unexmips.c:
18105 * m/hp9000s300.h:
18106 * m/iris4d.h:
18107 * s/aix3-1.h:
18108 * s/hpux.h:
18109 * s/msdos.h:
18110 * s/usg5-0.h:
18111 * s/usg5-2-2.h:
18112 * s/usg5-2.h:
18113 * s/usg5-3.h: Remove references to obsolete variables.
18114
18115 * s/irix5-0.h: Remove, move all the contents ...
18116 * s/irix6-5.h: ... here. Simplify.
18117 * config.in: Regenerate.
18118
18119 2008-02-24 Jason Rumney <jasonr@gnu.org>
18120
18121 * w32term.c (x_draw_glyph_string_background): Clear the background
18122 manually when cleartype is in use.
18123 (x_draw_glyph_string_foreground): Draw text transparently when
18124 cleartype is in use.
18125
18126 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18127 a font into it unless we have to.
18128
18129 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18130
18131 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18132 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
18133
18134 2008-02-18 Jason Rumney <jasonr@gnu.org>
18135
18136 * w32fns.c (Fw32_shell_execute): Encode parameters.
18137
18138 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18139
18140 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18141
18142 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
18143
18144 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18145
18146 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18147
18148 * xterm.c (x_set_offset): Don't change the gravity if
18149 CHANGE_GRAVITY is -1.
18150
18151 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
18152
18153 * fileio.c (auto_save_error_occurred): New var.
18154 (auto_save_error): Set it.
18155 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18156 error occurred.
18157
18158 2008-02-23 Eli Zaretskii <eliz@gnu.org>
18159
18160 * w32.c (globals_of_w32): Add initializations for
18161 g_b_init_get_sid_sub_authority and
18162 g_b_init_get_sid_sub_authority_count.
18163
18164 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18165
18166 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18167 (font_parse_xlfd): Use them for sanity check.
18168 (Finternal_set_font_style_table): Make sure the table is bijective.
18169
18170 Consolidate the image_cache to the terminal struct.
18171 * termhooks.h (P_): Remove redundant def.
18172 (struct terminal): New field `image_cache'.
18173 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18174 of FRAME_X_IMAGE_CACHE.
18175 * xterm.h (struct x_display_info): Remove image_cache field.
18176 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18177 * w32term.h (struct w32_display_info): Remove image_cache field.
18178 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18179 * macterm.h (struct mac_display_info): Remove image_cache field.
18180 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18181 * xterm.c (x_term_init):
18182 * w32term.c (w32_term_init):
18183 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18184 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18185 Remove declarations.
18186 (clear_image_caches, mark_image_cache): New declarations.
18187 * xfaces.c (clear_face_cache):
18188 * xdisp.c (redisplay_internal): Use clear_image_caches.
18189 * image.c (clear_image_cache): Don't check that a frame is on
18190 a window-system before checking if it shares the same cache.
18191 (clear_image_caches): New function.
18192 (Fclear_image_cache): Use it.
18193 (mark_image): Move from allo.c.
18194 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18195 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18196 (mark_object): Don't call mark_image_cache for frames.
18197 (mark_terminals): Call mark_image_cache.
18198
18199 * lisp.h (Fdelete_terminal): Declare.
18200
18201 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18202 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18203 wrong_type_argument.
18204
18205 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18206
18207 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18208 malayalam.el, and tamil.el. Add sinhala.el.
18209
18210 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18211
18212 * xterm.c (x_connection_closed): Consolidate identical tests.
18213 (x_delete_terminal): Don't crash if called via x_connection_closed.
18214
18215 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18216
18217 * xdisp.c (decode_mode_spec): New arg string.
18218 (display_mode_element): Adjust for the above change.
18219
18220 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18221
18222 * callint.c (Fcall_interactively): Use AREF.
18223
18224 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18225
18226 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18227
18228 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18229
18230 * xfns.c (Fx_show_tip): Set string to " " if empty.
18231
18232 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18233
18234 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18235 with Qt.
18236
18237 2008-02-17 Kenichi Handa <handa@m17n.org>
18238
18239 * ftfont.c (ftfont_shape): Return Lispy number.
18240
18241 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18242 for GCs.
18243 (Finternal_set_font_selection_order): Call font_update_sort_order
18244 only when enable_font_backend is set.
18245 (realize_x_face): Set face->font_info to that of default face only
18246 when enable_font_backend is set.
18247
18248 * xdisp.c (handle_composition_prop): Set it->c to the fist
18249 character of the composed region.
18250 (fill_composite_glyph_string): Set base_face->font_info to
18251 s->font_info. Get a face for ascii from base_face->ascii_face.
18252 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18253 with a face already decided.
18254 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18255 non-negative.
18256 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18257 call font_prepare_composition unconditionally.
18258
18259 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18260
18261 * xterm.h (struct x_display_info): New member font.
18262
18263 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18264 (x_set_mouse_face_gc, x_new_font): Likewise.
18265 (x_term_init): Setup display_info->font.
18266 (x_delete_terminal): Free display_info->font.
18267
18268 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18269
18270 * ftxfont.c (ftxfont_default_fid): Delete it.
18271 (ftxfont_open): Set xfont->fid to 0.
18272 (ftxfont_end_for_frame): Clear data specific to the frame and the
18273 font-driver.
18274
18275 * xftfont.c (xftfont_default_fid): Delete it.
18276 (xftfont_open): Set xfont->fid to 0.
18277
18278 * fontset.c (FONTSET_OBJLIST): New macro.
18279 (fontset_find_font): Update font-object list of the fontset.
18280 (free_realized_fontset): New function.
18281 (free_face_fontset): Call free_realized_fontset.
18282 (Ffont_info): Call font_close_object only when enable_font_backend
18283 is set.
18284
18285 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18286 [HAVE_NTGUI]: Include w32term.h.
18287 [MAC_OS]: Include macterm.ch.
18288 (font_otf_ValueRecord): Use make_number.
18289 (font_finish_cache): Fix handling of reference count.
18290 (font_clear_cache): Update num_fonts.
18291 (font_open_entity): Update smallest_char_width and
18292 smallest_font_height of the frame.
18293 (font_close_object): Update num_fonts.
18294 (Fclear_font_cache): Fix finding the target cache data.
18295
18296 2008-02-16 Glenn Morris <rgm@gnu.org>
18297
18298 * fontset.c (Finternal_char_font): Fix compilation warning.
18299
18300 2008-02-16 Eli Zaretskii <eliz@gnu.org>
18301
18302 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18303 instead of char arrays. Enlarge the size of array passed to
18304 get_token_information.
18305
18306 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18307 warnings.
18308
18309 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18310
18311 * .gdbinit: Don't set `args', it breaks gdb --args.
18312
18313 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18314
18315 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18316 within a narrowed buffer.
18317
18318 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18319
18320 * coding.c (decode_coding_object, encode_coding_object):
18321 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18322
18323 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18324
18325 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18326 hardcoding 1.
18327 (detect_coding_system):
18328 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18329 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18330 * insdel.c (insert_from_gap):
18331 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18332 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18333 (string_to_multibyte):
18334 * character.c (chars_in_text, multibyte_chars_in_text):
18335 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18336
18337 * character.h (FETCH_STRING_CHAR_ADVANCE)
18338 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18339 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18340 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18341
18342 * casefiddle.c (casify_region): Only call after-change and composition
18343 functions on the part of the region that was changed.
18344
18345 * keyboard.c (read_avail_input):
18346 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18347
18348 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18349
18350 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18351 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18352
18353 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
18354
18355 * w32menu.c (push_submenu_start, push_submenu_end)
18356 (push_left_right_boundary, push_menu_pane, push_menu_item):
18357 * keyboard.c (read_key_sequence): Don't pass args with side effects
18358 to AREF, it fails when compiling with -DENABLE_CHECKING.
18359
18360 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18361
18362 * Makefile.in (${lispsource}international/charprop.el):
18363 Delete this target.
18364
18365 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18366 emacs-unicode-2.
18367
18368 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18369
18370 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18371
18372 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18373
18374 * frame.c (Qnoelisp): New symbol.
18375 (syms_of_frame): Initialize it.
18376 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18377 harmless Elisp code, from a strong `force' from x_connection_closed.
18378 * frame.h (Qnoelisp): Declare.
18379 * xterm.c (x_connection_closed): Pass `noelisp'.
18380
18381 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18382 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18383 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18384 rather than `int' for the type of `type'.
18385
18386 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18387
18388 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18389
18390 * Makefile.in (GNUC): Remove support for gcc-1.x.
18391
18392 2008-02-10 Richard Stallman <rms@gnu.org>
18393
18394 * lisp.h (ASET): Use AREF, not ASLOT.
18395
18396 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18397
18398 * lisp.h (ASET): Check bounds.
18399
18400 2008-02-10 Glenn Morris <rgm@gnu.org>
18401
18402 * buffer.c (mode-name): Doc fix.
18403
18404 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18405
18406 * Makefile.in:
18407 * emacs.c:
18408 * gmalloc.c:
18409 * keyboard.c:
18410 * lisp.h:
18411 * m/ibm370aix.h:
18412 * process.c:
18413 * regex.c:
18414 * s/hpux.h:
18415 * sysdep.c:
18416 * sysselect.h:
18417 * systty.h:
18418 * unexec.c:
18419 * w32term.c:
18420 * xsmfns.c:
18421 * xterm.c: Remove code that deals with obsolete variables.
18422
18423 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18424
18425 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18426 nothing else needs it anymore.
18427
18428 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18429
18430 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18431 instead of unibyte_char_to_multibyte.
18432
18433 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18434
18435 * s/gnu-linux.h: Remove commented out code.
18436
18437 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18438
18439 * Makefile.in: Update what RMS says about using autoconf.
18440 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18441 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18442 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18443 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18444
18445 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18446
18447 * keymap.c (Fkey_description): Move side effect outside of macro call.
18448
18449 * xfaces.c (Finternal_make_lisp_face):
18450 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18451
18452 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18453 (syms_of_fontset): Use ASET.
18454
18455 * fns.c (concat): Move side effect outside of macro call.
18456 (hash_clear): Use ASET.
18457
18458 2008-02-08 Richard Stallman <rms@gnu.org>
18459
18460 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18461 If FORCE, and frame has a surrogate minibuffer for another frame,
18462 delete the other frame first.
18463
18464 2008-02-07 Timo Savola <timo.savola@iki.fi>
18465
18466 * xterm.c (x_detect_focus_change): Handle embed client message.
18467 (handle_one_xevent): Ditto.
18468 (handle_one_xevent): If embedded and we get a button press/release,
18469 request focus.
18470 (xembed_set_info, xembed_send_message): New functions.
18471 (x_make_frame_visible): Call xembed_set_info if embedded.
18472 (x_make_frame_invisible): Call xembed_set_info if embedded.
18473 (x_term_init): Initialize Xatom_XEMBED.
18474 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18475 (x_iconify_frame): Ditto.
18476
18477 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18478 (enum xembed_info, enum xembed_message, enum xembed_focus)
18479 (enum xembed_modifier, enum xembed_accelerator): New.
18480 (xembed_set_info, xembed_send_message): Declare.
18481 (FRAME_X_EMBEDDED_P): New.
18482
18483 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18484 gtk_plug_new.
18485
18486 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18487 window ID of a frame.
18488 (x_window): Reparent frame if embedded.
18489 (Fx_create_frame): Don't set border width if embedded.
18490
18491 * emacs.c (USAGE3): Add --parent-id.
18492 (standard_args): Ditto.
18493
18494 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18495
18496 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18497
18498 2008-02-07 Jim Meyering <meyering@redhat.com>
18499
18500 Use "do...while (0)", not "if (1)...else" in macro definitions.
18501 The latter provokes a warning from gcc about the empty else, when
18502 followed by ";". Also, without that trailing semicolon, it would
18503 silently swallow up any following statement.
18504 * syntax.h (SETUP_SYNTAX_TABLE)
18505 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18506 * buffer.h (DECODE_POSITION): Likewise.
18507 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18508 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18509 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18510 (FETCH_CHAR_ADVANCE): Likewise.
18511 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18512
18513 2008-02-07 Jim Meyering <meyering@redhat.com>
18514
18515 * lread.c [lint]: Don't include <sys/inode.h>.
18516
18517 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18518
18519 * xselect.c (x_handle_dnd_message):
18520 * xmenu.c (digest_single_submenu, xmenu_show):
18521 * xdisp.c (with_echo_area_buffer_unwind_data)
18522 (format_mode_line_unwind_data, unwind_format_mode_line)
18523 (display_menu_bar):
18524 * eval.c (Ffetch_bytecode):
18525 * doc.c (store_function_docstring):
18526 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18527 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18528 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18529
18530 2008-02-07 Kenichi Handa <handa@m17n.org>
18531
18532 * ftxfont.c (ftxfont_open): Don't set
18533 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18534
18535 * ftfont.c (ftfont_open): Fix previous change.
18536
18537 2008-02-06 Jason Rumney <jasonr@gnu.org>
18538
18539 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18540 Use cached metrics for ASCII characters.
18541 (w32font_open_internal): Don't set font's owning_frame.
18542 Cache metrics for ASCII characters.
18543
18544 * w32font.h (struct w32font_info): Add ascii_metrics.
18545 Remove owning_frame.
18546
18547 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18548
18549 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18550 to negative value.
18551
18552 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18553
18554 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18555
18556 * charset.c (syms_of_charset): Set QCtest and Qeq.
18557
18558 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18559
18560 * process.c (Fstart_process):
18561 * callproc.c (Fcall_process): Handle the case where
18562 Funhandled_file_name_directory returns nil.
18563
18564 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18565 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18566 * font.c (check_gstring): Use them and AREF to access the vector before
18567 we know it's really a gstring.
18568 (Ffont_shape_text): Fix typo.
18569 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
18570
18571 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18572 Declare.
18573
18574 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18575
18576 2008-02-05 Jason Rumney <jasonr@gnu.org>
18577
18578 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18579 Set smallest_font_height and smallest_char_width in display info.
18580
18581 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18582
18583 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18584
18585 2008-02-05 Miles Bader <miles@gnu.org>
18586
18587 * xfaces.c (get_lface_attributes, merge_named_face)
18588 (lookup_named_face, lookup_derived_face, realize_named_face):
18589 Revert 2008-02-01 change by cyd@stupidchicken.com.
18590
18591 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18592
18593 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18594 fallback fonts.
18595 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18596
18597 2008-02-04 Jason Rumney <jasonr@gnu.org>
18598
18599 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18600 set full_name.
18601 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18602
18603 2008-02-03 Jason Rumney <jasonr@gnu.org>
18604
18605 * makefile.w32-in (OBJ1): Include font.o here.
18606 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18607
18608 2008-02-02 Jason Rumney <jasonr@gnu.org>
18609
18610 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18611
18612 2008-02-01 Jason Rumney <jasonr@gnu.org>
18613
18614 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18615
18616 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18617
18618 2008-02-01 Andreas Schwab <schwab@suse.de>
18619
18620 * Makefile.in (shortlisp, lisp): Update for rename of
18621 ../lisp/language/myanmar.el.
18622
18623 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
18624
18625 * xfaces.c (get_lface_attributes): Delete function.
18626 (merge_named_face, lookup_named_face, lookup_derived_face)
18627 (realize_named_face): Call lface_from_face_name directly, and use
18628 the fact that merge_face_vectors does not alter its FROM argument.
18629
18630 2008-02-01 Jason Rumney <jasonr@gnu.org>
18631
18632 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18633 input in the default locale. Handle non-Unicode multibyte input.
18634
18635 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18636
18637 * fontset.c (reorder_font_vector): Exclude nil elements from the
18638 font group. Don't try multiple fonts.
18639 (fontset_font): Adjust for the above change.
18640 (Finternal_char_font): Return nil if the found font doesn't
18641 contain the character ch.
18642
18643 * Makefile.in (lisp, shortlisp): Add cham.el.
18644
18645 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18646
18647 * font.h (FONTP): Make it return 1 also for a font-object.
18648
18649 * .gdbinit (xfontset): New function.
18650
18651 * font.c (font_find_for_lface): Check if the character C is
18652 supported or not only for the first font.
18653
18654 * fontset.c (reorder_font_vector): Fix typo.
18655 (fontset_find_font): Don't add a font-spec specifying a script.
18656 Use 0 (not Qt) for the indication of empty font-group. Change the
18657 format of RFONT-DEF. Return Qt if no font in the font-group
18658 support the character.
18659 (fontset_font): Adjust for the above change. If no font was
18660 found the character, remember that.
18661 (face_for_char): Adjust for the change of RFONT-DEF.
18662 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18663 no font for the target.
18664 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18665
18666 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18667
18668 * font.c (font_load_for_face): Handle the case that the font in
18669 face->lface is a string.
18670
18671 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18672
18673 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18674
18675 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18676
18677 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18678 Fix previous change. If the frame is not on a window system,
18679 signal an error.
18680
18681 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18682
18683 * coding.c (decode_coding_object, encode_coding_object): Adjust
18684 marker positions after conversion.
18685
18686 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18687
18688 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18689
18690 * font.c (font_find_for_lface): Fix the handling of the return
18691 value of font_has_char.
18692 (Ffont_shape_text): Fix previous change.
18693
18694 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18695 (fontset_ref_and_range): Delete it.
18696 (fontset_find_font): Call char_table_ref_and_range instead of
18697 FONTSET_REF_AND_RANGE.
18698 (make_fontset): Don't setup font groups of Latin here.
18699 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18700 (new_fontset_from_font): Make the specified font the default for
18701 all Latin characters.
18702
18703 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18704
18705 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18706 is on a window system before accessing the fontset of the frame.
18707
18708 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18709
18710 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18711
18712 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18713 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18714
18715 * font.c (Ffont_shape_text): If the font driver doesn't have a
18716 shaper function, make zero-width glyphs to have at least one-pixel
18717 width. Fix setting of `to' field of glyphs.
18718
18719 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18720
18721 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18722 glyphs.
18723
18724 * font.h (struct font_driver): Improve docstring of member `shape'.
18725
18726 2008-02-01 Kenichi Handa <handa@m17n.org>
18727
18728 * composite.c (syms_of_composite): Fix docstring of
18729 auto-composition-function.
18730
18731 * font.h (LGLYPH_SIZE): New macro.
18732
18733 * font.c (Ffont_fill_gstring): Stop filling when a character not
18734 supported by the font is found.
18735 (Ffont_shape_text): When a shape callback function returns nil,
18736 try at most two more times with larger gstring.
18737 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18738
18739 * xdisp.c (handle_auto_composed_prop): Change the argument to
18740 auto-composition-function.
18741
18742 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18743 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18744 Lispy glyph and store it in the lgstring.
18745
18746 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18747
18748 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18749
18750 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18751
18752 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18753
18754 * fontset.c (Vfont_encoding_charset_alist): New variable.
18755 (syms_of_fontset): DEFVAR it.
18756 (reorder_font_vector, fontset_find_font): Optimize for the case of
18757 no need of reordering.
18758 (face_for_char): Map the charset property by
18759 Vfont_encoding_charset_alist.
18760
18761 2008-02-01 Jason Rumney <jasonr@gnu.org>
18762
18763 * w32font.c (logfonts_match): Don't check adstyle here.
18764 (font_matches_spec): Check here against physical font instead.
18765 (add_font_entity_to_list): Avoid some substitutions.
18766
18767 * font.c (font_parse_fcname): Default weight and slant to normal.
18768 (font_score): Prefer normal fonts if weight or slant unspecified.
18769 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18770 match freetype scores.
18771
18772 2008-02-01 Jason Rumney <jasonr@gnu.org>
18773
18774 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18775 font, as it may have been deleted.
18776 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18777 most common hyphenless variation.
18778 (logfonts_match): Check generic family.
18779 (font_matches_spec): Don't check generic family here.
18780 (fill_in_logfont): Set generic family based on adstyle.
18781
18782 * w32font.h (w32font_get_cache): Update declaration.
18783
18784 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18785
18786 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18787
18788 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18789 If none of the new drivers are available, call font_update_drivers
18790 with the old drivers.
18791
18792 * w32font.c (w32font_get_cache): Adjust the argument type.
18793
18794 * xfont.c (xfont_get_cache): Adjust the argument type.
18795
18796 * font.h (struct font_driver): Change argument type of get_cache.
18797
18798 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18799
18800 * font.c (Ffont_get): Fix arguments to Fassoc.
18801 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18802 (font_clear_cache): New function.
18803 (font_list_entities, font_matching_entity): Use font_get_cache.
18804 (font_update_drivers): Call font_clear_cache when finishing a driver.
18805
18806 * fontset.c (fontset_find_font): Fix previous change.
18807
18808 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18809
18810 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18811 dpyinfo->font_table.
18812 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18813 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18814
18815 * font.c (font_at): Handle the case that the arg C is negative.
18816 Handle the unibyte case.
18817 (Ffont_at): Call font_at with the arg C -1.
18818
18819 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18820 the position here, and call font_at with the arg C -1.
18821 Don't check the range of the existing composition at the point.
18822
18823 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18824
18825 * fontset.c (fontset_add): New args charset_id and family.
18826 Change caller.
18827 (load_font_get_repertory, fontset_find_font): Assume that
18828 font_spec is always a font-spec object.
18829 (Fset_fontset_font): Always store a font-spec object in a fontset.
18830
18831 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18832 instead of get_property_and_range.
18833
18834 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18835
18836 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18837 (xftfont_open): Don't keep locking face.
18838 (xftfont_close): Don't unlock face.
18839 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18840
18841 * fontset.c (fontset_find_font): Don't prefer a font of
18842 supplementary charset.
18843
18844 2008-02-01 Kenichi Handa <handa@m17n.org>
18845
18846 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18847 script, langsys_tag to langsys, new member script.
18848 (OTF_TAG_STR): Terminate by '\0'.
18849 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18850 listing to the script specified in that property. Fix arg to
18851 OTF_check_features.
18852
18853 2008-02-01 Jason Rumney <jasonr@gnu.org>
18854
18855 * w32font.h: New file.
18856
18857 * w32font.c: Include it.
18858 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18859 (w32font_open): Set owning_frame.
18860 (w32font_text_extents): Use owning_frame.
18861 (struct font_callback_data): Add opentype_only field.
18862 (add_font_entity_to_list): Use it to filter fonts.
18863 Don't check against full name.
18864 (w32font_list_internal): New function.
18865 (w32font_list): Use it.
18866 (w32font_match_internal): New function.
18867 (w32font_match): Use it.
18868 (w32font_open_internal): New function.
18869 (w32font_open): Use it.
18870 (w32font_get_cache, w32font_close, w32font_has_char)
18871 (w32font_encode_char, w32font_text_extents, w32font_draw):
18872 Make non-static.
18873
18874 * makefile.w32-in (w32font.o): Depend on w32font.h.
18875
18876 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18877
18878 * charset.c (Fdefine_charset_internal): Record a supplementary
18879 charset at the tail of Vcharset_order_list.
18880
18881 * font.c (Ffont_shape_text): Fix the return value.
18882
18883 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18884
18885 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18886
18887 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18888
18889 * ftfont.c (struct OpenTypeSpec): New struct.
18890 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18891 (ftfont_get_open_type_spec): New function.
18892 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18893
18894 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18895
18896 2008-02-01 Jason Rumney <jasonr@gnu.org>
18897
18898 * w32font.c (add_font_entity_to_list): Compare only the beginning
18899 of full name.
18900
18901 2008-02-01 Kenichi Handa <handa@m17n.org>
18902
18903 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18904 Never return HANDLED_RECOMPUTE_PROPS.
18905
18906 2008-02-01 Kenichi Handa <handa@m17n.org>
18907
18908 * font.c (font_gstring_produce): Delete it.
18909
18910 * composite.h (COMPOSITION_METHOD):
18911 Handle COMPOSITION_WITH_GLYPH_STRING.
18912
18913 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18914
18915 * xfont.c (Qx): Delete.
18916 (syms_of_xfont): Don't initialize Qx.
18917
18918 * composite.h (enum composition_method):
18919 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18920
18921 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18922
18923 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18924 (choose_face_font): Accept new form of font-spec.
18925
18926 * frame.h (font_driver_list): Declare it unconditionally.
18927 (struct frame): Define members font_driver_list and font_data_list
18928 unconditionally.
18929
18930 * fontset.c: Include "font.h" unconditionally.
18931 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18932 (Fset_fontset_font): Accept a font-spec object.
18933
18934 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18935 PIXEL_SIZE part a wild card.
18936
18937 * dispextern.h (struct glyph_string): Define members clip and
18938 num_clips unconditionally.
18939 (struct face): Define members font_info and extra unconditionally.
18940
18941 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18942 ftfont_info only when HAVE_LIBOTF is defined.
18943
18944 2008-02-01 Andreas Schwab <schwab@suse.de>
18945
18946 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18947 and end.
18948
18949 2008-02-01 Jason Rumney <jasonr@gnu.org>
18950
18951 * w32font.c (w32font_driver): Add new fields.
18952
18953 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18954
18955 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18956 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18957 (LIBES): Add @M17N_FLT_CFLAGS@.
18958
18959 * composite.c (compose_text): Don't treat the new style
18960 composition specially.
18961
18962 * emacs.c (main): Call syms_of_font unconditionally.
18963
18964 * font.h (FONT_ENTITY_NOT_LOADABLE)
18965 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18966 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18967 (struct font_driver): New member shape.
18968 (font_registry_charsets): Extern it.
18969 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18970 (font_otf_capability, font_drive_otf): Delete their externs.
18971
18972 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18973 (font_charset_alist, font_registry_charsets): Move from xfont.c
18974 and rename.
18975 (font_prop_validate_otf): New function.
18976 (font_property_table): Register it for QCotf.
18977 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18978 (font_drive_otf): Delete.
18979 (font_prepare_composition): New arg F. Adjust for the change of
18980 lispy gstring.
18981 (font_find_for_lface): New arg C.
18982 (font_load_for_face): Adjust for the change of font_find_for_lface.
18983 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18984 lispy gstring.
18985 (Ffont_shape_text): New function.
18986 (Fopen_font): If the font size is not given, use 12-pixel.
18987 (Ffont_at): New arg STRING.
18988 (syms_of_font): Initalize font_charset_alist.
18989 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18990 conditionally.
18991
18992 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18993 fonts of the same font-spec. Change the format of RFONT-DEF.
18994 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18995 Adjust for the change of RFONT-DEF.
18996 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18997
18998 * ftfont.h: New file.
18999
19000 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19001 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19002 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19003 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19004 font_otf_capability and font_drive_otf, set ftfont_shape.
19005 (ftfont_list): Adjust for the change of :otf property value.
19006 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19007 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19008 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19009 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19010 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19011 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19012
19013 * w32term.c (x_draw_composite_glyph_string_foreground):
19014 Adjust for the change of lispy gstring.
19015
19016 * xdisp.c (handle_composition_prop): Adjust for the change of
19017 lispy gstring. Call a function for auto-composition with the
19018 third arg it->window.
19019 (fill_composite_glyph_string): Adjust for the change of lispy string.
19020 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19021
19022 * xfaces.c (set_font_frame_param): Adjust for the change of
19023 font_find_for_lface.
19024
19025 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19026 (xfont_registry_charsets): Likewise. Change caller.
19027 (syms_of_xfont): Don't handle x_font_charset_alist.
19028
19029 * xftfont.c: Include "ftfont.h".
19030 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19031 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19032 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19033 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19034 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19035 Set xftfont_driver.shape to xftfont_shape.
19036
19037 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19038 the change of lispy gstring.
19039
19040 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19041
19042 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19043
19044 2008-02-01 Jason Rumney <jasonr@gnu.org>
19045
19046 * w32font.c (w32font_draw): Fill background manually.
19047
19048 2008-02-01 Jason Rumney <jasonr@gnu.org>
19049
19050 * font.c (Qfontp): Remove unused symbol.
19051 (QCantialias): New symbol.
19052 (syms_of_font): Define it.
19053 (font_property_table): Set a validator for QCantialias.
19054
19055 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19056 Define if not already.
19057 (QCfamily): Share with xfaces.c.
19058 (Qstandard, Qsubpixel, Qnatural): New symbols.
19059 (syms_of_w32font): Define them. Don't define QCfamily here.
19060 (w32_antialias_type, lispy_antialias_type): New functions.
19061 (w32_enumfont_pattern_entity): New arg requested_font.
19062 Set antialias parameter if non-default was requested.
19063 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19064
19065 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19066
19067 * lread.c (read1): Undo the previous change.
19068
19069 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19070
19071 * frame.c (Fdelete_frame): Call font_update_drivers only when
19072 USE_FONT_BACKEND is defined.
19073
19074 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19075
19076 * font.h (struct font_bitmap): New member bits_per_pixel.
19077 (struct font_driver): New members start_for_frame and end_for_frame.
19078 (struct font_data_list): New struct.
19079 (font_put_frame_data, font_get_frame_data): Extern them.
19080
19081 * frame.h (struct frame): New member font_data_list.
19082
19083 * font.c (font_update_drivers): Call driver->start_for_frame and
19084 driver->end_for_frame at proper timings.
19085 (font_put_frame_data, font_get_frame_data): New functions.
19086 (Ffont_spec): Add usage in the docstring.
19087
19088 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19089 (Fdelete_frame): Call font_update_drivers.
19090
19091 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19092 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19093 (xftfont_get_xft_draw): New function.
19094 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19095 (xftfont_end_for_frame): New function.
19096 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19097
19098 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19099 Change argument. Cache GCs in the per-frame data.
19100 (struct ftxfont_frame_data): New struct.
19101 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19102 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19103 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19104 (ftxfont_end_for_frame): New function.
19105 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19106
19107 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19108
19109 2008-02-01 Kenichi Handa <handa@m17n.org>
19110
19111 * xselect.c (Vselection_coding_system)
19112 (Vnext_selection_coding_system): Delete them.
19113 (syms_of_xselect): Don't declare selection-coding-system and
19114 next-selection-coding-system. They are declared in select.el.
19115
19116 2008-02-01 Jason Rumney <jasonr@gnu.org>
19117
19118 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19119
19120 * w32fns.c: Include imm.h.
19121 (get_composition_string_fn, get_ime_context_fn): New optional
19122 system functions.
19123 (globals_of_w32fns): Load them from imm32.dll.
19124 (ignore_ime_char): New flag.
19125 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19126 WM_IME_ENDCOMPOSITION messages.
19127
19128 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19129 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19130
19131 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19132
19133 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19134 (READCHAR_REPORT_MULTIBYTE): New macro.
19135 (readchar): New 2nd arg MULTIBYTE.
19136 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19137 Make symbol's name multibyte according to the multibyteness of the
19138 source.
19139
19140 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19141
19142 * xfaces.c (face_for_overlay_string): Call lookup_face with
19143 correct arguments (fix of synching with the trunk).
19144
19145 2008-02-01 Kenichi Handa <handa@m17n.org>
19146
19147 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19148 (font_prop_validate_non_neg, font_prop_validate_spacing):
19149 Delete argument prop_index.
19150 (font_property_table): Change arguments to validater. Change Callers.
19151 (font_lispy_object): Delete.
19152 (font_at): Use font_find_object instead fo font_lispy_object.
19153
19154 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19155
19156 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19157 and file names.
19158
19159 2008-02-01 Jason Rumney <jasonr@gnu.org>
19160
19161 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19162 (font_matches_spec): Remove debug output.
19163 (add_font_entity_to_list): Avoid using substituted fonts.
19164
19165 2008-02-01 Jason Rumney <jasonr@gnu.org>
19166
19167 * doc.c (Fsnarf_documentation):
19168 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19169
19170 2008-02-01 Miles Bader <miles@gnu.org>
19171
19172 * dispextern.h (struct glyph_row): Only define "clip" field if
19173 HAVE_WINDOW_SYSTEM is defined.
19174
19175 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19176
19177 Fix up multi-tty merge.
19178
19179 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19180 and indentation.
19181
19182 * xfaces.c (free_realized_face, clear_face_gcs):
19183 Include font_done_for_face in the input_blocked section, just in case.
19184
19185 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19186 (get_char_face_and_encoding): Undo last change and remove the *other*
19187 duplicate definition (i.e. keep the one that's better scoped and that
19188 includes code for the font-backend).
19189
19190 * terminal.c (create_terminal): Default keyboard_coding to
19191 `no-conversion' and terminal_coding to `undecided'.
19192
19193 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19194
19195 * fontset.c (free_realized_fontsets): Check that the table entry does
19196 contain a fontset before trying to compare it to `base'.
19197
19198 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19199 syms_of_charset, and syms_of_coding earlier because init_window_once
19200 now needs Vcoding_system_hash_table to be setup.
19201
19202 * coding.h (default_buffer_file_coding): Remove.
19203
19204 * coding.c (default_buffer_file_coding): Remove.
19205 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19206 than ->symbol, and use the terminal-local coding system.
19207 (syms_of_coding): Don't setup the coding-systems that are not
19208 terminal-local.
19209 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19210
19211 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19212 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19213
19214 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19215 in chartab.c and were re-added here by mistake.
19216 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19217
19218 * doc.c (Fsnarf_documentation):
19219 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19220 src to etc.
19221
19222 * ChangeLog.10: Add mistakenly removed entry.
19223
19224 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19227
19228 2008-02-01 Miles Bader <miles@gnu.org>
19229
19230 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19231 Add extra args to FACE_FOR_CHAR.
19232
19233 2008-02-01 Kenichi Handa <handa@m17n.org>
19234
19235 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19236 in sequence.
19237
19238 * chartab.c (map_sub_char_table, map_char_table): If the range
19239 contains just one character, call the function with that character
19240 even if the depth is not 3.
19241
19242 2008-02-01 Jason Rumney <jasonr@gnu.org>
19243
19244 * w32font.c (w32font_text_extents): Calculate metrics for the
19245 whole string.
19246
19247 2008-02-01 Jason Rumney <jasonr@gnu.org>
19248
19249 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19250
19251 2008-02-01 Jason Rumney <jasonr@gnu.org>
19252
19253 * w32term.c (x_set_glyph_string_clipping): Use
19254 get_glyph_string_clip_rects.
19255 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19256 Adjust for the change of struct glyph_string.
19257
19258 * w32font.c (w32font_draw): Do clipping here.
19259
19260 2008-02-01 Kenichi Handa <handa@m17n.org>
19261
19262 * xftfont.c (xftfont_draw): Adjust for the change of struct
19263 glyph_string.
19264
19265 * xterm.c (x_set_glyph_string_clipping): Use
19266 get_glyph_string_clip_rects.
19267 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19268 Adjust for the change of struct glyph_string.
19269
19270 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19271 the resulting clip(s}.
19272 (expose_overlaps): Add arg r. Change callers. Set it to
19273 row->clip temporarily.
19274 (expose_window): Redraw rows overlapping the exposed area.
19275
19276 * dispextern.h (struct glyph_row): New member clip.
19277 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19278 clip_height, new member clip, and num_clips.
19279
19280 2008-02-01 Kenichi Handa <handa@m17n.org>
19281
19282 * data.c (Fchar_or_string_p): Fix docstring.
19283
19284 2008-02-01 Kenichi Handa <handa@m17n.org>
19285
19286 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19287 create a temporary XftDraw object.
19288
19289 2008-02-01 Kenichi Handa <handa@m17n.org>
19290
19291 * font.c (Ffontp): Fix docstring.
19292
19293 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19294 strong evidence of ISO-2022.
19295
19296 2008-02-01 Kenichi Handa <handa@m17n.org>
19297
19298 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19299 SYNTAX_ENTRY_FOLLOW_PARENT.
19300
19301 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19302
19303 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19304 its type.
19305 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19306 Update to the new type of weak_hash_tables and next_weak.
19307
19308 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19309 a plain C pointer to Lisp_Hash_Table.
19310
19311 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19312 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19313 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19314 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19315 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19316 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19317 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19318 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19319 (GC_EQ): Remove since they've been identical to their non-GC_
19320 alter-egos ever since the markbit was eradicated.
19321
19322 * alloc.c:
19323 * buffer.c:
19324 * buffer.h:
19325 * data.c:
19326 * fileio.c:
19327 * filelock.c:
19328 * fns.c:
19329 * frame.h:
19330 * lisp.h:
19331 * macterm.c:
19332 * print.c:
19333 * process.c:
19334 * w32fns.c:
19335 * w32menu.c:
19336 * w32term.c:
19337 * xfns.c:
19338 * xmenu.c:
19339 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19340
19341 2008-02-01 Kenichi Handa <handa@m17n.org>
19342
19343 * chartab.c (map_sub_char_table): Make it work for the top-level
19344 char-table. Fix handling of parent char-table.
19345 (map_char_table): Adjust for the above change.
19346
19347 2008-02-01 Jason Rumney <jasonr@gnu.org>
19348
19349 * w32font.c (Qgdi): Rename from Qw32.
19350
19351 2008-02-01 Jason Rumney <jasonr@gnu.org>
19352
19353 * w32bdf.c (get_quoted_string): Make function static.
19354
19355 2008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19358 bigger ascent and descent than those of the font, use them as
19359 font's ascent and descent.
19360
19361 2008-02-01 Kenichi Handa <handa@m17n.org>
19362
19363 * Makefile.in (${lispsource}international/charprop.el): Move this
19364 target within "#ifdef HAVE_UNIDATA" and "#endif".
19365
19366 2008-02-01 Kenichi Handa <handa@m17n.org>
19367
19368 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19369 (shortlisp): Add ../lisp/language/tai-viet.el.
19370
19371 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
19372
19373 * Makefile.in (${lispsource}international/charprop.el): Depend on
19374 temacs${EXEEXT}.
19375
19376 2008-02-01 Jason Rumney <jasonr@gnu.org>
19377
19378 * w32font.c (w32font_close): Delete the GDI font object.
19379
19380 * w32menu.c: Include character.h.
19381
19382 * w32proc.c: Likewise.
19383
19384 * w32select.c: Likewise.
19385
19386 * makefile.w32-in (w32proc.o): Depend on character.h.
19387
19388 2008-02-01 Jason Rumney <jasonr@gnu.org>
19389
19390 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19391
19392 * w32menu.c (syms_of_w32menu): Likewise.
19393
19394 * w32proc.c (syms_of_ntproc): Likewise.
19395
19396 * w32select.c (syms_of_w32select): Likewise.
19397
19398 * w32term.c (syms_of_w32term): Likewise.
19399
19400 2008-02-01 Jason Rumney <jasonr@gnu.org>
19401
19402 * w32font.c (w32font_draw): Delete brush after using it.
19403
19404 2008-02-01 Jason Rumney <jasonr@gnu.org>
19405
19406 * w32font.c (w32font_open): Don't set font_idx.
19407 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19408 to font settings.
19409 (w32font_draw): Fill background explicitly.
19410
19411 2008-02-01 Jason Rumney <jasonr@gnu.org>
19412
19413 * w32term.c (w32_initialize): Don't call w32font_initialize.
19414
19415 * w32font.c (w32font_info): Remove subranges.
19416 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19417 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19418 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19419 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19420 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19421 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19422 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19423 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19424 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19425 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19426 New symbols.
19427 (font_callback_data): New struct.
19428 (w32font_list, w32font_match): Use it.
19429 (w32font_open): Don't populate subranges.
19430 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19431 (w32font_encode_char): Always return unicode code-point as-is.
19432 (w32font_text_extents): Supply a transformation matrix to
19433 GetGlyphOutline. Never look up by glyph index. Avoid looping
19434 twice. Use unicode version of GetTexExtentPoint32 instead of
19435 glyph index version.
19436 (set_fonts_frame): Remove.
19437 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19438 set frame parameter. Use backward compatible fake foundries.
19439 Save generic family in extra slot under QCfamily. Make width slot
19440 constant. Save QCspacing value. Save list of scripts instead of
19441 binary subranges.
19442 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19443 (add_font_entity_to_list): Use font_callback_data struct. Filter
19444 unwanted fonts.
19445 (add_one_font_entity_to_list): Use font_callback_data struct.
19446 (w32_registry): Default to iso10646_1.
19447 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19448 string font registries. Don't fill in font name if it is a generic
19449 family name, fill family instead. Use spacing, family and script
19450 extra info to fill pitch, family and charset fields.
19451 (list_all_matching_fonts): Use font_callback_data struct.
19452 (unicode_range_for_char): Remove.
19453 (font_supported_scripts): New function.
19454 (w32font_initialize): Remove.
19455 (syms_of_w32font): Update which symbols are defined.
19456
19457 2008-02-01 Jason Rumney <jasonr@gnu.org>
19458
19459 * font.c (font_pixel_size): Reverse assq_no_quit args.
19460
19461 * w32term.h (FONT_WIDTH): Report max width, not average.
19462 (FONT_MAX_WIDTH): Remove.
19463 (FONT_AVG_WIDTH): New macro.
19464
19465 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19466 redefinition of FONT_WIDTH.
19467
19468 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19469 (w32_cache_char_metrics): Use FONT_WIDTH.
19470
19471 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19472
19473 2008-02-01 Jason Rumney <jasonr@gnu.org>
19474
19475 * w32font.c (w32font_open): Make lfHeight negative.
19476
19477 * w32fns.c (x_default_font_parameter): Use new style font name.
19478 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19479
19480 2008-02-01 Jason Rumney <jasonr@gnu.org>
19481
19482 * w32font.c (QCsubranges): New symbol.
19483 (w32font_open, w32font_has_char): Get subranges from subproperty
19484 of extra.
19485 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19486 (syms_of_w32font): Define :subranges symbol.
19487
19488 * font.c (font_put_extra): Expose externally.
19489
19490 * font.h (font_put_extra): Move declaration from font.c.
19491
19492 * font.c (Ffont_get): Use font driver to determine otf capability.
19493 (adjust_anchor): Check if driver defines anchor_point before using.
19494
19495 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19496 (w32font_draw): Use options.
19497 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19498 Fix detection of truetype fonts.
19499 (registry_to_w32_charset): Handle charsets other than iso8859-1
19500 expressed as lisp symbols.
19501 (w32_registry): Express charset as lisp symbol.
19502 (fill_in_logfont): Reverse pixel and point height logic.
19503 Don't set width here. Set quality to default.
19504
19505 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19506 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19507
19508 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19509 Remove redundant loop and allocation.
19510
19511 * makefile.w32-in (font.o, w32font.o): New objects.
19512 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19513 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19514
19515 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19516 STORE_XCHARB a valid l-value.
19517
19518 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19519 calculations for non-Truetype fonts.
19520 (x_draw_glyph_string): Sync with xterm.c.
19521 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19522 Remove redundant code.
19523 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19524
19525 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19526 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19527
19528 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19529 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19530
19531 * w32font.c: New file for w32 font backend.
19532
19533 2008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * term.c: Don't include "buffer.h" twice.
19536
19537 2008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * character.c (Funibyte_string): New function.
19540 (syms_of_character): Defsubr it.
19541
19542 2008-02-01 Jason Rumney <jasonr@gnu.org>
19543
19544 * w32term.c [USE_FONT_BACKEND]:
19545 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19546 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19547 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19548 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19549 (x_free_frame_resources): Sync with xterm.c.
19550
19551 2008-02-01 Andreas Schwab <schwab@suse.de>
19552
19553 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19554 char-table size.
19555
19556 2008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19559
19560 2008-02-01 Kenichi Handa <handa@m17n.org>
19561
19562 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19563 font_otf_gpos, add font_drive_otf.
19564
19565 * fontset.c (fontset_find_font): Pay attention to font size
19566 specified for a font.
19567 (reorder_font_vector): Check contents of font_def.
19568
19569 * font.c (struct otf_list): Delete it.
19570 (otf_list): Make it a lisp variable.
19571 (otf_open): Use lispy otf_list.
19572 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19573 (check_otf_features): New function.
19574 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19575 New functions.
19576 (font_drive_otf): New function merging font_otf_gsub and
19577 font_otf_gpos.
19578 (font_open_for_lface): New arg spec. Change argument order.
19579 (font_load_for_face): Adjust for the change of font_open_for_lface.
19580 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19581 Ffont_otf_gpos.
19582 (syms_of_font): Staticpro otf_list. Delete defsubr of
19583 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19584
19585 * xfaces.c (set_font_frame_param): Adjust for the change of
19586 font_open_for_lface.
19587
19588 * font.h (font_open_for_lface): Adjust prototype.
19589 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19590 member otf_drive.
19591 (font_otf_gsub, font_otf_gpos): Delete externs.
19592 (font_drive_otf): Extern it.
19593
19594 2008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * font.c (font_at): If the window W is not on a window system,
19597 return Qnil.
19598
19599 * coding.c (produce_chars, encode_coding): Don't call
19600 insert_from_gap if no characters to produce.
19601
19602 2008-02-01 Kenichi Handa <handa@m17n.org>
19603
19604 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19605 Fclear_face_cache.
19606
19607 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19608
19609 2008-02-01 Miles Bader <miles@gnu.org>
19610
19611 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19612 Parse "--disable-font-backend" option.
19613 (standard_args): Add "--disable-font-backend" option.
19614
19615 2008-02-01 Kenichi Handa <handa@m17n.org>
19616
19617 * fontset.c (fontset_find_font): New function.
19618 (fontset_font): Use fontset_find_font.
19619 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19620 Register the specified font for all Latin characters.
19621 (new_fontset_from_font): Register the specified font for all Latin
19622 characters.
19623 (dump_fontset): For a realized fontset, include the base fontset
19624 name in the returned vector.
19625
19626 2008-02-01 Kenichi Handa <handa@m17n.org>
19627
19628 * character.h (CHAR_STRING): Cast C to unsigned on calling
19629 char_string.
19630
19631 * character.c (char_string): Type of arg C changed to unsigned.
19632 Signal an error if C is an invalid character code.
19633
19634 * editfns.c (general_insert_function, Fchar_to_string):
19635 Use CHARACTERP, not INTEGERP.
19636
19637 2008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19640 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19641
19642 * regex.c (analyse_first): Fix for multibyte characters in "case
19643 charset:" and "case categoryspec:".
19644
19645 2008-02-01 Andreas Schwab <schwab@suse.de>
19646
19647 * Makefile.in (LIBES): Move standard libraries to the end.
19648
19649 2008-02-01 Kenichi Handa <handa@m17n.org>
19650
19651 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19652 nonzero, don't shrink the buffer nextb.
19653
19654 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19655
19656 * coding.c (coding_alloc_by_making_gap): New arg offset.
19657 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19658 offset.
19659 (decode_coding_iso_2022): Update coding->safe_charsets.
19660 (decode_coding_gap): Temporarily set
19661 current_buffer->text->inhibit_shrinking to 1.
19662
19663 2008-02-01 Kenichi Handa <handa@m17n.org>
19664
19665 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19666 indexing into elements of s->cmp and s->char2b.
19667
19668 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
19669
19670 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19671
19672 2008-02-01 Kenichi Handa <handa@m17n.org>
19673
19674 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19675 target_multibyte instead of multibyte.
19676 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19677 (bcmp_translate): Change the argument name from multibyte to
19678 target_multibyte.
19679
19680 2008-02-01 Kenichi Handa <handa@m17n.org>
19681
19682 These changes are to compile a regexp into a pattern that can be
19683 used both for multibyte and unibyte targets.
19684
19685 * Makefile.in (search.o): Depend on charset.h.
19686
19687 * character.c (multibyte_char_to_unibyte_safe): New function.
19688
19689 * search.c: Include "charset.h".
19690 (compile_pattern_1): Delete argument multibyte. Don't set
19691 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19692 (compile_pattern): Don't compare cp->buf.target_multibyte.
19693 Compare cp->buf.charset_unibyte.
19694 (compile_pattern): Set cp->buf.target_multibyte.
19695
19696 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19697
19698 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19699
19700 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19701 multibyte. Change callers.
19702 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19703 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19704 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19705 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19706 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19707 (regex_compile): Make the compiled pattern usable both for
19708 multibyte and unibyte targets.
19709 (analyse_first): Make the fastmap usable both for multibyte and
19710 unibyte targets.
19711 (TRANSLATE_VIA_MULTIBYTE): Delete.
19712 (re_match_2_internal): Pay attention to the case that the
19713 multibyteness of bufp and target may be different.
19714
19715 2008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19718 empty box occupy at least one column width.
19719
19720 2008-02-01 Miles Bader <miles@gnu.org>
19721
19722 * Makefile.in: Remove redundant HAVE_XFT clause.
19723
19724 2008-02-01 Kenichi Handa <handa@m17n.org>
19725
19726 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19727
19728 2008-02-01 Kenichi Handa <handa@m17n.org>
19729
19730 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19731 being nil.
19732
19733 2008-02-01 Kenichi Handa <handa@m17n.org>
19734
19735 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19736
19737 2008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19740
19741 2008-02-01 Kenichi Handa <handa@m17n.org>
19742
19743 * search.c (simple_search): Fix previous change.
19744
19745 2008-02-01 Kenichi Handa <handa@m17n.org>
19746
19747 * xftfont.c (ftfont_font_format): Extern declaration.
19748
19749 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19750
19751 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19752 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19753
19754 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19755 (ftfont_font_format): Fix previous change.
19756
19757 * font.h (Ffont_xlfd_name): EXFUN it.
19758
19759 * font.c (font_parse_xlfd): Fix the array size of `f'.
19760 (register_font_driver): Use EQ to compare driver->type.
19761
19762 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19763 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19764 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19765
19766 2008-02-01 Kenichi Handa <handa@m17n.org>
19767
19768 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19769 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19770
19771 2008-02-01 Kenichi Handa <handa@m17n.org>
19772
19773 * xfont.c (xfont_open): Set font->format.
19774
19775 * xftfont.c (xftfont_open): Set font->format.
19776
19777 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19778 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19779 (ftfont_open): Set font->format.
19780 (ftfont_font_format): New function.
19781
19782 * font.h (struct font): New member format.
19783
19784 * font.c (Qopentype): New variable.
19785 (syms_of_font): Defsym it.
19786 (Fquery_font): Change the format of the last element of the return
19787 value.
19788
19789 2008-02-01 Kenichi Handa <handa@m17n.org>
19790
19791 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19792 last resort.
19793
19794 2008-02-01 Kenichi Handa <handa@m17n.org>
19795
19796 * coding.c (detect_coding_charset): Fix detection of multi-byte
19797 charset.
19798
19799 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19800
19801 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19802
19803 2008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * xdisp.c (get_next_display_element): Set it->face_id for the
19806 first component of a composition.
19807 (x_produce_glyphs): Check if the font is changed or not for composition.
19808
19809 2008-02-01 Kenichi Handa <handa@m17n.org>
19810
19811 * fontset.c (Qlatin): New variable.
19812 (syms_of_fontset): Define it as a lisp symbol.
19813 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19814
19815 2008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * font.c (font_unparse_fcname): Pay attention to the case that
19818 some of font property is a null string.
19819
19820 2008-02-01 Kenichi Handa <handa@m17n.org>
19821
19822 * term.c: Include "composite.h".
19823 (encode_terminal_code): Output all components of composition.
19824 Check the size of encode_terminal_src.
19825 (produce_glyphs): For composition, call produce_composite_glyph.
19826 (append_composite_glyph, produce_composite_glyph): New functions.
19827
19828 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19829 is not found, get font_info from the current ascii face.
19830
19831 2008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19834 buffer-file-name to Qnil before calling insert_from_buffer.
19835
19836 * font.c (font_unparse_fcname): Pay attention to the case that
19837 foundry is a null string.
19838
19839 2008-02-01 Kenichi Handa <handa@m17n.org>
19840
19841 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19842
19843 * font.c (Qunicode_sip): New variable.
19844 (syms_of_font): Declare it as a Lisp symbol.
19845
19846 * font.h (Qunicode_sip): Extern it.
19847
19848 2008-02-01 Kenichi Handa <handa@m17n.org>
19849
19850 * composite.c (get_composition_id): Pay attention to TAB component.
19851
19852 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19853 TAB. Adjust for the change of s->char2b which always points to
19854 the first element of allocated memory.
19855
19856 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19857
19858 * xdisp.c (handle_composition_prop): Set it->c to the first
19859 non-TAB component.
19860 (fill_composite_glyph_string): Change argument.
19861 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19862 (x_produce_glyphs): Fix handling of left/right padding.
19863
19864 2008-02-01 Kenichi Handa <handa@m17n.org>
19865
19866 * coding.c (detect_coding_system): Fix for handling off
19867 inhibit_iso_escape_detection. Fix for the case that no coding
19868 system is defined for a specific coding category.
19869
19870 2008-02-01 Kenichi Handa <handa@m17n.org>
19871
19872 * font.c (font_matching_entity): Delete unused local var.
19873
19874 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19875 opening a font.
19876
19877 * fileio.c (Finsert_file_contents): On recovering a file, assume
19878 Unix-like eol.
19879 (choose_write_coding_system): On auto-saving a file, force
19880 Unix-like eol.
19881
19882 * coding.c (setup_coding_system): Fix setting of
19883 coding->common_flags based on eol_type.
19884 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19885 inherit from it.
19886
19887 2008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 * alloc.c (NSTATICS): Increas to 0x600.
19890
19891 2008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19894 (ftfont_list): Don't check :name property.
19895 (ftfont_match): New function.
19896 (ftfont_pattern_entity): If the pattern doesn't contain
19897 FC_SPACING, don't assume FC_MONO.
19898
19899 * font.h (struct font_driver): New member `match'.
19900 (font_update_drivers): Adjust prototype.
19901
19902 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19903 property of FONT.
19904 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19905 them unconditionally.
19906 (font_matching_entity): New function.
19907 (font_open_by_name): Try font_matching_entity if exact match is
19908 not found.
19909 (font_update_drivers): Delete the arg FONT. Return a list of
19910 actually used backends. Don't free faces, font caches here.
19911 Don't store data in frame parameters. Don't call x_set_font.
19912 (Ffont_spec): Store :name property as is.
19913 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19914 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19915 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19916 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19917 Call font->driver->otf_gsub instead of font_otf_gsub.
19918
19919 * frame.c (x_set_font_backend): Do more works that were done in
19920 font_update_drivers before.
19921
19922 * xfont.c (xfont_match): New function.
19923 (xfont_driver): Set xfont_driver.match to xfont_match.
19924 (xfont_draw): Set font in GC if necessary.
19925
19926 * ftxfont.c (ftxfont_match): New function.
19927 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19928
19929 * xftfont.c (xftfont_match): New function.
19930 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19931
19932 2008-02-01 Kenichi Handa <handa@m17n.org>
19933
19934 * font.h (struct font): New member scalable.
19935 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19936 (font_otf_gsub): Adjust prototype.
19937
19938 * font.c (font_otf_capability): Fix handling of the default langsys.
19939 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19940 Check the contents of SPEC.
19941 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19942 (check_gstring): New function.
19943 (REPLACEMENT_CHARACTER): New macro.
19944 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19945 glyph codes of GSTRING.
19946 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19947 (font_prepare_composition): Set cmp->glyph_len.
19948 (font_open_entity): Set font->scalable.
19949 (Ffont_get): Handle :otf property.
19950 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19951 functions.
19952 (Fquery_font): Use font->font.full_name.
19953 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19954 Sfont_otf_alternates.
19955
19956 * ftfont.c (ftfont_open): Set font->font.full_name and
19957 font->font.name properly. Fix calculation of font->font.height
19958 and font->min_width.
19959
19960 * ftxfont.c (ftxfont_create_gcs): New function.
19961 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19962 (ftxfont_draw_backgrond): Fix filling region.
19963 (ftxfont_default_fid): New function.
19964 (ftxfont_open): Set xfont->fid to the return value of
19965 ftxfont_default_fid.
19966 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19967 (ftxfont_done_face): Free only GCs that are created by
19968 ftxfont_create_gcs.
19969 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19970
19971 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19972 Clip to src->width, etc (not src->clip_XXX).
19973
19974 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19975 FontBackend frame parameter.
19976
19977 2008-02-01 Kenichi Handa <handa@m17n.org>
19978
19979 * font.h (struct font_driver_list): New member `on'.
19980 (Fclear_font_cache): EXFUN it.
19981 (font_update_drivers): Extern it.
19982
19983 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19984 (font_list_entities): Check driver_list->on.
19985 (register_font_driver): Initalize `on' member to 0.
19986 (font_update_drivers): New function.
19987 (Fclear_font_cache): Check driver_list->on.
19988
19989 * frame.h (Qfont_backend): Extern it.
19990 (x_set_font_backend): Extern it.
19991
19992 * frame.c (Qfont_backend): New variable.
19993 (frame_parms): New element for font-backend.
19994 (x_set_font_backend): New function.
19995
19996 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19997 FontBackend frame parameter.
19998 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19999 x_set_font_backend.
20000
20001 * xfont.c (xfont_list): Don't try listing by :name property if the
20002 name is not for XLFD.
20003
20004 2008-02-01 Kenichi Handa <handa@m17n.org>
20005
20006 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20007 (LGLYPH_SET_TO): New macros.
20008 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20009 element of G is vector or not.
20010 (font_at): Extern it.
20011
20012 * font.c: Include window.h.
20013 (font_lispy_object): New function.
20014 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20015 end of valid glyph.
20016 (font_close_object): Fix getting (struct font *).
20017 (font_at): New function.
20018 (Ffont_get): If FONT is a font-object, get entity from it.
20019 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20020 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20021 range check.
20022 (Ffont_at): New function.
20023 (syms_of_font): Defsubr Sfont_at.
20024
20025 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20026 before the entry for Qcomposition.
20027 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20028 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20029 the font in gstring.
20030 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20031 LGLYPH_FORM (g) to detect the end of valid glyph.
20032 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20033 we are composing with gstring.
20034
20035 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20036 Check if adjustment is vector or not.
20037
20038 * Makefile.in (font.o): Make it depends on window.h.
20039
20040 2008-02-01 Kenichi Handa <handa@m17n.org>
20041
20042 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20043 adjustment is vector or not.
20044
20045 2008-02-01 Miles Bader <miles@gnu.org>
20046
20047 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20048
20049 2008-02-01 Kenichi Handa <handa@m17n.org>
20050
20051 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20052 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20053 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20054
20055 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20056 (DEVICE_DELTA): Fix typo.
20057 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20058 LGLYPH format.
20059
20060 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20061 the change of LGLYPH format.
20062
20063 2008-02-01 Kenichi Handa <handa@m17n.org>
20064
20065 * ftfont.c (ftfont_list): Fix typo.
20066 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20067
20068 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20069
20070 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20071
20072 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20073 xftface_info is non-NULL.
20074
20075 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20076
20077 * ftfont.c (ftfont_list): Move misplaced #endif.
20078
20079 2008-02-01 Kenichi Handa <handa@m17n.org>
20080
20081 * ftfont.c (ftfont_list): Pay attention to the case that
20082 FC_CAPABILITY is not defined.
20083
20084 2008-02-01 Kenichi Handa <handa@m17n.org>
20085
20086 * xftfont.c (xftfont_open): Set charset related members to -1.
20087
20088 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20089 QCname.
20090 (ftfont_open): Set charset related members to -1.
20091
20092 * fontset.c (Votf_script_alist): New variable.
20093 (syms_of_fontset): Initialize it.
20094 (fontset_font): Delete unused variable.
20095
20096 * fontset.h (Votf_script_alist): Extern it.
20097
20098 * font.c (font_find_for_lface): Optimize code.
20099
20100 * font.h (font_close_object, font_merge_old_spec): Extern them.
20101
20102 2008-02-01 Kenichi Handa <handa@m17n.org>
20103
20104 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20105 (syms_of_font): Initialize them.
20106 (font_pixel_size): Allow float value in dpi.
20107 (font_prop_validate_type): Delete.
20108 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20109 Change caller.
20110 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20111 (font_prop_validate_extra): Delete.
20112 (font_prop_validate_spacing): New function.
20113 (font_property_table): Add elements for all known properties.
20114 (get_font_prop_index): Rename from check_font_prop_name. New
20115 argument FROM. Change caller.
20116 (font_prop_validate): Validate all known properties.
20117 (font_put_extra): Delete argument force. Change caller.
20118 (font_expand_wildcards): Make it static. Fix the way of shrinking
20119 the possible range.
20120 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20121 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20122 Change caller.
20123 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20124 (font_parse_fcname): Delete argument merge. Fix parsing of point
20125 size. Don't validate properties values here. Change caller.
20126 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20127 (font_open_by_name): Delete unused variable.
20128 (Ffont_spec): Likewise. Validate property values.
20129 (Ffont_match_p): New function.
20130
20131 * font.h (QCscalable): Extern it.
20132 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20133
20134 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20135
20136 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20137 (xfont_list_pattern): New function.
20138 (xfont_list): Use xfont_list_pattern.
20139
20140 2008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * font.h (Flist_fonts): EXFUN it.
20143
20144 2008-02-01 Jason Rumney <jasonr@gnu.org>
20145
20146 * w32term.c (w32_initialize): Add back smoothing_type and
20147 smoothing_enabled definitions.
20148
20149 2008-02-01 Kenichi Handa <handa@m17n.org>
20150
20151 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20152 s->face->font on determining underline position.
20153
20154 2008-02-01 Kenichi Handa <handa@m17n.org>
20155
20156 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20157 (font_has_char): Accept font-object too.
20158 (font_find_for_lface): Try at first with a size specified in face.
20159
20160 2008-02-01 Kenichi Handa <handa@m17n.org>
20161
20162 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20163 font_open_by_name.
20164
20165 2008-02-01 Kenichi Handa <handa@m17n.org>
20166
20167 * font.h (QCspacing, QCdpi): Extern them.
20168 (enum font_spacing): New enum.
20169 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20170
20171 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20172 (QCspacing, QCdpi): New variables.
20173 (syms_of_font): Initialize them.
20174 (font_pixel_size): New function.
20175 (font_put_extra): New function.
20176 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20177 in FONT_EXTRA.
20178 (font_parse_fcname): Handle enumerated values (e.g. bold).
20179 Fix handling font size. Add QCname property that contains only
20180 unknown properties.
20181 (font_score): Change argument. Change caller. Pay attention to
20182 FONT_PIXEL_SIZE_QUANTUM.
20183 (font_sort_entites, font_list_entities, font_find_for_lface)
20184 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20185 (Ffont_spec): Add QCname property that contains only unknown properties.
20186
20187 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20188 include weight in listing pattern, instead check weight of each
20189 listed font. Don't include scalable in pattern. Pay attention to
20190 FONT_PIXEL_SIZE_QUANTUM.
20191
20192 2008-02-01 Kenichi Handa <handa@m17n.org>
20193
20194 * font.c (font_parse_fcname): Fix parsing of point-size.
20195 (font_unparse_fcname): Produce symbolic names for style properties.
20196 (font_list_entities): Handle float size correctly.
20197 (font_open_by_name): Prefer `normal' property values if the name
20198 doesn't specify them.
20199
20200 * fontset.c (Finternal_char_font): Use font_get_name, not
20201 Ffont_xlfd_name.
20202
20203 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20204 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20205 pattern. Don't force scalable.
20206
20207 * xftfont.c (xftfont_open): For generating a name, start from
20208 96-byte buffer.
20209
20210 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20211
20212 * frame.h (x_new_fontset2): Fix prototype.
20213
20214 2008-02-01 Kenichi Handa <handa@m17n.org>
20215
20216 * font.h (struct font_driver): Delete member parse_name.
20217 (font_match_p, font_get_spec, font_parse_fcname)
20218 (font_unparse_fcname): Extern them.
20219 (font_get_name): Adjust prototype.
20220
20221 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20222 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20223 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20224 unnecessary checks for weight, slant, and swidth.
20225 (font_parse_fcname): New function.
20226 (font_unparse_fcname): New function.
20227 (font_parse_name): New function.
20228 (font_match_p): New function.
20229 (font_get_name): Change return value to Lisp string.
20230 (font_get_spec): New function.
20231 (Qunspecified, Qignore_defface): Don't extern them.
20232 (font_find_for_lface): Assume that LFACE is fully specified.
20233 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20234 object, use it for FACE.
20235 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20236 driver->parse_name.
20237 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20238
20239 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20240 prototype.
20241
20242 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20243 argument F. Don't call Fnew_fontset. Instead, directly call
20244 make_fontset.
20245
20246 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20247
20248 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20249 of x_new_fontset2.
20250
20251 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20252 (Qsans__serif): New variables.
20253 (ftfont_generic_family_list): New variable.
20254 (syms_of_ftfont): Initialize the above variables.
20255 (ftfont_pattern_entity): Delete argument NAME.
20256 (ftfont_list_generic_family): New function.
20257 (ftfont_parse_name): Delete this function.
20258 (ftfont_list): Try generic family only when FcFontList found no font.
20259 (ftfont_list_family): Fix args to FcObjectSetBuild.
20260
20261 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20262 object in attrs[LFACE_FONT_INDEX].
20263 (set_lface_from_font_name): Cancel all changes for font-backend.
20264 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20265 function.
20266 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20267 font object in QCfont attribute.
20268 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20269 (realize_default_face) [USE_FONT_BACKEND]: Call
20270 set_lface_from_font_and_fontset.
20271
20272 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20273 "fixed", and signal error here if no suitable font was found.
20274
20275 * xfont.c (xfont_parse_name): Delete this function.
20276
20277 * xftfont.c (xftfont_open): Change coding style of error
20278 handling. Generate fontconfig's fontname pattern.
20279
20280 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20281 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20282
20283 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20284 Both args FONTSET and FONT_OBJECT must be existing ones.
20285
20286 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20287
20288 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20289
20290 2008-02-01 Kenichi Handa <handa@m17n.org>
20291
20292 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20293
20294 * font.h (struct font): Fix typo.
20295
20296 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20297 XLFD_XXX_INDEX.
20298 (enum xlfd_field_mask): New enum.
20299 (intern_font_field): Changed argument. Change caller. If digits
20300 are followed by non-digits, return a symbol.
20301 (font_expand_wildcards): New function.
20302 (font_parse_xlfd): Fix wildcard handling.
20303 (Ffont_spec): If :name is specified, reflect the info in the other
20304 properties.
20305
20306 * ftfont.c (ftfont_pattern_entity): Fix typo.
20307 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20308 locale.
20309
20310 2008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20313
20314 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20315 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20316 registry doesn't specify encoding part.
20317 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20318 (font_open_by_name): At first try parsing the name.
20319 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20320 as Lisp symbols.
20321
20322 * fontset.c (reorder_font_vector): Pay attention to the case that
20323 the 3rd element of font_def is nil.
20324 (fontset_font): For the default fontset, append one more fontset
20325 elements for a script-based font specification. Don't add script
20326 attribute on finding a font.
20327 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20328 font name.
20329 (fontset_ascii_font): If a font can't be opened, return nil.
20330
20331 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20332 (ftfont_pattern_entity): New function.
20333 (ftfont_get_cache): Assume that freetype_font_cache is already
20334 initialized.
20335 (ftfont_list): Handle the case that a file is specified in font
20336 name. Use ftfont_pattern_entity to generate entities.
20337 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20338 (syms_of_ftfont): Initialize freetype_font_cache.
20339
20340 * xftfont.c (xftfont_open): Make the font name fontconfig's
20341 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20342 (xftfont_close): Free font->font.name if not NULL.
20343
20344 * xfont.c (xfont_list): If script is specified for a font, return
20345 null_vector.
20346 (xfont_list_family): Declare argument type.
20347
20348 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20349 name, set LFACE_FONT (lface) to nil.
20350
20351 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20352 return Qnil.
20353
20354 2008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20357 (standard_args): Add "-enable-font-backend".
20358
20359 2008-02-01 Kenichi Handa <handa@m17n.org>
20360
20361 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20362 (struct xftdraw_list, xftdraw_list): Delete them.
20363 (register_xftdraw, check_xftdraw): Delete them.
20364 (xftfont_prepare_face): Don't call register_xftdraw.
20365 (xftfont_done_face): Don't call check_xftdraw.
20366 (xftfont_draw): Get background color only when with_background is
20367 nonzero.
20368
20369 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20370
20371 2008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 These changes are for the new font handling codes.
20374
20375 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20376 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20377 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20378 (FONTSRC, FONTOBJ): New variables.
20379 (obj): Add $(FONTOBJ).
20380 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20381 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20382 @LIBOTF_LIBS@.
20383 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20384 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20385
20386 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20387
20388 * character.h (Vscript_representative_chars): Extern it.
20389
20390 * character.c (Vscript_representative_chars): New variable.
20391 (syms_of_character): Declare it as a Lisp variable.
20392
20393 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20394 enable_font_backend is nonzero, accept the composition method
20395 COMPOSITION_WITH_GLYPH_STRING.
20396
20397 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20398 enumeration COMPOSITION_WITH_GLYPH_STRING.
20399
20400 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20401 members clip_x, clip_y, clip_width, and clip_height.
20402 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20403
20404 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20405 --enable-font-backend. Call syms_of_font.
20406
20407 * fns.c (assoc_no_quit): New function.
20408
20409 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20410 (face_for_font, new_fontset_from_font)
20411 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20412
20413 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20414 (fontset_font, fontset_ascii, face_for_char)
20415 (make_fontset_for_ascii_face, Ffont_info)
20416 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20417 is nonzero, use font-backend mechanism.
20418 (find_font_encoding): Make it non-static.
20419 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20420 New functions.
20421
20422 * frame.h (struct frame): New members resx and resy.
20423 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20424 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20425
20426 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20427 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20428
20429 * lisp.h (assoc_no_quit): Extern it.
20430
20431 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20432 Through out the file, use FONT_INFO_FROM_FACE instead of
20433 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20434 rif->per_char_metric.
20435 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20436 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20437 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20438 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20439 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20440 nonzero, use font-backend mechanism.
20441 (get_per_char_metric): New function.
20442
20443 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20444 (set_lface_from_font_name)
20445 (set_font_frame_param, free_realized_face)
20446 (prepare_face_for_display, clear_face_gcs)
20447 (Finternal_set_font_selection_order, realize_x_face)
20448 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20449 font-backend mechanism.
20450 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20451 (load_face_font) [USE_FONT_BACKEND]: Abort.
20452 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20453 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20454
20455 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20456 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20457 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20458 nonzero, register all available font drivers. Call
20459 x_default_font_parameter for deciding a font.
20460 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20461
20462 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20463 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20464 (x_set_glyph_string_clipping_exactly)
20465 (x_compute_glyph_string_overhangs)
20466 (x_draw_glyph_string_foreground)
20467 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20468 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20469 enable_font_backend is nonzero, use font-backend mechanism.
20470 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20471
20472 2008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20475 system_eol_type.
20476 (syms_of_coding): Initialize system_eol_type.
20477
20478 * process.c (Fset_process_coding_system): Inherit system's eol
20479 format if necessary.
20480
20481 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20482
20483 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20484
20485 2008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * coding.c (decode_eol): Pay attention to buffer relocation in
20488 del_range_2.
20489 (decode_coding): Call decode_eol before restoring undo_list.
20490
20491 2008-02-01 Kenichi Handa <handa@m17n.org>
20492
20493 * charset.c (Fdefine_charset_internal): Fix setting of
20494 emacs_mule_bytes.
20495
20496 2008-02-01 Kenichi Handa <handa@m17n.org>
20497
20498 * keyboard.c (read_char): Check if C is a character or not before
20499 looking up Vkeyboard_translate_table.
20500
20501 2008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20504 condition to terminate the loop.
20505
20506 2008-02-01 Kenichi Handa <handa@m17n.org>
20507
20508 * coding.c (produce_composition): Compare charbuf[i] instead of
20509 args[i] against 0.
20510 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20511
20512 2008-02-01 Kenichi Handa <handa@m17n.org>
20513
20514 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20515 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20516 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20517 detect_coding.
20518 (emacs_mule_char): Handle old style (Emacs 20) component character
20519 of a composition.
20520 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20521 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20522 composition rule.
20523 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20524
20525 2008-02-01 Kenichi Handa <handa@m17n.org>
20526
20527 * coding.c (encode_coding_ccl): Allocate destination dynamically
20528 when necessary.
20529
20530 2008-02-01 Kenichi Handa <handa@m17n.org>
20531
20532 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20533 the loop. When quitted, show a proper error message.
20534
20535 2008-02-01 Kenichi Handa <handa@m17n.org>
20536
20537 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20538 src->clip_head and src->clip_tail temporarily instead of src->hl.
20539
20540 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20541 character sequence.
20542 (Fccl_execute_on_string): Use ASET, not XSET.
20543
20544 2008-02-01 Kenichi Handa <handa@m17n.org>
20545
20546 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20547
20548 2008-02-01 Kenichi Handa <handa@m17n.org>
20549
20550 * coding.c (decode_coding): Fix the condition of terminating the
20551 decoding loop.
20552
20553 2008-02-01 Kenichi Handa <handa@m17n.org>
20554
20555 * data.c (Faset): On setting a character bigger than 255 in a
20556 unibyte string, signal an error instead of make the string multibyte.
20557
20558 2008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20561 made by a mapping table.
20562
20563 2008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20566 not.
20567 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20568 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20569
20570 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20571 s->face is NULL or not.
20572
20573 2008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20576 (x_draw_glyph_string): Fix drawing of right_overhang and
20577 left_overhang around/on cursor.
20578
20579 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20580
20581 2008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20584
20585 2008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * coding.c (Fdefine_coding_system_internal)
20588 (Fdefine_coding_system_alias): Avoid a duplicated element in
20589 Vcoding_system_alist.
20590
20591 2008-02-01 Kenichi Handa <handa@m17n.org>
20592
20593 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20594
20595 * coding.c (Qcoding_system_define_form): New variable.
20596 (syms_of_coding): Intern and staticpro it.
20597 (Fcoding_system_p): Check Qcoding_system_define_form.
20598 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20599
20600 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20601 Fcoding_system_p.
20602 (CHECK_CODING_SYSTEM): If ID is not available, call
20603 Fcheck_coding_system.
20604 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20605 Try also Fcheck_coding_system.
20606
20607 2008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * coding.c (code_conversion_restore): GCPRO arg.
20610
20611 2008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * character.c (lisp_string_width): Check multibyteness of STRING.
20614
20615 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20616
20617 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20618 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20619 (decode_mac_font_name): Use decode_coding_c_string instead of
20620 decode_coding.
20621 (x_load_font): Initialize fontp->fontset to -1. Set
20622 fontp->encoding_type.
20623
20624 2008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * search.c (search_buffer): Give up BM search on case-fold-search
20627 if one of a target character has a case-equivalence of different
20628 byte length even if that target character is an ASCII.
20629 (simple_search): Fix calculation of byte length of matched text.
20630 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20631
20632 2008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 * coding.c (decode_coding): Fix handling of invalid bytes.
20635
20636 2008-02-01 Kenichi Handa <handa@m17n.org>
20637
20638 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20639 Unicode characters.
20640
20641 2008-02-01 Kenichi Handa <handa@m17n.org>
20642
20643 * coding.c (encode_coding_object): If a pre-write-conversion
20644 function makes a new buffer, kill it.
20645
20646 2008-02-01 Kenichi Handa <handa@m17n.org>
20647
20648 * coding.c (QCascii_compatible_p): New variable.
20649 (syms_of_coding): Initialize it.
20650 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20651 calling string_char.
20652 (record_conversion_result): Add `default:' case.
20653 (coding_charset_list): Delete unused variable `coding_type'.
20654 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20655 property in the plist of the coding system.
20656 (Fcoding_system_put): Check QCascii_compatible_p.
20657
20658 2008-02-01 Miles Bader <miles@gnu.org>
20659
20660 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20661 removed calculation of frame `f', as it's now used.
20662
20663 2008-02-01 Kenichi Handa <handa@m17n.org>
20664
20665 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20666 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20667 (UNIDATA): New variable.
20668 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20669 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20670 $(RUN_TEMACS) unconditionally.
20671
20672 2008-02-01 Kenichi Handa <handa@m17n.org>
20673
20674 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20675 (admindir): New variable.
20676 ($(lispsource)international/charprop.el): New target.
20677
20678 2008-02-01 Miles Bader <miles@gnu.org>
20679
20680 * character.c (chars-in-region): Remove obsolete function.
20681 (syms_of_character): Remove its initialization.
20682
20683 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20684
20685 * w32select.c (validate_coding_system)
20686 (setup_windows_coding_system): New functions.
20687 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20688 setup_windows_coding_system.
20689 (setup_config, Fw32_get_clipboard_data): Use
20690 validate_coding_system.
20691 (Fx_selection_exists): Move call to setup_config to a place
20692 where signals are allowed.
20693
20694 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20695 (Fcheck_coding_system): Add declarations.
20696
20697 2008-02-01 Kenichi Handa <handa@m17n.org>
20698
20699 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20700
20701 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20702
20703 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20704 string as the second argument for x_new_fontset.
20705
20706 2008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20709 (encode_coding_object): Use safe_call instead of call2.
20710
20711 2008-02-01 Kenichi Handa <handa@m17n.org>
20712
20713 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20714
20715 * Makefile.in (lisp): Include charprop.el.
20716
20717 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20718
20719 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20720 Not sure if it's unnecessary.
20721
20722 2008-02-01 Steven Tamm <steventamm@mac.com>
20723
20724 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20725 some possibly unnecessary fontset checking code that crashed
20726 when creating a new frame.
20727
20728 2008-02-01 Kenichi Handa <handa@m17n.org>
20729
20730 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20731 lookup_face.
20732
20733 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20734
20735 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20736
20737 2008-02-01 Kenichi Handa <handa@m17n.org>
20738
20739 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20740 (coding_charset_list): New function.
20741
20742 * coding.h (coding_charset_list): Extern it.
20743
20744 2008-02-01 Kenichi Handa <handa@m17n.org>
20745
20746 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20747 concatenation of family and registry.
20748
20749 2008-02-01 Kenichi Handa <handa@m17n.org>
20750
20751 * character.h (BYTE8_STRING): Fix typo.
20752
20753 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20754 string to multibyte (sync to HEAD).
20755
20756 * casefiddle.c (casify_region): Handle changes in byte-length
20757 using replace_range_2 (sync to HEAD).
20758
20759 2008-02-01 Andreas Schwab <schwab@suse.de>
20760
20761 * chartab.c (map_char_table): GCPRO table and arg.
20762
20763 2008-02-01 Kenichi Handa <handa@m17n.org>
20764
20765 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20766 already at limit.
20767
20768 2008-02-01 Kenichi Handa <handa@m17n.org>
20769
20770 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20771 instead of fast_c_string_match_ignore_case.
20772 (find_font_encoding): Change argument to Lisp_Object. Use
20773 fast_string_match_ignore_case instead of
20774 fast_c_string_match_ignore_case. Change caller.
20775
20776 2008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * xdisp.c (get_next_display_element): In unibyte case, decide to
20779 display in octal form by checking a character by
20780 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20781
20782 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20783
20784 * character.c (unibyte_has_multibyte_table): New variable.
20785
20786 * character.h (unibyte_has_multibyte_table): Extern it.
20787 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20788
20789 2008-02-01 Kenichi Handa <handa@m17n.org>
20790
20791 * coding.c (encode_coding_iso_2022): Fix handling of charset
20792 annotation.
20793
20794 2008-02-01 Kenichi Handa <handa@m17n.org>
20795
20796 * coding.c (setup_coding_system): If coding_system is nil, use
20797 Qundecided.
20798 (Fterminal_coding_system): Return nil if terminal coding system is
20799 `undecided'.
20800 (syms_of_coding): Define coding-system `undecided' here. Setup
20801 terminal_coding as `undecided'.
20802
20803 2008-02-01 Kenichi Handa <handa@m17n.org>
20804
20805 * xdisp.c (message_dolog, set_message_1): Call
20806 unibyte_char_to_multibyte with arg type int.
20807
20808 * lread.c (read1): Fix reading of a char-table.
20809
20810 * print.c (print_object): Include sub char-table in circularities
20811 detection.
20812
20813 2008-02-01 Kenichi Handa <handa@m17n.org>
20814
20815 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20816 Append the found sequences in car of ARGS instead of prepending.
20817
20818 2008-02-01 Kenichi Handa <handa@m17n.org>
20819
20820 * fileio.c (report_file_error): Make a unibyte string from
20821 strerror (errorno).
20822 (Fsubstitute_in_file_name): Fix the arg to
20823 unibyte_char_to_multibyte. It is evaluated twice.
20824
20825 2008-02-01 Kenichi Handa <handa@m17n.org>
20826
20827 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20828
20829 2008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20832 BOM is not found.
20833 (detect_coding, detect_coding_system): Optimization for ISO-2022
20834 when no 8-bit data is found.
20835
20836 2008-02-01 Jason Rumney <jasonr@gnu.org>
20837
20838 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20839
20840 2008-02-01 Kenichi Handa <handa@m17n.org>
20841
20842 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20843 CHARS.
20844
20845 2008-02-01 Steven Tamm <steventamm@mac.com>
20846
20847 * macterm.c (mac_encode_char): Add charset argument and update
20848 to use encoding_type.
20849 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20850 switch to pure fontset.
20851 (decode_mac_font_name): Temporarily remove decoding.
20852 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20853 (x_load_font): Temporarily remove encoding.
20854
20855 2008-02-01 Kenichi Handa <handa@m17n.org>
20856
20857 * xfaces.c (Fface_font): If frame is not on a window system,
20858 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20859 refer to face->font.
20860 (split_font_name_into_vector, build_font_name_from_vector)
20861 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20862 when HAVE_WINDOW_SYSTEM is defined.
20863
20864 2008-02-01 Kenichi Handa <handa@m17n.org>
20865
20866 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20867 (x_produce_glyphs): Fix setting of members of cmp in case
20868 cmp->glyph_len is zero.
20869
20870 * fontset.c (Fset_fontset_font): Fix docstring.
20871 (Ffontset_info): Make it backward compatible. New arg ALL.
20872
20873 2008-02-01 Kim F. Storm <storm@cua.dk>
20874
20875 * process.c (read_process_output): Grow decoding_buf when needed;
20876 this could cause a crash in allocate_string and compact_small_strings.
20877
20878 2008-02-01 Kenichi Handa <handa@m17n.org>
20879
20880 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20881
20882 2008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * coding.c (setup_coding_system): Set coding->common_flags
20885 correctly for raw-text.
20886 (consume_chars): On encoding unibyte text by raw-text, don't check
20887 multibyte form.
20888 (encode_coding): On encoding by raw-text, never use translation tables.
20889
20890 * fileio.c (e_write): Short cut for the case of no encoding.
20891
20892 2008-02-01 Kenichi Handa <handa@m17n.org>
20893
20894 * coding.c (detect_coding, detect_coding_system): Delete unused
20895 variables.
20896
20897 2008-02-01 Kenichi Handa <handa@m17n.org>
20898
20899 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20900 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20901
20902 2008-02-01 Kenichi Handa <handa@m17n.org>
20903
20904 * coding.c (Ffind_coding_systems_region_internal): Include
20905 raw-text and no-conversion in the result.
20906
20907 2008-02-01 Kenichi Handa <handa@m17n.org>
20908
20909 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20910 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20911 FONT_DEF.
20912 (font_def_arg, add_arg, from_arg, to_arg): New args.
20913 (set_fontset_font): Change argument.
20914 (Fset_fontset_font): Fix for the case that TARGET is a script
20915 name and charset name.
20916 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20917
20918 2008-02-01 Kenichi Handa <handa@m17n.org>
20919
20920 * fontset.c (fontset_font): Rename from fontset_face. Change return
20921 value.
20922 (face_suitable_for_char_p, face_for_char): Adjust for the change
20923 of fontset_font.
20924 (make_fontset_for_ascii_face): Fix setting of the fontset element
20925 for ASCII.
20926 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20927 to get a font name.
20928 (Ffontset_info): Adjust for the change of fontset_font.
20929
20930 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20931
20932 * character.h (LEADING_CODE_LATIN_1_MIN)
20933 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20934
20935 2008-02-01 Kenichi Handa <handa@m17n.org>
20936
20937 * editfns.c (check_translation): New function.
20938 (Ftranslate_region_internal): Handle M:N mapping.
20939
20940 2008-02-01 Kenichi Handa <handa@m17n.org>
20941
20942 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20943
20944 2008-02-01 Kenichi Handa <handa@m17n.org>
20945
20946 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20947 goto invalid_code.
20948 (decode_coding_iso_2022): Fix handling of invalid designation.
20949
20950 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20951 after calling code_conversion_save.
20952
20953 2008-02-01 Kenichi Handa <handa@m17n.org>
20954
20955 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20956
20957 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20958
20959 * fontset.c: Include "intervals.h".
20960 (fontset_face): Fix comparing of Lisp_Objects.
20961 (free_face_fontset, new_fontset_from_font_name): Fix
20962 Lisp_Object/int mixup.
20963
20964 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20965
20966 * coding.c: Add many prototypes for static functions.
20967 (get_translation_table): Allow max_lookup to be NULL.
20968 (decode_coding, Ffind_coding_systems_region_internal)
20969 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20970 get_translation_table with max_lookup NULL.
20971
20972 2008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * coding.c (get_translation_table): Declare it as Lisp_Object.
20975 (LOOKUP_TRANSLATION_TABLE): New macro.
20976 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20977 instead of CHAR_TABLE_REF.
20978
20979 2008-02-01 Kenichi Handa <handa@m17n.org>
20980
20981 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20982 annotation data format.
20983 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20984 Change arguments FROM and TO to single argument NCHARS. Change caller.
20985 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20986 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20987 (decode_coding_ccl, decode_coding_charset): Pay attention to
20988 coding->charbuf_used.
20989 (get_translation): New function.
20990 (produce_chars): New arguments translation_table and last_block.
20991 Translate characters here. Return number of carryover chars.
20992 Change caller.
20993 (produce_composition): New argument pos. Change caller.
20994 Adjust for the change of annotation data format.
20995 (produce_charset, produce_annotation): Likewise.
20996 (decode_coding, encode_coding): Don't call translate_chars.
20997 (consume_chars): New arg translation_table. Change caller.
20998 (translate_chars): Delete.
20999 (syms_of_coding): Make translation-table's number of extra slots 2.
21000
21001 2008-02-01 Kenichi Handa <handa@m17n.org>
21002
21003 * search.c (simple_search): Fix setting this_pos_byte in backward
21004 search.
21005
21006 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21007 byte sequence.
21008 (detect_coding_ccl): Fix setting of the variable valids.
21009
21010 2008-02-01 Kenichi Handa <handa@m17n.org>
21011
21012 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21013
21014 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21015
21016 * editfns.c (Ftranslate_region_internal): Rename from
21017 Ftranslate_region. Accept a char-table in TABLE.
21018 (syms_of_editfns): Defsubr Stranslate_region_internal.
21019
21020 * xfaces.c (set_lface_from_font_name): If a font is specified for
21021 a frame, generate a fontset from the font.
21022 (build_scalable_font_name): If the scalable font is requested for
21023 a specific size, don't change that size.
21024 (try_font_list): Try a scalable font also in the case that a
21025 pattern string is specified.
21026
21027 2008-02-01 Kenichi Handa <handa@m17n.org>
21028
21029 * xfaces.c (Fface_font): New optional arg CHARACTER.
21030
21031 2008-02-01 Kenichi Handa <handa@m17n.org>
21032
21033 * charset.h (CHARSET_OFFSET): New macro.
21034
21035 2008-02-01 Kenichi Handa <handa@m17n.org>
21036
21037 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21038
21039 * fontset.c (fontset_face): Handle the case that repertory is a
21040 char-table.
21041 (find_font_encoding): Return nil for unknown encoding.
21042 (Fset_fontset_font): Ignore a font of unknown encoding.
21043
21044 2008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * keymap.c (describe_vector): Handle default value of a char table.
21047
21048 * fontset.c (fontset_face): Handle fallback fonts correctly.
21049 (Ffontset_info): Return infomation about fallback fonts.
21050
21051 2008-02-01 Kenichi Handa <handa@m17n.org>
21052
21053 * fontset.c (FONTSET_DEFAULT): New macro.
21054 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21055 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21056 the case that it is nil.
21057 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21058 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21059
21060 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21061 subset or superset.
21062
21063 2008-02-01 Kenichi Handa <handa@m17n.org>
21064
21065 * emacs.c (main): Call init_charset after syms_of_XXX.
21066
21067 * charset.c (Vcharset_map_directory): Delete.
21068 (Vcharset_map_path): New variable.
21069 (load_charset_map_from_file): Use Vcharset_map_path instead.
21070 (init_charset): Initialize Vcharset_map_path.
21071 (syms_of_charset): Delete declaration of "charset-map-directory",
21072 add declaration of "charset-map-path".
21073
21074 2008-02-01 Kenichi Handa <handa@m17n.org>
21075
21076 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21077 ASCII only string.
21078
21079 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21080
21081 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21082 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21083
21084 2008-02-01 Kenichi Handa <handa@m17n.org>
21085
21086 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21087
21088 * coding.c (QCmnemonic, QCdefalut_char)
21089 (QCdecode_translation_table, QCencode_translation_table)
21090 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21091 (get_translation_table): Return a list of translation tables if
21092 necessary.
21093 (decode_coding): Call get_translation_table with ENCODEP 0.
21094 (char_encodable_p): If translation_table is non-nil, always call
21095 translate_char.
21096 (Fdefine_coding_system_internal): Accept list of translation
21097 tables as :encode-translation-table and :decode-translation-table.
21098 (Fcoding_system_put): New function.
21099 (syms_of_coding): Declare new symbols. Defsubr
21100 Scoding_system_put.
21101 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21102 typically JISX0212.
21103
21104 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21105 when the charset is superset type.
21106
21107 * character.c (translate_char): Accept list of translation tables.
21108
21109 2008-02-01 Kenichi Handa <handa@m17n.org>
21110
21111 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21112 (CODING_ATTR_TRANS_TBL): New macro.
21113
21114 * coding.c (get_translation_table): New function.
21115 (translate_chars): Fix the bug of skipping annotation data.
21116 (decode_coding, encode_coding): Utilize get_translation_table.
21117 (char_encodable_p, Funencodable_char_position): Translate char if
21118 necessary.
21119 (Ffind_coding_systems_region_internal)
21120 (Fcheck_coding_systems_region): Setup translation table for encode
21121 in a coding system attribute vector in advance.
21122 (Fdefine_coding_system_internal): Allow a symbol as translation
21123 table. For shift-jis type coding system, allow 4th charset.
21124
21125 2008-02-01 Kenichi Handa <handa@m17n.org>
21126
21127 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21128
21129 * xdisp.c (get_next_display_element): Pass -1 as POS to
21130 FACE_FOR_CHAR if displaying a C-string.
21131
21132 2008-02-01 Kenichi Handa <handa@m17n.org>
21133
21134 * composite.c (get_composition_id): Handle xoff and yoff in a
21135 composition rule.
21136
21137 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21138 (struct composition): New member lbearing and rbearing.
21139
21140 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21141 (x_get_glyph_overhangs): Handle a composition glyph.
21142 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21143
21144 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21145 composition glyph.
21146
21147 2008-02-01 Kenichi Handa <handa@m17n.org>
21148
21149 * print.c: Include charset.h.
21150 (Vprint_charset_text_property): New variable.
21151 (Qdefault): Extern it.
21152 (PRINT_STRING_NON_CHARSET_FOUND)
21153 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21154 (print_check_string_result): New variable.
21155 (print_check_string_charset_prop): New function.
21156 (print_prune_charset_plist): New variable.
21157 (print_prune_string_charset): New function.
21158 (print_object): Call print_prune_string_charset if
21159 Vprint_charset_text_property is not t.
21160 (print_interval): Print nothing if interval->plist is nil.
21161 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21162 variable. Init and staticpro print_prune_charset_plist.
21163
21164 2008-02-01 Kenichi Handa <handa@m17n.org>
21165
21166 * fontset.c (new_fontset_from_font_name): Use the specified font
21167 for all characters in the new fontset.
21168
21169 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21170 OBJECT args.
21171
21172 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21173 OBJECT args for composition too.
21174
21175 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21176 OBJECT args.
21177
21178 2008-02-01 Kenichi Handa <handa@m17n.org>
21179
21180 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21181
21182 * fontset.c (reorder_font_vector): Adjust for the change of
21183 FONT_DEF format.
21184 (fontset_face): New arg id. Change caller.
21185 (face_for_char): New args pos and object.
21186 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21187 (fs_query_fontset): Check NAME by Fassoc too.
21188 (Fset_fontset_font): Allow non-XLFD font name.
21189 (Ffontset_info): Adjust for the change of FONT_DEF format.
21190
21191 * fontset.h (face_for_char): Adjust prototype.
21192
21193 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21194 (append_space, extend_face_to_end_of_line)
21195 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21196 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21197
21198 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21199 POS and OBJECT args.
21200
21201 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21202 POS and OBJECT args.
21203
21204 2008-02-01 Jason Rumney <jasonr@gnu.org>
21205
21206 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21207 of GlobalAlloc'ed memory.
21208
21209 2008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21212
21213 * charset.h (charset_table_used): Delete extern.
21214
21215 * charset.c (charset_table_used): Make it static.
21216 (map_charset_chars): Fix args to c_function with.
21217
21218 * chartab.c (map_sub_char_table_for_charset): Fix args to
21219 c_function with.
21220
21221 * coding.h (enum coding_result_code): Delete
21222 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21223
21224 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21225 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21226 (Vlast_code_conversion_error): New variables.
21227 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21228 (ONE_MORE_BYTE): Record error if any instead of signaling an
21229 error. If non-ASCII multibyte char is found, return the negative
21230 value of the code. All callers changed to check it.
21231 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21232 (record_conversion_result): New function. Change all codes setting
21233 coding->result to call this function.
21234 (detect_coding_utf_8, decode_coding_utf_8)
21235 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21236 Don't use the local variable incomplete.
21237 (emacs_mule_char): Change the second arg to `const'.
21238 (decode_coding): Fix of flushing out unprocessed data.
21239 (make_conversion_work_buffer): Fix making of a work buffer.
21240 (decode_coding_object): Return coding->dst_object.
21241
21242 * fontset.c (set_fontset_font): Fix args.
21243
21244 * lisp.h (CHARACTERBITS): Define as 22.
21245
21246 * process.c (send_process): Be sure to set coding->src_multibyte.
21247
21248 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21249
21250 2008-02-01 Kenichi Handa <handa@m17n.org>
21251
21252 * xdisp.c (handle_auto_composed_prop): Give limit to
21253 Fnext_single_char_property_change.
21254
21255 2008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * composite.c (syms_of_composite): Don't make the composition hash
21258 table weak.
21259
21260 * fontset.c (Fset_fontset_font): Fix docstring.
21261
21262 * lisp.h (detect_coding_system): Adjust prototype.
21263
21264 * fileio.c (kill_workbuf_unwind): Delete this function.
21265 (Finsert_file_contents): Adjust the call of detect_coding_system.
21266 Get conversion_buffer by code_conversion_save. Use the macro
21267 CODING_MAY_REQUIRE_DECODING. After decoding, update
21268 coding_system.
21269
21270 * coding.h (make_conversion_work_buffer): Delete extern.
21271 (code_conversion_save): Extern it.
21272
21273 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21274 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21275 (decode_coding_utf_8): Don't do eol converion.
21276 (detect_coding_utf_16): Check coding->src_chars, not
21277 coding->src_bytes. Add heuristics for those that have no signature.
21278 (decode_coding_emacs_mule, decode_coding_iso_2022)
21279 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21280 Don't do eol converion.
21281 (adjust_coding_eol_type): Return a new coding system.
21282 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21283 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21284 each change.
21285 (decode_coding): Pay attention to undo_list. Do eol conversion for
21286 all types of coding-systems (if necessary).
21287 (Vcode_conversion_work_buf_list): Delete it.
21288 (Vcode_conversion_reused_workbuf): Rename from
21289 Vcode_conversion_reused_work_buf.
21290 (Vcode_conversion_workbuf_name): New variable.
21291 (reused_workbuf_in_use): New variable.
21292 (make_conversion_work_buffer): Delete the arg DEPTH.
21293 (code_conversion_restore): Change argument to cons.
21294 (code_conversion_save): Delete the argument BUFFER. Change callers.
21295 (detect_coding_system): New argument src_chars. Change callers.
21296 Fix for utf-16 detection.
21297 (init_coding_once): Don't use ISO_carriage_return.
21298 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21299 reused_workbuf_in_use.
21300
21301 2008-02-01 Kenichi Handa <handa@m17n.org>
21302
21303 * keymap.c (store_in_keymap): Pay attention to the case that idx
21304 is a cons specifying a character range.
21305
21306 2008-02-01 Kenichi Handa <handa@m17n.org>
21307
21308 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21309 HANDLED_RECOMPUTE_PROPS.
21310
21311 * coding.c (Fdefine_coding_system_internal): Fix checking of
21312 ascii compatibility.
21313
21314 2008-02-01 Kenichi Handa <handa@m17n.org>
21315
21316 * charset.c (find_charsets_in_text): Delete unused locale variable.
21317 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21318
21319 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21320 Resync charset_list to Vemacs_mule_charset_list.
21321
21322 * keymap.c (store_in_keymap): Pay attention to the case that idx
21323 is a cons specifying a character range.
21324
21325 2008-02-01 Kenichi Handa <handa@m17n.org>
21326
21327 * composite.c (update_compositions): Bind inhibit-read-only, etc
21328 to t before calling remove-list-of-text-properties.
21329
21330 * print.c (print_object): Always print ASCII chars as is.
21331
21332 2008-02-01 Kenichi Handa <handa@m17n.org>
21333
21334 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21335
21336 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21337 is a char table.
21338
21339 2008-02-01 Kenichi Handa <handa@m17n.org>
21340
21341 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21342
21343 2008-02-01 Kenichi Handa <handa@m17n.org>
21344
21345 * xfaces.c (set_lface_from_font_name): Fix for the case that
21346 FONTNAME is not fontset name.
21347
21348 2008-02-01 Kenichi Handa <handa@m17n.org>
21349
21350 * fns.c (base64_encode_1): Fix previous change.
21351
21352 2008-02-01 Kenichi Handa <handa@m17n.org>
21353
21354 * fontset.c (set_fontset_font): New function.
21355 (Fset_fontset_font): If a font is specified for a charset, use
21356 map_charset_chars to store the font spec in a fontset.
21357
21358 2008-02-01 Kenichi Handa <handa@m17n.org>
21359
21360 * fontset.c (fontset_face): Create a fallback fontset on demand.
21361 (make_fontset): Don't create a fallback fontset here.
21362 (free_face_fontset): Free a fallback fontset (if any) too.
21363 (n_auto_fontsets): Delete this variable.
21364 (auto_fontset_alist): New variable.
21365 (new_fontset_from_font_name): Check auto_fontset_alist.
21366 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21367 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21368 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21369 Defsubr Sfontset_list_all.
21370
21371 2008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21374
21375 2008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21378
21379 2008-02-01 Kenichi Handa <handa@m17n.org>
21380
21381 * editfns.c (Fgoto_char): Fix docstring.
21382
21383 2008-02-01 Kenichi Handa <handa@m17n.org>
21384
21385 * insdel.c (insert_from_gap): Adjust intervals correctly.
21386
21387 2008-02-01 Jason Rumney <jasonr@gnu.org>
21388
21389 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21390 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21391 (w32_initialize): Try to load it.
21392 (x_get_font_repertory): Use it if available.
21393 (w32_encode_char): Add shortcut for unicode output.
21394
21395 * w32fns.c (w32_load_system_font): Default charset to -1.
21396 (x_to_w32_charset): Match all fonts for unicode.
21397 (w32_to_x_charset): New parameter matching. Don't return partial
21398 or wildcard charsets.
21399 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21400 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21401 (w32_to_x_font): Match charset to real charset.
21402 (enum_font_cb2): Always list unicode versions.
21403
21404 * makefile.w32-in (temacs): Increase EMHEAP.
21405
21406 2008-02-01 Jason Rumney <jasonr@gnu.org>
21407
21408 * w32term.c (w32_encode_char): New charset parameter.
21409 font_info.encoding becomes encoding_type.
21410 (x_get_font_repertory): New function. Warning: stub only!
21411 (x_new_font): Return quickly if font already set.
21412 (x_new_fontset): fontsetname parameter is Lisp_Object.
21413 Use new fs_query_fontset. Try new_fontset_from_font_name.
21414 Use fontset_name for return value.
21415
21416 * w32term.h: Declare x_get_font_repertory.
21417
21418 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21419 place of find_charset_in_text. Use encode_coding_object in place
21420 of encode_coding.
21421 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21422 decode_coding.
21423
21424 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21425 of x_new_fontset.
21426 (w32_load_system_font): Initialize charset as unicode.
21427 font_info.encoding becomes encoding_type.
21428 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21429 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21430 (syms_of_w32fns): Set get_font_repertory_func.
21431
21432 * w32console.c: Include character.h. Use terminal_encode_buffer
21433 from term.c.
21434 (write_glyphs): Use new version of encode_terminal_code. Use
21435 encode_coding_object in place of encode_coding.
21436
21437 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21438 encoding becomes encoding_type.
21439
21440 * term.c (terminal_encode_buffer): Make externally visible.
21441
21442 * makefile.w32-in: Add character.h dependancies.
21443 (character.o, chartab.o): New targets.
21444
21445 2008-02-01 Kenichi Handa <handa@m17n.org>
21446
21447 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21448 CODING_ID_EOL_TYPE.
21449
21450 2008-02-01 Andreas Schwab <schwab@suse.de>
21451
21452 * coding.c (produce_chars): Revert last change.
21453
21454 2008-02-01 Kenichi Handa <handa@m17n.org>
21455
21456 * charset.h (charset_unicode): Extern it.
21457
21458 * charset.c (string_xstring_p): Check by (C >= 0x100).
21459 (find_charsets_in_text): Change format of the arc CHARSETS. New
21460 arg MULTIBYTE.
21461 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21462 change of find_charsets_in_text.
21463 (Fsplit_char): Fix doc. Never return unknown.
21464
21465 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21466
21467 * coding.c (Fdefine_coding_system_alias): Update
21468 Vcoding_system_list.
21469
21470 * fontset.c (load_font_get_repertory): Pay attention to the case
21471 that ENCODING of a font is specified by a char-table.
21472
21473 * xterm.c (x_get_font_repertory): Handle the case that the
21474 encoding of font is other than Unicode.
21475
21476 2008-02-01 Kenichi Handa <handa@m17n.org>
21477
21478 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21479 if a character is encodable by the terminal coding system. If
21480 not, produces proper number of `?'s. Update
21481 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21482 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21483
21484 2008-02-01 Kenichi Handa <handa@m17n.org>
21485
21486 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21487 variables.
21488 (encode_terminal_code): Change argument. Encode multiple
21489 characters at once. Store the result of encoding in
21490 terminal_encode_buffer.
21491 (write_glyphs, insert_glyphs): Adjust for the change of
21492 encode_terminal_code.
21493 (term_init): Initialize terminal_encode_buffer and
21494 terminal_encode_buf_size.
21495
21496 * coding.c (consume_chars): If coding->src_object is nil, don't
21497 check annotation.
21498
21499 2008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * character.c (char_string): Use ASCII_CHAR_P instead of
21502 SINGLE_BYTE_CHAR_P.
21503
21504 2008-02-01 Kenichi Handa <handa@m17n.org>
21505
21506 * xdisp.c (handle_auto_composed_prop): Check if the last
21507 characters of auto-composed region is newly composed with the
21508 following characters.
21509 (handle_composition_prop): Fix checking of point being inside
21510 composition.
21511
21512 2008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * fns.c (concat): Don't change multibyteness of the result by
21515 concatenating an 8-bit character.
21516
21517 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21518 multibyteness of the result when newelt is an 8-bit character.
21519
21520 2008-02-01 Dave Love <fx@gnu.org>
21521
21522 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21523 EMACS_INT.
21524
21525 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21526
21527 * xfaces.c (face_numeric_value): Declare dim size_t.
21528 (Finternal_lisp_face_equal_p): Remove unused f.
21529
21530 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21531 (MATRIX_ROW): Remove unused vars.
21532 (draw_glyphs, x_insert_glyphs, fast_find_position)
21533 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21534 byte/char counts.
21535
21536 * regex.c (regex_compile): Remove unused var.
21537
21538 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21539
21540 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21541 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21542
21543 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21544
21545 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21546
21547 * fileio.c (Fwrite_region): Remove unused var.
21548
21549 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21550 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21551
21552 * composite.c (Fremove_list_of_text_properties): Declare.
21553
21554 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21555 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21556 (coding_inherit_eol_type): Remove unused attrs.
21557 (detect_coding): Cast arg of detect_eol.
21558
21559 * charset.c (syms_of_charset): Remove unused var p.
21560 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21561 byte/char counts.
21562
21563 * casetab.c (set_case_table): Remove unused var.
21564
21565 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21566 unused vars.
21567
21568 2008-02-01 Dave Love <fx@gnu.org>
21569
21570 * xterm.c (x_bitmap_mask): Declare.
21571
21572 2008-02-01 Dave Love <fx@gnu.org>
21573
21574 * xterm.c (x_term_init): Fix type error.
21575
21576 * lisp.h: Add Funibyte_char_to_multibyte.
21577
21578 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21579 (Fset_coding_system_priority): Doc fix.
21580
21581 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21582
21583 * indent.c (check_composition): Make start and end EMACS_INT.
21584
21585 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21586
21587 * xdisp.c (handle_composition_prop, check_point_in_composition):
21588 Make buffer positions EMACS_INT.
21589
21590 * composite.c (find_composition, run_composition_function)
21591 (update_compositions, Ffind_composition_internal): Make buffer
21592 positions EMACS_INT.
21593
21594 * composite.h (find_composition, update_compositions): Make
21595 position args EMACS_INT.
21596
21597 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21598
21599 * intervals.c (get_property_and_range):
21600 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21601
21602 * unexalpha.c: Don't include varargs.h.
21603
21604 2008-02-01 Dave Love <fx@gnu.org>
21605
21606 * coding.h (ENCODE_UTF_8): New.
21607
21608 * Makefile.in (gtkutil.o): Depend on coding.h.
21609
21610 * coding.c (Fset_coding_system_priority): Doc fix.
21611
21612 2008-02-01 Kenichi Handa <handa@m17n.org>
21613
21614 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21615 the case of auto saving.
21616
21617 2008-02-01 Andreas Schwab <schwab@suse.de>
21618
21619 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21620 `range' from GC.
21621
21622 2008-02-01 Kenichi Handa <handa@m17n.org>
21623
21624 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21625
21626 2008-02-01 Kenichi Handa <handa@m17n.org>
21627
21628 * fileio.c (choose_write_coding_system): Return a decided coding system.
21629 (Fwrite_region): Set Vlast_coding_system_used to the return value
21630 of choose_write_coding_system.
21631
21632 2008-02-01 Kenichi Handa <handa@m17n.org>
21633
21634 * charset.c (Fset_charset_priority): Pay attention to duplicated
21635 arguments.
21636
21637 * coding.c (QCcategory): New variable.
21638 (syms_of_coding): Defsym it. Set all elements of
21639 Vcoding_category_table and their symbol values.
21640 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21641 coding-category-XXX, and coding-category-list.
21642 (Fdefine_coding_system_internal): Add category in the plist.
21643
21644 2008-02-01 Kenichi Handa <handa@m17n.org>
21645
21646 * callproc.c (Fcall_process): Handle carryover correctly.
21647
21648 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21649 (raw_text_coding_system): Check NILP (coding_system).
21650 (coding_inherit_eol_type): Check NILP (coding_system) and
21651 NILP (parent).
21652 (consume_chars): Fix for the case of raw-text.
21653
21654 * process.c (read_process_output): Handle carryover correctly.
21655
21656 2008-02-01 Dave Love <fx@gnu.org>
21657
21658 * regex.c (re_search_2): Fix last change.
21659
21660 2008-02-01 Kenichi Handa <handa@m17n.org>
21661
21662 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21663 target_multibyte. Even in a unibyte case, return a converted
21664 multibyte char.
21665 (GET_CHAR_AFTER): New macro.
21666 (PATFETCH): Translate via multibyte char.
21667 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21668 (SETUP_MULTIBYTE_RANGE): New macro.
21669 (regex_compile): Setup compiled code so that its multibyteness
21670 matches that of a target. Fix the handling of "[X-YZ]" using
21671 SETUP_MULTIBYTE_RANGE.
21672 (analyse_first) <charset>: For filling fastmap for all multibyte
21673 characters, don't check by BASE_LEADING_CODE_P.
21674 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21675 the same as RE_MULTIBYTE_P (bufp) now.
21676 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21677 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21678 (TRANSLATE_VIA_MULTIBYTE): New macro.
21679 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21680 It is the same as RE_MULTIBYTE_P (bufp) now.
21681 <exactn>: Translate via multibyte.
21682 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21683 translate it.
21684 <charset, charset_not>: Fetch a character by
21685 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21686 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21687 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21688 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21689 by GET_CHAR_AFTER.
21690 (bcmp_translate): Likewise.
21691
21692 * search.c (compile_pattern): Check the member target_multibyte,
21693 not the member multibyte of buf.
21694
21695 * lread.c (read1): While reading a string, set force_singlebyte
21696 and force_multibyte correctly.
21697
21698 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21699 up of unibyte_to_multibyte_table.
21700
21701 2008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * coding.c (setup_coding_system): If coding has
21704 post-read-conversion or pre-write-conversion, set
21705 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21706 respectively.
21707 (decode_coding_gap): Run post-read-conversion if any.
21708
21709 * fileio.c (Finsert_file_contents): Even if we read into a
21710 unibyte buffer, check if we must decode the result or not.
21711
21712 2008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * coding.c (make_conversion_work_buffer): Change the work buffer
21715 name to the same one as that of Emacs 21.
21716
21717 2008-02-01 Kenichi Handa <handa@m17n.org>
21718
21719 * coding.h (make_conversion_work_buffer): Adjust prototype.
21720 (code_conversion_restore): Don't extern it.
21721
21722 * coding.c (detected_mask): Delete unused variable.
21723 (decode_coding_iso_2022): Pay attention to the byte sequence of
21724 CTEXT extended segment, and retain those bytes as is.
21725 (decode_coding_ccl): Delete unused variable `valids'.
21726 (setup_coding_system): Delete unused variable `category'.
21727 (consume_chars): Delete unused variable `category'. Make it work
21728 for non-multibyte case.
21729 (make_conversion_work_buffer): Change argument.
21730 (saved_coding): Delete unused variable.
21731 (code_conversion_restore): Don't check saved_coding->destination.
21732 (code_conversion_save): New function.
21733 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21734 instead of record_unwind_protect.
21735 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21736 (detect_coding_system): Delete unused variable `mask'.
21737 (Fdefine_coding_system_internal): Delete unused variable id.
21738
21739 * fileio.c (kill_workbuf_unwind): New function.
21740 (Finsert_file_contents): On replacing, call
21741 make_conversion_work_buffer with correct args, and call
21742 record_unwind_protect with the first arg kill_workbuf_unwind.
21743
21744 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21745
21746 2008-02-01 Kenichi Handa <handa@m17n.org>
21747
21748 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21749 (fontset_add): Fix for the case that TO is less than TO1.
21750 (Ffontset_info): Don't use fallback fontset on checking the
21751 default fontset.
21752 (dump_fontset): New function for debugging.
21753
21754 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21755 coding_type is Qcharset.
21756
21757 2008-02-01 Kenichi Handa <handa@m17n.org>
21758
21759 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21760 (map_char_table): Don't inherit the value from the parent on
21761 initializing VAL. Adjust for the above change.
21762
21763 2008-02-01 Kenichi Handa <handa@m17n.org>
21764
21765 * coding.c (Qsignature, Qendian): Delete these variables.
21766 (syms_of_coding): Don't initialize them.
21767 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21768 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21769 detect_info->found.
21770 (decode_coding_utf_16): Don't detect BOM here.
21771 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21772 is NOT utf_16_without_bom.
21773 (setup_coding_system): For a coding system of type utf-16, check
21774 if the attribute :endian is Qbig or not (not nil or not), and set
21775 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21776 (detect_coding): If coding type is utf-16 and BOM detection is
21777 required, detect it.
21778 (Fdefine_coding_system_internal): For a coding system of type
21779 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21780
21781 2008-02-01 Kenichi Handa <handa@m17n.org>
21782
21783 * coding.c (coding_set_source): Fix for the case that the current
21784 buffer is different from coding->src_object.
21785 (decode_coding_object): Don't use the conversion work buffer if
21786 DST_OBJECT is a buffer.
21787
21788 2008-02-01 Dave Love <fx@gnu.org>
21789
21790 * lread.c (read_emacs_mule_char) [len==2]: Index
21791 emacs_mule_charset correctly.
21792
21793 2008-02-01 Dave Love <fx@gnu.org>
21794
21795 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21796 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21797 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21798 treated specially.)
21799 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21800 (detected_mask): Remove Big5 bits.
21801
21802 2008-02-01 Kenichi Handa <handa@m17n.org>
21803
21804 The following changes are to make the font rescaling facility
21805 compatible with Emacs 21.
21806
21807 * xfaces.c (Vface_font_rescale_alist): Rename from
21808 Vface_resizing_fonts.
21809 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21810 (font_rescale_ratio): Rename from font_resizing_ratio.
21811 (split_font_name): Set font->rescale_ratio.
21812 (better_font_p): Pay attention to font->rescale_ratio.
21813 (build_scalable_font_name): Likewise. Change RESX, and RESY
21814 fields.
21815 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21816
21817 2008-02-01 Kenichi Handa <handa@m17n.org>
21818
21819 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21820 (Qutf_16_le): Remove these variables.
21821 (syms_of_coding): Don't DEFSYM them.
21822 (decode_coding_utf_16): Fix handling of BOM.
21823 (encode_coding_utf_16): Fix handling of BOM.
21824
21825 2008-02-01 Kenichi Handa <handa@m17n.org>
21826
21827 * fileio.c (Finsert_file_contents): On replacing, before decoding
21828 the file into the work buffer, set point of the work buffer to the end.
21829
21830 2008-02-01 Dave Love <fx@gnu.org>
21831
21832 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21833
21834 2008-02-01 Dave Love <fx@gnu.org>
21835
21836 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21837 and fix C types.
21838
21839 2008-02-01 Kenichi Handa <handa@m17n.org>
21840
21841 * xdisp.c (SKIP_GLYPHS): New macro.
21842 (set_cursor_from_row): Pay attention to string display properties.
21843
21844 * category.c (copy_category_entry): Fix for the case that RANGE
21845 is an integer.
21846
21847 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21848
21849 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21850
21851 2008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * charset.c (Fcharset_id_internal): New function.
21854 (syms_of_charset): Defsubr it.
21855
21856 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21857 with the last arg charset_list acquired from coding.
21858 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21859 the attribute coding_attr_ccl_valids.
21860
21861 * coding.h (enum define_coding_ccl_arg_index): Set the first
21862 member coding_arg_ccl_decoder to coding_arg_max.
21863
21864 * ccl.h (ccl_driver): Adjust prototype.
21865
21866 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21867 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21868 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21869 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21870 last arg Qnil.
21871
21872 2008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21875 call encode_char.
21876
21877 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21878
21879 2008-02-01 Dave Love <fx@gnu.org>
21880
21881 * composite.c (syms_of_composite): Make composition_hash_table weak.
21882
21883 2008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21886 (font_name_registry): Don't extern them.
21887 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21888
21889 * fontset.h (Qfontset): Don't extern it.
21890 (new_fontset_from_font_name): Extern it.
21891
21892 * fontset.c: Give 8 extra slots to fontset objects.
21893 (Qfontset_info): New variable.
21894 (syms_of_fontset): Defsym it.
21895 (FONTSET_FALLBACK): New macro.
21896 (fontset_face): Try also the default fontset.
21897 (make_fontset): Realize a fallback fontset from the default fontset.
21898 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21899 using split_font_name_into_vector and build_font_name_from_vector.
21900 (Fset_fontset_font): Access the elements of font_spec by enum
21901 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21902 name by using split_font_name_into_vector.
21903 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21904 generate a proper font name from the fontset name. Update
21905 Vfontset_alias_alist.
21906 (n_auto_fontsets): New variable.
21907 (new_fontset_from_font_name): New function.
21908 (Ffont_info): Store the information about fonts generated from the
21909 default fontset in the first extra slot of the returned char-table.
21910
21911 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21912 (font_name_registry): Delete function.
21913 (split_font_name_into_vector): New function.
21914 (build_font_name_from_vector): New function.
21915 (font_list): The argument REGISTRY is now a list of registry names.
21916 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21917 specifies an explicit font name, return the name as is. Make a
21918 list of registy names.
21919
21920 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21921 of x_new_fontset.
21922 (Fx_create_frame): Don't call x_new_fontset here. Just use
21923 x_list_fonts to check the existence of fonts.
21924
21925 * xterm.h (x_new_fontset): Adjust prototype.
21926
21927 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21928 string. Use new_fontset_from_font_name to create a fontset from a
21929 font name.
21930
21931 2008-02-01 Kenichi Handa <handa@m17n.org>
21932
21933 * syntax.c (Vfind_word_boundary_function_table): New name for
21934 Vnext_word_boundary_function_table.
21935 (find-word-boundary-function-table): New name for
21936 next-word-boundary-function-table.
21937
21938 2008-02-01 Dave Love <fx@gnu.org>
21939
21940 * Makefile.in: Fix some dependencies.
21941
21942 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21943 set it to nil before returning.
21944
21945 * composite.c (update_compositions): Fix type error.
21946
21947 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21948
21949 2008-02-01 Kenichi Handa <handa@m17n.org>
21950
21951 * xterm.c (x_new_font): Optimize for the case that the font is
21952 already set for the frame.
21953
21954 2008-02-01 Kenichi Handa <handa@m17n.org>
21955
21956 * chartab.c (char_table_ascii): Check if the char table contents
21957 is sub-char-table or not.
21958 (char_table_set, char_table_set_range): Fix argument to
21959 char_table_ascii.
21960
21961 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21962 (detect_coding_utf_8, detect_coding_utf_16)
21963 (detect_coding_emacs_mule, detect_coding_iso_2022)
21964 (detect_coding_sjis, detect_coding_big5)
21965 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21966 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21967 sequence is valid in this coding system. Change callers.
21968 (MAX_ANNOTATION_LENGTH): New macro.
21969 (ADD_ANNOTATION_DATA): New macro.
21970 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21971 ADD_ANNOTATION_DATA. Change the format of annotation data.
21972 (ADD_CHARSET_DATA): New macro.
21973 (emacs_mule_char): New argument ID. Change callers.
21974 (decode_coding_emacs_mule, decode_coding_iso_2022)
21975 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21976 Produce charset annotation data in coding->charbuf.
21977 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21978 to charset annotation data in coding->charbuf.
21979 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21980 coding->common_flags if the coding system is iso-2022 based and
21981 uses designation.
21982 (produce_composition): Adjust for the new annotation data format.
21983 (produce_charset): New function.
21984 (produce_annotation): Handle charset annotation.
21985 (handle_composition_annotation, handle_charset_annotation): New
21986 functions.
21987 (consume_chars): Handle charset annotation. Utilize the above two
21988 functions.
21989 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21990 buffer, get the deleted text as a string and set
21991 coding->src_object to that string.
21992 (detect_coding, detect_coding_system): Use the new struct
21993 coding_detection_info.
21994
21995 * coding.h (struct coding_detection_info): New structure.
21996 (struct coding_system): Adjust prototype of the member `detector'.
21997 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21998
21999 2008-02-01 Kenichi Handa <handa@m17n.org>
22000
22001 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22002
22003 2008-02-01 Dave Love <fx@gnu.org>
22004
22005 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22006 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22007 to new local and nullify apropos_accumulate before returning.
22008 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22009
22010 2008-02-01 Kenichi Handa <handa@m17n.org>
22011
22012 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22013 correctly.
22014
22015 2008-02-01 Dave Love <fx@gnu.org>
22016
22017 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22018
22019 2008-02-01 Kenichi Handa <handa@m17n.org>
22020
22021 The following changes are to make character composition happen
22022 automatically on displaying.
22023
22024 * Makefile.in (lisp, shortlisp): Add composite.elc.
22025
22026 * composite.h (Qauto_composed, Vauto_composition_function)
22027 (Qauto_composition_function): Extern them.
22028
22029 * composite.c (Vcomposition_function_table)
22030 (Qcomposition_function_table): Delete variables.
22031 (Qauto_composed, Vauto_composition_function)
22032 (Qauto_composition_function): New variables.
22033 (run_composition_function): Don't call
22034 compose-chars-after-function.
22035 (update_compositions): Clear `auto-composed' text property.
22036 (compose_chars_in_text): Delete this function.
22037 (syms_of_composite): Staticpro Qauto_composed and
22038 Qauto_composition_function. Declare Vauto_composition_function as
22039 a Lisp variable.
22040
22041 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22042
22043 * xdisp.c (it_props): Add an entry for Qauto_composed.
22044 (handle_auto_composed_prop): New function.
22045
22046 * xselect.c (selection_data_to_lisp_data): Don't call
22047 compose_chars_in_text.
22048
22049 2008-02-01 Dave Love <fx@gnu.org>
22050
22051 * keyboard.c (read_char): Modify checking around use of
22052 Vkeyboard_translate_table.
22053
22054 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22055 and fix C types.
22056
22057 2008-02-01 Kenichi Handa <handa@m17n.org>
22058
22059 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22060 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22061 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22062 the case that the last byte is '\r' correctly.
22063 (decode_coding): Flush out the unprocessed data correctly.
22064 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22065
22066 2008-02-01 Dave Love <fx@gnu.org>
22067
22068 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22069 Add XK_ISO... case.
22070 (xaw_scroll_callback): Revert last change.
22071
22072 2008-02-01 Kenichi Handa <handa@m17n.org>
22073
22074 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22075
22076 2008-02-01 Kenichi Handa <handa@m17n.org>
22077
22078 * xfaces.c (Vface_resizing_fonts): New variable.
22079 (struct font_name): New member `resizing_ratio'.
22080 (font_resizing_ratio): New function.
22081 (split_font_name): Set font->resizing_ratio.
22082 (better_font_p): Pay attention to font->resizing_ratio.
22083 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22084 RESX, and RESY fields.
22085 (try_alternative_families): Try scalable fonts if
22086 Vscalable_fonts_allowed is not Qt.
22087 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22088
22089 2008-02-01 Dave Love <fx@gnu.org>
22090
22091 * xterm.c (xaw_scroll_callback): Cast correctly.
22092
22093 2008-02-01 Dave Love <fx@gnu.org>
22094
22095 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22096 (lispy_kana_keys): Comment out.
22097 (make_lispy_event) [XK_kana_A]: Comment out.
22098
22099 * xterm.c (xaw_scroll_callback): Cast call_data.
22100 (XTread_socket): Deal with ASCII keysyms.
22101 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22102
22103 2008-02-01 Dave Love <fx@gnu.org>
22104
22105 * xterm.c (Vx_keysym_table): New.
22106 (syms_of_xterm): Initialize it.
22107 (XTread_socket): Use it.
22108 From head: Eliminate incorrect optimization that tried to avoid
22109 decoding the output of X*LookupString.
22110 (x_get_font_repertory): Delete charset declaration.
22111
22112 2008-02-01 Kenichi Handa <handa@m17n.org>
22113
22114 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22115 return 0.
22116 (Fdefine_coding_system_internal): Setup
22117 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22118
22119 2008-02-01 Dave Love <fx@gnu.org>
22120
22121 * coding.c (Fcheck_coding_system): Doc fix.
22122
22123 * editfns.c (Finsert_byte): Return a proper value.
22124
22125 2008-02-01 Kenichi Handa <handa@m17n.org>
22126
22127 * coding.c (decode_coding): Fix args to translate_chars. Pay
22128 attention to Vstandard_translation_table_for_decode.
22129 (encode_coding): Fix args to translate_chars. Pay attention to
22130 Vstandard_translation_table_for_encode.
22131
22132 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22133 SINGLE_BYTE_CHAR_P.
22134
22135 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22136 not by SINGLE_BYTE_CHAR_P.
22137
22138 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22139 SINGLE_BYTE_CHAR_P.
22140
22141 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22142 SINGLE_BYTE_CHAR_P.
22143
22144 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22145 by SINGLE_BYTE_CHAR_P.
22146
22147 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22148 SINGLE_BYTE_CHAR_P.
22149
22150 2008-02-01 Dave Love <fx@gnu.org>
22151
22152 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22153
22154 2008-02-01 Dave Love <fx@gnu.org>
22155
22156 * fns.c (Flanginfo): Fix typo.
22157
22158 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22159
22160 2008-02-01 Kenichi Handa <handa@m17n.org>
22161
22162 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22163 (detect_coding_emacs_mule, detect_coding_iso_2022)
22164 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22165 incomplete byte sequence. Don't update *mask when correctly detected.
22166 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22167 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22168 (detect_coding, detect_coding_system): Adjust for the changes above.
22169
22170 2008-02-01 Kenichi Handa <handa@m17n.org>
22171
22172 * character.c (char_string): Rename from
22173 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22174 (string_char): Rename from string_char.
22175
22176 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22177 if C is greater than MAX_3_BYTE_CHAR.
22178 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22179 string_char instead of string_char_with_unification.
22180
22181 2008-02-01 Dave Love <fx@gnu.org>
22182
22183 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22184
22185 2008-02-01 Kenichi Handa <handa@m17n.org>
22186
22187 * keymap.c (push_key_description): Pay attention to force_multibyte.
22188
22189 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22190
22191 2008-02-01 Dave Love <fx@gnu.org>
22192
22193 * charset.c (define_charset_internal): Rename `supprementary'.
22194
22195 * Makefile.in (lisp, shortlisp): Remove latin-N.
22196
22197 2008-02-01 Dave Love <fx@gnu.org>
22198
22199 * xfns.c (x_window, x_window): Use use_xim.
22200
22201 * xterm.c (use_xim): Initialize.
22202 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22203 (x_term_init): Maybe set use_xim.
22204
22205 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22206
22207 2008-02-01 Kenichi Handa <handa@m17n.org>
22208
22209 * search.c (search_buffer): Fix case-fold-search of multibyte
22210 characters.
22211 (boyer_moore): Rename the last argument to char_high_bits.
22212
22213 2008-02-01 Kenichi Handa <handa@m17n.org>
22214
22215 * xdisp.c (display_string): Fix for the case of zero width glyph.
22216
22217 * xfns.c (x_set_font): Change the error message of the case that
22218 x_new_fontset returns Qt.
22219
22220 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22221 (Finternal_set_lisp_face_attribute): Use signal_error for the
22222 error of invalid fontset.
22223
22224 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22225 fontset, return Qt.
22226
22227 2008-02-01 Dave Love <fx@gnu.org>
22228
22229 * unexelf.c (unexec): Make .got handling not SGI-specific.
22230
22231 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22232
22233 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22234
22235 * keyboard.c (read_key_sequence): Fix type error.
22236
22237 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22238 type error.
22239
22240 * fontset.c (fontset_add): Return Lisp_Object.
22241
22242 2008-02-01 Dave Love <fx@gnu.org>
22243
22244 * charset.h (charset_ordered_list_tick): Declare extern.
22245
22246 2008-02-01 Kenichi Handa <handa@m17n.org>
22247
22248 The following changes (and some of 2008-02-01 changes of mine) are
22249 for handling syntax, category, and case conversion for unibyte
22250 characters by converting them to multibyte on the fly. With these
22251 changes, we don't have to setup syntax and case tables for unibyte
22252 characters in each language environment.
22253
22254 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22255 multibyte if necessary.
22256
22257 * bytecode.c (Fbyte_code): Likewise.
22258
22259 * character.h (LEADING_CODE_LATIN_1_MIN)
22260 (LEADING_CODE_LATIN_1_MAX): New macros.
22261 (unibyte_to_multibyte_table): Extern it.
22262 (unibyte_char_to_multibyte): New macro.
22263 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22264 (CHAR_LEADING_CODE): New macro.
22265 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22266
22267 * character.c (unibyte_to_multibyte_table): New variable.
22268 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22269 (multibyte_char_to_unibyte): If C is an eight-bit character,
22270 convert it to the corresponding byte value.
22271
22272 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22273 not 1, signals an error. Update the elements of
22274 unibyte_to_multibyte_table.
22275 (init_charset_once): Initialize unibyte_to_multibyte_table.
22276 (syms_of_charset): Define the charset `iso-8859-1'.
22277
22278 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22279 as is without converting it to unibyte. In a unibyte buffer,
22280 convert C to multibyte before checking the syntax.
22281
22282 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22283
22284 * minibuf.c (Fminibuffer_complete_word): Use the macro
22285 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22286
22287 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22288
22289 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22290 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22291 that is zero, convert an eight-bit char to multibyte.
22292 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22293 non-emacs case.
22294 (PATFETCH): Convert an eight-bit char to multibyte.
22295 (HANDLE_UNIBYTE_RANGE): New macro.
22296 (regex_compile): Setup the compiled pattern for multibyte chars
22297 even if the given regex string is unibyte. Use PATFETCH_RAW
22298 instead of PATFETCH in many places. To handle `charset'
22299 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22300 only for ASCII chars.
22301 (analyse_first) <exactn>: Simplify because the compiled pattern
22302 is multibyte.
22303 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22304 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22305 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22306 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22307 multibyte always 1.
22308 (re_search_2): In emacs, set the locale variable multibyte to 1,
22309 otherwise to 0. New local variable target_multibyte. Check it
22310 to decide the multibyteness of STR1 and STR2. If
22311 target_multibyte is zero, convert unibyte chars to multibyte
22312 before translating and checking fastmap.
22313 (TARGET_CHAR_AND_LENGTH): New macro.
22314 (re_match_2_internal): In emacs, set the locale variable multibyte
22315 to 1, otherwise to 0. New local variable target_multibyte. Check
22316 it to decide the multibyteness of STR1 and STR2. Use
22317 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22318 <charset, charset_not>: If multibyte is nonzero, check fastmap
22319 only for ASCII chars. Call bcmp_translate with
22320 target_multibyte, not with multibyte.
22321 <begline>: Declare the local variable C as `unsigned'.
22322 (bcmp_translate): Change the last arg name to target_multibyte.
22323
22324 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22325 the regexp pattern and the matching target. Set cp->buf.multibyte
22326 to the multibyteness of the regexp pattern. Set
22327 cp->but.target_multibyte to the multibyteness of the matching target.
22328 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22329 FETCH_STRING_CHAR_ADVANCE.
22330 (Freplace_match): Convert unibyte chars to multibyte.
22331
22332 * syntax.c (char_quoted, back_comment, scan_words)
22333 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22334 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22335 unibyte chars to multibyte.
22336 (skip_chars): Delete the arg syntaxp, and move the code for
22337 handling syntaxes to skip_syntaxes. Change callers.
22338 Fix the case that the multibyteness of STRING and the current
22339 buffer doesn't match.
22340 (skip_syntaxes): New function.
22341 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22342 SINGLE_BYTE_CHAR_P.
22343
22344 2008-02-01 Kenichi Handa <handa@m17n.org>
22345
22346 * xfaces.c (QCfontset): New variable.
22347 (LFACE_FONTSET): New macro.
22348 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22349 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22350 (Finternal_set_lisp_face_attribute)
22351 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22352 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22353 check also LFACE_FONTSET_INDEX.
22354 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22355 attrs[LFACE_FONT_INDEX].
22356 (syms_of_xfaces): Intern and staticpro QCfontset.
22357
22358 * dispextern.h (enum lface_attribute_index): New member
22359 LFACE_FONTSET_INDEX.
22360
22361 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22362
22363 2008-02-01 Kenichi Handa <handa@m17n.org>
22364
22365 * coding.c (coding_set_destination): Fix coding->destination for
22366 the case converting a region.
22367 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22368 (encode_coding_object): Fix coding->dst_pos and
22369 coding->dst_pos_byte for the case converting a region.
22370
22371 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22372
22373 * character.h (BYTE8_STRING): New macro.
22374
22375 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22376
22377 2008-02-01 Kenichi Handa <handa@m17n.org>
22378
22379 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22380 characters by octal form.
22381
22382 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22383
22384 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22385 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22386 _fetch_multibyte_char_len.
22387 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22388
22389 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22390
22391 * casefiddle.c (casify_object): Simplify. Handle the case that
22392 the case conversion change the byte length.
22393 (casify_region): Likewise.
22394
22395 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22396
22397 * character.c (_fetch_multibyte_char_len): Delete this variable.
22398 (syms_of_character): Setup Vprintable_chars.
22399
22400 * editfns.c (Fchar_equal): Fix for the unibyte case.
22401 (Finsert_byte): New function.
22402 (syms_of_editfns): Defsubr it.
22403
22404 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22405 of direct code 0x3ffff.
22406
22407 * search.c (Freplace_match): Fix for the unibyte case.
22408
22409 2008-02-01 Kenichi Handa <handa@m17n.org>
22410
22411 * lread.c (safe_to_load_p): Fix the logic.
22412
22413 * syntax.c (scan_words): Don't treat characters belonging to
22414 different scripts as constituting a word.
22415
22416 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22417
22418 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22419
22420 * emacs.c (main): In the case of --unibyte, instead of aborting on
22421 finding non-empty buffer, make it unibyte.
22422
22423 2008-02-01 Kenichi Handa <handa@m17n.org>
22424
22425 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22426 to create a fontset.
22427
22428 2008-02-01 Dave Love <fx@gnu.org>
22429
22430 * character.c (Funibyte_char_to_multibyte): Doc fix.
22431
22432 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22433
22434 2008-02-01 Kenichi Handa <handa@m17n.org>
22435
22436 * fontset.c (fontset_add): Make the type `int'.
22437 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22438
22439 * character.c (unibyte_char_to_multibyte)
22440 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22441 charset_unibyte, not charset_primary.
22442
22443 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22444
22445 * charset.c (charset_unibyte): Rename from charset_primary.
22446 (Funibyte_charset): Rename from Fprimary_charset.
22447 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22448 (syms_of_charset): Adjust for the above changes.
22449
22450 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22451 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22452 it->multibyte_p is zero.
22453
22454 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22455 Delete extern.
22456
22457 2008-02-01 Kenichi Handa <handa@m17n.org>
22458
22459 * coding.c (Fdefine_coding_system_internal): Fix category setting
22460 for a coding system of type iso-2022.
22461
22462 2008-02-01 Kenichi Handa <handa@m17n.org>
22463
22464 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22465
22466 2008-02-01 Kenichi Handa <handa@m17n.org>
22467
22468 * syntax.c (Vnext_word_boundary_function_table): New variable.
22469 (next-word-boundary-function-table): Declare it as a Lisp variable
22470 in syms_of_syntax.
22471 (scan_words): Call functions in Vnext_word_boundary_function_table
22472 if any.
22473
22474 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22475
22476 * fontset.c (fs_load_font): If fontp->charset is not negative,
22477 return fontp without setting its members.
22478
22479 2008-02-01 Dave Love <fx@gnu.org>
22480
22481 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22482
22483 * m/sparc.h (HAVE_ALLOCA): Delete.
22484
22485 * s/irix6-5.h: Don't include strings.h.
22486 (bcopy, bzero, bcmp): Don't undef.
22487
22488 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22489
22490 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22491 (TIOCSIGSEND): Don't test IRIX6.
22492 (bcopy, bzero, bcmp): Define conditionally.
22493
22494 2008-02-01 Kenichi Handa <handa@m17n.org>
22495
22496 * buffer.c (Qas, Qmake, Qto): New variables.
22497 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22498 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22499
22500 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22501 we are inserting a process output into a multibyte buffer.
22502
22503 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22504 multibyte_char_to_unibyte.
22505
22506 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22507 by the primary charset, make it eight-bit char.
22508 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22509
22510 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22511 (charset_8_bit__control, charset_8_bit_graphic)
22512 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22513 (define_charset_internal): New function.
22514 (syms_of_charset): Call define_charset_internal for pre-defined
22515 charsets.
22516
22517 * charset.h (charset_8_bit): Extern it.
22518
22519 * coding.c (make_conversion_work_buffer): Adjust for the change
22520 of Fset_buffer_multibyte.
22521 (encode_coding_raw_text): Increment p0 in the loop.
22522
22523 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22524
22525 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22526 for the change of Fset_buffer_multibyte.
22527
22528 * fns.c (Fstring_to_multibyte): New function.
22529 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22530
22531 2008-02-01 Dave Love <fx@gnu.org>
22532
22533 * xfns.c (x_put_x_image): Declare args.
22534
22535 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22536 (try_font_list): Declare an arg.
22537
22538 * xdisp.c (message2_nolog, set_message): Declare an arg.
22539
22540 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22541
22542 * syntax.c (scan_sexps_forward): Declare an arg.
22543
22544 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22545 Declare an arg.
22546
22547 * lisp.h (Fnew_fontset): Declare.
22548
22549 * keymap.c (push_key_description): Call CHARACTERP correctly.
22550
22551 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22552 (face_for_char): Delete unused vars.
22553 (Fset_fontset_font): Doc fix. Delete unused vars.
22554
22555 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22556
22557 * composite.c (update_compositions): Declare arg.
22558
22559 * cm.c (calccost, cmgoto): Declare args.
22560
22561 * charset.c: Remove `emacs' conditional. Doc fixes.
22562 (map_char_table_for_charset): Declare.
22563
22564 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22565
22566 * ccl.c: Remove `emacs' conditional.
22567
22568 2008-02-01 Kenichi Handa <handa@m17n.org>
22569
22570 The following changes are to allow specifying multiple font
22571 patterns for a character range (specified by script or charset).
22572
22573 * Makefile.in (abbrev.o): Depend on syntax.h.
22574 (xfaces.o): Depend on charset.h.
22575
22576 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22577 SINGLE_BYTE_CHAR_P.
22578
22579 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22580
22581 * character.h (Vchar_script_table): Extern it.
22582
22583 * character.c (Vscript_alist): Delete.
22584 (Vchar_script_table, Qchar_script_table): New variable.
22585 (syms_of_character): Declare Vchar_script_table as a lisp variable
22586 and initialize it.
22587
22588 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22589 have property char-table-extra-slots, make no extra slot.
22590
22591 * dispextern.h (struct face): Delete member `charset'.
22592 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22593 SINGLE_BYTE_CHAR_P.
22594 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22595 Add prototypes.
22596 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22597 (generate_ascii_font_name): Rename from generate_ascii_font.
22598
22599 * fontset.h (get_font_repertory_func): New prototype.
22600 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22601 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22602
22603 * fontset.c (Qprepend, Qappend): New variables.
22604 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22605 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22606 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22607 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22608 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22609 (load_font_get_repertory): New functions.
22610 (fontset_set): Delete.
22611 (fontset_face): New arg FACE. Return face ID, not face.
22612 Complete re-write to handle new fontset structure. Change caller.
22613 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22614 (face_for_char): Don't call lookup_face.
22615 (make_fontset_for_ascii_face): New arg FACE.
22616 (fs_load_font): New arg CHARSET_ID. Don't check
22617 Vfont_encoding_alist here.
22618 (find_font_encoding): New function.
22619 (list_fontsets): Use STRINGP, not ! NILP.
22620 (accumulate_script_ranges): New function.
22621 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22622 re-written to handle new fontset structure.
22623 (Ffontset_font): Return a copy of element.
22624 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22625 docstring of font-encoding-alist.
22626
22627 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22628 (Fset_fotset_font): Fix arguments to 5.
22629
22630 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22631
22632 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22633 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22634 (highlight_trailing_whitespace): Adjust for the change of
22635 lookup_named_face.
22636
22637 * xfaces.c: Include charset.h.
22638 (load_face_font): Delete argument C. Change caller.
22639 (generate_ascii_font_name): Rename from generate_ascii_font.
22640 (font_name_registry): New function.
22641 (cache_face): Store ascii faces before non-ascii faces in buckets.
22642 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22643 Lookup only ascii faces.
22644 (lookup_non_ascii_face): New function.
22645 (lookup_named_face): Delete argument C. Change caller.
22646 (lookup_derived_face): Delete argument C. Change caller.
22647 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22648 a string, just call font_list with it.
22649 (choose_face_font): Delete arguments FACE and C. New arg
22650 FONT_SPEC. Change caller.
22651 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22652 Change caller.
22653 (realize_non_ascii_face): New function.
22654 (realize_x_face): Call load_face_font here.
22655 (realize_tty_face): Delete argument C. Change caller.
22656 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22657 get a face ID.
22658 (dump_realized_face): Don't print charset of FACE.
22659
22660 * xfns.c (x_set_font): Always call x_new_fontset and
22661 store_frame_parameter.
22662 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22663 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22664
22665 * xterm.h (x_get_font_repertory): Extern it.
22666
22667 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22668 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22669 it->multibyte_p is zero.
22670 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22671 (x_new_fontset): If FONTSETNAME doesn't match any existing
22672 fontsets, create a new one.
22673 (x_get_font_repertory): New function.
22674
22675 2008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * coding.c (Ffind_coding_systems_region_internal): Detect an
22678 ASCII only string correctly.
22679
22680 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22681 version is 0.
22682
22683 2008-02-01 Kenichi Handa <handa@m17n.org>
22684
22685 * lread.c: Include "coding.h".
22686 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22687 (load_each_byte, unread_char): New variables.
22688 (readchar_backlog): Delete.
22689 (readchar): Return a character unless load_each_byte is nonzero.
22690 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22691 cons. If unread_char is not -1, simply return it.
22692 (unreadchar): Handle the case that readcharfun is
22693 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22694 (read_multibyte): Delete.
22695 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22696 (read_emacs_mule_char): New functions.
22697 (Fload): Even if the file doesn't have the extension ".elc", if
22698 safe_to_load_p returns a positive version number, assume that the
22699 file contains bytecompiled code. If the version is less than 22,
22700 load the file while decoding multibyte sequences by emacs-mule.
22701 (readevalloop): Don't use readchar_backlog.
22702 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22703 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22704 (read_escape): Delete the arg BYTEREP.
22705 (read1): Set load_each_byte to 1 temporarily while handling
22706 #@NUMBER. Don't call read_multibyte.
22707 (read_vector): Call Fread with a cons. If readcharfun is
22708 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22709 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22710 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22711 and Qload_force_doc_strings.
22712
22713 2008-02-01 Kenichi Handa <handa@m17n.org>
22714
22715 * xdisp.c (face_before_or_after_it_pos): Call
22716 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22717
22718 2008-02-01 Kenichi Handa <handa@m17n.org>
22719
22720 * character.h (TRAILING_CODE_P): New macro.
22721 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22722 (string_char_with_unification): Fix prototype.
22723 (Vscript_alist): Extern it.
22724
22725 * character.c (Vscript_alist): New variable.
22726 (string_char_with_unification, str_as_unibyte)
22727 (string_escape_byte8): Add `const' to local variables.
22728 (syms_of_character): Declare script-alist as a Lisp variable.
22729
22730 * charset.h (Vcharset_ordered_list): Extern it.
22731 (charset_ordered_list_tick): Extern it.
22732 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22733 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22734 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22735 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22736 (Funify_charset): Adjust for the change of Funify_charset.
22737
22738 * charset.c (charset_ordered_list_tick): New variable.
22739 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22740 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22741 deunify instead of unify a charset.
22742 (string_xstring_p): Add `const' to local variables.
22743 (find_charsets_in_text): Add `const' to arguments and local variables.
22744 (encode_char): Adjust for the change of Funify_charset. Fix
22745 detecting of invalid code.
22746 (Fset_charset_priority): Increment charset_ordered_list_tick.
22747 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22748 and TO_CODE.
22749
22750 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22751 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22752 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22753 (decode_coding_ccl, consume_chars)
22754 (Ffind_coding_systems_region_internal)
22755 (Fcheck_coding_systems_region): Add `const' to local variables.
22756
22757 * print.c (print_object): Use octal form for printing the
22758 contents of a bool vector.
22759
22760 2008-02-01 Dave Love <fx@gnu.org>
22761
22762 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22763 <version == 20>: Refuse to load.
22764
22765 2008-02-01 Dave Love <fx@gnu.org>
22766
22767 * fns.c: Move coding.h.
22768 (Qcodeset, Qdays, Qmonths): New.
22769 (concat): Use CHARACTERP instead of INTEGERP.
22770 (Flocale_codeset): Delete.
22771 (Flanginfo): New function.
22772 (syms_of_fns): Change accordingly.
22773
22774 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22775
22776 2008-02-01 Dave Love <fx@gnu.org>
22777
22778 * casetab.c (init_casetab_once, init_casetab_once): Fix
22779 CHAR_TABLE_SET call.
22780
22781 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22782
22783 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22784
22785 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22786 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22787 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22788
22789 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22790
22791 * coding.c (ENCODE_DESIGNATION, decode_eol)
22792 (make_conversion_work_buffer, code_conversion_restore)
22793 (Fdefine_coding_system_internal): Convert Lisp types.
22794 (code_conversion_restore): Use EQ, not ==.
22795 (Fencode_coding_string): Fix code_convert_string call.
22796
22797 * coding.h (code_convert_region): Fix prototype.
22798
22799 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22800
22801 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22802 (Ffontset_info): Convert Lisp types.
22803
22804 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22805
22806 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22807
22808 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22809
22810 * chartab.c: Include "...h", not <...h> in some cases.
22811
22812 * callproc.c (Fcall_process): Remove unused variables.
22813
22814 2008-02-01 Dave Love <fx@gnu.org>
22815
22816 * coding.c (Fset_coding_system_priority): Allow null arg list.
22817
22818 2008-02-01 Dave Love <fx@gnu.org>
22819
22820 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22821 (Fself_insert_and_exit): Use CHARACTERP.
22822
22823 * callproc.c (Fcall_process): Remove unused vars.
22824
22825 * xterm.c (XTread_socket): Add extra dead keysyms.
22826
22827 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22828
22829 * dispextern.h: Remove prototypes for redraw_frame,
22830 redraw_garbaged_frames.
22831
22832 * cmds.c (Fself_insert_command): Use CHARACTERP.
22833
22834 * chartab.c (make_sub_char_table): Remove unused var.
22835 (Fset_char_table_default, Fmap_char_table): Doc fix.
22836
22837 * keymap.c (access_keymap): Remove generic char code.
22838 (push_key_description): Use CHARACTERP.
22839
22840 2008-02-01 Dave Love <fx@gnu.org>
22841
22842 * charset.c: Doc fixes.
22843 (Funify_charset): Extra checking.
22844
22845 2008-02-01 Dave Love <fx@gnu.org>
22846
22847 * lread.c: Remove some unused variables.
22848 (safe_to_load_p): If safe, return the magic number version byte.
22849 (Fload): Maybe use load-with-code-conversion.
22850
22851 2008-02-01 Kenichi Handa <handa@m17n.org>
22852
22853 * category.c (Fmodify_category_entry): Don't modify the contents
22854 of category_set for characters out of the range. Avoid
22855 unnecessary modification.
22856
22857 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22858 Vchar_unify_table. The default value of the table is now nil.
22859
22860 * character.c (syms_of_character): Setup Vchar_width_table for
22861 eight-bit-control and raw-byte chars.
22862
22863 * charset.h (enum define_charset_arg_index): Delete
22864 charset_arg_parents and add charset_arg_subset and
22865 charset_arg_superset.
22866 (enum charset_attr_index): Delete charset_parents and add
22867 charset_subset and charset_superset.
22868 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22869 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22870 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22871 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22872 (CHARSET_SUPERSET): New macros.
22873 (charset_work): Extern it.
22874 (ENCODE_CHAR): Use charset_work.
22875 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22876 (map_charset_chars): Extern it.
22877
22878 * charset.c (load_charset_map): Set the default value of encoder
22879 and deunifier char-tables to nil.
22880 (map_charset_chars): Change argument. Change callers. Use
22881 map_char_table_for_charset instead of map_char_table.
22882 (Fmap_charset_chars): New optional args from_code and to_code.
22883 (Fdefine_charset_internal): Adjust for the change of
22884 `define-charset' (:parents -> :subset or :superset).
22885 (charset_work): New variable.
22886 (encode_char, syms_of_charset): Adjust for the change of
22887 Fdefine_charset_internal.
22888 (Ffind_charset_string): Setup the vector `charsets' correctly.
22889
22890 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22891 the previous change.
22892 (char_table_ref_and_range): Adjust for the above change.
22893 (map_sub_char_table_for_charset): New function.
22894 (map_char_table_for_charset): New function.
22895
22896 * keymap.c (describe_vector): Handle a char-table directly here.
22897 (describe_char_table): Delete.
22898
22899 * lisp.h (map_charset_chars): Delete.
22900
22901 2008-02-01 Dave Love <fx@gnu.org>
22902
22903 * fns.c (count_combining): Comment out (unused).
22904 (Flocale_codeset): New.
22905 (syms_of_fns): Defsubr it.
22906
22907 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22908 (size_t): Remove.
22909
22910 2008-02-01 Dave Love <fx@gnu.org>
22911
22912 * Makefile.in (chartab.o): Depend on charset.h.
22913
22914 2008-02-01 Kenichi Handa <handa@m17n.org>
22915
22916 * character.c (syms_of_character): Set the default value of
22917 Vprintable_chars to Qnil.
22918
22919 2008-02-01 Dave Love <fx@gnu.org>
22920
22921 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22922
22923 2008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * charset.c (load_charset_map): Handle the case that from < to
22926 correctly.
22927
22928 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22929 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22930 Pay attention to raw-8-bit chars.
22931
22932 2008-02-01 Kenichi Handa <handa@m17n.org>
22933
22934 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22935 It is not bytecompiled now.
22936
22937 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22938 (charset_jisx0208): New variables.
22939 (Fdefine_charset_internal): Setup them if appropriate.
22940 (init_charset_once): Initialize them to -1.
22941
22942 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22943 (charset_jisx0208): Extern them.
22944
22945 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22946 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22947 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22948 (setup_iso_safe_charsets): Fix arguments to Fassq.
22949 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22950 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22951 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22952 (encode_coding_iso_2022): Change the 1st arg to
22953 ENCODE_ISO_CHARACTER to a variable.
22954
22955 2008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 * charset.h (enum define_charset_arg_index): New enums
22958 charset_arg_min_code and charset_arg_max_code.
22959 (struct charset): New member char_index_offset.
22960
22961 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22962 Take charset->char_index_offset into account.
22963 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22964 args[charset_arg_max_code]. Setup charset.char_index_offset.
22965 (syms_of_charset): Fix args to Fdefine_charset_internal.
22966
22967 2008-02-01 Dave Love <fx@gnu.org>
22968
22969 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22970
22971 2008-02-01 Dave Love <fx@gnu.org>
22972
22973 * coding.c: Doc fixes.
22974 (Fcoding_system_aliases): Fix return value.
22975 (Qmac): Remove (duplicated) definition.
22976
22977 2008-02-01 Dave Love <fx@gnu.org>
22978
22979 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22980 New functions.
22981
22982 * character.c (Fstring): Doc fix.
22983
22984 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22985
22986 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22987 (font-encoding-alist): Doc fix.
22988
22989 2008-02-01 Dave Love <fx@gnu.org>
22990
22991 * term.c (costs_set): Declare static, non-initialized for pcc.
22992 (encode_terminal_code): Remove unused var.
22993
22994 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22995 for K&R.
22996
22997 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22998
22999 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23000 (suffixes): Move out of make_subsidiaries for K&R.
23001
23002 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23003
23004 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23005
23006 2008-02-01 Dave Love <fx@gnu.org>
23007
23008 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23009
23010 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23011
23012 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23013
23014 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23015
23016 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23017
23018 2008-02-01 Kenichi Handa <handa@m17n.org>
23019
23020 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23021 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23022
23023 2008-02-01 Kenichi Handa <handa@m17n.org>
23024
23025 * coding.c (decode_coding_charset): Adjust for the change of
23026 Fdefine_coding_system_internal.
23027 (Fdefine_coding_system_internal): For a coding system of
23028 `charset' type, store a list of charset IDs in
23029 `charset_attr_charset_valids' element of coding attributes.
23030
23031 2008-02-01 Kenichi Handa <handa@m17n.org>
23032
23033 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23034 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23035 caller. Handle 2-byte and 3-byte charsets correctly.
23036 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23037 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23038 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23039 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23040 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23041 sequence.
23042 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23043 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23044 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23045 and alt&rule composition.
23046 (decode_coding_iso_2022): Handle composition correctly.
23047 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23048
23049 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23050 re-defining a charset. If the charset has :emacs-mule-id, setup
23051 emacs_mule_bytes.
23052 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23053
23054 2008-02-01 Kenichi Handa <handa@m17n.org>
23055
23056 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23057 (encode_coding_big5, encode_coding_charset): If coding requires safe
23058 encoding, produce a character specified by
23059 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23060
23061 2008-02-01 Dave Love <fx@gnu.org>
23062
23063 * xterm.c (XSetIMValues): Declare.
23064
23065 * process.c: Conditionally include sys/wait.h, pty.h.
23066
23067 * print.c (print_object): Fix print format for 64-bit systems.
23068
23069 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23070
23071 * buffer.c (emacs_strerror): Declare.
23072
23073 * fontset.c (Fclear_face_cache): Declare.
23074 (accumulate_font_info): Comment-out (unused).
23075 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23076 variables.
23077
23078 * character.h (string_escape_byte8): Declare.
23079
23080 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23081 unused vars.
23082 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23083 (Fmap_charset_chars): Doc fix.
23084
23085 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23086 (Fset_coding_system_priority, Fset_coding_system_priority)
23087 (Fdefine_coding_system_internal): Doc fix.
23088
23089 2008-02-01 Dave Love <fx@gnu.org>
23090
23091 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23092
23093 2008-02-01 Kenichi Handa <handa@m17n.org>
23094
23095 * character.c (string_escape_byte8): Make multibyte string with
23096 correct size.
23097
23098 * charset.c (Fmake_char): Delete unnecessary code.
23099
23100 2008-02-01 Kenichi Handa <handa@m17n.org>
23101
23102 * xfns.c (x_encode_text): Allocate coding.destination here, and
23103 call encode_coding_object with dst_object Qnil.
23104
23105 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23106 multibyte form correctly.
23107
23108 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23109 against Vfont_encoding_alist.
23110
23111 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23112 handling of charset list.
23113 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23114 (decode_coding_object): Move point to coding->dst_pos before
23115 calling post-read-conversion function.
23116 (encode_coding_object): Give correct arguments to
23117 pre-write-conversion. Ignore the return value of
23118 pre-write-conversion function. Pay attention to the case that
23119 pre-write-conversion changes the current buffer. If dst_object is
23120 Qt, even if coding->src_bytes is zero, allocate at least one byte
23121 to coding->destination.
23122
23123 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23124
23125 * charset.c (Fmake_char): Make it more backward compatible.
23126 (Fmap_charset_chars): Fix docstring.
23127
23128 2008-02-01 Dave Love <fx@gnu.org>
23129
23130 * coding.c: Doc fixes.
23131 (Fdefine_coding_system_alias): Use names, not symbols, in
23132 coding-system-alist.
23133
23134 2008-02-01 Kenichi Handa <handa@m17n.org>
23135
23136 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23137 of calling free_realized_face.
23138
23139 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23140
23141 * charset.c (read_hex): Don't treat SPC as a comment starter.
23142 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23143 (Fdecode_char): Fix typo.
23144
23145 2008-02-01 Kenichi Handa <handa@m17n.org>
23146
23147 * charset.h (struct charset): New member `code_space_mask'.
23148
23149 * coding.c (coding_set_source): Delete the local variable beg_byte.
23150 (encode_coding_charset, Fdefine_coding_system_internal):
23151 Delete the local variable charset.
23152 (Fdefine_coding_system_internal): Setup
23153 attrs[coding_attr_charset_valids] correctly.
23154
23155 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23156 member to check if CODE is valid or not.
23157 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23158 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23159 is within the range of charset->min_code and carset->max_code.
23160
23161 2008-02-01 Dave Love <fx@gnu.org>
23162
23163 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23164
23165 * dispextern.h (generate_ascii_font): Fix return type.
23166
23167 * xfaces.c (generate_ascii_font): Fix arg declaration.
23168
23169 * coding.c (coding_inherit_eol_type)
23170 (Fset_terminal_coding_system_internal)
23171 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23172
23173 2008-02-01 Kenichi Handa <handa@m17n.org>
23174
23175 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23176 multiple charsets correctly.
23177
23178 2008-02-01 Kenichi Handa <handa@m17n.org>
23179
23180 * search.c (boyer_moore): Fix handling of multibyte character
23181 translation.
23182
23183 * xdisp.c (display_mode_element): When the variable `elt' is
23184 changed, update `this' and `lisp_string'.
23185
23186 2008-02-01 Kenichi Handa <handa@m17n.org>
23187
23188 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23189
23190 * callproc.c (Fcall_process): Be sure to give the current buffer
23191 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23192
23193 * charset.c (struct charset_map_entries): New struct.
23194 (load_charset_map): Rename from parse_charset_map. New args
23195 entries and n_entries. Change caller.
23196 (load_charset_map_from_file): Rename from load_charset_map.
23197 Change caller. New arg control_flag. Call load_charset_map at
23198 the tail.
23199 (load_charset_map_from_vector): New function.
23200 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23201 (encode_char): If the charset is compact, change a character index
23202 to a code point.
23203
23204 * coding.c (coding_alloc_by_making_gap): Check the case that the
23205 source and destination are the same correctly.
23206 (decode_coding_raw_text): Set coding->consumed_char and
23207 coding->consumed to 0.
23208 (produce_chars): If coding->chars_at_source is nonzero, update
23209 coding->consumed_char and coding->consumed before calling
23210 alloc_destination.
23211 (Fdefine_coding_system_alias): Register ALIAS in
23212 Vcoding_system_alist.
23213 (syms_of_coding): Define `no-conversion' coding system at the tail.
23214
23215 * fileio.c (Finsert_file_contents): Set coding_system instead of
23216 val. If the current buffer is multibyte, always call
23217 decode_coding_gap.
23218
23219 * xfaces.c (try_font_list): Give higher priority to fontset's
23220 family than face's family.
23221
23222 2008-02-01 Kenichi Handa <handa@m17n.org>
23223
23224 * callproc.c (Fcall_process): Be sure to give the current buffer
23225 to decode_coding_c_string.
23226
23227 * xfaces.c (try_font_list): Give a family specified in a fontset
23228 higher priority than a family specified in a face.
23229
23230 2008-02-01 Kenichi Handa <handa@m17n.org>
23231
23232 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23233 Fix arguments to insert_from_buffer.
23234
23235 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23236
23237 2008-02-01 Kenichi Handa <handa@m17n.org>
23238
23239 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23240 (decode_coding_gap): Set coding->dst_multibyte correctly.
23241
23242 2008-02-01 Kenichi Handa <handa@m17n.org>
23243
23244 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23245 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23246 (encode_coding_utf_16): Substitute coding->default_char for
23247 non-Unicode characters.
23248 (decode_coding): Don't call record_insert here.
23249 (setup_coding_system): Initialize `surrogate' of
23250 coding->spec.utf_16 to 0.
23251 (EMIT_ONE_BYTE): Fix for multibyte case.
23252
23253 * insdel.c (insert_from_gap): Call record_insert.
23254
23255 2008-02-01 Kenichi Handa <handa@m17n.org>
23256
23257 * casefiddle.c (casify_region): Fix multibyte case.
23258
23259 * character.c (c_string_width): Add return type `int'.
23260 (char_string_with_unification): Delete arg ADVANCED.
23261
23262 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23263 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23264 (CHAR_STRING_ADVANCE): Make it do-while statement.
23265
23266 * chartab.c (sub_char_table_set_range): Optimize for the case
23267 DEPTH == 3. Add workaround code for a GCC optimization bug.
23268
23269 * charset.c (parse_charset_map): Remove an unused variable.
23270
23271 * coding.c: Delete unused variables.
23272
23273 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23274 earlier. If inserted is zero and the coding system doesn't
23275 require flushing, don't call decode_coding_gap.
23276
23277 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23278
23279 2008-02-01 Kenichi Handa <handa@m17n.org>
23280
23281 The following changes are for using Unicode as an internal
23282 character model, and use UTF-8 format for buffer/string
23283 representation.
23284
23285 * .gdbinit (xchartable): Adjust for the change of char table structure.
23286 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23287
23288 * Makefile.in (obj): Add character.o and chartab.o.
23289 (lisp, shortlisp): Remove utf-8.elc.
23290 (*.o): For many files, change dependency on charset.h to
23291 character.h, and add dependency on character.h.
23292 (character.o, chartab.o): New targets.
23293
23294 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23295 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23296 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23297 of "charset.h".
23298
23299 * dired.c, filelock.c: Include "character.h".
23300
23301 * alloc.c: Include "character.h" instead of "charset.h".
23302 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23303 (syms_of_alloc): Remove defsubr for Smake_char_table.
23304
23305 * buffer.c: Include "character.h" instead of "charset.h", don't
23306 include "coding.h".
23307 (Fset_buffer_multibyte): Adjust for UTF-8.
23308
23309 * buffer.h: EXFUN Fbuffer_live_p.
23310
23311 * callproc.c: Include "character.h" instead of "charset.h".
23312 (Fcall_process): Big change for the new code-conversion APIs.
23313
23314 * casetab.c: Include "character.h" instead of "charset.h".
23315 (set_canon, set_identity, shuffle): Adjust for the new
23316 map_char_table spec.
23317 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23318 accessing the char table structure.
23319
23320 * chartab.c: New file that implements char table.
23321
23322 * category.c: Include "character.h".
23323 (copy_category_entry): New function.
23324 (copy_category_table): Call map_char_table and copy_category_entry.
23325 (Fmake_category_table): Initialize all top-level slots.
23326 (char_category_set): New function.
23327 (modify_lower_category_set): Delete.
23328 (Fmodify_category_entry): Call char_table_ref_and_range.
23329
23330 * category.h (CATEGORY_SET): Just call char_category_set.
23331
23332 * ccl.c: Include "character.h".
23333 (Qccl, Qcclp): New variables.
23334 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23335 it's less than 256.
23336 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23337 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23338 and DST type.
23339 (ccl_driver): Change types of argument, adjust code accordingly.
23340 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23341 ccl_driver.
23342 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23343
23344 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23345 New members src_multibyte, dst_multibyte, consumed, and produced.
23346 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23347 (CODING_SPEC_CCL_PROGRAM): New macro.
23348 (ccl_driver): Update prototype.
23349 (Qccl, Qcclp, Fccl_program_p): Extern them.
23350 (CHECK_CCL_PROGRAM): New macro.
23351
23352 * character.c, character.h, chartab.c: New files.
23353
23354 * charset.c: Mostly re-written. Move character and multibyte sequence
23355 handling codes to character.c.
23356
23357 * charset.h: Mostly re-written. Move character and multibyte sequence
23358 handling codes to character.h.
23359
23360 * coding.c, coding.h: Mostly re-written.
23361
23362 * composite.c: Include "character.h" instead of "charset.h".
23363 (CHAR_WIDTH): Move to character.h.
23364 (HASH_KEY, HASH_VALUE): Delete.
23365
23366 * composite.h (enum composition_method): Change order of enumeration
23367 symbols.
23368
23369 * data.c: Include "character.h" instead of "charset.h".
23370 (Faref): Call CHAR_TABLE_REF for a char table.
23371 (Faset): Call CHAR_TABLE_SET for a char table.
23372
23373 * dispextern.h (free_realized_face, check_face_attribytes)
23374 (generate_ascii_font): Extern them.
23375 (free_realized_multibyte_face): Delete extern.
23376
23377 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23378 table structure.
23379
23380 * editfns.c: Include "character.h" instead of "charset.h".
23381 (Fchar_to_string): Always call CHAR_STRING.
23382
23383 * emacs.c (main): Call init_charset_once, init_charset,
23384 syms_of_chartab, and syms_of_character.
23385
23386 * fileio.c: Include "character.h" instead of "charset.h".
23387 (Finsert_file_contents): Big change for the new code-conversion API.
23388 (choose_write_coding_system, Fwrite_region): Likewise.
23389 (build_annotations_2): Delete.
23390 (e_write): Big change for the new code-conversion API.
23391
23392 * fns.c: Include "character.h" instead of "charset.h".
23393 (copy_sub_char_table): Move to chartab.c.
23394 (Fcopy_sequence): Call copy_char_table for a char table.
23395 (concat): Delete codes calling count_multibyte.
23396 (string_char_to_byte, string_byte_to_char): Adjust for the new
23397 multibyte form.
23398 (internal_equal): Adjust for the change of char table structure.
23399 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23400 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23401 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23402 (char_table_translate, optimize_sub_char_table)
23403 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23404 chartab.c.
23405 (char_table_ref_and_index): Delete.
23406 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23407 (Fmd5): Call preferred_coding_system instead of accessing
23408 Vcoding_category_list. Adjust for the new code-conversion API.
23409 (syms_of_fns): Move defsubr for char table related functions to
23410 chartab.c.
23411
23412 * fontset.c: Mostly re-written.
23413
23414 * fontset.h (struct font_info): Change type of the member encoding_type.
23415 (enum FONT_SPEC_INDEX): New enum.
23416 (fontset_font_pattern, fs_load_font): Update prototype.
23417 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23418
23419 * indent.c: Include "character.h" instead of "charset.h".
23420 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23421
23422 * insdel.c: Include "character.h" instead of "charset.h".
23423 (copy_text): Don't refer to Vnonascii_translation_table.
23424 (insert_from_gap): New function.
23425
23426 * keyboard.c: Include "character.h" instead of "charset.h".
23427 (command_loop_1): Never call direct_output_forward_char before
23428 a non-ASCII character.
23429 (read_char): If Vkeyboard_translate_table is a char table, always
23430 translate a character.
23431
23432 * keymap.c: Include "character.h".
23433 (store_in_keymap): Handle the case that IDX is a cons.
23434 (Fdefine_key): Handle the case that KEY is a cons and the car part
23435 is also a cons (range).
23436 (push_key_description): Adjust for the new character code.
23437 (describe_vector): Call describe_char_table for a char table.
23438 (describe_char_table): New function.
23439
23440 * keymap.h (describe_char_table): Extern it.
23441
23442 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23443 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23444 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23445 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23446 Delete.
23447 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23448 structure.
23449 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23450 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23451 (CHARTAB_SIZE_BITS_3): New macros.
23452 (chartab_size): Extern it.
23453 (struct Lisp_Char_Table): Re-design.
23454 (struct Lisp_Sub_Char_Table): New structure.
23455 (HASH_KEY, HASH_VALUE): Move from fns.c.
23456 (CHARACTERBITS): Define as 22.
23457 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23458 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23459 (GC_SUB_CHAR_TABLE_P): New macro.
23460 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23461 (code_convert_string_norecord): Deleted extern.
23462 (init_character_once, syms_of_character, init_charset)
23463 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23464
23465 * lread.c: Include "character.h".
23466 (read_multibyte): New arg NBYTES.
23467 (read_escape): Change the meaning of returned *BYTEREP.
23468 (to_multibyte): Delete.
23469 (read1): Adjust the handling of char table and string.
23470
23471 * print.c: Include "character.h" instead of "charset.h".
23472 (print_string): Convert 8-bit raw bytes to octal form by
23473 string_escape_byte8.
23474 (print_object): Adjust for the new multibyte form. Print 8-bit
23475 raw bytes always in octal form. Handle sub char table correctly.
23476
23477 * process.c: Include "character.h" instead of "charset.h".
23478 (read_process_output, send_process): Adjust for the new
23479 code-conversion API.
23480
23481 * puresize.h (BASE_PURESIZE): Increase.
23482
23483 * regex.c: Include "character.h" instead of "charset.h".
23484 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23485 (regex_compile): Accept a range whose starting and ending
23486 character have different leading bytes.
23487 (analyse_first): Adjust for the above change.
23488
23489 * search.c: Include "character.h" instead of "charset.h".
23490 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23491 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23492
23493 * syntax.c: Include "character.h" instead of "charset.h".
23494 (syntax_parent_lookup): Delete.
23495 (Fmodify_syntax_entry): Accept a cons as CHAR.
23496 (skip_chars): Adjust for the new multibyte form.
23497 (init_syntax_once): Call char_table_set_range instead of directly
23498 accessing the structure of a char table.
23499
23500 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23501 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23502 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23503 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23504
23505 * term.c: Include "buffer.h" and "character.h".
23506 (encode_terminal_code, write_glyphs): Adjust for the new
23507 code-conversion API.
23508 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23509
23510 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23511
23512 * xdisp.c: Include "character.h".
23513 (get_next_display_element): Adjust for the new multibyte form.
23514 (disp_char_vector): Adjust for the new char table structure.
23515 (decode_mode_spec_coding): Adjust for the new structure of
23516 coding system.
23517 (decode_mode_spec): Adjust for the new code-conversion API.
23518
23519 * xfaces.c: Include "character.h" instead of "charset.h".
23520 (load_face_font): Adjust for the change of choose_face_font and
23521 FS_LOAD_FONT.
23522 (generate_ascii_font): New function.
23523 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23524 (set_font_frame_param): Adjust for the change of choose_face_font.
23525 (free_realized_face): Make it public.
23526 (free_realized_faces_for_fontset): Rename from
23527 free_realized_multibyte_face. Free also faces realized for ASCII.
23528 (choose_face_font): Change arguments. Adjust for the change of
23529 fontset_font_pattern and FS_LOAD_FONT.
23530
23531 * xfns.c: Include "character.h".
23532 (x_encode_text): Adjust for the new code-conversion API.
23533
23534 * xselect.c: Don't include "charset.h".
23535 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23536
23537 * xterm.c: Include "character.h".
23538 (x_encode_char): New argument CHARSET. Change caller.
23539 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23540 Call ENCODE_CHAR instead of SPLIT_CHAR.
23541 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23542 CHAR_WIDTH instead of CHARSET_WIDTH.
23543 (XTread_socket): Adjust for the new code-conversion API.
23544 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23545 (x_load_font): Adjust for the change of struct font.
23546
23547 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23548
23549 * xfaces.c (face_at_buffer_position): Remove unused vars.
23550
23551 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23552
23553 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23554 Fix overflow checking.
23555
23556 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23557
23558 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23559 Cancel previous change.
23560
23561 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23562
23563 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23564 ccl->eight_bit_control. Fix check for buffer overflow.
23565 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23566 (ccl_driver): Initialize extra_bytes to 0.
23567
23568 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23569
23570 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23571 return it ORed with ctrl_modifier.
23572
23573 2008-01-29 Miles Bader <miles@gnu.org>
23574
23575 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23576
23577 2008-01-28 Jason Rumney <jasonr@gnu.org>
23578
23579 * w32.c (stat): Don't double check for networked drive.
23580
23581 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23582
23583 * window.c (run_window_configuration_change_hook): New function.
23584 Code extracted from set_window_buffer. Set the selected frame.
23585 (set_window_buffer): Use it.
23586 * window.h (run_window_configuration_change_hook): Declare.
23587 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23588
23589 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23590
23591 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23592
23593 * Makefile.in: Remove references to unused macros.
23594
23595 2008-01-26 Eli Zaretskii <eliz@gnu.org>
23596
23597 * w32.c (g_b_init_get_sid_sub_authority)
23598 (g_b_init_get_sid_sub_authority_count): New static variables.
23599 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23600 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23601 (init_user_info): Use them to retrieve uid and gid.
23602 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23603 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23604 st_uid and st_gid of the file.
23605
23606 2008-01-26 Jason Rumney <jasonr@gnu.org>
23607
23608 * w32.c (logon_network_drive): New function.
23609 (stat): Use it.
23610
23611 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
23612
23613 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23614 invisible text covered with an ellipsis.
23615
23616 2008-01-25 Richard Stallman <rms@gnu.org>
23617
23618 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23619 jump back to beginning. Move some other initializations after that.
23620 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23621 New variables.
23622 (syms_of_xdisp): Init them.
23623
23624 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23625
23626 * buffer.c (reset_buffer_local_variables):
23627 Implement `permanent-local-hook'.
23628 (Qpermanent_local_hook): New variable.
23629 (syms_of_buffer): Init and staticpro it.
23630
23631 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
23632
23633 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23634
23635 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23636
23637 * fns.c (Fclrhash): Return TABLE.
23638
23639 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23640
23641 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23642 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23643 is set even without positional changes.
23644 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23645
23646 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23647
23648 2008-01-23 Jason Rumney <jasonr@gnu.org>
23649
23650 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23651
23652 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23653 the unicode range available in MULE by locale-coding-system.
23654 Improve dbcs lead byte detection. Set event timestamp and modifiers
23655 earlier.
23656
23657 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23658
23659 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23660 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23661 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23662 when used on child processes.
23663
23664 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
23665
23666 * dbusbind.c (Fdbus_method_return_internal): Rename from
23667 Fdbus_method_return.
23668 (Fdbus_unregister_object): Move to dbus.el.
23669 (Fdbus_call_method, Fdbus_method_return_internal)
23670 (Fdbus_send_signal): Improve debug messages.
23671
23672 2008-01-20 Martin Rudalics <rudalics@gmx.at>
23673
23674 * undo.c (undo_inhibit_record_point): New variable.
23675 (syms_of_undo): Initialize it.
23676 (record_point): Don't record point when undo_inhibit_record_point
23677 is set.
23678
23679 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23680
23681 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23682
23683 * xdisp.c (Qauto_hscroll_mode): New var.
23684 (syms_of_xdisp): Initialize it.
23685 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23686 window's buffer.
23687 (hscroll_windows): Don't check automatic_hscrolling_p here.
23688
23689 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23690 vscroll if we're setting window-buffer to the value it already has.
23691
23692 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23693
23694 * m/intel386.h: Remove references to XENIX.
23695
23696 2008-01-17 Andreas Schwab <schwab@suse.de>
23697
23698 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23699 instead of HAVE_X86_64_LIB64_DIR.
23700 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23701
23702 2008-01-17 Glenn Morris <rgm@gnu.org>
23703
23704 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23705 to HAVE_X86_64_LIB64_DIR.
23706
23707 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23708
23709 * s/irix3-3.h:
23710 * s/irix4-0.h:
23711 * s/386-ix.h:
23712 * s/domain.h:
23713 * s/hpux9-x11r4.h:
23714 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23715
23716 * sysdep.c: Remove code containing references to symbols defined
23717 by unsupported systems.
23718
23719 2008-01-16 Glenn Morris <rgm@gnu.org>
23720
23721 * coding.c (select-safe-coding-system-function): Doc fix.
23722
23723 2008-01-15 Glenn Morris <rgm@gnu.org>
23724
23725 * config.in: Revert 2008-01-13 change: this is a generated file.
23726
23727 2008-01-13 Tom Tromey <tromey@redhat.com>
23728
23729 * lisp.h: Fix typo.
23730
23731 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23732
23733 * m/sequent-ptx.h:
23734 * m/sequent.h:
23735 * s/ptx.h:
23736 * s/ptx4-2.h:
23737 * s/ptx4.h: Remove files for systems no longer supported.
23738
23739 * callproc.c (Fcall_process): Fix previous change.
23740
23741 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23742
23743 * unexsunos4.c: Remove file, system not supported anymore.
23744
23745 * m/mips.h:
23746 * m/intel386.h:
23747 * callproc.c:
23748 * config.in:
23749 * ecrt0.c:
23750 * emacs.c:
23751 * fileio.c:
23752 * frame.c:
23753 * getpagesize.h:
23754 * keyboard.c:
23755 * lread.c:
23756 * process.c:
23757 * puresize.h:
23758 * sysdep.c:
23759 * systty.h:
23760 * syswait.h:
23761 * unexec.c:
23762 * xdisp.c:
23763 * alloc.c: Remove code containing references to symbols defined by
23764 unsupported systems.
23765
23766 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23767
23768 * coding.c (detect_coding_mask): Fix previous change.
23769
23770 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23771
23772 * coding.c (detect_coding_iso2022): New arg
23773 latin_extra_code_state. Allow Latin extra codes only
23774 when *latin_extra_code_state is nonzero.
23775 (detect_coding_mask): If there is a NULL byte, detect the encoding
23776 as UTF-16 or binary. If Latin extra codes exist, detect the
23777 encoding as ISO-2022 only when there's no other proper encoding is
23778 found.
23779
23780 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23781
23782 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23783 #ifdef MAC_OS.
23784
23785 2008-01-08 Richard Stallman <rms@gnu.org>
23786
23787 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23788
23789 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23790
23791 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23792 menu bar in parentheses.
23793
23794 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23795
23796 * m/7300.h:
23797 * m/acorn.h:
23798 * m/alliant-2800.h:
23799 * m/alliant.h:
23800 * m/alliant1.h:
23801 * m/alliant4.h:
23802 * m/altos.h:
23803 * m/amdahl.h:
23804 * m/apollo.h:
23805 * m/att3b.h:
23806 * m/aviion-intel.h:
23807 * m/aviion.h:
23808 * m/celerity.h:
23809 * m/clipper.h:
23810 * m/cnvrgnt.h:
23811 * m/convex.h:
23812 * m/cydra5.h:
23813 * m/delta88k.h:
23814 * m/dpx2.h:
23815 * m/dual.h:
23816 * m/elxsi.h:
23817 * m/f301.h:
23818 * m/gould-np1.h:
23819 * m/gould.h:
23820 * m/i860.h:
23821 * m/ibmps2-aix.h:
23822 * m/ibmrt-aix.h:
23823 * m/ibmrt.h:
23824 * m/irist.h:
23825 * m/is386.h:
23826 * m/isi-ov.h:
23827 * m/mega68.h:
23828 * m/mg1.h:
23829 * m/news-r6.h:
23830 * m/news-risc.h:
23831 * m/news.h:
23832 * m/nh3000.h:
23833 * m/nh4000.h:
23834 * m/ns16000.h:
23835 * m/ns32000.h:
23836 * m/nu.h:
23837 * m/orion.h:
23838 * m/orion105.h:
23839 * m/paragon.h:
23840 * m/pfa50.h:
23841 * m/plexus.h:
23842 * m/pyramid.h:
23843 * m/pyrmips.h:
23844 * m/sh3el.h:
23845 * m/sps7.h:
23846 * m/sr2k.h:
23847 * m/stride.h:
23848 * m/sun1.h:
23849 * m/sun2.h:
23850 * m/sun3-68881.h:
23851 * m/sun3-fpa.h:
23852 * m/sun3-soft.h:
23853 * m/sun3.h:
23854 * m/sun386.h:
23855 * m/symmetry.h:
23856 * m/tad68k.h:
23857 * m/tahoe.h:
23858 * m/targon31.h:
23859 * m/tek4300.h:
23860 * m/tekxd88.h:
23861 * m/tower32.h:
23862 * m/tower32v3.h:
23863 * m/ustation.h:
23864 * m/wicat.h:
23865 * m/xps100.h:
23866 * s/cxux.h:
23867 * s/cxux7.h:
23868 * s/dgux.h:
23869 * s/dgux4.h:
23870 * s/dgux5-4-3.h:
23871 * s/dgux5-4r2.h:
23872 * s/esix.h:
23873 * s/esix5r4.h:
23874 * s/hiuxmpp.h:
23875 * s/hiuxwe2.h:
23876 * s/iris3-5.h:
23877 * s/iris3-6.h:
23878 * s/isc2-2.h:
23879 * s/isc3-0.h:
23880 * s/isc4-0.h:
23881 * s/isc4-1.h:
23882 * s/newsos5.h:
23883 * s/newsos6.h:
23884 * s/osf1.h:
23885 * s/osf5-0.h:
23886 * s/riscix1-1.h:
23887 * s/riscix12.h:
23888 * s/sco4.h:
23889 * s/sco5.h:
23890 * s/sunos4-0.h:
23891 * s/sunos4-1.h:
23892 * s/sunos413.h:
23893 * s/sunos4shr.h:
23894 * s/umax.h:
23895 * s/unipl5-2.h:
23896 * s/xenix.h:
23897 * cxux-crt0.s:
23898 * unexapollo.c:
23899 * unexconvex.c:
23900 * unexenix.c:
23901 * unexsni.c: Remove files for systems no longer supported.
23902
23903 * m/intel386.h: Remove references to unsupported systems.
23904
23905 * w32.c (get_emacs_configuration): Remove reference to i860.
23906
23907 * sysdep.c: Remove dead code.
23908
23909 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23910
23911 * s/rtu.h:
23912 * m/masscomp.h: Remove files. Platform is obsolete.
23913
23914 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23915
23916 * dbusbind.c (Fdbus_method_return): New function.
23917 (xd_read_message): Add the serial number to the event.
23918 (Fdbus_register_method): Activate the function.
23919
23920 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23921
23922 * keyboard.c (read_key_sequence): Fix typo.
23923
23924 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23925
23926 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23927 (xd_signature, xd_append_arg): Handle element type detection for
23928 empty arrays.
23929 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23930 SDATA () calls; this must be solved more general.
23931 (Fdbus_register_signal): Use SBYTES instead of strlen.
23932
23933 2008-01-03 Magnus Henoch <magnus@zemdatav>
23934
23935 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23936 unsigned int for byte values (necessary for big-endian platform).
23937 (Fdbus_call_method): Handle the case of no returned arguments.
23938
23939 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23940
23941 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23942
23943 2007-12-31 Magnus Henoch <mange@freemail.hu>
23944
23945 * dbusbind.c (xd_signature): Signature of variant is just "v".
23946
23947 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23948
23949 * dbusbind.c: Fix several errors and compiler warnings.
23950 Reported by Tom Tromey <tromey@redhat.com>.
23951 (XD_ERROR, XD_DEBUG_MESSAGE)
23952 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23953 (xd_append_arg): Part for basic D-Bus types rewritten.
23954 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23955 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23956 appropriate.
23957 (xd_read_message): Return Qnil. Don't signal an error; it is not
23958 useful during event reading.
23959 (Fdbus_register_signal): Signal an error if the check for
23960 FUNCTIONP fails.
23961 (Fdbus_register_method): New function. The implementation is not
23962 complete, the call of the function signals an error therefore.
23963 (Fdbus_unregister_object): New function, renamed from
23964 Fdbus_unregister_signal. The initial check signals an error, if
23965 the object is not well formed.
23966
23967 2007-12-30 Richard Stallman <rms@gnu.org>
23968
23969 * textprop.c (get_char_property_and_overlay):
23970 Signal error if POSITION is out of range in a buffer.
23971
23972 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23973
23974 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23975 because the original parameters are in pure storage now.
23976
23977 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23978
23979 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23980
23981 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23982
23983 * callint.c (syms_of_callint) <command-history>: Add reference to
23984 history-length in the doc string.
23985
23986 2007-12-17 Jason Rumney <jasonr@gnu.org>
23987
23988 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23989 before passing as wParam.
23990
23991 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23992
23993 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23994 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23995 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23996 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23997 as number.
23998 (Fdbus_call_method): Fix docstring.
23999
24000 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
24001
24002 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24003 New macros.
24004 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24005 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24006 Simplify.
24007 (xd_signature): New function.
24008 (xd_append_arg): Compute also signatures. Major rewrite.
24009 (xd_retrieve_arg): Make debug messages friendly.
24010 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24011 Check for signatures of arguments.
24012
24013 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
24014
24015 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24016 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24017 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24018 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24019 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24020 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24021 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24022 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24023 (xd_retrieve_value): Remove. Functionality included in ...
24024 (xd_append_arg): New function.
24025 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24026
24027 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
24028
24029 * dbusbind.c (top): Include <stdio.h>.
24030 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24031 dbus_message_new_method_call and dbus_message_new_signal.
24032 (Fdbus_register_signal): Rename unique_name to uname.
24033 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24034 non-existing unique name. Fix typos in matching rule. Return an
24035 object which is useful in Fdbus_unregister_signal.
24036 (Fdbus_unregister_signal): Reimplementation, in order to remove
24037 only the corresponding entry.
24038 (Vdbus_registered_functions_table): Change the order of entries.
24039 Apply these changes in xd_read_message and Fdbus_register_signal.
24040
24041 2007-12-16 Andreas Schwab <schwab@suse.de>
24042
24043 * fileio.c (Finsert_file_contents): Fix overflow check to not
24044 depend on undefined integer overflow.
24045
24046 2007-12-14 Jason Rumney <jasonr@gnu.org>
24047
24048 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24049 for characters above 127.
24050
24051 2007-12-13 Jason Rumney <jasonr@gnu.org>
24052
24053 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24054 before dereferencing array.
24055 (lookup_vk_code): Remove zero comparison.
24056
24057 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
24058
24059 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24060 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24061 Use `unsigned int' instead of `uint'.
24062 (xd_read_message, Fdbus_register_signal): Split expressions into
24063 multiple lines before operators "&&" and "||", according to the
24064 GNU Coding Standards.
24065
24066 2007-12-14 Eli Zaretskii <eliz@gnu.org>
24067
24068 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24069
24070 2007-12-12 Juri Linkov <juri@jurta.org>
24071
24072 * buffer.c (Frename_buffer): In interactive spec replace
24073 `read-buffer' with `read-string' that uses `buffer-name-history'
24074 as history, and the current buffer's name as default.
24075
24076 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24077
24078 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24079 manipulating the backtrace manually.
24080 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24081 (struct backtrace, backtrace_list): Remove.
24082 (command_loop_1): Remove dead var `no_direct'.
24083
24084 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24085 preserve non-built-in buffer-local variables.
24086 (Fkill_all_local_variables): Don't re-create&re-set permanent
24087 buffer-local variables.
24088
24089 2007-12-09 Juri Linkov <juri@jurta.org>
24090
24091 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24092 Lisp code that uses `read-buffer' with current buffer as default.
24093
24094 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
24095
24096 * dbusbind.c (xd_read_message): Generate an event for every
24097 registered handler. There might be several handlers registered
24098 for the same signal.
24099 (Fdbus_register_signal): Don't overwrite a registration for the
24100 same signal. Add a new registration if handlers are different.
24101 (Vdbus_registered_functions_table): Rework doc string.
24102
24103 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
24104
24105 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24106 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24107 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24108 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24109 Unify argument lists.
24110 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24111 arguments and hash table keys. Use unique name for service.
24112 (Fdbus_unregister_signal): Remove checks.
24113 (Vdbus_registered_functions_table): Fix doc string.
24114
24115 2007-12-05 Magnus Henoch <mange@freemail.hu>
24116
24117 * process.c (make_process): Initialize pty_flag to 0.
24118
24119 2007-12-05 Jason Rumney <jasonr@gnu.org>
24120
24121 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24122 specified XBMs.
24123
24124 2007-12-05 Richard Stallman <rms@gnu.org>
24125
24126 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24127
24128 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24129
24130 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24131 New variable.
24132 (mac_try_close_socket) [MAC_OSX]: New function.
24133 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24134 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24135
24136 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24137 Use mac_try_close_socket.
24138
24139 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24140
24141 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24142 reloc_base.
24143 (copy_dysymtab): Compute relocation base here.
24144 (rebase_reloc_address) [__ppc64__]: New function.
24145 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24146 changed.
24147
24148 2007-12-05 Jason Rumney <jasonr@gnu.org>
24149
24150 * w32proc.c (sys_spawnve): Quote args with wildcards.
24151
24152 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24153
24154 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24155 __objc_* sections.
24156 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24157
24158 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
24159
24160 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24161 Move check for Vdbus_registered_functions_table to
24162 xd_read_queued_messages.
24163 (xd_read_queued_messages): Protect xd_read_message calls by
24164 internal_condition_case_1.
24165
24166 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
24167
24168 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24169 Qdbus_system_bus and Qdbus_session_bus, respectively.
24170 (Vdbus_intern_symbols): Remove.
24171 (Vdbus_registered_functions_table): New hash table.
24172 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24173 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24174 Rewrite in order to manage registered functions by hash table
24175 Vdbus_registered_functions_table.
24176
24177 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24178
24179 * xterm.c: Update URL to Window Manager Specification in comment.
24180
24181 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
24182
24183 * config.in (HAVE_DBUS): Add.
24184
24185 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24186 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24187 (obj): Add $(DBUS_OBJ).
24188 (LIBES): Add $(DBUS_LIBS).
24189 (dbusbind.o): New target.
24190
24191 * dbusbind.c: New file.
24192
24193 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24194
24195 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24196 (Qdbus_event): New Lisp symbol.
24197 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24198 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
24199 (keys_of_keyboard): Define dbus-event.
24200
24201 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24202
24203 2007-12-01 Richard Stallman <rms@gnu.org>
24204
24205 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24206
24207 2007-11-30 Jason Rumney <jasonr@gnu.org>
24208
24209 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24210 (w32con_reset_terminal_modes): Clear screen buffer.
24211 (w32_face_attributes): Don't use color indexes that are out of range.
24212 Only reverse the default colors.
24213
24214 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24215 WINDOWSNT.
24216
24217 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24218
24219 2007-11-29 Jason Rumney <jasonr@gnu.org>
24220
24221 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24222 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24223 if the terminal colors are initialized.
24224 (unspecified_fg, unspecified_bg): Remove unused declarations.
24225
24226 2007-11-29 Andreas Schwab <schwab@suse.de>
24227
24228 * keyboard.c (apply_modifiers): Fix typo.
24229
24230 2007-11-29 Richard Stallman <rms@gnu.org>
24231
24232 * keymap.c (Fcurrent_local_map): Doc fix.
24233
24234 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24235
24236 * s/gnu-kfreebsd.h: New file.
24237
24238 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24239
24240 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24241 Don't cast redundantly.
24242
24243 * keyboard.c (KEY_TO_CHAR): New macro.
24244 (parse_modifiers, apply_modifiers): Accept integer arguments.
24245 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24246 for chars and symbol keys.
24247 After doing such remapping, apply function-key-map again.
24248
24249 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24250
24251 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24252 compiled anymore.
24253
24254 2007-11-26 Andreas Schwab <schwab@suse.de>
24255
24256 * process.c (list_processes_1): Fix indentation level of the
24257 command column.
24258
24259 2007-11-23 Andreas Schwab <schwab@suse.de>
24260
24261 * editfns.c (Fformat): Handle %c specially since it requires the
24262 argument to be of type int.
24263
24264 2007-11-23 Markus Triska <markus.triska@gmx.at>
24265
24266 * emacs.c (main): Call init_editfns before init_process, since
24267 init_process sets Vprocess_connection_type depending on OS release.
24268
24269 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24270
24271 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24272 (find_symbol_value): Use do_symval_forwarding.
24273
24274 * data.c (set_internal): Set the value in the `cons-cell' (for
24275 Buffer_Local_values) not only for frame-local variables.
24276
24277 2007-11-22 Andreas Schwab <schwab@suse.de>
24278
24279 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24280 values to sprintf.
24281 * keymap.c (Fsingle_key_description): Likewise.
24282 * print.c (print_object): Likewise.
24283
24284 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24285
24286 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24287 file for image is nil.
24288
24289 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24290
24291 * term.c: Include stdarg.h.
24292 (fatal): Implement using varargs.
24293 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24294
24295 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24296
24297 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24298 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24299 Update call to buffer_slot_type_mismatch.
24300 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24301 (buffer_slot_type_mismatch): Update.
24302 * buffer.c (buffer_local_types): Remove.
24303 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24304 (defvar_per_buffer): Set the type in the buffer_objfwd.
24305
24306 2007-11-21 Jason Rumney <jasonr@gnu.org>
24307
24308 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24309 CreateFileMapping returns NULL on failure.
24310
24311 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24312
24313 * search.c (Fset_match_data): Remove the `evaporate' feature.
24314 (unwind_set_match_data): Don't use the `evaporate' feature.
24315
24316 2007-11-21 Jason Rumney <jasonr@gnu.org>
24317
24318 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24319
24320 * w32console.c (w32con_write_glyphs): Remove unused variables.
24321
24322 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24323
24324 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24325
24326 * s/darwin.h (MULTI_KBOARD): Remove.
24327
24328 * macfns.c (x_create_tip_frame, Fx_create_frame)
24329 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24330
24331 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24332
24333 * buffer.c (Fbuffer_local_value): Remove redundant test.
24334 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24335 than in `current-buffer' to match the comment.
24336 Do the swap using swap_in_global_binding.
24337
24338 * data.c (store_symval_forwarding, set_internal):
24339 * eval.c (specbind): Remove dead code.
24340
24341 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24342 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24343 Since we do not want to see internal Lisp_*fwd objects here.
24344
24345 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24346
24347 * sysdep.c (init_system_name): Use getaddrinfo if available.
24348
24349 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24350 (x_scroll_bar_note_movement): start, end, with, height in struct
24351 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24352
24353 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24354
24355 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24356
24357 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24358
24359 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24360 This undoes Richard's change of 14-Oct-2002.
24361
24362 * alloc.c (allocate_other_vector):
24363 * lisp.h (allocate_other_vector): Remove.
24364
24365 * window.c (struct save_window_data): Move non-lisp data to the end
24366 and make it `int' rather than Lisp_Object.
24367 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24368 Done wrap/unwrap integer values.
24369 (Fset_window_configuration, compare_window_configurations):
24370 Update use of fields to their new types.
24371
24372 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24373 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24374 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24375 (SET_SCROLL_BAR_X_WINDOW): Remove.
24376 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24377 Access the new x_window field directly.
24378 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24379 Don't wrap/unwrap integers into Lisp_Objects.
24380 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24381 (x_scroll_bar_report_motion):
24382 Don't wrap/unwrap integers into Lisp_Objects.
24383 (x_term_init): Use SDATA.
24384 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24385 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24386 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24387 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24388 * xfns.c (x_set_background_color):
24389 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24390 Access the new x_window field directly.
24391
24392 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24393 (allocate_pseudovector): Make non-static.
24394
24395 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24396 (allocate_pseudovector): Declare.
24397 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24398
24399 2007-11-15 Andreas Schwab <schwab@suse.de>
24400
24401 * editfns.c (Fformat): Correctly format EMACS_INT values.
24402 Also take precision into account when formatting an integer.
24403
24404 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24405
24406 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24407
24408 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24409 (syms_of_keyboard): Defsubr it.
24410
24411 * data.c (swap_in_global_binding): Fix longstanding bug where
24412 store_symval_forwarding was not called with the right second argument,
24413 thus causing objfwd-ing from being dropped.
24414
24415 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24416
24417 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24418 (Fx_display_pixel_height, Fx_display_planes)
24419 (Fx_display_color_cells, Fx_server_max_request_size)
24420 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24421 (Fx_display_visual_class, Fx_display_save_under):
24422 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24423 (Fx_display_pixel_height, Fx_display_planes)
24424 (Fx_display_color_cells, Fx_server_max_request_size)
24425 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24426 (Fx_display_mm_height, Fx_display_mm_width)
24427 (Fx_display_backing_store, Fx_display_visual_class)
24428 (Fw32_select_font, Fx_display_save_under):
24429 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24430 (Fx_display_pixel_height, Fx_display_planes)
24431 (Fx_display_color_cells, Fx_server_max_request_size)
24432 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24433 (Fx_display_save_under): Fix typos in docstrings.
24434
24435 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24436
24437 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24438 corresponding to deleted entries; they are an implementation detail.
24439 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24440 Remove variables.
24441 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24442 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24443 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24444 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24445 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24446 (Fw32_define_rgb_color, Fw32_load_color_file)
24447 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24448 Fix typos in docstrings.
24449 (Fx_server_version): Reflow docstring.
24450 (Fw32_shell_execute): Doc fixes.
24451
24452 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
24453
24454 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24455 if w32_parse_hot_key returned nil.
24456
24457 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24458
24459 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24460
24461 2007-11-09 Jason Rumney <jasonr@gnu.org>
24462
24463 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24464
24465 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24466
24467 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24468 Remove W32_SCROLL_BAR_CLICK_EVENT.
24469
24470 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24471 Add MULTIMEDIA_KEY_EVENT.
24472
24473 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24474 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24475 (make_lispy_event) [WINDOWSNT]: Use it to translate
24476 MULTIMEDIA_KEY_EVENT.
24477
24478 * w32term.h (WM_APPCOMMAND): Define if not already.
24479 (GET_APPCOMMAND_LPARAM): Likewise.
24480
24481 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24482 WM_APPCOMMAND.
24483
24484 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24485 (syms_of_w32fns): Export and initialize it.
24486 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24487
24488 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
24489
24490 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24491 twice.
24492
24493 * xdisp.c (handle_face_prop): Fix last change.
24494
24495 2007-11-09 Richard Stallman <rms@gnu.org>
24496
24497 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24498 not just for after-strings and before-strings.
24499 Call face_for_overlay_string and pass the overlay to it.
24500 (handle_display_prop): Determine whether property came from an overlay.
24501 Pass OVERLAY arg to handle_single_display_spec.
24502 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24503 (load_overlay_strings): Fill in it->string_overlays.
24504 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24505
24506 * xfaces.c (face_for_overlay_string): Function renamed from
24507 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24508
24509 * dispextern.h (struct it): New elt string_overlays.
24510 New elt from_overlay, also in stack.
24511 Rearrange a few elements.
24512 (face_for_overlay_string): Decl renamed from
24513 face_at_buffer_position_no_overlays, and add argument.
24514
24515 2007-11-09 Richard Stallman <rms@gnu.org>
24516
24517 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24518 to get the base face for an overlay string.
24519
24520 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24521
24522 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24523
24524 * xdisp.c (handle_stop): Move some code out of loop.
24525
24526 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24527
24528 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24529 Fix conversion from Lisp object to ATSUFontID.
24530
24531 2007-11-09 Jason Rumney <jasonr@gnu.org>
24532
24533 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24534
24535 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24536
24537 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24538 Don't assume regions are aligned to page boundary.
24539 (print_load_command_name): Add LC_UUID if defined.
24540
24541 2007-11-09 Richard Stallman <rms@gnu.org>
24542
24543 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24544
24545 2007-11-07 Jason Rumney <jasonr@gnu.org>
24546
24547 * s/windows95.h: Remove.
24548
24549 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24550
24551 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24552 abort with a message on unhandled store_type values.
24553
24554 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24555
24556 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24557 Remove HAVE_X11R5 and HAVE_X11R4.
24558
24559 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24560
24561 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24562
24563 2007-11-01 Johan Bockgård <bojohan@gnu.org>
24564
24565 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24566 Don't set s->stippled_p here, since it has already been set by
24567 x_set_glyph_string_gc from x_draw_glyph_string.
24568
24569 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24570
24571 * sunfns.c: Remove file.
24572
24573 * m/sun386.h:
24574 * m/sun2.h:
24575 * m/sparc.h: Remove Sun windows code.
24576
24577 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24578
24579 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24580 (init_keyboard): Set current_kboard's window-system to nil.
24581 (tty_read_avail_input): Typo.
24582 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24583
24584 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24585
24586 * s/usg5-4.h:
24587 * s/usg5-3.h:
24588 * s/ptx.h:
24589 * m/is386.h:
24590 * m/ibmps2-aix.h:
24591 * Makefile.in: Remove all mentions of X10.
24592
24593 * dispnew.c (syms_of_display): Don't mention version 10.
24594
24595 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
24596
24597 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24598 ($(BLD)/abbrev.$(O)): Remove.
24599
24600 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24601
24602 Rewrite abbrev.c in Elisp.
24603 * image.c (Qcount): Don't declare as extern.
24604 (syms_of_image): Initialize and staticpro `Qcount'.
24605 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24606 * emacs.c (main): Don't call syms_of_abbrev.
24607 * Makefile.in (obj): Remove abbrev.o.
24608 (abbrev.o): Remove.
24609 * abbrev.c: Remove.
24610
24611 2007-10-26 Martin Rudalics <rudalics@gmx.at>
24612
24613 * window.c (window_min_size_2): Don't count header-line.
24614
24615 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24616
24617 * frame.h (struct frame): Move all bit fields after the first bit
24618 field to take advantage of the available space. Group all the
24619 chars together to reduce wasted space due to padding.
24620
24621 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
24622
24623 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24624
24625 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24626 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24627 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24628 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24629 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24630 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24631 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24632 (last_marked, mark_object_loop_halt): Make static.
24633
24634 * frame.c (syms_of_frame) <delete-frame-functions>:
24635 Fix typo in docstring.
24636
24637 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
24638
24639 * w32.c (init_environment): Fix tiny memory leak.
24640 (w32_get_resource): Remove unused variable `ok'.
24641
24642 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24643
24644 Make `window-system' into a keyboard-local variable (rather than
24645 frame-local as done originally by multi-tty).
24646
24647 * keyboard.h (struct kboard): Add Vwindow_system.
24648 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24649 (mark_kboards): Mark Vwindow_system.
24650
24651 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24652 (init_display): Don't set the obsolete `window-system' frame-param.
24653
24654 * xterm.c (x_term_init):
24655 * w32term.c (w32_create_terminal):
24656 * term.c (init_tty): Set Vwindow_system.
24657 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24658 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24659
24660 * xfns.c (Fx_create_frame, x_create_tip_frame):
24661 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24662 * macfns.c (Fx_create_frame):
24663 Don't set the obsolete `window-system' frame-param.
24664
24665 * frame.h (Qwindow_system): Remove.
24666 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24667 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24668
24669 2007-10-24 Richard Stallman <rms@gnu.org>
24670
24671 * frame.c (x_figure_window_size): For fullscreen case,
24672 set USPosition | PPosition without clobbering rest of window_prompting.
24673
24674 * keyboard.c (Fcurrent_idle_time): Doc fix.
24675
24676 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24677
24678 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24679
24680 * process.c (unwind_request_sigio): Only define if __ultrix__.
24681
24682 * callproc.c (child_setup): Remove spurious *.
24683
24684 * lisp.h (Fget_text_property): Declare.
24685 (have_menus_p): Declare it here rather than in sys-dep header files.
24686 * macterm.h (have_menus_p):
24687 * msdos.h (have_menus_p):
24688 * xterm.h (have_menus_p): Remove.
24689
24690 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24691 (Fmake_variable_frame_local): Just check the variable's const-ness
24692 rather than checking nil or t.
24693
24694 2007-10-22 Jason Rumney <jasonr@gnu.org>
24695
24696 * w32fns.c: Include math.h.
24697 (w32_abort): Declaration moved to nt/config.nt.
24698
24699 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24700 (abort): Redefinition moved to nt/config.nt.
24701
24702 * m/windowsnt.h: Remove.
24703
24704 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24705
24706 * emacs.c (Fdump_emacs): Fix typo in message.
24707 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24708 <installation-directory>: Reflow docstring.
24709
24710 2007-10-22 Juri Linkov <juri@jurta.org>
24711
24712 * minibuf.c: Allow minibuffer default to be a list of default values.
24713 With empty input use the first element of this list as returned default.
24714 (string_to_object)
24715 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24716 (read_minibuf): If defalt is cons, set histstring to its car.
24717 (Fread_string): If default_value is cons, set val to its car.
24718 (Fread_buffer): If def is cons, use its car.
24719 (Fcompleting_read): If defalt is cons, set val to its car.
24720
24721 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24722
24723 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24724
24725 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24726
24727 * doc.c (Fdocumentation): Check for advice in all cases.
24728
24729 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24730
24731 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24732
24733 2007-10-19 Richard Stallman <rms@gnu.org>
24734
24735 * doc.c (Fdocumentation): Check for and handle an advised function.
24736
24737 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24738
24739 * process.c (Fset_process_filter): Doc fix.
24740
24741 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24742
24743 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24744 which caused key-translation-map to applied repeatedly (thus breaking
24745 double-mode).
24746
24747 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24748
24749 * xselect.c (x_own_selection, x_handle_selection_clear)
24750 (x_clear_frame_selections):
24751 * w32menu.c (list_of_panes, list_of_items):
24752 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24753 * textprop.c (validate_plist, interval_has_all_properties)
24754 (interval_has_some_properties, interval_has_some_properties_list)
24755 (add_properties, text_property_list):
24756 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24757 * minibuf.c (Fassoc_string):
24758 * macselect.c (x_own_selection, x_clear_frame_selections)
24759 (Fx_disown_selection_internal):
24760 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24761 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24762
24763 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24764
24765 * process.c: Link to libs for calling res_init() if available.
24766 (Fmake_network_process): Call res_init() before getaddrinfo or
24767 gethostbyname, if possible.
24768
24769 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24770
24771 * lread.c (read1): Set pvectype for char_tables.
24772
24773 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24774 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24775 Add type checks.
24776 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24777
24778 * alloc.c (free_misc): Use XMISCTYPE.
24779 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24780
24781 2007-10-17 Glenn Morris <rgm@gnu.org>
24782
24783 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24784 (syms_of_minibuf): Add Qcompletion_ignore_case.
24785 * dired.c (Qcompletion_ignore_case): Change to external.
24786 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24787 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24788 (Fread_file_name): Use it rather than intern'ing.
24789
24790 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24791 (Fread_coding_system): Ignore case of user input.
24792
24793 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24794
24795 * xdisp.c (handle_display_prop): Ignore display specs after
24796 replacing one when string text is being replaced.
24797 (handle_single_display_spec): Pretend as if characters with display
24798 property haven't been consumed only when buffer text is being replaced.
24799
24800 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24801
24802 * xfns.c (Fx_create_frame, Fx_display_list):
24803 * window.c (window_fixed_size_p, enlarge_window)
24804 (shrink_window_lowest_first):
24805 * macterm.c (init_font_name_table):
24806 * macfns.c (Fx_create_frame, Fx_display_list):
24807 * lread.c (close_load_descs):
24808 * keyboard.c (read_char_x_menu_prompt):
24809 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24810 * coding.c (code_convert_region_unwind): Test the type of an object
24811 rather than just !NILP before extracting data from it.
24812
24813 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24814
24815 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24816 (XMISCANY): New macro.
24817 (XMISCTYPE): Use it.
24818 (struct Lisp_Misc_Any): New type.
24819 (union Lisp_Misc): Use it.
24820 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24821 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24822 (find_symbol_value, set_internal, default_value, Fset_default)
24823 (Fmake_variable_buffer_local, Fmake_local_variable)
24824 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24825 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24826 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24827 * alloc.c (allocate_buffer): Set the size and tag.
24828 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24829 Use XMISCANY.
24830 (die): Follow the GNU convention for error messages.
24831 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24832 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24833 tag any more.
24834 (set_buffer_internal_1):
24835 * frame.c (store_frame_param):
24836 * eval.c (specbind):
24837 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24838
24839 * doc.c (Fsnarf_documentation): Simplify.
24840
24841 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24842
24843 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24844 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24845
24846 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24847
24848 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24849
24850 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24851
24852 * eval.c (do_autoload): Don't save autoloads.
24853
24854 * data.c (Ffset): Save autoload of the function being set.
24855
24856 2007-10-07 John Paul Wallington <jpw@pobox.com>
24857
24858 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24859 parameter before setting up faces.
24860
24861 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24862
24863 * ccl.c (Fregister_code_conversion_map):
24864 * keyboard.c (append_tool_bar_item): Reformat last change.
24865
24866 * lisp.h (eabs): Rename from `abs'. All callers changed.
24867
24868 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24869
24870 * buffer.c (add_overlay_mod_hooklist):
24871 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24872 * fontset.c (make_fontset):
24873 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24874 (append_tool_bar_item):
24875 * macmenu.c (grow_menu_items):
24876 * w32menu.c (grow_menu_items):
24877 * xmenu.c (grow_menu_items): Use larger_vector.
24878
24879 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24880
24881 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24882 selected frame'' on MSDOS).
24883
24884 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24885
24886 * frame.c (Qexplicit_name): New variable.
24887 (x_report_frame_params): Report it in parameter alist.
24888 (syms_of_frame): Intern and staticpro it.
24889
24890 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24891
24892 * macfns.c (x_create_tip_frame): Set terminal for frame.
24893
24894 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24895
24896 * frame.c (Qenvironment): Remove.
24897 (syms_of_frame) <Qenvironment>: Don't initialize.
24898 (Fdelete_frame): Don't treat the `environment' param specially.
24899 * frame.h (Qenvironment): Don't declare.
24900 * callproc.c (set_initial_environment): Don't set unused frame param.
24901
24902 * frame.c (Fframe_with_environment): Remove.
24903 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24904
24905 * lisp.h (Fframe_with_environment): Don't declare.
24906
24907 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24908
24909 * indent.c (indent_tabs_mode, last_known_column)
24910 (last_known_column_modified): Make static.
24911 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24912
24913 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24914
24915 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24916
24917 2007-10-09 Jason Rumney <jasonr@gnu.org>
24918
24919 * w32term.c (x_set_window_size): Disable code that attempts to tell
24920 Lisp code about a size change before it actually happens.
24921
24922 2007-10-09 Richard Stallman <rms@gnu.org>
24923
24924 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24925 return HANDLED_RETURN.
24926
24927 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24928
24929 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24930 when there's an unread command event.
24931
24932 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24933 window autoselection act appropriately when leaving selected frame.
24934 (syms_of_frame): Initialize focus_follows_mouse.
24935 * frame.h (focus_follows_mouse): Extern it.
24936 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24937 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24938 * msdos.c (dos_rawgetc): Likewise.
24939 * w32term.c (w32_read_socket): Likewise.
24940 * xterm.c (handle_one_xevent): Likewise.
24941 * xdisp.c (syms_of_xdisp): In doc-string of
24942 mouse-autoselect-window mention focus-follows-mouse.
24943
24944 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24945
24946 * macterm.c (mac_load_query_font): Fix missing return value.
24947 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24948 Add BLOCK_INPUT.
24949
24950 2007-10-08 Richard Stallman <rms@gnu.org>
24951
24952 * xdisp.c (get_window_cursor_type): Implement documented behavior
24953 for cursor-in-non-selected-windows = t.
24954
24955 2007-10-08 Jason Rumney <jasonr@gnu.org>
24956
24957 * w32.c (w32_get_resource): Always close registry keys.
24958
24959 2007-10-08 Jason Rumney <jasonr@gnu.org>
24960
24961 * makefile.w32-in (LIBS): Add COMCTL32.
24962
24963 * w32fns.c (globals_of_w32fns): Init common controls.
24964
24965 2007-10-08 Richard Stallman <rms@gnu.org>
24966
24967 * image.c (our_memory_buffer): Rename from omfib_buffer.
24968
24969 2007-10-08 Richard Stallman <rms@gnu.org>
24970
24971 * buffer.c (Foverlays_at): Doc fix.
24972
24973 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24974
24975 * fns.c (Fplist_put): Preserve uneven tail data.
24976
24977 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24978
24979 * termhooks.h (enum event_kind): Remove trailing comma.
24980
24981 * frame.h (enum): Remove trailing comma.
24982
24983 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24984
24985 * w32proc.c (delete_child): Don't terminate threads of zombies.
24986
24987 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24988
24989 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24990
24991 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24992 last-repeatable-command.
24993 (init_kboard): Initialize Vlast_repeatable_command.
24994 (command_loop_1): Set it to real_this_command unless that was
24995 bound to an input event.
24996 (mark_kboards): Mark it.
24997
24998 2007-10-08 Richard Stallman <rms@gnu.org>
24999
25000 * eval.c (condition-case): Doc fix.
25001
25002 2007-10-08 Masatake YAMATO <jet@gyve.org>
25003
25004 * xfaces.c (tty_supports_face_attributes_p): Fix code
25005 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25006 was copied and not edited.
25007
25008 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25009
25010 Add new `input-decode-map' keymap and use it for terminal
25011 escape sequences.
25012 * keyboard.h (struct kboard): Add Vinput_decode_map.
25013 Remove Vlocal_key_translation_map.
25014 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25015 (init_kboard): Init input-decode-map.
25016 Replace local-key-translation-map back with key-translation-map.
25017 (syms_of_keyboard): Declare input-decode-map.
25018 Remove local-key-translation-map. Update docstrings.
25019 (mark_kboards): Mark Vinput_decode_map.
25020 Don't mark Vlocal_key_translation_map.
25021 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25022 Replace local-key-translation-map back with key-translation-map.
25023 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25024 Bind in input-decode-map rather than function-key-map.
25025
25026 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25027 This was made redundant by the previous introduction of XSETPVECTYPE.
25028
25029 2007-10-09 Richard Stallman <rms@gnu.org>
25030
25031 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25032
25033 2007-09-29 Richard Stallman <rms@gnu.org>
25034
25035 * eval.c (internal_condition_case_2, internal_condition_case_1)
25036 (internal_condition_case): Reenable abort if x_catching_errors ()
25037 to see if that really happens and why.
25038
25039 2007-10-06 Andreas Schwab <schwab@suse.de>
25040
25041 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25042
25043 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
25044
25045 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25046
25047 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25048
25049 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25050
25051 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25052
25053 * window.h (struct window):
25054 * window.c (struct save_window_data, struct saved_window):
25055 * termhooks.h (struct terminal):
25056 * process.h (struct Lisp_Process):
25057 * frame.h (struct frame):
25058 * buffer.h (struct buffer):
25059 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25060 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25061 The size field of (pseudo)vectors is now unsigned.
25062 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25063
25064 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25065 Turn `count' into an integer.
25066
25067 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25068 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25069 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25070 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25071 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25072
25073 * alloc.c (allocate_pseudovector): New fun.
25074 (ALLOCATE_PSEUDOVECTOR): New macro.
25075 (allocate_window, allocate_terminal, allocate_frame)
25076 (allocate_process): Use it.
25077 (mark_vectorlike): New function.
25078 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25079 (mark_terminals): Use it.
25080 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25081 (Fmake_byte_code): Use XSETPVECTYPE.
25082
25083 * frame.c (Fframe_parameters): Minor simplification.
25084
25085 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25086
25087 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25088
25089 * buffer.c (Fget_buffer_create, init_buffer_once):
25090 * lread.c (defsubr):
25091 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25092
25093 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25094 defined differently in the m/*.h files.
25095 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25096 (XSETPVECTYPE): New macro.
25097 (XSETPSEUDOVECTOR): Use it.
25098
25099 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25100 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25101
25102 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25103 * lread.c (defvar_per_buffer):
25104 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25105
25106 * window.c (candidate_window_p): Only consider as visible frames that
25107 are on the same terminal.
25108
25109 * m/ibms390x.h (MARKBIT): Remove unused macro.
25110
25111 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
25112
25113 * lread.c (Fload): Fix typo in docstring.
25114
25115 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25116
25117 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25118 of a non-zero value can't yield zero.
25119
25120 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25121
25122 * term.c (term_clear_mouse_face, term_mouse_highlight)
25123 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25124
25125 * print.c (safe_debug_print): Use XHASH.
25126
25127 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25128 Lisp elements such as tags.
25129 (XHASH): New macro.
25130 (EQ): Use it.
25131 (SREF, SSET, STRING_COPYIN): Use SDATA.
25132 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25133
25134 * alloc.c (mark_terminal): Remove left-over declaration.
25135 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25136 (allocate_vectorlike): Remove type argument. Adjust callers.
25137 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25138 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25139
25140 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25141 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25142 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25143 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25144 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25145 Use them.
25146
25147 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25148 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25149 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25150
25151 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25152
25153 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25154 loaded by default.
25155
25156 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25157
25158 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25159 on this tty.
25160 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25161
25162 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25163 Update all users.
25164 (handle_one_term_event): Use Gpm_DrawPointer.
25165 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25166 Signal errors instead of returning nil. Always return nil.
25167 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25168 Make it a noop if gpm-mouse was not activated.
25169 (syms_of_term): Update names.
25170
25171 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25172
25173 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25174 (init_sys_modes): Check that gpm_tty is the current tty.
25175
25176 * alloc.c (allocate_terminal): Set the vector size to only count the
25177 lisp fields. Initialize those to nil.
25178 (mark_object): Don't treat terminals specially.
25179 (mark_terminal): Remove.
25180 (mark_terminals): Use mark_object instead.
25181
25182 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25183 the GC to the beginning.
25184
25185 * indent.h:
25186 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25187
25188 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25189
25190 2007-09-25 Jason Rumney <jasonr@gnu.org>
25191
25192 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25193
25194 * w32console.c (create_w32cons_output): Remove.
25195
25196 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25197
25198 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25199 (reset_sys_modes): Use reset_terminal_modes_hook.
25200
25201 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25202
25203 * eval.c (do_autoload): Don't output any message.
25204
25205 2007-09-24 Juri Linkov <juri@jurta.org>
25206
25207 * emacs.c (standard_args): Change priority of "--no-splash"
25208 from 40 to 3. Add "--no-desktop" with the same priority.
25209
25210 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25211
25212 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25213 and optimize the case where they are all 1.
25214
25215 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
25216
25217 * lisp.h (abs): Define if not defined.
25218 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25219 Don't define `abs', since it's defined in lisp.h.
25220
25221 2007-09-22 Eli Zaretskii <eliz@gnu.org>
25222
25223 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25224 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25225 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25226 (init_tty): Use DEV_TTY instead of "/dev/tty".
25227 [WINDOWSNT]: No need to protect from NAME arg being null.
25228
25229 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25230
25231 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25232 up the tty state.
25233
25234 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25235
25236 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25237 (gpm_tty): Change its type.
25238 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25239 (gpm_tty): Change its type and initialize it.
25240 (Fterm_open_connection): Check the frame is indeed a tty.
25241 Use the new gpm_tty.
25242 (Fterm_close_connection): Use the new gpm_tty.
25243 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25244 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25245
25246 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
25247
25248 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25249 underline_color, to draw strike-through.
25250
25251 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25252
25253 * lisp.h (allocate_terminal): Declare.
25254
25255 * window.c (candidate_window_p): Consider frames that are being placed
25256 by the user as somewhere between visible and iconified.
25257 (window_loop): Prefer windows on the current frame.
25258 (Fselect_window): Move the use of select-frame to the beginning so we
25259 can just delegate all the work (it'll call us back anyway).
25260
25261 * frame.c (Qdisplay_environment_variable):
25262 * frame.h (Qdisplay_environment_variable): Delete.
25263
25264 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25265 of the first arg, since that value may be a union.
25266
25267 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25268 parameter rather than Qdisplay_environment_variable. If all else
25269 fails, look for DISPLAY in initial-environment.
25270
25271 2007-09-21 Glenn Morris <rgm@gnu.org>
25272
25273 * Makefile.in (emacstool): Remove target.
25274 (lisp, shortlisp): Remove termdev.elc.
25275
25276 2007-09-21 Markus Triska <markus.triska@gmx.at>
25277
25278 * xterm.c (x_delete_display): Compile session management conditionally.
25279
25280 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25281
25282 * callproc.c (getenv_internal_1): New function.
25283 (getenv_internal): Use it.
25284 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25285
25286 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25287 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25288 (Fset_terminal_parameter): Work with dead terminals as well.
25289 (Fmodify_terminal_parameters): Remove.
25290
25291 * terminal.c (get_terminal): Handle terminals.
25292 Make sure the terminal returned is live.
25293 (create_terminal): Use allocate_terminal.
25294 (mark_terminals): Move to alloc.c.
25295 (delete_terminal): Use terminal->name as liveness status.
25296 NULL out fields after freeing their contents.
25297 Don't deallocate the object.
25298 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25299 rather than an int.
25300 (Fterminal_live_p): Accept non-integer arguments.
25301 (Fterminal_list): Return terminal objects rather than an ints.
25302
25303 * alloc.c (enum mem_type): New member for `terminal' objects.
25304 (allocate_terminal): New function.
25305 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25306 Handle terminals.
25307 (mark_terminal): New fun.
25308 (mark_terminals): Move from terminal.c.
25309
25310 * term.c (get_tty_terminal): Don't treat output_initial specially.
25311 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25312 (delete_tty): Use terminal->name as liveness status.
25313
25314 * termhooks.h (struct terminal): Make it into a pseudovector.
25315 Remove `deleted' replaced by checking `name's nullness.
25316
25317 * print.c (print_object): Handle terminals.
25318
25319 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25320 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25321
25322 * frame.c (make_terminal_frame):
25323 * keyboard.c (tty_read_avail_input):
25324 * w32term.c (x_delete_terminal):
25325 * xfns.c (Fx_create_frame, x_create_tip_frame):
25326 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25327
25328 2007-09-20 Glenn Morris <rgm@gnu.org>
25329
25330 * process.c (Fmake_network_process): Doc fix.
25331
25332 2007-09-19 Jason Rumney <jasonr@gnu.org>
25333
25334 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25335
25336 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25337
25338 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25339 Fix a C warning regarding variable constness.
25340
25341 * xterm.c (handle_one_xevent): Fix a C warning.
25342
25343 2007-09-18 Jason Rumney <jasonr@gnu.org>
25344
25345 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25346
25347 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25348
25349 * gtkutil.c (gdpy_def): New variable.
25350 (xg_initialize): Initialize gdpy_def.
25351 (xg_display_close): If no other display exists, set gdpy_def to a
25352 new connection.
25353
25354 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25355
25356 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25357 when we have no file name for the icon.
25358 (xg_tool_bar_expose_callback): Remove.
25359 (xg_create_tool_bar): Don't connect expose signal to
25360 xg_tool_bar_expose_callback.
25361 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25362
25363 2007-09-16 Andreas Schwab <schwab@suse.de>
25364
25365 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25366 values instead of zapping them.
25367
25368 2007-09-14 Glenn Morris <rgm@gnu.org>
25369
25370 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25371 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25372 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25373 scope and rename to omfib_buffer for clarity.
25374 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25375
25376 2007-09-14 Kenichi Handa <handa@m17n.org>
25377
25378 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25379
25380 2007-09-13 Jason Rumney <jasonr@gnu.org>
25381
25382 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25383
25384 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25385
25386 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25387 (mac_term_init): Call here instead, passing rif.
25388
25389 2007-09-13 Glenn Morris <rgm@gnu.org>
25390
25391 * s/hpux.h: No longer define `static' as nothing.
25392
25393 2007-09-13 Johan Bockgård <bojohan@gnu.org>
25394
25395 * callint.c (Fcall_interactively): Remove unused var `fun'.
25396
25397 2007-09-12 Romain Francoise <romain@orebokech.com>
25398
25399 * window.c (prefer_window_split_horizontally, display_buffer):
25400 Revert 2007-09-08 change.
25401
25402 2007-09-12 Glenn Morris <rgm@gnu.org>
25403
25404 * alloca.c: Remove file.
25405 * Makefile.in (alloca): Do not undef.
25406 (allocaobj, alloca.o): Remove.
25407 (otherobj): Remove allocaobj.
25408 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25409 * regex.c (C_ALLOCA): Remove all references and code that was only
25410 used when this was defined.
25411 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25412 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25413 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25414
25415 * Makefile.in (SOURCES, unlock, relock): Delete.
25416
25417 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25418 (menu_grab_callback): All uses changed.
25419
25420 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25421 (x_reply_selection_request): All uses changed.
25422
25423 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25424
25425 * lread.c (load_warn_old_style_backquotes): Change message to look
25426 better when it appears in the middle of byte-compiler messages.
25427
25428 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25429
25430 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25431
25432 * xterm.c (x_create_terminal): Add comment.
25433
25434 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25435
25436 2007-09-10 Richard Stallman <rms@gnu.org>
25437
25438 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25439
25440 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25441
25442 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25443 (DEFUN): Document `intspec', use it instead of `prompt'.
25444
25445 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25446
25447 * data.c (Finteractive_form): If the interactive specification starts
25448 with a `(', use it as a Lisp form.
25449
25450 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25451 name and file modes.
25452
25453 * callint.c (Fcall_interactively): Comment fixes.
25454
25455 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25456
25457 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25458 and compiled functions.
25459
25460 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25461
25462 * window.c (prefer_window_split_horizontally): New variable.
25463 (display_buffer): Consider splitting window horizontally depending
25464 on prefer_window_split_horizontally.
25465
25466 2007-09-08 Eli Zaretskii <eliz@gnu.org>
25467
25468 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25469
25470 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25471
25472 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25473
25474 * frame.c (x_set_frame_parameters): Check number is positive before
25475 using XFASTINT.
25476
25477 * window.c (freeze_window_start): Don't presume selected_window holds
25478 a window object.
25479 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25480
25481 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25482
25483 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25484
25485 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25486
25487 * window.c (Vsplit_window_preferred_function): New var.
25488 (Fdisplay_buffer): Use it.
25489 (syms_of_window): Export, and initialize it.
25490
25491 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25492
25493 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25494
25495 2007-09-06 Glenn Morris <rgm@gnu.org>
25496
25497 * gtkutil.c (menu_grab_callback) <cnt>:
25498 * xselect.c (x_reply_selection_request) <cnt>: Move static
25499 variable to file scope.
25500
25501 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25502
25503 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25504 consistent values of selected_frame and selected_window.
25505
25506 2007-09-04 Jason Rumney <jasonr@gnu.org>
25507
25508 * w32console.c (initialize_w32_display): Zero unused hooks.
25509
25510 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25511
25512 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25513 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25514
25515 2007-09-04 Jason Rumney <jasonr@gnu.org>
25516
25517 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25518 in w32console.c. Set up input. Remove XXX comments that have been
25519 confirmed as correct.
25520
25521 * s/ms-w32.h (MULTI_KBOARD): Define.
25522
25523 * w32console.c (one_and_only_w32cons): Remove.
25524 (initialize_w32_display): Take terminal argument.
25525
25526 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25527 initialize_w32_display.
25528 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25529
25530 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25531
25532 * keyboard.c (discard_mouse_events): Discard it.
25533 (make_lispy_event): Translate it to a lisp event.
25534 (lispy_wheel_names): Add wheel-left and right events.
25535 (syms_of_keyboard): Enlarge wheel_syms.
25536
25537 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25538 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25539
25540 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25541
25542 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25543 from WM_MOUSEHWHEEL.
25544 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25545
25546 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25547 terminal.
25548
25549 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25550 keyboard for the terminal.
25551
25552 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25553
25554 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25555 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25556 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25557 and resume-tty-function to resume-tty-hook.
25558 (Fsuspend_tty, Fresume_tty): Use new names.
25559
25560 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25561
25562 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25563 if it starts with "n:".
25564
25565 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25566
25567 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25568
25569 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25570
25571 * frame.h:
25572 * frame.c (Qterm_environment_variable): Remove.
25573 (syms_of_frame): Don't init and staticpro it.
25574
25575 * callproc.c (getenv_internal): Remove special case for $TERM.
25576
25577 * callproc.c (Vinitial_environment): New variable.
25578 (set_initial_environment): Initialize it.
25579 (syms_of_callproc): Declare it.
25580 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25581 TERM under which a process runs is never related to the TERM in which
25582 Emacs is running.
25583
25584 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25585
25586 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25587 * s/darwin.h: ... do it here.
25588
25589 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25590
25591 * lisp.h (set_initial_environment): Rename from set_global_environment.
25592
25593 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25594 removed by mistake on the multi-tty branch.
25595
25596 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25597 (Fmodify_frame_parameters): Return a value.
25598
25599 * image.c (png_load): Comment-out var only used in commented-out code.
25600
25601 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25602 before passing it to mark_object.
25603
25604 * xfaces.c (internal_resolve_face_name): Return a value.
25605 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25606
25607 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25608 (x_icon): Comment-out var only used in commented-out code.
25609
25610 2007-08-29 Romain Francoise <romain@orebokech.com>
25611
25612 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25613 QUIT hasn't been provided.
25614
25615 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25616
25617 * callproc.c (child_setup, getenv_internal): Use the
25618 display-environment-variable and term-environment-variable frame params.
25619 (set_initial_environment): Initialise Vprocess_environment.
25620
25621 * config.in: Disable multi-keyboard support on a mac.
25622
25623 * frame.c (Qterm_environment_variable)
25624 (Qdisplay_environment_variable): New variables.
25625 (syms_of_frame): Intern and staticpro them.
25626 (Fmake_terminal_frame): Disable output method test.
25627
25628 * frame.h: Declare them here.
25629
25630 * macfns.c (x_set_mouse_color): Get rif from the frame.
25631 (x_set_tool_bar_lines): Don't use updating_frame.
25632 (mac_window): Add 2 new parameters for consistency with other systems.
25633 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25634 frame parameters following what is done in X11 and w32. Don't use
25635 FRAME_MAC_DISPLAY_INFO.
25636 (Fx_open_connection, start_hourglass): Remove window-system check.
25637 (x_create_tip_frame): Get the keyboard from the terminal.
25638
25639 * macmenu.c: Reorder includes.
25640 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25641
25642 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25643 terminal parameter.
25644 (x_clear_frame): Add a frame parameter.
25645 (note_mouse_movement): Get rif from the frame.
25646 (mac_term_init): Initialize the terminal.
25647 (mac_initialize): Make static and move terminal initialization ...
25648 (mac_create_terminal): ... to this new function.
25649
25650 * macterm.h (struct mac_display_info): Add terminal.
25651 (mac_initialize): Delete declaration.
25652
25653 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25654
25655 * sysdep.c: Comment out text after #endif.
25656
25657 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25658 is defined. Better initialize ttys in windows. Use terminal
25659 specific mouse_position_hook.
25660
25661 * termhooks.h (union display_info): Add mac_display_info.
25662
25663 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25664 Set the default minibuffer frame, window_system and the rest of the
25665 frame parameters following what is done in X11.
25666
25667 * w32term.c (w32_initialize): Make static.
25668
25669 * xselect.c (x_handle_selection_clear): Only access
25670 terminal->kboard when MULTI_KBOARD is defined.
25671
25672 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25673 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25674
25675 2007-08-29 Jason Rumney <jasonr@gnu.org>
25676
25677 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25678 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25679
25680 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25681 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25682
25683 * keyboard.c (restore_kboard_configuration): Only define when
25684 MULTI_KBOARD defined.
25685
25686 * makefile.w32-in: Update dependancies from Makefile.in.
25687 (OBJ1): Add terminal.$(O)
25688
25689 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25690 Don't define function body.
25691 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25692
25693 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25694
25695 * w32.c (request_sigio, unrequest_sigio): Remove.
25696
25697 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25698 (w32con_clear_frame, w32con_clear_end_of_line)
25699 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25700 (w32con_delete_glyphs, w32con_set_terminal_window)
25701 (scroll_line, w32_sys_ring_bell): Add frame arg.
25702 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25703 Add terminal arg.
25704 (PICK_FRAME): Remove.
25705 (w32con_write_glyphs): Use frame specific terminal coding.
25706 (one_and_only_w32cons): New global variable.
25707 (initialize_w32_display): Use it for storing hooks.
25708 (create_w32cons_output): New function.
25709
25710 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25711 arg a frame.
25712
25713 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25714 Set window_system.
25715 (x_set_tool_bar_lines): Don't use updating_frame.
25716 (Fx_create_frame): Set terminal and ref count.
25717 (Fx_open_connection): Remove window-system check.
25718
25719 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25720
25721 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25722 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25723 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25724 Add frame arg.
25725 (x_delete_terminal, w32_create_terminal): New functions.
25726 (w32_term_init): Create a terminal.
25727 (w32_initialize): Move terminal specific initialization to
25728 w32_create_terminal.
25729
25730 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25731 (w32_clear_rect, w32_clear_area): Use background from frame.
25732 (w32_display_info): Add terminal.
25733 (w32_sys_ring_bell, x_delete_display): Declare here.
25734
25735 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25736
25737 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25738
25739 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25740
25741 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25742 Fix get_named_tty calls for the controlling tty.
25743
25744 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25745
25746 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25747
25748 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25749
25750 * term.c (tty_insert_glyphs): Add missing first parameter.
25751
25752 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25753
25754 * buffer.c (Fbuffer_list, Fbury_buffer):
25755 Take frame->buried_buffer_list into account.
25756
25757 * cm.c (current_tty): New variable, for cmputc().
25758 (cmputc): Use it.
25759 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25760 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25761 (cmgoto): Add tty parameter. Pass it on to calccost().
25762 Use emacs_tputs() instead of tputs().
25763
25764 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25765 tputs().
25766 (current_tty): New variable, for cmputc().
25767 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25768
25769 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25770 (internal_condition_case, internal_condition_case_1)
25771 (internal_condition_case_2): Don't abort when x_catching_errors.
25772
25773 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25774 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25775 prevent crashes caused by bogus longjmps in read_char.
25776
25777 * keymap.h (Fset_keymap_parent): Add EXFUN.
25778
25779 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25780 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25781 Remove redundant definition.
25782
25783 * macfns.c (x_set_mouse_color, x_make_gc):
25784 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25785
25786 * w32term.c (x_free_frame_resources):
25787 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25788 (w32_initialize): Use the accessor macros for terminal characteristics.
25789
25790 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25791 Use the accessor macros for terminal characteristics.
25792 * msdos.c (internal_terminal_init): Use the accessor macros for
25793 terminal characteristics.
25794 (ScreenVisualBell, internal_terminal_init):
25795 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25796
25797 * termopts.h (no_redraw_on_reenter): Declare.
25798
25799 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25800 (mark_terminals, mark_ttys): Declare.
25801 (Fgarbage_collect): Call them.
25802 (mark_object): Mark buried_buffer_list.
25803
25804 * prefix-args.c: Include stdlib.h for exit.
25805
25806 * syssignal.h: Add comment.
25807
25808 * indent.c: Include stdio.h.
25809
25810 * window.h (Vinitial_window_system): Declare.
25811 (Vwindow_system): Delete declaration.
25812
25813 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25814
25815 * image.c (lookup_image): Don't initialize `c' until the xasserts
25816 have been run.
25817
25818 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25819 FRAME_FOREGROUND_PIXEL.
25820
25821 * print.c (print_preprocess): Don't lose print_depth levels while
25822 iterating.
25823
25824 * widget.c (update_from_various_frame_slots):
25825 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25826
25827 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25828 frames.
25829 (window_internal_height): Remove bogus make_number call.
25830 (init_window_once): Call make_terminal_frame with two zero parameters.
25831
25832 * fileio.c (Fread_file_name): Update comment.
25833
25834 * callint.c (Fcall_interactively):
25835 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25836 Make sure it is correctly unwound.
25837
25838 * xsmfns.c (x_session_close): New function.
25839
25840 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25841 Delete declarations.
25842
25843 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25844 (x_output): Remove background_pixel and foreground_pixel fields.
25845 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25846 (x_delete_device, x_session_close): Declare.
25847
25848 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25849 (read_filtered_event): Call `read_char' with a local
25850 `wrong_kboard_jmpbuf'.
25851
25852 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25853 Don't call single_kboard_state. Use FRAME_RIF.
25854
25855 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25856 systems.
25857
25858 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25859 (Fframe_with_environment, Fset_input_meta_mode)
25860 (Fset_quit_char): EXFUN.
25861 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25862 (init_sys_modes, reset_sys_modes): Update prototypes.
25863 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25864
25865 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25866 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25867 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25868 Delete declarations.
25869 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25870 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25871 New declarations.
25872
25873 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25874 already does that during init_display(). Call syms_of_keymap
25875 before syms_of_keyboard. Call `syms_of_terminal'.
25876 Call set_initial_environment, not set_process_environment.
25877 (shut_down_emacs): Call reset_all_sys_modes() instead of
25878 reset_sys_modes().
25879
25880 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25881 (internal_resolve_face_name, resolve_face_name_error): New functions.
25882 (resolve_face_name): Protect against loops and errors thrown by Fget.
25883 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25884 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25885
25886 * scroll.c: Replace CURTTY() with local variables throughout the
25887 file (where applicable).
25888 (calculate_scrolling, calculate_direct_scrolling)
25889 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25890 characteristics.
25891
25892 * keymap.c (Vfunction_key_map): Remove.
25893 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25894 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25895 (Vkey_translation_map): Remove.
25896 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25897 (Fdescribe_buffer_bindings)
25898 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25899 Update for terminal-local key-translation-map.
25900
25901 * Makefile.in (callproc.o): Update dependencies.
25902 (lisp, shortlisp): Add termdev.elc.
25903 (obj): Add terminal.o.
25904 (terminal.o): Add dependencies.
25905 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25906 (data.o, fns.o): Add termhooks.h dependency.
25907 (SOME_MACHINE_LISP): Add dnd.elc.
25908 (minibuf.o): Fix typo.
25909 Update dependencies.
25910
25911 * data.c (do_symval_forwarding, store_symval_forwarding)
25912 (find_symbol_value): Use the selected frame's keyboard, not
25913 current_kboard.
25914
25915 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25916 Vwindow_system.
25917
25918 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25919 Fmenu_bar_open.
25920 (syms_of_xmenu): Update defsubr.
25921 (mouse_position_for_popup, Fx_popup_menu)
25922 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25923 (set_frame_menubar, free_frame_menubar)
25924 (create_and_show_popup_menu, xmenu_show)
25925 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25926 an X frame.
25927
25928 * xselect.c (x_own_selection): Abort if not an X frame.
25929 (some_frame_on_display): Check if it is an X frame.
25930 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25931
25932 * coding.c: Include frame.h and termhooks.h.
25933 (terminal_coding, keyboard_coding): Delete.
25934 (Fset_terminal_coding_system_internal)
25935 (Fset_keyboard_coding_system_internal)
25936 (Fkeyboard_coding_system)
25937 (Fterminal_coding_system): Add a terminal parameter.
25938 Get terminal_coding from the terminal.
25939 (init_coding_once): Don't call setup_coding_system here.
25940
25941 * dispextern.h (set_scroll_region, turn_off_insert)
25942 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25943 (tty_clear_end_of_line, tty_setup_colors)
25944 (delete_tty, updating_frame)
25945 (produce_special_glyphs, produce_glyphs, write_glyphs)
25946 (insert_glyphs): Remove.
25947 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25948 (tty_turn_off_highlight, get_tty_size): Add declaration.
25949 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25950
25951 * frame.h (enum output_method): Add output_initial.
25952 (struct x_output): Delete.
25953 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25954 Access foreground_pixel and background_pixel directly from the frame.
25955 (tty_display): Delete.
25956 (struct frame): Add buried_buffer_list, foreground_pixel,
25957 background_pixel and terminal. Delete kboard.
25958 (union output_data): Add tty.
25959 (FRAME_KBOARD): Get the kboard from the terminal.
25960 (FRAME_INITIAL_P): New macro.
25961 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25962 (Qterm_environment_variable, Qdisplay_environment_variable)
25963 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25964 New declarations.
25965
25966 * termchar.h (tty_output, tty_display_info): New structures.
25967 (tty_list): Declare.
25968 (FRAME_TTY, CURTTY): New macros.
25969 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25970 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25971 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25972 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25973
25974 * callproc.c: Include frame.h and termhooks.h, for terminal
25975 parameters.
25976 (add_env): New function.
25977 (child_setup): Use it.
25978 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25979 (getenv_internal): Fix get_terminal_param call.
25980 (Fgetenv_internal, egetenv): Update doc.
25981 (syms_of_callproc): Initialize Vprocess_environment to nil.
25982 Register and initialize them. Remove obsolete defvars. Update doc
25983 strings.
25984 (child_setup): Handle Vlocal_environment_variables.
25985 (getenv_internal): Add terminal parameter.
25986 Handle Vlocal_environment_variables.
25987 (Fgetenv_internal): Add terminal parameter.
25988 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25989 environment in a frame (not terminal) parameter. Update doc strings.
25990 (set_initial_environment): Rename from set_global_environment.
25991 Store Emacs environment in initial frame parameter.
25992
25993 * xdisp.c (redisplay_internal): Update references to
25994 `previous_terminal_frame'.
25995 (display_mode_line, Fformat_mode_line): Replace calls to
25996 `push_frame_kboard' with `push_kboard'.
25997 (get_glyph_string_clip_rects): Add extra parentheses and
25998 braces to prevent compiler warnings.
25999 (calc_pixel_width_or_height): Add xassert to check that the
26000 frame is alive. Don't call `lookup_image' on a termcap frame.
26001 (message2_nolog, message3_nolog, redisplay_internal)
26002 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26003 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26004 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26005 (Fx_display_pixel_width, Fx_display_pixel_height)
26006 (Fx_display_planes, Fx_display_color_cells)
26007 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26008 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26009 (Fx_display_backing_store, Fx_display_visual_class)
26010 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26011 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26012
26013 * xfns.c (x_set_foreground_color x_set_background_color)
26014 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26015 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26016 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26017 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26018 terminal that is being deleted.
26019 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26020 frame parameter, and make sure it overrides any user-supplied setting.
26021 (Fx_close_connection, Fx_synchronize): Unify argument names with
26022 the rest of the DEFUNs.
26023
26024 * dispnew.c (Fsend_string_to_terminal): Update call to
26025 `get_tty_terminal'.
26026 (Fredraw_frame, Fsend_string_to_terminal)
26027 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26028 FRAME_TERMCAP_P and FRAME_TTY.
26029 (window_change_signal): Don't believe width/height values that are
26030 impossibly small.
26031 (Vinitial_window_system): Rename from Vwindow_system.
26032 (termscript, Wcm, rif): Delete.
26033
26034 * termhooks.h (struct terminal): New struct containing the
26035 previously global text display hooks and new members NAME,
26036 DELETED and PARAM_ALIST.
26037 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26038 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26039 (FRAME_RIF): New macros.
26040 (get_terminal_param, get_device): New declarations.
26041 (termscript): Delete declaration.
26042
26043 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26044 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26045 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26046 FRAME_FOREGROUND_PIXEL.
26047 (x_fully_uncatch_errors): Disable definition.
26048 (x_scroll_bar_expose): Fix reference to foreground pixel.
26049 (XTread_socket): Disable loop on all X displays.
26050 (x_delete_terminal): Don't set terminal->deleted and let
26051 delete_terminal delete the frames on the terminal.
26052 (x_delete_display): Doc update to reflect changes in
26053 delete_terminal.
26054 (x_display_info) <terminal>: Move member earlier in the struct.
26055 (deleting_tty): Remove old variable.
26056 (Fsuspend_tty): Call clear_tty_hooks.
26057 (Fresume_tty, init_tty): Call set_tty_hooks.
26058 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26059 errors on X frames.
26060 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26061 (handle_one_xevent): Initialize `f' to NULL.
26062 (x_delete_terminal, x_create_terminal): New functions.
26063 (XTset_terminal_modes, XTreset_terminal_modes)
26064 (XTread_socket, x_connection_closed, x_term_init)
26065 (x_term_init, x_delete_display): Add terminal parameter.
26066 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26067 X connections.
26068
26069 * frame.c: Include termchar.h.
26070 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26071 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26072 (Qdisplay_environment_variable): New vars.
26073 (Fframep): Deal with output_initial.
26074 (Fframe-live-p): Doc fix.
26075 (Fwindow-system): New function.
26076 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26077 (make_terminal_frame): Don't create frames on a terminal that is
26078 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26079 (store_frame_param): Check for found_for_frame before calling XFRAME.
26080 (Fmake_terminal_frame): Handle NULL tty names correctly.
26081 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26082 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26083 frames to refer to a deleted frame in their 'environment parameter.
26084 (Fframe_with_environment): New function.
26085 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26086 (get_future_frame_param): New function.
26087 (Fmake_terminal_frame): Use it.
26088 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26089
26090 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26091 * sysdep.c (reset_sys_modes): Update for renames.
26092
26093 * keyboard.c (tty_read_avail_input): New function.
26094 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26095 (syms_of_keyboard): Defsubr them.
26096 (Fset_input_meta_mode, Fset_quit_char): New functions.
26097 (Fset_input_mode): Split to above functions.
26098 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26099 parameter. Use it in call to `read_char'.
26100 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26101 Set wrong_kboard_jmpbuf correctly in recursive calls.
26102 Use current_kboard to access Vkeyboard_translate_table.
26103 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26104 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26105 Update longjmp invocations. Remember the original current_kboard,
26106 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26107 changes it. Comment out unnecessary calls to
26108 `record_single_kboard_state' and `any_kboard_state'.
26109 Update recursive calls.
26110 (wrong_kboard_jmpbuf): Remove global variable.
26111 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26112 Handle deleted interrupted_kboards correctly; that is a legal
26113 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26114 and read_char calls. Abort if interrupted_kboard died in read_char.
26115 (any_kboard_state, single_kboard_state)
26116 (push_frame_kboard): Remove function.
26117 (pop_kboard): Switch out of single_kboard mode if the kboard has
26118 been deleted. Remove unused variable. Help debugging by not
26119 changing current_kboard unnecessarily. Set current_kboard to the
26120 kboard of the selected frame when the stored kboard object has
26121 been deleted before pop_kboard.
26122 (temporarily_switch_to_single_kboard): Change first parameter to a
26123 frame pointer. Throw an error when caller wants to change kboards
26124 while in single_kboard mode. Don't push_kboard if we weren't in
26125 single kboard state. Don't pop_kboard if we popped into any
26126 kboard state.
26127 (restore_kboard_configuration): Abort if pop_kboard changed the
26128 kboard in single_kboard mode. Call pop_kboard only after setting
26129 up single_kboard mode.
26130 (Frecursive_edit): Switch to single_kboard mode only in nested
26131 command loops.
26132 (cmd_error, command_loop, command_loop_1, timer_check):
26133 Comment out unnecessary call to `any_kboard_state' and
26134 `record_single_kboard_state'.
26135 (delete_kboard): Exit single_kboard mode if we have just deleted
26136 that kboard. Use FRAME_KBOARD.
26137 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26138 `fatal_error_signal'.
26139 (record_single_kboard_state): Don't push_kboard if we weren't in
26140 single kboard state. Don't pop_kboard if we popped into any
26141 kboard state.
26142 (push_frame_kboard): Rename to push_kboard.
26143 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26144 (read_avail_input): Read input from all terminals.
26145 (mark_kboards): Also mark Vkeyboard_translate_table.
26146 (kbd_buffer_store_event_hold): Simplify condition.
26147 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26148 (Vkeyboard_translate_table): Move to struct kboard.
26149 (init_kboard): Initialize Vkeyboard_translate_table.
26150 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26151 Vkeyboard_translate_table. Update doc strings. Update docs of
26152 local-function-key-map and function-key-map.
26153
26154 * terminal.c: New file.
26155
26156 * term.c: Include errno.h.
26157 (Vring_bell_function, device_list, initial_device)
26158 (next_device_id, ring_bell, update_begin, update_end)
26159 (set_terminal_window, cursor_to, raw_cursor_to)
26160 (clear_to_end, clear_frame, clear_end_of_line)
26161 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26162 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26163 (syms_of_term): Move their initialization to terminal.c.
26164 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26165 (Ftty_display_color_cells)
26166 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26167 (clear_tty_hooks, set_tty_hooks)
26168 (init_tty, maybe_fatal): New functions.
26169 (Ftty_type): Return nil if terminal is not on a tty instead of
26170 throwing an error. Doc update.
26171 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26172 Doc update. Initialize new subrs and variables.
26173 (delete_tty): Use terminal->deleted.
26174 (tty_set_terminal_modes): Rename from set_terminal_modes.
26175 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26176 (set_scroll_region): Rename to `tty_set_scroll_region'.
26177 (turn_on_insert): Rename to `tty_turn_on_insert'.
26178 (turn_off_insert): Rename to `tty_turn_off_insert'.
26179 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26180 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26181 (toggle_highligh): Rename to `tty_toggle_highlight'.
26182 (background_highlight): Rename to `tty_background_highlight'.
26183 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26184 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26185 (tty_set_scroll_region, tty_background_highlight)
26186 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26187 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26188 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26189 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26190 Add static modifier.
26191 (tty_reset_terminal_modes, tty_set_terminal_window)
26192 (tty_set_scroll_region, tty_background_highlight)
26193 (tty_highlight_if_desired, tty_cursor_to)
26194 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26195 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26196 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26197 renames.
26198
26199 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26200
26201 * keyboard.c: Qrtl is new.
26202 (parse_tool_bar_item): Handle :rtl keyword.
26203 (syms_of_keyboard): Intern :rtl keyword.
26204
26205 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26206
26207 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26208 so no Lisp code is executed.
26209 (file_for_image, find_rtl_image): New functions.
26210 (xg_get_image_for_pixmap): Use file_for_image.
26211 (update_frame_tool_bar): If direction is RTL, use RTL image if
26212 defined. Use Gtk stock images if defined.
26213
26214 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26215
26216 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26217 for nonexistent or zero-width glyph in composition glyph.
26218
26219 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26220
26221 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26222
26223 * xdisp.c (Finvisible_p): New function.
26224 (syms_of_xdisp): defsubr it.
26225
26226 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
26227
26228 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26229 Doc fixes.
26230
26231 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26232
26233 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26234
26235 2007-08-24 Martin Rudalics <rudalics@gmx.at>
26236
26237 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26238 whether decoding has modified buffer contents.
26239
26240 2007-08-24 Jason Rumney <jasonr@gnu.org>
26241
26242 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26243 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26244 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26245 (init_svg_functions) [HAVE_NTGUI]: New function.
26246 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26247 (svg_load_image): Use them.
26248 (svg_load_image) [HAVE_NTGUI]: Implement background.
26249
26250 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26251
26252 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26253 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26254 (LIBX): Remove @RSVG_LIBS@.
26255 (LIBES): Add $(RSVG_LIBS).
26256
26257 * image.c (svg_load_image): Blend with specified background if exists.
26258 Use IMAGE_BACKGROUND. Add Mac OS Support.
26259
26260 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26261 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26262 Remove macros.
26263 [MAC_OSX] (socket_callback): Do nothing.
26264 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26265 ReceiveNextEvent.
26266 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26267 socket_callback.
26268 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26269
26270 2007-08-22 Glenn Morris <rgm@gnu.org>
26271
26272 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26273
26274 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26275
26276 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26277
26278 * image.c: Add support for SVG images. Some additional comments
26279 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26280 (svg_image_p): New function to test for SVG image.
26281 (svg_load): New function to load SVG image.
26282 (svg_load_image): New function, helper for svg_load.
26283 (Qsvg): New Lisp_object.
26284 (svg_keyword_index): New enum.
26285 (svg_format): New static `image_keyword' struct.
26286 (svg_type): New static `image_type' struct.
26287 (librsvg/rsvg.h): Include it.
26288
26289 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26290
26291 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26292
26293 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26294
26295 * lread.c (Qold_style_backquotes): New var.
26296 (syms_of_lread): Init and staticpro it.
26297 (load_warn_old_style_backquotes): New fun.
26298 (Fload): Use them to warn about old style backquotes.
26299 (end_of_file_error, Fload): Remove unused vars.
26300
26301 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26302
26303 * lread.c (Vold_style_backquotes): New var.
26304 (syms_of_lread): Init and export it to Elisp.
26305 (read1): Set it when we find an old-style (back)quote.
26306
26307 2007-08-22 Jason Rumney <jasonr@gnu.org>
26308
26309 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26310
26311 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26312
26313 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26314
26315 2007-08-19 Richard Stallman <rms@gnu.org>
26316
26317 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26318
26319 2007-08-19 Andreas Schwab <schwab@suse.de>
26320
26321 * alloc.c (pure): Round PURESIZE up.
26322
26323 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26324
26325 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26326 active frame.
26327
26328 2007-08-16 Richard Stallman <rms@gnu.org>
26329
26330 * eval.c (Fcommandp): Add parens to clarify.
26331
26332 * minibuf.c (Fall_completions): Use enum for type of table.
26333
26334 * emacs.c (USAGE2): Improve text.
26335
26336 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26337
26338 * term.c (tty_default_color_capabilities): Declare static
26339 variables in file scope, to avoid HPUX compiler problem.
26340
26341 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26342
26343 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26344 to gtk_toolbar_insert.
26345
26346 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26347
26348 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26349
26350 * insdel.c (reset_var_on_error): New fun.
26351 (signal_before_change, signal_after_change):
26352 Use it to reset (after|before)-change-functions to nil in case of error.
26353 Bind inhibit-modification-hooks to t.
26354 Don't bind (after|before)-change-functions to nil while they run.
26355
26356 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26357
26358 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26359 filling pixmap with stippled background.
26360
26361 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26362
26363 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26364 Don't use invisible frame as parent window for repositioning.
26365
26366 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26367
26368 * print.c (new_backquote_output): Rename from old_backquote_output.
26369 (print): Inverse its logic (according to its name) so as to match the
26370 behavior of new_backquote_flag in lread.c.
26371
26372 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26373
26374 * gmalloc.c (posix_memalign): New function.
26375
26376 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26377 ActivateControl/DeactivateControl here.
26378 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26379 frame-notice-user-settings is non-nil.
26380 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26381 for kEventParamFMFontStyle.
26382 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26383 mac_pass_command_to_system and mac_pass_control_to_system here.
26384 (XTread_socket): Call ActivateControl/DeactivateControl here.
26385 (XTread_socket) [TARGET_API_MAC_CARBON]:
26386 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26387 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26388 for window repositioning.
26389
26390 2007-08-08 Glenn Morris <rgm@gnu.org>
26391
26392 * Replace `iff' in doc-strings and comments.
26393
26394 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
26395
26396 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26397
26398 2007-08-07 Martin Rudalics <rudalics@gmx.at>
26399
26400 * fileio.c (Finsert_file_contents): Run format-decode and
26401 after_insert_file_functions on entire buffer when REPLACE is
26402 non-nil and inhibit modification_hooks and point_motion_hooks.
26403 For consistency, run after_insert_file_functions iff something
26404 got inserted. Move signal_after_change and update_compositions
26405 after code running after_insert_file_functions. Make sure that
26406 undo_list doesn't record intermediate steps of the decoding process.
26407
26408 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26409
26410 * emacs.c (main)
26411 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26412 Call malloc_enable_thread on interactive startup.
26413
26414 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26415 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26416 [USE_PTHREAD]: Conditionalize with it.
26417 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26418 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26419 New functions.
26420
26421 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
26422
26423 * xdisp.c (redisplay_window): When restoring original buffer
26424 position, make sure it is still valid.
26425
26426 * image.c (png_load): Ignore png-supplied background color.
26427
26428 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26429
26430 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26431 Use kCFAbsoluteTimeIntervalSince1970.
26432
26433 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26434 New variable.
26435 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26436 event loop should be quit.
26437 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26438 Quit dialog event loop if quit_dialog_event_loop is set.
26439
26440 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26441 (Selection): New typedef. Use instead of ScrapRef.
26442 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26443 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26444 (mac_clear_selection): Rename from clear_scrap.
26445 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26446 scrap_has_target_type. All uses changed.
26447 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26448 (mac_selection_has_target_p): New functions.
26449 (mac_put_selection_value): Rename from put_scrap_string.
26450 (mac_get_selection_value): Rename from get_scrap_string.
26451 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26452 (put_scrap_private_timestamp, scrap_has_target_type)
26453 (get_scrap_private_timestamp): Remove functions.
26454 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26455 (x_own_selection, x_get_local_selection):
26456 Use mac_valid_selection_value_p.
26457 (x_own_selection): Don't use put_scrap_private_timestamp.
26458 Record OWNERSHIP-INFO into Vselection_alist instead.
26459 (x_get_local_selection): Don't check type if request is local.
26460 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26461 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26462
26463 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26464
26465 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26466 add comment explaining why.
26467
26468 2007-08-03 Richard Stallman <rms@gnu.org>
26469
26470 * fileio.c (Fvisited_file_modtime): Use make_time.
26471
26472 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26473
26474 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26475 build.
26476
26477 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26478
26479 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26480
26481 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26482
26483 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26484
26485 2007-07-30 Richard Stallman <rms@gnu.org>
26486
26487 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26488
26489 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26490
26491 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26492
26493 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
26494
26495 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26496 remote default-directory.
26497
26498 * buffer.c (mode-line-format): Update doc string.
26499
26500 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26501
26502 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26503 scroll bar gap.
26504 (x_scroll_bar_create): Set bar->fringe_extended_p.
26505 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26506 on frame edge. Check fringe background extension. Don't clear
26507 extended fringe background area.
26508
26509 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26510 (w32_fill_area): Enclose multiple statements with do ... while (0).
26511
26512 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26513 Extend fringe background to scroll bar gap.
26514 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26515 Set bar->fringe_extended_p.
26516 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26517 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26518 background extension. Don't clear extended fringe background area.
26519
26520 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26521 New member fringe_extended_p.
26522
26523 2007-07-25 Glenn Morris <rgm@gnu.org>
26524
26525 * Relicense all FSF files to GPLv3 or later.
26526
26527 * COPYING: Switch to GPLv3.
26528
26529 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26530
26531 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26532
26533 * data.c (Finteractive_form): Check for the presence of an
26534 `interactive-form' symbol property more thoroughly.
26535
26536 * data.c (Finteractive_form): Use an `interactive-form' property if
26537 present, analogous to the function-documentation property.
26538
26539 2007-07-24 Jason Rumney <jasonr@gnu.org>
26540
26541 * w32fns.c (x_real_positions): Get real position from OS instead of
26542 calculating it.
26543
26544 2007-07-23 Jason Rumney <jasonr@gnu.org>
26545
26546 * filelock.c (current_lock_owner): Allow for @ sign in username.
26547
26548 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
26549
26550 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26551 remote default-directory.
26552
26553 * buffer.c (mode-line-format): Describe above case in doc string.
26554
26555 2007-07-20 Eli Zaretskii <eliz@gnu.org>
26556
26557 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26558 Define if not defined.
26559
26560 2007-07-18 Jason Rumney <jasonr@gnu.org>
26561
26562 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26563
26564 2007-07-18 Richard Stallman <rms@gnu.org>
26565
26566 * data.c (Fsetq_default): Doc fix.
26567
26568 * eval.c (Fsetq): Doc fix.
26569
26570 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
26571
26572 * coding.c (Ffind_operation_coding_system):
26573 * eval.c (For, Fand): Doc fixes.
26574 Reported by Johan Bockgård.
26575
26576 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26577
26578 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26579
26580 * xterm.h: Declare x_ewmh_activate_frame.
26581
26582 * xterm.c (x_ewmh_activate_frame): New function.
26583 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26584
26585 2007-07-17 Martin Rudalics <rudalics@gmx.at>
26586
26587 * window.c (Fdisplay_buffer): If largest or LRU window is the
26588 only window, split it even if it is not eligible for splitting.
26589 This restores the original behavior broken by the 2007-07-15
26590 change.
26591
26592 2007-07-17 Glenn Morris <rgm@gnu.org>
26593
26594 * abbrev.c (abbrev_check_chars): New function.
26595 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26596 Call abbrev_check_chars to check abbrev characters are word
26597 constituents. Doc fix.
26598
26599 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26600
26601 * process.c (Fstart_process, Fmake_network_process)
26602 (read_process_output): Fix up last changes.
26603
26604 2007-07-16 Eli Zaretskii <eliz@gnu.org>
26605
26606 * makefile.w32-in (clean): Don't delete *~.
26607
26608 2007-07-16 Andreas Schwab <schwab@suse.de>
26609
26610 * window.c (Fdisplay_buffer): Use NILP.
26611 (Fset_window_scroll_bars): Likewise.
26612
26613 2007-07-15 Martin Rudalics <rudalics@gmx.at>
26614
26615 * window.c (window_min_size_2): New function.
26616 (window_min_size_1, size_window, Fdisplay_buffer)
26617 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26618 windows without mode- or header-lines when window-min-height is
26619 too small.
26620 (size_window): Reset nodelete_p after testing it, following an
26621 earlier note by Kim F. Storm.
26622 (display_buffer): Do not set split_height_threshold to twice the
26623 value of window_min_height to avoid changing the value of a
26624 customizable variable. Rather explicitly check whether the
26625 height of the window that shall be splitted is at least as large
26626 as split_height_threshold.
26627 (Fwindow_full_width_p): New defun.
26628 (syms_of_window): Defsubr it.
26629
26630 * window.h: Add EXFUN for Fwindow_full_width_p.
26631
26632 2007-07-14 Jason Rumney <jasonr@gnu.org>
26633
26634 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26635
26636 2007-07-14 Richard Stallman <rms@gnu.org>
26637
26638 * eval.c (maybe_call_debugger): New function.
26639 (find_handler_clause): Use maybe_call_debugger.
26640 Call it when the handler says `debug'.
26641 Eliminate DEBUGGER_VALUE_PTR.
26642 (Fsignal): Eliminate debugger_value.
26643 (Qdebug): New variable.
26644 (syms_of_eval): Initialize it.
26645
26646 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
26647
26648 * eval.c (Fprogn):
26649 * keyboard.c (Ftrack_mouse):
26650 * print.c (Fwith_output_to_temp_buffer):
26651 * window.c (Fsave_window_excursion): Doc fix.
26652
26653 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26654
26655 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26656
26657 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26658
26659 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26660 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26661 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26662 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26663 Remove unused encoding_carryover.
26664 * process.c: Adjust all functions accordingly.
26665
26666 2007-07-12 Richard Stallman <rms@gnu.org>
26667
26668 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26669
26670 2007-07-11 Jason Rumney <jasonr@gnu.org>
26671
26672 * makefile.w32-in (LIBS): Include OLE32.
26673
26674 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26675 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26676
26677 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26678
26679 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26680 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26681 from a Lisp_Object into a bare pointer.
26682 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26683 Adjust the code correspondingly.
26684
26685 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26686
26687 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26688 (term_show_mouse_face): Remove unused var `j'.
26689 (handle_one_term_event): Remove unused vars `i' and `j'.
26690 Don't cast return value of ttyname since it's not necessary.
26691
26692 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26693
26694 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26695 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26696
26697 * fns.c (map_char_table): Use an array of int for `indices' rather than
26698 an array of Lisp_Objects (which are only ever integers anyway).
26699 (Fmap_char_table): Update caller.
26700 * lisp.h: Update prototype.
26701 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26702 * fontset.c (Ffontset_info):
26703 * casetab.c (set_case_table): Update callers.
26704
26705 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26706
26707 * keymap.c (struct accessible_keymaps_data)
26708 (struct where_is_internal_data): New structures.
26709 (accessible_keymaps_1, where_is_internal_1): Use them to change
26710 interface to adhere to the one used by map_keymap.
26711 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26712 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26713
26714 * keymap.h (map_keymap_function_t): More informative prototype.
26715
26716 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26717
26718 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26719 (looking_at_1): Don't change search_regs and last_thing_searched
26720 if `inhibit-changing-match-data' is non-nil.
26721 (string_match_1, search_buffer, set_search_regs): Likewise.
26722 (syms_of_search): Add Lisp level definition for
26723 `inhibit-changing-match-data' and set it to nil.
26724 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26725 start and end of the match, instead of using values in search_regs.
26726
26727 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26728
26729 * minibuf.c (Fcompleting_read): New value `confirm-only'
26730 for `require-match'.
26731
26732 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26733
26734 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26735 part of the 2007-06-27 change to syms_of_fileio.
26736
26737 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26738
26739 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26740 Check WINDOWP before using XWINDOW. Consolidate return statements.
26741
26742 2007-06-27 Richard Stallman <rms@gnu.org>
26743
26744 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26745
26746 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26747
26748 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26749
26750 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26751
26752 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26753 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26754 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26755 (_free_internal, memalign): Use them.
26756 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26757 Initialize to PTHREAD_MUTEX_INITIALIZER.
26758 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26759 (morecore_nolock): Rename from morecore. All uses changed.
26760 Use only nolock versions of internal allocation functions.
26761 (_malloc_internal_nolock, _realloc_internal_nolock)
26762 (_free_internal_nolock): New functions created from
26763 _malloc_internal, _realloc_internal, and _free_internal.
26764 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26765 Copy hook value to automatic variable before its use.
26766 (memalign): Copy hook value to automatic variable before its use.
26767
26768 2007-06-26 Kenichi Handa <handa@m17n.org>
26769
26770 * coding.c (Ffind_operation_coding_system): Docstring improved.
26771 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26772
26773 2007-06-25 David Kastrup <dak@gnu.org>
26774
26775 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26776 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26777 cater for additional parameter.
26778
26779 * keymap.h: Adjust number of parameters to `current-active-maps'.
26780
26781 * doc.c (Fsubstitute_command_keys): Adjust call of
26782 `current-active-maps'.
26783
26784 2007-06-25 David Kastrup <dak@gnu.org>
26785
26786 * callint.c (Fcall_interactively): Make the parsing of interactive
26787 specs somewhat more readable.
26788
26789 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26790
26791 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26792 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26793 if extended background has already been filled.
26794
26795 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26796
26797 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26798 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26799
26800 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26801 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26802 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26803 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26804 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26805 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26806 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26807 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26808 Run timers during dialog popup.
26809 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26810
26811 2007-06-21 Jason Rumney <jasonr@gnu.org>
26812
26813 * image.c (convert_mono_to_color_image): Swap fore and background.
26814
26815 2007-06-20 Jason Rumney <jasonr@gnu.org>
26816
26817 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26818 (w32_free_bdf_font): Unmap memory not handle.
26819
26820 2007-06-20 Sam Steingold <sds@gnu.org>
26821
26822 * gmalloc.c (__morecore): Fix the declaration to comply with the
26823 definition.
26824
26825 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26826
26827 * w32term.c (w32_delete_display): Remove leftover declaration.
26828 (w32_define_cursor, w32_initialize): Make static.
26829
26830 * w32.c (_wsa_errlist): Fix typo in error message.
26831 (init_environment): Ignore any environment variable from the
26832 registry having a null value.
26833
26834 2007-06-20 Glenn Morris <rgm@gnu.org>
26835
26836 * Makefile.in (LIBGIF): Default to -lgif.
26837
26838 2007-06-17 Jason Rumney <jasonr@gnu.org>
26839
26840 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26841 unicode strings.
26842
26843 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26844
26845 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26846 Fix typo in docstring.
26847
26848 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26849
26850 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26851 and their keybindings.
26852
26853 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26854
26855 * composite.c (update_compositions): Fix last fix.
26856
26857 2007-06-14 Jason Rumney <jasonr@gnu.org>
26858
26859 * w32.c (get_process_times_fn): New function pointer.
26860 (globals_of_w32): Intialize it if present in kernel32.dll.
26861 (w32_get_internal_run_time): New function.
26862
26863 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26864
26865 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26866
26867 * composite.c (update_compositions): Check the validness of
26868 compositions.
26869
26870 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26871
26872 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26873 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26874
26875 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26876 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26877
26878 * macgui.h (USE_MAC_TOOLBAR): New define.
26879
26880 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26881 Return immediately unless popup is activated.
26882
26883 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26884 background to scroll bar gap.
26885 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26886 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26887 scroll bars on frame edge. Check fringe background extension.
26888 Don't clear extended fringe background area.
26889 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26890 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26891 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26892 [USE_MAC_TOOLBAR]: New macros.
26893 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26894 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26895 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26896 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26897 [USE_MAC_TOOLBAR]: New functions.
26898 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26899 manually if previous repositioning has failed.
26900 (mac_handle_keyboard_event): Use precomputed event kind.
26901 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26902 as tool bar item click. Handle mouse movement over tool bar items.
26903
26904 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26905 toolbar_win_gravity.
26906 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26907 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26908 Add externs.
26909
26910 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26911 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26912
26913 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26914
26915 * image.c (search_image_cache): Remove unused variable.
26916
26917 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26918
26919 * xfns.c, xmenu.c: Link to xaw3d if available.
26920
26921 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26922
26923 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26924 frame_foreground and frame_background.
26925
26926 * image.c (lookup_image): Save frame foreground and background colors.
26927 (search_image_cache): Check if saved and current frame colors match.
26928
26929 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26930
26931 * regex.c (regex_compile): Remove the `regnum' counter.
26932 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26933
26934 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26935
26936 * term.c: Include intervals.h to declare Fget_text_property.
26937
26938 2007-06-10 Jason Rumney <jasonr@gnu.org>
26939
26940 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26941
26942 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26943
26944 * callint.c (Fcall_interactively):
26945 * editfns.c (Fdelete_and_extract_region):
26946 * fileio.c (Fread_file_name):
26947 * fns.c (Fmapconcat):
26948 * keyboard.c (cmd_error_internal):
26949 * keymap.c (Fkey_description):
26950 * lread.c (openp):
26951 * minibuf.c (read_minibuf):
26952 * search.c (wordify):
26953 * sunfns.c (sel_read):
26954 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26955 * xfns.c (x_default_scroll_bar_color_parameter):
26956 * xmenu.c (menu_help_callback):
26957 * xselect.c (Fx_get_atom_name):
26958 * xterm.c (x_term_init): Use empty_unibyte_string.
26959
26960 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26961
26962 * alloc.c (init_strings): Initialize canonical empty strings.
26963 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26964 canonical empty string when the requested size is 0.
26965
26966 * emacs.c (empty_unibyte_string): Rename from empty_string.
26967 (empty_multibyte_string): New canonical empty string.
26968 (syms_of_emacs): Don't initialize empty_string.
26969
26970 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26971 string, if appropriate.
26972 (empty_unibyte_string, empty_multibyte_string): New externs.
26973 (empty_string): Remove extern.
26974
26975 * lread.c (syms_of_lread): Use empty_unibyte_string.
26976
26977 2007-06-07 Jason Rumney <jasonr@gnu.org>
26978
26979 * s/ms-w32.h: Don't define HAVE_TZNAME.
26980
26981 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26982
26983 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26984
26985 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26986
26987 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26988 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26989
26990 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26991 Don't call next handler.
26992 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26993 Remove argument. Install handler to application.
26994 (set_frame_menubar): Don't change deep_p.
26995 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26996 FRAME_OUTER_TO_INNER_DIFF_Y.
26997 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26998 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26999 [HAVE_DIALOGS]: New macros.
27000 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27001 Use them.
27002 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27003
27004 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27005 init_service_handler. All callers changed. Return OSStatus value.
27006
27007 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27008 All callers changed so as not to call SetPortWindowPort.
27009 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27010 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27011 mac_draw_string_common.
27012 (mac_draw_image_string_qd): Likewise.
27013 (mac_draw_string_common): Use them. Add INLINE.
27014 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27015 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27016 GetGlobalMouse.
27017 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27018 and FRAME_OUTER_TO_INNER_DIFF_Y.
27019 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27020 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27021 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27022 repositioning window to mac_handle_window_event.
27023 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27024 saving window location to mac_handle_window_event
27025 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27026 (install_menu_target_item_handler): Remove argument in extern.
27027 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27028 Also accept command events.
27029 (do_keystroke): New function created from XTread_socket.
27030 (init_command_handler): Remove functions.
27031 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27032 and save window location by kEventWindowShowing and kEventWindowHiding
27033 handlers here. Don't call next handler for window state change and
27034 focus events.
27035 (mac_handle_application_event, mac_handle_keyboard_event)
27036 [TARGET_API_MAC_CARBON]: New functions.
27037 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27038 kEventWindowShowing and kEventWindowHiding events. Move installation
27039 of mouse, font, text input and menu target item handlers to
27040 install_application_handler.
27041 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27042 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27043 New function.
27044 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27045 Register it.
27046 (XTread_socket) [TARGET_API_MAC_CARBON]:
27047 Consolidate SendEventToEventTarget calls.
27048 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27049 Move application activation handler to mac_handle_application_event.
27050 Move keyboard handler to mac_handle_keyboard_event.
27051 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27052 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27053 init_command_handler. Call install_application_handler.
27054
27055 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27056 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27057
27058 2007-06-07 Glenn Morris <rgm@gnu.org>
27059
27060 * emacs.c (main): Use `emacs-copyright' in --version output.
27061
27062 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
27063
27064 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27065
27066 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27067
27068 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27069
27070 * macgui.h: Replace WindowPtr with WindowRef.
27071
27072 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27073 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27074 Replace ControlHandle with ControlRef.
27075 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27076
27077 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27078 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27079 Replace ControlHandle with ControlRef.
27080 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27081 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27082
27083 * macterm.h (struct scroll_bar): Rename member control_handle_low
27084 and control_handle_high to control_ref_low and control_ref_high.
27085 All uses changed.
27086 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27087 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27088 respectively. All uses changed.
27089 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27090 (install_window_handler, remove_window_handler): Replace WindowPtr
27091 with WindowRef in externs.
27092
27093 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
27094
27095 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27096
27097 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
27098
27099 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27100
27101 * frame.c (Fmouse_position, Fmouse_pixel_position):
27102 Condition on HAVE_GPM too.
27103
27104 * term.c (term_mouse_highlight): Remove unused variables.
27105 (Fterm_open_connection): Set gpm_zerobased to 1.
27106 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27107 Use zero based co-ordinates.
27108 (handle_one_term_event): Report a drag as mouse movement too.
27109
27110 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27111
27112 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
27113
27114 * image.c (search_image_cache): New function. Require background
27115 color match if background color is unspecified in the image spec.
27116 (uncache_image, lookup_image): Use it.
27117
27118 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
27119
27120 * window.c (Fshrink_window): Reflow docstring.
27121
27122 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
27123
27124 * Version 22.1 released.
27125
27126 2007-06-01 Richard Stallman <rms@gnu.org>
27127
27128 * xfns.c (x_encode_text): Add GCPRO.
27129
27130 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27131
27132 * xfns.c (x_set_name_internal): Save encoded name before
27133 x_encode_text in case string data is relocated.
27134
27135 2007-05-31 Richard Stallman <rms@gnu.org>
27136
27137 * buffer.c (syms_of_buffer): Doc fix.
27138
27139 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
27140
27141 * sysdep.c (init_sys_modes): Add rather than replace with
27142 O_NONBLOCK.
27143
27144 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27145 term_mouse_moveto.
27146
27147 * termhooks.h (term_mouse_moveto): New extern.
27148
27149 * term.c (mouse_face_window): Rename...
27150 (Qmouse_face_window): ...to this.
27151 (term_show_mouse_face, term_clear_mouse_face)
27152 (term_mouse_highlight): Use Qmouse_face_window.
27153 (term_mouse_moveto): New function.
27154 (term_mouse_position): Make it work.
27155 (syms_of_term): Uncomment assignment to mouse_position_hook.
27156 Staticpro Qmouse_face_window.
27157
27158 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27159
27160 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27161 around current_column call.
27162
27163 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27164
27165 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27166 * xdisp.c (next_element_from_buffer):
27167 * window.c (delete_window):
27168 * term.c (term_mouse_highlight):
27169 * msdos.c (getdefdir):
27170 * macterm.c (mac_create_bitmap_from_bitmap_data)
27171 (init_font_name_table):
27172 * fns.c (Fsxhash):
27173 * data.c (Fmake_local_variable):
27174 * ccl.c (ccl_driver): Likewise.
27175
27176 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27177
27178 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27179 Call mac_wakeup_from_rne on window size change.
27180
27181 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
27182
27183 * image.c (uncache_image): Fix typo.
27184
27185 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27186
27187 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27188
27189 2007-05-22 Richard Stallman <rms@gnu.org>
27190
27191 * xterm.c (x_connection_closed): Remove NO_RETURN.
27192
27193 2007-05-22 Martin Rudalics <rudalics@gmx.at>
27194
27195 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27196
27197 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
27198
27199 * image.c (uncache_image): New function.
27200 (Fimage_refresh): New function.
27201
27202 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27203
27204 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27205
27206 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27207
27208 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27209 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27210
27211 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27212
27213 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27214 conditional on [HAVE_GPM_H].
27215
27216 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27217
27218 * syntax.c (skip_chars): Update syntax-table only after we checked that
27219 the new location is valid.
27220
27221 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27222
27223 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27224 mac_get_window_bounds.
27225
27226 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27227
27228 * Makefile.in (LIBGPM): Allow it to be set from configure.
27229 If set then link Emacs with it.
27230
27231 * config.in: Regenerate.
27232
27233 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27234 New externs.
27235
27236 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27237 Include gpm.h.
27238 (handle_one_term_event, term_gpm): New externs.
27239
27240 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27241 and allow it to be interrupted by SIGIO.
27242
27243 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27244 (wait_reading_process_output): Wait on gpm_fd too.
27245 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27246 (add_gpm_wait_descriptor_called_flag): New variable.
27247 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27248
27249 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27250 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27251 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27252 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27253 (make_lispy_event): Add case GPM_CLICK_EVENT.
27254 (read_avail_input): Handle mouse input.
27255
27256 * term.c (write_glyphs_with_face): New function.
27257 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27258 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27259 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27260 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27261 (last_mouse_x, last_mouse_y): New variables.
27262 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27263 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27264 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27265 (Fterm_close_connection): New functions.
27266 (term_init): Initialise mouse_face_window.
27267
27268 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
27269
27270 * xdisp.c (redisplay_window): If first window line is a
27271 continuation line, recompute the new window start instead of
27272 recentering.
27273
27274 2007-05-18 Glenn Morris <rgm@gnu.org>
27275
27276 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27277 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27278
27279 2007-05-17 Glenn Morris <rgm@gnu.org>
27280
27281 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27282
27283 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27284
27285 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27286 dead key repeat and up events.
27287
27288 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
27289
27290 * image.c (pbm_load): Check image size for monochrome pbm.
27291
27292 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
27293
27294 * xterm.c (XTread_socket): Revert last change.
27295
27296 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
27297
27298 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27299
27300 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27301
27302 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27303
27304 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27305 mixup (YAILOM).
27306
27307 2007-05-07 Andreas Schwab <schwab@suse.de>
27308
27309 * keymap.c (Flookup_key): Fix typo in last change.
27310
27311 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27312
27313 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27314 mapping for unibyte strings.
27315
27316 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27317
27318 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27319 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27320
27321 2007-04-29 Richard Stallman <rms@gnu.org>
27322
27323 * insdel.c (replace_range): For undo, record insertion first.
27324
27325 2007-04-29 Andreas Schwab <schwab@suse.de>
27326
27327 * lisp.h (VECSIZE): Use OFFSETOF.
27328
27329 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27330
27331 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27332 disabled lines.
27333
27334 2007-04-28 Richard Stallman <rms@gnu.org>
27335
27336 * lread.c (read_escape): In a string, \s is always space.
27337
27338 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27339
27340 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27341
27342 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27343 submenu for menu bar items.
27344
27345 See ChangeLog.10 for earlier changes.
27346
27347 ;; Local Variables:
27348 ;; coding: utf-8
27349 ;; add-log-time-zone-rule: t
27350 ;; End:
27351
27352 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
27353
27354 This file is part of GNU Emacs.
27355
27356 GNU Emacs is free software: you can redistribute it and/or modify
27357 it under the terms of the GNU General Public License as published by
27358 the Free Software Foundation, either version 3 of the License, or
27359 (at your option) any later version.
27360
27361 GNU Emacs is distributed in the hope that it will be useful,
27362 but WITHOUT ANY WARRANTY; without even the implied warranty of
27363 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27364 GNU General Public License for more details.
27365
27366 You should have received a copy of the GNU General Public License
27367 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27368
27369 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40