]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Fix EMACS_INT/int conversion errors in marker.c.
[gnu-emacs] / src / ChangeLog
1 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * lisp.h: Change the definition of all marker.c functions that
4 take and return buffer stuff to be EMACS_INT instead of int.
5
6 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
7 (buf_charpos_to_bytepos, bytepos_to_charpos)
8 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
9 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
10 for all buffer positions.
11
12 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
13
14 * intervals.c (traverse_intervals, rotate_right, rotate_left)
15 (split_interval_right, find_interval, next_interval)
16 (delete_node, delete_interval, interval_deletion_adjustment)
17 (adjust_intervals_for_deletion, merge_interval_right)
18 (merge_interval_left, graft_intervals_into_buffer)
19 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
20
21 * intervals.h (traverse_intervals): Update prototype.
22
23 2010-09-23 Eli Zaretskii <eliz@gnu.org>
24
25 * indent.c (compute_motion): Use EMACS_INT for arguments to
26 region_cache_forward.
27
28 * region-cache.c (struct boundary, struct region_cache): Use
29 EMACS_INT for positions.
30 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
31 (delete_cache_boundaries, set_cache_region)
32 (invalidate_region_cache, know_region_cache)
33 (region_cache_forward, region_cache_backward, pp_cache): Use
34 EMACS_INT for buffer positions.
35
36 * region-cache.h (know_region_cache, invalidate_region_cache)
37 (region_cache_forward, region_cache_backward): Adjust prototypes.
38
39 * search.c (string_match_1, fast_c_string_match_ignore_case)
40 (looking_at_1, scan_buffer, scan_newline)
41 (find_next_newline_no_quit, find_before_next_newline)
42 (search_command, trivial_regexp_p, search_buffer, simple_search)
43 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
44 and string positions and length.
45
46 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
47 (find_before_next_newline): Adjust prototypes.
48
49 * editfns.c (transpose_markers, update_buffer_properties)
50 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
51 (get_pos_property, Fconstrain_to_field)
52 (Fline_beginning_position, Fline_end_position, Fprevious_char)
53 (Fchar_after, Fchar_before, Finsert_char)
54 (Finsert_buffer_substring, Fcompare_buffer_substrings)
55 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
56 EMACS_INT for buffer and string position variables.
57 (Finsert_char): Protect against too large insertions.
58
59 * lisp.h (clip_to_bounds): Adjust prototype.
60
61 * intervals.c (traverse_intervals, rotate_right, rotate_left)
62 (balance_an_interval, split_interval_right, split_interval_left)
63 (find_interval, next_interval, update_interval)
64 (adjust_intervals_for_insertion, delete_node, delete_interval)
65 (interval_deletion_adjustment, adjust_intervals_for_deletion)
66 (offset_intervals, merge_interval_right, merge_interval_left)
67 (graft_intervals_into_buffer, adjust_for_invis_intang)
68 (move_if_not_intangible, get_local_map, copy_intervals)
69 (copy_intervals_to_string, compare_string_intervals)
70 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
71 and for interval tree size.
72
73 * intervals.h (traverse_intervals, split_interval_right)
74 (split_interval_left, find_interval, offset_intervals)
75 (graft_intervals_into_buffer, copy_intervals)
76 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
77 (update_interval): Adjust prototypes.
78
79 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
80 Use EMACS_INT for buffer position variables and arguments.
81
82 * composite.c (get_composition_id, find_composition)
83 (run_composition_function, compose_text)
84 (composition_gstring_width, autocmp_chars)
85 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
86 for buffer positions and string length variables and arguments.
87
88 * composite.h (get_composition_id, find_composition, compose_text)
89 (composition_gstring_width): Adjust prototypes.
90
91 * editfns.c (Fformat): Use EMACS_INT for string size variables.
92
93 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
94 EMACS_INT for string positions.
95
96 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
97 position arguments.
98
99 * intervals.h (get_property_and_range): Adjust prototype.
100
101 * character.c (parse_str_as_multibyte, str_as_multibyte)
102 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
103 (string_count_byte8, string_escape_byte8, c_string_width)
104 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
105 EMACS_INT for string length variables and arguments.
106
107 * character.h (parse_str_as_multibyte, str_as_multibyte)
108 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
109 (c_string_width, strwidth, lisp_string_width): Adjust
110 prototypes.
111
112 * font.c (font_intern_prop): Use EMACS_INT for string length
113 variables.
114
115 * font.c (font_intern_prop): Use EMACS_INT for string length
116 variables.
117
118 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
119 variables.
120
121 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
122 (Fmake_string): Protect against too large strings.
123 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
124 (live_misc_p): Use ptrdiff_t instead of int for pointer
125 differences.
126 (string_bytes, check_sblock, check_string_free_list)
127 (allocate_string_data, compact_small_strings, Fmake_string)
128 (Fmake_bool_vector, make_string, make_unibyte_string)
129 (make_multibyte_string, make_string_from_bytes)
130 (make_specified_string_string, Fmake_list, Fmake_vector): Use
131 EMACS_INT for string length variables and arguments.
132 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
133 (Fpurecopy): Use EMACS_INT for string size.
134 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
135 for vector size.
136
137 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
138 (make_string_from_bytes, make_specified_string_string)
139 (make_pure_string, string_bytes, check_point_in_composition):
140 Adjust prototypes.
141
142 2010-09-22 Eli Zaretskii <eliz@gnu.org>
143
144 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
145 (check_translation): Use EMACS_INT for buffer positions and
146 length.
147
148 * undo.c (record_marker_adjustment, record_delete)
149 (record_change, record_point, record_insert)
150 (record_property_change, Fprimitive_undo): Use EMACS_INT for
151 buffer positions.
152
153 * lisp.h (record_marker_adjustment, record_delete)
154 (record_change, record_point, record_insert)
155 (record_property_change, Fprimitive_undo): Adjust prototypes.
156
157 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
158 Eli Zaretskii <eliz@gnu.org>
159
160 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
161
162 2010-09-22 Eli Zaretskii <eliz@gnu.org>
163
164 * minibuf.c (Fminibuffer_contents)
165 (Fminibuffer_contents_no_properties)
166 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
167 positions.
168
169 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
170 mark.
171
172 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
173 (allocate_string_data): Accept EMACS_INT for string length.
174
175 * editfns.c (Ffield_string, Ffield_string_no_properties)
176 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
177 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
178 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
179 (Ffield_end): Use EMACS_INT for buffer positions.
180
181 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
182 point with mark.
183
184 * lisp.h (allocate_string_data, make_uninit_string)
185 (make_uninit_multibyte_string, make_buffer_string)
186 (make_buffer_string_both): Adjust prototypes.
187
188 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
189
190 * xml.c: Switch to GNU indentation.
191 (make_dom): Change parse tree format to match xml.el.
192 (Fxml_parse_html_string_internal): Rename from html-parse-string.
193 (Fxml_parse_string_internal): Rename from xml-parse-string.
194
195 2010-09-22 Kenichi Handa <handa@m17n.org>
196
197 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
198 only if we are not at a composition.
199 (set_iterator_to_next): Give it->end_charpos to
200 composition_compute_stop_pos.
201 (set_iterator_to_next, next_element_from_buffer): Likewise.
202
203 * dispnew.c (buffer_posn_from_coords): Fix position when the
204 current display element is a grapheme cluster in bidi-reordered
205 region.
206
207 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
208
209 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
210 the regions may overlap.
211
212 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
213
214 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
215
216 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
217
218 * emacs.c: Do not include sys/ioctl.h, not needed.
219
220 * doprnt.c: Do not include stdlib.h, config.h does it.
221 Move #include before macro definition.
222
223 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
224
225 * Makefile.in (temacs): Link using $(CC) not $(LD).
226 (LD_FIRSTFLAG): Define using autoconf.
227 (LD): Remove.
228
229 Remove HAVE_TERMIOS definitions.
230 * s/usg5-4-common.h (HAVE_TERMIOS):
231 * s/template.h (HAVE_TERMIOS):
232 * s/gnu-linux.h (HAVE_TERMIOS):
233 * s/darwin.h (HAVE_TERMIOS):
234 * s/cygwin.h (HAVE_TERMIOS):
235 * s/bsd-common.h (HAVE_TERMIOS):
236 * s/aix4-2.h (HAVE_TERMIOS):
237 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
238 defined on all non-MS platforms.
239 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
240
241 * xterm.c (xt_action_hook): Use const.
242
243 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
244
245 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
246 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
247 (gethostname) [!HAVE_SOCKETS]: Remove.
248 (SOCK_REPLACE_HANDLE): Remove macro.
249 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
250 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
251 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
252 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
253
254 2010-09-18 Eli Zaretskii <eliz@gnu.org>
255
256 * deps.mk (xml.o): Add dependencies.
257
258 * xdisp.c (Fcurrent_bidi_paragraph_direction):
259 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
260
261 * bidi.c (bidi_paragraph_init): Accept an additional argument
262 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
263 search back until a paragraph with a strong directional character
264 is found, and use that to determine paragraph's base direction.
265
266 * dispextern.h (bidi_paragraph_init): Update prototype.
267
268 2010-09-17 Eli Zaretskii <eliz@gnu.org>
269
270 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
271 of w32api >= 3.15. (Bug#6989)
272
273 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
274
275 * process.c (wait_reading_process_output): Don't message about
276 accept-process-output unless the time limit really is zero.
277
278 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
279
280 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
281 int/Lisp_Object mixup).
282
283 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
284
285 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
286 not HELP.
287
288 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
289
290 * frame.c (Ftool_bar_pixel_width): New function to expose tool
291 bar's pixel width to Lisp (Bug#7048).
292
293 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
294
295 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
296
297 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
298
299 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
300 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
301
302 2010-09-17 Kenichi Handa <handa@m17n.org>
303
304 * ftfont.c (ftfont_check_otf): Fix previous change.
305
306 2010-09-14 Kenichi Handa <handa@m17n.org>
307
308 * ftfont.c (ftfont_check_otf): Fix the case of checking just
309 existence of GSUB or GPOS.
310
311 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
312
313 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
314
315 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
316
317 * xml.c (parse_buffer): Renamed to parse_string(), since that's
318 what it does.
319 (parse_string): Return nil when the document can't be parsed.
320
321 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
322
323 * xterm.c (get_current_vm_state): New function.
324 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
325 want_fullscreen so set_wm_state calls are few (Bug#7013).
326 (x_handle_net_wm_state): Move code to get_current_vm_state and
327 call that function.
328
329 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
330
331 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
332
333 2010-09-14 Kenichi Handa <handa@m17n.org>
334
335 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
336 we may use designation or locking-shift.
337
338 2010-09-14 Kenichi Handa <handa@m17n.org>
339
340 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
341 sequence when the source is multibyte.
342
343 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
344
345 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
346 Don't make first argument optional. Doc fix.
347
348 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
349
350 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
351 parameters for the doc string.
352
353 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
354
355 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
356
357 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
358
359 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
360 (syms_of_fns): Don't defsubr Sy_or_n_p.
361 * lisp.h: Don't declare Fy_or_n_p.
362 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
363
364 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
365
366 * xml.c (Fxml_parse_buffer): New function to parse XML files.
367
368 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
369
370 * xml.c: New file.
371 (Fhtml_parse_buffer): New function to interface to the libxml2
372 html parsing function.
373
374 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
375
376 * biditype.h: Regenerate.
377
378 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
379
380 * nsimage.m (ns_load_image): Check argument types.
381
382 * image.c: Remove all uses of gcpro.
383 (xpm_load): Check all lisp types.
384 (pbm_load): Likewise.
385 (png_load): Likewise.
386 (jpeg_load): Likewise.
387 (tiff_load): Likewise.
388 (gif_load): Likewise.
389 (imagemagick_load_image): Likewise.
390 (imagemagick_load): Likewise.
391 (svg_load): Likewise.
392 (gs_load): Likewise.
393
394 2010-09-04 Eli Zaretskii <eliz@gnu.org>
395
396 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
397 try to reorder grapheme clusters, since LGSTRING should always
398 hold them in the logical order.
399 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
400 return glyph codes in the logical order.
401
402 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
403
404 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
405 (imagemagick_load_image): Fix type mismatch.
406 (Fimagemagick_types): Likewise. Doc fix.
407
408 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
409
410 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
411
412 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
413
414 * xselect.c: Remove declaration of cut-buffer objects and functions.
415 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
416 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
417 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
418 (Fx_rotate_cut_buffers_internal): Remove.
419 (syms_of_xselect): Remove defsubr of above.
420 Remove intern of QCUT_BUFFERn.
421
422 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
423
424 * cmds.c (Vblink_paren_function): Remove.
425 (internal_self_insert): Make it insert N chars at a time.
426 Don't call blink-paren-function.
427 (Fself_insert_command): Adjust accordingly.
428 (syms_of_cmds): Don't declare blink-paren-function.
429
430 2010-08-31 Kenichi Handa <handa@m17n.org>
431
432 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
433 characters.
434
435 * term.c (encode_terminal_code): Fix the previous change.
436 (produce_glyphs): Don't set it->char_to_display here.
437 Don't handle unibyte-display-via-language-environment here.
438 (produce_special_glyphs): Set temp_it.char_to_display before
439 calling produce_glyphs.
440
441 * xdisp.c (get_next_display_element): Set it->char_to_display
442 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
443 characters.
444 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
445 calling PRODUCE_GLYPHS.
446 (append_space_for_newline): Save and store it->char_to_display.
447 Set it->char_to_display before calling PRODUCE_GLYPHS.
448 (extend_face_to_end_of_line): Set it->char_to_display before
449 calling PRODUCE_GLYPHS.
450 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
451 character to its byte value.
452 (get_char_glyph_code): New function.
453 (produce_stretch_glyph): Set it2.char_to_display too before
454 calling x_produce_glyphs.
455 (x_produce_glyphs): Simplify by using the same code for ASCII and
456 non-ASCII characters. Don't set it->char_to_display here.
457 Don't handle unibyte-display-via-language-environment here. For a
458 character of no glyph, use font->space_width instead of FONT_WIDTH.
459
460 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
461
462 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
463
464 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
465
466 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
467
468 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
469
470 * marker.c (Fcopy_marker): Make the first arg optional.
471
472 2010-08-30 Kenichi Handa <handa@m17n.org>
473
474 * composite.c (composition_update_it): Fix computing of
475 cmp_it->width.
476
477 2010-08-29 Kenichi Handa <handa@m17n.org>
478
479 * term.c (encode_terminal_code): Encode byte chars to the
480 corresponding bytes.
481
482 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
483
484 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
485
486 2010-08-26 Kenichi Handa <handa@m17n.org>
487
488 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
489 on calling composition_compute_stop_pos.
490
491 2010-08-25 Kenichi Handa <handa@m17n.org>
492
493 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
494 :otf.
495
496 * composite.c (composition_compute_stop_pos): Don't break
497 composition at PT.
498 (composition_reseat_it): Likewise. Fix calculation of character
499 position starting a composition.
500 (Fcomposition_get_gstring): Don't limit the number of components
501 for automatic composition.
502
503 2010-08-25 Kenichi Handa <handa@m17n.org>
504
505 * composite.c (composition_compute_stop_pos): In forward search,
506 pay attention to the possibility that some character after ENDPOS
507 will be composed with charactrs before ENDPOS.
508
509 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
510
511 * keyboard.c (command_loop_1): Don't clobber primary selection
512 during handle-switch-frame (Bug#6872).
513
514 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
515
516 * dbusbind.c: Accept UNIX domain sockets as bus address.
517 (Fdbus_close_bus): New function.
518 (Vdbus_registered_buses): New variable.
519 (xd_initialize): Implement string as bus address.
520 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
521 (Fdbus_get_unique_name, Fdbus_call_method)
522 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
523 (Fdbus_method_error_internal, Fdbus_send_signal)
524 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
525 check. This is done in xd_initialize_bus. Adapt doc string, if
526 necessary.
527 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
528 Vdbus_registered_buses.
529 (Vdbus_registered_objects_table): Create hash.
530
531 2010-08-22 Juri Linkov <juri@jurta.org>
532
533 * keyboard.c (Fexecute_extended_command): Move reading a command name
534 with `completing-read' to a new Elisp function `read-extended-command'.
535 Call it to read a command to `function' (bug#5364, bug#5214).
536
537 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
538
539 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
540
541 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
542
543 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
544 instead of SAFE_ALLOCA.
545
546 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
547
548 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
549 (Bug#6214).
550
551 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
552
553 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
554
555 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
556
557 * doc.c (Fsnarf_documentation): Initialize skip_file before
558 build-files test.
559
560 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
561
562 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
563 New definitions.
564 (HAVE_TERMIO): Remove.
565
566 2010-08-22 Eli Zaretskii <eliz@gnu.org>
567
568 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
569
570 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
571 for w32.
572
573 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
574 it's done in nt/config.nt.
575
576 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
577
578 * unexcoff.c (report_error, make_hdr, write_segment)
579 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
580 Convert argument lists and prototypes to ANSI C.
581 (make_hdr, write_segment): Remove unused variables.
582 (unexec): Remove commented-out line. Initialize `new' to shut up
583 compiler warnings.
584
585 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
586
587 Simplify termio code.
588 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
589 HAVE_TERMIO code is obsolete.
590 Replace HAVE_TERMIOS conditionals with !DOS_NT.
591 * systty.h: Do not define HAVE_TCATTR.
592 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
593 Do not define EMACS_HAVE_TTY_PGRP. Only define
594 EMACS_GET_TTY_PGRP for !DOS_NT.
595 * sysdep.c: Include sysselect.h unconditionally. Do not include
596 sys/ioctl.h and termios.h, systty.h does it. Use
597 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
598 (init_baud_rate): Remove HAVE_TERMIO code.
599 (child_setup_tty): Remove HAVE_TERMIO code.
600 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
601 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
602 (new_ltchars, new_tchars): Remove, unused.
603 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
604 code. Remove special casing for __mips__, it was a no-op. Remove
605 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
606 (init_sys_modes): Remove HPUX special case.
607 * process.c: Include stdlib.h unconditionally. Do not include
608 fcntl.h, systty.h does it. Remove conditional code for
609 HAVE_SERIAL, it is always true.
610 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
611 always true when SIGNALS_VIA_CHARACTERS is true.
612 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
613 !WINDOWSNT means HAVE_TERMIOS.
614 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
615 conditional, which is true for all HAVE_TERMIOS systems.
616 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
617 instead of HAVE_TERMIOS.
618 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
619 EMACS_HAVE_TTY_PGRP.
620 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
621 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
622 anyway.
623
624 2010-08-21 Eli Zaretskii <eliz@gnu.org>
625
626 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
627 mirroring pixel positions.
628
629 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
630
631 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
632 write only.
633 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
634 malloc_sbrk_used, nothing uses them.
635
636 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
637 defined, unconditionally defined in lisp.h.
638
639 * term.c: Do not include <termios.h>, systty.h does it.
640
641 * s/unixware.h (HAVE_TCATTR):
642 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
643 systty.h defines it when HAVE_TERMIOS is defined.
644
645 2010-08-20 Eli Zaretskii <eliz@gnu.org>
646
647 * dispnew.c (buffer_posn_from_coords): Fix last change for text
648 terminals: add one-character offset for R2L lines.
649
650 * emacs.c <emacs_version>: Add a comment regarding
651 msdos/mainmake.v2's dependency on the syntax of this declaration.
652
653 2010-08-20 Eli Zaretskii <eliz@gnu.org>
654
655 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
656 position for R2L lines by mirroring the pixel position wrt the
657 text are box. Improve commentary.
658
659 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
660
661 * image.c (imagemagick_clear_image): Remove debugging output.
662
663 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
664
665 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
666 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
667 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
668 self-insert-face.
669 (syms_of_cmds): Initialize the new vars.
670
671 2010-08-19 Jason Rumney <jasonr@gnu.org>
672
673 * w32menu.c (set_frame_menubar): Remove call to undefined function.
674
675 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
676
677 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
678
679 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
680
681 2010-08-18 Eli Zaretskii <eliz@gnu.org>
682
683 * xterm.c (x_draw_bar_cursor):
684 * w32term.c (x_draw_bar_cursor): If the character under cursor is
685 R2L, draw the bar cursor on its right rather than on its left.
686
687 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
688
689 * eval.c (Fdefmacro): Only obey one declaration.
690
691 * casefiddle.c (casify_region): Setup gl_state.
692
693 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
694
695 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
696
697 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
698
699 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
700
701 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
702
703 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
704 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
705 QPRIMARY => NXPrimaryPboard.
706 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
707 NXPrimaryPboard => QPRIMARY.
708 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
709 NXSecondaryPboard = SecondarySelection.
710 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
711
712 2010-08-18 Joakim Verona <joakim@verona.se>
713
714 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
715 defined:
716 (imagemagick_image_p): New function to test for ImageMagic image.
717 (imagemagick_load): New function to load ImageMagick image.
718 (imagemagick_load_image): New function, helper for imagemagick_load.
719 (imagemagick-types): New function.
720 (Qimagemagick): New Lisp_object.
721 (imagemagick-render-type): New variable, decides which renderer to use.
722
723 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
724
725 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
726 is a string.
727
728 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
729
730 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
731 x_set_tool_bar_position handler.
732
733 2010-08-17 Eli Zaretskii <eliz@gnu.org>
734
735 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
736 x_set_tool_bar_position handler, needed to support changes from
737 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
738
739 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
740
741 * nsselect.m: include keyboard.h for QPRIMARY, remove its
742 declaration (Bug#6863).
743 (syms_of_nsselect): Don't intern QPRIMARY.
744
745 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
746
747 * keyboard.h (QPRIMARY): Declare (Bug#6864).
748
749 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
750
751 * keyboard.c (command_loop_1): Avoid setting selection twice,
752 since it's done in deactivate-mark as well.
753 (Vselect_active_regions): Change default to t. Replace `lazy'
754 with non-default value `only', meaning only set PRIMARY for
755 temporarily active regions.
756
757 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
758 select-active-regions.
759
760 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
761
762 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
763 isn't a string.
764
765 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
766
767 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
768
769 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
770
771 * keyboard.c (parse_tool_bar_item): malloc buf.
772 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
773 new_lbl (Bug#6855).
774
775 2010-08-14 Eli Zaretskii <eliz@gnu.org>
776
777 * xterm.c (x_draw_stretch_glyph_string):
778 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
779 the cursor on the right edge of the stretch glyph.
780
781 * xdisp.c (window_box_right_offset, window_box_right):
782 Fix commentary.
783
784 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
785 direction when point is inside a run of whitespace characters.
786
787 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
788
789 2010-08-14 Jason Rumney <jasonr@gnu.org>
790
791 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
792
793 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
794
795 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
796
797 2010-08-13 Jason Rumney <jasonr@gnu.org>
798
799 * w32menu.c (simple_dialog_show): Use unicode message box if available.
800 (MessageBoxW_Proc): New function typedef.
801 (unicode-message-box): New function pointer.
802 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
803
804 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
805
806 * frame.h (Qtool_bar_position): Declare.
807
808 * xfns.c (Fx_create_frame): Call x_default_parameter for
809 Qtool_bar_position.
810
811 2010-08-13 Eli Zaretskii <eliz@gnu.org>
812
813 * unexcoff.c: Remove the parts used when "emacs" is not defined.
814 (report_error, report_error_1): Ditto.
815 (write_segment): Remove "#if 0" unused code.
816 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
817 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
818 (start_of_text): Remove unused function (was used only if NO_REMAP
819 was NOT defined).
820
821 * msdos.c (IT_set_face): Fix format string to match argument
822 types.
823 (IT_write_glyphs, IT_note_mode_line_highlight)
824 (IT_set_frame_parameters): Remove unused variables.
825 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
826 (IT_set_terminal_modes): Disambiguate expression in if clause.
827 (Fmsdos_remember_default_colors): Return Qnil.
828 (IT_set_frame_parameters): Add parens to disambiguate boolean
829 expression for logging the cursor type to termscript.
830 (keyboard_layout_list, keypad_translate_map)
831 (grey_key_translate_map): Add braces in inner initializers.
832 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
833 (dos_rawgetc): Remove unused label.
834 (XMenuActivate): Add braces to remove ambiguous `else'.
835 (dos_ttraw): Always return a value.
836 (spawnve): Declare.
837 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
838
839 * dosfns.h (x_set_title): Declare.
840
841 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
842 Remove unused variables.
843
844 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
845 variables.
846 (init_dosfns): Declare get_lim_data.
847 (system_process_attributes): Declare Fget_internal_run_time.
848
849 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
850 list to be consistent with menu.h.
851
852 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
853 warnings due to mixing of "char *" and "const char *".
854
855 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
856
857 Introduce a new comment style "c" flag.
858 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
859 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
860 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
861 (syntax_prefix_flag_p): New function.
862 (Fstring_to_syntax): Understand new "c" flag.
863 (Finternal_describe_syntax_value): Recognize new flag; use the
864 SYNTAX_FLAGS_* macros.
865 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
866 comment style to accomodate the new styles.
867 (back_comment, forw_comment, Fforward_comment, scan_lists)
868 (scan_sexps_forward): Update code to obey the new comment style flag.
869
870 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
871
872 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
873
874 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
875
876 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
877 first.
878 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
879
880 * gtkutil.h (xg_check_special_colors): Declare.
881
882 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
883 (xg_create_frame_widgets): Connect theme name changes to
884 style_changed_cb.
885
886 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
887 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
888 (x_term_init): Use char[] display_opt and name_opt instead of
889 string literal. file is const char*.
890
891 * xsmfns.c (NOSPLASH_OPT): Change to char[].
892 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
893 props. Free them at the end.
894
895 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
896
897 * xrdb.c (get_system_app): Make path const and use char *p for
898 non-const char.
899
900 * xmenu.c (Fx_popup_dialog): error_name is const char*.
901 (xmenu_show): error parameter is const char **. pane_string is const
902 char *.
903 (button_names): Is const char *.
904 (xdialog_show): error_name and pane_string is const.
905
906 * process.h (synch_process_death): Is const char*.
907
908 * w32menu.c (w32_menu_show):
909 * nsmenu.m (ns_menu_show): error parameter is const char **.
910
911 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
912 is const char **.
913
914 * menu.c (Fx_popup_menu): error_name is const.
915
916 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
917 with unsigned char and XtPointer with void *.
918
919 * gtkutil.h: Replace widget_value with struct _widget_value.
920 (enum button_type, struct _widget_value): Remove and use the one from
921 keyboard.h.
922
923 * gtkutil.c (get_utf8_string): Always return an allocated string.
924 Parameter is const.
925 (create_dialog, xg_create_one_menuitem, create_menus)
926 (xg_item_label_same_p, xg_update_menu_item): Free result from
927 get_utf8_string.
928 (xg_separator_p, xg_item_label_same_p): label is const.
929
930 * font.h (font_open_by_name): Make name const.
931
932 * font.c (font_open_by_name): Make name const.
933
934 * floatfns.c (matherr): Use a const char* variable for x->name.
935
936 * emacs.c (main): Pass char[] to putenv instead of literal.
937
938 * callproc.c (synch_process_death): Make const.
939 (Fcall_process): Make signame const.
940
941 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
942 (addDisplayItemWithImage): Use const char*.
943
944 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
945 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
946
947 * nsfont.m (ns_descriptor_to_entity): Use const char*.
948
949 * keyboard.h (_widget_value): name, value and key are const char*.
950
951 * unexmacosx.c (unexec_error): Use const char *.
952
953 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
954
955 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
956 (font_parse_name, font_open_by_name):
957 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
958 (font_parse_name, font_open_by_name): Remove const.
959
960 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
961
962 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
963 definition.
964
965 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
966 * m/amdx86-64.h: Likewise.
967 * m/arm.h: Likewise.
968 * m/hp800.h: Likewise.
969 * m/ia64.h: Likewise.
970 * m/ibmrs6000.h: Likewise.
971 * m/ibms390.h: Likewise.
972 * m/intel386.h: Likewise.
973 * m/iris4d.h: Likewise.
974 * m/m68k.h: Likewise.
975 * m/macppc.h: Likewise.
976 * m/mips.h: Likewise.
977 * m/sh3.h: Likewise.
978 * m/sparc.h: Likewise.
979 * m/template.h: Likewise.
980 * m/vax.h: Likewise.
981 * m/xtensa.h: Likewise.
982 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
983 WORDS_BIG_ENDIAN.
984 * lisp.h: Likewise.
985 * md5.c: Likewise.
986 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
987
988 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
989
990 Use const char* instead of char*.
991 Reduce the number of warnings with -Wwrite-strings.
992 * xrdb.c (get_environ_db, get_system_name):
993 * unexelf.c (find_section):
994 * term.c (string_cost, string_cost_one_line, per_line_cost)
995 (get_named_tty, init_tty):
996 * sysdep.c (sys_subshell):
997 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
998 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
999 * search.c (Freplace_match):
1000 * process.c (Fmake_network_process, send_process, init_process):
1001 * lread.c (Fload, init_lread):
1002 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1003 * keyboard.c (parse_tool_bar_item, struct event_head):
1004 * gtkutil.h (xg_get_font_name):
1005 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1006 (make_widget_for_menu_item, make_menu_item, create_menus)
1007 (xg_make_tool_item):
1008 * font.c (parse_matrix, font_parse_name):
1009 * floatfns.c (rounding_driver, float_error_fn_name):
1010 * filelock.c (get_boot_time_1, lock_file_1):
1011 * fileio.c (barf_or_query_if_file_exists, check_writable):
1012 * editfns.c (get_system_name, get_operating_system_release)
1013 (Fencode_time, Fset_time_zone_rule):
1014 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1015 * buffer.c (defvar_per_buffer): Use const.
1016
1017 2010-08-08 Kenichi Handa <handa@m17n.org>
1018
1019 * charset.c: Include <stdlib.h>.
1020 (struct charset_sort_data): New struct.
1021 (charset_compare): New function.
1022 (Fsort_charsets): New function.
1023 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1024
1025 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1026 number in CTEXT extended segment.
1027
1028 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1029
1030 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1031 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1032
1033 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1034
1035 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1036 (Fhash_table_size): Fix typos in docstrings.
1037 (Fmake_hash_table): Doc fix.
1038
1039 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1040
1041 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1042 Doc fix (bug#5625).
1043
1044 2010-08-08 Ken Brown <kbrown@cornell.edu>
1045
1046 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1047 the MSDOS definition.
1048
1049 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1050
1051 Use const char* instead of char*.
1052 * xterm.c (x_create_toolkit_scroll_bar):
1053 * xfont.c (xfont_list_pattern):
1054 * xfns.c (x_default_scroll_bar_color_parameter)
1055 (xic_create_fontsetname, x_default_font_parameter)
1056 (x_screen_planes):
1057 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1058 (store_mode_line_string, decode_mode_spec, display_string):
1059 * menu.c (digest_single_submenu):
1060 * keymap.h (initial_define_key, initial_define_lispy_key):
1061 * keymap.c (initial_define_key, initial_define_lispy_key):
1062 * image.c (image_error, image_keyword):
1063 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1064 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1065 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1066 (ftfont_list, ftfont_match):
1067 * frame.c (frame_parm_table):
1068 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1069 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1070 (font_add_log, font_deferred_log):
1071 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1072 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1073 (font_add_log, font_deferred_log):
1074 * emacs.c (argmatch):
1075 * dispextern.h (struct it):
1076 * coding.c (ENCODE_DESIGNATION):
1077 * charset.c (define_charset_internal): Use const.
1078
1079 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1080
1081 * xrdb.c: Remove include guard.
1082 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1083 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1084 realloc->xrealloc instead of using #defines.
1085
1086 2010-08-08 Eli Zaretskii <eliz@gnu.org>
1087
1088 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
1089 * editfns.c (Fline_beginning_position, Fline_end_position):
1090 State in the doc strings that start and end of line are in the
1091 logical order.
1092
1093 * xdisp.c (display_line): Move the handling of overlay arrow after
1094 the call to find_row_edges. (Bug#6699)
1095
1096 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1097
1098 * keyboard.c (command_loop_1):
1099 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1100
1101 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1102
1103 * insdel.c (prepare_to_modify_buffer): Save active region text to
1104 Vsaved_region_selection.
1105
1106 * xselect.c (QPRIMARY): Move to keyboard.c.
1107
1108 * keyboard.c (Vselect_active_regions): Move from simple.el.
1109 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1110 (command_loop_1): Set window selection prior to deactivating the mark.
1111
1112 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
1113
1114 * alloc.c (lisp_malloc):
1115 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1116 * charset.h (emacs_mule_charset):
1117 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1118 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1119 (bitch_at_user):
1120 * lisp.h (Fcheck_coding_system, Fget_text_property)
1121 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1122 Remove duplicate declarations.
1123
1124 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1125
1126 * process.c: Simplify include logic.
1127
1128 * keyboard.h (quit_char): Add declaration.
1129 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
1130 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1131 Add declarations.
1132 * sysdep.c:
1133 * w32.c: Remove the above declarations.
1134
1135 Remove extern declarations in .c files, .h files have them.
1136 * xterm.c:
1137 * xdisp.c:
1138 * msdos.c:
1139 * image.c:
1140 * gtkutil.c:
1141 * fileio.c:
1142 * eval.c: Remove declarations.
1143
1144 * frame.c (frame_params): Make const.
1145
1146 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1147
1148 * emacs.c (emacs_copyright, emacs_version): Make static.
1149 (Vinitial_window_system, Vauto_save_list_file_name)
1150 (Vinhibit_redisplay): Remove declarations.
1151 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1152 for AIX.
1153
1154 Use const for some arrays and functions.
1155 * xterm.h (xg_set_icon_from_xpm_data):
1156 * xfns.c (xg_set_icon_from_xpm_data):
1157 * term.c (fkeys):
1158 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1159 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1160 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1161 (frame.c frame_parms):
1162 * emacs-icon.h (gnu_xpm_bits):
1163 * callint.c (callint_argfuns): Use const.
1164
1165 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1166
1167 * sysdep.c: Move include term.h last of includes (Bug#6812).
1168
1169 2010-08-06 Eli Zaretskii <eliz@gnu.org>
1170
1171 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1172
1173 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1174
1175 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1176
1177 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1178
1179 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1180
1181 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1182
1183 * xterm.h (x_get_focus_frame): Declare.
1184
1185 * keyboard.h (poll_for_input_1): Unconditionally declare.
1186
1187 * nsterm.h (x_set_menu_bar_lines): Declare.
1188
1189 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1190
1191 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1192
1193 * window.c: Include menu.h.
1194
1195 * unexmacosx.c (print_region_list, print_regions)
1196 (build_region_list, find_emacs_zone_regions)
1197 (unexec_regions_merge, read_load_commands, dump_it)
1198 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1199
1200 * term.c: Check HAVE_SYS_IOCTL_H.
1201
1202 * sysdep.c: Check HAVE_TERM_H.
1203
1204 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
1205
1206 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1207 (ns_ring_bell, ns_defined_color, hide_hourglass)
1208 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1209 Convert to ANSI C prototypes.
1210 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1211 before code.
1212
1213 * nsterm.h : Include sysselect.h.
1214 (x_sync, x_get_focus_frame, x_set_mouse_position)
1215 (x_set_mouse_pixel_position, x_make_frame_visible)
1216 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1217 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1218 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1219 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
1220 Declare.
1221
1222 * nsmenu.m (popup_activated, name_is_separator)
1223 (syms_of_nsmenu): Convert to ANSI C prototypes.
1224 (runMenuAt): Prototypes and move declarations before code.
1225
1226 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1227
1228 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1229 prototypes.
1230
1231 * nsfns.m (have_menus_p, ns_display_info_for_name)
1232 (x_set_cursor_type, ns_appkit_version_str)
1233 (ns_appkit_version_int, ns_do_applescript)
1234 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1235 (syms_of_nsfns): Convert to ANSI C prototypes.
1236
1237 * menu.h (x_set_menu_bar_line): Declare.
1238 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1239
1240 * lisp.h (fmod_float): Declare.
1241
1242 * image.c (xpm_scan, xpm_make_color_table_v)
1243 (xpm_put_color_table_v, xpm_get_color_table_v)
1244 (xpm_make_color_table_h, xpm_put_color_table_h)
1245 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1246 (xpm_load): Convert to ANSI C prototypes.
1247
1248 * emacs.c: Include nsterm.h if HAVE_NS.
1249
1250 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1251
1252 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1253
1254 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1255 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1256 (socket_options): Use const char* for name.
1257
1258 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1259
1260 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1261
1262 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1263 Don't declare xmalloc_widget_value and digest_single_submenu.
1264
1265 * w32font.c (Qlatin): Remove declaration.
1266
1267 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1268
1269 * dired.c (compile_pattern): Restore declaration.
1270
1271 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1272
1273 Remove extern declarations in .c files, .h files have them.
1274 * data.c:
1275 * dired.c:
1276 * editfns.c:
1277 * filelock.c:
1278 * fns.c:
1279 * font.c:
1280 * fontset.c:
1281 * frame.c:
1282 * fringe.c:
1283 * ftfont.c:
1284 * gtkutil.c:
1285 * indent.c:
1286 * keyboard.c:
1287 * keymap.c:
1288 * lread.c:
1289 * menu.c:
1290 * print.c:
1291 * search.c:
1292 * sound.c:
1293 * window.c:
1294 * xdisp.c:
1295 * xfaces.c:
1296 * xfns.c:
1297 * xfont.c:
1298 * xftfont.c:
1299 * xmenu.c:
1300 * xterm.c: Remove declarations.
1301
1302 Cleanup syssignal.h.
1303 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1304 (main_thread): Move down to remove #ifdef.
1305 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1306 Remove conditional definition following unconditional ones.
1307
1308 * lisp.h: Remove HAVE_SHM code, unused.
1309 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1310 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1311 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1312 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1313 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1314 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1315 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1316 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1317 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1318 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1319 (Qwindow_scroll_functions, Vafter_load_alist)
1320 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1321 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1322 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1323 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1324 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1325 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1326 (initial_argv, last_nonmenu_event, load_in_progress)
1327 (noninteractive_need_newline, scroll_margin): Add declarations.
1328
1329 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1330 declarations, menu.h has them.
1331 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1332 (Vinput_method_function, Qinput_method_function)
1333 (Qevent_symbol_element_mask, last_event_timestamp):
1334 * dispextern.h (Voverflow_newline_into_fringe):
1335 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1336 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1337 (syms_of_w32font, syms_of_nsfont):
1338 * fontset.h (find_font_encoding, Qlatin):
1339 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1340 (Vtool_bar_mode, set_frame_menubar):
1341 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1342 * xterm.h (Qx_gtk_map_stock):
1343 * keymap.h (meta_prefix_char): Add declarations.
1344
1345 * term.c: Remove dead code.
1346
1347 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1348 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1349 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1350 which is what was there before BSD_PGRPS was removed.
1351
1352 2010-08-05 Eli Zaretskii <eliz@gnu.org>
1353
1354 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1355
1356 * unexcoff.c: Renamed from unexec.c.
1357
1358 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1359
1360 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1361
1362 2010-08-03 Johan Bockgård <bojohan@gnu.org>
1363
1364 * data.c (Flocal_variable_p): Handle variable aliases correctly.
1365 (Bug#6744)
1366
1367 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1368
1369 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1370 to TRUE if depth of screen is < 16.
1371
1372 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1373 USE_GTK_TOOLTIP.
1374 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1375 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
1376 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
1377 USE_GTK_TOOLTIP.
1378 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1379
1380 * xterm.h (USE_GTK_TOOLTIP): New define.
1381 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1382
1383 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1384 to Control-D (Bug#6771).
1385
1386 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
1387
1388 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1389 Wording by Drew Adams <drew.adams@oracle.com>.
1390
1391 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1392
1393 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1394 ttip_lbl.
1395
1396 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1397 calling gtk_widget_queue_draw.
1398 (x_free_frame_resources): Call xg_free_frame_widgets.
1399
1400 * xfns.c (x_gtk_use_system_tooltips): New variable.
1401 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1402 new gtkutil tooltip functions to show the tooltip.
1403 (Fx_hide_tip): Call xg_hide_tooltip.
1404 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1405
1406 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1407 (xg_show_tooltip, xg_hide_tooltip): Declare.
1408
1409 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
1410 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1411 New functions.
1412 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1413 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1414 Remove code that is commented out.
1415
1416 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1419
1420 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
1421
1422 * xselect.c (x_own_selection): Use list4.
1423
1424 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1425
1426 * buffer.c (Qwindow): Do not define, already defined in data.c.
1427 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1428
1429 2010-07-29 Chad Brown <yandros@mit.edu>
1430
1431 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1432 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1433 * config.in: Undef HAVE_DIRENT_H.
1434 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
1435 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1436
1437 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1438
1439 Rename s/usg5-4.h -> s/usg5-4-common.h.
1440 * s/usg5-4.h: Rename file to ...
1441 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1442 * s/unixware.h:
1443 * s/sol2-6.h:
1444 * s/irix6-5.h: Update includes accordingly.
1445
1446 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1447
1448 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1449
1450 * xterm.h (struct x_output): Add toolbar_top_height,
1451 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1452 Remove toolbar_height.
1453 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
1454 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1455 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1456 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1457
1458 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1459
1460 * xfns.c (x_set_tool_bar_position): New function.
1461 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1462 (x_frame_parm_handlers): Add x_set_tool_bar_position.
1463 (syms_of_xfns): If USE_GTK, provide move-toolbar.
1464
1465 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1466 and FRAME_TOOLBAR_LEFT_WIDTH.
1467
1468 * gtkutil.h (xg_change_toolbar_position): Declare.
1469
1470 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1471 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1472 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1473 (xg_create_frame_widgets): Create a hobox for placing widgets
1474 vertically. Use gtk_box_pack_start.
1475 (xg_height_or_width_changed): Renamed from xg_height_changed.
1476 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1477 (xg_update_frame_menubar, free_frame_menubar): Change to
1478 xg_height_or_width_changed.
1479 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1480 size correctly. Remove hardcoded 4, instead use handlebox size -
1481 toolbar size.
1482 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
1483 size correctly. Use handlebox size + toolbar size as additional size.
1484 (xg_pack_tool_bar): POS is a new parameter.
1485 Set orientation of tool bar based on pos.
1486 Only make handlebox_widget if NULL.
1487 Check if tool bar goes to vbox or hbox depending on pos.
1488 (xg_update_tool_bar_sizes): New function.
1489 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
1490 height, call xg_update_tool_bar_sizes instead.
1491 (free_frame_tool_bar): Remove from hbox or vbox depending on
1492 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1493 (xg_change_toolbar_position): New function.
1494
1495 * frame.h (struct frame): Add tool_bar_position.
1496 (Qbottom): Declare.
1497
1498 * frame.c (Qtool_bar_position): New variable.
1499 (make_frame): Set tool_bar_position to Qtop.
1500 (frame_parms): Add tool-bar-position.
1501 (x_report_frame_params): Store tool_bar_position.
1502 (x_set_fringe_width): Reset wm size hint after fringe changes.
1503
1504 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1505
1506 Make lisp_time_argument declaration work on all systems.
1507 * lisp.h (lisp_time_argument): Move declaration ...
1508 * systime.h (lisp_time_argument): ... here
1509 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1510
1511 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1512
1513 * vm-limit.c (POINTER): Add typedef for it.
1514 (start_of_data): Change return type from POINTER to char *.
1515
1516 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1517 HAVE_WINDOW_SYSTEM.
1518
1519 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1520
1521 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1522 Remove reference to __osf__, unused.
1523
1524 * mem-limits.h: Remove duplicated includes.
1525 (NULL): Remove definition, unused.
1526 (POINTER): Remove definition.
1527 (start_of_data): Use char* in prototype, as the function
1528 definition does.
1529
1530 Remove extern declarations from .c files, and them to .h files.
1531 * keyboard.h (Qhelp_echo, waiting_for_input)
1532 (input_available_clear_time, ignore_mouse_drag_p)
1533 (Vdouble_click_time, real_this_command, Vthis_original_command):
1534 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1535 (Voverriding_local_map_menu_flag):
1536 * lisp.h (Qinteractive_form, use_file_dialog)
1537 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1538 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1539 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1540 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1541 (Qfunction, debug_on_next_call, Qfield)
1542 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1543 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1544 (Qfile_directory_p, Qinsert_file_contents)
1545 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1546 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1547 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1548 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1549 (Qminibuffer_prompt)
1550 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1551 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1552 (gray_bitmap_bits, xic_create_fontsetname):
1553 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1554
1555 * xsmfns.c (Vuser_login_name):
1556 * xrdb.c (Vdouble_click_time):
1557 * xfaces.c (xic_create_fontsetname):
1558 * w32select.c (waiting_for_input):
1559 * print.c (minibuffer_auto_raise):
1560 * msdos.c (Qhelp_echo):
1561 * macros.c (real_this_command):
1562 * keymap.c (Voverriding_local_map):
1563 * xterm.c (poll_for_input_1, gray_bitmap_width)
1564 (gray_bitmap_height, gray_bitmap_bits;
1565 * xmenu.c ( Voverriding_local_map)
1566 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1567 (use_file_dialog, Xt_app_con):
1568 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1569 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1570 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1571 (Qtool_bar_lines, ignore_mouse_drag_p):
1572 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1573 (Qrear_nonsticky, nconc2):
1574 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1575 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1576 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1577 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1578 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1579 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1580 (gc_in_progress):
1581 * doc.c (Voverriding_local_map, Qremap):
1582 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1583 (Vcompletion_regexp_list):
1584 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1585 (Qcompletion_ignore_case):
1586 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1587 (Vhistory_length, Vthis_original_command, real_this_command)
1588 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1589 * image.c (Qrisky_local_variable):
1590 * fontset.c (QCname):
1591 * fns.c (minibuffer_auto_raise, QCname):
1592 * dispnew.c (char_ins_del_cost):
1593 * composite.c (font_fill_lglyph_metrics):
1594 * cmds.c (Qface, Vtranslation_table_for_input):
1595 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1596 * ccl.c (charset_unicode):
1597 * callproc.c (Vtemporary_file_directory):
1598 * buffer.c (emacs_strerror): Remove extern declarations.
1599
1600 * data.c (Qwindow): Make non-static, used from other files too.
1601 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1602
1603 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1604 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1605 * s/usg5-4.h (COFF):
1606 * s/template.h:
1607 * s/msdos.h (COFF, NO_REMAP):
1608 * s/ms-w32.h (NO_REMAP):
1609 * s/hpux10-20.h (NO_REMAP):
1610 * m/sparc.h (SEGMENT_MASK):
1611 * m/m68k.h (NO_REMAP):
1612 * m/intel386.h (SEGMENT_MASK):
1613 * m/arm.h (NO_REMAP):
1614 * m/alpha.h (COFF):
1615 * m/template.h: Remove references to unused defines.
1616
1617 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1618
1619 * xsettings.c (Ftool_bar_get_system_style): Also check for
1620 Qtext_image_horiz.
1621
1622 * xdisp.c (Qtext_image_horiz): Define.
1623 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
1624 to documentation of tool-bar-style.
1625
1626 * lisp.h (Qtext_image_horiz): Declare.
1627
1628 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1629 style text_image_horiz.
1630
1631 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1632
1633 * emacs.c (Fkill_emacs): Remove return statement.
1634
1635 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1636 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1637 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1638 local extern declarations.
1639
1640 * xmenu.c: Do not included lwlib.h, not needed.
1641
1642 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1643
1644 * process.c: Move definitions earlier to minimize #ifdefs.
1645
1646 * xterm.h (x_get_customization_string, x_load_resources)
1647 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1648 (x_check_errors, x_property_data_to_lisp, defined_color)
1649 (xic_set_xfontset, x_defined_color): Use const.
1650
1651 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1652 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1653
1654 * xselect.c (selection_data_to_lisp_data)
1655 (x_property_data_to_lisp):
1656 * xrdb.c (x_get_string_resource, file_p)
1657 (x_get_customization_string, magic_file_p, search_magic_path)
1658 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1659 (x_get_string_resource): Use const.
1660
1661 * xfns.c: Include xlwmenu.h when USE_LUCID.
1662 (x_defined_color, xic_set_xfontset): Use const.
1663 (Fx_hide_tip): Remove local extern declaration.
1664
1665 * xfaces.c (Qmouse_face): Remove declaration.
1666 (face_color_gray_p, tty_defined_color, defined_color)
1667 (face_color_gray_p, face_color_supported_p): Add const.
1668
1669 * xdisp.c (do_mouse_tracking): Remove declaration.
1670 (add_to_log): Use const.
1671
1672 * minibuf.c (Qmouse_face): Remove declaration.
1673
1674 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1675
1676 * keyboard.h (do_mouse_tracking): Add declaration.
1677
1678 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1679 (QCdata, QCtype, Qcenter): Remove declarations.
1680
1681 * frame.c (x_get_resource_string, x_get_string_resource)
1682 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1683 (x_default_parameter): Use const.
1684
1685 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1686 (QCheight, QCsize, QCname): Remove declarations.
1687
1688 * emacs.c (main): Remove local extern declaration.
1689
1690 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1691 declarations.
1692
1693 * dispnew.c: Remove duplicate #include <unistd.h>.
1694 (update_window, update_frame_1, init_display): Remove local extern
1695 declarations.
1696
1697 * dispextern.h (add_to_log): Remove declaration.
1698 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1699 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1700
1701 * dired.c (scmp): Add const.
1702 (directory_files_internal): Remove local extern declaration.
1703
1704 * data.c (Finteractive_form): Use const.
1705
1706 * composite.c (syms_of_composite): Remove local extern declarations.
1707
1708 * charset.c (add_to_log): Remove declaration.
1709
1710 * character.c (strwidth, parse_str_to_multibyte): Add const.
1711
1712 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1713
1714 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1715
1716 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1717 (Lisp_Subr): Make doc and intspec constant.
1718 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1719 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1720 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1721 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1722 (display_arg): Add declarations.
1723
1724 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1725
1726 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1727
1728 * window.c (Fwindow_height): Doc fix (bug#6518).
1729
1730 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1731
1732 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1733
1734 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1735
1736 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1737 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1738 functions.
1739
1740 * frame.h (Qtty_color_mode): Add declaration.
1741
1742 * lisp.h (Ftop_level, Fexit_recursive_edit)
1743 (Fabort_recursive_edit): Mark as NO_RETURN.
1744
1745 2010-07-26 Kenichi Handa <handa@m17n.org>
1746
1747 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1748 number of glyphs gets smaller than the original length. (Bug#6621)
1749
1750 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1751
1752 * lread.c (unreadpure, mapatoms_1): Make static.
1753
1754 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1755
1756 * terminfo.c (tparam): Fix prototype of tparm.
1757
1758 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1759
1760 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1761 find start of text segment.
1762 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1763 is defined.
1764
1765 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1766
1767 2010-07-25 Ken Brown <kbrown@cornell.edu>
1768
1769 * vm-limit.c (check_memory_limits): Fix previous change;
1770 accidentally reverted an earlier change.
1771
1772 2010-07-25 Ken Brown <kbrown@cornell.edu>
1773
1774 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1775 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1776
1777 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1778
1779 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1780 * dired.c (opendir, readdir): Fix prototypes.
1781 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1782 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1783 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1784 (telldir): Remove declaration.
1785 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1786 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1787 * syssignal.h (strsignal): Fix prototype.
1788 * term.c (tparam): Fix prototype.
1789 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1790 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1791 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1792 and __morecore.
1793 * w32gui.h (XParseGeometry): Fix prototype.
1794 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1795 * w32term.c (my_set_focus): Declare inside #if 0.
1796 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1797 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1798 (drain_message_queue, get_next_msg, post_msg, parse_button)
1799 (ClipboardSequence_Proc): Fix prototypes.
1800 (wait_for_sync): Remove declaration.
1801
1802 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1803
1804 * w32fns.c (w32_to_x_color): Remove, unused.
1805
1806 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1807
1808 * lisp.h: Remove leftover P_.
1809
1810 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1811
1812 * ecrt0.c, unexalpha.c: Remove files, unused.
1813
1814 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1815
1816 * cmds.c (internal_self_insert): Make static.
1817 * lisp.h (internal_self_insert): Remove declaration.
1818
1819 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1820
1821 * alloc.c (free_float):
1822 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1823 * frame.c (delete_frame_handler):
1824 * ralloc.c (reorder_bloc):
1825 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1826 Remove unused static functions.
1827
1828 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1829 it is called only from NS code.
1830
1831 * w32term.c (my_set_focus): #ifdef away; it is called only from
1832 "#ifdef 0" code.
1833
1834 * w32fns.c (x_edge_detection):
1835 * xfaces.c (may_use_scalable_font_p):
1836 Remove obsolete static declarations.
1837
1838 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1839
1840 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1841 (emacs_blocked_realloc, uninterrupt_malloc):
1842 * fringe.c (w32_reset_fringes):
1843 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1844 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1845 * sound.c (be2hs, do_play_sound):
1846 * vm-limit.c (get_lim_data, ret_lim_data):
1847 * w32term.c (x_free_frame_resources):
1848 * xfaces.c (x_create_gc, x_free_gc):
1849 Convert definitions to standard C.
1850
1851 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1852
1853 * eval.c (Feval, Ffuncall): Use the new names.
1854
1855 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1856 (DEFUN): Add braces around the union initialisation and use ## to
1857 specify the right union alternative and avoid a cast.
1858
1859 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1860
1861 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1862
1863 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1864
1865 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1866
1867 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1868
1869 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1870 is related to the menu bar (Bug#6499).
1871 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1872
1873 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1874
1875 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1876
1877 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1878
1879 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1880 i.e. don't put back ButtonRelease (Bug#6608).
1881
1882 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1883 instead of Window. Call xg_event_is_for_menubar when
1884 USE_GTK (Bug#6499).
1885
1886 * gtkutil.h (xg_event_is_for_menubar): Declare.
1887
1888 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1889
1890 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1891
1892 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1893 when it's the same as the old foreground. (Bug#6609)
1894
1895 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1896
1897 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1898 widget is non-null (Bug#6645).
1899
1900 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1901
1902 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1903 Convert old-style definition.
1904
1905 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1906 timestamp argument.
1907
1908 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1909
1910 * fringe.c (update_window_fringes): Restore mistakenly reverted
1911 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1912
1913 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1914
1915 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1916 (SET_SAVED_KEY_EVENT): Remove (not used).
1917 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1918 remove size parameter.
1919 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1920 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1921 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1922 ButtonRelease.
1923 (x_set_window_size_1): scroll_bar_actual_width is always
1924 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1925
1926 * xdisp.c (pending_menu_activation): Remove extern declaration.
1927 (prepare_menu_bars): Remove setting of pending_menu_activation.
1928
1929 * xmenu.c (pending_menu_activation): Remove.
1930 (x_activate_menubar): Set popup_activated_flag for Xt also.
1931 Remove setting of pending_menu_activation.
1932 (set_frame_menubar): Remove check of pending_menu_activation.
1933 Declare menubar_size before code. Correct spelling in comment.
1934
1935 2010-07-14 Kenichi Handa <handa@m17n.org>
1936
1937 * font.c (font_open_entity): Cancel previous change.
1938 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1939
1940 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1941
1942 Remove subprocesses #ifdefs.
1943 * process.c <inhibit_sentinels>: Move to the common part.
1944 (Fwaiting_for_user_input_p): Move to the common part; return nil
1945 if async subprocesses aren't supported.
1946 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1947 MS-DOS. Remove "#ifdef subprocesses".
1948 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1949 (gettimeofday): Remove "#ifdef subprocesses".
1950 (wait_without_blocking): Remove function.
1951 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1952 Remove "#ifdef subprocesses".
1953 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1954 compiled on MS-DOS.
1955 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1956 wait_for_termination on MS-DOS.
1957 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1958 initialization of inhibit_sentinels.
1959 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1960 subprocesses" conditional.
1961 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1962 wait_for_termination, since `buffer' cannot be an integer when
1963 async subprocesses are not supported
1964 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1965 for ifdefing away the call to Fprocess_status.
1966
1967 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1968 away the entire body of the function.
1969
1970 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1971
1972 Remove subprocesses #ifdefs from term.c.
1973 * process.c (add_keyboard_wait_descriptor)
1974 (delete_keyboard_wait_descriptor): Move to common section, do
1975 nothing when subprocesses is not defined.
1976 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1977 Remove subprocesses #ifdefs.
1978
1979 Convert maybe_fatal to standard C.
1980 * lisp.h (verror): Declare.
1981 * eval.c (verror): New function containing the code from ...
1982 (error): ... this. Call verror.
1983 * term.c (vfatal): New function containing the code from ...
1984 (fatal): ... this. Call vfatal.
1985 (maybe_fatal): Convert to standard C, use variable number of
1986 arguments. Declare as non-return.
1987 (init_tty): Fix maybe_fatal call.
1988
1989 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1990
1991 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1992 (_scroll_bar_note_movement): Convert definitions to standard C.
1993 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1994 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1995
1996 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1997
1998 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1999 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2000 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2001 (xaw_jump_callback, xaw_scroll_callback)
2002 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2003 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2004 definitions to standard C.
2005 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2006 (popup_activate_callback, popup_deactivate_callback)
2007 (menu_highlight_callback, menubar_selection_callback)
2008 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2009 (free_frame_menubar, popup_selection_callback, as)
2010 (create_and_show_popup_menu, dialog_selection_callback)
2011 (create_and_show_dialog):
2012 * xfns.c (hack_wm_protocols, x_window):
2013 * xfaces.c (x_update_menu_appearance):
2014 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2015 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2016 (set_frame_size, update_wm_hints, setup_frame_gcs)
2017 (update_various_frame_slots, update_from_various_frame_slots)
2018 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2019 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2020 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2021
2022 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2023
2024 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
2025
2026 2010-07-12 Eli Zaretskii <eliz@gnu.org>
2027
2028 * process.c (setup_process_coding_systems): Move to the part
2029 shared by non-subprocesses systems, and make its body empty when
2030 subprocesses is not defined.
2031 (close_process_descs): Move to the part shared by non-subprocesses
2032 systems.
2033 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2034 ANSI C.
2035
2036 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2037
2038 * editfns.c (transpose_markers): Convert old-style definition.
2039 * emacs.c (abort, shut_down_emacs, fixup_locale)
2040 (synchronize_system_time_locale)
2041 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2042 * floatfns.c (extract_float, matherr, init_floatfns)
2043 (syms_of_floatfns): Likewise.
2044 * fns.c (make_hash_table): Likewise.
2045 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2046 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2047 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2048 (ftfont_variation_glyphs): Likewise.
2049 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2050 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2051 * lread.c (read_filtered_event): Likewise.
2052 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2053 * process.c (wait_reading_process_output): Likewise.
2054 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2055 * search.c (search_buffer, boyer_moore): Likewise.
2056 * syntax.c (scan_sexps_forward): Likewise.
2057 * xdisp.c (try_scrolling): Likewise.
2058 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2059 (face_at_string_position): Likewise.
2060 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2061 * xselect.c (x_get_window_property, receive_incremental_selection)
2062 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2063 Likewise.
2064 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2065
2066 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2067
2068 * callproc.c (child_setup): Remove subprocesses conditional.
2069 Remove code dealing with SET_EMACS_PRIORITY, unused.
2070
2071 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2072 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2073
2074 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2075 (__do_global_dtors, __main): Use void in definition.
2076 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2077 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2078 the only users from ...
2079 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2080 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2081 (HAVE_VOLATILE): Remove, unused.
2082
2083 Convert more function definitions to standard C.
2084 * xdisp.c (window_box_edges, handle_single_display_spec)
2085 (display_string): Convert definition to standard C.
2086 * scroll.c (do_direct_scrolling, scrolling_1):
2087 * dispnew.c (allocate_matrices_for_frame_redisplay)
2088 (mirrored_line_dance):
2089 * coding.c (code_convert_string):
2090 * charset.c (map_charset_chars):
2091 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2092 (Fregister_ccl_program, Fregister_code_conversion_map):
2093 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2094 (head_table): Make static and const.
2095
2096 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2097
2098 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2099 (PROFILING_LDFLAGS): Set from substitution.
2100 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2101 CFLAGS last.
2102
2103 2010-07-12 Kenichi Handa <handa@m17n.org>
2104
2105 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2106 (shortlisp): Likewise.
2107
2108 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2109
2110 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2111 of FONT_ENTITY_INDEX.
2112 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2113 property, get the property value dynamically.
2114 (Ffont_put): Accept font-entity and font-object too.
2115 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2116 return value changed.
2117 (syms_of_font): Adjusted for the above change.
2118
2119 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2120
2121 * blockinput.h: Remove obsolete comment.
2122
2123 * lisp.h: Include <stddef.h>.
2124 (OFFSETOF): Don't define.
2125 (VECSIZE): Use offsetof instead of OFFSETOF.
2126 (PSEUDOVECSIZE): Likewise.
2127 * process.c (conv_sockaddr_to_lisp): Likewise.
2128 * alloc.c: Don't include <stddef.h>.
2129 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2130
2131 * process.c: Remove obsolete comment.
2132
2133 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
2134
2135 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2136
2137 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2138
2139 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2140 index, rindex.
2141 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2142 * editfns.c (Fuser_full_name, Fformat): Likewise.
2143 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2144 * fileio.c (Ffile_symlink_p): Likewise.
2145 * filelock.c (current_lock_owner): Likewise.
2146 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2147 * fontset.c (fontset_pattern_regexp): Likewise.
2148 * lread.c (read1): Likewise.
2149 * sysdep.c (init_system_name): Likewise.
2150 * xfns.c (select_visual): Likewise.
2151 * s/hpux10-20.h (index, rindex): Don't define.
2152 * s/ms-w32.h (index): Likewise.
2153 * s/usg5-4.h: Likewise.
2154
2155 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2156
2157 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2158 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2159 (egetenv): Likewise.
2160 * doprnt.c (doprnt): Likewise.
2161 * editfns.c (set_time_zone_rule, format2): Likewise.
2162 * emacs.c (decode_env_path): Likewise.
2163 * eval.c (signal_error, error): Likewise.
2164 * insdel.c (replace_range_2): Likewise.
2165 * keyboard.c (cmd_error_internal): Likewise.
2166 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2167 * print.c (write_string, write_string_1, print_error_message):
2168 Likewise.
2169 * vm-limit.c (warn_function, memory_warnings): Likewise.
2170 * xdisp.c (message1, message1_nolog, message_with_string)
2171 (vmessage, message, message_nolog): Likewise.
2172 * emacs.c: Remove duplicate declaration.
2173 * keyboard.h: Likewise.
2174 * lisp.h: Update prototypes.
2175
2176 * eval.c: Fix indentation problem.
2177
2178 * keyboard.c: Include "process.h"
2179
2180 * eval.c: Remove obsolete noinline declaration.
2181 * fns.c: Likewise.
2182
2183 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
2184
2185 * doprnt.c (doprnt): Take a va_list argument instead of count and
2186 pointer.
2187 * eval.c (error): Change to a standard-C variadic function.
2188 * xdisp.c (vmessage): Renamed from message, made static, and
2189 changed to take a va_list argument.
2190 (message): New variadic wrapper.
2191 (message_nolog): Now a variadic function, calling vmessage.
2192 * lisp.h: Include stdarg.h for va_list.
2193 (doprnt, error, message, message_nolog): Decls updated.
2194
2195 2010-07-11 Eli Zaretskii <eliz@gnu.org>
2196
2197 * process.c (syms_of_process) <delete-exited-processes>: Define
2198 even if !subprocesses.
2199 (delete_exited_processes): Ditto.
2200
2201 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2202 (delete_exited_processes): Don't define.
2203
2204 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2205
2206 * frame.c (make_frame): Initialize menu_bar_lines and
2207 tool_bar_lines members.
2208 (make_initial_frame, make_terminal_frame): Initialize
2209 menu_bar_lines using value of menu-bar-mode.
2210
2211 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2212
2213 2010-07-10 Eli Zaretskii <eliz@gnu.org>
2214
2215 * process.c: Reshuffle #include's. Condition some of the global
2216 and static variables on `subprocesses'.
2217 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2218 Leave only one implementation.
2219 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2220 (kill_buffer_processes, Flist_system_processes)
2221 (Fprocess_attributes, init_process, syms_of_process): Unify the
2222 implementations for with subprocesses and without them.
2223
2224 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2225
2226 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2227 correct size for Motif.
2228 (free_frame_menubar): Call x_set_window_size to update frame size.
2229
2230 * xfns.c (x_window): Set borderWidth to 0 for pane and
2231 EmacsFrame. Frame size calculation is wrong otherwise.
2232
2233 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
2234
2235 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2236 allows to suppress errors when polling in Emacs' main loop.
2237 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2238 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2239 (Fdbus_method_error_internal, Fdbus_send_signal)
2240 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2241 (Fdbus_register_method): Use it. (Bug#6579)
2242
2243 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2244
2245 * alloc.c: Convert DEFUNs to standard C.
2246 * buffer.c:
2247 * bytecode.c:
2248 * callint.c:
2249 * callproc.c:
2250 * casefiddle.c:
2251 * casetab.c:
2252 * category.c:
2253 * character.c:
2254 * charset.c:
2255 * chartab.c:
2256 * cmds.c:
2257 * coding.c:
2258 * composite.c:
2259 * data.c:
2260 * dbusbind.c:
2261 * dired.c:
2262 * dispnew.c:
2263 * doc.c:
2264 * dosfns.c:
2265 * editfns.c:
2266 * emacs.c:
2267 * eval.c:
2268 * fileio.c:
2269 * filelock.c:
2270 * floatfns.c:
2271 * fns.c:
2272 * font.c:
2273 * fontset.c:
2274 * frame.c:
2275 * fringe.c:
2276 * image.c:
2277 * indent.c:
2278 * insdel.c:
2279 * keyboard.c:
2280 * keymap.c:
2281 * lread.c:
2282 * macros.c:
2283 * marker.c:
2284 * menu.c:
2285 * minibuf.c:
2286 * msdos.c:
2287 * nsfns.m:
2288 * nsmenu.m:
2289 * nsselect.m:
2290 * print.c:
2291 * process.c:
2292 * search.c:
2293 * sound.c:
2294 * syntax.c:
2295 * term.c:
2296 * terminal.c:
2297 * textprop.c:
2298 * undo.c:
2299 * w16select.c:
2300 * w32console.c:
2301 * w32fns.c:
2302 * w32font.c:
2303 * w32menu.c:
2304 * w32proc.c:
2305 * w32select.c:
2306 * window.c:
2307 * xdisp.c:
2308 * xfaces.c:
2309 * xfns.c:
2310 * xmenu.c:
2311 * xselect.c:
2312 * xsettings.c:
2313 * xsmfns.c: Likewise.
2314
2315 2010-07-08 Eli Zaretskii <eliz@gnu.org>
2316
2317 * process.c (kbd_is_on_hold, hold_keyboard_input)
2318 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2319
2320 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2321
2322 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2323 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2324 unless USE_LUCID.
2325
2326 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2327
2328 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2329 declaration.
2330
2331 Clean up include guards.
2332 * tparam.c: Remove include guards for config.h, string.h and code
2333 that assumes #ifndef emacs.
2334 * termcap.c:
2335 * unexalpha.c:
2336 * sysdep.c:
2337 * filemode.c:
2338 * filelock.c:
2339 * bidi.c: Likewise.
2340
2341 Remove prefix-args.c
2342 * prefix-args.c: Remove file.
2343 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2344 * Makefile.in (temacs${EXEEXT}): Remove references to
2345 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2346 (mostlyclean): Remove reference to prefix-args.
2347 (prefix-args): Remove.
2348
2349 Simplify cstart_of_data, start_of_code and related code.
2350 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2351 (start_of_data): Merge into start_of_data function.
2352 * sysdep.c (start_of_text): Remove. Move simplified versions of
2353 it in the only users: unexaix.c and unexec.c.
2354 (read_input_waiting): Remove local declaration of quit_char.
2355 (start, etext): Remove declarations.
2356 (start_of_data): Merge with the version in mem-limits.h and move
2357 to vm-limits.c.
2358 * vm-limit.c (start_of_data): Merged and simplified version of the
2359 code formerly in mem-limits.h and sysdep.c.
2360 * unexec.c (start): New declaration, moved from sysdep.c.
2361 (start_of_text): Simplified version of the code formerly in sysdep.c.
2362 * unexaix.c (start_of_text): Simplified version of the code
2363 formerly in sysdep.c.
2364 * m/alpha.h (HAVE_TEXT_START): Remove.
2365 (TEXT_START): Move ...
2366 * unexalpha.c (TEXT_START): ... here.
2367 * s/hpux10-20.h (TEXT_START): Remove.
2368 * s/darwin.h (TEXT_START):
2369 * m/mips.h (TEXT_START):
2370 * m/macppc.h (HAVE_TEXT_START):
2371 * m/m68k.h (TEXT_START):
2372 * m/iris4d.h (TEXT_START):
2373 * m/intel386.h (TEXT_START):
2374 * m/ibmrs6000.h (TEXT_START):
2375 * m/ia64.h (HAVE_TEXT_START):
2376 * s/msdos.h (TEXT_START): Likewise.
2377
2378 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2379
2380 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2381 (overrun_check_free, xstrdup, allocate_string)
2382 (allocate_string_data, compact_small_strings, Fmake_string)
2383 (make_unibyte_string, make_multibyte_string)
2384 (make_string_from_bytes, make_specified_string, make_float)
2385 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2386 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2387 memcpy, memmove, memset, memcmp.
2388 * atimer.c (start_atimer, set_alarm): Likewise.
2389 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2390 (mmap_realloc, init_buffer_once): Likewise.
2391 * callint.c (Fcall_interactively): Likewise.
2392 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2393 (getenv_internal_1): Likewise.
2394 * casefiddle.c (casify_object): Likewise.
2395 * ccl.c (ccl_driver): Likewise.
2396 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2397 * charset.c (load_charset_map_from_file)
2398 (load_charset_map_from_file, load_charset_map_from_vector)
2399 (Fdefine_charset_internal): Likewise.
2400 * cm.c (Wcm_clear): Likewise.
2401 * coding.c (decode_eol, decode_coding_object)
2402 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2403 * data.c (Faset): Likewise.
2404 * dired.c (directory_files_internal, file_name_completion_stat):
2405 Likewise.
2406 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2407 (clear_glyph_row, copy_row_except_pointers)
2408 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2409 (save_current_matrix, restore_current_matrix)
2410 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2411 (mirror_line_dance, scrolling_window): Likewise.
2412 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2413 Likewise.
2414 * doprnt.c (doprnt): Likewise.
2415 * editfns.c (Fuser_full_name, make_buffer_string_both)
2416 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2417 * emacs.c (sort_args): Likewise.
2418 * eval.c (Fapply, Ffuncall): Likewise.
2419 * fileio.c (Ffile_name_directory, make_temp_name)
2420 (Fexpand_file_name, search_embedded_absfilename)
2421 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2422 (auto_save_error): Likewise.
2423 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2424 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2425 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2426 (Fmake_hash_table): Likewise.
2427 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2428 * ftfont.c (ftfont_text_extents): Likewise.
2429 * getloadavg.c (getloadavg): Likewise.
2430 * image.c (define_image_type, make_image, make_image_cache)
2431 (x_create_x_image_and_pixmap, xbm_image_p)
2432 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2433 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2434 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2435 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2436 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2437 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2438 Likewise.
2439 * indent.c (scan_for_column, compute_motion): Likewise.
2440 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2441 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2442 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2443 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2444 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2445 (store_user_signal_events, menu_bar_items, tool_bar_items)
2446 (process_tool_bar_item, append_tool_bar_item)
2447 (read_char_minibuf_menu_prompt, read_key_sequence)
2448 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2449 Likewise.
2450 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2451 Likewise.
2452 * lisp.h (STRING_COPYIN): Likewise.
2453 * lread.c (Fload, read1, oblookup): Likewise.
2454 * msdos.c (Frecent_doskeys): Likewise.
2455 * nsfns.m (Fx_create_frame): Likewise.
2456 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2457 Likewise.
2458 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2459 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2460 Likewise.
2461 * nsmenu.m (ns_update_menubar): Likewise.
2462 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2463 * print.c (print_unwind, printchar, strout, print_string)
2464 (print_error_message): Likewise.
2465 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2466 (Fmake_network_process, Fnetwork_interface_list)
2467 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2468 (init_process): Likewise.
2469 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2470 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2471 Likewise.
2472 * scroll.c (do_scrolling, do_direct_scrolling)
2473 (scrolling_max_lines_saved): Likewise.
2474 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2475 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2476 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2477 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2478 (emacs_set_tty): Likewise.
2479 * term.c (encode_terminal_code, calculate_costs)
2480 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2481 Likewise.
2482 * termcap.c (tgetst1, gobble_line): Likewise.
2483 * termhooks.h (EVENT_INIT): Likewise.
2484 * tparam.c (tparam1): Likewise.
2485 * unexalpha.c (unexec): Likewise.
2486 * unexec.c (write_segment): Likewise.
2487 * unexmacosx.c (unexec_write_zero): Likewise.
2488 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2489 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2490 * w32font.c (w32font_list_family, w32font_text_extents)
2491 (w32font_list_internal, w32font_match_internal)
2492 (w32font_open_internal, compute_metrics, Fx_select_font):
2493 Likewise.
2494 * w32menu.c (set_frame_menubar, add_menu_item)
2495 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2496 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2497 * w32uniscribe.c (uniscribe_list_family): Likewise.
2498 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2499 * window.c (make_window, replace_window, set_window_buffer)
2500 (Fsplit_window): Likewise.
2501 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2502 (add_to_log, message3, x_consider_frame_title)
2503 (append_space_for_newline, extend_face_to_end_of_line)
2504 (decode_mode_spec_coding, init_glyph_string): Likewise.
2505 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2506 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2507 (face_attr_equal_p, make_realized_face, make_face_cache)
2508 (free_realized_faces, lookup_named_face, smaller_face)
2509 (face_with_height, lookup_derived_face)
2510 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2511 (Finternal_set_font_selection_order, realize_default_face)
2512 (compute_char_face, face_at_buffer_position)
2513 (face_for_overlay_string, face_at_string_position, merge_faces):
2514 Likewise.
2515 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2516 (Fx_window_property, x_create_tip_frame)
2517 (Fx_backspace_delete_keys_p): Likewise.
2518 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2519 (xfont_text_extents): Likewise.
2520 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2521 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2522 * xselect.c (x_queue_event, x_get_window_property)
2523 (receive_incremental_selection): Likewise.
2524 * xsmfns.c (x_session_check_input): Likewise.
2525 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2526 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2527 Likewise.
2528 * character.h (BCOPY_SHORT): Removed.
2529 * config.in: Regenerate.
2530 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2531 * emacs.c (main) [PROFILING]: Don't declare
2532 dump_opcode_frequencies.
2533 * lisp.h (safe_bcopy): Remove declaration.
2534 (memset) [!HAVE_MEMSET]: Declare.
2535 (memcpy) [!HAVE_MEMCPY]: Likewise.
2536 (memmove) [!HAVE_MEMMOVE]: Likewise.
2537 (memcmp) [!HAVE_MEMCMP]: Likewise.
2538 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2539 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2540 Don't define.
2541 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2542 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2543 (BCOPY_DOWNWARD_SAFE): Don't define.
2544 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2545 (memcpy) [!HAVE_MEMCPY]: Define.
2546 (memmove) [!HAVE_MEMMOVE]: Define.
2547 (memcmp) [!HAVE_MEMCMP]: Define.
2548
2549 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2550
2551 * process.c (kbd_is_on_hold): New variable.
2552 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2553 New functions.
2554 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2555 select on empty input mask.
2556 (init_process): Initialize kbd_is_on_hold to 0.
2557
2558 * process.h (hold_keyboard_input, unhold_keyboard_input)
2559 (kbd_on_hold_p): Declare.
2560
2561 * keyboard.c (input_available_signal): Declare.
2562 (kbd_buffer_nr_stored): New function.
2563 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2564 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2565 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2566 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2567 (tty_read_avail_input): If input is on hold, return.
2568 Don't read more that free slots in kbd_buffer (Bug#6571).
2569
2570 2010-07-07 Eli Zaretskii <eliz@gnu.org>
2571
2572 * msdos.h:
2573 * msdos.c:
2574 * dosfns.c:
2575 * w16select.c: Convert function definitions to ANSI C.
2576
2577 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2578 Remove unused prototypes.
2579
2580 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2581
2582 * coding.c, sysdep.c: Convert some more functions to standard C.
2583
2584 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2585
2586 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2587 (encode_coding_object): Use SPECPDL_INDEX.
2588 (syms_of_coding): Use DOS_NT.
2589
2590 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2591
2592 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2593
2594 Make the function member of Lisp_Subr use standard C prototypes.
2595 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2596 (DECL_ALIGN): Add a cast for the function.
2597 * eval.c (Feval, Ffuncall): Use the proper type for each type
2598 function call.
2599
2600 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
2601
2602 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2603 fringe face id, so face-remapping-alist works (Bug#6091).
2604
2605 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
2606
2607 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2608 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2609 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2610
2611 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2612
2613 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2614 * lisp.h: Declare x_get_keysym_name.
2615 * keyboard.c (modify_event_symbol): Don't declare
2616 x_get_keysym_name here.
2617
2618 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2619
2620 * ecrt0.c: Revert conversion to standard C.
2621
2622 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2623
2624 * vm-limit.c (memory_warnings):
2625 * keyboard.c (modify_event_symbol):
2626 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2627 (round2, emacs_rint):
2628 * process.c (send_process, old_sigpipe): Convert function
2629 definitions and declarations to standard C.
2630
2631 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
2632
2633 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2634 * xdisp.c: Convert function definitions to standard C.
2635
2636 * cm.c (cmputc): Arg C is now int, not char.
2637 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2638
2639 2010-07-05 James Cloos <cloos@jhcloos.com>
2640
2641 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2642
2643 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2644 _NET_WM_ICON_NAME atoms.
2645
2646 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2647 and _NET_WM_ICON_NAME properties, too, matching what is
2648 done in the Gtk+ case.
2649
2650 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2651
2652 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2653
2654 * xsmfns.c (SSDATA): New macro.
2655 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2656 passed to strlen/strcpy/strcat.
2657 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2658 7:th arg to XChangeProperty to (unsigned char *)
2659
2660 * xsettings.c (something_changedCB, parse_settings)
2661 (apply_xft_settings): Reformat prototype.
2662 (something_changedCB, init_gconf): Remove unused variable i.
2663 (read_settings): Remove unused variable long_len.
2664
2665 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2666 (xg_get_image_for_pixmap, create_dialog)
2667 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2668 (menuitem_highlight_callback, make_menu_item)
2669 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2670 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2671 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2672 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2673 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2674 (xg_tool_bar_item_expose_callback): Reformat prototype.
2675 (xg_update_menubar): GList *group => GSList *group.
2676 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2677 before use.
2678 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2679 to GTK_IMAGE (wimage).
2680
2681 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2682
2683 * atimer.c: Use "" instead of <> for local includes for
2684 consistency with the rest of the code.
2685
2686 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2687 * xrdb.c (get_system_name):
2688 * window.c (shrink_windows):
2689 * syntax.c (forw_comment):
2690 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2691 (ins_del_costs):
2692 * mem-limits.h (start_of_data):
2693 * lread.c (readevalloop):
2694 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2695 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2696 * frame.c (x_get_focus_frame):
2697 * floatfns.c (fmod_float):
2698 * fileio.c (choose_write_coding_system):
2699 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2700 (malloc_initialize_hook, sort_args, synchronize_locale):
2701 * doprnt.c (doprnt):
2702 * dired.c (compile_pattern):
2703 * data.c (fmod_float):
2704 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2705 (map_char_table_for_charset):
2706 * charset.c (define_charset_internal):
2707 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2708 to standard C.
2709
2710 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2711 Stefan Monnier <monnier@iro.umontreal.ca>
2712
2713 * lread.c (read1): Fix up last change to not mess up `c'.
2714
2715 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2716
2717 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2718
2719 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2720
2721 Fix prototypes.
2722
2723 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2724 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2725 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2726 arg, as required by internal_condition_case_1.
2727 * print.c (strout): Use const char* for arg PTR.
2728 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2729 (analyse_first): Fix "const const".
2730 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2731 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2732 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2733
2734 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2735
2736 * alloc.c: Convert function definitions to standard C.
2737 * atimer.c:
2738 * bidi.c:
2739 * bytecode.c:
2740 * callint.c:
2741 * callproc.c:
2742 * casefiddle.c:
2743 * casetab.c:
2744 * category.c:
2745 * ccl.c:
2746 * character.c:
2747 * charset.c:
2748 * chartab.c:
2749 * cmds.c:
2750 * coding.c:
2751 * composite.c:
2752 * data.c:
2753 * dbusbind.c:
2754 * dired.c:
2755 * dispnew.c:
2756 * doc.c:
2757 * doprnt.c:
2758 * ecrt0.c:
2759 * editfns.c:
2760 * fileio.c:
2761 * filelock.c:
2762 * filemode.c:
2763 * fns.c:
2764 * font.c:
2765 * fontset.c:
2766 * frame.c:
2767 * fringe.c:
2768 * ftfont.c:
2769 * ftxfont.c:
2770 * gtkutil.c:
2771 * indent.c:
2772 * insdel.c:
2773 * intervals.c:
2774 * keymap.c:
2775 * lread.c:
2776 * macros.c:
2777 * marker.c:
2778 * md5.c:
2779 * menu.c:
2780 * minibuf.c:
2781 * prefix-args.c:
2782 * print.c:
2783 * ralloc.c:
2784 * regex.c:
2785 * region-cache.c:
2786 * scroll.c:
2787 * search.c:
2788 * sound.c:
2789 * strftime.c:
2790 * syntax.c:
2791 * sysdep.c:
2792 * termcap.c:
2793 * terminal.c:
2794 * terminfo.c:
2795 * textprop.c:
2796 * tparam.c:
2797 * undo.c:
2798 * unexelf.c:
2799 * window.c:
2800 * xfaces.c:
2801 * xfns.c:
2802 * xfont.c:
2803 * xftfont.c:
2804 * xgselect.c:
2805 * xmenu.c:
2806 * xrdb.c:
2807 * xselect.c:
2808 * xsettings.c:
2809 * xsmfns.c:
2810 * xterm.c: Likewise.
2811
2812 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2813
2814 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2815 frames other than the initial one. Fix reversal of colors when
2816 `reverse' is specified in the frame parameters. Call
2817 update_face_from_frame_parameter instead of
2818 internal-set-lisp-face-attribute. Initialize screen colors from
2819 initial_screen_colors[] when f->default_face_done_p is zero,
2820 instead of depending on being called with default-frame-alist as
2821 the alist argument.
2822
2823 * xfaces.c (update_face_from_frame_parameter): Move out of
2824 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2825 with HAVE_WINDOW_SYSTEM.
2826
2827 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2828 to menu-bar-mode, if not set in the frame parameters or in
2829 default-frame-alist.
2830
2831 * w32console.c (sys_tputs): Adjust argument list to prototype in
2832 term.c.
2833
2834 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2835
2836 * lisp.h (memory_warnings): Fix prototype.
2837
2838 * cm.h (evalcost): Fix prototype.
2839
2840 * cm.c (evalcost): Fix arg type.
2841
2842 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2843
2844 * term.c (term_clear_mouse_face, Fidentity):
2845 * syssignal.h (signal_handler_t):
2846 * lisp.h (memory_warnings):
2847 * coding.h (preferred_coding_system):
2848 * cm.h (evalcost):
2849 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2850
2851 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2852
2853 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2854 from prototypes.
2855
2856 * msdos.h (load_pixmap): Don't define away.
2857
2858 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2859
2860 * lisp.h:
2861 * atimer.h: Remove define for P_.
2862
2863 * alloc.c: Remove __P and P_ from .c and .m files.
2864 * atimer.c:
2865 * buffer.c:
2866 * callint.c:
2867 * category.c:
2868 * charset.c:
2869 * chartab.c:
2870 * cm.c:
2871 * coding.c:
2872 * composite.c:
2873 * data.c:
2874 * dired.c:
2875 * dispnew.c:
2876 * doc.c:
2877 * editfns.c:
2878 * emacs.c:
2879 * eval.c:
2880 * fileio.c:
2881 * filelock.c:
2882 * fns.c:
2883 * font.c:
2884 * fontset.c:
2885 * frame.c:
2886 * ftfont.c:
2887 * ftxfont.c:
2888 * gmalloc.c:
2889 * gtkutil.c:
2890 * image.c:
2891 * indent.c:
2892 * intervals.c:
2893 * keyboard.c:
2894 * keymap.c:
2895 * lread.c:
2896 * marker.c:
2897 * menu.c:
2898 * minibuf.c:
2899 * print.c:
2900 * process.c:
2901 * scroll.c:
2902 * search.c:
2903 * sound.c:
2904 * strftime.c:
2905 * syntax.c:
2906 * sysdep.c:
2907 * term.c:
2908 * terminal.c:
2909 * textprop.c:
2910 * unexalpha.c:
2911 * w32console.c:
2912 * w32fns.c:
2913 * w32font.c:
2914 * w32menu.c:
2915 * w32term.c:
2916 * w32uniscribe.c:
2917 * window.c:
2918 * xdisp.c:
2919 * xfaces.c:
2920 * xfns.c:
2921 * xfont.c:
2922 * xftfont.c:
2923 * xmenu.c:
2924 * xselect.c:
2925 * xterm.c: Likewise.
2926
2927 Remove P_ and __P macros.
2928 * atimer.h: Remove P_ and __P macros.
2929 * buffer.h:
2930 * category.h:
2931 * ccl.h:
2932 * character.h:
2933 * charset.h:
2934 * cm.h:
2935 * coding.h:
2936 * composite.h:
2937 * dispextern.h:
2938 * disptab.h:
2939 * dosfns.h:
2940 * font.h:
2941 * fontset.h:
2942 * frame.h:
2943 * gtkutil.h:
2944 * indent.h:
2945 * intervals.h:
2946 * keyboard.h:
2947 * keymap.h:
2948 * lisp.h:
2949 * macros.h:
2950 * md5.h:
2951 * menu.h:
2952 * msdos.h:
2953 * nsterm.h:
2954 * puresize.h:
2955 * region-cache.h:
2956 * syntax.h:
2957 * syssignal.h:
2958 * systime.h:
2959 * termhooks.h:
2960 * w32font.h:
2961 * w32term.h:
2962 * widget.h:
2963 * window.h:
2964 * xgselect.h:
2965 * xsettings.h:
2966 * xterm.h: Likewise.
2967
2968 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2969
2970 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2971
2972 Cleanup old code.
2973 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2974 * syssignal.h: Remove code for Lynx, not supported anymore.
2975 * vm-limit.c: Remove unused code the depends on emacs not being
2976 defined and NO_LIM_DATA being defined.
2977 * mem-limits.h: Remove dead code.
2978
2979 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2980
2981 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2982
2983 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2984 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2985
2986 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2987 parameters, they are already absolute.
2988
2989 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2990 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
2991
2992 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
2993
2994 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2995 Update FRAME_TOOLBAR_HEIGHT.
2996
2997 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2998 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
2999
3000 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
3001
3002 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3003 check default-frame-alist.
3004
3005 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3006
3007 * process.c (create_process): Avoid using invalid file descriptors.
3008
3009 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3010
3011 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3012
3013 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3014 Improve documentation. Return font regardless of use_system_font.
3015 (syms_of_xsettings): Improve documentation for font-use-system-font.
3016
3017 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3018
3019 * xfaces.c (realize_face): Garbage the frame if a face is removed
3020 (Bug#6593).
3021
3022 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3023
3024 * keyboard.c: Remove duplicate <setjmp.h>.
3025 (read_key_sequence): Remove volatile qualifiers.
3026
3027 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3028
3029 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3030 (struct glyph_row): New members left_fringe_offset and
3031 right_fringe_offset.
3032
3033 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3034 specially.
3035 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3036 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3037
3038 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
3039 Take account of bitmap offset.
3040 (draw_window_fringes): Take account of window vscroll.
3041 (update_window_fringes): Likewise. Extend top-aligned top indicator
3042 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3043 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3044 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3045
3046 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3047
3048 * w32fns.c (Qtooltip): Declare.
3049 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3050
3051 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3052
3053 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3054 grab on just Press (Bug#6499).
3055
3056 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
3057
3058 * frame.c (Qtooltip): New var.
3059 (delete_frame): Use it. Fix faulty if statement. Don't update
3060 mode line for tooltip frames. Suggested by Martin Rudalics.
3061
3062 * xfns.c (x_create_tip_frame):
3063 * w32fns.c (x_create_tip_frame): Use it.
3064
3065 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
3066
3067 * xftfont.c (xftfont_open): Check font width one by one also when
3068 spacing is dual.
3069
3070 * ftfont.c (ftfont_open): Ditto.
3071
3072 2010-06-30 Glenn Morris <rgm@gnu.org>
3073
3074 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3075
3076 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3077
3078 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3079 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3080 * s/darwin.h (SYSTEM_MALLOC):
3081 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3082
3083 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3084
3085 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3086 (ns_get_screen): Don't assign integer to f.
3087 (Fx_display_color_cells): Declarations before statements.
3088
3089 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3090
3091 * xfns.c (x_default_font_parameter): Remove got_from_system
3092 (Bug#6526).
3093
3094 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3095 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3096 defines based on what configure finds.
3097
3098 * xterm.c (XTflash): Use gtk_widget_get_window.
3099 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3100 gtk_adjustment_get_page_size.
3101 (handle_one_xevent): Use gtk_widget_get_mapped.
3102 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3103 messages.
3104
3105 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3106
3107 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3108 HAVE_GTK_FILE_SELECTION_NEW.
3109
3110 * gtkutil.c (xg_display_open, xg_display_close): Remove
3111 HAVE_GTK_MULTIDISPLAY, it is always defined.
3112 (xg_display_open): Return type is void.
3113 (gtk_widget_set_has_window)
3114 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3115 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3116 (gtk_adjustment_set_page_increment)
3117 (gtk_adjustment_get_step_increment): #define these if not found
3118 by configure.
3119 (remove_submenu): New define based on Gtk+ version.
3120 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3121 gtk_widget_get_window.
3122 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3123 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3124 (create_dialog): Use gtk_dialog_get_action_area and
3125 gtk_dialog_get_content_area.
3126 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3127 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3128 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3129 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3130 g_object_ref and g_object_unref.
3131 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3132 gtk_widget_get_sensitive.
3133 (xg_update_submenu): Use remove_submenu.
3134 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3135 properties instead to get old x and y position.
3136 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3137 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
3138 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
3139 (xg_get_tool_bar_widgets): New function.
3140 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3141 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3142 (toolbar_set_orientation): New #define based on if configure
3143 finds gtk_orientable_set_orientation.
3144 (xg_create_tool_bar): Call toolbar_set_orientation.
3145 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3146 instead of gtk_box_pack_start_defaults.
3147
3148 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
3149
3150 * cmds.c (Fdelete_backward_char): Move into Lisp.
3151
3152 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3153
3154 * s/freebsd.h (BSD4_2): Remove redundant definition.
3155 bsd-common.h defines it already.
3156
3157 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
3158
3159 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3160 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3161 tool-bar-mode, which are now set using these X resources at
3162 startup, to determine the defaults (Bug#2249).
3163
3164 * w32fns.c (Fx_create_frame):
3165 * nsfns.m (Fx_create_frame): Likewise.
3166
3167 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3168
3169 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
3170
3171 * gtkutil.c (xg_update_scrollbar_pos):
3172 Avoid C99 mid-block variable declaration.
3173
3174 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3175
3176 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3177
3178 * gtkutil.h (xg_show_scroll_bar): Remove.
3179
3180 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3181 if height is less than scroll bar min size.
3182 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3183
3184 * xfns.c (x_default_font_parameter): Try to open font from system
3185 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3186
3187 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
3188
3189 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3190
3191 2010-06-20 Eli Zaretskii <eliz@gnu.org>
3192
3193 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3194 most-positive-fixnum, be extra accurate when scrolling window
3195 start, to avoid missing the cursor line.
3196
3197 2010-06-19 Eli Zaretskii <eliz@gnu.org>
3198
3199 * xdisp.c (try_scrolling): Compute the limit for searching point
3200 in forward scroll from scroll_max, instead of an arbitrary limit
3201 of 10 screen lines. See
3202 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3203 and
3204 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3205 for details.
3206
3207 2010-06-16 Glenn Morris <rgm@gnu.org>
3208
3209 * editfns.c (Fbyte_to_string): Pacify compiler.
3210
3211 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3212
3213 * lread.c (read1): Phase out old-style backquotes a bit more.
3214
3215 2010-06-12 Eli Zaretskii <eliz@gnu.org>
3216
3217 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3218 bidimirror.h.
3219
3220 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3221
3222 * bidi.c (bidi_initialize): Remove explicit initialization of
3223 bidi_type_table; include biditype.h instead. Don't support
3224 entries whose second codepoint is zero. Initialize bidi_mirror_table.
3225 (bidi_mirror_char): Use bidi_mirror_table.
3226
3227 * biditype.h: New file.
3228
3229 * bidimirror.h: New file.
3230
3231 * window.c (syms_of_window): Doc fix (bug#6409).
3232
3233 2010-06-12 Romain Francoise <romain@orebokech.com>
3234
3235 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3236 ediff-hook.
3237
3238 2010-06-10 Glenn Morris <rgm@gnu.org>
3239
3240 * editfns.c (Fbyte_to_string): Pacify compiler.
3241
3242 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3243
3244 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3245
3246 * alloc.c (Fmake_byte_code): Don't access undefined argument
3247 (Bug#6517).
3248
3249 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
3250
3251 * xdisp.c (next_element_from_image): Ensure that after-strings are
3252 read the next time we hit handle_stop (Bug#1336).
3253
3254 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3255
3256 * lread.c (read1): Signal error if #s is not followed by paren.
3257
3258 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
3259
3260 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3261
3262 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3263
3264 2010-06-15 Glenn Morris <rgm@gnu.org>
3265
3266 * editfns.c (Fbyte_to_string): Pacify compiler.
3267
3268 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3269
3270 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3271 Check `object's type before accessing its guts.
3272
3273 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3274
3275 * s/usg5-4.h: Fix previous change.
3276 Suggested by Lawrence Mitchell <wence@gmx.li>
3277
3278 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3279
3280 * minibuf.c (Fall_completions): Add more checks.
3281
3282 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
3283
3284 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3285
3286 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3287
3288 * lread.c (X_OK): Remove, unused.
3289
3290 * dispnew.c: Remove obsolete comment.
3291
3292 Remove INCLUDED_FCNTL.
3293 * xterm.c (INCLUDED_FCNTL):
3294 * callproc.c (INCLUDED_FCNTL):
3295 * alloc.c (INCLUDED_FCNTL):
3296 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3297 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3298
3299 2010-06-07 Martin Rudalics <rudalics@gmx.at>
3300
3301 * window.c (Fselect_window): Move `record_buffer' up to the
3302 beginning of this function, so the buffer gets recorded
3303 even if the selected window does not change.
3304 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3305
3306 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
3307
3308 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3309 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3310
3311 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3312
3313 Remove BSTRING related code, all platforms define it.
3314 * s/usg5-4.h (BSTRING): Remove definition.
3315 * s/template.h (BSTRING):
3316 * s/msdos.h (BSTRING):
3317 * s/ms-w32.h (BSTRING):
3318 * s/hpux10-20.h (BSTRING):
3319 * s/gnu-linux.h (BSTRING):
3320 * s/darwin.h (BSTRING):
3321 * s/cygwin.h (BSTRING):
3322 * s/bsd-common.h (BSTRING):
3323 * s/aix4-2.h (BSTRING): Likewise.
3324 * sysdep.c: Remove code depending on BSTRING not being defined.
3325
3326 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
3327
3328 Remove obsolete macro BASE_LEADING_CODE_P.
3329 * character.h (BASE_LEADING_CODE_P): Remove.
3330 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3331 * buffer.c (Fset_buffer_multibyte):
3332 * indent.c (scan_for_column, compute_motion):
3333 * insdel.c (count_combining_before, count_combining_after):
3334 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3335
3336 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
3337
3338 Turn `directory-sep-char' into a noop.
3339
3340 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3341 (DIRECTORY_SEP): Define unconditionally.
3342
3343 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3344
3345 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3346 call dostounix_filename directly.
3347
3348 * fileio.c (CORRECT_DIR_SEPS): Remove.
3349 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3350 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3351 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3352 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3353
3354 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3355 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3356
3357 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3358
3359 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3360 (Bug#6346)
3361
3362 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3363
3364 * ccl.c (Fccl_program_p): Fix typo in docstring.
3365
3366 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3367
3368 Move UNEXEC definition to autoconf.
3369 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3370 * s/sol2-10.h (UNEXEC):
3371 * s/irix6-5.h (UNEXEC):
3372 * s/hpux10-20.h (UNEXEC):
3373 * s/gnu-linux.h (UNEXEC):
3374 * s/darwin.h (UNEXEC):
3375 * s/cygwin.h (UNEXEC):
3376 * s/bsd-common.h (UNEXEC):
3377 * s/aix4-2.h (UNEXEC):
3378 * m/alpha.h (UNEXEC): Likewise.
3379 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3380
3381 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3382
3383 Remove obsolete pre-unicode2 macros.
3384 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3385 * composite.c (composition_reseat_it):
3386 * data.c (Faset):
3387 * fns.c (Ffillarray):
3388 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3389 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3390
3391 2010-06-03 Juri Linkov <juri@jurta.org>
3392
3393 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3394 (Fswitch_to_buffer): Remove unused variable `err'.
3395
3396 2010-06-03 Glenn Morris <rgm@gnu.org>
3397
3398 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3399
3400 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3401 now that AH_BOTTOM does it.
3402
3403 * m/hp800.h (HAVE_ALLOCA):
3404 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3405
3406 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3407 Remove NOT_C_CODE tests, it is always true now.
3408
3409 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3410
3411 Fix config.h includes.
3412 * xsettings.c:
3413 * xgselect.c:
3414 * nsterm.m:
3415 * nsselect.m:
3416 * nsimage.m:
3417 * nsfont.m:
3418 * nsfns.m:
3419 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3420 other files do.
3421
3422 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3423
3424 * s/sol2-6.h: Remove obsolete comments.
3425
3426 Remove unnecessary alloca.h includes.
3427 * keymap.c: Do not include alloca.h, config.h does that.
3428 * sysdep.c: Likewise. Do not define fwrite, not used.
3429
3430 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3431
3432 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3433 the HAVE_TERMIO where it belongs (bug#6149).
3434
3435 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3436
3437 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3438 of bug#6305).
3439
3440 2010-05-30 Eli Zaretskii <eliz@gnu.org>
3441
3442 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3443 state is always cached (bug#6306).
3444
3445 2010-05-29 Eli Zaretskii <eliz@gnu.org>
3446
3447 Fix cursor motion in bidi-reordered continued lines.
3448 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3449 only after finding point's row. Fix the logic. Rewrite the loop
3450 over continuation lines in bidi-reordered buffers. Return
3451 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3452 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3453
3454 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
3455
3456 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3457
3458 2010-05-28 Kenichi Handa <handa@m17n.org>
3459
3460 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3461 Don't sheck SPEC if it is nil.
3462 (font_list_entities): Call font_delete_unmatched if
3463 Vface_ignored_fonts is non-nil. (Bug#6287)
3464
3465 2010-05-28 Glenn Morris <rgm@gnu.org>
3466
3467 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3468
3469 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3470
3471 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3472 whether to trash.
3473 (internal_delete_file, Frename_file): Callers changed.
3474 (delete_by_moving_to_trash): Doc fix.
3475 (Fdelete_directory_internal): Don't move to trash.
3476
3477 * callproc.c (delete_temp_file):
3478 * buffer.c (Fkill_buffer): Callers changed.
3479
3480 * lisp.h: Update prototype.
3481
3482 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3483
3484 * xdisp.c (redisplay_window): After redisplay, check if point is
3485 still valid before setting it (Bug#6177).
3486
3487 2010-05-27 Glenn Morris <rgm@gnu.org>
3488
3489 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3490 Convert comments to Makefile format.
3491
3492 * Makefile.in (bootstrap-clean): No more Makefile.c.
3493
3494 2010-05-26 Glenn Morris <rgm@gnu.org>
3495
3496 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3497 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3498
3499 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3500 Remove.
3501 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3502
3503 2010-05-26 Kenichi Handa <handa@m17n.org>
3504
3505 * composite.c (composition_compute_stop_pos): Fix condition for
3506 backward scanning.
3507
3508 2010-05-25 Glenn Morris <rgm@gnu.org>
3509
3510 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3511 Move before TEMACS_LDFLAGS.
3512 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3513 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3514
3515 * Makefile.in (NOT_C_CODE): No longer define.
3516 (config.h): No longer include.
3517
3518 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3519 variables it may reference.
3520
3521 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3522 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3523
3524 2010-05-25 Kenichi Handa <handa@m17n.org>
3525
3526 * dispextern.h (struct composition_it): New members rule_idx and
3527 charpos.
3528
3529 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3530 that the character positions of IT point the last character of the
3531 current grapheme cluster.
3532 (next_element_from_composition): Don't change character positions
3533 of IT.
3534 (append_composite_glyph): Set glyph->charpos to
3535 it->cmp_it.charpos.
3536
3537 * composite.c (autocmp_chars): Change the first argument to RULE,
3538 and try composition with RULE only.
3539 (composition_compute_stop_pos): Record the index number of the
3540 composition rule in CMP_IT->rule_idx.
3541 (composition_reseat_it): Call autocmp_chars repeatedly until the
3542 correct rule of the composition is found.
3543 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3544 is at the last character of the current grapheme cluster when
3545 CMP_IT->reversed_p is nonzero.
3546
3547 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3548
3549 * editfns.c (Fbyte_to_string): New function.
3550
3551 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3552
3553 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3554 Suggested by Masatake YAMATO <yamato@redhat.com>.
3555
3556 2010-05-23 Eli Zaretskii <eliz@gnu.org>
3557
3558 * dispextern.h (init_iterator): Sync prototype with changed definition.
3559
3560 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3561
3562 * s/netbsd.h: If terminfo is found, use it in preference to
3563 termcap. (Bug#6190) [Backport from trunk]
3564
3565 2010-05-19 Eli Zaretskii <eliz@gnu.org>
3566
3567 Redesign and reimplement bidi-aware edge positions of glyph rows.
3568
3569 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3570 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3571 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3572 and maxpos members instead of start.pos and end.pos, respectively.
3573
3574 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3575 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3576 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
3577 (try_window_reusing_current_matrix, try_window_id):
3578 Use ROW->minpos rather than ROW->start.pos.
3579 (init_from_display_pos, init_iterator): Use EMACS_INT for
3580 character and byte positions.
3581 (find_row_edges): Rename from find_row_end. Accept additional
3582 arguments for minimum and maximum buffer positions seen by
3583 display_line for this row. Don't use iterator to find the
3584 position following the maximum one; instead, increment the
3585 position found by display_line directly. Fix logic; eol_pos
3586 should be tested before the rest. Handle the case of characters
3587 delivered from display vector (bug#6036). Fix tests related to
3588 it->method. Handle the truncated_on_right_p rows.
3589 (RECORD_MAX_MIN_POS): New macro.
3590 (display_line): Use it to record the minimum and maximum buffer
3591 positions for glyphs in the row being assembled. Record the
3592 position of the newline that terminates the line. If word wrap is
3593 in effect, restore minimum and maximum positions seen up to the
3594 wrap point, when iterator returns to it.
3595 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3596 row and cursor not already at point. Restore original pre-bidi
3597 code for unidirectional buffers.
3598
3599 * dispnew.c (increment_row_positions, check_matrix_invariants):
3600 Increment and check row->start.pos and row->end.pos, in addition
3601 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3602
3603 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3604 Display truncated_on_left_p and truncated_on_right_p flags.
3605 Formatting fixes.
3606 (pmtxrows): Display the ordinal number of each row. Don't display
3607 rows beyond the last one.
3608
3609 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3610 it is not copied by bidi_copy_it.
3611
3612 2010-05-22 Eli Zaretskii <eliz@gnu.org>
3613
3614 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3615 (Bug#6237)
3616
3617 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
3618
3619 * image.c (Fimage_flush): Rename from image-refresh.
3620
3621 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
3622
3623 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3624 just one window.
3625
3626 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3627 (clear_image_cache): If the number of cached images is unusually
3628 large, decrease the cache eviction delay (Bug#6230).
3629
3630 2010-05-21 Glenn Morris <rgm@gnu.org>
3631
3632 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3633 Move these rules to ns.mk.
3634 * ns.mk: New file.
3635
3636 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3637
3638 * Makefile.in (CANNOT_DUMP): New, set by configure.
3639 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3640
3641 2010-05-20 Juri Linkov <juri@jurta.org>
3642
3643 * fileio.c (Fdelete_file): Change interative spec to use
3644 `read-file-name' like in `find-file-read-args' where the default
3645 value is `default-directory' instead of `buffer-file-name'.
3646 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3647
3648 2010-05-20 Kevin Ryde <user42@zip.com.au>
3649
3650 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3651 (Voverriding_terminal_local_map, Vsystem_key_alist)
3652 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3653
3654 2010-05-20 Glenn Morris <rgm@gnu.org>
3655
3656 * Makefile.in (DEPDIR): New constant.
3657 (DEPFLAGS): Set with configure, not cpp.
3658 (MKDEPDIR): New, set by configure.
3659 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3660 (clean): Use $DEPDIR.
3661 (deps_frag): Include from configure.
3662 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3663 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3664
3665 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3666 reallocation of the cache. (Bug#6210)
3667
3668 2010-05-19 Glenn Morris <rgm@gnu.org>
3669
3670 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3671
3672 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3673 (GNULIB_VAR): Remove.
3674 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3675
3676 * m/ibms390x.h (LINKER):
3677 * m/macppc.h (LINKER) [GNU_LINUX]:
3678 * s/aix4-2.h (ORDINARY_LINK):
3679 * s/cygwin.h (LINKER):
3680 * s/darwin.h (ORDINARY_LINK):
3681 * s/gnu.h (ORDINARY_LINK):
3682 * s/netbsd.h (LINKER):
3683 * s/usg5-4.h (ORDINARY_LINK):
3684 Move to configure.
3685
3686 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3687
3688 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3689
3690 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3691 prevent stack overflow if number of arguments is too large
3692 (Bug#6214).
3693
3694 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3695
3696 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3697
3698 2010-05-18 Glenn Morris <rgm@gnu.org>
3699
3700 * s/gnu-linux.h: Combine two conditionals.
3701
3702 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3703 $(POST_ALLOC_OBJ).
3704
3705 * Makefile.in (RALLOC_OBJ): New, set by configure.
3706 (rallocobj): Replace with the previous variable.
3707 (otherobj): Use $RALLOC_OBJ.
3708
3709 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3710 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3711
3712 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3713 (gmallocobj, vmlimitobj): Replace with previous two variables.
3714 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3715
3716 2010-05-17 Glenn Morris <rgm@gnu.org>
3717
3718 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3719 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3720
3721 2010-05-16 Glenn Morris <rgm@gnu.org>
3722
3723 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3724
3725 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3726
3727 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3728 trailing "/".
3729
3730 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3731 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3732
3733 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3734 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3735 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3736 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3737 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3738
3739 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3740 Remove ${STARTFLAGS}, nothing ever sets it.
3741
3742 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3743
3744 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3745
3746 2010-05-16 Glenn Morris <rgm@gnu.org>
3747
3748 * Makefile.in (LIBX_BASE): Always define.
3749
3750 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3751
3752 * Makefile.in (LIBXT): Always define.
3753
3754 2010-05-15 Glenn Morris <rgm@gnu.org>
3755
3756 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3757
3758 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3759 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3760
3761 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3762
3763 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3764 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3765
3766 * emacs.c (main): Initialize initial-environment and
3767 process-environment before generating from env, not after.
3768
3769 Handle --version reasonably in CANNOT_DUMP configuration.
3770 * emacs.c (emacs_version, emacs_copyright): New string variables.
3771 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3772 (syms_of_emacs): Defvar them, and initialize them from the C
3773 string variables.
3774 (main): If initialization hasn't been done, print initial version
3775 info from the C strings, instead of starting an interactive session.
3776
3777 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3778
3779 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3780 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3781 (bidi_paragraph_init): Remove redundant assertion that we are at
3782 the beginning of a line after call to bidi_find_paragraph_start.
3783
3784 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3785 (syms_of_xdisp): Defsubr it.
3786
3787 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3788
3789 * Makefile.in: Fix MSDOS-related comments.
3790
3791 2010-05-15 Glenn Morris <rgm@gnu.org>
3792
3793 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3794 (really-lwlib, really-oldXMenu): Always define.
3795 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3796
3797 * Makefile.in: Simplify cpp conditional.
3798
3799 * Makefile.in (${ns_appdir}): Simplify using umask.
3800
3801 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3802
3803 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3804
3805 * eval.c (specbind): Remove left-over duplicate test.
3806 Disallow let-binding frame-local vars. Add comment.
3807
3808 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3809
3810 Make the cache of bidi iterator states dynamically allocated.
3811 * bidi.c (bidi_cache_shrink): New function.
3812 (bidi_init_it): Call it.
3813 (bidi_cache_iterator_state): Enlarge the cache if needed.
3814
3815 * bidi.c (bidi_move_to_visually_next): Rename from
3816 bidi_get_next_char_visually. All callers changed.
3817
3818 2010-05-14 Kenichi Handa <handa@m17n.org>
3819
3820 * dispextern.h (struct composition_it): New member reversed_p.
3821
3822 * composite.c (composition_compute_stop_pos): Search backward if
3823 ENDPOS < CHARPOS.
3824 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3825 Set CMP_IT->reversed_p.
3826 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3827
3828 * xdisp.c (set_iterator_to_next):
3829 Call composition_compute_stop_pos with negative ENDPOS if we are
3830 scanning backward. Call composition_compute_stop_pos if scan
3831 direction is changed.
3832 (next_element_from_buffer): Call composition_compute_stop_pos with
3833 negative ENDPOS if we are scanning backward.
3834 (next_element_from_composition): Pay attention to
3835 IT->cmp_it.reversed_p.
3836
3837 2010-05-14 Kenichi Handa <handa@m17n.org>
3838
3839 * font.c (font_range): Return the range for the font found at first.
3840
3841 2010-05-14 Glenn Morris <rgm@gnu.org>
3842
3843 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3844
3845 * Makefile.in (mktime, X11, register): Move undefs to configure.
3846
3847 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3848 (MSDOS_X_OBJ): New variable.
3849 (MSDOS_SUPPORT_REAL): New constant.
3850 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3851 (obj): Use MSDOS_X_OBJ.
3852 (lisp): Use MSDOS_SUPPORT as a variable.
3853
3854 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3855 (GPM_MOUSE_SUPPORT): Now it's a constant.
3856 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3857 not cpp.
3858
3859 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3860 (ns_appresdir): Remove, unused.
3861
3862 * Makefile.in (SHELL): Move outside cpp section.
3863
3864 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3865
3866 2010-05-13 Glenn Morris <rgm@gnu.org>
3867
3868 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3869 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3870
3871 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3872 HAVE_WINDOW_SYSTEM must be too.
3873
3874 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3875 (lisp): Remove WINNT_SUPPORT.
3876
3877 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3878 Let configure set these variables (to empty) in this case as well.
3879
3880 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3881 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3882
3883 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3884 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3885 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3886 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3887 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3888 the values output by configure.
3889 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3890
3891 2010-05-12 Glenn Morris <rgm@gnu.org>
3892
3893 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3894 (LINKER_WAS_SPECIFIED): Remove.
3895
3896 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3897 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3898 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3899 * s/cygwin.h (LIB_GCC):
3900 * s/freebsd.h (LIB_GCC):
3901 * s/gnu-linux.h (LIB_GCC):
3902 * s/msdos.h (LIB_GCC):
3903 * s/netbsd.h (LIB_GCC):
3904 Move to configure.
3905
3906 2010-05-11 Karel Klic <kklic@redhat.com>
3907
3908 * ftfont.c: Fix incorrect parentheses of #if condition for
3909 definining M17N_FLT_USE_NEW_FEATURE.
3910
3911 2010-05-11 Glenn Morris <rgm@gnu.org>
3912
3913 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3914 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3915
3916 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3917
3918 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3919 unibyte buffers. See
3920 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3921
3922 2010-05-10 Glenn Morris <rgm@gnu.org>
3923
3924 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3925 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3926 (LIBES): Use LIBS_SYSTEM as a variable.
3927 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3928 * s/aix4-2.h (LIBS_SYSTEM):
3929 * s/freebsd.h (LIBS_SYSTEM):
3930 * s/hpux10-20.h (LIBS_SYSTEM):
3931 * s/sol2-6.h (LIBS_SYSTEM):
3932 * s/unixware.h (LIBS_SYSTEM):
3933 Move to configure.
3934
3935 * s/aix4-2.h (MAIL_USE_LOCKF):
3936 * s/bsd-common.h (MAIL_USE_FLOCK):
3937 * s/darwin.h (MAIL_USE_FLOCK):
3938 * s/gnu-linux.h (MAIL_USE_FLOCK):
3939 * s/irix6-5.h (MAIL_USE_FLOCK):
3940 * s/template.h (MAIL_USE_FLOCK):
3941 Move to configure.
3942
3943 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3944
3945 * Version 23.2 released.
3946
3947 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3948
3949 * composite.c (autocmp_chars): Save point as marker before calling
3950 auto-composition-function (Bug#5984).
3951
3952 * lisp.h (restore_point_unwind): Add prototype.
3953
3954 * fileio.c (restore_point_unwind): Remove static attribute.
3955
3956 2010-05-08 Kenichi Handa <handa@m17n.org>
3957
3958 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3959 new feature of libotf and m17n-flt.
3960 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3961 Call OTF_check_features even if no specific feature is given.
3962 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3963 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3964 that OUT is NULL. Use OTF_drive_gsub_with_log and
3965 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3966 OTF_drive_gpos.
3967 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
3968 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3969 Setup mflt_enable_new_feature and mflt_try_otf.
3970
3971 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3972
3973 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3974
3975 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3976 box and toolbar (Bug #6139).
3977 (xg_create_tool_bar): Remove comment (Bug #6139).
3978 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3979 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3980
3981 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
3982
3983 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3984 Update dependencies.
3985
3986 2010-05-08 Eli Zaretskii <eliz@gnu.org>
3987
3988 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3989 R2L lines.
3990
3991 2010-05-08 Glenn Morris <rgm@gnu.org>
3992
3993 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3994
3995 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3996 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3997 (termcapobj): Replace with TERMCAP_OBJ.
3998 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3999 (LIBES): Use LIBS_TERMCAP as a variable.
4000
4001 * s/freebsd.h (osreldate.h): No longer include, since this file
4002 does not use __FreeBSD_version any more.
4003
4004 * s/aix4-2.h (TERMINFO):
4005 * s/cygwin.h (TERMINFO):
4006 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4007 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4008 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4009 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4010 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4011 * s/irix6-5.h (TERMINFO):
4012 * s/netbsd.h (LIBS_TERMCAP):
4013 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4014 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4015 * s/usg5-4.h (TERMINFO):
4016 Move to configure.
4017
4018 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4019
4020 * eval.c (unbind_to): Don't unbind a local binding into the global
4021 binding when the local binding disappeared. Inversely, don't unbind
4022 a global binding into a newly created local binding.
4023 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4024 can specify the frame to use, when applicable. Adjust callers.
4025
4026 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
4027 Stefan Monnier <monnier@iro.umontreal.ca>
4028
4029 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4030
4031 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4032
4033 * w32fns.c: Include w32.h.
4034 (Fw32_shell_execute): Decode the error message before passing it
4035 to `error'. (Bug#6126)
4036
4037 * msdos.c (dos_set_window_size):
4038 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4039 instead of `XSYMBOL (foo)->value'.
4040
4041 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4042
4043 Fix the MS-DOS build, broken by autoconfiscation.
4044
4045 * Makefile.in: Don't use Make-style comments past the "start of
4046 cpp stuff" line.
4047 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4048
4049 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4050 edited directly by msdos/sed1v2.inp).
4051
4052 2010-05-07 Glenn Morris <rgm@gnu.org>
4053
4054 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4055 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4056 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4057 move out of cpp section.
4058 * s/freebsd.h (LD_SWITCH_SYSTEM):
4059 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4060 * s/netbsd.h (LD_SWITCH_SYSTEM):
4061 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4062
4063 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4064
4065 Define LIB_STANDARD and START_FILES using autoconf.
4066 * s/usg5-4.h (LIB_STANDARD):
4067 * s/netbsd.h (START_FILES):
4068 * s/irix6-5.h (LIB_STANDARD):
4069 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4070 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4071 * s/freebsd.h (START_FILES):
4072 * s/darwin.h (START_FILES):
4073 * s/cygwin.h (START_FILES):
4074 * s/aix4-2.h (LIB_STANDARD):
4075 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4076 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4077 autoconf, not cpp.
4078
4079 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4080
4081 Remove NEED_BSDTTY and NEED_UNISTD_H.
4082 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4083 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4084 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4085 <sys/ptyio.h> and <unistd.h>.
4086
4087 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4088
4089 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4090 * s/gnu.h (START_FILES): Remove empty definition.
4091
4092 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4093
4094 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4095
4096 2010-05-06 Glenn Morris <rgm@gnu.org>
4097
4098 * Makefile.in (CPP, LN_S): Remove unused variables.
4099
4100 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4101
4102 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4103
4104 2010-05-05 Lawrence Mitchell <wence@gmx.li>
4105
4106 * m/sparc.h: Fix typo in earlier change.
4107
4108 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 Misc tweaks.
4111 * eval.c (Fdefvaralias): Remove unintended nested if.
4112 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4113
4114 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
4115
4116 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4117
4118 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4119
4120 Remove BSD_PGRPS.
4121 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4122 * s/gnu-linux.h (BSD_PGRPS): Remove.
4123 * term.c (dissociate_if_controlling_tty):
4124 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4125 (init_sys_modes, reset_sys_modes):
4126 * emacs.c (main):
4127 * callproc.c (Fcall_process, child_setup): Remove code depending
4128 on BSD_PGRPS.
4129
4130 Remove POSIX_SIGNALS.
4131 * s/usg5-4.h (POSIX_SIGNALS):
4132 * s/netbsd.h (POSIX_SIGNALS):
4133 * s/msdos.h (POSIX_SIGNALS):
4134 * s/ms-w32.h (POSIX_SIGNALS):
4135 * s/hpux11.h (POSIX_SIGNALS):
4136 * s/gnu.h (POSIX_SIGNALS):
4137 * s/gnu-linux.h (POSIX_SIGNALS):
4138 * s/freebsd.h (POSIX_SIGNALS):
4139 * s/darwin.h (POSIX_SIGNALS):
4140 * s/cygwin.h (POSIX_SIGNALS):
4141 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4142 * s/unixware.h:
4143 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4144 * process.c (create_process):
4145 * syssignal.h:
4146 * sysdep.c (wait_for_termination, init_signals):
4147 * process.c (create_process):
4148 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4149 remove all code that assumes the contrary.
4150
4151 2010-05-04 Glenn Morris <rgm@gnu.org>
4152
4153 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4154 variable.
4155 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4156 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4157 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4158 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4159 LD_SWITCH_SYSTEM_tmp.
4160 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4161 New variables, set by configure.
4162
4163 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4164 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4165 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4166 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4167 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4168
4169 * s/aix4-2.h (C_SWITCH_SYSTEM):
4170 * m/alpha.h (C_SWITCH_MACHINE):
4171 Move to configure.in.
4172 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4173 New variables, set by configure.
4174 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4175 $c_switch_machine and $c_switch_system.
4176
4177 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4178
4179 * s/hpux10-20.h (LIB_STANDARD): New definition.
4180 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4181 on it, not used anymore.
4182
4183 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
4184
4185 * eval.c (internal_condition_case_n): Rename from
4186 internal_condition_case_2.
4187 (internal_condition_case_2): New function.
4188
4189 * xdisp.c (safe_call): Use internal_condition_case_n.
4190
4191 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4192 (internal_delete_file, Frename_file): Callers changed.
4193
4194 * buffer.c (Fkill_buffer):
4195 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4196
4197 * lisp.h: Update prototypes.
4198
4199 2010-05-03 Glenn Morris <rgm@gnu.org>
4200
4201 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4202 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4203 (LIBXT): Set with configure, not cpp.
4204 (LIBX): Remove.
4205 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4206
4207 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4208
4209 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4210 The FreeBSD is not needed, the default works, Solaris version is
4211 not needed, and the remaining case is not supported by configure.
4212
4213 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4214
4215 * xsmfns.c (CHDIR_OPT): New define.
4216 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4217 restarting emacs.
4218
4219 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4220 shut_down_emacs.
4221
4222 * emacs.c (USAGE1): Mention --chdir.
4223 (main): Handle --chdir.
4224 (standard_args): Add --chdir.
4225 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4226 #5552).
4227
4228 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4229
4230 Remove LD_SWITCH_MACHINE.
4231 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4232 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4233
4234 Clean up IRIX code.
4235 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4236 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4237
4238 Clean up AIX code.
4239 * m/ibmrs6000.inp: Remove file, unused.
4240 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4241 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4242 definition ...
4243 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4244
4245 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4246 unused.
4247
4248 2010-05-01 Eli Zaretskii <eliz@gnu.org>
4249
4250 Emulate POSIX_SIGNALS on MS-Windows.
4251
4252 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4253 (SIG_SETMASK, SIG_UNBLOCK): Define.
4254
4255 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4256 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4257 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4258
4259 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4260 New stubs.
4261
4262 Miscellaneous fixes of bidi display.
4263
4264 * xdisp.c (find_row_end): New function, refactored from display_line.
4265 (display_line): Use it.
4266 (extend_face_to_end_of_line): In almost-filled rows, extend only
4267 if the row is R2L and not continued.
4268 (display_line): Fix prepending of truncation glyphs to R2L rows.
4269 Preserve overlay and string info in row->end.
4270 (insert_left_trunc_glyphs): Support addition of left truncation
4271 glyphs to R2L rows.
4272 (set_cursor_from_row): Don't place cursor on the vertical border
4273 glyph between adjacent windows. Fix a crash when a display string
4274 is continued to the next line. Don't return zero if cursor was
4275 found by `cursor' property of a display string.
4276 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4277 test for that explicitly.
4278
4279 2010-05-01 Glenn Morris <rgm@gnu.org>
4280
4281 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4282 for clarity.
4283 (OTHER_OBJ): Remove.
4284 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4285 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4286
4287 2010-05-01 Karel Klíč <kklic@redhat.com>
4288
4289 * fileio.c (Ffile_selinux_context): Context functions may return null.
4290
4291 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4292
4293 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
4294
4295 2010-04-30 Glenn Morris <rgm@gnu.org>
4296
4297 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4298 (OTHER_OBJ): Define as a separate variable, for clarity.
4299
4300 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4301
4302 * xsettings.c: include limits.h and update file comment.
4303
4304 2010-04-30 Glenn Morris <rgm@gnu.org>
4305
4306 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4307 Set with configure, not cpp.
4308 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4309
4310 * Makefile.in (mallocobj): Remove.
4311 (otherobj): Simplify using @OTHER_OBJ@.
4312
4313 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4314 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4315 Don't bother making nsgui.h dependency platform-specific.
4316
4317 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4318
4319 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4320
4321 * process.c (read_process_output, exec_sentinel): Don't burp if the
4322 sentinel/filter kills the current buffer (bug#6060).
4323
4324 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
4325 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4326 Remove unused var `args'.
4327 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4328 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4329 * doc.c (store_function_docstring): Use XSETCAR.
4330
4331 2010-04-28 Glenn Morris <rgm@gnu.org>
4332
4333 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4334 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4335
4336 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4337
4338 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4339 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4340
4341 * Makefile.in (FONT_OBJ): New, set by configure.
4342 (FONT_DRIVERS): Use $FONT_OBJ.
4343
4344 * Makefile.in (LIBXMU): Set with configure, not cpp.
4345 * s/aix4-2.h (LIBXMU):
4346 * s/hpux10-20.h (LIBXMU):
4347 Remove definition, now set in configure.
4348
4349 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4350
4351 * m/amdx86-64.h [i386]: Move this test to configure.in.
4352
4353 2010-04-27 Glenn Morris <rgm@gnu.org>
4354
4355 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4356 * s/unixware.h (NEED_LIBW): Remove definition.
4357
4358 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4359 (TOOLKIT_LIBW): New, set by configure.
4360 (@X_TOOLKIT_TYPE@): No longer define it.
4361
4362 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4363 (MOTIF_LIBW): Set with configure, not cpp.
4364 * s/aix4-2.h (LIB_MOTIF):
4365 * s/gnu-linux.h (LIB_MOTIF):
4366 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4367
4368 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4369
4370 Reduce CPP usage.
4371 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4372 (obj): Use autoconf for unexec instead of cpp.
4373 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4374 definitions and undefs. Inline definitions in the only user.
4375 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
4376
4377 2010-04-27 Glenn Morris <rgm@gnu.org>
4378
4379 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4380 since the defaults (set by the system file) are fine in most cases.
4381 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4382 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4383 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4384 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4385 Remove definitions, since they are set correctly in s/gnu-linux.h.
4386 * s/freebsd.h (START_FILES, LIB_STANDARD):
4387 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4388 * s/hpux10-20.h (START_FILES):
4389 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4390 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4391
4392 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4393 (MOTIF_LIBW): Use $LIBXP.
4394 (otherobj): Use $WIDGET_OBJ.
4395
4396 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4397
4398 * Makefile.in (LIBS_MACHINE): Remove, unused.
4399
4400 Use autoconf instead of cpp for LIB_MATH.
4401 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4402 * s/cygwin.h (LIB_MATH): Likewise.
4403 * Makefile.in (LIB_MATH): Do not define with cpp.
4404 (LIBES): Use autoconf for LIB_MATH.
4405
4406 2010-04-26 Kenichi Handa <handa@m17n.org>
4407
4408 * composite.c (Ffind_composition_internal): Fix the return value
4409 for an automatic composition.
4410
4411 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4412
4413 Remove all NO_ARG_ARRAY uses.
4414 * fns.c (concat2, concat3, nconc2):
4415 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4416 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4417 * m/xtensa.h (NO_ARG_ARRAY):
4418 * m/template.h (NO_ARG_ARRAY):
4419 * m/sparc.h (NO_ARG_ARRAY):
4420 * m/sh3.h (NO_ARG_ARRAY):
4421 * m/mips.h (NO_ARG_ARRAY):
4422 * m/macppc.h (NO_ARG_ARRAY):
4423 * m/iris4d.h (NO_ARG_ARRAY):
4424 * m/intel386.h (NO_ARG_ARRAY):
4425 * m/ibms390x.h (NO_ARG_ARRAY):
4426 * m/ibms390.h (NO_ARG_ARRAY):
4427 * m/ibmrs6000.h (NO_ARG_ARRAY):
4428 * m/ia64.h (NO_ARG_ARRAY):
4429 * m/hp800.h (NO_ARG_ARRAY):
4430 * m/arm.h (NO_ARG_ARRAY):
4431 * m/amdx86-64.h (NO_ARG_ARRAY):
4432 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4433
4434 2010-04-25 Eli Zaretskii <eliz@gnu.org>
4435
4436 * xdisp.c (display_line): Don't assume 2nd call to
4437 get_next_display_element cannot return zero. (Bug#6030)
4438 (iterate_out_of_display_property): New function, body from pop_it.
4439 (pop_it): Use it.
4440
4441 2010-04-24 Glenn Morris <rgm@gnu.org>
4442
4443 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4444 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4445 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4446 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4447
4448 2010-04-24 Eli Zaretskii <eliz@gnu.org>
4449
4450 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4451 use `get_next_display_element' and `set_iterator_to_next' to
4452 advance to the next character, when looking for the character that
4453 begins the next row.
4454
4455 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
4456 definition of "struct Lisp_Symbol".
4457
4458 2010-04-24 Glenn Morris <rgm@gnu.org>
4459
4460 * Makefile.in (CRT_DIR): New variable, set by configure.
4461 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4462 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4463
4464 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4465
4466 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4467
4468 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4469
4470 Remove redundant flags.
4471 * s/freebsd.h (C_SWITCH_SYSTEM):
4472 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4473 * s/netbsd.h (C_SWITCH_SYSTEM):
4474 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4475 of these.
4476
4477 Simplify m/intel386.h.
4478 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4479 user: ecrt0.c.
4480 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4481 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4482 the only user: s/unixware.h.
4483 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4484 from m/intel386.h.
4485 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4486 moved here from m/intel386.h.
4487
4488 * m/mips.h: Remove #if 0 code.
4489
4490 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4491
4492 Fix display of composed characters from L2R scripts in bidi buffers.
4493 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4494 After advancing IT past the composition, resync the bidi iterator
4495 with IT's position. (Bug#5977)
4496
4497 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4498
4499 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4500 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4501
4502 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4503
4504 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4505
4506 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4507
4508 Support `display' text properties and overlay strings in bidi buffers.
4509 * xdisp.c (pop_it): When the stack is popped after displaying
4510 from a string, bidi-iterate to exit from the text portion covered
4511 by the `display' property or overlay. (Bug#5988, bug#5920)
4512
4513 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4514
4515 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4516 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4517
4518 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4519 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4520
4521 Simplify STARTFILES definition.
4522 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4523 relying on Makefile.in to define it.
4524 * s/cygwin.h (START_FILES): Likewise.
4525 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4526
4527 Clean up Solaris code.
4528 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4529 (LIB_MOTIF): Remove, configure takes care of this.
4530 (NOT_USING_MOTIF): Remove, unused.
4531 * xrdb.c: Remove #if 0-ed #include.
4532 (SYSV): Remove conditional for old SysV.
4533 * sysdep.c (closedir): Remove conditional code for Solaris,
4534 Solaris has closedir.
4535
4536 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4537
4538 * xsettings.c (read_and_apply_settings): Check if current_font is
4539 NULL before strcmp (Bug#6001).
4540
4541 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4542
4543 Clean up HP-UX files.
4544 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4545 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4546 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4547 * s/hpux10-20.h: ... to the only user, here.
4548
4549 2010-04-21 Eli Zaretskii <eliz@gnu.org>
4550
4551 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4552 use buffer-local values of paragraph-start and paragraph-separate.
4553 <paragraph_start_re, paragraph_separate_re>: Rename from
4554 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4555 (Bug#5992)
4556
4557 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4558
4559 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4560 current_tool_bar_style are new.
4561 (store_config_changed_event): Rename from store_font_changed_event.
4562 (XSETTINGS_TOOL_BAR_STYLE): New define.
4563 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4564 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4565 HAVE_XFT.
4566 (something_changedCB): store_font_changed_event is now
4567 store_config_changed_event.
4568 (parse_settings): Rename from parse_xft_settings. Read
4569 non-xft xsettings outside #ifdef HAVE_XFT.
4570 (read_settings): Renamed from read_xft_settings.
4571 (apply_xft_settings): Take current settings as parameter. Do not
4572 call read_(xft)_settings.
4573 (read_and_apply_settings): New function.
4574 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4575 read_and_apply_settings if there are settings to be read.
4576 (init_xsettings): Renamed from init_xfd_settings.
4577 Call read_and_apply_settings unconditionally.
4578 (xsettings_initialize): Call init_xsettings.
4579 (Ftool_bar_get_system_style): New function.
4580 (syms_of_xsettings): Define Qmonospace_font_name and
4581 Qtool_bar_style. Initialize current_tool_bar_style to nil.
4582 defsubr Stool_bar_get_system_style. Fprovide on
4583 dynamic-setting.
4584 Move misplaced HAVE_GCONF
4585
4586 * xsettings.h (Ftool_bar_get_system_style): Declare.
4587
4588 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4589 Qtext, Qboth, Qboth_horiz are new.
4590 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4591 Vtool_bar_style, tool_bar_max_label_size.
4592
4593 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4594
4595 * keyboard.c: QClabel is new.
4596 (parse_tool_bar_item): Take out QClabel from tool bar items.
4597 Try to construct a label if ther is no QClabel.
4598 (syms_of_keyboard): Intern :label as QClabel.
4599
4600 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4601 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4602 New.
4603
4604 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4605 dynamic-setting.el.
4606
4607 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4608 (xg_make_tool_item, xg_show_toolbar_item): New function.
4609 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4610 Call xg_make_tool_item to make a tool bar item.
4611 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4612
4613 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4614 into account for toolbars.
4615
4616 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4617
4618 * data.c (make_blv): Declarations before code (Bug#5993).
4619
4620 2010-04-21 Glenn Morris <rgm@gnu.org>
4621
4622 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4623 Define using autoconf, not cpp.
4624 (LIBXSM): New variable, set by autoconf.
4625 (LIBXT): Use $LIBXSM.
4626
4627 2010-04-21 Dan Nicolaescu <local_user@dannlt>
4628
4629 Remove NOMULTIPLEJOBS, unused.
4630 * s/template.h (NOMULTIPLEJOBS):
4631 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4632
4633 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4634 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4635 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4636 detects -znocombreloc and passes it to the linker
4637 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4638
4639 2010-04-21 Glenn Morris <rgm@gnu.org>
4640
4641 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4642
4643 2010-04-21 Karel Klíč <kklic@redhat.com>
4644
4645 * Makefile.in (LIBSELINUX_LIBS): New.
4646 (LIBES): Add $LIBSELINUX_LIBS.
4647 * eval.c, lisp.h (call7): New function.
4648 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4649 (Ffile_selinux_context, Fset_file_selinux_context):
4650 New functions.
4651 (Fcopy_file): New parameter preserve-selinux-context.
4652 (Frename_file): Preserve selinux context when renaming by copy-file.
4653
4654 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
4655 Eli Zaretskii <eliz@gnu.org>
4656
4657 Don't depend on cm.c or termcap.c on Windows, use stubs.
4658 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4659 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4660 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4661 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4662 (sys_tputs, sys_tgetstr): New stubs.
4663 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4664 (tputs, tgetstr): New; define to sys_*.
4665
4666 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
4667
4668 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4669
4670 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4671
4672 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4673 Just signal a warning rather than an error when inside a let.
4674 (Fmake_variable_frame_local): Add the same test.
4675
4676 * font.c (syms_of_font): Make the style table vars read-only.
4677
4678 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4679 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4680
4681 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4682
4683 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4684
4685 Fix R2L paragraph display on TTY.
4686
4687 * xdisp.c (unproduce_glyphs): New function.
4688 (display_line): Use it when produced glyphs are discarded from R2L
4689 glyph rows.
4690 (append_composite_glyph): In R2L rows, prepend the glyph rather
4691 than appending it.
4692
4693 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4694 rather than append it. Set up the resolved_level and bidi_type
4695 attributes of the appended glyph.
4696 (produce_special_glyphs): Mirror the backslash continuation
4697 character in R2L lines.
4698
4699 Implement display of R2L paragraphs in GUI sessions.
4700
4701 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4702 append_stretch_glyph.
4703 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4704 off-by-one error in computing x at end of text in the row.
4705 (append_stretch_glyph): In reversed row, prepend the glyph rather
4706 than append it. Set resolved_level and bidi_type of the glyph.
4707 (extend_face_to_end_of_line): If the row is reversed, prepend a
4708 stretch glyph whose width is such that the rightmost glyph will be
4709 drawn at the right margin of the window. Fix off-by-one error on
4710 TTY frames in testing whether a line needs face extension. Fix
4711 face extension at ZV. If this is the last glyph row, use
4712 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4713 region face.
4714 (set_cursor_from_row, display_line): Use
4715 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4716 row->continuation_lines_width.
4717 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4718 are at ZV. Fixes a crash when reseated to ZV by
4719 try_window_reusing_current_matrix.
4720 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4721 which happens with R2L glyph rows. Fixes a crash when inserting a
4722 character at end of an R2L line.
4723 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4724 treat them as having zero-width characters. Improve comments.
4725 Don't reverse pos_before and pos_after for reversed glyph rows.
4726 Set cursor.x to negative value when the cursor might be on the
4727 left fringe.
4728 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4729 left fringe, not the right one.
4730 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4731 (erase_phys_cursor): For reversed cursor_row, support cursor on
4732 the left fringe.
4733
4734 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4735 of continuation indicators on the fringes.
4736 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4737 left fringe.
4738
4739 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4740 draw cursor on the left fringe.
4741
4742 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4743 cursor on the left fringe.
4744
4745 * dispnew.c (update_text_area): Handle reversed desired rows when
4746 the cursor is on the left fringe.
4747 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4748 below, not by 0, for when the cursor is on the left fringe.
4749
4750 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4751
4752 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4753 widget is a scrollbar.
4754
4755 2010-04-20 Kenichi Handa <handa@m17n.org>
4756
4757 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4758 only when the arg CHARSET_LIST is nil.
4759
4760 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4761
4762 Make variable forwarding explicit rather the using special values.
4763 Basically, this makes the structure of buffer-local values and object
4764 forwarding explicit in the type of Lisp_Symbols rather than use
4765 special Lisp_Objects for that. This tends to lead to slightly more
4766 verbose code, but is more C-like, simpler, and makes it easier to make
4767 sure we handled all cases, among other things by letting the compiler
4768 help us check it.
4769 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4770 Removing forwarding objects.
4771 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4772 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4773 explicit rather than hiding them inside Lisp_Object "values".
4774 (XFWDTYPE): New macro.
4775 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4776 (XBUFFER_LOCAL_VALUE): Remove.
4777 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4778 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4779 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4780 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4781 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4782 Remove the Lisp_Misc_* header.
4783 (struct Lisp_Buffer_Local_Value): Redefine.
4784 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4785 (struct Lisp_Misc_Any): Add filler to get the right size.
4786 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4787 Lisp_Intfwd.
4788 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4789 (DEFVAR_KBOARD): Allocate a forwarding object.
4790 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4791 (let_shadows_global_binding_p): New function.
4792 (union Lisp_Val_Fwd): New type.
4793 (make_blv): New function.
4794 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4795 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4796 (swap_in_symval_forwarding, find_symbol_value, Fset)
4797 (let_shadows_buffer_binding_p, set_internal, default_value)
4798 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4799 (Fkill_local_variable, Fmake_variable_frame_local)
4800 (Flocal_variable_p, Flocal_variable_if_set_p)
4801 (Fvariable_binding_locus):
4802 * xdisp.c (select_frame_for_redisplay):
4803 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4804 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4805 * frame.c (store_frame_param):
4806 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4807 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4808 value structure.
4809 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4810 (clone_per_buffer_values): Only adjust markers into the current buffer.
4811 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4812 (Fbuffer_local_value, set_buffer_internal_1)
4813 (swap_out_buffer_local_variables):
4814 Adapt to the new symbol value structure.
4815 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4816 (defvar_per_buffer): Take a new arg for the fwd object.
4817 (buffer_lisp_local_variables): Return a proper alist (different fix
4818 for bug#4138).
4819 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4820 (Fgarbage_collect): Don't handle buffer_defaults specially.
4821 (mark_object): Handle new symbol value structure rather than the old
4822 special Lisp_Misc_* objects.
4823 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4824 * term.c (set_tty_color_mode):
4825 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4826 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4827 a buffer_local_flags.
4828 * print.c (print_object): Get rid of impossible forwarding objects.
4829
4830 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4831
4832 * bidi.c (bidi_get_type, bidi_get_category)
4833 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4834 (bidi_type_of_next_char, bidi_level_of_next_char):
4835 Declare static. Use `INLINE' rather than `inline'.
4836
4837 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4838
4839 * dired.c (Ffile_attributes): Fix typo in docstring.
4840
4841 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4842
4843 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4844 NSInteger (Bug#5811).
4845
4846 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4847
4848 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4849 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4850
4851 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4852
4853 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4854
4855 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4856
4857 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4858 terminal frames (Bug#5837).
4859
4860 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4861
4862 * .gdbinit (xsubchartable): New command.
4863
4864 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4865
4866 * xdisp.c (display_line): Don't write beyond the last glyph row in
4867 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4868 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4869 and
4870 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4871
4872 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4873
4874 * alloc.c (Fpurecopy): Hash-cons if requested.
4875 (syms_of_alloc): Update purify-flag docstring.
4876
4877 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4878
4879 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4880 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4881
4882 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4883
4884 Fix a crash when an NSM character is inserted at BEGV.
4885
4886 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4887 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4888 NEUTRAL_B or UNKNOWN_BT.
4889
4890 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4891
4892 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4893 other rows with cursor unless they are different from this row and
4894 this row is part of a continued line. (Bug#5943)
4895
4896 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4897
4898 * s/freebsd.h: Restore osreldate.h include.
4899 Suggested by Naohiro Aota.
4900
4901 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4902
4903 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4904
4905 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4906
4907 * s/cygwin.h: Avoid linking against static libgcc.
4908
4909 2010-04-15 Juri Linkov <juri@jurta.org>
4910
4911 * window.c: Add Qscroll_command.
4912 Remove Vscroll_preserve_screen_position_commands.
4913 (window_scroll_pixel_based, window_scroll_line_based): Check the
4914 `scroll-command' property on the last command instead of searching
4915 the last command in Vscroll_preserve_screen_position_commands.
4916 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4917 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4918 (scroll-preserve-screen-position): Doc fix.
4919 (Vscroll_preserve_screen_position_commands): Remove variable.
4920
4921 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4922
4923 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4924
4925 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4926
4927 Reduce cpp use in Makefile.in.
4928 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4929 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4930 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4931 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4932 (CRT0_COMPILE): Remove, inline it in the only user.
4933
4934 2010-04-14 Juri Linkov <juri@jurta.org>
4935
4936 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4937 `scroll-up-command' and `M-v' from `scroll-down' to
4938 `scroll-down-command'.
4939
4940 2010-04-14 Juri Linkov <juri@jurta.org>
4941
4942 * window.c (Vscroll_preserve_screen_position_commands): New variable
4943 with the default value as the list of Qscroll_down and Qscroll_up.
4944 (window_scroll_pixel_based, window_scroll_line_based): Search the
4945 last command in the list Vscroll_preserve_screen_position_commands
4946 instead of comparing with Qscroll_up and Qscroll_down.
4947
4948 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4949
4950 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4951 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4952 does that.
4953
4954 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4955 to zero.
4956
4957 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4958
4959 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4960
4961 Try to solve the problem of spurious EOF chars in long lines of text
4962 sent to interactive subprocesses.
4963 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4964 (system_process_attributes): Remove unused var `ttotal'.
4965 * process.c (send_process): Don't bother breaking long line with EOF
4966 chars when talking to ttys any more.
4967 (wait_reading_process_output): Output a warning when called in such
4968 a way that it could block without being interruptible.
4969
4970 Try to detect file modification within the same second.
4971 * buffer.h (struct buffer): New field modtime_size.
4972 * buffer.c (reset_buffer): Initialize it.
4973 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4974 (Fverify_visited_file_modtime): Check it.
4975 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4976 (Fset_visited_file_modtime): Set (or clear) it.
4977
4978 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4979
4980 * process.c (status_notify): Remove unused var `ro'.
4981
4982 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4983
4984 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4985 more than one visual (Bug#5938).
4986
4987 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4988
4989 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4990 Undefine.
4991
4992 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4993
4994 Remove C_SWITCH_SYSTEM_TEMACS.
4995 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4996 (malloc, realloc, free): Use emacs, not temacs for conditional
4997 definition.
4998
4999 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5000 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5001
5002 Use autoconf, not cpp for some variables.
5003 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5004 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5005 (ALL_CFLAGS): Use them as make variables.
5006 (really-lwlib, really-oldXMenu): Do not pass them.
5007
5008 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5009
5010 * xmenu.c (apply_systemfont_to_dialog): New.
5011 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5012
5013 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5014
5015 * process.c (exec_sentinel): Preserve current-buffer.
5016
5017 * process.c (read_process_output): Move the save-current-buffer to
5018 apply to both the filter and the non-filter branches.
5019
5020 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5021
5022 * s/msdos.h (UNEXEC): New definition.
5023
5024 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5025
5026 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5027 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5028
5029 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5030 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5031 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5032 TRY_WINDOW_CHECK_MARGINS.
5033
5034 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5035 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5036 width only when it is for padding.
5037
5038 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5039
5040 * xfns.c (Fx_show_tip): Call try_window in a loop until
5041 fonts_changed_p is zero (Bug#2423).
5042
5043 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5044
5045 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5046 the end of TEXT_AREA. (Bug#5856)
5047
5048 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5049
5050 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5051 HAVE_GCONF.
5052
5053 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5054
5055 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5056 prev.orig_type, for resolving type of NSM. (Bug#5858)
5057
5058 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5059
5060 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5061 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5062 in current_font.
5063 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
5064 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5065 New functions.
5066 (syms_of_xsettings): Initialize current_font.
5067 defsubr Sfont_get_system_normal_font.
5068
5069 * xsettings.h (Ffont_get_system_normal_font)
5070 (xsettings_get_system_normal_font): Declare.
5071
5072 * xfns.c (extern xlwmenu_default_font): Remove.
5073 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5074 to xlwmenu.c.
5075
5076 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5077 menu items in UTF-8.
5078
5079 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5080 (apply_systemfont_to_menu): New function.
5081 (set_frame_menubar, create_and_show_popup_menu): Call
5082 apply_systemfont_to_menu.
5083
5084 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5085
5086 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5087 FRAME_LINE_TO_PIXEL_Y.
5088
5089 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5090 pixelwidth/height.
5091
5092 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5093
5094 Simplify code for HP machines.
5095 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5096 for GNU_LINUX, not needed.
5097 (UNEXEC, NEED_BSDTTY): Move definitions...
5098 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5099
5100 * m/iris4d.h (UNEXEC): Move definition ...
5101 * s/irix6-5.h (UNEXEC): ... here.
5102
5103 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5104
5105 * xfns.c (set_machine_and_pid_properties): New function.
5106 (Fx_create_frame): Call set_machine_and_pid_properties.
5107
5108 2010-04-03 Eli Zaretskii <eliz@gnu.org>
5109
5110 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5111 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5112 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5113
5114 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5115 in this function. (Bug#5703)
5116
5117 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
5118
5119 * nsterm.h: Fix last change.
5120
5121 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5122
5123 * m/intel386.h (NO_REMAP): Move definition ...
5124 * s/msdos.h (NO_REMAP): ... here.
5125
5126 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5127
5128 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5129 used on those platforms.
5130
5131 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5132
5133 Remove extern errno declarations.
5134 * xterm.c:
5135 * xrdb.c:
5136 * w32term.c:
5137 * unexec.c:
5138 * unexaix.c:
5139 * sysdep.c:
5140 * process.c:
5141 * lread.c:
5142 * keyboard.c:
5143 * floatfns.c:
5144 * filelock.c:
5145 * fileio.c:
5146 * emacs.c (main):
5147 * ecrt0.c:
5148 * dispnew.c:
5149 * callproc.c:
5150 * buffer.c: Remove errno extern declarations.
5151 * s/netbsd.h (NEED_ERRNO): Remove.
5152
5153 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5154
5155 Remove all uses of LIBX11_SYSTEM.
5156 * Makefile.in (LIBX11_SYSTEM): Remove.
5157 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5158 instead.
5159
5160 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5161
5162 Remove support for DJGPP v1.x (bug#5813).
5163
5164 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
5165 * s/msdos.h:
5166 * unexec.c (make_hdr, copy_text_and_data):
5167 * sysdep.c (wait_for_termination, sys_subshell):
5168 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
5169 (IT_set_terminal_modes, __write, _rename, gethostname)
5170 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5171 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5172 the value of __DJGPP__.
5173 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5174 compatibility code.
5175 * lread.c:
5176 * gmalloc.c (memalign):
5177 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5178 * emacs.c (main):
5179 * dosfns.c (init_dosfns):
5180 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5181
5182 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5183
5184 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5185 string with `cursor' property comes from an `after-string'
5186 overlay. (Bug#5816)
5187
5188 2010-04-01 Glenn Morris <rgm@gnu.org>
5189
5190 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5191 Define as Makefile variables.
5192 (LIBX): Use above variables rather than directly using autoconf.
5193
5194 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5195
5196 Clean up BSD_SYSTEM use.
5197 * xterm.c:
5198 * process.c:
5199 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5200 for including <sys/ioctl.h>.
5201 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5202 code is only used for MSDOS.
5203
5204 2010-03-31 Juri Linkov <juri@jurta.org>
5205
5206 * image.c: Add `Qextension_data'.
5207 (syms_of_image): Initialize and staticpro `Qextension_data'.
5208 (Fimage_metadata): Rename from `Fimage_extension_data'.
5209 (gif_load): Put GIF extension data to the property
5210 `Qextension_data'.
5211
5212 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5213
5214 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5215 * nsterm.h: Fix prototype.
5216
5217 2010-03-31 Eli Zaretskii <eliz@gnu.org>
5218
5219 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5220 trailing whitespace in right-to-left rows.
5221
5222 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5223
5224 Get rid of the direct_output optimizations.
5225 * keyboard.c (nonundocount): Remove extern declaration.
5226 (command_loop_1): Remove brittle optimisation for cheap and
5227 common operations.
5228 * xdisp.c (redisplay_internal): Don't bother checking
5229 redisplay_performed_directly_p any more.
5230 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5231 any more.
5232 * dispnew.c (redisplay_performed_directly_p)
5233 (direct_output_for_insert, direct_output_forward_char):
5234 * dispextern.h (redisplay_performed_directly_p)
5235 (direct_output_for_insert, direct_output_forward_char): Remove.
5236 * cmds.c (nonundocount): Make it static.
5237
5238 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
5239
5240 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5241
5242 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
5243
5244 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5245 invisible (Bug#5766).
5246
5247 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
5248
5249 * xdisp.c (x_consider_frame_title, update_window_cursor):
5250 Remove HAVE_NS conditionals.
5251 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
5252
5253 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5254 filename for the title.
5255 (ns_set_doc_edited): Do nothing if the selected window is a
5256 minibuffer window.
5257
5258 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5259 ns_set_doc_edited.
5260
5261 * nsterm.m: Remove unneeded prototype.
5262
5263 2010-03-31 Glenn Morris <rgm@gnu.org>
5264
5265 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5266 in the DOC file. (Bug#5336)
5267
5268 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5269
5270 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5271
5272 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5273
5274 * window.c (keys_of_window): Remove redundant/overridden bindings.
5275
5276 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5277
5278 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5279 Restore original behavior when the iterator is not bidi_p.
5280
5281 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5282
5283 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5284
5285 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5286
5287 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5288 are outside the range of cached character positions.
5289
5290 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
5291
5292 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5293
5294 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5295
5296 Initial support for bidirectional editing.
5297
5298 * Makefile.in (obj): Include bidi.o.
5299 (bidi.o): New target.
5300
5301 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5302 ($(BLD)/bidi.$(O)): New target.
5303
5304 * bidi.c: New file.
5305
5306 * buffer.h (struct buffer): New members bidi_display_reordering
5307 and bidi_paragraph_direction.
5308
5309 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5310 and bidi_paragraph_direction.
5311 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5312 and bidi-paragraph-direction.
5313 (Fbuffer_swap_text): Swap the values of
5314 bidi_display_reordering and bidi_paragraph_direction.
5315
5316 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5317 (bidi_type_t, bidi_dir_t): New types.
5318 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5319 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5320 prev_stop, base_level_stop, and eol_pos.
5321 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5322 (IT_STACK_SIZE): Enlarge to 5.
5323 (struct glyph_row): New member reversed_p.
5324 <string_buffer_position>: Update prototype.
5325 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5326 glyph_row if bidi_it.paragraph_dir == R2L.
5327 (struct glyph): New members resolved_level and bidi_type.
5328
5329 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5330 processing or buffer's direction is right-to-left.
5331 (prepare_desired_row): Preserve the reversed_p flag.
5332 (row_equal_p): Compare the reversed_p attributes as well.
5333
5334 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5335 bidi_init_it and set it->paragraph_embedding from the current
5336 buffer's value of bidi_paragraph_direction.
5337 (reseat_1): Initialize bidi_it.first_elt.
5338 (set_iterator_to_next, next_element_from_buffer): Use the value of
5339 paragraph_embedding to determine the paragraph direction.
5340 (set_iterator_to_next): Under bidi reordering, call
5341 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5342 new_paragraph flag is set in the bidi iterator.
5343 (next_element_from_buffer): If bidi_it.first_elt is set,
5344 initialize paragraph direction and find the first character to
5345 display in the visual order. If reseated to a middle of a line,
5346 prime the bidi iterator starting at the line's beginning. Handle
5347 the situation where we overstepped stop_charpos due to
5348 non-linearity of the bidi iteration. Likewise for when we back up
5349 beyond the previous stop_charpos. When moving across stop_charpos,
5350 record it in prev_stop.
5351 (display_line): Set row->end and it->start for the next row to the
5352 next character in logical order. Always extend reversed_p rows to
5353 the end of line, even if they end at ZV. Copy the reversed_p flag
5354 to the next glyph row. Keep calling set_cursor_from_row for
5355 bidi-reordered rows even if we already have a possible candidate
5356 for cursor position. Set row_end after all the row's glyphs have
5357 been produced, by looping over the glyphs. Record the position
5358 after EOL in it->eol_pos, and use it to set end_pos of the last
5359 row produced for a continued line.
5360 <Qright_to_left, Qleft_to_right>: New variables.
5361 (syms_of_xdisp): Initialize and staticpro them.
5362 (string_buffer_position_lim): New function.
5363 (string_buffer_position): Most of code moved to
5364 string_buffer_position_lim. Last argument and return value are
5365 now EMACS_INT; all callers changed.
5366 (set_cursor_from_row): Rewritten to support bidirectional text and
5367 reversed glyph rows.
5368 (text_outside_line_unchanged_p, try_window_id): Disable
5369 optimizations if we are reordering bidirectional text and the
5370 paragraph direction can be affected by the change.
5371 (append_glyph, append_composite_glyph)
5372 (produce_image_glyph, append_stretch_glyph): Set the
5373 resolved_level and bidi_type members of each glyph.
5374 (append_glyph): If the glyph row is reversed, prepend the glyph
5375 rather than appending it.
5376 (handle_stop_backwards): New function.
5377 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5378 (reseat): call handle_stop_backwards to recompute prev_stop and
5379 base_level_stop for the new position.
5380 (handle_invisible_prop): Under bidi iteration, skip invisible text
5381 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5382 paragraph direction. Update IT->prev_stop after skipping
5383 invisible text.
5384 (move_it_in_display_line_to): New variables prev_method
5385 and prev_pos. Compare for strict equality in
5386 BUFFER_POS_REACHED_P.
5387 (try_cursor_movement): Examine all the candidate rows that occlude
5388 point, to return the best match. If rows are bidi-reordered
5389 and point moved backwards, back up to the row that is not a
5390 continuation line, and start looking for a suitable row from
5391 there.
5392
5393 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5394 rather than appending, if the glyph_row's reversed_p flag is set.
5395 Set the resolved_level and bidi_type members of each glyph.
5396
5397 * .gdbinit (pbiditype): New command.
5398 (pgx): Use it to display bidi level and type of the glyph.
5399 (pitx): Display some bidi information about the iterator.
5400 (prowlims, pmtxrows): New commands.
5401
5402 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5403
5404 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5405 * s/usg5-4.h (LIBS_DEBUG):
5406 * s/irix6-5.h (C_DEBUG_SWITCH):
5407 * s/gnu-linux.h (LIBS_DEBUG):
5408 * s/darwin.h (LIBS_DEBUG):
5409 * s/bsd-common.h (LIBS_DEBUG):
5410 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5411 * m/iris4d.h (LIBS_DEBUG):
5412 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5413
5414 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5415 (LIBS_DEBUG): Remove definition.
5416
5417 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
5418
5419 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5420 Windows.
5421
5422 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5423
5424 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5425 `connect' (Bug#5723).
5426
5427 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
5428
5429 * process.c (Fmake_network_process): Call `select' for interrupted
5430 `connect' rather than creating new socket (Bug#5173).
5431
5432 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
5433
5434 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5435
5436 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5437
5438 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5439
5440 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5441
5442 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5443 XLoadQueryFont.
5444
5445 2010-03-24 Kenichi Handa <handa@m17n.org>
5446
5447 * coding.c (decode_coding_ccl): Fix previous change for the
5448 multibyte case.
5449 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5450 case that the output buffer is fullfilled.
5451 (encode_coding): Setup ccl program here.
5452
5453 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5454
5455 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5456
5457 Simplify LIBS_MACHINE definitions.
5458 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5459 * m/iris4d.h (LIBS_MACHINE): Likewise.
5460 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5461 * s/aix4-2.h (LIBS_SYSTEM): ... here.
5462 * s/netbsd.h: Remove commented out code.
5463
5464 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5465
5466 Remove dead code dealing with POSIX_SIGNALS.
5467 * atimer.c (set_alarm): Remove dead code, all USG systems define
5468 POSIX_SIGNALS.
5469 * data.c (arith_error): Likewise.
5470 * keyboard.c (input_available_signal, handle_user_signal)
5471 (interrupt_signal): Likewise.
5472 * process.c (sigchld_handler): Likewise.
5473 (create_process): Remove if 0 code. Remove HPUX conditional when
5474 !defined (POSIX_SIGNALS), it cannot be true.
5475 * syssignal.h: Remove USG5_4 and USG conditionals when
5476 !POSIX_SIGNALS, they cannot be true.
5477
5478 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5479 NO_SOCK_SIGIO, not used anymore.
5480
5481 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5482
5483 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5484 support vax on BSDs.
5485
5486 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5487 * s/aix4-2.h (ORDINARY_LINK): ... here.
5488
5489 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5490
5491 * Makefile.in (abs_builddir): Define.
5492 (bootstrap_exe): Use it.
5493 (VPATH): Use $(srcdir) instead of @srcdir@.
5494
5495 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5496
5497 * Makefile.in (bootstrap_exe): Use an absolute name.
5498
5499 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5500
5501 Remove support for old GNU/Linux using libc version 5.
5502 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5503 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5504
5505 Consolidate redundant definitions in s/bsd-common.h.
5506 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5507 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5508 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5509 doing it in all files that include this one.
5510 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5511 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5512 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5513 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5514 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5515 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5516 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5517 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5518 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5519
5520 Consolidate redundant definitions.
5521 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5522 it's undefined in all files that include this one.
5523 (POSIX_SIGNALS): Define here instead of doing it in all files that
5524 include this one.
5525 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5526 (POSIX_SIGNALS): Do not define.
5527 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5528 (POSIX_SIGNALS): Do not define.
5529 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5530 (POSIX_SIGNALS): Do not define.
5531
5532 Remove support for old UNIX System V systems.
5533 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5534 * s/usg-5-4-2.h: Remove.
5535
5536 Remove support for Solaris on PPC and for old versions.
5537 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5538 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5539 that cancel each other.
5540 * s/sol2-3.h:
5541 * s/sol2-4.h:
5542 * s/sol2-5.h: Remove.
5543 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5544 (NO_REMAP): Remove, unused.
5545 (UNEXEC): Move definition ...
5546 * s/aix4-2.h (UNEXEC): ... here.
5547
5548 * s/openbsd.h: Remove support for non-ELF and for systems that do
5549 not support shared libraries.
5550 * s/netbsd.h:
5551 * s/freebsd.h: Likewise.
5552
5553 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5554
5555 Remove non-working support for lynxos 3.0.
5556 * s/lynxos.h: Remove file.
5557
5558 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5559 COFF_BSD_SYMBOLS, nothing defines it anymore.
5560
5561 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5562
5563 Remove obsolete uses of HAVE_SHM.
5564 * emacs.c (standard_args):
5565 (Fdump_emacs):
5566 (syms_of_emacs): Remove code depending on HAVE_SHM.
5567
5568 * alloc.c: Remove HAVE_SHM dependent definition.
5569
5570 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5571
5572 2010-03-18 Glenn Morris <rgm@gnu.org>
5573
5574 * emacs.c (USAGE4): Hard-code bug address.
5575 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5576 (bug_reporting_address): Remove.
5577 (main): Don't call bug_reporting_address.
5578
5579 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5580 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5581
5582 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
5583
5584 * xfns.c (Fx_create_frame):
5585 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5586 on left.
5587
5588 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5589
5590 * editfns.c (Fformat): Account for string precision when computing
5591 field width (Bug#5710).
5592
5593 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
5594
5595 * xfns.c (Fx_create_frame): Set default to Qright.
5596
5597 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5598 all window systems.
5599
5600 2010-03-12 Eli Zaretskii <eliz@gnu.org>
5601
5602 These changes remove termcap.c from the build on Posix platforms.
5603 * Makefile.in (termcapobj): Move termcap.o from here...
5604 (MSDOS_OBJ): ...to here.
5605 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5606 now identical to when LIBS_TERMCAP is defined.
5607
5608 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5609
5610 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5611
5612 * config.in: Regenerated. (See top-level ChangeLog.)
5613
5614 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
5615
5616 * Branch for 23.2.
5617
5618 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5619
5620 Cleanup setup of gl_state in various parts of the code.
5621 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5622 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5623 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5624 (skip_chars):
5625 * regex.c (regex_compile): Use it.
5626 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5627 it's now set in regex_compile when/if we need it.
5628
5629 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5630
5631 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5632 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5633 (QUIT): Use it to consolidate code and remove redundancy.
5634 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5635
5636 * regex.c (regex_compile): Setup gl_state as well.
5637
5638 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5639 (in_classes): Use CONSP before XCAR/XCDR.
5640
5641 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
5642
5643 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5644 definitions, so that keyboard macros are correctly handled
5645 (Bug#5481).
5646
5647 2010-03-02 Eli Zaretskii <eliz@gnu.org>
5648
5649 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5650 text that could be relocated inside the call to emacs_mule_char.
5651 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5652 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5653
5654 2010-03-02 Kenichi Handa <handa@m17n.org>
5655
5656 * character.c (parse_str_as_multibyte): Fix handling of the
5657 multibyte form of raw-bytes.
5658 (str_as_multibyte): Likewise.
5659
5660 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5661 form of raw-bytes.
5662
5663 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * charset.c (load_charset_map_from_file)
5666 (load_charset_map_from_vector): Zero out allocated
5667 charset_map_entries before using them.
5668
5669 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5670
5671 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5672
5673 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
5674
5675 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5676 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
5677
5678 2010-02-26 Kenichi Handa <handa@m17n.org>
5679
5680 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5681
5682 * xdisp.c (reseat_to_string): Fix previous change.
5683
5684 2010-02-26 David Reitter <david.reitter@gmail.com>
5685
5686 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5687 Lisp_Object (Bug#4736).
5688
5689 2010-02-25 Kenichi Handa <handa@m17n.org>
5690
5691 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5692
5693 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5694
5695 * xterm.c (XTflash): Move declarations before statements.
5696
5697 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5698 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5699 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5700 (xg_create_tool_bar): Remove unused variables.
5701 (x_wm_set_size_hint): Move declarations before statements.
5702 (xg_create_frame_widgets): Remove variable grav.
5703
5704 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5705
5706 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5707
5708 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5709
5710 * term.c (fatal): Add a final \n if needed (bug#5596).
5711
5712 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5715
5716 2010-02-18 Glenn Morris <rgm@gnu.org>
5717
5718 * callint.c (Finteractive): Doc fix.
5719
5720 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5721
5722 * coding.c (record_conversion_result):
5723 Handle CODING_RESULT_INSUFFICIENT_DST.
5724 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5725 memory allocation error.
5726
5727 2010-02-17 Kenichi Handa <handa@m17n.org>
5728
5729 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5730 Fix for the case that the output buffer is fullfilled.
5731 (decode_coding): Setup ccl program here. Keep looping when the
5732 decoder stopped because the output buffer is
5733 fullfilled (bug#5534).
5734
5735 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5736
5737 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5738
5739 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5740 bug #5571.
5741 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5742 overdrawn.
5743
5744 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5745
5746 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5747 doing_interact here.
5748 (ice_connection_closed): New function.
5749 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5750 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5751 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5752 returns I/O error.
5753 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5754 bug #5512.
5755
5756 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5757
5758 * nsfont.m (nsfont_open): The system's value for the font descent
5759 is negative, so round it down to avoid clipping.
5760
5761 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5762
5763 * charset.c (load_charset_map_from_file)
5764 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5765 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5766
5767 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5768
5769 * charset.c (load_charset_map_from_file): Allocate large
5770 charset_map_entries structure on the heap rather than the stack.
5771 (Bug#5526).
5772
5773 2010-01-31 Kenichi Handa <handa@m17n.org>
5774
5775 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5776 size in NAME is invalid, return -1 (Bug#5396).
5777
5778 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5779
5780 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5781 <deactivated@gmail.com> (Bug#3605).
5782
5783 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5784
5785 * fileio.c (Frename_file): Correctly rename symlinks to
5786 directories (Bug#5496).
5787
5788 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5789
5790 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5791
5792 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5793
5794 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5795
5796 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5797
5798 * frame.c (DEFAULT_ROWS): Change default to 35.
5799
5800 * xfns.c (x_default_font_parameter): Change default XFT font to
5801 monospace-10 (Bug#3643).
5802
5803 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5804
5805 * w32inevt.c (key_event): Remove unnecessary comparison of
5806 event->uChar.AsciiChar with 128.
5807
5808 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5809
5810 * fileio.c (Frename_file): Fix last change (Bug#5487).
5811
5812 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5813
5814 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5815
5816 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5817
5818 * xfns.c (Fx_create_frame): Remove window size matching code from
5819 2010-01-15.
5820 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5821
5822 2010-01-27 Jason Rumney <jasonr@gnu.org>
5823
5824 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5825 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5826
5827 2010-01-27 Kenichi Handa <handa@m17n.org>
5828
5829 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5830 pattern string (Bug#4209).
5831
5832 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5833
5834 * fileio.c (Frename_file): Call copy-directory and
5835 delete-directory for directories, in order to handle cross-device
5836 renaming (Bug#3353).
5837
5838 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5839
5840 * xfns.c (Fx_create_frame): If frame height is too big, try
5841 sizes 24 and 10. Bug #3643.
5842
5843 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5844
5845 Try and fix bug#788, hopefully for real this time.
5846 * keymap.c (shadow_lookup): Add `remap' arg.
5847 (describe_map, describe_vector): Update calls to shadow_lookup.
5848 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5849 `remapped' so this flag is applicable to `sequence'. Be careful to
5850 perform remapping during shadow_lookup check of remapped_sequences.
5851
5852 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5853
5854 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5855 png_check_sig, which has been removed in libpng 1.4.
5856
5857 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5858
5859 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5860 lacks this header file).
5861
5862 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5863
5864 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5865 as in Emacs 22.
5866
5867 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5868
5869 * lisp.h (make_pure_string): String pointer arg now points to const.
5870
5871 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5872 args now point to const.
5873
5874 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5875
5876 * lread.c (Fload): Don't treat files without .elc extension as
5877 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5878 them. (bug#5303)
5879
5880 2010-01-20 Kenichi Handa <handa@m17n.org>
5881
5882 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5883 treat the source as actual byte sequence.
5884
5885 2010-01-19 Alan Mackenzie <acm@muc.de>
5886
5887 Fix spurious before-change-functions invocation from (insert ?\n).
5888 * textprop.c (set_text_properties): Rename parameter
5889 `signal_after_change_p' to `coherent_change_p', and make the
5890 invocation of `modify_region' conditional on it.
5891
5892 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5893
5894 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5895 for debug purpose.
5896 (syms_of_xsettings): Declare xft-settings.
5897
5898 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5899
5900 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5901
5902 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5903
5904 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5905
5906 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5907
5908 * emacs.c (standard_args): Adjust arg priorities to reflect how
5909 they are processed in startup.el.
5910
5911 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5912
5913 * Makefile.in (lisp, shortlisp): Update.
5914
5915 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5916
5917 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5918 code, link the new kboard into all_kboard before running Lisp code,
5919 and protect the new terminal with GCPRO (Bug#5365).
5920 (x_term_init): Remove unused var `atom'.
5921 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5922
5923 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5924
5925 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5926 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5927 to find out usable size of the desktop. Don't make frames larger than
5928 this. Bug #3643.
5929
5930 2010-01-15 Kenichi Handa <handa@m17n.org>
5931
5932 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5933
5934 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5935
5936 * nsterm.m (Qnone): Define.
5937
5938 * nsfns.m (Qnone): Move definition to nsterm.m.
5939
5940 2010-01-14 Kenichi Handa <handa@m17n.org>
5941
5942 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5943 systems.
5944
5945 2010-01-14 Kenichi Handa <handa@m17n.org>
5946
5947 Make auto-composition work on all buffers even if they are
5948 fundamental mode.
5949
5950 * composite.c (Vauto_composition_mode): New variable.
5951 (composition_compute_stop_pos): Check Vauto_composition_mode
5952 instead of Vauto_composition_function.
5953 (composition_adjust_point, Ffind_composition_internal): Likewise.
5954 (syms_of_composite): Declare Lisp variable
5955 "auto-composition-mode" here.
5956
5957 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5958
5959 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5960 during call to vendor-specific-keysyms (Bug#5365).
5961
5962 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5963
5964 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5965 Call SIGNAL_THREAD_CHECK (Bug#5333).
5966
5967 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5968 Call SIGNAL_THREAD_CHECK.
5969
5970 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5971
5972 Try to fix bug#5314. This is probably not the final word, tho.
5973 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5974 recent-auto-save-p as a side-effect.
5975 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5976 * buffer.c (Fkill_buffer, reset_buffer):
5977 * editfns.c (Fsubst_char_in_region):
5978 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5979 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5980
5981 2010-01-13 Kenichi Handa <handa@m17n.org>
5982
5983 Display buffer name, etc. in mode line by composing correctly.
5984
5985 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5986 STRING is not nil.
5987 (display_mode_element): Adjust for the change of
5988 decode_mode_spec and display_line.
5989 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5990 (display_string): Handle the case that STRING is non-null and
5991 LISP_STRING is not nil.
5992
5993 * xterm.c (x_draw_composite_glyph_string_foreground):
5994 Pay attention to s->face->overstrike.
5995
5996 * composite.c (composition_reseat_it): Don't check PT if STRING is
5997 non nil.
5998
5999 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6000
6001 * keyboard.c (read_char): Don't apply previous change when current
6002 buffer is unchanged by command execution.
6003
6004 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6005
6006 * keyboard.c (read_char): Return after executing from special map.
6007
6008 2010-01-12 Glenn Morris <rgm@gnu.org>
6009
6010 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6011 bug-gnu-emacs rather than emacs-pretest-bug.
6012
6013 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6016 initializing the Lisp variables that depend on them.
6017
6018 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6019
6020 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6021 Clear areas that will not be updated after change of menu bar lines.
6022 Clear the menu bar window's current matrix when the window gets empty.
6023
6024 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
6025
6026 * intervals.h, textprop.c (extend_property_ranges): Return value
6027 and args changed. Discard properties that begin at or after the
6028 new end (Bug#5306).
6029
6030 * editfns.c (Fformat): Caller changed.
6031
6032 * nsterm.m (ns_set_default_prefs): Delete function.
6033 (syms_of_nsterm): Initialize ns_command_modifier,
6034 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6035 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6036
6037 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6038 position (Bug#4040).
6039
6040 2010-01-09 Eli Zaretskii <eliz@gnu.org>
6041
6042 * editfns.c (Ffloat_time): Doc fix.
6043
6044 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6045
6046 * xfns.c (Fx_create_frame): Don't create frame larger than display
6047 by default bug#3643.
6048
6049 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6050
6051 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6052 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6053 windows above internal border.
6054
6055 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6056 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6057 windows above internal border.
6058
6059 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6060 tool bar windows specially.
6061
6062 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6063
6064 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6065 specially.
6066 (XTflash): Take account of menu bar height.
6067
6068 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6069 specially.
6070
6071 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6072
6073 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
6074 also be true before we can return early (bug #5339).
6075
6076 2010-01-06 David Reitter <david.reitter@gmail.com>
6077
6078 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6079 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6080 (Bug#3233).
6081
6082 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6083
6084 * font.c (font_open_entity): Enable chache and call cached_font_ok
6085 for the driver if defined.
6086 (QCuser_spec): New symbol.
6087 (font_spec_from_name): Save name as user-spec.
6088 (font_load_for_lface): Keep user-spec instead of name.
6089 (font_open_by_name): Save name as user-spec.
6090 (syms_of_font): Initialize QCuser_spec.
6091 (font_clear_prop): Clear name if it exists in font (bug#5157).
6092
6093 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6094 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6095 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6096
6097 * font.h (struct font_driver): Add cached_font_ok.
6098
6099 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6100
6101 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6102
6103 * xterm.c (x_new_font): Move code for setting rows/cols before
6104 resizing ...
6105 (x_set_window_size): ... to here. Bug #2568.
6106
6107 * gtkutil.c (xg_clear_under_internal_border): New function.
6108 (xg_frame_resized, xg_frame_set_char_size):
6109 Call xg_clear_under_internal_border.
6110 (xg_update_scrollbar_pos): Clear under old scroll bar position.
6111
6112 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
6113
6114 * keyboard.c (read_key_sequence): Catch keyboard switch after
6115 making a new tty frame (Bug#5095).
6116
6117 2010-01-05 Kenichi Handa <handa@m17n.org>
6118
6119 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6120
6121 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6122
6123 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6124 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6125 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6126
6127 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
6128
6129 * dbusbind.c (xd_add_watch): Improve debug message.
6130 (xd_remove_watch): Improve debug message. If DATA is the session
6131 bus, unset D-Bus session environment.
6132 (Fdbus_init_bus): Pass the bus as argument to
6133 dbus_connection_set_watch_functions. (Bug#5283)
6134
6135 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
6136
6137 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6138
6139 * lread.c (syms_of_lread): Make it clearer that these are the
6140 names of loaded files (Bug#5068).
6141
6142 * eval.c (run_hook_with_args): Handle the case where the global
6143 value has the obsolete single-function form (Bug#5026).
6144
6145 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
6146
6147 * minibuf.c (Fall_completions): Minor optimization.
6148
6149 2009-12-26 Eli Zaretskii <eliz@gnu.org>
6150
6151 * .gdbinit (pgx): Fix display of composite glyphs.
6152 Display cmp.from and cmp.to as well.
6153 (pitx): Fix last change.
6154
6155 2009-12-25 Kenichi Handa <handa@m17n.org>
6156
6157 * composite.h (composition_adjust_point): Update prototype.
6158
6159 * composite.c (composition_reseat_it): Don't make a composition
6160 spanning over point.
6161 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6162 composable characters.
6163 (composition_adjust_point): New arg NEW_PT. Callers changed.
6164
6165 * keyboard.c (command_loop_1): Force redisplay if the last point
6166 was within a composition.
6167 (adjust_point_for_property): Don't adjust point for automatic
6168 composition when called after buffer modification.
6169
6170 2009-12-19 Eli Zaretskii <eliz@gnu.org>
6171
6172 * .gdbinit (pitx): Don't use enum names, use their values.
6173 Remove reference to non-existing value GET_FROM_COMPOSITION.
6174 (pgx): Don't use enum names, use their values.
6175 (pitmethod): New helper command.
6176 (pitx): Use it to display iteration method.
6177 (pgrowit): New command.
6178
6179 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6180
6181 Update dependencies in Makefile.in.
6182
6183 * Makefile.in (alloc.o): Depend on termhooks.h.
6184 (atimer.o): Depend on blockinput.h.
6185 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6186 and frame.h.
6187 (callint.o): Depend on systime.h, coding.h, and composite.h.
6188 (callproc.o): Depend on buffer.h.
6189 (casefiddle.o): Don't depend on charset.h.
6190 (casetab.o): Depend on character.h.
6191 (ccl.o): Depend on composite.h.
6192 (chartab.o): Depend on ccl.h.
6193 (cm.o): Depend on dispextern.h.
6194 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6195 (coding.o): Don't depend on $(INTERVALS_H).
6196 (composite.o): Don't depend on dispextern.h explicitly (it's in
6197 $(INTERVALS_H)). Depend on ccl.h.
6198 (data.o): Depend on systime.h, coding.h, composite.h,
6199 dispextern.h, font.h, and ccl.h.
6200 (dired.o): Depend on composite.h.
6201 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6202 composite.h (it's in $(INTERVALS_H)).
6203 (doc.o): Depend on systime.h, coding.h, and composite.h.
6204 (editfns.o): Don't depend explicitly on dispextern.h.
6205 (emacs.o): Depend on frame.h and coding.h.
6206 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6207 (fileio.o): Depend on frame.h and commands.h. Don't depend
6208 explicitly on dispextern.h.
6209 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6210 composite.h.
6211 (fns.o): Don't depend on termhooks.h.
6212 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6213 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6214 coding.h, $(INTERVALS_H), window.h, xterm.h.
6215 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6216 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6217 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6218 fontset.h, ccl.h, and ftfont.h.
6219 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6220 (gtkutil.o): Depend on dispextern.h and composite.h.
6221 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6222 termhooks.h, and ccl.h.
6223 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6224 (intervals.o): Depend on systime.h and coding.h.
6225 (keyboard.o): Depend on composite.h and coding.h.
6226 (keymap.o): Depend on coding.h and frame.h.
6227 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6228 (macros.o): Depend on systime.h, coding.h, and composite.h.
6229 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6230 and atimer.h.
6231 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6232 dispextern.h explicitly.
6233 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6234 Don't depend explicitly on dispextern.h and composite.h.
6235 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6236 (regex.o): Don't depend on charset.h.
6237 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6238 (search.o): Don't depend explicitly on composite.h.
6239 (sound.o): Depend on atimer.h and systime.h.
6240 (syntax.o): Don't depend explicitly on composite.h.
6241 (sysdep.o): Depend on coding.h and composite.h.
6242 (term.o): Depend on xterm.h and buffer.h.
6243 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6244 (textprop.o): Don't depend on dispextern.h explicitly.
6245 (undo.o): Depend on dispextern.h.
6246 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6247 dispextern.h and composite.h explicitly.
6248 (xdisp.o): Depend on ccl.h.
6249 (xfaces.o): Depend on coding.h and ccl.h.
6250 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6251 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6252 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6253 ftfont.h.
6254 (xgselect.o): New dependency.
6255 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6256 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6257 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6258 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6259 (xsmfns.o): Depend on frame.h and dispextern.h.
6260 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6261 sysselect.h.
6262
6263 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6264
6265 * font.c (Fclear_font_cache): Pass correct cache argument to
6266 font_clear_cache.
6267
6268 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6269
6270 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6271 twice.
6272
6273 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
6274
6275 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6276 calling file-remote-p. Reported by Jim Meyering.
6277
6278 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
6279
6280 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
6281 avoid compiler warnings. (Bug #5217)
6282
6283 2009-12-14 Kenichi Handa <handa@m17n.org>
6284
6285 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6286 in 8-bit encoding.
6287
6288 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
6289
6290 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6291 tooltip windows.
6292
6293 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6294
6295 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6296 Xatom_net_window_type.
6297
6298 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6299 Xatom_net_window_type.
6300
6301 * xterm.c (my_log_handler): New function.
6302 (x_term_init): Set my_log_handler as log handler during gtk_init
6303 so we can filter out buggy messages. (Bug #5120).
6304
6305 * xterm.c (xg_scroll_callback): Parameter list changed,
6306 use parameter GtkScrollType to determine scroll/line/page.
6307 Only allow dragging if a button < 4 is grabbed (bug #5177).
6308 (xg_end_scroll_callback): New function.
6309 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6310 xg_create_scroll_bar.
6311
6312 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6313 (scroll_end_callback): Remove.
6314 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6315 button-release-event. Replace value-changed event with change-value,
6316 bug #5177.
6317 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6318 bug #5177.
6319
6320 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6321 (xg_create_scroll_bar): Add GCallback end_callback.
6322
6323 * xftfont.c (QClcdfilter): New variable.
6324 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6325 (syms_of_xftfont): Initialize QClcdfilter.
6326
6327 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6328
6329 * xsettings.c (struct xsettings): Add member seen.
6330 (parse_xft_settings): Update member seen with what we have read.
6331 Return non-zero if Xft-settings have been parsed, 0 otherwise.
6332 (apply_xft_settings): Only update Xft settings with what member seen
6333 indicates as new.
6334
6335 2009-12-12 Eli Zaretskii <eliz@gnu.org>
6336
6337 * dispextern.h (struct text_pos): Use EMACS_INT.
6338 (struct glyph): Use EMACS_INT for charpos.
6339 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6340 region_beg_charpos, region_end_charpos,
6341 redisplay_end_trigger_charpos, and also for
6342 iterator_stack_entry.end_charpos and
6343 iterator_stack_entry.stop_charpos.
6344
6345 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6346
6347 * gtkutil.c (scroll_end_callback): New function (bug #5177).
6348 (xg_create_scroll_bar): Call scroll_end_callback on button release
6349 event (bug #5177).
6350 (xg_event_is_for_scrollbar): != replaced with ==.
6351
6352 2009-12-12 Kenichi Handa <handa@m17n.org>
6353
6354 * ftfont.c (struct ftfont_info): New member matrix.
6355 (ftfont_open): Setup xftfont_info->matrix.
6356 (MFLTFontFT): New member matrix.
6357 (FLOOR, CEIL, ROUND): New macros.
6358 (ftfont_get_metrics): Handle matrix transformation.
6359 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6360
6361 * xftfont.c (struct xftfont_info): New member matrix.
6362 (xftfont_open): Setup xftfont_info->matrix.
6363
6364 2009-12-10 Kenichi Handa <handa@m17n.org>
6365
6366 * xdisp.c (append_space_for_newline): Consider face-remapping.
6367
6368 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6369
6370 * xsettings.c: Include "keyboard.h".
6371
6372 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6373
6374 Fix implicit function declarations.
6375 * cmds.c: Include "frame.h".
6376 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6377 * frame.h: Move declaration of delete_frame outside of
6378 HAVE_WINDOW_SYSTEM.
6379
6380 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6381
6382 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6383
6384 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6385 GTK builds.
6386
6387 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6388
6389 * unexelf.c (unexec): Don't search for .data twice.
6390
6391 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
6392
6393 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6394 if push failed.
6395 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6396 of push_display_prop (Bug#5000).
6397
6398 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6399 value of font_list_entities (Bug#5085).
6400
6401 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
6402
6403 Fix `string-to-number' to deal consistently with integers and floats.
6404 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6405 trailing characters, not just whitespace.
6406 (read1): Pass new arg 0 to keep old behavior.
6407 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6408 trailing chars, as it is already done for integers. Doc fixes.
6409 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6410
6411 2009-12-04 Eli Zaretskii <eliz@gnu.org>
6412
6413 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6414 Delete unused enumeration value.
6415
6416 2009-12-03 Eli Zaretskii <eliz@gnu.org>
6417
6418 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6419
6420 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6421
6422 * process.c (Fmake_network_process): Fix up the tests for
6423 "connectionless socket", so they DTRT for seqpacket sockets as well.
6424
6425 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6426
6427 * process.c (Qseqpacket): New symbol.
6428 (HAVE_SEQPACKET): New macro.
6429 (Fmake_network_process): Accept new :type `seqpacket'.
6430 (init_process): Add `seqpacket' feature when applicable.
6431 (syms_of_process): Initialize Qseqpacket.
6432
6433 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6434
6435 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6436 if entity is Qnil.
6437
6438 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6439
6440 * print.c (print_preprocess): Preprocess the key_and_value table of
6441 hashtables, even tho they're "hidden" (bug#5082).
6442
6443 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6444
6445 * frame.c (frame_make_pointer_invisible)
6446 (frame_make_pointer_visible): Declare f before statements.
6447
6448 2009-11-28 Eli Zaretskii <eliz@gnu.org>
6449
6450 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6451 omitted dependencies on lisp.h.
6452
6453 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6454
6455 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6456 is NULL.
6457
6458 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6459
6460 * frame.c (frame_make_pointer_invisible)
6461 (frame_make_pointer_visible): Just return if there isn't any selected
6462 frame.
6463
6464 * search.c (simple_search): Remove warning by making *p const.
6465
6466 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6467
6468 * xdisp.c (power_letter): Remove duplicate const.
6469
6470 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6471
6472 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6473
6474 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
6475 defaults (bug #5025).
6476
6477 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6478
6479 * insdel.c (adjust_markers_for_delete): Move it in the
6480 right direction! (bug#4803)
6481
6482 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6483
6484 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6485
6486 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6487
6488 2009-11-24 Glenn Morris <rgm@gnu.org>
6489
6490 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6491
6492 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6493
6494 * Makefile.in: Must create deps for ecrt0.o in its rule.
6495
6496 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6497 because that is what Gtk+ font dialog understands.
6498
6499 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6500 of Fcopy_sequence.
6501 (font_open_by_name): Put name given into QCname for font-object returned.
6502
6503 * frame.c (x_set_font): Save original font name as frame parameter
6504 font-parameter.
6505
6506 * xsettings.c (set_default_xft_settings): New function.
6507 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6508 is found.
6509
6510 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6511
6512 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6513 searching backwards through multibyte buffer.
6514
6515 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6516
6517 * xterm.c: #include xgselect.h.
6518 (x_initialize): Call xgselect_initialize.
6519
6520 * xsettings.c (something_changedCB): C++ comments => C comments.
6521 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6522 does that now.
6523
6524 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6525 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6526 (scroll_bar_button_cb): Remove.
6527 (create_menus): C++ comments => C comments. Don't bind grab-notify
6528 event.
6529 (xg_create_scroll_bar): Don't bind button-press-event and
6530 button-release-event.
6531
6532 * process.c: Include xgselect.h if defined (USE_GTK) ||
6533 defined (HAVE_GCONF).
6534 (wait_reading_process_output): Call xg_select for the same condition.
6535
6536 * xgselect.c (xg_select): New function to better integrate with
6537 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6538
6539 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6540
6541 * Makefile.in (XOBJ): Add xgselect.o.
6542
6543 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6544
6545 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6546 Remove ignored second argument. All callers changed.
6547 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6548 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6549 * xdisp.c (string_char_and_length): Likewise.
6550
6551 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6552
6553 * xterm.c (x_new_font):
6554 * print.c (print_object):
6555 * cmds.c (Fself_insert_command): Move declarations before statements.
6556
6557 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6558
6559 * s/cygwin.h: Remove unneeded linker flags.
6560
6561 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6562
6563 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6564
6565 * xsettings.h: Declare xsettings_get_system_font.
6566
6567 * xsettings.c (xsettings_get_system_font): New function.
6568 (init_gconf): No use initiating gconf unless we have Xft also.
6569 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6570 HAVE_GCONF.
6571
6572 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6573 add a blank entry so it doesn't collapse into nothing.
6574
6575 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6576
6577 * lread.c (Funintern): Comment out last change.
6578
6579 2009-11-19 Richard Stallman <rms@gnu.org>
6580
6581 * lread.c (Funintern): Error if symbol is t or nil.
6582
6583 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6584
6585 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6586 representation of Lisp integers.
6587 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6588
6589 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6590
6591 * lisp.h: Remove declaration of Ffont_get_system_font.
6592 * xfns.c: Move include of "xsettings.h".
6593 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6594
6595 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6596
6597 * xsettings.c (something_changedCB, Ffont_get_system_font):
6598 Check use_system_font.
6599 (syms_of_xsettings): DEFVAR font-use-system-font.
6600
6601 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6602
6603 * xfns.c (x_default_font_parameter): Remove dead assignment.
6604
6605 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6606
6607 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6608
6609 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
6610 not have FC_LCD_*. #define them if not there.
6611
6612 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
6613
6614 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6615
6616 * xterm.c (handle_one_xevent): Call xft_settings_event for
6617 ClientMessage, PropertyNotify and DestroyNotify.
6618 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6619 Call xsettings_initialize.
6620
6621 * xftfont.c (xftfont_fix_match): New function.
6622 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6623 Call xftfont_fix_match after XftFontMatch.
6624
6625 * xfont.c (xfont_driver): Initialize all members.
6626
6627 * xfns.c (x_default_font_parameter):
6628 Try font from Ffont_get_system_font.
6629 Do not get font from x_default_parameter if we got one from
6630 Ffont_get_system_font.
6631 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
6632
6633 * w32font.c (w32font_driver): Initialize all members.
6634
6635 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6636
6637 * lisp.h: Declare syms_of_xsettings.
6638
6639 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6640 Handle CONFIG_CHANGED_EVENT.
6641
6642 * ftfont.c (ftfont_filter_properties): New function.
6643
6644 * frame.c (x_set_font): Remove unused variable lval.
6645
6646 * font.h (struct font_driver): Add filter_properties.
6647
6648 * font.c (font_put_extra): Don't return if val is nil, it means
6649 boolean option is off.
6650 (font_parse_fcname): Collect all extra properties in extra_props
6651 and call filter_properties for all drivers with extra_props and
6652 font as parameter.
6653 (font_open_entity): Do not use cache, it does not pick up new
6654 fontconfig settings like hinting.
6655 (font_load_for_lface): If spec had a name in it, store it in entity.
6656
6657 * emacs.c (main): Call syms_of_xsettings.
6658
6659 * config.in: HAVE_GCONF is new.
6660
6661 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6662 xsettings.o is new.
6663
6664 2009-11-17 Kenichi Handa <handa@m17n.org>
6665
6666 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6667 back to the default font in case that no suitable font is found.
6668
6669 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6670
6671 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6672 Suggested by Chad Brown <yandros@mit.edu>.
6673 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6674
6675 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6676
6677 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6678
6679 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6680
6681 * Makefile.in: Ignore errors from mkdir when creating deps directory.
6682
6683 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6684
6685 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6686 has a parent.
6687
6688 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6689 dependency files in deps/. Include those files into Makefile.
6690
6691 * config.in: Generated (AUTO_DEPEND).
6692
6693 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6694
6695 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6696 Vdbus_registered_functions_table, because it contains also
6697 properties. Fix docstring.
6698 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6699
6700 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6701
6702 * alloc.c (mark_object): Don't reprocess marked strings.
6703 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6704 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6705
6706 2009-11-13 Kenichi Handa <handa@m17n.org>
6707
6708 * category.c (word_boundary_p): Adjust for the change of the
6709 semantics of Vword_combining_categories.
6710 (Vword_combining_categories): Describe the slight change of the
6711 semantics.
6712
6713 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6714
6715 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6716
6717 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6718
6719 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6720
6721 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6722
6723 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6724
6725 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6726
6727 2009-11-11 David Reitter <david.reitter@gmail.com>
6728
6729 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6730 variables to fix 2009-11-09 change.
6731
6732 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6733
6734 * process.c (ifflag_def): Make flag_sym constant.
6735 (Fnetwork_interface_info): Use a constant pointer.
6736 (ifflag_table):
6737 * xfns.c (cursor_bits):
6738 * xdisp.c (power_letter):
6739 * termcap.c (speeds, esctab):
6740 * sysdep.c (baud_convert):
6741 * keyboard.c (lispy_accent_codes, modifier_names):
6742 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6743 (jpeg_format, tiff_format, gif_format, svg_format)
6744 (interlace_start, interlace_increment, gs_format):
6745 * gtkutil.c (separator_names):
6746 * fringe.c (swap_nibble):
6747 * fns.c (base64_value_to_char, base64_char_to_value):
6748 * fileio.c (make_temp_name_tbl):
6749 * coding.c (suffixes): Make constant.
6750
6751 * frame.c (make_initial_frame):
6752 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6753 build_string.
6754 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6755
6756 * s/freebsd.h:
6757 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6758
6759 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6760 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6761
6762 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6763 * xterm.c (syms_of_xterm):
6764 * xfaces.c (syms_of_xfaces):
6765 * xdisp.c (syms_of_xdisp):
6766 * lread.c (syms_of_lread):
6767 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6768 build_string.
6769
6770 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6771
6772 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6773
6774 * fns.c (Fplist_get): Merge the active and the commented out code.
6775
6776 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6777
6778 * keyboard.h: Declare timer_check.
6779
6780 * keyboard.c (timer_check_2): New function that does what the old
6781 timer_check did.
6782 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6783 returned, i.e. don't return -1 with timers pending.
6784
6785 * process.c: Remove extern declaration of timer_check.
6786
6787 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6788 even if timer_check returned -1.
6789
6790 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6791 xg_dialog_data.
6792 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6793 the event loop.
6794 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6795 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6796 Destroy the dialog after xg_dialog_run.
6797
6798 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6799
6800 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6801
6802 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6803
6804 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6805
6806 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6807
6808 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6809
6810 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6811
6812 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6813 w32menu.c, and nsmenu.m.
6814 Simplify the obsolete case where position is nil.
6815 (cleanup_popup_menu): New function, moved from nsmenu.m.
6816 (struct skp): Remove slot `notreal'.
6817 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6818 adjust callers.
6819 (single_menu_item): Adjust call to parse_menu_item.
6820 (syms_of_menu): Defsubr x-popup-menu.
6821 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6822 (keymap_panes): Don't export any more.
6823 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6824 (xmenu_show): Declare.
6825 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6826 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6827 * keyboard.h (parse_menu_item): Update declaration.
6828 * xmenu.c (Fx_popup_menu): Remove.
6829 (syms_of_xmenu): Don't defsubr x-popup-menu.
6830 * w32menu.c (Fx_popup_menu): Remove.
6831 (syms_of_w32menu): Don't defsubr x-popup-menu.
6832 * nsmenu.m (cleanup_popup_menu): Remove.
6833 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6834 moved to menu.c's Fx_popup_menu.
6835 (Fx_popup_menu): Remove.
6836 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6837 menu_items (it's done in menu.c already).
6838
6839 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6840
6841 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6842 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6843
6844 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6845
6846 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6847 xmenu_show. Hide any tooltip before opening a menu.
6848 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6849 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6850
6851 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6852
6853 Let integers use up 2 tags to give them one extra bit and thus double
6854 their range.
6855 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6856 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6857 New macros.
6858 (enum Lisp_Type): Use them. Give explicit values.
6859 (Lisp_Type_Limit): Remove.
6860 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6861 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6862 Pay attention to USE_2_TAGS_FOR_INTS.
6863 (INTEGERP): Use LISP_INT_TAG_P.
6864 * fns.c (internal_equal): Simplify the default case.
6865 (sxhash): Use case_Lisp_Int.
6866 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6867 any more.
6868 (Ftype_of): Use case_Lisp_Int.
6869 (store_symval_forwarding): Take into account the fact that Ints can
6870 now have more than one tag.
6871 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6872 (buffer_slot_type_mismatch):
6873 * xfaces.c (face_attr_equal_p):
6874 * print.c (print_object):
6875 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6876 Use case_Lisp_Int.
6877
6878 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6879
6880 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6881
6882 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6883 warning.
6884
6885 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6886
6887 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6888
6889 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6890
6891 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6892 ButtonPressRelease and MotionNotify (bug#4870).
6893
6894 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6895
6896 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6897
6898 * xterm.c (syms_of_xterm):
6899 * xselect.c (syms_of_xselect):
6900 * xmenu.c (syms_of_xmenu):
6901 * xfns.c (syms_of_xfns):
6902 * xfaces.c (syms_of_xfaces):
6903 * xdisp.c (syms_of_xdisp):
6904 * window.c (syms_of_window):
6905 * w32fns.c (syms_of_w32fns):
6906 * undo.c (syms_of_undo):
6907 * textprop.c (syms_of_textprop):
6908 * terminal.c (syms_of_terminal):
6909 * syntax.c (syms_of_syntax):
6910 * sound.c (syms_of_sound):
6911 * search.c (syms_of_search):
6912 * print.c (syms_of_print):
6913 * minibuf.c (syms_of_minibuf):
6914 * macros.c (syms_of_macros):
6915 * keymap.c (syms_of_keymap, initial_define_key)
6916 (initial_define_lispy_key):
6917 * keyboard.c (syms_of_keyboard):
6918 * insdel.c (syms_of_insdel):
6919 * image.c (syms_of_image):
6920 * fringe.c (syms_of_fringe):
6921 * frame.c (syms_of_frame):
6922 * fontset.c (syms_of_fontset):
6923 * fns.c (syms_of_fns):
6924 * fns.c (syms_of_fns):
6925 * fileio.c (syms_of_fileio):
6926 * fileio.c (syms_of_fileio):
6927 * eval.c (syms_of_eval):
6928 * doc.c (syms_of_doc):
6929 * dispnew.c (syms_of_display):
6930 * dired.c (syms_of_dired):
6931 * dbusbind.c (syms_of_dbusbind):
6932 * data.c (syms_of_data):
6933 * composite.c (syms_of_composite):
6934 * coding.c (syms_of_coding):
6935 * cmds.c (syms_of_cmds):
6936 * charset.c (define_charset_internal, syms_of_character):
6937 * ccl.c (syms_of_ccl):
6938 * category.c (syms_of_category, init_category_once):
6939 * casetab.c (syms_of_casetab):
6940 * casefiddle.c (syms_of_casefiddle):
6941 * callint.c (syms_of_callint):
6942 * bytecode.c (syms_of_bytecode):
6943 * buffer.c (keys_of_buffer, syms_of_buffer):
6944 * alloc.c (syms_of_alloc):
6945 * process.c (syms_of_process, init_process):
6946 * lread.c (syms_of_lread, init_obarray):
6947 * font.c (build_style_table):
6948 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6949 intern_c_string, calls to make_pure_string with
6950 make_pure_c_string. Use pure_cons instead of Fcons.
6951
6952 * process.c (socket_options): Make it const.
6953 (set_socket_option, init_process): Use a const pointer.
6954
6955 * lread.c (intern_c_string): New function.
6956 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6957 (defvar_int): Uset it. Make the name const char*.
6958
6959 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6960 (defvar_int): Update prototypes.
6961 (DEFUN, EXFUN): Support for prototypes is now required.
6962 (intern_c_string): New prototype.
6963 (struct Lisp_Subr): Make symbol_name constant.
6964
6965 * font.c (struct table_entry): Remove unused member. Make NAMES
6966 constant.
6967 (weight_table, slant_table, width_table): Make constant.
6968
6969 * emacs.c (struct standard_args): Make name and longname constant.
6970
6971 * character.h (DEFSYM): Use intern_c_string.
6972
6973 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6974
6975 * alloc.c (make_pure_c_string): New function.
6976
6977 * eval.c (Fautoload): Purecopy all arguments.
6978
6979 2009-11-05 Kenichi Handa <handa@m17n.org>
6980
6981 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6982 the buffer in case of replace.
6983
6984 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6985
6986 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6987
6988 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6989
6990 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6991 when applicable (bug#4851).
6992
6993 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6994 (P_): Support for prototypes is now required.
6995
6996 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
6997
6998 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6999 (Bug#4827).
7000
7001 2009-10-30 Eli Zaretskii <eliz@gnu.org>
7002
7003 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
7004
7005 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7006
7007 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7008
7009 * lread.c (Fload): Purecopy the file name when building
7010 Vpreloaded_file_list.
7011
7012 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7013
7014 * w32fns.c (syms_of_w32fns): Change default value of
7015 w32-scroll-lock-modifier to nil. (Bug#2827)
7016
7017 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7018
7019 * minibuf.c (Fall_completions): Fix typos in docstring.
7020
7021 2009-10-26 Andreas Schwab <schwab@redhat.com>
7022
7023 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7024
7025 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7026
7027 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7028 For delta < 0, skip check that only makes sense when the mini-window
7029 is going to be enlarged. (Bug#4534)
7030
7031 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
7032
7033 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7034 string in menu maps (Bug#4471).
7035
7036 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7039 FRAME_NS_VIEW on terminal frames (Bug#4765).
7040
7041 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7042
7043 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7044 DBUS_TYPE_UINTnn separately to get proper sign extension.
7045
7046 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7047 can properly handle unsigned types.
7048 (make_uid, make_gid): Remove.
7049
7050 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7051 types again.
7052
7053 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
7054 (system_process_attributes): Likewise.
7055
7056 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7057
7058 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7059
7060 * eval.c (Fautoload): Purecopy the filename. Simplify.
7061
7062 * category.c (Fdefine_category): Purecopy docstring.
7063
7064 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7065
7066 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7067
7068 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7069
7070 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
7071
7072 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7073 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7074 (Bug#4775).
7075
7076 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7077
7078 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7079 (init_fileio_once):
7080 * lisp.h (init_fileio_once): Remove.
7081 * emacs.c (main): Don't call init_fileio_once.
7082
7083 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7084
7085 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7086
7087 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7088
7089 * doprnt.c (doprnt): Fix overflow check.
7090
7091 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7092
7093 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7094
7095 * xterm.h (x_wait_for_event): Declare it.
7096
7097 * xterm.c (pending_event_wait): New variable.
7098 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7099 see pending_event_wait.eventtype.
7100 (handle_one_xevent): Don't change gravity when parent changes.
7101 (x_new_font): Call change_frame_size with new rows/columns before we
7102 try to resize the frame.
7103 (x_wait_for_event): New function.
7104 (x_set_window_size_1): Don't change gravity unless change_gravity
7105 is set.
7106 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7107 don't change frame size, instead wait for the ConfigureNotify.
7108 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7109 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7110 (x_initialize): Initialize pending_event_wait.
7111
7112 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7113 size.
7114
7115 * widget.c (EmacsFrameSetValues): Add comment.
7116 (EmacsFrameSetCharSize): Just call x_set_window_size.
7117
7118 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7119 x_wait_for_event.
7120 (flush_and_sync): Remove again.
7121 (xg_get_font_name): Suggest monospace if no previous font is known.
7122
7123 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7124
7125 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
7126 8th bit, since that only made sense in the ASCII world (bug#4751).
7127
7128 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7129
7130 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7131 processing pending events when event is filtered for input method.
7132 (Bug#3681)
7133
7134 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
7135
7136 * fns.c: Add #endif accidentally removed in previous change.
7137
7138 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7139
7140 * fns.c: Remove code for unsupported system: MAC_OS.
7141 * image.c: Likewise. Include setjmp.h.
7142
7143 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7144
7145 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7146 pixel -1 (bug #4742).
7147
7148 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7149
7150 * process.c (create_pty): Remove conditionals for no longer
7151 supported systems: UNIPLUS and RTU.
7152
7153 * xterm.c:
7154 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7155
7156 * alloc.c: Do not define struct catchtag.
7157 * eval.c: Move struct catchtag definition ...
7158 * lisp.h: ... here.
7159
7160 * image.c: Move png.h #include earlier to avoid warnings.
7161
7162 * xterm.c:
7163 * xsmfns.c:
7164 * xselect.c:
7165 * xrdb.c:
7166 * xmenu.c:
7167 * xftfont.c:
7168 * xfont.c:
7169 * xfns.c:
7170 * xfaces.c:
7171 * xdisp.c:
7172 * window.c:
7173 * widget.c:
7174 * w32xfns.c:
7175 * w32uniscribe.c:
7176 * w32term.c:
7177 * w32select.c:
7178 * w32reg.c:
7179 * w32proc.c:
7180 * w32menu.c:
7181 * w32inevt.c:
7182 * w32heap.c:
7183 * w32font.c:
7184 * w32fns.c:
7185 * w32console.c:
7186 * w32.c:
7187 * w16select.c:
7188 * vm-limit.c:
7189 * unexsol.c:
7190 * unexec.c:
7191 * unexcw.c:
7192 * unexaix.c:
7193 * undo.c:
7194 * tparam.c:
7195 * textprop.c:
7196 * terminfo.c:
7197 * terminal.c:
7198 * termcap.c:
7199 * term.c:
7200 * syntax.c:
7201 * sound.c:
7202 * sheap.c:
7203 * search.c:
7204 * scroll.c:
7205 * region-cache.c:
7206 * regex.c:
7207 * ralloc.c:
7208 * process.c:
7209 * print.c:
7210 * nsterm.m:
7211 * nsselect.m:
7212 * nsmenu.m:
7213 * nsimage.m:
7214 * nsfont.m:
7215 * nsfns.m:
7216 * msdos.c:
7217 * minibuf.c:
7218 * menu.c:
7219 * marker.c:
7220 * macros.c:
7221 * keymap.c:
7222 * keyboard.c:
7223 * intervals.c:
7224 * insdel.c:
7225 * indent.c:
7226 * gtkutil.c:
7227 * ftxfont.c:
7228 * ftfont.c:
7229 * fringe.c:
7230 * frame.c:
7231 * fontset.c:
7232 * font.c:
7233 * fns.c:
7234 * floatfns.c:
7235 * filelock.c:
7236 * fileio.c:
7237 * emacs.c:
7238 * editfns.c:
7239 * dosfns.c:
7240 * doprnt.c:
7241 * doc.c:
7242 * dispnew.c:
7243 * dired.c:
7244 * dbusbind.c:
7245 * data.c:
7246 * composite.c:
7247 * coding.c:
7248 * cmds.c:
7249 * cm.c:
7250 * chartab.c:
7251 * charset.c:
7252 * character.c:
7253 * ccl.c:
7254 * category.c:
7255 * casetab.c:
7256 * casefiddle.c:
7257 * callproc.c:
7258 * callint.c:
7259 * bytecode.c:
7260 * buffer.c:
7261 * atimer.c: Include setjmp.h. (Bug#4643)
7262
7263 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7264
7265 Remove leftover table unibyte_to_multibyte_table.
7266 * character.c (unibyte_to_multibyte_table): Remove.
7267 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7268 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7269 * character.h (UNIBYTE_TO_CHAR): New macro.
7270 (MAKE_CHAR_MULTIBYTE): Use it.
7271 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7272 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7273 (message_dolog, set_message_1):
7274 * search.c (Freplace_match):
7275 * editfns.c (Fcompare_buffer_substrings):
7276 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7277 (concat):
7278 * insdel.c (copy_text, count_size_as_multibyte):
7279 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7280 * term.c (produce_glyphs):
7281 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7282 * regex.c (RE_CHAR_TO_MULTIBYTE):
7283 * cmds.c (internal_self_insert):
7284 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7285
7286 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7287
7288 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7289
7290 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7291
7292 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
7293
7294 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7295
7296 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7297
7298 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7299 still needed under Tiger.
7300
7301 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7302
7303 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7304 __Apple__.
7305
7306 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7307
7308 2009-10-15 Kenichi Handa <handa@m17n.org>
7309
7310 * print.c (print_object): Escape a symbol like "2E10" too.
7311
7312 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 Cleanups and changes for 64-bit compile under Snow Leopard.
7315 Based on suggestions by Erik Charlebois.
7316
7317 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7318
7319 * nsfont.m (ns_char_width): Replace deprecated call.
7320 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7321 cast argument.
7322 (nsfont_open): Use ns_char_width() everywhere.
7323 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
7324
7325 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7326
7327 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7328 where appropriate.
7329
7330 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7331 where appropriate.
7332 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7333 Use stringWithUTF8String.
7334 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7335
7336 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7337 Add formal protocol mention to inheritance.
7338 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7339
7340 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7341 Fix printf format.
7342 (ns_query_color): Use CGFloat where appropriate.
7343 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
7344 (EmacsScroller-mouseDown:): Use long format in printf, and cast
7345 argument.
7346
7347 * config.in (NS_HAVE_NSINTEGER): Drop.
7348
7349 * dbusbind.c (dbus-method-return-internal)
7350 (dbus-method-error-internal): Use long format in printf, and cast
7351 argument.
7352
7353 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7354 in printf, and cast argument.
7355
7356 * process.c (list_processes_1): Use long format in printf, and
7357 cast argument.
7358
7359 2009-10-11 Glenn Morris <rgm@gnu.org>
7360
7361 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7362
7363 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7364
7365 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7366 menu bar with a small width so it doesn't enlarge the frame.
7367
7368 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
7369
7370 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7371
7372 2009-10-06 Glenn Morris <rgm@gnu.org>
7373
7374 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7375 SOME_MACHINE_LISP (this enters indirectly via DOC).
7376
7377 2009-10-05 Eli Zaretskii <eliz@gnu.org>
7378
7379 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7380
7381 2009-10-04 Eli Zaretskii <eliz@gnu.org>
7382
7383 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7384 Doc fix.
7385
7386 2009-10-03 Martin Rudalics <rudalics@gmx.at>
7387
7388 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7389
7390 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
7391
7392 * lisp.h (Qdelete_directory_internal): Remove, because it is not
7393 used anymore outside fileio.c.
7394
7395 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7396
7397 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
7398
7399 * lisp.h (Qdelete_directory_internal):
7400 Declare, instead of Qdelete_directory.
7401
7402 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7403
7404 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7405
7406 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7407
7408 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
7409
7410 * fileio.c (Fdelete_directory_internal): Rename from
7411 Fdelete_directory. It is not a command anymore. It has no file
7412 name handler.
7413
7414 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7415
7416 * xdisp.c (get_next_display_element): Use an enum in last change.
7417
7418 2009-09-28 Kenichi Handa <handa@m17n.org>
7419
7420 * xdisp.c (get_next_display_element): Pay attention to
7421 unibyte_display_via_language_environment in handling
7422 Vnobreak_char_display.
7423
7424 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7425
7426 * nsterm.h (ns_app_name): New extern variable.
7427
7428 * nsterm.m (ns_app_name): New variable.
7429 (ns_term_init): Set and use it.
7430 (ns_term_shutdown): Use it.
7431
7432 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7433 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7434
7435 * nsfns.m (ns_set_name_iconic, ns_set_name)
7436 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7437 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7438
7439 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7440 Remove double-casting in client_data comparison.
7441
7442 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7443
7444 * keyboard.c (make_lispy_event): Remember last wheel direction.
7445 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7446
7447 2009-09-26 Glenn Morris <rgm@gnu.org>
7448
7449 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7450 internal.elc. Add term/pc-win.elc.
7451 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7452 term/x-win.elc.
7453 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7454 term/w32-win.elc.
7455 (NS_SUPPORT): New.
7456 (lisp): Add NS_SUPPORT.
7457 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7458
7459 2009-09-25 David Reitter <david.reitter@gmail.com>
7460
7461 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7462 on Mac OS X 10.6+ (bug#4513).
7463
7464 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7465
7466 * frame.c (xrdb_get_resource): Return nil for empty string resources;
7467 some parts of Emacs code (like font selection) don't grok them.
7468 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
7469
7470 2009-09-24 Andreas Schwab <schwab@redhat.com>
7471
7472 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7473
7474 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7475
7476 * dired.c (Fdirectory_files): Fix typo in docstring.
7477
7478 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7479
7480 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7481 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7482 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7483 under GNUstep.
7484 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7485
7486 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7487 glyph advancement.
7488
7489 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7490
7491 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
7492 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
7493
7494 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7495 deleted (bug #4492).
7496
7497 * nsfont.m (Vns_reg_to_script): New lisp variable.
7498 (syms_of_nsfont): Declare it.
7499 (ns_registry_to_script): New function.
7500 (ns_get_req_script): Call it.
7501 (ns_findfonts): Don't give up on non-unicode registry.
7502
7503 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7504
7505 2009-09-20 Tom Tromey <tromey@redhat.com>
7506
7507 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7508 batch mode (bug#4228).
7509
7510 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
7511
7512 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
7513 carefully. (Bug #4339)
7514
7515 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
7516
7517 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
7518
7519 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7520
7521 * emacs.c (inhibit_x_resources): Update doc string for NS.
7522 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
7523 legacy code for -NXHost. Fix error printf in daemon case.
7524
7525 * nsterm.h (ns_no_defaults): Remove.
7526
7527 * nsterm.m (ns_no_defaults): Remove.
7528 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7529 (ns_use_qd_smoothing): Remove legacy variable.
7530 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7531 don't update the NSWindow itself.
7532 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
7533 state detection and store user rect ourselves. (Bug #3581)
7534
7535 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7536 ns_use_qd_smoothing.
7537
7538 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7539 platform versions. Drop support for emacs-20-style face specs.
7540 (x-close-connection): Drop PSFlush() under OS X.
7541 (x-focus-frame): Activate the app first. (Bug #4180)
7542
7543 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
7544
7545 * emacs.c (inhibit_x_resources): New variable.
7546 (main) [HAVE_NS]: Don't process --quick command line option.
7547 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7548
7549 * lisp.h (inhibit_x_resources): Declare it extern.
7550
7551 * w32reg.c (x_get_string_resource):
7552 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7553
7554 2009-09-17 Eli Zaretskii <eliz@gnu.org>
7555
7556 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7557 Add lisp/term/internal.elc.
7558
7559 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7560
7561 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7562 (bug#4461).
7563
7564 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7565
7566 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7567
7568 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7569 (OBJECTS_MACHINE): Remove, unused.
7570
7571 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7572
7573 * frame.c (x_get_resource_string): Remove unused.
7574
7575 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7576
7577 * xterm.c (x_new_font): Call change_frame_size before calling
7578 x_set_window_size, in case frame size won't change.
7579
7580 * frame.c (x_set_font): Remove dead code.
7581
7582 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7583
7584 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7585
7586 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7587
7588 * lread.c (Fload): Don't output a message after loading an obsolete
7589 package any more (done in Lisp now).
7590
7591 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
7592
7593 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7594
7595 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7596
7597 * keymap.c (Fwhere_is_internal): Use nconc2.
7598
7599 2009-09-11 Alan Mackenzie <acm@muc.de>
7600
7601 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7602 batch mode.
7603
7604 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7605
7606 * xdisp.c (display_mode_element): Detect cycles.
7607
7608 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7609
7610 * keymap.c (where_is_internal): Don't erroneously return nil right after
7611 filling the cache.
7612 (where_is_internal_1): Fix up typo.
7613
7614 2009-09-11 Glenn Morris <rgm@gnu.org>
7615
7616 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7617 share a common doc-string.
7618
7619 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7620
7621 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7622 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7623
7624 * keymap.c (QCadvertised_binding): New constant.
7625 (syms_of_keymap): Initialize it.
7626 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7627 if applicable.
7628
7629 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7630
7631 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7632 (parse_menu_item): Streamline since bindings are recomputed all the
7633 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7634 more and don't support lmenu's menu-alias any more either.
7635
7636 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7637 (where_is_internal): Strip it down to only traverse the keymaps.
7638 Move the cache handling from Fwhere_is_internal to here.
7639 (Fwhere_is_internal): Move the handling of remapping and the choice of
7640 the best binding from where_is_internal to here.
7641 Unify the cached/noncached paths, so remapping is also handled
7642 correctly when the cache is used, and so the cache can be used to
7643 speed up remap-handling when applicable.
7644 Give preference to non-remapped bindings.
7645 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7646 non-remapped bindings.
7647 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7648 command remapping.
7649
7650 * xdisp.c (display_mode_element): Move list length limit from 50 to
7651 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7652
7653 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
7654
7655 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7656
7657 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7658
7659 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7660 (Bug#4334)
7661
7662 * keymap.c (where_is_internal): Filter out shadowed remappings.
7663 Assume that where_is_internal returns unshadowed bindings to simplify
7664 the code and get rid of the gotos. Use ASIZE.
7665
7666 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7667
7668 * xterm.c (x_focus_changed): If we get a focusout and pointer
7669 is invisible, make it visible.
7670
7671 * xterm.h: Remove condition for declaration of
7672 x_*_window_to_frame.
7673
7674 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7675
7676 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7677 initial terminal as well.
7678
7679 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7680
7681 * xterm.h: Rename x_non_menubar_window_to_frame to
7682 x_menubar_window_to_frame.
7683
7684 * xterm.c: Remove declarations also in xterm.h.
7685 (XTmouse_position): Do not return valid positions
7686 for clicks in the menubar and the toolbar for Gtk+.
7687
7688 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7689 if the widget for the event has the same top level as a frame,
7690 return the frame.
7691 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7692 internal windows, bug #4122.
7693 (x_non_menubar_window_to_frame): Remove.
7694
7695 2009-09-02 Glenn Morris <rgm@gnu.org>
7696
7697 * buffer.c (default-major-mode): Move most of the doc from here...
7698 (major-mode): ... to here.
7699
7700 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7701
7702 * process.c (wait_reading_process_output): Keep the descriptor
7703 when pty is used by a non-child process, e.g., in I/O buffer of
7704 GDB this allows inferior to be restarted.
7705
7706 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7707
7708 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7709 both branches into one.
7710
7711 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7712
7713 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7714 (main): Use enable-multibyte-characters rather than
7715 default-enable-multibyte-characters. Output a warning message when
7716 running a unibyte session.
7717
7718 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7719
7720 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7721 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7722 (copy_data_segment): Also copy __program_vars section.
7723 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7724 (dump_it) [LC_DYLD_INFO]: Use it.
7725
7726 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7727
7728 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7729
7730 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7731 $(SRC)/buildobj.h.
7732 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7733 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7734 $(SRC)/buildobj.h.
7735 (clean): Add buildobj.h.
7736
7737 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7738
7739 * print.c (print_object): Set escapeflag to 1 when printing
7740 hashtable keys and values.
7741
7742 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7743
7744 * lread.c (read_integer): Use doubles (and potentially return a float
7745 number) as we do in string-to-number.
7746 (read1): Use strtol to read integers, signal errors on strtol's
7747 overflow and use floats if strtol's output is too large for
7748 Elisp integers.
7749
7750 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7751
7752 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7753 (make-buildobj-SH): Fix last change.
7754 (SRC): Move to before where it's first used.
7755
7756 2009-08-27 Kenichi Handa <handa@m17n.org>
7757
7758 * process.c (send_process): Use encode_coding_object instead of
7759 encode_coding_string to perform eol-conversion even if the string
7760 is unibyte.
7761
7762 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7763 character.
7764
7765 * cmds.c (Fself_insert_command): Avoid unnecessay
7766 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7767
7768 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7769
7770 * callproc.c (Fcall_process): Remove always true #if.
7771
7772 * lisp.h: Replace #if 0 code for checking with text pointing to
7773 the --enable-checking configure flag.
7774
7775 * emacs.c (main): Mention the --enable-profiling configure flag
7776 instead of using CFLAGS.
7777
7778 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7779
7780 * Makefile.in (buildobj.h): New target.
7781 (doc.o): Depend on it.
7782 (temacs${EXEEXT}): Don't generate buildobj.lst.
7783 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7784 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7785 ($(BLD)/doc.$(O)): Depend on it.
7786 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7787 provided by Eli Zaretskii.)
7788 ($(TEMACS)): Don't generate buildobj.lst.
7789 * doc.c: Include buildobj.h.
7790 (buildobj): New static variable.
7791 (Fsnarf_documentation): Use it, instead of opening and reading
7792 buildobj.lst.
7793
7794 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7795
7796 * dbusbind.c (Fdbus_call_method)
7797 (Fdbus_call_method_asynchronously): Use English numeric format for
7798 timeout values in doc string.
7799
7800 2009-08-25 Kenichi Handa <handa@m17n.org>
7801
7802 * alloc.c (mark_char_table): New function.
7803 (mark_object): Use mark_char_table for a char-table.
7804
7805 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7806 (CHAR_TABLE_REF): Use it.
7807
7808 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7809
7810 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7811 before invoking the newly build emacs to check for load-path
7812 shadowing.
7813
7814 2009-08-22 Glenn Morris <rgm@gnu.org>
7815
7816 * Makefile.in (bootstrap_exe): New variable.
7817 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7818 Use ${bootstrap_exe}.
7819
7820 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7821
7822 * coding.h (encode_coding_string): Don't encode unibyte strings.
7823 (Bug#4047)
7824
7825 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7826
7827 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7828
7829 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7830 intended as hotfix only.
7831 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7832
7833 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7834
7835 * nsterm.m (ns_get_color): Update documentation properly for last
7836 change, and clean up loose ends in the code left by it. Fix
7837 longstanding bug with 16-bit hex parsing, and add support for
7838 yet another X11 format (rgb:r/g/b) for compatibility.
7839 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7840 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7841
7842 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7843
7844 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7845
7846 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7847
7848 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7849 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7850 (xd_initialize, xd_pending_messages): Check, whether
7851 $DBUS_SESSION_BUS_ADDRESS is set.
7852
7853 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7854
7855 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7856
7857 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7858
7859 2009-08-20 Glenn Morris <rgm@gnu.org>
7860
7861 * emacs.c (system-type): Doc fix.
7862
7863 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7864
7865 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7866 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7867
7868 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7869
7870 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7871 New functions.
7872 (xd_initialize): Revert change from 2009-08-16.
7873
7874 2009-08-18 Kenichi Handa <handa@m17n.org>
7875
7876 * fontset.c (Ffontset_font): If a nil element is found in a
7877 font-group vector, return nil.
7878
7879 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * process.c (status_notify): Don't perform redisplay.
7882 (Fdelete_process, list_processes_1, process_send_signal):
7883 Expliticly perform redisplay.
7884 (wait_reading_process_output): Always check process status, but
7885 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7886
7887 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7888
7889 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7890 (XFLOAT_INIT): New macro for storing a float value.
7891 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7892 * fns.c (sxhash): Copy out the value of a float in order to
7893 examine its bytes.
7894 * dbusbind.c (xd_append_arg): Likewise.
7895
7896 * emacs.c (main): Don't call syms_of_data twice.
7897
7898 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7899
7900 * dbusbind.c (xd_initialize): Add connection file descriptor to
7901 input_wait_mask, in order to let select() detect, whether a new
7902 message has been arrived.
7903 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7904
7905 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7906
7907 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7908 New functions.
7909
7910 * lisp.h (xd_pending_messages): Declare.
7911
7912 * keyboard.c (readable_events): Call xd_pending_messages.
7913
7914 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7915
7916 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7917
7918 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7919
7920 * buffer.c (set_buffer_internal_1)
7921 (swap_out_buffer_local_variables): Check for unbound local
7922 variables (Bug#4138).
7923
7924 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7925
7926 * process.c (create_pty): Fix last change.
7927
7928 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7929
7930 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7931 (xbm_load_image): Caller changed.
7932 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7933
7934 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7935
7936 * process.c (create_pty): New function.
7937 (Fstart_process): Use it to allow Emacs to just associate a pty
7938 with the buffer. See associated change in gdb-mi.el.
7939 (list_processes_1): Deal with no program name.
7940 (start_process_unwind): Use pid == -2 to mean no process.
7941
7942 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7943
7944 * cmds.c (nonundocount): New global variable.
7945 (keys_of_cmds): Initialize it.
7946 (Fself_insert_command): Use it to combine upto 20 sequential chars
7947 into a single undo entry, just like the Qself_insert_command code in
7948 keyboard.c does.
7949 Call frame_make_pointer_invisible, also like the Qself_insert_command
7950 code in keyboard.c does.
7951 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7952 than its own local replacement for it.
7953
7954 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7955
7956 * fns.c (concat): Don't re-set string length to its current value.
7957
7958 * coding.h (decode_coding_string, encode_coding_string):
7959 Use SBYTES macro.
7960
7961 * doprnt.c (doprnt_lisp): Delete unused function.
7962 (doprnt): Merge with doprnt1, discarding lispstrings code.
7963 * lisp.h (doprnt_lisp): Don't declare.
7964
7965 2009-08-07 Juri Linkov <juri@jurta.org>
7966
7967 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7968
7969 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7970
7971 * print.c (syms_of_print): Undo previous change.
7972
7973 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7974
7975 * lread.c (read1, syms_of_lread): Read hashtables back from the
7976 readable format.
7977
7978 * print.c (print_preprocess, print_object): Print hashtables fully
7979 and readably.
7980 (syms_of_print): Provide 'hashtable-print-readable.
7981
7982 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7983
7984 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7985 no family set.
7986 (nsfont_open): Handle case when entity has no family.
7987
7988 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7989
7990 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7991 element, not a list, for match case.
7992
7993 2009-07-28 Kenichi Handa <handa@m17n.org>
7994
7995 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7996 rigidly.
7997
7998 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7999 font_parse_xlfd. Check font properties more rigidly.
8000
8001 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8002
8003 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8004 bsd-common.h.
8005
8006 2009-07-27 Kenichi Handa <handa@m17n.org>
8007
8008 * xfaces.c (face_with_height): Call font_clear_prop.
8009
8010 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
8011
8012 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8013
8014 * xterm.c (x_term_init): Use Qx.
8015
8016 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8017
8018 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
8019 (ns_get_color): Revert 2009-07-16 change.
8020
8021 2009-07-25 Eli Zaretskii <eliz@gnu.org>
8022
8023 * lread.c (syms_of_lread) <force_load_messages>: New variable.
8024 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
8025
8026 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
8027
8028 * coding.h (decode_coding_string, encode_coding_string):
8029 Use SCHARS macro.
8030
8031 * lread.c: Rewrite 2009-07-21 changes.
8032 (load_depth): Delete.
8033 (Qload_in_progress): New variable.
8034 (load_unwind): Don't reference load_depth or load_in_progress.
8035 (Fload): Likewise; specbind Qload_in_progress instead.
8036 (init_lread): Don't initialize load_depth.
8037 (syms_of_lread): Initialize and protect Qload_in_progress.
8038
8039 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8040
8041 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8042
8043 2009-07-23 Yavor Doganov <yavor@gnu.org>
8044
8045 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8046
8047 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8048
8049 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
8050 Bugs 3792, 3720, 2402.
8051 (ns_lookup_indexed_color): Check for bad index.
8052 (ns_index_color): Init unused slot to 0.
8053 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8054 Bug 3714, possibly 3082.
8055
8056 2009-07-22 Jason Rumney <jasonr@gnu.org>
8057
8058 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8059 Position IME window at cursor (Bug#2570).
8060 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8061 (globals_of_w32fns): Dynamically load functions required above.
8062
8063 * w32term.c (w32_draw_window_cursor): Send message to reposition
8064 any IME window.
8065
8066 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8067
8068 * fileio.c: Revert 2009-07-16 changes.
8069 (Vauto_save_include_big_deletions): New variable.
8070 (Fdo_auto_save): Disable auto-save only if
8071 auto-save-include-big-deletions is nil.
8072
8073 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8074
8075 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8076 the overflowed pixels into account (Bug#3879).
8077
8078 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
8079
8080 * lread.c (load_depth): New variable.
8081 (Fload, load_unwind, init_lread): Set it to the load recursion
8082 depth; set load_in_progress as a simple boolean based on the
8083 current load_depth. (Bug#3892)
8084
8085 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8086
8087 * nsfont.m (ns_has_attribute): Remove.
8088 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8089
8090 2009-07-18 Juri Linkov <juri@jurta.org>
8091
8092 * process.c (Fset_process_query_on_exit_flag): Mention killing
8093 a buffer in docstring.
8094
8095 2009-07-17 Kenichi Handa <handa@m17n.org>
8096
8097 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8098
8099 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8100
8101 * nsfns.m (Fns_set_alpha): Remove function.
8102 (syms_of_nsfns): Don't defsubr it.
8103
8104 * nsterm.m (ns_get_color): Remove incompatible color formats.
8105 (ns_color_to_lisp): Generate #rrggbb color format string.
8106
8107 2009-07-16 Richard Stallman <rms@gnu.org>
8108
8109 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8110 (Fset_buffer_auto_saved): Handle save_length = -2.
8111
8112 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
8113
8114 * xterm.c (Qx_gtk_map_stock): New var.
8115
8116 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8117 of calling intern each time.
8118
8119 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8120
8121 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8122 does tiling.
8123
8124 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8125
8126 2009-07-14 Kenichi Handa <handa@m17n.org>
8127
8128 * font.c (font_vconcat_entity_vectors): New function.
8129 (struct font_sort_data): New member font_driver_preference.
8130 (font_compare): Check font_driver_preference.
8131 (font_sort_entities): The format of the first argument changed.
8132 (font_delete_unmatched): Likewise.
8133 (font_list_entities): The return type changed.
8134 (font_select_entity): The format of the second argument changed.
8135 (font_find_for_lface): Adjuste for the above changes.
8136 Don't suppress the checking of C even if the repertory supports it.
8137 (Flist_fonts): Adjust for the above changes.
8138
8139 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8140 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
8141 Reject a font who has adstyle property that is different from a
8142 langname derived from registry property.
8143 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
8144
8145 2009-07-13 Eli Zaretskii <eliz@gnu.org>
8146
8147 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8148 local copy of dirfilename.
8149
8150 2009-07-13 Kenichi Handa <handa@m17n.org>
8151
8152 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8153 against max_char.
8154
8155 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8156 calling XSYMBOL (sym).
8157
8158 2009-07-11 Eli Zaretskii <eliz@gnu.org>
8159
8160 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8161 New function.
8162 (directory_files_internal) [WINDOWSNT]:
8163 Bind w32-get-true-file-attributes to either t or nil, depending whether
8164 the filesystem of the directory is fast or slow.
8165
8166 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8167 file name.
8168 (is_slow_fs): New function.
8169 (stat): Use it to determine whether to issue more system calls to
8170 get accurate file attributes, when w32-get-true-file-attributes is
8171 `local'.
8172
8173 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8174
8175 * xfns.c (Fx_select_font): Remember last font selected in
8176 x_last_font_name and use that the next time. Also try the frame
8177 parameter font-parameter as default to the font dialog.
8178
8179 2009-07-10 Kenichi Handa <handa@m17n.org>
8180
8181 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8182
8183 2009-07-09 Eli Zaretskii <eliz@gnu.org>
8184
8185 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8186
8187 * w32.c (stat): Treat UNC file names as residing on remote
8188 drives. (Bug#3542)
8189
8190 2009-07-09 Kenichi Handa <handa@m17n.org>
8191
8192 * fontset.c (fontset_find_font): Fix previous change.
8193
8194 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
8195
8196 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8197 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8198 error flag.
8199
8200 2009-07-08 Kenichi Handa <handa@m17n.org>
8201
8202 * fontset.c (fontset_find_font): Fix the logic of handling
8203 charset_matched.
8204 (font_for_char): Delete unused var.
8205 (generate_ascii_font_name): Delete it.
8206
8207 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8208
8209 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8210 (encode_coding_sjis): Fix the code range check.
8211
8212 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
8213
8214 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8215 (Fexpand_file_name): Copy string data properly (Bug#3772).
8216
8217 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8218
8219 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8220 first MapNotify.
8221
8222 2009-07-07 Kenichi Handa <handa@m17n.org>
8223
8224 * character.h (unibyte_has_multibyte_table): Delete extern.
8225 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8226
8227 * charset.c (Fset_charset_priority): Update charset_unibyte.
8228 (syms_of_charset): Initialize charset_unibyte.
8229
8230 * character.c (unibyte_has_multibyte_table): Delete it.
8231 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8232 charset_unibyte.
8233 (multibyte_char_to_unibyte_safe): Likewise.
8234 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8235
8236 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
8237 (x_produce_glyphs): Likewise.
8238
8239 * .gdbinit (xcharset): Fix the treating $arg0.
8240
8241 2009-07-04 Eli Zaretskii <eliz@gnu.org>
8242
8243 Emulation of `getloadavg' on MS-Windows.
8244 * w32.c: Include float.h.
8245 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8246 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8247 (get_native_system_info, get_system_times): New functions.
8248 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8249 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8250 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8251 g_b_init_get_system_times, and num_of_processors.
8252
8253 2009-07-03 Jason Rumney <jasonr@gnu.org>
8254
8255 * w32term.c (w32_initialize): Use standard types.
8256
8257 2009-07-03 Eli Zaretskii <eliz@gnu.org>
8258
8259 * dired.c (Ffile_attributes): Decode user and group names by the
8260 locale's encoding. (Bug#3443)
8261
8262 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8263
8264 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8265 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8266
8267 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8268
8269 * term.c (init_tty): Remove spurious #ifdef.
8270
8271 * m/mips.h: Mention this file is also used for netbsd.
8272 * m/pmax.h: Remove file.
8273
8274 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8275
8276 * xterm.h (struct x_display_info): Add invisible_cursor.
8277 (struct x_output): Add current_cursor.
8278
8279 * xterm.c (XTtoggle_invisible_pointer): New function.
8280 (x_define_frame_cursor): Don't define cursor if invisible or the
8281 same as before. Set current_cursor.
8282 (x_create_terminal): Set toggle_invisible_pointer_hook.
8283
8284 * xfns.c (make_invisible_cursor): New function.
8285 (x_set_mouse_color): Call make_invisible_cursor.
8286 Set current_cursor.
8287 (x_window): Set current_cursor.
8288
8289 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8290
8291 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8292 inserting a character.
8293 (read_avail_input): Call frame_make_pointer_visible.
8294
8295 * frame.c (Vmake_pointer_invisible): New variable.
8296 (frame_make_pointer_invisible, frame_make_pointer_visible):
8297 New functions.
8298 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8299
8300 * frame.h: Declare frame_make_pointer_invisible and
8301 frame_make_pointer_visible.
8302 (struct frame): Add pointer_invisible.
8303
8304 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8305
8306 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8307 frame isn't visible.
8308 (xg_frame_resized): If width/height is -1, get size of window
8309 from X server.
8310
8311 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8312 for MapNotify.
8313
8314 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
8315 here or call change_frame_size. Just call flush_and_sync.
8316 (flush_and_sync): Reintroduce.
8317
8318 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
8319
8320 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
8321
8322 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8323 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8324
8325 * frame.h: Declare Qsticky.
8326
8327 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8328
8329 * nsfns.m (ns_frame_parm_handlers): Ditto.
8330
8331 * frame.c: Declare Qsticky.
8332 (frame_parms): Add sticky.
8333
8334 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8335
8336 * xterm.h: Declare x_set_sticky.
8337
8338 * xterm.c (x_set_sticky): New function.
8339
8340 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8341 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8342 xg_tool_bar_proxy_help_callback.
8343
8344 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8345
8346 * frame.c: Qmaximized is new.
8347 (x_set_frame_parameters): Do not handle fullscreen specially.
8348 Only set width and height if explicitly set.
8349 (x_set_fullscreen): Handle Qmaximized.
8350 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8351 (syms_of_frame): Initialize Qmaximized.
8352
8353 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8354 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
8355
8356 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
8357 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8358 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
8359 set gravity to NorthWestGravity when USE_GTK.
8360 (set_wm_state): New function.
8361 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
8362 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8363 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
8364 or the case when no window manager is running. That means remove calls
8365 to x_real_positions and x_fullscreen_adjust.
8366
8367 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8368 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8369 flush_and_sync.
8370 (xg_height_changed): New function.
8371 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
8372 and gtk_window_set_policy. Set frame gravity after parsing the
8373 geometry string.
8374 (xg_update_frame_menubar, free_frame_menubar)
8375 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8376 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8377 Remove calls to xg_frame_set_char_size.
8378
8379 2009-07-01 Kenichi Handa <handa@m17n.org>
8380
8381 * keyboard.c (decode_keyboard_code): New function.
8382 (tty_read_avail_input): Decode the input bytes if necessary.
8383
8384 * coding.c (setup_coding_system):
8385 Initialize coding->carryover_bytes to 0.
8386 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8387 use Qno_conversion.
8388
8389 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8390
8391 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8392
8393 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
8394
8395 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
8396
8397 2009-06-30 Jason Rumney <jasonr@gnu.org>
8398
8399 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8400 is already loaded.
8401 Set user model ID if supported (bug#1849).
8402
8403 2009-06-29 Jim Meyering <meyering@redhat.com>
8404
8405 Remove useless if-before-xfree test.
8406 * nsfont.m (nsfont_close): Remove useless test.
8407 * term.c (delete_tty): Likewise.
8408 * w32.c (system_process_attributes): Likewise.
8409 * w32font.c (w32font_close): Likewise.
8410 * xfaces.c (x_free_gc): Likewise.
8411 * xselect.c (buffer): Likewise.
8412
8413 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8414
8415 * process.c (send_process): Keep decoded string in a local
8416 variable and protect it from GC. (Bug#3521)
8417
8418 2009-06-28 Eli Zaretskii <eliz@gnu.org>
8419
8420 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8421 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8422
8423 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
8424
8425 * xdisp.c (start_display, handle_face_prop)
8426 (move_it_vertically_backward, cursor_row_fully_visible_p)
8427 (redisplay_window, try_window_id, produce_image_glyph):
8428 Delete some #ifdef-ed out code chunks that are now obsolete.
8429
8430 * xterm.c (x_update_window_begin, x_new_focus_frame)
8431 (x_scroll_bar_handle_click, handle_one_xevent)
8432 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8433 (x_make_frame_visible, x_make_frame_invisible)
8434 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8435 code chunks that are now obsolete.
8436
8437 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
8438
8439 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8440 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8441 for hours, when optimzation is enabled.
8442 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8443 (xd_read_message): Make them static.
8444
8445 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8446
8447 * term.c (turn_on_face): Allow simultaneously bold and dim
8448 terminal faces (Bug#3530).
8449
8450 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
8451
8452 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8453
8454 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8455 truncation glyphs (Bug#3686).
8456
8457 2009-06-27 Glenn Morris <rgm@gnu.org>
8458
8459 * m/pmax.h: Restore file, with only netbsd portions.
8460
8461 2009-06-26 David Reitter <david.reitter@gmail.com>
8462
8463 * nsterm.m (keydown): Avoid infinite loop.
8464
8465 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8466
8467 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8468 the arg FORCE_SYMBOL.
8469
8470 2009-06-25 Kenichi Handa <handa@m17n.org>
8471
8472 * fontset.c (fontset_find_font): When a usable rfont_def is found
8473 in a fallback font-group, make it the first element of the group.
8474
8475 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
8476
8477 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8478
8479 2009-06-24 Kenichi Handa <handa@m17n.org>
8480
8481 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8482 set for C.
8483 (fontset_font): Record the availability of a font for C both in
8484 the realized fontsets of the current one and the default one.
8485
8486 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8487
8488 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8489 conditional, it is always defined on AIX.
8490
8491 2009-06-23 Miles Bader <miles@gnu.org>
8492
8493 * window.c (Vrecenter_redisplay): New variable.
8494 (syms_of_window): Initialize it.
8495 (Qtty): New extern declaration.
8496 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8497
8498 2009-06-23 Jim Meyering <meyering@redhat.com>
8499
8500 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8501 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
8502 pointer dereferences are guaranteed to be valid.
8503
8504 2009-06-23 Kenichi Handa <handa@m17n.org>
8505
8506 * emacs.c (main): Call init_font ().
8507
8508 * font.h (Vfont_log): Extern it.
8509 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8510
8511 * font.c (font_sort_entities, font_list_entities)
8512 (font_matching_entity, font_open_entity)
8513 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8514 (Vfont_log): Delete static.
8515 (font_log_env_checked): Delete this variable.
8516 (font_add_log): Don't check font_log_env_checked.
8517 (font_deferred_log): Check Vfont_log.
8518 (init_font): New function.
8519
8520 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8521
8522 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8523
8524 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8525
8526 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8527
8528 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8529 (face_for_char): Don't call font_deferred_log here.
8530 (font_for_char): Likewise.
8531
8532 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
8533
8534 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8535 rather than its background_width for drawing the overline and
8536 underline (Bug#489).
8537
8538 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8539 rather than its background_width for drawing the overline and
8540 underline (Bug#489).
8541 (xg_default_icon_file): New variable.
8542 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8543 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
8544
8545 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8546 (load_overlay_strings): Remove externs.
8547 (fast_find_position): Function deleted.
8548 (mouse_face_from_buffer_pos): New function, based on
8549 fast_find_position. Correctly handle before-strings,
8550 display-strings, and after-strings (Bug#1220).
8551 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8552
8553 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8554
8555 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
8556 (move_it_in_display_line_to, move_it_in_display_line_to)
8557 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8558
8559 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8560
8561 * Branch for 23.1.
8562
8563 2009-06-21 Jason Rumney <jasonr@gnu.org>
8564
8565 * w32term.c (keyboard_codepage): New static variable.
8566 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8567 (w32_read_socket) [WM_CHAR]: Use it to decode character
8568 input (bug#3237).
8569 (w32_initialize): Initialize it.
8570 (codepage_for_locale): New function.
8571
8572 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
8573
8574 * process.c (status_message): Pass Faset index argument as a lisp
8575 object, so as to work with USE_LISP_UNION_TYPE.
8576
8577 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8578
8579 * coding.c (Ffind_coding_systems_region_internal):
8580 Cache checked characters.
8581
8582 2009-06-18 Kenichi Handa <handa@m17n.org>
8583
8584 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
8585
8586 2009-06-18 Andreas Schwab <aschwab@redhat.com>
8587
8588 * xdisp.c (redisplay_internal): Check that the frame is still
8589 live after redisplay of its windows.
8590 (redisplay_windows): Check that the window is still live.
8591
8592 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8593
8594 * coding.c (detect_coding_utf_16): Fix previous change.
8595
8596 2009-06-16 Kenichi Handa <handa@m17n.org>
8597
8598 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8599 UTF-16 by checking the dispersion of Eth and Oth bytes.
8600
8601 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8602
8603 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8604
8605 2009-06-15 Kenichi Handa <handa@m17n.org>
8606
8607 * process.c (status_message): Fix previous change. Be sure to
8608 decode a localized string.
8609
8610 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8611
8612 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8613 add comment explaining why.
8614
8615 2009-06-14 Sidney Markowitz <sidney@sidney.com>
8616
8617 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
8618
8619 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8620
8621 * nsfont.m (ns_attribute_value): Remove.
8622 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8623 (ns_has_attribute): Shrink the normal range.
8624 (ns_findfonts): Don't worry about requested spec in determining
8625 need for synthItal.
8626 (ns_get_covering_families): Retain scriptToFamilies.
8627
8628 2009-06-14 Seiji Zenitani <zenitani@mac.com>
8629
8630 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8631
8632 2009-06-11 Kenichi Handa <handa@m17n.org>
8633
8634 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8635 overhang for the static composition case.
8636
8637 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8638
8639 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8640 overhang for the automatic composition case.
8641
8642 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8643 composition case.
8644
8645 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
8646
8647 * xdisp.c (get_next_display_element): When handling wrap-prefix
8648 and line-prefix, treat \n as a control character (bug#3502).
8649
8650 2009-06-10 Kenichi Handa <handa@m17n.org>
8651
8652 * font.c (font_parse_family_registry): Fix for one-char foundry.
8653 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8654
8655 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8656
8657 * process.c (status_message): Fix handling of multibyte signal
8658 string (Bug#3499).
8659
8660 2009-06-09 Jim Meyering <meyering@redhat.com>
8661
8662 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8663 color name is missing.
8664
8665 2009-06-09 Kenichi Handa <handa@m17n.org>
8666
8667 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8668 FROM-CODE and TO-CODE are codepoints of CHARSET.
8669
8670 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8671
8672 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8673
8674 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8675
8676 Changes to support :script/:lang/:otf in NS font driver.
8677 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8678 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8679 indicate not part of font driver interface, and change callers.
8680 (ns_get_family): Remove pointless null check.
8681 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8682 ns_spec_to_descriptor, ns_descriptor_to_entity.
8683 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8684 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8685 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8686 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8687 (ns_get_req_script, ns_accumulate_script_ranges)
8688 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8689 New functions.
8690 (nsfont_list, nsfont_match): Use ns_findfonts.
8691 (nsfont_open): Use font descriptor instead of traits.
8692 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8693 (dump_glyphstring): Rename to ns_dump_glyphstring.
8694
8695 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8696
8697 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8698
8699 * fontset.c (fontset_from_font): Remove NS-specific code.
8700
8701 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8702
8703 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8704 nonactive windows.
8705
8706 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8707
8708 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8709
8710 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8711
8712 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8713
8714 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8715
8716 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8717 account for the overflowing of newlines into the last glyph on the
8718 display line (Bug#3482).
8719
8720 2009-06-05 David Reitter <david.reitter@gmail.com>
8721
8722 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8723 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8724 Fns_selection_exists_p, Fns_selection_owner_p.
8725
8726 2009-06-03 Jason Rumney <jasonr@gnu.org>
8727
8728 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8729 available. (Bug#3379)
8730
8731 2009-05-29 Kenichi Handa <handa@m17n.org>
8732
8733 * coding.c (get_translation_table):
8734 Check Venable_character_translation.
8735
8736 2009-05-26 David Reitter <david.reitter@gmail.com>
8737
8738 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8739 (x_make_frame_visible): Move frame to front rather than calling
8740 ns_raise_frame().
8741 (keyDown:): Do not swallow events that aren't re-sent if frame
8742 isn't key window.
8743 (drawRect:): Do not set visibility/iconified flags because
8744 drawRect may be called by NSView even if the frame is hidden.
8745
8746 * nsfns.m (Fx_create_frame): Follow other ports in
8747 determining visibility; default to t. Ensure async_visible is set.
8748
8749 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8750
8751 * dired.c (Ffile_attributes): Doc fix.
8752
8753 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8754
8755 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8756
8757 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8758
8759 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8760 and xfont_scratch_props.
8761 (syms_of_xfont): Do it here instead.
8762 (xfont_find_ccl_program): Delete, unused.
8763 (xfont_open): Delete unused var `i'.
8764
8765 2009-05-21 Kenichi Handa <handa@m17n.org>
8766
8767 * fontset.c (Qlatin): Don't make it static.
8768
8769 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8770 New functions.
8771 (xfont_scripts_cache, xfont_scratch_props): New variables.
8772 (Qlatin, Vscalable_fonts_allowed): Extern it.
8773 (xfont_list_pattern): Argument changed. Callers changed.
8774 Check Vscalable_fonts_allowed. Check the support of a script.
8775 (xfont_list): Don't reject a font spec with :script property.
8776 (xfont_has_char): Fix setting of encoding.
8777 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8778 xfont_scratch_props.
8779
8780 2009-05-19 Kenichi Handa <handa@m17n.org>
8781
8782 * font.c (font_sort_entities): Rename from font_sort_entites.
8783 Callers changed.
8784
8785 2009-05-18 Kenichi Handa <handa@m17n.org>
8786
8787 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8788
8789 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8790
8791 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8792 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8793
8794 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8795
8796 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8797 (x_delete_terminal): Dissociate resource database from display and
8798 then call XrmDestroyDatabase before closing display.
8799
8800 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8801
8802 * nsterm.m (ns_read_socket): Remove unused variable.
8803 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8804 whether selected frame is viable before raising it (based on patch
8805 by David Reitter), and improve commentary.
8806 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8807
8808 2009-05-15 Kenichi Handa <handa@m17n.org>
8809
8810 * font.c (Ffont_spec): Check arguments.
8811
8812 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8813
8814 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8815 weight when testing attributes (Bug#3282).
8816
8817 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8818
8819 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8820 what we expect to get in the next ConfigureNotify event.
8821
8822 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8823 before Xft one (Bug#1696).
8824
8825 2009-05-07 David Reitter <david.reitter@gmail.com>
8826
8827 * nsfns.m (Fx_display_planes): Compute bitplanes using
8828 NSBitsPerPixelFromDepth (Bug#3207).
8829
8830 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8831
8832 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8833
8834 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8835
8836 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8837
8838 2009-05-07 David Reitter <david.reitter@gmail.com>
8839
8840 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8841 Respect mouse face background.
8842
8843 2009-05-07 David Reitter <david.reitter@gmail.com>
8844
8845 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8846 Mouse movement/highlight: bracket drawing operations
8847 in ns_update_begin and ns_update_end.
8848
8849 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8850
8851 * nsfns.m (ns_get_screen): Rewrite.
8852 Don't presume selected-frame is of type `ns'.
8853
8854 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8855 all drivers.
8856
8857 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8858
8859 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8860
8861 * keyboard.h (add_user_signal): Fix typo in extern.
8862
8863 * lisp.h (add_user_signal): Remove extern.
8864
8865 * unexelf.c (unexec): Consider a section to precede the .bss section
8866 if its addresses overlap that of .bss.
8867 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8868 instead of dumping process.
8869
8870 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8871
8872 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8873
8874 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8875
8876 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8877
8878 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8879
8880 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8881 any statements.
8882
8883 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8884
8885 * process.c (read_process_output): Make sure the current buffer is
8886 always restored.
8887
8888 * coding.c (record_conversion_result): Don't modify
8889 Vlast_code_conversion_error for successful result.
8890 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8891
8892 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8893
8894 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8895 (load_charset_map): Remove unnecessary code.
8896
8897 2009-04-30 David Reitter <david.reitter@gmail.com>
8898
8899 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8900 through f24.
8901
8902 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8903
8904 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8905
8906 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8907 face_at_buffer_position.
8908 (face_before_or_after_it_pos, get_next_display_element)
8909 (note_mouse_highlight): Update face_at_buffer_position call.
8910
8911 * term.c (term_mouse_highlight):
8912 * msdos.c (IT_note_mouse_highlight):
8913 * fontset.c (Finternal_char_font):
8914 * font.c (font_at, font_range): Update face_at_buffer_position call.
8915
8916 * dispextern.h (face_at_buffer_position): Update prototype.
8917
8918 2009-04-30 Kenichi Handa <handa@m17n.org>
8919
8920 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8921
8922 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8923
8924 * callproc.c (Fcall_process): Fix GC protection. Make sure
8925 current buffer is always restored.
8926
8927 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8928
8929 * atimer.c (init_atimer): Also clear stopped_atimers.
8930
8931 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8932
8933 * process.c (create_process): Clean up merger residues of
8934 2008-07-17 change.
8935
8936 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8937
8938 * lread.c (Vread_circle): New variable.
8939 (read1): Disable recursive read if Vread_circle is nil.
8940
8941 2009-04-29 Kenichi Handa <handa@m17n.org>
8942
8943 * fontset.h (set_default_ascii_font): Delete extern.
8944
8945 * fontset.c (set_default_ascii_font): Delete this unused function.
8946
8947 * frame.c (x_set_font): When ARG is a font-object, check if the
8948 font-object matches with the ASCII font-spec of the frame's
8949 fontset. If not, create a new fontset for the frame. (Bug #3075)
8950
8951 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8952
8953 * fns.c (Flocale_info): Protect vector from GC during decoding.
8954
8955 * process.c (Fstart_process): Protect argv strings from GC during
8956 encoding.
8957
8958 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8959
8960 * sysdep.c: Include <ctype.h>.
8961
8962 2009-04-27 David Reitter <david.reitter@gmail.com>
8963
8964 * nsfont.m (nsfont_open): Remove unused variable shrink.
8965 Remove commented-out code.
8966
8967 2009-04-26 Johan Bockgård <bojohan@gnu.org>
8968
8969 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8970
8971 2009-04-25 Jason Rumney <jasonr@gnu.org>
8972
8973 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8974
8975 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8976
8977 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8978 Swap bytes in short integer if fringe bitmap width > 8.
8979
8980 2009-04-23 Kenichi Handa <handa@m17n.org>
8981
8982 * xfaces.c (Fx_list_fonts): If a font size is specified in
8983 PATTERN, set it in returned scalable fonts.
8984
8985 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
8986
8987 * keyboard.c (Fset_input_meta_mode): Doc fix.
8988
8989 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8990
8991 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
8992
8993 * coding.c (Fterminal_coding_system): Doc fix.
8994
8995 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8996 (Fx_display_pixel_height, Fx_display_planes)
8997 (Fx_display_color_cells, Fx_server_max_request_size)
8998 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8999 (Fx_display_mm_height, Fx_display_mm_width)
9000 (Fx_display_backing_store, Fx_display_visual_class)
9001 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9002 Doc fixes, replacing "terminal id" with "terminal object".
9003 (check_x_display_info): Handle terminal objects instead of
9004 terminal ids.
9005
9006 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9007 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
9008 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9009 Doc fixes, replacing "terminal id" with "terminal object".
9010
9011 2009-04-21 Kenichi Handa <handa@m17n.org>
9012
9013 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
9014 (font_score): Check AVGWIDTH too.
9015
9016 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9017 worst case.
9018 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9019 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
9020
9021 2009-04-19 Jason Rumney <jasonr@gnu.org>
9022
9023 The following changes fix Bug#3005 for wide glyphs on each platform,
9024 without reintroducing Bug#1258 for stretch glyphs.
9025
9026 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9027 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9028 get_phys_cursor_geometry.
9029
9030 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
9031 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9032 using get_phys_cursor_geometry.
9033
9034 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9035 correctly calculated.
9036
9037 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9038
9039 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9040 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
9041 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9042 is deprecated.
9043
9044 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9045
9046 * font.c (font_put_frame_data): Use xfree instead of free.
9047
9048 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
9049
9050 * w32font.c (Qja, Qko): Remove declarations.
9051 (syms_of_w32font): Don't DEFSYM them.
9052
9053 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
9054
9055 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9056
9057 * font.h (Qja, Qko): Extern them.
9058
9059 * ftfont.c (Qja, Qko): Remove declarations.
9060
9061 * xfont.c (Qja, Qko): Remove declarations.
9062
9063 2009-04-17 Kenichi Handa <handa@m17n.org>
9064
9065 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9066 string from a vector to handle Latin-1 characters correctly.
9067
9068 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9069 entity even if the cache hits.
9070
9071 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9072
9073 * search.c (boyer_moore): Use zero as marker value for a possible
9074 match instead of depending on overflow behavior. (Bug#2844)
9075
9076 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9077 * lisp.h: Adjust prototypes.
9078
9079 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
9080
9081 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9082 change (Bug#3003).
9083
9084 2009-04-16 Kenichi Handa <handa@m17n.org>
9085
9086 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
9087
9088 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9089 adstyle.
9090
9091 * ftfont.c (Qja, Qko): Don't make them static.
9092 (enum ftfont_cache_for): New enum.
9093 (fc_charset_table): Undo the previous change.
9094 (ftfont_get_latin1_charset): Delete it.
9095 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9096 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
9097 non-scarable font, try to get AVERAGE_WIDTH.
9098 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9099 Change ft_face_cache from a list of a hash-table. Don't check
9100 `ja' and `ko' adstyle here.
9101 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9102 FTFONT_CACHE_FOR_CHARET.
9103 (ftfont_get_charset): Undo the previous change.
9104 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
9105 (ftfont_close): Likewise.
9106 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9107
9108 * font.c (font_sort_entites): Change the meaning of the arg
9109 BEST-ONLY. Don't optimize for VEC of lenght 1.
9110 (font_select_entity): Just return the value of font_sort_entites.
9111
9112 * xfaces.c (merge_face_vectors): Reflect font properties in
9113 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9114 font_clear_prop if a face attribute doesn't change.
9115
9116 * charset.h (charset_ksc5601): Extern it.
9117
9118 * charset.c (charset_ksc5601): New variable.
9119 (Fdefine_charset_internal): Set charset_ksc5601.
9120 (init_charset_once): Initialize charset_ksc5601 to -1.
9121
9122 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9123
9124 * fileio.c (history_delete_duplicates): Remove unused declaration.
9125
9126 * callint.c (history_delete_duplicates): New declaration.
9127 (Fcall_interactively): Remove command history duplicates when
9128 history_delete_duplicates is true.
9129
9130 2009-04-14 Eli Zaretskii <eliz@gnu.org>
9131
9132 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9133
9134 2009-04-14 Kenichi Handa <handa@m17n.org>
9135
9136 * font.c (Ffont_info): Fix docstring. Fix the second element of
9137 the returned value (bug#2949).
9138
9139 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
9140
9141 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9142
9143 2009-04-14 Kenichi Handa <handa@m17n.org>
9144
9145 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9146 encoding charset is ascii_compatible.
9147
9148 * charset.c (Fdefine_charset_internal): Make charset
9149 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9150 code_offset is 0, and covers all ASCII characters.
9151
9152 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9153
9154 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9155 (ns_string_to_pasteboard_internal):
9156 * nsmenu.m (process_dialog):
9157 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9158 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9159 * lisp.h (Fx_load_color_file): Declare.
9160
9161 2009-04-13 Kenichi Handa <handa@m17n.org>
9162
9163 * font.c (font_delete_unmatched): Preserve the order of list elements.
9164 (font_select_entity): Suppress the code to optimize for the same
9165 kind of fonts.
9166 (font_load_for_lface): Get a font that supports at least ASCII
9167 characters.
9168
9169 * ftfont.c (Qja, Qko): New variables.
9170 (fc_charset_table): Delete uniquifier data for iso8859-1.
9171 (ftfont_get_latin1_charset): New function.
9172 (get_adstyle_property): New function.
9173 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9174 bitmap fonts.
9175 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9176 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9177 `ko' or `ja'.
9178 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
9179 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
9180 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9181 property.
9182 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9183 (syms_of_ftfont): DEFSYM Qja and Qko.
9184
9185 2009-04-09 Kenichi Handa <handa@m17n.org>
9186
9187 * charset.c (map_charset_chars): For a charset of `superset'
9188 method, fix calculation of code range.
9189
9190 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9191 from the list of extra properties.
9192 (font_clear_prop): Be sure to delete `:name' font property.
9193
9194 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9195
9196 * dispnew.c (redraw_overlapping_rows): Fix detection of
9197 overlapping for topmost and bottommost rows.
9198
9199 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
9200
9201 2009-04-06 Jason Rumney <jasonr@gnu.org>
9202
9203 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9204
9205 2009-04-06 Kenichi Handa <handa@m17n.org>
9206
9207 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9208
9209 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9210
9211 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9212
9213 * ftfont.c (ftfont_open): Fix checking of the return value of
9214 FT_Load_Char. Fix setting font->underline_thickness.
9215
9216 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
9217
9218 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9219 (Fterminal_parameters, Fterminal_parameter)
9220 (Fset_terminal_parameter): In doc string, refer to terminal
9221 objects rather than terminal ids.
9222
9223 2009-04-04 Eli Zaretskii <eliz@gnu.org>
9224
9225 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9226 ret_lim_data. (Bug#2867)
9227
9228 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
9229
9230 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9231 so they don't get wider than the window, matching 2006-01-23
9232 change to the partner function in xdisp.c (Bug#2800).
9233
9234 2009-04-03 Kenichi Handa <handa@m17n.org>
9235
9236 * print.c (print_object): Make each lowest sub_char_table start a
9237 new line (Bug#2866).
9238
9239 2009-04-02 Kenichi Handa <handa@m17n.org>
9240
9241 * fontset.c (fontset_font): Record no-font when a fontset
9242 explicitly tells not to try another font-specs.
9243
9244 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9245
9246 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9247
9248 2009-03-30 Kenichi Handa <handa@m17n.org>
9249
9250 * fontset.c (fontset_from_font): Specify only registry in a
9251 font-spec for all characters supported by that registry.
9252
9253 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9254 even if HAVE_M17N_FLT is not defined.
9255
9256 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9257
9258 * ftfont.c: Conditionalize prototyping and use of
9259 ftfont_variation_glyphs.
9260
9261 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9262
9263 * frame.c (delete_frame): Work around compiler bug.
9264
9265 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9266 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9267 Some more EMACS_INT.
9268 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9269
9270 * xdisp.c (dump_glyph): Fix typo.
9271
9272 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9273 (adjust_markers_gap_motion, adjust_markers_for_delete)
9274 (adjust_markers_for_insert, adjust_point)
9275 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9276 (make_gap, copy_text, count_size_as_multibyte, insert)
9277 (insert_and_inherit, insert_before_markers)
9278 (insert_before_markers_and_inherit, insert_1)
9279 (count_combining_before, count_combining_after, insert_1_both)
9280 (insert_from_string, insert_from_string_before_markers)
9281 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9282 (insert_from_buffer_1, adjust_after_replace)
9283 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9284 (replace_range_2, del_range, del_range_1, del_range_byte)
9285 (del_range_both, del_range_2, modify_region)
9286 (prepare_to_modify_buffer, signal_before_change)
9287 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9288 for buffer positions and sizes.
9289 * lisp.h: Adjust prototypes accordingly.
9290
9291 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9292 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9293 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9294
9295 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9296
9297 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9298
9299 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9300 lines and columns so we keep the same pixel height and width.
9301
9302 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9303 the property _NET_WM_STATE has changed.
9304 (x_handle_net_wm_state): New function to update frame parameter
9305 fullscreen.
9306 (x_term_init): Initialize atoms for _NET_WM_STATE.
9307
9308 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9309
9310 2009-03-27 Kevin Ryde <user42@zip.com.au>
9311
9312 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9313 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9314 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9315 (Fgpm_mouse_stop): Pass that new parameter.
9316 * termhooks.h (close_gpm): Adjust prototype.
9317
9318 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9319
9320 * lisp.h (Fx_focus_frame): Declare.
9321
9322 * callint.c (Fcall_interactively): For '^' just delegate the work to
9323 handle-shift-selection.
9324 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9325
9326 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
9327
9328 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9329
9330 * data.c (Qinteractive_form): New variable.
9331 (Finteractive_form): Use it.
9332
9333 * eval.c (Fcommandp): Use Qinteractive_form.
9334
9335 2009-03-24 Jason Rumney <jasonr@gnu.org>
9336
9337 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9338 Calculate total size precisely. Decode environment variables
9339 before substituting. (Bug#38)
9340
9341 2009-03-24 Kenichi Handa <handa@m17n.org>
9342
9343 * font.c (find_font_encoding): Return Qnil for unsupported
9344 encoding (Bug#2722).
9345
9346 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9347
9348 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9349 that gdpy is set.
9350
9351 2009-03-22 Alan Mackenzie <acm@muc.de>
9352
9353 * callint.c (Finteractive): Clarify the doc string - even
9354 promptless elements need \n separators.
9355
9356 2009-03-22 Jason Rumney <jasonr@gnu.org>
9357
9358 * w32term.c (syms_of_w32term): Doc fix for
9359 x-use-underline-position-properties.
9360
9361 2009-03-21 Eli Zaretskii <eliz@gnu.org>
9362
9363 * w32.c (getpwuid): Change argument type to unsigned.
9364 (struct w32_id): Change type of `rid' member to unsigned.
9365 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9366 argument ID to unsigned. All callers changed.
9367 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9368
9369 2009-03-20 Eli Zaretskii <eliz@gnu.org>
9370
9371 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9372 negative, produce a float value.
9373
9374 * dired.c (make_uid, make_gid): New functions.
9375 (Ffile_attributes): Use them to avoid negative UID and GID.
9376
9377 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
9378
9379 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9380 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9381 Fix typos in docstrings.
9382
9383 2009-03-19 Kenichi Handa <handa@m17n.org>
9384
9385 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
9386 changed, use font_load_for_lface to get a new font object.
9387 Call free_realized_fontset after handling ASCII font change.
9388
9389 * frame.c (x_set_font): Handle the case that ARG is a cons.
9390
9391 2009-03-19 Glenn Morris <rgm@gnu.org>
9392
9393 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9394
9395 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
9396
9397 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9398
9399 2009-03-19 Kenichi Handa <handa@m17n.org>
9400
9401 * charset.c (load_charset_map_from_file): When a mapfile can't be
9402 loaded, signal an error.
9403
9404 2009-03-18 Eli Zaretskii <eliz@gnu.org>
9405
9406 * dired.c (Ffile_attributes): Make sure UID and GID are always
9407 positive, even if the value is too large for a positive EMACS_INT.
9408 Doc fix.
9409
9410 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9411
9412 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9413
9414 * xmenu.c (xdialog_show): Move Fredisplay call ...
9415 (Fx_popup_dialog): ... here.
9416
9417 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9418
9419 * dired.c (file_name_completion): Disable the first optimization just
9420 installed, since it is not implemented correctly.
9421
9422 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9423
9424 * dired.c (file_name_completion): Check completion-ignored-extensions
9425 only if the entry can affect bestmatch.
9426 Stop the search early, as Ftry_completion already does.
9427
9428 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
9429
9430 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
9431
9432 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
9433
9434 * keyboard.c (parse_menu_item): Don't display remappings as menu
9435 equivalent bindings (Bug#788).
9436
9437 2009-03-15 Jason Rumney <jasonr@gnu.org>
9438
9439 * w32term.h (WM_EMACS_PAINT): New message.
9440 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9441 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9442 before passing to lisp thread. (Bug#950)
9443
9444 2009-03-14 David Reitter <david.reitter@gmail.com>
9445
9446 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9447 variable as it was never reset.
9448 (ns_term_init): Remove initialization of Lisp-settable defaults
9449 and ns_expand_space.
9450 (-setPanelFromDefaultValues): Remove ns_expand_space.
9451 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9452 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
9453 i.e. no additional spacing, similar to Carbon port.
9454
9455 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9456 * nsfns.m (ns-popup-prefs-panel): Remove.
9457
9458 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9459
9460 * sound.c (alsa_configure): Remove call to deprecated
9461 snd_pcm_sw_params_set_xfer_align.
9462
9463 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
9464
9465 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9466 after clicking in a detached tool bar.
9467 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9468
9469 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9470
9471 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9472 int/Lisp_Object mixup).
9473
9474 2009-03-13 Kenichi Handa <handa@m17n.org>
9475
9476 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
9477 Handle NAME nil and t correctly. Callers changed.
9478 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9479 (set_fontset_font): Change ARG to a vector. Handle range_list in
9480 ARG correctly.
9481 (Fset_fontset_font): Fix the case that TARGET is both a script
9482 name and charset name. Adjust the arg to set_fontset_font for
9483 the above change.
9484 (fontset_from_font): Fix previous change.
9485 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
9486 entry. If FONTSET is the default fontset, don't set the extra
9487 slot of the returning char-table.
9488
9489 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
9490
9491 * nsfns.m (Fx_close_connection): Doc fix.
9492 (Fns_do_applescript): Reflow docstring.
9493 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9494 (Fx_display_pixel_width, Fx_display_pixel_height)
9495 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9496 Fix typos in docstrings.
9497 (Fns_set_alpha): Fix typos in error messages.
9498
9499 2009-03-12 David Reitter <david.reitter@gmail.com>
9500
9501 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
9502 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9503 were used for such events.
9504
9505 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9506 (toggleToolbar, performDragOperation, runHelp): Use it.
9507
9508 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
9509 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9510
9511 2009-03-11 Kenichi Handa <handa@m17n.org>
9512
9513 * font.h (font_open_by_spec): Extern it.
9514
9515 * font.c (font_open_by_spec): New function.
9516 (font_open_by_name): Use font_open_by_spec.
9517
9518 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9519 fontset of the frame.
9520
9521 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9522 modify the default font of frames that use this fontset.
9523 (num_auto_fontsets): New variable.
9524 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9525 name. Be sure to set FONTSET_ASCII to the correct font name.
9526 (update_auto_fontset_alist): New function.
9527
9528 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
9529
9530 * makefile.w32-in: Update dependencies.
9531
9532 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9533
9534 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9535
9536 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9537
9538 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9539
9540 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
9541
9542 * lread.c (Feval_buffer): Doc fix.
9543
9544 2009-03-09 Kenichi Handa <handa@m17n.org>
9545
9546 * charset.c (Qfile_name_handler_alist): Extern it.
9547 (load_charset_map_from_file): Temporarily bind
9548 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9549
9550 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
9551
9552 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9553 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
9554
9555 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9556
9557 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9558 (x_set_window_size): Change back to calculated method of setting
9559 toolbar height under Cocoa. (Bug#2546)
9560 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9561 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9562
9563 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9564
9565 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9566 accelerator in parens under GNUstep.
9567
9568 2009-03-06 Kenichi Handa <handa@m17n.org>
9569
9570 These changes are to detect incorrect composition sequence without
9571 looking ahead the source. (Bug#2370)
9572
9573 * coding.h: Include "composite.h".
9574 (enum compisition_state): New enum.
9575 (struct compisition_status): New struct.
9576 (struct iso_2022_spec): New member cmp_status.
9577 (struct emacs_mule_spec): New struct.
9578 (struct coding_system): New members ctext_extended_segment_len and
9579 embedded_utf_8. Change the union member
9580 spec.emacs_mule_full_support to spec.emacs_mule.
9581
9582 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9583 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
9584 (MAX_ANNOTATION_LENGTH): Define to 5.
9585 (ADD_COMPOSITION_DATA): New arg nbytes.
9586 (emacs_mule_char): New arg cmp_status.
9587 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9588 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9589 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9590 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9591 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9592 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9593 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9594 (EMACS_MULE_COMPOSITION_END): New macro.
9595 (emacs_mule_finish_composition): New function.
9596 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9597 (decode_coding_emacs_mule): Avoid long looking ahead while
9598 handling composition.
9599 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9600 (ENCODE_COMPOSITION_RULE): New macro.
9601 (finish_composition): New function.
9602 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9603 (DECODE_COMPOSITION_START): New implementation.
9604 (DECODE_COMPOSITION_END): Likewise.
9605 (STORE_COMPOSITION_RULE): New macro.
9606 (decode_coding_iso_2022): Avoid long looking ahead while handling
9607 composition, CTEXT extended segment, and embedded UTF-8.
9608 (setup_coding_system): For a coding of type iso-2022, reset
9609 CODING_ISO_EXTSEGMENT_LEN (coding) and
9610 CODING_ISO_EMBEDDED_UTF_8 (coding).
9611 (get_translation): Delete arguments last_block, from_nchars,
9612 to_nchars. Callers changed.
9613 (produce_chars): Don't modify charbuf. Adjusted for the change of
9614 get_translation.
9615 (produce_composition): Adjust for the new annotation sequence.
9616 (handle_composition_annotation): Likewise.
9617 (consume_chars): Adjust for the change of get_translation.
9618
9619 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9620
9621 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
9622
9623 2009-03-05 Kenichi Handa <handa@m17n.org>
9624
9625 * font.c (font_select_entity): New function.
9626 (font_find_for_lface): Use font_select_entity to select a font.
9627
9628 * fontset.c (fontset_find_font): If a font found without
9629 restricting to the characters C doesn't support C, try to find a
9630 font with C restriction.
9631
9632 2009-03-04 Nikolaj Schumacher <me@nschum.de>
9633
9634 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
9635
9636 2009-03-04 Jason Rumney <jasonr@gnu.org>
9637
9638 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
9639 characters that have already been read. (Bug#2569)
9640
9641 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9642 Log an error message if check_image_size failed.
9643 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
9644 (gs_load): Mention max-image-size in size error message. (Bug#2560)
9645
9646 2009-03-02 Eli Zaretskii <eliz@gnu.org>
9647
9648 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9649 when decoding process output.
9650
9651 2009-03-01 Richard M Stallman <rms@gnu.org>
9652
9653 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9654
9655 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9656
9657 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9658
9659 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9660 (decode_coding_emacs_mule, decode_coding_iso_2022)
9661 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9662 (decode_coding_raw_text, decode_coding_charset)
9663 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9664 Honor inhibit-eol-conversion. (Bug #2186)
9665
9666 2009-02-28 Jason Rumney <jasonr@gnu.org>
9667
9668 * coding.c (detect_coding_charset): If not checking latin extra,
9669 fail on characters between 0x80 and 0xA0. (Bug#2354)
9670
9671 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9672
9673 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
9674 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
9675
9676 2009-02-27 Glenn Morris <rgm@gnu.org>
9677
9678 * callint.c (Finteractive): Doc fix.
9679
9680 2009-02-27 Kenichi Handa <handa@m17n.org>
9681
9682 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9683
9684 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9685
9686 * font.c (font_style_to_value): Set value for unknown symbols to
9687 100 instead of 255.
9688 (weight_table, slant_table, width_table): Treat "unspecified" as
9689 the default value.
9690
9691 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9692
9693 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9694
9695 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9696
9697 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9698 error as soon as a recursive load is detected.
9699
9700 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9701
9702 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9703 before caching.
9704
9705 2009-02-24 Kenichi Handa <handa@m17n.org>
9706
9707 * fontset.c (fontset_find_font): Fix the condition for checking
9708 unavailable font.
9709
9710 2009-02-24 Glenn Morris <rgm@gnu.org>
9711
9712 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9713 whitespace that confuses documentation.
9714
9715 2009-02-23 Miles Bader <miles@gnu.org>
9716
9717 * process.c (Flist_system_processes, Fprocess_attributes)
9718 (syms_of_process): Rename `system-process-attributes' to
9719 `process-attributes'.
9720
9721 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9722
9723 * coding.h (struct coding_system): Make safe_charsets a pointer to
9724 unsigned char.
9725 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9726 being 255.
9727 (SAFE_CHARSET_P): Likewise.
9728 (setup_iso_safe_charsets): Properly setup safe_charsets.
9729 (Fdefine_coding_system_internal): Likewise.
9730 (setup_coding_system): Likewise. Remove unneeded casts.
9731 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9732 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9733 unneeded casts.
9734
9735 * insdel.c (del_range_2): Don't modify gap contents when called
9736 from decode_coding_object. (Bug#1809)
9737
9738 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9739
9740 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9741 Qfont_object.
9742 (Ftype_of): Recognize font objects.
9743
9744 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9745
9746 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9747 moved to data.c.
9748
9749 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9750
9751 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9752 async_iconified. Based on a patch by Christian Lynbech
9753 <christian.lynbech@tieto.com>.
9754 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9755
9756 2009-02-20 Glenn Morris <rgm@gnu.org>
9757
9758 * syntax.c (Fskip_chars_forward): Fix doc typo.
9759
9760 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9761
9762 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9763
9764 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9765
9766 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9767
9768 2009-02-19 Kenichi Handa <handa@m17n.org>
9769
9770 * coding.c (detect_coding): Preserve coding->mode.
9771 Don't overflow coding->carryover. (Bug#2370)
9772
9773 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9774
9775 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9776
9777 2009-02-18 Kenichi Handa <handa@m17n.org>
9778
9779 * font.c (font_check_otf_features): Fix handling of `nil' element.
9780 (Ffont_spec): Describe :lang and :otf in the docstring.
9781
9782 2009-02-16 Andreas Schwab <schwab@suse.de>
9783
9784 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9785 string.
9786
9787 2009-02-16 Kenichi Handa <handa@m17n.org>
9788
9789 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9790 (Bug#1723)
9791
9792 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9793
9794 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9795
9796 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9797 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9798
9799 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9800
9801 * msdos.c (MAX_SCREEN_BUF): New macro.
9802 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9803 Encode the entire run of glyphs sharing the same face, instead of
9804 doing that one glyph at a time (fixes a bug with displaying
9805 double-size characters).
9806
9807 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9808
9809 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9810
9811 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9812 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9813 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9814
9815 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9816 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9817
9818 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9819
9820 * keyboard.c (adjust_point_for_property): Allow stopping between two
9821 invisible areas.
9822
9823 2009-02-12 Jason Rumney <jasonr@gnu.org>
9824
9825 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9826 (add_font_entity_to_list): Call check_face_name even when family
9827 is unspecified.
9828
9829 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9830 Release DC when finished. Use NULL window to refer to desktop.
9831 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9832
9833 * w32font.c (add_font_entity_to_list): Fix check for substituted
9834 raster fonts. (Bug#2219)
9835
9836 2009-02-12 Kenichi Handa <handa@m17n.org>
9837
9838 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9839 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9840 (autocmp_chars): Use fast_looking_at. Don't compose more
9841 characters than MAX_COMPOSITION_COMPONENTS.
9842 (find_automatic_composition): While looking forward and backward,
9843 check static composition. Fix where to stop looking forward.
9844 (composition_adjust_point): Fix checking of static composition.
9845 (Fcomposition_get_gstring): Pay attention to
9846 MAX_COMPOSITION_COMPONENTS.
9847
9848 * lisp.h (fast_looking_at): Extern it.
9849
9850 * search.c (fast_looking_at): New function.
9851
9852 * term.c (encode_terminal_code): Adjust for the change of
9853 <struct glyph>.u.cmp.to.
9854 (append_composite_glyph): Likewise.
9855
9856 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9857 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9858 composition.
9859 (append_composite_glyph): Adjust for the change of
9860 <strcut glyph>.u.cmp.to.
9861
9862 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9863
9864 * casetab.c (init_casetab_once):
9865 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9866 * font.c (font_update_lface):
9867 * fontset.c (Fnew_fontset):
9868 * ftfont.c (ftfont_drive_otf):
9869 * xfont.c (xfont_open):
9870 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9871
9872 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9873
9874 * fileio.c (Fwrite_region): !NILP -> CONSP.
9875
9876 2009-02-10 Andreas Schwab <schwab@suse.de>
9877
9878 * process.c (send_process): Properly relocate pointer into data
9879 when using encoded data. (Bug#2272)
9880
9881 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9882
9883 * coding.c (detect_coding_charset): Fix previous change.
9884
9885 2009-02-08 Jason Rumney <jasonr@gnu.org>
9886
9887 * w32fns.c (w32_hide_hourglass): Handle case where frame
9888 disappeared while hourglass was displayed. (Bug #2193)
9889
9890 2009-02-07 Andreas Schwab <schwab@suse.de>
9891
9892 * unexelf.c (unexec): Fix error message.
9893
9894 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9895
9896 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9897 when modal window is active. (Bug #2152)
9898 (applicationShouldTerminate:): Remove now-unneeded while loop
9899 around NSRunAlertPanel.
9900
9901 * nsmenu.m (popupSession): New file-global variable.
9902 (pop_down_menu): End the popupSession before closing dialog.
9903 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9904 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9905 don't query NSApp for events (just sleep instead).
9906
9907 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9908
9909 * coding.c (syms_of_coding) <translation-table-for-input>:
9910 Modify doc string to discourage use for character code unification.
9911
9912 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9913
9914 * atimer.c (run_timers): Update pending_atimers.
9915
9916 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9917
9918 * image.c (svg_load_image): Fix last change.
9919
9920 * xfns.c (Fx_create_frame): Signal an error if no font is
9921 found (Bug#2147).
9922
9923 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9924
9925 * character.c (syms_of_character) <script-representative-chars>:
9926 Fix typo in docstring.
9927
9928 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9929
9930 * nsmenu.m (pop_down_menu): New function.
9931 (ns_popup_dialog): Call it on unwind.
9932 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9933 call timer_check() (Bug#2154).
9934 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9935 handling_signal is set.
9936 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9937
9938 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9939
9940 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9941
9942 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9943
9944 * keyboard.c (poll_for_input_1, handle_async_input):
9945 Set handling_signal under HAVE_NS.
9946
9947 2009-02-04 Glenn Morris <rgm@gnu.org>
9948
9949 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9950
9951 2009-02-04 Kenichi Handa <handa@m17n.org>
9952
9953 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9954
9955 * charset.c (Fchar_charset): New optional arg restriction.
9956
9957 * coding.h (coding_system_charset_list): Extern it.
9958
9959 * coding.c (coding_system_charset_list): New function.
9960
9961 * composite.c: Include coding.h and termhooks.h.
9962 (composition_gstring_p): Fix for the terminal case.
9963 (composition_gstring_width): Likewise.
9964 (fill_gstring_body): Likewise.
9965 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9966 the frame.
9967 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9968 is within a composition.
9969 (Fcomposition_get_gstring): Fix the terminal case.
9970
9971 * term.c (encode_terminal_code): Fix handling of composition.
9972 (produce_composite_glyph): For static composition, get pixel_width
9973 from struct composition.
9974
9975 2009-02-02 Andreas Schwab <schwab@suse.de>
9976
9977 * unexelf.c (unexec): Handle unaligned bss offset.
9978
9979 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9980
9981 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9982 XT,w32read_socket changes to ns_read_socket.
9983
9984 * keyboard.c (handle_interrupt): Don't call
9985 quit_throw_to_read_char() under NS.
9986
9987 * blockinput.h: Remove NS-specific code.
9988
9989 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9990
9991 * dispnew.c (window_change_signal): Don't try to get the size of a
9992 suspended tty frame.
9993 * term.c (Fresume_tty): Resize if the size has changed while the
9994 tty was suspended.
9995
9996 * alloc.c (mark_stack): Properly conditionalize previous change.
9997
9998 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
9999
10000 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10001 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10002 Remove; this code is not used on Windows.
10003
10004 2009-01-30 Eli Zaretskii <eliz@gnu.org>
10005
10006 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10007 EOLs that also has stray ^M characters.
10008
10009 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10010
10011 * atimer.c (run_timers, alarm_signal_handler):
10012 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10013 * w32inevt.c (w32_console_read_socket):
10014 * w32term.c (w32_read_socket):
10015 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10016
10017 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
10018
10019 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10020 Initialize it as a relative filename pattern.
10021 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10022 (Fcall_process_region): Simplify temp file creation using
10023 temporary-file-directory.
10024
10025 2009-01-29 Eli Zaretskii <eliz@gnu.org>
10026
10027 * msdos.c: Rename pending_signals to msdos_pending_signals.
10028 (sig_suspender, sigprocmask): Adjust.
10029
10030 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
10031
10032 * keyboard.c (pending_signals): New var.
10033 (poll_for_input, input_available_signal, init_keyboard): Set it.
10034 (process_pending_signals): New function.
10035
10036 * lisp.h (QUIT): Check pending_signals instead of
10037 interrupt_input_pending. Use process_pending_signals.
10038
10039 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
10040
10041 * process.c (wait_reading_process_output): Use process_pending_signals.
10042
10043 * sysdep.c (emacs_write): Use process_pending_signals.
10044
10045 * xterm.c (XTread_socket): Update pending_signals.
10046
10047 * w32term.c (w32_read_socket): Update pending_signals.
10048
10049 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10050
10051 2009-01-29 Kenichi Handa <handa@m17n.org>
10052
10053 * xftfont.c (xftfont_has_char): New function.
10054 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10055
10056 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10057
10058 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10059 under GNUstep.
10060 (ns_query_color): New declaration.
10061
10062 * nsterm.m (ns_confirm_quit): New variable.
10063 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10064 (EmacsApp-applicationShouldTerminate:): Use it.
10065 (EmacsPrefsController): Let user set it.
10066 (ns_query_color): New function.
10067 (ns_defined_color): Use it.
10068 (ns_initialize): Drop.
10069 (ns_term_init): Add two lines from ns_initialize(), and set
10070 input_interrupt_mode to nil.
10071
10072 * image.c (svg_load_image): Don't right-shift background RGB when
10073 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
10074
10075 2009-01-28 Kenichi Handa <handa@m17n.org>
10076
10077 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10078 (fontset_get_font_group): Remember that no font-group is specified
10079 for C.
10080
10081 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
10082
10083 * fns.c (concat): Check for string overflow (bug#1787).
10084
10085 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10086 Quadruple undo limits (bug#1501).
10087
10088 2009-01-27 Kenichi Handa <handa@m17n.org>
10089
10090 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10091 directly use GT_Get_Char_index.
10092
10093 * xftfont.c (struct xftfont_info): New member `index'.
10094
10095 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10096 (Ffontset_font): Adjust for the change of fontset entry.
10097
10098 2009-01-26 Kenichi Handa <handa@m17n.org>
10099
10100 * fontset.c (fontset_find_font): Fix handling of non-cons return
10101 value of fontset_get_font_group.
10102 (fontset_font): Revert last change.
10103
10104 2009-01-26 Jason Rumney <jasonr@gnu.org>
10105
10106 * w32font.c (w32font_list_internal): Return quickly if registry is
10107 unknown. Simplify final return.
10108 (add_font_entity_to_list): Break complex logic down into more
10109 manageable chunks. Move unknown registry check to
10110 w32font_list_internal.
10111
10112 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10113
10114 Changes to remove Feval calls from GUI under NS.
10115
10116 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10117 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
10118 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10119
10120 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10121 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10122 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10123 instead of NON_ASCII_KEYSTROKE_EVENT.
10124 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10125 (EmacsApp-applicationShouldTerminate:): Query user.
10126 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10127 instead of Feval.
10128
10129 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10130
10131 * keyboard.c (kbd_buffer_get_event): Check for it.
10132 (keys_of_keyboard): Define lispy keys for
10133 ns-put/unput-working-text.
10134
10135 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10136 versions.
10137 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10138
10139 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
10140
10141 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
10142 setting current_buffer directly. (Bug#2044)
10143
10144 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
10145
10146 * fontset.c (fontset_font): If we know there is no font, don't do
10147 any work. (Bug#1952, bug#1990).
10148
10149 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
10150
10151 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10152
10153 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
10154 (ns_no_defaults): New declaration.
10155 (main): Use it.
10156
10157 * nsterm.h (ns_no_defaults): New declaration.
10158
10159 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
10160
10161 * nsterm.m (ns_no_defaults): New variable.
10162 (ns_initialize): Don't read defaults when ns_no_defaults.
10163 (EmacsView-readSelectionFromPasteboard:)
10164 (writeSelectionToPasteboard:types:): New stubbed-out methods for
10165 NSServicesRequests protocol. (Bug#1435)
10166 (ns_dumpglyphs_stretch): New function.
10167 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
10168 of 2008-11-15 to other terms. (Bug#615)
10169
10170 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10171
10172 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10173
10174 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10175 call for Sparc64.
10176
10177 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10178
10179 * nsfns.m:
10180 * nsgui.h:
10181 * nsmenu.m:
10182 * nsselect.m:
10183 * nsterm.h:
10184 * nsterm.m: Remove '23' comments that indicated code added during
10185 update from emacs-20 -> emacs-23.
10186
10187 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10188
10189 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
10190 ns_alternate_modifier. (Bug#1217)
10191
10192 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10193 Display all shortcuts, including those w/o super modifier.
10194
10195 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10196
10197 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
10198
10199 * fileio.c (Vwrite_region_post_annotation_function)
10200 (Vwrite_region_annotation_buffers): New vars.
10201 (build_annotations_unwind): Just reset
10202 Vwrite_region_annotation_buffers.
10203 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10204 Call write-region-post-annotation-function.
10205 (build_annotations): Add to Vwrite_region_annotation_buffers if
10206 buffer changes.
10207
10208 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10209
10210 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10211 Tiger.
10212 * nsfns.m (ns_do_applescript):
10213 Conditionalize typeUTF16ExternalRepresentation on Tiger.
10214
10215 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10216
10217 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10218
10219 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10220
10221 * nsmenu.m (NSMENUPROFILE): Change #if style.
10222
10223 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10224
10225 * nsterm.m (x_set_frame_alpha): Add prototype.
10226 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10227 handle Ctrl-tab. (Bug#1841)
10228 (ns_get_color): Use unsigned long long for scanned hex string value.
10229 (ns_term_shutdown): Abort on non SIGTERM signals.
10230 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
10231 (EmacsPrefsController-setPanelFromDefaultValues): New function.
10232 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
10233 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
10234 (ns_defined_color): Fix settings of the XColor variable fields:
10235 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
10236
10237 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
10238 DPI. (Bug#1316)
10239 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10240 values in onTiger section.
10241
10242 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
10243
10244 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10245 Check return value of font_spec_from_name.
10246 (Fx_list_fonts): Doc fix. (Bug#1951)
10247
10248 * font.c (font_spec_from_name): Return Qnil if font name could not
10249 be parsed.
10250 (font_parse_name): Treat a `?' character as part of an XLFD.
10251
10252 * fns.c (Fsubstring): Doc fix.
10253
10254 2009-01-19 Kenichi Handa <handa@m17n.org>
10255
10256 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
10257 (ftfont_list): Likewise.
10258
10259 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
10260
10261 * dbusbind.c (Fdbus_register_signal):
10262 * process.c (conv_sockaddr_to_lisp):
10263 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10264
10265 * callproc.c (Fgetenv_internal): Doc fix.
10266
10267 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
10268
10269 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10270 it is not even used.
10271
10272 2009-01-16 Glenn Morris <rgm@gnu.org>
10273
10274 * font.c (Ffont_variation_glyphs): Silence compiler.
10275
10276 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
10277
10278 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10279 Reported by David Robinow <drobinow@gmail.com>.
10280
10281 2009-01-15 Kenichi Handa <handa@m17n.org>
10282
10283 * coding.c (detect_coding_system): Fix handling of null_byte_found.
10284
10285 2009-01-14 Jason Rumney <jasonr@gnu.org>
10286
10287 * frame.c (x_set_font): Always store a font to the font parameter,
10288 never a fontset. (Bug#1562)
10289
10290 2009-01-14 Kenichi Handa <handa@m17n.org>
10291
10292 * coding.c (TWO_MORE_BYTES): New macro.
10293 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
10294
10295 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
10296
10297 * font.c (font_clear_prop): If clearing the family, clear the font
10298 width index too.
10299
10300 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
10301
10302 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
10303
10304 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10305 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10306 functions, use sizeof.
10307
10308 2009-01-12 Martin Rudalics <rudalics@gmx.at>
10309
10310 * keyboard.c (read_char): Fix case where last_nonmenu_event
10311 returned a bad value with submenus. (Bug#447)
10312
10313 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
10314
10315 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10316 family, clear the font width index too.
10317
10318 2009-01-11 Jason Rumney <jasonr@gnu.org>
10319
10320 * keyboard.c (cmd_error_internal): Exit when errors occur before
10321 frame creation and not in daemon mode. (Bug#1836)
10322
10323 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
10324
10325 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10326 of a display vector, backtrack.
10327 (try_window_reusing_current_matrix): Check glyph type before
10328 referencing charpos member.
10329
10330 2009-01-10 Eli Zaretskii <eliz@gnu.org>
10331
10332 Fix Bug #876:
10333
10334 * coding.c (inhibit_null_byte_detection): New variable.
10335 (detect_coding, detect_coding_system): Don't pay attention to null
10336 bytes if inhibit_null_byte_detection is non-zero.
10337 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
10338 <inhibit-iso-escape-detection>: Doc fix.
10339
10340 2009-01-09 Jason Rumney <jasonr@gnu.org>
10341
10342 * w32font.c (add_font_entity_to_list): Don't report unknown
10343 Windows charset as any unrecognized registry. (Bug#1548)
10344 Only report Unicode Plane 2 fonts as unicode-sip.
10345
10346 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
10347
10348 * xfaces.c (Fx_font_family_list): Delete function.
10349 Move compatibility version to faces.el.
10350
10351 * font.c (Ffont_family_list): Return a list of strings, not symbols.
10352
10353 2009-01-09 Martin Rudalics <rudalics@gmx.at>
10354
10355 * frame.c (x_set_frame_parameters): Remember requested value for
10356 fullscreen before it's reset by the parameter handler.
10357
10358 2009-01-09 Glenn Morris <rgm@gnu.org>
10359
10360 * keyboard.c (last_command_char): For clarity, rename to...
10361 (last_command_event): ... and update all users.
10362 (last_input_char): For clarity, rename to...
10363 (last_input_event): ... and update all users.
10364 (last-command-char, last-input-char): Move to subr.el as aliases.
10365 * cmds.c, commands.h: Update for last_command_char rename.
10366
10367 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
10368
10369 * font.c (font_open_for_lface): Handle unspecified height attribute.
10370
10371 2009-01-08 Jason Rumney <jasonr@gnu.org>
10372
10373 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10374 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10375 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10376 Don't declare.
10377 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
10378 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10379
10380 2009-01-07 Kenichi Handa <handa@m17n.org>
10381
10382 * fileio.c (Finsert_file_contents): In the case of replace,
10383 remember the coding system used for decoding in
10384 coding_system (Bug#1039).
10385
10386 * coding.c (decode_coding_utf_8): Check byte_after_cr before
10387 breaking the loop. (Bug#870)
10388 (decode_coding_utf_16, decode_coding_emacs_mule)
10389 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10390 (decode_coding_charset): Likewise.
10391
10392 2009-01-05 Martin Rudalics <rudalics@gmx.at>
10393
10394 * frame.c (x_set_frame_parameters): Make sure height (width) get
10395 applied when fullwidth (fullheight) is set. (Bug#1522)
10396
10397 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
10398
10399 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10400 (utc_base): Declare as ULONGLONG, not long double.
10401 (convert_time_raw): Delete.
10402 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10403 (initialize_utc_base): New function.
10404 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10405 (convert_from_time_t): Use initialize_utc_base; compute result with
10406 64-bit arithmetic.
10407 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10408
10409 2009-01-03 Eli Zaretskii <eliz@gnu.org>
10410
10411 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
10412 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10413 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10414 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10415 [!subprocesses]: Define.
10416 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10417 (Flist_system_processes, Fsystem_process_attributes)
10418 [!subprocesses]: Call list_system_processes and
10419 system_process_attributes instead of returning Qnil.
10420
10421 * dosfns.c (system_process_attributes, list_system_processes):
10422 New functions.
10423
10424 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10425
10426 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10427 Don't use the default (no-op) implementation.
10428
10429 2009-01-03 Jason Rumney <jasonr@gnu.org>
10430
10431 * keyboard.c (parse_modifiers_uncached): Wheel events are
10432 clicks (bug#687).
10433
10434 * w32term.c (x_query_colors, x_query_color): New functions.
10435
10436 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10437 (svg_load_image): Cast returned pointers from dynamically loaded
10438 functions. Eliminate W32 specific code.
10439
10440 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10441
10442 * nsfns.m (x_set_foreground_color, x_set_background_color)
10443 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10444 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10445 x_ prefix instead of ns_. Update references.
10446 (syms_of_nsfns): Add a FIXME comment.
10447
10448 * nsterm.m (x_set_cursor_type): New prototype.
10449 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10450
10451 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10452 for Solaris instead of incorrectly providing Qutime and Qcutime.
10453
10454 2009-01-02 Eli Zaretskii <eliz@gnu.org>
10455
10456 * w32.c (process_times): Compute sum of utime and stime.
10457 (system_process_attributes): Add Qtime to the alist.
10458
10459 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10460 and add them to the alist.
10461
10462 * process.c (top level) <Qtime, Qctime>: New variables.
10463 (syms_of_process): staticpro them.
10464 (Fsystem_process_attributes): Add their documentation to the doc
10465 string.
10466
10467 * process.h: Declare Qtime and Qctime.
10468
10469 2009-01-02 Jason Rumney <jasonr@gnu.org>
10470
10471 * image.c (Qgobject): New symbol.
10472 (syms_of_image): Initialize it.
10473 (init_svg_functions): Load some functions from gobject library.
10474
10475 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10476
10477 * frame.c (make_terminal_frame): Remove redundant code and useless
10478 block.
10479
10480 2009-01-01 Andreas Schwab <schwab@suse.de>
10481
10482 * process.c (conv_sockaddr_to_lisp): Add workaround for
10483 getsockname bug on BSD.
10484
10485 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
10486
10487 * xfns.c (x_create_tip_frame): Set border width of the X window.
10488
10489 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
10490
10491 2009-01-01 Jason Rumney <jasonr@gnu.org>
10492
10493 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
10494 Don't block input, as per earlier xterm.c changes.
10495
10496 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10497
10498 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10499 (ns_appkit_version_int): New function.
10500 (x-server-version): Use ns_appkit_version_int and follow 21+
10501 convention of returning 3 integers.
10502
10503 2008-12-30 Kenichi Handa <handa@m17n.org>
10504
10505 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10506 (CHAR_SURROGATE_PAIR_P): New macro.
10507
10508 * font.h (struct font_driver): New member get_variation_glyphs.
10509
10510 * font.c (font_range): Don't require a font for a variation selector.
10511 (Ffont_variation_glyphs): New function.
10512 (syms_of_font): Defsubr it.
10513
10514 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10515 ftfont_variation_glyphs.
10516 (setup_otf_gstring): New function.
10517 (ftfont_drive_otf): Use it.
10518 (ftfont_shape_by_flt): Handle variation selector.
10519 (ftfont_variation_glyphs): New function.
10520
10521 2008-12-30 Martin Rudalics <rudalics@gmx.at>
10522
10523 * frame.c (Vemacs_iconified): Remove.
10524
10525 2008-12-30 Jason Rumney <jasonr@gnu.org>
10526
10527 * frame.c (store_frame_param, x_get_arg): Enable newer code on
10528 WINDOWSNT too, as related changes have already been synced. (Bug#117)
10529
10530 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
10531
10532 * indent.c (Fvertical_motion): Don't advance iterator if we have
10533 reseated to the desired position.
10534
10535 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10536 checking for pos match.
10537
10538 2008-12-30 Kenichi Handa <handa@m17n.org>
10539
10540 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10541 just get the low 8-bit of the code.
10542
10543 * font.c (font_intern_prop): Validate str as multibyte.
10544
10545 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10546
10547 * dispextern.h (struct face): Move lface and hash from the middle
10548 of bitfields.
10549
10550 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10551
10552 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10553
10554 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10555 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10556 instead of intervals.h.
10557
10558 2008-12-26 Andreas Schwab <schwab@suse.de>
10559
10560 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10561 cons.
10562
10563 2008-12-26 Martin Rudalics <rudalics@gmx.at>
10564
10565 * textprop.c (Qminibuffer_prompt): New variable.
10566 (syms_of_textprop): Initialize it.
10567 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10568 in minibuffer-prompt face. (Bug#1662)
10569
10570 2008-12-25 Jason Rumney <jasonr@gnu.org>
10571
10572 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10573
10574 2008-12-24 Jason Rumney <jasonr@gnu.org>
10575
10576 * ralloc.c (r_alloc_reset_variable): New function.
10577
10578 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
10579 record of what points where. (Bug#716)
10580
10581 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10582
10583 * minibuf.c (read_minibuf): Follow the non-interactive case when
10584 running as a daemon, before detaching.
10585
10586 2008-12-22 Andreas Schwab <schwab@suse.de>
10587
10588 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10589 * gtkutil.c (free_widget_value): Use xfree instead of free.
10590
10591 2008-12-22 Martin Rudalics <rudalics@gmx.at>
10592
10593 * frame.c (delete_frame): New function derived from
10594 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10595 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10596 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10597 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10598 * frame.h: Extern delete_frame.
10599 * window.c (window_loop):
10600 * terminal.c (delete_terminal):
10601 * xterm.c (x_connection_closed):
10602 * xfns.c (Fx_hide_tip):
10603 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
10604
10605 2008-12-21 Jason Rumney <jasonr@gnu.org>
10606
10607 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10608 when character maps to .notdef character.
10609
10610 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10613
10614 2008-12-20 Jason Rumney <jasonr@gnu.org>
10615
10616 * frame.c (Fmake_terminal_frame): Raise an error when called from
10617 a graphical frame on Windows. (Bug#1325)
10618
10619 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10620
10621 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10622
10623 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
10624
10625 * minibuf.c (Fread_buffer): Doc fix.
10626
10627 2008-12-20 Jason Rumney <jasonr@gnu.org>
10628
10629 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
10630 server name in UNC paths. (Bug#719)
10631
10632 * coding.c (decode_coding): Clear chars_at_source flag when using
10633 charbuf. (Bug#1035)
10634
10635 2008-12-19 Daniel Engeler <engeler@gmail.com>
10636
10637 * sysdep.c (serial_configure): Fix typo.
10638
10639 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10640
10641 * sysdep.c: Include alloca.h.
10642 (system_process_attributes): Add implementation for Solaris.
10643
10644 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
10645
10646 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10647
10648 Reorganize implementation of Flist_system_processes and
10649 Fsystem_process_attributes. No functional changes.
10650 * process.c: Don't #include pwd.h, grp.h and limits.h.
10651 (Flist_system_processes): Just call list_system_processes.
10652 (Fsystem_process_attributes): Just call system_process_attributes.
10653 (procfs_list_system_processes, time_from_jiffies)
10654 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10655 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10656
10657 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10658 (list_system_processes): Rename from
10659 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10660 Provide a do nothing implementation.
10661 (system_process_attributes): Rename from
10662 procfs_list_system_processes.
10663 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10664 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
10665
10666 * w32.c (list_system_processes): Rename from
10667 w32_list_system_processes.
10668 (system_process_attributes): Rename from
10669 w32_system_process_attributes.
10670
10671 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10672
10673 * process.h (w32_list_system_processes)
10674 (w32_system_process_attributes): Remove.
10675 (list_system_processes, system_process_attributes):
10676 New prototypes.
10677
10678 2008-12-19 Kenichi Handa <handa@m17n.org>
10679
10680 * xfont.c (xfont_decode_coding_xlfd): New function.
10681 (xfont_encode_coding_xlfd): New function.
10682 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10683 (xfont_list): Decode and encode XLFD by iso-8859-1.
10684 (xfont_match): Likewise.
10685 (xfont_list_family): Likewise.
10686 (xfont_open): Likewise.
10687
10688 * ftfont.c (ftfont_open): Generate a multibyte string if given
10689 names are utf-8.
10690
10691 * xftfont.c (xftfont_open): Generate a multibyte string if given
10692 names are utf-8.
10693
10694 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10695
10696 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10697 changed.
10698 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10699 clicked on a detached tool bar button.
10700
10701 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10702
10703 * emacs.c (main): Print and error and exit when no data is read
10704 from the pipe.
10705
10706 2008-12-17 Jason Rumney <jasonr@gnu.org>
10707
10708 * w32font.c (w32font_has_char): Always return -1.
10709
10710 2008-12-16 Kenichi Handa <handa@m17n.org>
10711
10712 * font.c (font_open_entity): Fix previous change.
10713
10714 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10715
10716 * process.c: Include <limits.h>.
10717
10718 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10719
10720 * font.c (font_update_drivers): Fix mistake in reconstructing the
10721 driver list.
10722
10723 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10724
10725 * font.c (font_clear_cache): Fix format of font cache data.
10726
10727 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10728
10729 * xftfont.c (xftfont_open): Free Xft font pattern if
10730 XftFontOpenPattern fails.
10731
10732 * xterm.c (x_free_frame_resources): Remove extraneous call to
10733 free_frame_faces.
10734
10735 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10736
10737 * xterm.c (x_delete_display): Move xim_close_dpy call to
10738 x_delete_terminal.
10739 (x_delete_terminal): Call xim_close_dpy.
10740
10741 2008-12-13 Jason Rumney <jasonr@gnu.org>
10742
10743 * w32font.c (intern_font_name): New function.
10744 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10745 (w32font_open_internal, Fx_select_font): Decode font name.
10746 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10747
10748 * w32font.h (intern_font_name): Declare new function.
10749
10750 * w32uniscribe.c (add_opentype_font_name_to_list):
10751 Use intern_font_name.
10752
10753 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10754
10755 * frame.c (Fdelete_frame): Call free_font_driver_list.
10756
10757 * font.c (free_font_driver_list): Implement missing function.
10758
10759 * w32term.c (w32_term_init): Don't initialize the image cache
10760 here; it will be done in init_frame_faces.
10761
10762 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10763 (struct x_display_info): Remove unused member null_pixel. New
10764 member xim_callback_data.
10765
10766 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10767 (xim_initialize): Save pointer to callback function data.
10768 (xim_close_dpy): Free callback function data. Call XCloseIM,
10769 reverting 2008-11-04 change by David Smith.
10770 (x_term_init): Don't initialize the image cache here; it will be
10771 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10772 (x_delete_display): Free x_dnd_atoms member.
10773
10774 2008-12-13 Kenichi Handa <handa@m17n.org>
10775
10776 * font.c (font_rescale_ratio): Moved from xfaces.c.
10777 Argument type changed. Handle a font-spec too.
10778 (font_score): Check Vface_font_rescale_alist.
10779 (font_open_entity): Likewise. (Bug#1547)
10780
10781 * xfaces.c (font_rescale_ratio): Moved to font.c.
10782
10783 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10786
10787 2008-12-12 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10790 Vwindow_system_version to the real w32 major version.
10791
10792 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10793
10794 * term.c (init_tty): Move setting the terminal name before the
10795 potential user: maybe_fatal.
10796
10797 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10798
10799 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10800 all callers changed. Call free_frame_faces to free the face cache.
10801
10802 2008-12-11 Jason Rumney <jasonr@gnu.org>
10803
10804 * w32font.c (fill_in_logfont): Don't assume symbol script means
10805 SYMBOL_CHARSET. (Bug#547)
10806
10807 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10808 size for surrogates. (Bug#1096, bug#872)
10809
10810 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10811
10812 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10813
10814 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10815
10816 * process.c (Fsystem_process_attributes, syms_of_process):
10817 Fix typo in name of Ssystem_process_attributes.
10818 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10819
10820 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10821
10822 * syntax.c (Fmodify_syntax_entry): Doc fix.
10823
10824 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10825
10826 * font.c (Ffont_spec): Move usage to end of docstring.
10827
10828 2008-12-10 Jason Rumney <jasonr@gnu.org>
10829
10830 * w32font.c (Qcham): New symbol.
10831 (font_supported_scripts): Add cham, and comments for other new
10832 scripts in bitfield from OpenType spec.
10833 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10834 contain characters beyond the bmp.
10835
10836 2008-12-10 Kenichi Handa <handa@m17n.org>
10837
10838 * ftfont.c (fc_charset_table): Add "unicode-sip".
10839 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10840 Qunicode_sip.
10841
10842 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10843
10844 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10845 (Fcoding_system_put): Use QCdefault_char.
10846 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10847
10848 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10849
10850 * xftfont.c (syms_of_xftfont): Fix typo.
10851
10852 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10853
10854 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10855
10856 * emacs.c (main): Close daemon_pipe on exec.
10857
10858 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * termchar.h (struct tty): New members termcap_term_buffer and
10861 termcap_strings_buffer.
10862
10863 * term.c (encode_terminal_code): Free any previous memory blocks
10864 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10865 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10866 All callers changed.
10867 (init_tty): Store termcap data and string buffers in new struct
10868 tty members termcap_term_buffer and termcap_strings_buffer.
10869 (delete_tty): Free them.
10870 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10871
10872 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10873
10874 * nsfns.m (ns_set_background_color): Remove code duplication.
10875 It was a substitute for face-transparency on OS X 10.3.
10876
10877 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10878
10879 * coding.c (make_conversion_work_buffer): Disable buffer
10880 modification hooks in the work buffer.
10881
10882 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10883
10884 * process.c (procfs_system_process_attributes): If `nread' has a
10885 negative value, assign zero to it.
10886
10887 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10888
10889 * eval.c (Vdebug_on_error): Doc fix.
10890
10891 2008-12-05 Kenichi Handa <handa@m17n.org>
10892
10893 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10894 second character is a combining character.
10895
10896 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10897
10898 * process.c (procfs_system_process_attributes): Don't use cmd,
10899 cmdsize, and q without initializing them first.
10900
10901 2008-12-04 Jason Rumney <jasonr@gnu.org>
10902
10903 * w32font.c (w32font_draw): Initialize orig_clip before getting
10904 it, and delete it when finished.
10905
10906 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10907
10908 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10909 case when running as a daemon before detaching.
10910
10911 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10912
10913 * w32.c (init_environment): Don't unload library shell32.dll.
10914
10915 2008-12-03 Kenichi Handa <handa@m17n.org>
10916
10917 * font.c (font_at): Set `multibyte' at first.
10918
10919 * coding.c (decode_coding_charset): Check type of an element of
10920 vector VALIDS.
10921 (encode_coding_emacs_mule): Be sure to set `code'.
10922
10923 * fontset.c (face_for_char): Handle invalid charset property correctly.
10924 (font_for_char): Likewise.
10925
10926 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10927
10928 * font.c (Fopen_font): Compute pixel size correctly.
10929 (font_update_lface): Handle fonts with corrupted size specs,
10930 i.e. non-int and non-float.
10931
10932 * ftfont.c (ftfont_match): Initialize entity variable.
10933 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10934 (ftfont_list_family): Initialize list var earlier.
10935
10936 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10937
10938 * xterm.c (x_draw_glyph_string): Fall back on
10939 underline_minimum_offset for underline position.
10940
10941 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10942
10943 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10944
10945 * character.c (c_string_width): Specify the type for LEN.
10946
10947 2008-12-03 Kenichi Handa <handa@m17n.org>
10948
10949 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10950 (decode_coding_utf_8): Likewise.
10951 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10952 (produce_chars): Initialize consumed_chars to 0.
10953
10954 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * keyboard.c (make_lispy_position): Only use PT if the selected
10957 window is current.
10958
10959 2008-12-02 Andreas Schwab <schwab@suse.de>
10960
10961 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10962
10963 * doprnt.c (doprnt1): Fix size of charbuf.
10964
10965 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10966
10967 * keyboard.c (timer_check): Revert last change.
10968
10969 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
10970
10971 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10972
10973 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
10974
10975 * makefile.w32-in: Update dependencies.
10976 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10977
10978 2008-12-01 Andreas Schwab <schwab@suse.de>
10979
10980 * font.c (register_font_driver): Use xmalloc.
10981 (font_put_frame_data): Likewise.
10982
10983 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
10984
10985 * xfaces.c (realize_x_face): Make abort condition clearer.
10986
10987 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10988
10989 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
10990
10991 * keyboard.c (timer_check): After a timer runs, ensure that the
10992 selected window's buffer is current.
10993
10994 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
10995
10996 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10997 It was accidentally restored by the Unicode merge.
10998
10999 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11000
11001 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
11002
11003 * w32proc.c: Include "coding.h".
11004 (Fw32_short_file_name): Encode filename passed to Windows API.
11005 (Fw32_long_file_name): Encode filename passed to Windows API and
11006 decode back the result. (Bug#1433)
11007
11008 2008-11-29 Kenichi Handa <handa@m17n.org>
11009
11010 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11011 not before accessing it.
11012
11013 * charset.c (Fdefine_charset_internal): After calculating
11014 min_char, max_char, and fastmap, copy the charset structure again.
11015 (encode_char): Fix the previous change.
11016
11017 2008-11-28 Seiji Zenitani <zenitani@mac.com>
11018
11019 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11020
11021 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11022
11023 * nsterm.m (x_set_frame_alpha): New function.
11024
11025 2008-11-27 Eli Zaretskii <eliz@gnu.org>
11026
11027 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11028
11029 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
11030
11031 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11032 pointer to check_face_name.
11033
11034 2008-11-27 Kenichi Handa <handa@m17n.org>
11035
11036 * category.h (SET_CATEGORY_SET): Call set_category_set.
11037 (set_category_set): Extern it.
11038
11039 * category.c (hash_get_category_set): New function.
11040 (Fmodify_category_entry): Adjusted for the change of
11041 char_table_ref_and_range. Call hash_get_category_set to get a
11042 category set to store in the table.
11043
11044 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11045 Funify_charset.
11046
11047 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
11048 (DECODE_CHAR): Check if the decoder vector is ready.
11049 (ENCODE_CHAR): Check if the encoder char-table is ready.
11050 (maybe_unify_char): Extern it.
11051
11052 * charset.c (Vchar_unified_charset_table): Delete it.
11053 (inhibit_load_charset_map): New variable.
11054 (temp_charset_work): New variable.
11055 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11056 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11057 New macros.
11058 (load_charset_map): Meaning of control_flag changed. If
11059 inhibit_load_charset_map is nonzero, setup a table in
11060 temp_charset_work.
11061 (load_charset): New argument control_flag.
11062 (map_charset_for_dump): New function.
11063 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11064 map_charset_for_dump.
11065 (Fdefine_charset_internal): If the charset method is MAP, load
11066 mapping tables by calling load_charset.
11067 (Funify_charset): Don't load a mapping table but directly set
11068 Vchar_unify_table.
11069 (maybe_unify_char): New function.
11070 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11071 Handle the case of inhibit_load_charset_map being nonzero.
11072 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11073 Handle the case of inhibit_load_charset_map being nonzero.
11074 (Fclear_charset_maps): Just free temp_charset_work.
11075 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11076 variable.
11077
11078 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11079 change of char_table_ref_and_range.
11080 (char_table_ref_and_range): Change the meaning of argument FROM
11081 and TO. Now the caller must provide initial values for *FROM
11082 and *TO.
11083
11084 * fontset.c (fontset_add): Adjusted for the change of
11085 char_table_ref_and_range.
11086 (fontset_get_font_group): Likewise.
11087 (Ffontset_info): Likewise.
11088
11089 * keymap.c (describe_vector): Adjusted for the change of
11090 char_table_ref_and_range. For char-table, put boundary between
11091 non-ASCII and 8-bit characters.
11092
11093 * print.c (print_object): For bool-vector, delete unnecessary
11094 check of ASCII_BYTE_P.
11095
11096 2008-11-26 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32font.c (w32font_open_internal): Don't include external
11099 leading in font height. (Bug#879)
11100
11101 2008-11-26 Glenn Morris <rgm@gnu.org>
11102
11103 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11104 redefinition with ifdef. (Bug#1383)
11105
11106 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11107
11108 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11109
11110 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11111
11112 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11113 New EmacsView methods.
11114 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11115 Fixes bug #1048,1357,1414.
11116
11117 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11118
11119 Fix bug #1362.
11120 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11121 is not an indexed color.
11122 * nsterm.m (free_indexed_color): Add argument checking.
11123 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11124
11125 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
11126
11127 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11128 Document confirm-after-completion value for
11129 minibuffer-completion-confirm.
11130
11131 2008-11-24 Jason Rumney <jasonr@gnu.org>
11132
11133 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11134 warning.
11135
11136 2008-11-23 Jason Rumney <jasonr@gnu.org>
11137
11138 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11139 restored before returning.
11140
11141 * w32font.c (check_face_name): New function.
11142 (add_font_entity_to_list): Use it to filter out common substituted
11143 fonts. (Bug#642)
11144
11145 2008-11-22 Martin Rudalics <rudalics@gmx.at>
11146
11147 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11148 confirm-nonexistent-file-or-buffer in doc-string.
11149
11150 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11151
11152 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11153 Fix copy/paste typo. Add checks.
11154
11155 2008-11-21 Kenichi Handa <handa@m17n.org>
11156
11157 * coding.c (detect_coding_iso_2022): Reject invalid composition
11158 sequence.
11159 (DECODE_COMPOSITION_START): If the current source is the last
11160 block, and the current composition doesn't end, regard this
11161 sequence as invalid.
11162 (decode_coding_iso_2022): Handle invalid composition sequence.
11163
11164 2008-11-20 Martin Rudalics <rudalics@gmx.at>
11165
11166 * window.c (coordinates_in_window): Don't return
11167 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11168 line when the window is not the rightmost one. (Bug#1372)
11169
11170 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11171
11172 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11173
11174 2008-11-15 Eli Zaretskii <eliz@gnu.org>
11175
11176 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11177 and bright_bg if noninteractive is non-zero.
11178
11179 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11180
11181 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11182 x_draw_glyph_string_background.
11183
11184 * w32term.c (x_draw_glyph_string): Likewise.
11185
11186 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
11187
11188 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11189 the next glyph string once past the overhang width.
11190
11191 * nsterm.m (ns_draw_glyph_string): Likewise.
11192
11193 * w32term.c (x_draw_glyph_string): Likewise.
11194
11195 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11196
11197 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11198 double file close.
11199
11200 2008-11-14 Martin Rudalics <rudalics@gmx.at>
11201
11202 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11203 dedicated status of window before attempting to display another
11204 buffer in it.
11205
11206 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
11207
11208 * msdos.c (Fmsdos_long_file_names):
11209 (syms_of_msdos) <dos-unsupported-char-glyph>:
11210 * dosfns.c (Fint86): Fix typos in docstrings.
11211
11212 2008-11-14 Eli Zaretskii <eliz@gnu.org>
11213
11214 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11215
11216 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11217
11218 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11219
11220 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11221
11222 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11223
11224 * frame.h: Negative alpha means "don't touch".
11225
11226 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11227
11228 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11229
11230 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11231
11232 * hftctl.c:
11233 * chpdef.h:
11234 * acldef.h: Remove files used only for systems no longer supported.
11235
11236 * Makefile.in: Fix .o alphabetical ordering.
11237 (hftctl.o): Remove dependency, file removed.
11238 (keymap.o, print.o): Depend on charset.h.
11239
11240 2008-11-10 Kenichi Handa <handa@m17n.org>
11241
11242 * character.c (Fget_byte): Fix and make it faster for unibyte target.
11243
11244 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
11245
11246 * dired.c (file_name_completion): If completion_ignore_case is
11247 enabled, ignore case when checking completion-regexp-list.
11248
11249 2008-11-08 Eli Zaretskii <eliz@gnu.org>
11250
11251 * vm-limit.c (get_lim_data): Fix last change.
11252
11253 2008-11-08 Kenichi Handa <handa@m17n.org>
11254
11255 * character.c (Fget_byte): New function.
11256 (syms_of_character): Defsubr Fget_byte.
11257
11258 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
11259
11260 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11261 cursor position is valid after scrolling.
11262
11263 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
11264
11265 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11266
11267 2008-11-06 Glenn Morris <rgm@gnu.org>
11268
11269 * xterm.c (handle_one_xevent): Don't let popup menus cause
11270 mouse-autoselect-window related window switching. (Bug#1261)
11271
11272 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11273
11274 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11275
11276 2008-11-04 Andreas Schwab <schwab@suse.de>
11277
11278 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11279
11280 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
11281
11282 * xfns.c (Fx_wm_set_size_hint): New function.
11283
11284 2008-11-03 Martin Rudalics <rudalics@gmx.at>
11285
11286 * textprop.c (Fprevious_single_char_property_change): Return 0
11287 when there's no change in a string. (Bug#1301)
11288
11289 2008-11-02 Martin Rudalics <rudalics@gmx.at>
11290
11291 * frame.c (do_switch_frame): New argument NORECORD passed to
11292 Fselect_window.
11293 (Fselect_frame): New argument NORECORD passed to
11294 do_switch_frame.
11295 (Fset_frame_selected_window): New argument NORECORD passed to
11296 Fselect_frame.
11297 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11298 in call of do_switch_frame.
11299 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11300 Handle NORECORD argument in call of Fselect_frame.
11301 * lisp.h (do_switch_frame, Fselect_frame)
11302 (Fset_frame_selected_window): Adjust declarations.
11303 * window.c (select_frame_norecord): New function.
11304 (run_window_configuration_change_hook): Use it and call
11305 Fselect_frame with NORECORD set.
11306 (Fselect_window): Pass NORECORD to Fselect_frame.
11307 (Fset_window_configuration): Handle NORECORD argument in call of
11308 do_switch_frame.
11309 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11310 Fset_frame_selected_window.
11311 * keyboard.c (command_loop_1): Handle NORECORD in call of
11312 Fselect_frame (currently ifdefd).
11313
11314 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11315
11316 * emacs.c (USAGE2): Untabify.
11317
11318 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11319
11320 * composite.c (fill_gstring_header): Fix copy/paste typo.
11321
11322 2008-10-31 Martin Rudalics <rudalics@gmx.at>
11323
11324 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11325 (Fother_window): Rename argument and rewrite doc-string.
11326 (select_window_norecord): Fix return value. (Bug#1276)
11327
11328 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
11329
11330 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11331 new frames overriding foreground for tooltips. Based on similar patch
11332 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11333
11334 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
11335
11336 * emacs.c (Fdaemon_initialized): Initialize nfd.
11337
11338 2008-10-29 Martin Rudalics <rudalics@gmx.at>
11339
11340 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11341 (Fwindow_text_height): Clarify doc-strings.
11342 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11343 doc-string of window-scroll-functions.
11344
11345 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11346
11347 * category.c (syms_of_category): Fix typo in docstring.
11348
11349 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
11350
11351 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11352 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11353 Fix typos in docstrings.
11354
11355 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11356
11357 * emacs.c (daemon_pipe): Make non-static.
11358 (IS_DAEMON): Move definition ...
11359 * lisp.h (IS_DAEMON): ... here.
11360 (daemon_pipe): Declare.
11361 (is_daemon): Remove.
11362 * dispnew.c (init_display): Use IS_DAEMON.
11363
11364 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11365
11366 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11367 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11368
11369 * emacs.c (is_daemon): Remove.
11370 (main): Don't set is_daemon.
11371 (IS_DAEMON): New macro.
11372 (Fdaemonp, Fdaemon_initialized): Use it.
11373 (Fdaemon_initialized): Write a char into the pipe to make sure the
11374 parent exits.
11375 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11376
11377 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
11378
11379 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11380 over-sized glyph, draw it with the default glyph width.
11381
11382 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11383 glyph, draw it with the default glyph width.
11384
11385 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11386 glyph, draw it with the default glyph width.
11387
11388 * xdisp.c (try_scrolling): When computing the distance from the
11389 scroll margin to PT, try moving some distance past the window
11390 bottom before giving up.
11391
11392 2008-10-27 Martin Rudalics <rudalics@gmx.at>
11393
11394 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11395 (Fset_window_buffer): Explain in doc-string that a window can be
11396 "strongly" dedicated to its buffer.
11397
11398 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11399
11400 * emacs.c (daemon_name): New variable.
11401 (main): Deal with --daemon=SERVER_NAME.
11402 (Fdaemonp): Return a name if one was passed to --daemon.
11403
11404 2008-10-26 Romain Francoise <romain@orebokech.com>
11405
11406 * emacs.c (daemon_pipe): New variable.
11407 (main): Create a pipe before forking, make the parent exit only after
11408 the child has closed its end of the pipe. Move closing the
11409 descriptors ...
11410 (Fdaemon_initialized): ... here. New function.
11411
11412 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11413
11414 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11415 the previous unoptimized table.
11416
11417 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11418 the distinction between non-nil and non-t value of `dedicated'.
11419
11420 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
11421
11422 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
11423 read_char_minibuf_menu_text is large enough to hold the menu string.
11424
11425 2008-10-25 Martin Rudalics <rudalics@gmx.at>
11426
11427 * window.c (Fget_buffer_window, Fdelete_windows_on)
11428 (Freplace_buffer_in_windows): Make buffer argument optional and
11429 rename to buffer_or_name.
11430
11431 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
11432
11433 * xdisp.c (handle_single_display_spec, handle_display_prop):
11434 Undo 2005-05-16 change.
11435 (handle_stop): Pop iterator if it's loaded with an empty string.
11436 (get_overlay_strings_1): Don't save iterator if it's loaded with
11437 an empty string (bug#1201).
11438
11439 2008-10-24 Kenichi Handa <handa@m17n.org>
11440
11441 * ftfont.c (ftfont_otf_features): Fix previous change.
11442 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11443 calling ftfont_otf_features.
11444
11445 2008-10-24 Kenichi Handa <handa@m17n.org>
11446
11447 * font.c (font_match_p): Fix for the case that a vector of
11448 characters is in script-representative-chars.
11449
11450 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
11451
11452 * dbusbind.c (xd_in_read_queued_messages): New variable.
11453 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
11454 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11455 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
11456 macro. (Bug#1186)
11457
11458 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
11459
11460 * s/sol2-10.h: New file.
11461
11462 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11463
11464 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11465 poor beast has survived 9+ years and the jump from xterm.c!).
11466
11467 2008-10-23 Martin Rudalics <rudalics@gmx.at>
11468
11469 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11470 Reword doc-string.
11471 (Fbury_buffer): In doc-string say what happens to the buffer's window.
11472
11473 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11474
11475 * character.c (syms_of_character) <script-representative-chars>:
11476 <unicode-category-table>: Doc fixes.
11477
11478 2008-10-23 Noah Friedman <friedman@splode.com>
11479
11480 * coding.c (make_conversion_work_buffer): Check that
11481 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11482 Fget_buffer_create.
11483
11484 2008-10-23 Kenichi Handa <handa@m17n.org>
11485
11486 * font.c (font_add_log): Check the values of extra properties.
11487
11488 2008-10-22 Martin Rudalics <rudalics@gmx.at>
11489
11490 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11491 Reword doc-string.
11492 (Fset_window_parameter): Use NILP.
11493 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
11494 (Frecenter): Use "selected" instead of "current" window in doc-strings.
11495
11496 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11497
11498 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11499
11500 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11501
11502 * nsfns.m (ns_appkit_version): New function.
11503 (x-server-version): Use it.
11504 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11505 (x-server-vendor): Don't check_ns().
11506
11507 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11508
11509 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11510
11511 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11512 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11513
11514 2008-10-22 Kenichi Handa <handa@m17n.org>
11515
11516 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11517 scripts.
11518
11519 * category.c (word_boundary_p): Check scripts instead of charset.
11520 Handle nil value in word-separating-categories and
11521 word-combining-categories.
11522 (syms_of_category): Fix docstrings of word-separating-categories
11523 and word-combining-categories.
11524
11525 2008-10-21 Eli Zaretskii <eliz@gnu.org>
11526
11527 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11528 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11529
11530 2008-10-21 Martin Rudalics <rudalics@gmx.at>
11531
11532 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11533 Rename arg "buffer" to "buffer_or_name".
11534 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11535 it optional.
11536 (no_switch_window): Remove since the return value is not used.
11537 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
11538 Consider window as dedicated when Fwindow_dedicated_p returns a
11539 non-nil value.
11540 * lisp.h: Remove prototype for no_switch_window.
11541
11542 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11543
11544 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
11545 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
11546
11547 2008-10-21 Kenichi Handa <handa@m17n.org>
11548
11549 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11550 check Vlatin_extra_code_table.
11551
11552 2008-10-20 Eli Zaretskii <eliz@gnu.org>
11553
11554 * fileio.c (Fset_file_modes): Doc fix.
11555
11556 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
11557
11558 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11559 in arrays.
11560
11561 2008-10-19 Martin Rudalics <rudalics@gmx.at>
11562
11563 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11564 Mention kill-buffer in doc-string.
11565 (Fset_window_buffer): Reinsert tem check removed in last commit.
11566 (Fenlarge_window, Fshrink_window): Have argument names and
11567 doc-string follow Elisp manual more closely.
11568
11569 2008-10-18 Eli Zaretskii <eliz@gnu.org>
11570
11571 * fileio.c (Fset_file_modes): Doc fix.
11572
11573 2008-10-18 Martin Rudalics <rudalics@gmx.at>
11574
11575 * window.c (Fwindow_width, Fset_window_start)
11576 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
11577 (Fdelete_windows_on, Freplace_buffer_in_windows):
11578 Make doc-strings follow code and Elisp manual more closely.
11579 (Fwindow_dedicated_p): Make window argument optional.
11580 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11581 (Fset_window_buffer): Respect any non-nil dedicated value for
11582 window. Rename "buffer" argument to "buffer_or_name".
11583
11584 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
11585
11586 * m/sh3.h: New file, machine description for SuperH.
11587
11588 2008-10-17 Martin Rudalics <rudalics@gmx.at>
11589
11590 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11591
11592 2008-10-17 Kenichi Handa <handa@m17n.org>
11593
11594 * ftfont.c (ftfont_otf_features): Fix indexing
11595 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11596
11597 2008-10-16 Magnus Henoch <mange@freemail.hu>
11598
11599 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11600 (Fdbus_call_method_asynchronously): Ditto.
11601 This change makes C-h f display the argument list.
11602
11603 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
11604
11605 * fileio.c (Fexpand_file_name): Doc fix.
11606
11607 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11608 of :foreground and :background equivalent to unspecified (20.x
11609 compatibility).
11610
11611 2008-10-15 Eli Zaretskii <eliz@gnu.org>
11612
11613 * buffer.c (syms_of_buffer): Doc fix.
11614
11615 2008-10-14 Kenichi Handa <handa@m17n.org>
11616
11617 * font.c (font_clear_prop): When clearing font width, clear the
11618 average width field too.
11619
11620 2008-10-12 Andreas Schwab <schwab@suse.de>
11621
11622 * ftfont.c (ftfont_shape_by_flt): Make static.
11623 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11624
11625 * font.c: Don't include <m17n-flt.h>.
11626
11627 2008-10-10 Eli Zaretskii <eliz@gnu.org>
11628
11629 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11630
11631 2008-10-09 Eli Zaretskii <eliz@gnu.org>
11632
11633 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11634 away code.
11635
11636 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
11637
11638 * dispnew.c (update_text_area): Avoid looping due to large glyph
11639 overhangs (bug#1070).
11640
11641 2008-10-09 Kenichi Handa <handa@m17n.org>
11642
11643 * fontset.c (face_for_char): If face->fontset is negative, just
11644 return ascii_face.
11645
11646 * font.c (font_delete_unmatched): Fix previous change.
11647 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
11648
11649 2008-10-09 Martin Rudalics <rudalics@gmx.at>
11650
11651 * frame.c (Fraise_frame): On text-only terminals select frame in
11652 order to make it visible. (Bug#1061)
11653
11654 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
11655
11656 * fontset.c (fontset_find_font): Check frame validity.
11657
11658 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
11659
11660 * gtkutil.c (xg_display_open): Reset default display if none exists.
11661 (xg_display_close): Allow Emacs to close all displays (bug#985).
11662
11663 2008-10-06 Andreas Schwab <schwab@suse.de>
11664
11665 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
11666
11667 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
11668
11669 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
11670
11671 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
11672
11673 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11674 during initialization.
11675
11676 2008-10-04 Eli Zaretskii <eliz@gnu.org>
11677
11678 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11679 whole thing on MSDOS frames as well as on a TTY.
11680
11681 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11682 well as for TTY.
11683 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11684 well as on a TTY.
11685
11686 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11687 as well as for TTY.
11688
11689 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11690
11691 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11692 MSDOS frames as well.
11693
11694 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11695
11696 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11697 correct arguments.
11698 * menu.c (find_and_return_menu_selection): Add cast.
11699
11700 2008-10-03 Glenn Morris <rgm@gnu.org>
11701
11702 * emacs.c (USAGE1): Add --daemon.
11703
11704 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11705
11706 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11707 100, so it's in percents as advertised.
11708
11709 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11710
11711 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11712 (ns_output.current_cursor, ns_output.desired_cursor)
11713 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11714 (FRAME_NEW_CURSOR_COLOR): Remove.
11715
11716 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11717 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11718 enumeration (HOLLOW_BOX_CURSOR, etc.).
11719
11720 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11721 (draw_window_cursor): Simplify code.
11722 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11723 Don't change cursor type. In latter, call rehighlight instead of doing
11724 updates manually.
11725 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11726 Use core Emacs cursor types.
11727
11728 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11729
11730 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11731
11732 * process.c (Faccept_process_output): Fix doc-string.
11733
11734 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11735
11736 * gmalloc.c (__sbrk): Also define for uClibc.
11737
11738 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11739 for uClibc.
11740
11741 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11742
11743 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11744 styles.
11745 (nsfont_open): Reenable the cache.
11746
11747 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11748
11749 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11750 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11751
11752 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11753
11754 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11755 a suspended terminal.
11756
11757 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11758
11759 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11760
11761 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11762
11763 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11764
11765 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11766
11767 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11768 in a continued line coincides with a line beginning.
11769
11770 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11771
11772 * nsfont.m (nsfont_trait_distance): Fix bug.
11773 (nsfont_list): Return a list rather than a vector (syncs with Handa
11774 changes of 2008-05-14).
11775 (nsfont_open): Improve logging.
11776
11777 2008-09-29 Andreas Schwab <schwab@suse.de>
11778
11779 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11780
11781 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11782
11783 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11784 name as char-resolve-modifiers.
11785 Reported by: Markus Triska <markus.triska@gmx.at>
11786
11787 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11788
11789 * dispnew.c (init_display): Return earlier when running as a daemon.
11790
11791 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11792
11793 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11794
11795 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11796
11797 * composite.c (Fcomposition_get_gstring)
11798 (Fcompose_region_internal, Fcompose_string_internal)
11799 (Ffind_composition_internal): Doc fix.
11800 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11801 (syms_of_composite) <auto-composition-function>: Doc fix.
11802 (syms_of_composite) <composition-function-table>: Doc fix.
11803
11804 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11805
11806 * search.c (wordify): New argument for lax word-ends.
11807 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11808
11809 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11810
11811 * lisp.h (is_daemon): Declare.
11812 * dispnew.c (init_display): Do not try to initialize the terminal
11813 when running as a daemon.
11814
11815 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11816
11817 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11818 x_display_pixel_height.
11819
11820 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11821
11822 * undo.c (record_point): Don't call Fundo_boundary for first
11823 change. (Bug#731)
11824
11825 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11826
11827 * emacs.c (Fdaemonp): Doc fix.
11828
11829 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11830
11831 * emacs.c (main): Place #ifdef in the proper place.
11832
11833 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11834
11835 * emacs.c (standard_args): Add --daemon.
11836 (main): Disconnect from the terminal when --daemon is passed.
11837 (is_daemon): New variable.
11838 (Fdaemonp): New function.
11839 (syms_of_emacs): Defsubr it.
11840
11841 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11842
11843 * xdisp.c (get_next_display_element): Handle string display
11844 correctly when checking for the end of a box run.
11845
11846 2008-09-20 Glenn Morris <rgm@gnu.org>
11847
11848 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11849 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11850 (Frename_file): Avoid copying to trash if a rename involves
11851 a delete. (Bug#964).
11852
11853 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11854
11855 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11856 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11857 frames as well as termcap frames.
11858 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11859 get_named_tty.
11860
11861 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11862
11863 * process.c (procfs_system_process_attributes): Fix cmdline in
11864 case /proc/PID/cmdline is empty.
11865
11866 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11867 x_display_pixel_height.
11868
11869 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11870
11871 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11872
11873 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11874 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11875
11876 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11877
11878 * dispextern.h (struct it): Move line_wrap away from the middle of
11879 bitfields. Move voffset in struct iterator_stack_entry after the
11880 bitfields. Move tab_width near after another short.
11881
11882 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11883
11884 * frame.h (struct frame): Move alpha from the middle of bitfields.
11885
11886 * window.h (struct window): Move frozen_window_start_p after the
11887 rest of the bitfields to reduce padding.
11888
11889 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11890
11891 * xterm.h (x_display_info): Remove `height' and `width' members.
11892
11893 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11894
11895 * w32term.h (w32_display_info): Remove `height', `width',
11896 `height_in', and `width_in' members.
11897
11898 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11899 New functions.
11900 (x_calc_absolute_position): Use them.
11901 (x_term_init): Omit removed `height' and `width' members.
11902
11903 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11904 New functions.
11905 (w32_read_socket, x_calc_absolute_position): Use them.
11906 (w32_initialize_display_info, w32_term_init): Omit removed members
11907 of w32_display_info.
11908
11909 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11910 New functions.
11911 (ns_initialize_display_info): Omit removed members of ns_display_info.
11912
11913 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11914 New functions.
11915 (x_calc_absolute_position): Use them.
11916 (x_term_init): Omit removed `height' and `width' members.
11917
11918 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11919 (compute_tip_xy):
11920 * frame.c (x_fullscreen_adjust):
11921 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11922 x_display_pixel_width.
11923
11924 2008-09-18 Kenichi Handa <handa@m17n.org>
11925
11926 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11927 (composition_compute_stop_pos): Fix handling of static composition.
11928 (Fcomposition_get_gstring): Check FROM and TO at first.
11929
11930 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11931
11932 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11933 mixup (YAILOM).
11934
11935 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11936
11937 * indent.c (Fvertical_motion): Use position reported by iterator
11938 instead of PT for determining screen motion (bug#943).
11939
11940 2008-09-17 Romain Francoise <romain@orebokech.com>
11941
11942 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11943
11944 2008-09-17 Kenichi Handa <handa@m17n.org>
11945
11946 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11947
11948 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11949 if necessary.
11950
11951 2008-09-16 Kenichi Handa <handa@m17n.org>
11952
11953 * coding.c (make_conversion_work_buffer): Avoid calling
11954 Fget_buffer_create if it is not necessary.
11955
11956 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11957
11958 * window.c (Fselect_window): Don't update window_select_count and
11959 use_time when norecord is not nil.
11960
11961 2008-09-14 Kenichi Handa <handa@m17n.org>
11962
11963 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11964 specpdl_ptr.
11965
11966 2008-09-12 Kenichi Handa <handa@m17n.org>
11967
11968 * indent.c (scan_for_column): Don't handle automatic composition
11969 if the current buffer is not associated with a window.
11970
11971 * composite.c (composition_reseat_it): If the current buffer is
11972 not associated with a window, ignore the automatic composition.
11973 (find_automatic_composition): Likewise.
11974
11975 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11976
11977 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11978 (Fgpm_mouse_stop): Use it.
11979 * termhooks.h (close_gpm): Declare.
11980 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11981 connection if Gpm_GetEvent fails.
11982
11983 * window.c (set_window_buffer): Always preserve current-buffer.
11984
11985 2008-09-12 Glenn Morris <rgm@gnu.org>
11986
11987 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11988
11989 2008-09-11 Glenn Morris <rgm@gnu.org>
11990
11991 * charset.c (charset-map-path): Doc fix.
11992
11993 2008-09-10 Kenichi Handa <handa@m17n.org>
11994
11995 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11996
11997 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11998 compose a grapheme cluster with the preceding base glyph.
11999
12000 * composite.c (composition_compute_stop_pos): Fix previous change.
12001 Reset cmp_it->id to -1 at first.
12002
12003 2008-09-10 Glenn Morris <rgm@gnu.org>
12004
12005 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12006
12007 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
12008
12009 * keyboard.c (read_key_sequence): Reapply translation maps when
12010 switching keyboards.
12011
12012 2008-09-09 Kenichi Handa <handa@m17n.org>
12013
12014 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12015 characters.
12016
12017 * composite.c (FORWARD_CHAR): Fix calculation
12018 of (POSITION).pos_byte.
12019 (composition_compute_stop_pos): Limit the search of composition to
12020 at most 500 characters ahead. If we reach the limit or find a
12021 newline, set cmp_it->ch to -2 and return 0.
12022 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12023
12024 2008-09-08 Kenichi Handa <handa@m17n.org>
12025
12026 * indent.c (Fvertical_motion): Be sure to set
12027 it_overshoot_expected if it.cmp_it.id is non-negative.
12028
12029 2008-09-07 Andreas Schwab <schwab@suse.de>
12030
12031 * callproc.c (Fcall_process): Don't hold references to string data
12032 across garbage collection. Move initialisation of new_argv down
12033 to avoid compiler bug.
12034
12035 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12036
12037 * process.c (Fsystem_process_attributes): Doc fix.
12038
12039 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
12040
12041 * callproc.c (Fcall_process): Canonicalize current directory name.
12042
12043 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12044 iterator advances to the next line if the current line ends in a
12045 continued tab.
12046
12047 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12048
12049 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12050 member to point to cmp_from.
12051
12052 * xdisp.c: Doc fix for references to gidx data member.
12053
12054 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12055
12056 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12057
12058 2008-09-07 Kenichi Handa <handa@m17n.org>
12059
12060 * composite.c (FORWARD_CHAR): Check STOP after
12061 incrementing (POSITION).pos.
12062
12063 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12064
12065 * process.c (Fsystem_process_attributes): Doc fix.
12066
12067 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
12068
12069 * keyboard.c (Ftop_level): Doc fix.
12070
12071 2008-09-06 Eli Zaretskii <eliz@gnu.org>
12072
12073 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12074 minibuffer, don't let lower part of menu invade the echo area.
12075
12076 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12077 "char *q" to access menu text and advance through it. Revert the
12078 change that displayed ">" instead of ASCII character 0x10.
12079
12080 2008-09-05 Eli Zaretskii <eliz@gnu.org>
12081
12082 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12083 toggle boxes and radio buttons on MS-DOS as well.
12084
12085 2008-09-05 Kenichi Handa <handa@m17n.org>
12086
12087 * composite.c (autocmp_chars): Check lookback count.
12088 (composition_compute_stop_pos): Set cmp_it->lookback.
12089 (composition_reseat_it): Check lookback count.
12090 (struct position_record): New struct.
12091 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12092 (find_automatic_composition): New function.
12093 (composition_adjust_point): Use find_automatic_composition.
12094
12095 * dispextern.h (struct composition_it): New member lookback.
12096
12097 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
12098
12099 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12100 if moving by a single line.
12101
12102 2008-09-02 Andreas Schwab <schwab@suse.de>
12103
12104 * xterm.c (x_delete_display): Fix merge error.
12105
12106 * fileio.c (Fexpand_file_name): Remove unused variables.
12107
12108 2008-09-02 Eli Zaretskii <eliz@gnu.org>
12109
12110 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12111 storage on all platforms, not just on DOS_NT.
12112
12113 2008-09-02 Jason Rumney <jasonr@gnu.org>
12114
12115 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12116 Ensure mouse is not grabbed after menu is finished.
12117
12118 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
12119
12120 * xfaces.c (Finternal_set_alternative_font_family_alist)
12121 (Finternal_set_alternative_font_registry_alist): Properly copy
12122 entire alist structure.
12123
12124 2008-09-01 Kenichi Handa <handa@m17n.org>
12125
12126 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
12127 representative chars of the script is a vector.
12128 (ftfont_list): Handle the case where the representative chars of
12129 the script is a vector.
12130
12131 * character.c (syms_of_character): Docstring of
12132 script-representative-chars fixed.
12133
12134 2008-08-31 Eli Zaretskii <eliz@gnu.org>
12135
12136 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12137 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12138 the menu. Allocate larger buffer for `text', to account for
12139 possible ^C characters.
12140
12141 2008-08-31 Martin Rudalics <rudalics@gmx.at>
12142
12143 * xdisp.c (prepare_menu_bars): Don't call
12144 Vwindow_size_change_functions with arg Qt.
12145
12146 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12147
12148 * font.h (font_range):
12149 * fileio.c (report_file_error):
12150 * composite.c (composition_update_it): Yet another int/Lisp_Object
12151 mixup (YAILOM).
12152
12153 2008-08-30 Glenn Morris <rgm@gnu.org>
12154
12155 * data.c (Fmake_variable_frame_local): Doc fix.
12156
12157 * frame.c (Fmodify_frame_parameters): Doc fix.
12158
12159 2008-08-30 Eli Zaretskii <eliz@gnu.org>
12160
12161 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12162 needed by GetTokenInformation.
12163 (w32_system_process_attributes): Check return values of all system
12164 APIs.
12165
12166 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12167 only when the state changes.
12168 (IT_update_begin, IT_update_end): Add termscript trace.
12169
12170 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12171 clipboard is unavailable. Set dst to NULL if it doesn't point to
12172 malloc'ed data.
12173 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12174 passing random values to xfree.
12175
12176 * dispnew.c (init_display): Set `tty's association in frame's
12177 parameters alist to the name of the terminal device, if that is known.
12178
12179 2008-08-29 Jason Rumney <jasonr@gnu.org>
12180
12181 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12182
12183 2008-08-29 Eli Zaretskii <eliz@gnu.org>
12184
12185 * composite.c (fill_gstring_body): Avoid compiler warnings.
12186
12187 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12188 LGLYPH_SET_CODE to avoid compiler warnings.
12189
12190 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
12191
12192 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12193
12194 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12195 LGLYPH_SET_CODE.
12196
12197 2008-08-29 Kenichi Handa <handa@m17n.org>
12198
12199 * fileio.c (report_file_error): Don't downcase the first character
12200 of errstring if it is still unibyte.
12201
12202 2008-08-29 Kenichi Handa <handa@m17n.org>
12203
12204 These changes are to re-implement the automatic composition so
12205 that it doesn't use text properties.
12206
12207 * Makefile.in (ftfont.o): Depend on composite.h.
12208 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12209
12210 * character.h (Vunicode_category_table): Extern it.
12211
12212 * character.c (Vunicode_category_table): New variable.
12213 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12214
12215 * chartab.c (optimize_sub_char_table): Perform more greedy
12216 optimization.
12217
12218 * composite.h (enum composition_method):
12219 Delete COMPOSITION_WITH_GLYPH_STRING.
12220 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12221 (Vcomposition_function_table): Extern it.
12222 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12223 (composition_gstring_put_cache, composition_gstring_from_id)
12224 (composition_gstring_p, composition_gstring_width)
12225 (composition_compute_stop_pos, composition_reseat_it)
12226 (composition_update_it, composition_adjust_point): Extern them.
12227 (Fcomposition_get_gstring): EXFUN it.
12228
12229 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
12230 (Vcomposition_function_table)
12231 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
12232 (gstring_hash_table, gstring_work, gstring_work_headers):
12233 New variables.
12234 (gstring_lookup_cache, composition_gstring_put_cache)
12235 (composition_gstring_from_id, composition_gstring_p)
12236 (composition_gstring_width, fill_gstring_header)
12237 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12238 (composition_reseat_it, composition_update_it)
12239 (composition_adjust_point, Fcomposition_get_gstring): New functions.
12240 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12241 and gstring_work_headers. DEFVAR_LISP composition-function-table.
12242 Defsubr composition_get_gstring.
12243
12244 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12245 cmp_id.
12246 (struct glyph_string): Delete the member gidx. New members
12247 cmp_id, cmp_from, and cmp_to.
12248 (enum it_method): Delete GET_FROM_COMPOSITION.
12249 (struct composition_it): New struct.
12250 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12251 Delete c, len, cmp_id, cmp_len in u.comp.
12252
12253 * font.h (enum lgstring_indices): Delete it.
12254 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
12255 (enum lglyph_indices): Likewise.
12256 (font_range): Adjust extern.
12257 (font_fill_lglyph_metrics): Extern it.
12258
12259 * font.c (QCf): New variable.
12260 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12261 (font_prepare_composition): Delete this function.
12262 (font_range): Type and arguments changed.
12263 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12264 (font_fill_lglyph_metrics): New function.
12265 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
12266 (syms_of_font): DEFSYM QCf. Delete defsubr for
12267 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12268 Defsubr Sfont_shape_gstring.
12269
12270 * fontset.h (font_for_char): Extern it.
12271
12272 * fontset.c (font_for_char): New function.
12273
12274 * ftfont.c: Include composite.h.
12275 (ftfont_resolve_generic_family): Add langset "en" to pattern.
12276 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12277
12278 * indent.c: Include composite.h and dispextern.h.
12279 (check_composition): Delete this function.
12280 (scan_for_column): Handle composition by
12281 composition_compute_stop_pos, composition_reseat_it, and
12282 composition_update_it.
12283 (compute_motion): Likewise.
12284 (Fvertical_motion): Fix checking of composition.
12285
12286 * keyboard.c (adjust_point_for_property): Check composition by
12287 composition_adjust_point.
12288
12289 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
12290 struct glyph_string.
12291
12292 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12293 (append_composite_glyph): Adjust for the change of struct it and
12294 struct glyph.
12295 (produce_composite_glyph): Likewise.
12296
12297 * w32term.c (x_draw_composite_glyph_string_foreground):
12298 Adjust for the change of struct glyph_string.
12299 (x_draw_glyph_string): Likewise.
12300
12301 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12302 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12303
12304 * xdisp.c: Include font.h.
12305 (it_props): Delete the entry for Qauto_composed.
12306 (init_iterator): Initialize it->cmp_it.id to -1.
12307 (compute_stop_pos): Call composition_compute_stop_pos.
12308 (face_before_or_after_it_pos): Adjust for the change of struct it.
12309 (handle_auto_composed_prop): Delete it.
12310 (handle_composition_prop): Handle only static composition.
12311 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12312 from xassert. Initialize it->cmp_it.stop_pos.
12313 (push_it): Adjust for the change of struct it.
12314 (pop_it): Likewise.
12315 (get_next_element): Delete next_element_from_composition.
12316 (CHAR_COMPOSED_P): New macro.
12317 (get_next_display_element): For automatic composition, get a face
12318 from the font in the glyph-string.
12319 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
12320 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
12321 (next_element_from_string): Check if the character at the current
12322 position is composed by CHAR_COMPOSED_P.
12323 (next_element_from_buffer): Likewise.
12324 (next_element_from_composition): Adjust for the change of struct it.
12325 Update it->cmp_it.
12326 (dump_glyph): Adjust for the change of struct glyph.
12327 (fill_composite_glyph_string): Adjust for the change of struct
12328 it and struct glyph. Don't handle automatic composition here.
12329 (fill_gstring_glyph_string): New function.
12330 (x_get_glyph_overhangs): Handle automatic composition.
12331 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
12332 (BUILD_GSTRING_GLYPH_STRING): New macro.
12333 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12334 automatic composition.
12335 (append_composite_glyph): Adjust for the change of struct it and
12336 struct glyph.
12337 (x_produce_glyphs): Adjust for the change of struct it.
12338
12339 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12340 the change of struct glyph_string.
12341 (x_draw_glyph_string): Likewise.
12342
12343 2008-08-29 Glenn Morris <rgm@gnu.org>
12344
12345 * buffer.c (word-wrap): Doc fix.
12346 * xdisp.c (truncate-partial-width-windows): Doc fix.
12347 Increase default to 50.
12348
12349 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * xdisp.c (update_tool_bar_unwind): New function.
12352 (update_tool_bar): Temporarily set selected frame before building
12353 tool-bar items.
12354
12355 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
12356
12357 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12358 snprintf, respectively.
12359 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12360
12361 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
12362
12363 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12364 LDFLAGS to GNUstep CC invocation.
12365
12366 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
12367
12368 * indent.c (Fvertical_motion): Revert last change. Handle the
12369 general case where we are moving forward, and PT spans multiple
12370 screen lines.
12371
12372 * eval.c (find_handler_clause): Temporarily increase
12373 max-lisp-eval-depth while printing the backtrace buffer, to
12374 guarantee that help-mode code can run.
12375
12376 2008-08-27 Eli Zaretskii <eliz@gnu.org>
12377
12378 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12379 colors under -rv.
12380 (IT_set_frame_parameters): Don't swap foreground and background
12381 colors if `(reverse . t)' is present in the frame properties.
12382 (internal_terminal_init): Call init_frame_faces only for the
12383 initial frame.
12384
12385 2008-08-27 Andreas Schwab <schwab@suse.de>
12386
12387 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12388
12389 2008-08-27 Andreas Schwab <schwab@suse.de>
12390
12391 * search.c (search_buffer): Set char_base to zero only at the end.
12392
12393 2008-08-27 Kenichi Handa <handa@m17n.org>
12394
12395 * fileio.c (report_file_error): Fix handling of multibyte error string.
12396
12397 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12398
12399 * xterm.c (x_term_init): Temporarily hide the partially
12400 initialized terminal while calling vendor-specific-keysyms.
12401
12402 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12403
12404 * msdos.c (internal_terminal_init): Most initializations done only
12405 once, especially initial_screen_colors[] and termscript open.
12406
12407 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12408
12409 * eval.c (Fcondition_case): Doc fix.
12410
12411 * widgetprv.h (EmacsFramePart): Change font member to the new font
12412 struct.
12413
12414 * widget.c: Include character.h and font.h for XSETFONT.
12415 (setup_frame_gcs): Compute X font id from font struct, just once.
12416
12417 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12418
12419 * term.c (get_named_tty): Fix last change.
12420
12421 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12422
12423 * indent.c (Fvertical_motion): If moving forward starting from a
12424 multi-line string, move the iterator to the last line of that string.
12425
12426 2008-08-25 Eli Zaretskii <eliz@gnu.org>
12427
12428 * frame.c (do_switch_frame): Mark previously displayed frame as
12429 obscured for FRAME_MSDOS_P frames as well.
12430
12431 2008-08-24 Eli Zaretskii <eliz@gnu.org>
12432
12433 * frame.c (make_terminal_frame): Initialize f->terminal,
12434 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12435 Set the top frame to newly created frame.
12436 (Fmake_terminal_frame): Reuse the_only_display_info.
12437
12438 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12439 estimating available memory.
12440
12441 2008-08-23 David Reitter <david.reitter@gmail.com>
12442
12443 * nsterm.m (ns_draw_window_cursor): Don't call
12444 NSDisableScreenUpdates and NSEnableScreenUpdates on
12445 non-NS_IMPL_COCOA systems.
12446
12447 2008-08-23 Andreas Schwab <schwab@suse.de>
12448
12449 * process.c (procfs_system_process_attributes): Fix use of
12450 uninitialized variables.
12451
12452 2008-08-23 Eli Zaretskii <eliz@gnu.org>
12453
12454 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12455
12456 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12457 calling tty-set-up-initial-frame-faces.
12458
12459 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12460 Allow MSDOS frames along with X frames.
12461
12462 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12463 addition to output_termcap.
12464
12465 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12466
12467 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12468 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12469 highlight.
12470
12471 * process.c [!subprocesses]: Define QCname.
12472 (syms_of_process): Intern and staticpro it.
12473
12474 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
12475 Adjust for changes in encoding/decoding routines.
12476 Use encode_coding_object and decode_coding_object instead of
12477 encode_coding and decode_coding.
12478
12479 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
12480
12481 * dosfns.c: Include frame.h before termhooks.h.
12482 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12483 variable termscript.
12484
12485 * s/msdos.h (USER_FULL_NAME): Define.
12486 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12487
12488 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12489 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12490 pw->pw_gecos.
12491
12492 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12493 SELECTED_FRAME as additional (1st) argument.
12494 (tty_read_avail_input): Handle output_msdos_raw in
12495 addition to output_termcap.
12496
12497 * msdos.c: Include frame.h before termhooks.h.
12498 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12499 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12500 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12501 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12502 (IT_set_terminal_modes, IT_reset_terminal_modes)
12503 (IT_set_frame_parameters): Use tty->termscript instead of a global
12504 variable termscript.
12505 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12506 global variable terminal_coding. Don't refer to
12507 Vnonascii_translation_table.
12508 (internal_terminal_init): Set Vwindow_system in current_kboard.
12509 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12510 Announce date and time of session start, if termscript is open.
12511 Don't zero out the_only_display_info (it is done in
12512 term.c:init_tty). Open termscript only of not already open.
12513 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
12514 here instead of dos_ttraw. Don't initialize display if this is an
12515 initial tty. Don't set FRAME_FONT.
12516 (Vwindow_system_version): Bump to 23.
12517 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12518 is available, set up mouse_position_hook.
12519 (dos_ttraw, IT_set_terminal_modes): If called with initial
12520 terminal, do nothing.
12521 (IT_set_frame_parameters): Handle the Qtty_type frame
12522 parameter by calling internal_terminal_init.
12523 (dos_set_window_size, show_mouse_face)
12524 (clear_mouse_face, IT_note_mode_line_highlight)
12525 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12526 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12527 (initialize_msdos_display): New function.
12528 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12529 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12530 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12531 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
12532 Accept additional argument: a pointer to a frame. Update all callers.
12533 (request_sigio, unrequest_sigio): Don't define, now defined on
12534 sysdep.c.
12535 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12536
12537 * term.c [MSDOS]: Include msdos.h.
12538 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12539 conditional to DOS_NT. Allow only one call to this function in a
12540 session. Don't allocate a new struct tty_display_info; instead,
12541 reuse the_only_display_info. Call get_tty_size to get screen
12542 dimensions. Call init_baud_rate to set bad_rate.
12543 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12544 (Fsuspend_tty) [MSDOS]: Don't close input and output.
12545 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
12546 (get_tty_terminal, get_named_tty, Ftty_type)
12547 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12548 output_termcap.
12549 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12550 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
12551 only when subprocesses are supported.
12552
12553 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12554 f->output_data.x.
12555 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12556 terminal devices.
12557
12558 * msdos.h: Remove definition of struct x_display_info and struct
12559 x_output.
12560 (FRAME_FONT): Use output_data.tty.
12561 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
12562 (struct x_display_info): Rename from display_info. Update all users in
12563 msdos.c.
12564 (struct x_output): Remove background_pixel and foreground_pixel.
12565 (the_only_display_info): Rename from the_only_x_display.
12566 (dos_ttraw): Update prototype.
12567
12568 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12569 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12570
12571 2008-08-23 Jason Rumney <jasonr@gnu.org>
12572
12573 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12574 (fn_TIFFSetDirectory): New library function used.
12575 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12576 (tiff_load): Use :index to select among multiple images. Set count
12577 property when multiple images exist.
12578 (gif_format): Use :index, not :image.
12579
12580 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
12581
12582 * xdisp.c (try_scrolling): Check INT_MAX instead of
12583 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12584 to obtain INT_MAX.
12585
12586 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12587
12588 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12589
12590 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12591
12592 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12593 GNUstep library location.
12594
12595 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
12596
12597 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12598 before using it.
12599
12600 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12601
12602 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12603
12604 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12605 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12606 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12607 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12608 (EmacsApp-cursor_blink_handler): Remove declaration.
12609 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12610 match 01 Feb 2008 changes in xterm.c.
12611 (ns_read_socket): Add cast to avoid warning.
12612 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12613 GNUstep.
12614
12615 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
12616
12617 * xselect.c (x_get_foreign_selection): Return nil if desired
12618 selection could not be obtained, instead of signalling an error.
12619
12620 2008-08-20 David Reitter <david.reitter@gmail.com>
12621
12622 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12623 * nsterm.m: Remove ns-specific code for cursor blinking.
12624 (ns_draw_window_cursor): Clear cursor properly rather than
12625 redrawing the area. Respect width of bar cursors.
12626 These changes enable the use of generic blink-cursor-mode and
12627 generic cursor types in NS and support smooth cursor movements (do
12628 not blink off after command).
12629 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12630 Nextstep, too.
12631
12632 2008-08-19 Kenichi Handa <handa@m17n.org>
12633
12634 * font.c (Vfont_log_deferred): New variable.
12635 (font_add_log): Check Vfont_log_deferred.
12636 (font_deferred_log): New function.
12637
12638 * font.h (font_deferred_log): Extern it.
12639
12640 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12641 for sorting.
12642 (face_for_char): Use deferred log.
12643
12644 2008-08-18 Kenichi Handa <handa@m17n.org>
12645
12646 * fontset.c (face_for_char): Add font log.
12647
12648 * font.c (font_add_log): Add the font properties :script, :lang,
12649 and :otf in the log.
12650
12651 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
12652
12653 * xdisp.c: Remove dead code.
12654 (handle_invisible_prop, next_overlay_string): Defer call to
12655 setup_for_ellipsis.
12656 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12657
12658 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
12659
12660 * xfaces.c (lookup_derived_face): Properly handle possible zero
12661 return value of get_lface_attributes.
12662 (merge_faces): Don't tell lookup_derived_face to signal an error
12663 if face is not found.
12664
12665 * dired.c (Fdirectory_files): Doc fix.
12666
12667 * process.c (make_process): Initialize kill_without_query struct
12668 member.
12669
12670 2008-08-15 Eli Zaretskii <eliz@gnu.org>
12671
12672 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12673 Alternative calculation of totphys for Visual Studio 6.
12674
12675 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12676
12677 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12678 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12679 All users changed.
12680 (stat): Only root directory passed to GetDriveType. Allow RAM
12681 disk as well as local fixed disk when w32-get-true-file-attributes
12682 is set to `local'.
12683 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12684 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12685 (w32_cached_id, w32_add_to_cache): New functions.
12686 (get_name_and_id): Look account names in the cache before calling
12687 lookup_account_sid.
12688 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12689 New initialization flags.
12690 (globals_of_w32): Initialize them to zero.
12691 (w32_system_process_attributes): Use w32_cached_id and
12692 w32_add_to_cache.
12693
12694 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12695
12696 * lread.c (Fread_char, Fread_char_exclusive): If no character
12697 event is read before timeout is reached, return nil, rather than
12698 converting to a number.
12699
12700 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12701
12702 * fns.c (use_dialog_box): Doc fix.
12703
12704 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12705 on OS X.
12706
12707 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12708
12709 * frame.c (Qns_parse_geometry): New var.
12710 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12711
12712 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12713
12714 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12715 space character in calculating tabs.
12716
12717 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12718
12719 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12720
12721 2008-08-10 Glenn Morris <rgm@gnu.org>
12722
12723 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12724 silence gcc "limited range of data type" warnings in some
12725 make_fixnum_or_float calls.
12726
12727 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12728
12729 * w32.c (w32_system_process_attributes): If the process does not
12730 exist, return nil.
12731
12732 * w32.c: Include thelp32.h, psapi.h and coding.h.
12733 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12734 declarations.
12735 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12736 (Process32Next_Proc): New typedefs.
12737 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12738 (g_b_init_process32_next, g_b_init_open_thread_token)
12739 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12740 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12741 (g_b_init_get_process_working_set_size)
12742 (g_b_init_global_memory_status_ex): New static variables.
12743 (globals_of_w32): Initialize them.
12744 (create_toolhelp32_snapshot, process32_first, process32_next)
12745 (open_thread_token, impersonate_self, revert_to_self)
12746 (get_process_memory_info, get_process_working_set_size)
12747 (global_memory_status, global_memory_status_ex): New wrapper
12748 functions.
12749 (w32_list_system_processes, w32_system_process_attributes)
12750 (enable_privilege, restore_privilege, ltime, process_times):
12751 New functions.
12752 (convert_time_raw): New function.
12753 (convert_time): Remove conversion of FILETIME into time in 100
12754 nsec units, call convert_time_raw instead.
12755
12756 * process.h (w32_list_system_processes, w32_system_process_attributes):
12757 Add prototypes.
12758 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12759 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12760 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12761 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12762
12763 * process.c (Fsystem_process_attributes): Doc fix.
12764
12765 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12766
12767 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12768 a continued multi-char glyph; if so, advance to the actual glyph.
12769
12770 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12771
12772 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12773
12774 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12775 (.m.o): Use it.
12776 * config.in: Regenerate.
12777
12778 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12779
12780 * xdisp.c (redisplay_window): Revert last change.
12781 (try_window): Check bottom scroll margin too.
12782
12783 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12784
12785 * config.in: Regenerate.
12786
12787 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12788 -list-load-path-shadows'.
12789 (nsgui.h): Reduce number of things depending on it.
12790
12791 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12792
12793 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12794 instead of window-end which does the wrong thing at eob.
12795 (try_cursor_movement): Minor optimization.
12796 (redisplay_window): If scroll margin is defined, don't assume
12797 window doesn't need scrolling.
12798
12799 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12800
12801 * config.in: Regenerate.
12802
12803 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12804 (mostlyclean): Don't delete *.d under NS.
12805
12806 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12807
12808 2008-08-06 Kenichi Handa <handa@m17n.org>
12809
12810 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12811
12812 2008-08-06 Andreas Schwab <schwab@suse.de>
12813
12814 * config.in: Regenerate.
12815
12816 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12817
12818 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12819 forcing a window start.
12820
12821 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12822 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12823
12824 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12825
12826 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12827 argument.
12828
12829 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12830
12831 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12832 <scroll-down-aggressively, before-change-functions>:
12833 <after-change-functions>: Reflow docstrings.
12834
12835 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12836 Ken Raeburn <raeburn@gnu.org>
12837
12838 Dock menu customization, based on a patch by Ken Raeburn, plus some
12839 other fixes.
12840 * nsmenu.m (dockMenu): New variable.
12841 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12842
12843 * nsterm.h (dockMenu): Declare.
12844
12845 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12846 (ns_term_init): Initialize dockMenu.
12847 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12848 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12849 left.
12850
12851 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12852
12853 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12854
12855 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12856
12857 * config.in: Regenerate.
12858
12859 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12860
12861 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12862
12863 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12864
12865 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12866
12867 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12868
12869 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12870
12871 * keyboard.h: Comment an #endif.
12872
12873 * lisp.h (have_menus_p): Adjust comment.
12874
12875 * menu.c (find_and_return_menu_selection): Fix comparison with
12876 client_data.
12877
12878 * nsmenu.m (popup_activated_flag): New variable.
12879 (popup_activated): New function.
12880 (menu-or-popup-active-p): New exported lisp definition.
12881 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12882 when popup done.
12883 (ns_popup_dialog): Set popup_activated_flag.
12884
12885 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12886 version for GNUstep (handled by conditional typedef in nsterm.m).
12887 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12888 in rgb.txt).
12889
12890 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12891
12892 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12893
12894 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12895
12896 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12897 shortcircuit if popup_activated like GTK and X toolkit.
12898
12899 * m/inter386.h: Change DARWIN to DARWIN_OS.
12900
12901 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12902 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12903 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12904 comment on NO_SOCK_SIGIO.
12905
12906 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12907
12908 * nsterm.m (windowDidResize): Remove stopModal call.
12909
12910 2008-08-03 Andreas Schwab <schwab@suse.de>
12911
12912 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12913 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12914
12915 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12916
12917 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12918 Don't use uninitialized pointer variable when using getrlimit.
12919
12920 2008-08-02 Jason Rumney <jasonr@gnu.org>
12921
12922 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12923
12924 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12925
12926 * alloc.c (NSTATICS): Bump to 0x640.
12927
12928 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12929
12930 * lisp.h: Add prototype for directory_files_internal.
12931
12932 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12933 New functions.
12934 (syms_of_process): Defsubr them. Add initializations for various
12935 Q* symbols used in procfs_system_process_attributes.
12936 (procfs_list_system_processes, procfs_system_process_attributes)
12937 [HAVE_PROCFS]: New functions.
12938 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12939 (procfs_get_total_memory): New functions.
12940
12941 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12942
12943 * xfaces.c (Fx_load_color_file): Fix previous change;
12944 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12945
12946 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12947
12948 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12949
12950 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12951
12952 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12953
12954 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12955
12956 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12957
12958 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12959 define NSApplicationDelegateReplySuccess.
12960 (EmacsView -converstationIdentifier): Use long instead of
12961 NSInteger for GNUstep, since it doesn't have NSInteger.
12962
12963 * xmenu.c: Revert last change.
12964
12965 * keyboard.h: Fix last change.
12966
12967 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12968
12969 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12970 on Windows.
12971
12972 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12973
12974 Warning clearing and clean-up in NS port.
12975 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12976 Add prototypes.
12977 * nsgui.h (FACE_DEFAULT): Remove, unused.
12978 (XGCValues): Change colors to unsigned long.
12979 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12980 nsterm.m.
12981 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12982 (ns_list_fonts): Remove, unused.
12983 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12984 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12985 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12986 (nsfont_draw): Compare face colors to 0, not nil.
12987 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12988 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12989 (-addSubmenuWithTitle:): Use NSMenuItem class.
12990 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12991 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12992 (ns_clip_to_row): Make gc arg a BOOL.
12993 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12994 ns_clip_to_row() call.
12995 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12996 used). Cast FRAME_FONT assignments.
12997 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12998 (ns_string_to_lispmod): Change arg to const char.
12999 (ns_term_init): Use NSMenuItem class.
13000 (EmacsApp -openFile:): Move to different section of file.
13001 (EmacsApp -application:openFiles:): Don't return a value, call
13002 -replyToOpenOrPrint:.
13003 (EmacsView -keyDown:): Fix up cast.
13004 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13005 (EmacsView -menuDown:): Cast tag in call to
13006 find_and_call_menu_selection().
13007 (ns_list_fonts): Remove, unused.
13008 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13009 (ns_fontname_to_xlfd): Make static.
13010 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13011 Remove prototypes (now in keyboard.h).
13012 (next_menubar_widget_id): Remove, unused.
13013 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13014 Remove prototypes (now in keyboard.h).
13015 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13016
13017 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13018
13019 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13020 (floatfns.o): Depend on syssignal.h.
13021 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13022
13023 * systty.h: Fix previous change that removed BSD_TERMIOS.
13024 Add comments to #ifdefs.
13025
13026 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13027
13028 * w32fns.c (w32-load-color-file): Remove.
13029 (x-open-connection): Use renamed Fx_load_color_file.
13030 * xfaces.c (x-load-color-file): Add.
13031 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13032 Emacs.clr.
13033 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13034
13035 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
13036
13037 * dbusbind.c (Fdbus_call_method_asynchronously)
13038 (Fdbus_method_error_internal): New defuns.
13039 (xd_read_message): Handle also reply messages.
13040 (Vdbus_registered_functions_table): Extend docstring.
13041
13042 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
13043
13044 * keyboard.c (gobble_input): Fix previous change.
13045
13046 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13047
13048 * bitmaps/README:
13049 * xfns.c:
13050 * termcap.c:
13051 * term.c:
13052 * syswait.h:
13053 * systty.h:
13054 * systime.h:
13055 * syssignal.h:
13056 * sysdep.c:
13057 * process.h:
13058 * process.c:
13059 * print.c:
13060 * ndir.h:
13061 * lread.c:
13062 * keyboard.c:
13063 * getpagesize.h:
13064 * floatfns.c:
13065 * fileio.c:
13066 * emacs.c:
13067 * doc.c:
13068 * dispnew.c:
13069 * dired.c:
13070 * data.c:
13071 * callproc.c:
13072 * buffer.c:
13073 * README:
13074 * Makefile.in:
13075 * s/template.h:
13076 * s/msdos.h:
13077 * m/vax.h: Remove VMS support.
13078 * s/vms.h:
13079 * vlimit.h:
13080 * uaf.h:
13081 * temacs.opt:
13082 * param.h:
13083 * ioctl.h: Remove file.
13084
13085 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13086
13087 * s/ms-w32.h (MULTI_KBOARD): Remove.
13088 * xterm.c:
13089 * xselect.c:
13090 * xfns.c:
13091 * window.c:
13092 * w32term.c:
13093 * w32fns.c:
13094 * terminal.c:
13095 * termhooks.h:
13096 * term.c:
13097 * sysdep.c:
13098 * keyboard.h:
13099 * keyboard.c:
13100 * frame.h:
13101 * frame.c:
13102 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13103 * config.in: Regenerate.
13104
13105 2008-07-30 Jason Rumney <jasonr@gnu.org>
13106
13107 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13108
13109 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13110 (w32font_open_internal): Get unicode version of textmetrics.
13111 Don't enable or disable glyph indices here.
13112 (w32font_open): Disable use of glyph indices.
13113
13114 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13115
13116 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
13117
13118 * minibuf.c (Vread_buffer_function): Doc fix.
13119
13120 2008-07-30 John Paul Wallington <jpw@pobox.com>
13121
13122 * minibuf.c (read_buffer_completion_ignore_case): New var.
13123 (Fread_buffer): Use it.
13124
13125 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13126
13127 * systty.h (sensemode): Remove empty #if. Remove reference to
13128 BSD_TERMIOS, unused.
13129
13130 * sysdep.c: Remove reference to DGUX.
13131 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13132
13133 * config.in: Regenerate.
13134
13135 2008-07-30 Jason Rumney <jasonr@gnu.org>
13136
13137 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13138
13139 2008-07-29 Jason Rumney <jasonr@gnu.org>
13140
13141 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13142 is populated.
13143 (uniscribe_encode_char): Always use uniscribe.
13144 Avoid using context if cache is populated.
13145
13146 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13147
13148 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13149 open menu.
13150
13151 * gtkutil.c (menu_nav_ended): Remove.
13152 (create_menus): Remove signal connect for menu_nav_ended.
13153
13154 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
13155
13156 * xdisp.c (redisplay_window): Check return value of
13157 compute_window_start_on_continuation_line before forcing a window
13158 start.
13159
13160 2008-07-28 Jason Rumney <jasonr@gnu.org>
13161
13162 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13163
13164 * w32term.c (w32_enable_unicode_output, cleartype_active):
13165 Remove obsolete display options.
13166 (x_draw_glyph_string_background): Don't use old cleartype_active
13167 workaround.
13168 (w32_initialize): Remove cleartype_active initialization.
13169 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13170
13171 2008-07-28 Andreas Schwab <schwab@suse.de>
13172
13173 * lisp.h (init_weak_hash_tables, syms_of_font)
13174 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13175 (remove_hash_entry): Don't declare.
13176 * eval.c (maybe_call_debugger): Make static and move before use.
13177 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13178 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13179 * xterm.h (x_set_frame_alpha): Declare.
13180
13181 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13182
13183 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13184 (create_menus): Connect selection-done to menu_nav_ended.
13185
13186 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13187
13188 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13189 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13190 parameter with read of 'alpha' one.
13191 (Qns_frame_parameter): Remove.
13192 * nsselect.m (selection-coding-system)
13193 (next-selection-coding-system, Vselection_coding_system)
13194 (Vnext_selection_coding_system): Drop.
13195
13196 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13197
13198 * nsfns.m (do-applescript, do_applescript): Rename to
13199 ns-do-applescript, ns_do_applescript, and move within file.
13200
13201 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13202
13203 Remove support for Mac Carbon.
13204 * mactoolbox.c:
13205 * macterm.h:
13206 * macterm.c:
13207 * macselect.c:
13208 * macmenu.c:
13209 * macgui.h:
13210 * macfns.c:
13211 * mac.c: Remove file.
13212 * s/darwin.h:
13213 * m/intel386.h:
13214 * xfaces.c:
13215 * xdisp.c:
13216 * window.c:
13217 * tparam.c:
13218 * termhooks.h:
13219 * termcap.c:
13220 * term.c:
13221 * syssignal.h:
13222 * sysselect.h:
13223 * sysdep.c:
13224 * process.c:
13225 * lread.c:
13226 * lisp.h:
13227 * keyboard.c:
13228 * image.c:
13229 * fringe.c:
13230 * frame.h:
13231 * frame.c:
13232 * fontset.c:
13233 * font.h:
13234 * font.c:
13235 * fns.c:
13236 * fileio.c:
13237 * emacs.c:
13238 * dispnew.c:
13239 * dispextern.h:
13240 * config.in:
13241 * atimer.c:
13242 * Makefile.in: Remove code for Carbon.
13243
13244 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13245
13246 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13247
13248 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13249
13250 * macterm.h (kCGBitmapByteOrder32Host): New define for
13251 non-universal SDKs.
13252
13253 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13254 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13255
13256 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13257 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13258
13259 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13260
13261 * w32inevt.c: Include dispextern.h.
13262
13263 2008-07-26 Andreas Schwab <schwab@suse.de>
13264
13265 * print.c (print_object): Fix off-by-one in last change.
13266
13267 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
13268
13269 * term.c (syms_of_term): Don't initialize default_orig_pair,
13270 default_set_foreground and default_set_background on Windows.
13271
13272 2008-07-25 Jason Rumney <jasonr@gnu.org>
13273
13274 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13275 ScriptItemize. Clean up return value checking. Remove unused
13276 variables.
13277 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13278 shaping engine.
13279
13280 * w32font.c (w32font_has_char): Handle the case where we can't
13281 determine the script for a character.
13282
13283 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13284
13285 * term.c (syms_of_term): Initialize default_orig_pair,
13286 default_set_foreground, and default_set_background.
13287
13288 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13289 clash (bug#86).
13290 (getloadavg): Callers changed.
13291
13292 * image.c (svg_load_image): Fix last change.
13293 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13294 image size is valid. Use g_object_unref instead of deprecated
13295 rsvg_handle_free to free rsvg handle.
13296 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13297
13298 2008-07-25 Jason Rumney <jasonr@gnu.org>
13299
13300 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13301 surrogates before looking up glyph index.
13302 (w32font_text_extents): Encode as surrogates if falling back to
13303 functions that need UTF-16 wide chars.
13304
13305 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13306 BMP as surrogates before looking up glyph index.
13307
13308 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13309
13310 * image.c (svg_load_image): Check for failure in return value of
13311 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13312
13313 2008-07-25 Jason Rumney <jasonr@gnu.org>
13314
13315 * w32font.c (Fx_select_font): Reverse sense of second arg.
13316
13317 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13318
13319 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13320 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13321
13322 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13323 (PURESIZE): Use it.
13324
13325 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13326
13327 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13328 * m/alpha.h (TEXT_END):
13329 * m/ibmrs6000.h (TEXT_END):
13330 * m/macppc.h (TEXT_END):
13331 * s/darwin.h (TEXT_END):
13332 * s/msdos.h (TEXT_END): Remove, unused.
13333 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13334 * s/cygwin.h: Remove comment.
13335
13336 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13337 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13338 * m/intel386.h (DOT_GLOBAL_START):
13339 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13340 (USG): Remove, file not used on USG platforms.
13341
13342 * Makefile.in (HAVE_X11): Remove empty #else.
13343
13344 2008-07-24 Andreas Schwab <schwab@suse.de>
13345
13346 * fileio.c (Finsert_file_contents): Properly adjust undo list
13347 after format conversion.
13348
13349 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13350
13351 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13352 (menu_nav_ended): Remove.
13353 (create_menus): Remove signal connect for menu_nav_ended.
13354 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13355 create_menus.
13356 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13357
13358 2008-07-23 Jason Rumney <jasonr@gnu.org>
13359
13360 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13361 with opened font.
13362 (w32font_open): Set font type to gdi.
13363
13364 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13365
13366 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13367
13368 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13369 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13370 defines it.
13371 * unexec.c (ADDR_CORRECT): Define unconditionally.
13372
13373 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13374
13375 * unexec.c: Remove code depending on !COFF and USG, the file is
13376 not used for such systems.
13377
13378 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13379 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13380 (LD_SWITCH_SYSTEM_1): Remove, update users.
13381
13382 * s/darwin.h (DATA_END):
13383 * m/intel386.h (DATA_END):
13384 * m/ibmrs6000.h (DATA_END):
13385 * m/alpha.h (DATA_END): Remove, unused.
13386
13387 * config.in: Regenerate.
13388 * s/ms-w32.h (subprocesses): Define unconditionally.
13389 * s/template.h (subprocesses): Update comment.
13390 * s/vms.h (subprocesses):
13391 * s/usg5-4.h (subprocesses):
13392 * s/hpux10-20.h (subprocesses):
13393 * s/gnu-linux.h (subprocesses):
13394 * s/cygwin.h (subprocesses):
13395 * s/bsd-common.h (subprocesses):
13396 * s/aix4-2.h (subprocesses):
13397 * s/darwin.h (subprocesses): Do not define, defined by default now.
13398
13399 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13400 Remove all references.
13401 (temacs): Add GNUstep specific ld flags.
13402
13403 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13404 similarly to what X does.
13405
13406 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13407
13408 * nsfns.m (x-list-fonts): Remove.
13409 (syms_of_nsfns): Drop the x-list-fonts declaration.
13410 * nsterm.m: Get rid of remaining "//" comments.
13411
13412 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
13413
13414 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13415
13416 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13417 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13418 (Fns_own_selection_internal, Fx_disown_selection_internal)
13419 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13420
13421 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13422 ... */' style of docstrings. Doc fixes.
13423
13424 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13425
13426 * terminfo.c (UP, BC, PC): Undo previous change.
13427
13428 * nsfns.m: Rename ns prefixed functions/variables to the
13429 corresponding x versions. Update references.
13430
13431 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13432
13433 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13434
13435 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13436
13437 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13438 Remove forwarding functions.
13439 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13440 non-static.
13441 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13442 non-static.
13443 (ns_frame_parm_handlers): Use the new names.
13444 (syms_of_nsfns): Move to the end of file.
13445
13446 * nsterm.m (syms_of_nsterm): Move to the end of file.
13447
13448 * dispnew.c (init_display): Remove code for X10.
13449
13450 2008-07-22 Jason Rumney <jasonr@gnu.org>
13451
13452 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13453 bare drive.
13454
13455 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13456
13457 * nsterm.m (syms_of_nsterm): Remove debugging println.
13458
13459 2008-07-22 David Reitter <david.reitter@gmail.com>
13460
13461 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13462 Carbon implementation of the same functionality: execute arbitrary
13463 AppleScript code.
13464
13465 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13466
13467 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13468 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13469 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13470 (Fx_display_mm_height, Fx_display_mm_width)
13471 (Fx_display_backing_store, Fx_display_visual_class)
13472 (Fx_display_save_under, Fx_open_connection)
13473 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13474 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13475 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13476 (Fx_display_pixel_width, Fx_display_pixel_height)
13477 (Fx_display_usable_bounds, Fx_display_planes)
13478 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13479 ... */' style of docstrings.
13480
13481 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13482
13483 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13484 on this platform.
13485 (mips):
13486 * m/iris4d.h (mips): Do not define.
13487 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13488
13489 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13490
13491 * image.c:
13492 * nsfns.m:
13493 * nsselect.m:
13494 * nsterm.h:
13495 * nsterm.m: Rename ns prefixed functions/variables to the
13496 corresponding x versions. Update references.
13497
13498 * m/ibms390x.h (NO_REMAP): Do not undefine.
13499
13500 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13501
13502 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
13503
13504 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13505 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13506 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13507 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13508 (Fns_display_mm_height, Fns_display_mm_width)
13509 (Fns_display_backing_store, Fns_display_visual_class)
13510 (Fns_display_save_under, Fns_open_connection)
13511 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13512 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13513 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13514 (Fns_display_pixel_width, Fns_display_pixel_height)
13515 (Fns_display_usable_bounds, Fx_display_planes)
13516 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13517
13518 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13519
13520 * print.c (print_object): Check print_depth before searching for
13521 circularities.
13522
13523 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
13524
13525 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13526 only sprintf.
13527
13528 2008-07-21 Kenichi Handa <handa@m17n.org>
13529
13530 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13531
13532 2008-07-20 Andreas Schwab <schwab@suse.de>
13533
13534 * syntax.c (find_start_pos, find_start_value)
13535 (find_start_value_byte, find_start_begv, find_defun_start)
13536 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13537
13538 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13539
13540 * s/sol2-3.h: Insert contents of s/sol2.h.
13541 (LD_SWITCH_SYSTEM): Remove redundant definition.
13542 * s/sol2.h: Remove, unused.
13543
13544 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13545
13546 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13547
13548 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13549
13550 * Makefile.in (ns_appdir): Fix typo in find command.
13551
13552 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13553
13554 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13555
13556 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13557 added not supported anymore.
13558
13559 * s/usg5-4-2.h (LIBS_SYSTEM):
13560 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13561
13562 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13563 * s/lynxos.h (GETPGRP_NO_ARG):
13564 * s/hpux10-20.h (NO_SIOCTL_H):
13565 * s/gnu.h (GETPGRP_NO_ARG):
13566 * s/gnu-linux.h (NO_SIOCTL_H):
13567 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13568 * s/cygwin.h (GETPGRP_NO_ARG):
13569 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13570 (C_DEBUG_SWITCH): Remove duplicate definition.
13571
13572 * m/ibms390.h: Remove boilerplate comments.
13573
13574 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13575
13576 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13577 (wait_reading_process_output): Remove code for SunOS, platform not
13578 supported anymore. Use SOLARIS2 instead of sun.
13579
13580 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13581
13582 * font.c (font_open_by_name): Under NS, default lface height to zero.
13583 (font_open_for_lface): Under NS, set size based on frame fontsize.
13584 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13585 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13586
13587 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13588
13589 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13590 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13591 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13592 YES/NO.
13593 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13594 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13595 * Makefile.in (clean): Clear out build destination dir.
13596
13597 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13598
13599 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13600 xterm, xselect.
13601 * lisp.h: Remove declaration of hash_remove.
13602 * nsgui.h: Remove redefinitions of hash_remove.
13603 * fns.c (hash_remove): Rename to hash_remove_from_table.
13604
13605 2008-07-19 Seiji Zenitani <zenitani@mac.com>
13606
13607 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13608 strdup() the family UTF8String before modifying it.
13609
13610 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13611
13612 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13613 NS_FACE_BACKGROUND with 0 instead of nil.
13614 * nsfont.m (nsfont_draw): Same.
13615
13616 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
13617
13618 * nsfns.m (ns_set_background_color): Fix crash.
13619
13620 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
13621
13622 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13623
13624 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13625
13626 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13627
13628 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13629
13630 * gtkutil.c: Include <config.h> instead of "config.h".
13631
13632 * lisp.h (Foverlay_buffer): Add EXFUN.
13633
13634 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13635 child process to complete child_setup. Undo 2005-09-21 change.
13636
13637 * s/darwin.h: Mention setsid after vfork.
13638
13639 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13640
13641 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13642 Depend on macgui.h.
13643
13644 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13645 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13646
13647 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13648 and f19.
13649 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13650
13651 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13652 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13653 Remove enumerators.
13654
13655 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13656 Check if FACE_FROM_ID returns NULL.
13657
13658 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13659
13660 * w32inevt.c (change_frame_size): Remove extern declaration.
13661 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13662 change_frame_size.
13663
13664 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13665
13666 * getloadavg.c: Revert last change (2008-07-15).
13667
13668 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13669
13670 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
13671 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
13672 from configure.
13673
13674 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13675
13676 * s/sol2.h:
13677 * s/sol2-4.h: Reorganize conditionals.
13678
13679 * ecrt0.c: Remove code depending on m68000, not used anymore.
13680
13681 * fns.c (hash_remove): Make static.
13682 * lisp.h (hash_remove): Don't prototype.
13683
13684 * m/ibmrs6000.h:
13685 * m/ibms390x.h:
13686 * m/macppc.h: Remove boilerplate comments.
13687
13688 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13689 Solaris, which does not need them.
13690
13691 * m/vax.h: Remove comments about unsupported systems.
13692
13693 * s/darwin.h: Reorganize ifdefs.
13694
13695 2008-07-17 Andreas Schwab <schwab@suse.de>
13696
13697 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13698
13699 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13700
13701 Use SDATA. Follow coding convention of placing operators at
13702 beginning of next line rather than end of previous line, and placing
13703 spaces around infix operators.
13704
13705 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13706 in case it was defined already.
13707 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13708 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13709 ns_default.
13710 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13711 Lisp_Objects.
13712 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13713 (ns_defined_color, ns_color_to_lisp): Declare.
13714 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13715 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13716 it's accepted even with USE_LISP_UNION_TYPE.
13717 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13718 (update_frame_tool_bar): Remove apparently obsolete tests for
13719 non-integerness of f->tool_bar_lines.
13720 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13721 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13722 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13723 (nsfont_open): Don't confuse NULL for Qnil.
13724 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13725 * menu.h (find_and_call_menu_selection):
13726 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13727 (find_and_return_menu_selection): Always return something.
13728 * frame.h: Include dispextern.h for Display_Info.
13729 (display_x_get_resource): Declare.
13730
13731 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13732
13733 * syntax.c: Remove stdio.h include accidentally introduced in
13734 Emacs.app commit.
13735 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13736 NS_IMPL_COCOA.
13737 * keyboard.c (handle_async_input, input_available_signal): Remove
13738 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13739
13740 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13741
13742 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13743 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13744 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13745 Use SDATA.
13746
13747 * keymap.c: Remove all NS-specific code.
13748 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13749 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13750 where_is_preferred_modifier, return a different value depending on how
13751 preferred is the binding.
13752 (where_is_internal): Adjust accordingly.
13753 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13754 Adjust to new preferred_sequence_p.
13755 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13756 * keyboard.c (parse_solitary_modifier): Not static any more.
13757 * keyboard.h (parse_solitary_modifier): Declare.
13758
13759 2008-07-16 Andreas Schwab <schwab@suse.de>
13760
13761 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13762 of easymenu.
13763
13764 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13765
13766 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13767 that we don't move off the line.
13768
13769 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13770
13771 * keyboard.c (Qsuper): Remove.
13772 (parse_menu_item): Don't call where_is_internal specially for NS.
13773
13774 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13775
13776 * s/gnu-linux.h: Remove boilerplate comments.
13777
13778 * m/alpha.h (__ELF__): Consolidate conditions.
13779
13780 * m/m68k.h (linux): Use GNU_LINUX instead.
13781 Remove boilerplate comments.
13782
13783 * m/intel386.h: Undo refactoring from previous change.
13784 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13785 too, remove dead code.
13786 (linux): Use GNU_LINUX instead.
13787
13788 2008-07-16 Jason Rumney <jasonr@gnu.org>
13789
13790 * w32gui.h: Repeat 26 June changes lost by last change.
13791
13792 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13793
13794 * systty.h: Remove code for Aix on 386, unsupported platform.
13795
13796 * s/ms-w32.h: Remove boilerplate comments.
13797 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13798
13799 * s/gnu-linux.h (TERM): Remove support.
13800 (HAVE_SYSVIPC): Remove, unused.
13801 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13802 for this system.
13803
13804 * process.c: Remove support for IRIS, unused.
13805 Remove support for TERM, not relevant anymore.
13806
13807 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13808 used with the definition.
13809
13810 * s/aix4-2.h (static): Do not undef.
13811
13812 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13813 only used on Aix.
13814 (HAVE_SYSVIPC): Remove, unused.
13815
13816 * m/hp800.h (CANNOT_DUMP): Do not undef.
13817
13818 * m/alpha.h: Fix comment.
13819
13820 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13821 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13822 used by this configuration.
13823 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13824 * unexec.c: Remove code depending on HPUX and
13825 USG_SHARED_LIBRARIES, not used with this file. Remove code
13826 depending on IRIS, unused. Remove if 0-ed code.
13827
13828 * s/template.h: Remove comments about static.
13829
13830 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13831 Remove if 0-ed code.
13832 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13833 were the same as the default.
13834 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13835 Remove boilerplate comments.
13836 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13837 (HAVE_SYSVIPC): Remove, unused.
13838 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13839
13840 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13841 Remove boilerplate comments.
13842 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13843 Remove boilerplate comments.
13844 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13845 Remove boilerplate comments.
13846 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13847
13848 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13849 USG systems which do not use DATA_SEG_BITS.
13850 Refactor code. Remove boilerplate comments.
13851
13852 * m/ibms390.h:
13853 * m/m68k.h:
13854 * s/bsd-common.h:
13855 * s/cygwin.h:
13856 * s/darwin.h:
13857 * s/freebsd.h:
13858 * s/gnu.h:
13859 * s/msdos.h: Remove boilerplate comments.
13860
13861 * m/iris4d.h: Remove boilerplate comments and code for systems that
13862 do not use this file.
13863 (IRIS_4D): Remove, unused.
13864
13865 * m/mips.h: Remove boilerplate comments and code for systems that
13866 do not use this file.
13867 (SIGN_EXTEND_CHAR):
13868 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13869 * unexmips.c: Remove file, unused.
13870
13871 * editfns.c (Fuser_full_name): Replace the only use of
13872 USER_FULL_NAME with its value.
13873 * config.in: Regenerate.
13874
13875 2008-07-16 David Reitter <david.reitter@gmail.com>
13876
13877 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13878 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13879
13880 2008-07-16 Glenn Morris <rgm@gnu.org>
13881
13882 * emacs.c (system-type): Doc fix.
13883
13884 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13885
13886 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13887 If the cache doesn't work, let's fix it, rather than work around it.
13888
13889 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13890
13891 * Makefile.in: Correct additions for nsfont.o in last commit.
13892 * nsfont.m: New file (forgot last commit).
13893
13894 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13895
13896 * callproc.c (set_initial_environment): Initialize
13897 Vprocess_environment under CANNOT_DUMP (fixes crash when
13898 batch-compiling for bootstrap).
13899
13900 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13901 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13902
13903 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13904 CANNOT_DUMP case -- fix crash due to different init order.
13905
13906 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13907
13908 Changes and additions for NeXTstep windowing system (Cocoa and
13909 GNUstep) support.
13910
13911 * Makefile.in:
13912 * config.in: Support defines and build commands for NS port.
13913 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13914 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13915 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13916 windowing.
13917 (struct face): Add synth_ital field.
13918 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13919 (init_display): Initialize Vinitial_window_system to "ns" when so
13920 compiled.
13921 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13922 (display_arg): Use under NS.
13923 (main): Under NS, allocate autorelease pool and handle command line
13924 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13925 (standard_args): Add NS-specific args.
13926 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13927 * font.c (DEFAULT_ENCODING): New variable.
13928 (font_find_for_lface): Use it.
13929 (syms_of_font): Load syms_of_nsfont under NS.
13930 * font.h: Declare nsfont_driver when compiled under NS.
13931 * fontset.c: When compiling under NS, include nsterm.h.
13932 (fontset_from_font): Autoconstruct fontset under NS.
13933 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13934 symbol, document and use it.
13935 (do_switch_frame): When for_deletion under Cocoa, add
13936 Fraise_frame(Qnil).
13937 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13938 (x_get_arg): Allow "yes" and "no" as boolean values.
13939 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13940 Qright under Cocoa.
13941 (focus-follows-mouse): Default to 0 under NS.
13942 * frame.h (enum output_method): Add output_ns.
13943 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13944 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13945 (FRAME_WINDOW_P): NS-specific definition.
13946 * fringe.c (max_used_fringe_bitmap): Make public.
13947 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13948 (getloadavg): Use NeXT code under descendant OS's.
13949 * image.c (includes and header section, x_create_bitmap_from_data)
13950 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13951 (image_background_transparent, x_clear_image_1)
13952 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13953 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13954 (x_to_xcolors, x_from_xcolors, x_disable_image)
13955 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13956 other GUIs, including XPM support using code originally written for
13957 Carbon GUI.
13958 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13959 using NS API.
13960 (image_ascent): Use font metrics macros instead of direct struct field
13961 access.
13962 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13963 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13964 Also, handle NS as GTK for menu bar purposes.
13965 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13966 toolkit where they differ.
13967 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13968 use cachelist, still needed under NS.
13969 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13970 (struct widget_value): Define it here for menu.c.
13971 * keymap.c (includes): Include modifier internals.
13972 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13973 NS.
13974 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13975 support for preferring sequences using certain modifiers, specified by
13976 the FIRSTONLY argument.
13977 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13978 under NS GNUstep implementation.
13979 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13980 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13981 * menu.c: Include nsterm.h under NS.
13982 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13983 (free_menubar_widget_tree_value, update_submenu_strings)
13984 (find_and_call_menu_selection): Treat NS as X and NT.
13985 (find_and_return_menu_selection): New function, used for popup menus.
13986 * nsgui.h:
13987 * nsterm.h:
13988 * nsfns.m:
13989 * nsimage.m:
13990 * nsmenu.m:
13991 * nsselect.m:
13992 * nsterm.m: New files.
13993 * process.c (wait_reading_process_output): Under NS, call ns_select()
13994 instead of plain select().
13995 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13996 beginning of buffer.
13997 * sysselect.h (init_process): Rename when compiling under Cocoa to
13998 avoid name conflict.
13999 * termhooks.h (display_info): Add ns_display_info to union.
14000 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14001 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14002 COCOA environment.
14003 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14004 unexec() signature. (Note, this will dump, but the resulting file
14005 crashes; unexosx is used instead; keeping around for reference and
14006 possible aid in getting dump working under GNUstep.)
14007 * w32gui.h (button_type, widget_value): Remove definitions (now in
14008 keyboard.h).
14009 * window.c: Include nsterm.h when compiling under NS.
14010 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14011 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14012 other GUI windowing systems.
14013 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14014 GTK.
14015 (x_consider_frame_title): Under NS, set icon type and frame
14016 modified-state indicator; use ns_set_name_as_filename() when using
14017 formatted title.
14018 (update_window_cursor): Make public when compiling under NS.
14019 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14020 (hourglass_atimer, Vhourglass_delay
14021 * xfaces.c (header section, init_frame_faces, clear_font_table)
14022 (defined_color, unload_color, x_face_list_fonts)
14023 (prepare_face_for_display): Add NS support parallel to other GUIs.
14024 Emulate GCs like other non-X GUIs.
14025 (split_font_name): Don't lowercase font name under NS.
14026 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14027 under NS.
14028 * s/darwin.h: Add support for compilation under NS.
14029
14030 2008-07-15 Jason Rumney <jasonr@gnu.org>
14031
14032 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14033 (w32_show_hourglass): Rename from show_hourglass.
14034 (w32_hide_hourglass): Rename from hide_hourglass.
14035 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14036 (Vhourglass_delay): Declare extern.
14037 (hourglass_started): Remove.
14038
14039 * xdisp.c (Vhourglass_delay): Remove static.
14040 (hourglass_started, start_hourglass, cancel_hourglass):
14041 Don't include these versions on WINDOWSNT.
14042
14043 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14044
14045 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14046 variables (formerly in xfns.c).
14047 (show_hourglass, hide_hourglass): New prototypes (same).
14048 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14049 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14050 in xfns.c).
14051 (syms_of_xdisp): Declare/initialize display-hourglass,
14052 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14053 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14054 formerly in xfns.c.
14055 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14056 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14057 (start_hourglass, cancel_hourglass): Remove.
14058 (show_hourglass, hide_hourglass): Remove prototypes and static
14059 modifiers.
14060 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14061 hourglass_atimer, hourglass_shown_p declaration/initialization.
14062 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14063 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14064 (start_hourglass, cancel_hourglass): Remove.
14065 (show_hourglass, hide_hourglass): Remove prototypes and static
14066 modifiers.
14067 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14068 hourglass_atimer, hourglass_shown_p declaration/initialization.
14069 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14070 (DEFAULT_HOURGLASS_DELAY): Remove.
14071 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14072 hourglass_shown_p declaration/initialization.
14073
14074 2008-07-14 Jason Rumney <jasonr@gnu.org>
14075
14076 * w32fns.c (w32_get_arg): Remove wrapper function.
14077 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14078 directly.
14079 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14080
14081 2008-07-14 Kenichi Handa <handa@m17n.org>
14082
14083 * xfont.c (xfont_open): Add workaround for X's bug.
14084
14085 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14086
14087 * fontset.c: Include <stdio.h> unconditionally.
14088
14089 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
14090
14091 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14092 for filtering.
14093
14094 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14095
14096 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14097
14098 * m/macppc.h:
14099 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14100
14101 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
14102 (SPECIAL_EMACS_INT):
14103 * m/ia64.h (SPECIAL_EMACS_INT):
14104 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14105 * s/gnu.h (NLIST_STRUCT):
14106 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14107 * s/gnu-linux.h (LINUX):
14108 * s/msdos.h (HAVE_FACES):
14109 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14110
14111 * systty.h:
14112 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14113 anymore.
14114
14115 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14116
14117 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14118 always defined as int.
14119
14120 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14121 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14122 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14123 * s/freebsd.h (HAVE_WAIT_HEADER):
14124 * s/bsd-common.h (HAVE_UNION_WAIT):
14125 * s/aix4-2.h (HAVE_WAIT_HEADER):
14126 * m/mips.h (HAVE_UNION_WAIT):
14127 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14128 (COFF, static): Do not define, they are undefined later in the file.
14129
14130 * process.c (update_status): Don't use a union.
14131 (status_convert):
14132 (sigchld_handler): Use int instead of WAITTYPE.
14133
14134 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
14135
14136 * indent.c (Fvertical_motion): Restore hscroll before moving to
14137 goal column.
14138
14139 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14140
14141 * lisp.h: Remove left over code.
14142
14143 2008-07-11 Andreas Schwab <schwab@suse.de>
14144
14145 * lisp.h: Fix logic in last change.
14146
14147 * menu.h: New file.
14148 * menu.c: Include it.
14149 * xmenu.c: Likewise.
14150 * Makefile.in: Update dependencies.
14151
14152 2008-07-11 Kenichi Handa <handa@m17n.org>
14153
14154 * fontset.c (fontset_from_font): Cancel the previous change.
14155
14156 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14157
14158 * lisp.h:
14159 * w32heap.c:
14160 * emacs.c:
14161 * alloc.c: Replace all references of NO_UNION_TYPE with
14162 USE_LISP_UNION_TYPE.
14163
14164 * m/xtensa.h (NO_UNION_TYPE):
14165 * m/vax.h (NO_UNION_TYPE):
14166 * m/template.h (NO_UNION_TYPE):
14167 * m/sparc.h (NO_UNION_TYPE):
14168 * m/mips.h (NO_UNION_TYPE):
14169 * m/macppc.h (NO_UNION_TYPE):
14170 * m/m68k.h (NO_UNION_TYPE):
14171 * m/iris4d.h (NO_UNION_TYPE):
14172 * m/intel386.h (NO_UNION_TYPE):
14173 * m/ibms390x.h (NO_UNION_TYPE):
14174 * m/ibms390.h (NO_UNION_TYPE):
14175 * m/ibmrs6000.h (NO_UNION_TYPE):
14176 * m/ia64.h (NO_UNION_TYPE):
14177 * m/hp800.h (NO_UNION_TYPE):
14178 * m/arm.h (NO_UNION_TYPE):
14179 * m/amdx86-64.h (NO_UNION_TYPE):
14180 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14181 defining it the same.
14182
14183 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
14184
14185 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14186
14187 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14188
14189 * fileio.c:
14190 * sysdep.c:
14191 * systty.h:
14192 * m/ibmrs6000.h:
14193 * m/iris4d.h:
14194 * s/aix4-2.h:
14195 * s/freebsd.h:
14196 * s/gnu-linux.h:
14197 * s/hpux10-20.h:
14198 * s/hpux11.h:
14199 * s/netbsd.h:
14200 * s/sol2-3.h:
14201 * s/sol2-4.h:
14202 * s/sol2.h:
14203 * s/usg5-4.h:
14204 * s/vms.h: Remove references to unused variables.
14205
14206 2008-07-10 Andreas Schwab <schwab@suse.de>
14207
14208 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14209 pattern before matching the generic family.
14210
14211 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14212
14213 * unexec.c:
14214 * s/vms.h:
14215 * s/usg5-4-2.h:
14216 * s/sol2-5.h:
14217 * s/freebsd.h:
14218 * s/darwin.h: Remove dead code.
14219
14220 * m/template.h:
14221 * m/sparc.h:
14222 * m/mips.h:
14223 * m/m68k.h:
14224 * m/iris4d.h:
14225 * m/intel386.h:
14226 * m/ibms390x.h:
14227 * m/ibms390.h:
14228 * m/ia64.h:
14229 * m/hp800.h:
14230 * m/arm.h:
14231 * m/amdx86-64.h: Remove dead code and references to unused
14232 and compiler defined symbols.
14233
14234 * unexmips.c:
14235 * unexelf.c: Remove references to desupported systems.
14236
14237 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14238
14239 * m/powermac.h: Remove boilerplate comments.
14240 (NO_REMAP): Remove unused definition.
14241
14242 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14243 define them.
14244
14245 2008-07-10 Kenichi Handa <handa@m17n.org>
14246
14247 * xfont.c (xfont_open): Log the reason of failure.
14248
14249 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14250
14251 * fontset.c (fontset_get_font_group):
14252 * font.c (font_check_otf): Specify argument types.
14253
14254 2008-07-09 Kenichi Handa <handa@m17n.org>
14255
14256 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14257 non-ASCII char is found.
14258
14259 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14260 (reorder_font_vector): Change the arg preferred_family to font.
14261 Prefer the spec matching with font.
14262 (fontset_get_font_group): New function.
14263 (fontset_find_font): Change the format of an element of a realized
14264 fontset. Use fontset_get_font_group.
14265 (fontset_font): Try the current fontset, the default fontset, the
14266 fallbacks of the current fontset, and the fallbacks of the default
14267 fontset in this order.
14268 (face_for_char): Delete the shortcut to use the current font.
14269 (fontset_from_font): Don't set fonts for Latin in the fontset.
14270
14271 * font.h (font_make_object, font_match_p): Adjust prototypes.
14272
14273 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14274
14275 * font.c (font_make_object): New arg entity and pixelsize.
14276 (font_check_otf_features, font_check_otf): New functions.
14277 (font_match_p): Check :lang, :script, and :otf properties.
14278
14279 * xfont.c (xfont_open): Adjust it for the change of
14280 font_make_object.
14281 (xfont_text_extents): Fix initial setting of metrics.
14282
14283 * ftfont.c (struct ftfont_info): New member index, delete member
14284 fc_charset_idx. Make the member order compatible with struct
14285 xftfont_info.
14286 (fc_charset_table): Change charset names to registry names.
14287 (ftfont_pattern_entity): Delete the args registry and
14288 fc_charset_idx. Change the value of :font-entity property
14289 to (FONTNAME . INDEX). Always set :registry property to
14290 `iso10646-1'.
14291 (struct ftfont_cache_data): New struct.
14292 (ftfont_lookup_cache): New arg for_face.
14293 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14294 (ftfont_driver): Set the member otf_capability.
14295 (ftfont_get_charset): Adjust it for the change of
14296 fc_charset_table.
14297 (OTF_TAG_SYM): New macro.
14298 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14299 for the change of fc_charset_table.
14300 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14301 ftfont_pattern_entity. Add FC_INDEX to objset.
14302 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14303 and ftfont_pattern_entity.
14304 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14305 font_make_object, struct ftfont_info.
14306 (ftfont_has_char): Use ftfont_get_fc_charset.
14307 (ftfont_otf_features, ftfont_otf_capability): New functions.
14308 (ftfont_shape): Use ftfont_get_otf.
14309 (ftfont_text_extents): Fix initial setting of metrics.
14310
14311 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14312 member order compatible with struct ftfont_info.
14313 (xftfont_open): Add FC_CHARSET to the pattern. Set
14314 xftfont_info->ft_size. Don't unlock the face. Check BDF
14315 properties if appropriate.
14316 (xftfont_close): Unlock the face.
14317 (xftfont_anchor_point, xftfont_shape): Deleted.
14318 (syms_of_xftfont): Don't set members anchor_point and shape of
14319 xftfont_driver.
14320
14321 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14322 font_make_object.
14323
14324 * w32font.c (w32font_open): Adjust it for the change of
14325 font_make_object.
14326 (w32font_open_internal): Don't set properties of font_object here.
14327
14328 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
14329
14330 * macfns.c (x_create_tip_frame):
14331 * w32fns.c (x_create_tip_frame):
14332 * xfns.c (x_create_tip_frame): Pass parameter argument to
14333 face-set-after-frame-default.
14334
14335 * xfaces.c (Finternal_merge_in_global_face): Save merged
14336 attributes for the default face back into the face vector.
14337
14338 2008-07-08 Andreas Schwab <schwab@suse.de>
14339
14340 * fontset.h: Declare fontset_from_font. Don't declare
14341 new_fontset_from_font and fontset_from_font_name.
14342 * xterm.c: Include "fontset.h".
14343 * Makefile.in (xterm.o): Update dependencies.
14344
14345 2008-07-08 Glenn Morris <rgm@gnu.org>
14346
14347 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14348 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14349
14350 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
14351
14352 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14353 (x_set_frame_parameters): Don't bind it.
14354
14355 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
14356
14357 * w32fns.c (map_w32_filename): Declare extern.
14358
14359 2008-07-07 Jason Rumney <jasonr@gnu.org>
14360
14361 * w32term.c (WS_EX_LAYERED): Define if not already.
14362
14363 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
14364
14365 * xfaces.c (set_font_frame_param): Don't try to set the font
14366 parameter if it is still unspecified in the lface.
14367
14368 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14369
14370 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14371 face if it didn't already exist.
14372
14373 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14374
14375 2008-07-05 Andreas Schwab <schwab@suse.de>
14376
14377 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14378
14379 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14380
14381 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14382 word-wrapping.
14383 (IT_DISPLAYING_WHITESPACE): New macro.
14384 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14385 when word-wrapping. Simplify word-wrapping logic. Use correct
14386 pixel positions when saving copies of the iterator.
14387 (display_line): Use proper wrap point if the last character on a
14388 line was preceded by whitespace.
14389
14390 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14391
14392 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14393
14394 2008-07-04 Kenichi Handa <handa@m17n.org>
14395
14396 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14397
14398 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14399
14400 2008-07-02 Jason Rumney <jasonr@gnu.org>
14401
14402 * xfns.c (syms_of_xfns): Only define x-select-font when both
14403 HAVE_FREETYPE and USE_GTK.
14404
14405 * xdisp.c (next_element_from_display_vector): Move assignment out
14406 of if statement.
14407
14408 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14409
14410 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14411
14412 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14413 (syms_of_fileio): Initialize and export them.
14414 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14415
14416 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14417 (Fsystem_move_file_to_trash): New function.
14418 (syms_of_w32fns): Export it to lisp.
14419
14420 2008-07-01 Jason Rumney <jasonr@gnu.org>
14421
14422 * w32font.c (w32font_text_extents): Don't count overhang as part
14423 of width.
14424
14425 2008-06-30 Miles Bader <miles@gnu.org>
14426
14427 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14428 Add `avoid_cursor_p' field.
14429
14430 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14431 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14432 (append_glyph, append_composite_glyph, produce_image_glyph)
14433 (append_stretch_glyph): Initialize avoid_cursor_p.
14434 (get_it_property): Rename from `get_line_height_property'.
14435 (x_produce_glyphs): Use get_it_property.
14436 (handle_line_prefix, push_display_prop): New functions.
14437 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14438 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14439 New variables.
14440 (syms_of_xdisp): Initialize them.
14441
14442 2008-06-30 Kenichi Handa <handa@m17n.org>
14443
14444 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14445 XftDefaultSubstitute (they are called in XftFontMatch).
14446 (xftfont_open): Fix args to ftfont_font_format.
14447
14448 * ftfont.c (fc_charset_table): New member lang.
14449 (ftfont_resolve_generic_family): New arg pattern.
14450 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
14451 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14452 (ftfont_open): Fix args to ftfont_font_format.
14453 (ftfont_font_format): New arg filename.
14454
14455 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
14456
14457 * xfaces.c (Finternal_merge_in_global_face): If default face was
14458 modified, realize it again. Update the font face attribute.
14459
14460 2008-06-29 Jason Rumney <jasonr@gnu.org>
14461
14462 * w32term.c (x_set_frame_alpha): Fix logic.
14463
14464 2008-06-29 Kenichi Handa <handa@m17n.org>
14465
14466 * fontset.c (Finternal_char_font): Return font-object instead of
14467 font-name.
14468
14469 * composite.c (get_composition_id): Fix the width calculation for TAB.
14470
14471 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14472
14473 * indent.c (Fvertical_motion): Properly handle float column arg.
14474
14475 2008-06-28 Jason Rumney <jasonr@gnu.org>
14476
14477 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14478 (pfnSetLayeredWindowAttributes): New function pointer.
14479 (w32_initialize): Initialize it when supported.
14480 (x_set_frame_alpha): New function.
14481
14482 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14483 (w32_frame_parm_handlers): Set alpha handler.
14484
14485 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14486
14487 2008-06-27 Jason Rumney <jasonr@gnu.org>
14488
14489 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14490 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14491 (w32_to_x_charset, x_to_w32_charset)
14492 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14493 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14494 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14495 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14496 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14497 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14498 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14499 (Qw32_charset_unicode): Remove.
14500 (syms_of_w32fns): Update for above changes.
14501
14502 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14503 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14504 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14505 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14506 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14507 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14508 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14509 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14510 (syms_of_w32font): Update for above changes.
14511
14512 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14513
14514 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14515 removed #if.
14516 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14517
14518 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14519 Eli Zaretskii <eliz@gnu.org>
14520
14521 * makefile.w32-in (LOCAL_FLAGS):
14522 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14523
14524 * sysdep.c (_spawnlp, _getpid):
14525 Declare with explicit _cdecl instead of _CRTAPI1.
14526
14527 * editfns.c (Fget_internal_run_time):
14528 Check for WINDOWSNT with #ifdef, not #if.
14529
14530 2008-06-26 Jason Rumney <jasonr@gnu.org>
14531
14532 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14533
14534 * w32term.c (x_draw_glyph_string_foreground)
14535 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14536 Use FONT_HANDLE macro.
14537 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14538
14539 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14540 (uniscribe_encode_char): Use FONT_HANDLE macro.
14541
14542 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14543 (w32font_text_extents): Use precast w32_font.
14544 (w32font_close): Free cached metrics.
14545 (w32font_open_internal): Allocate space for name on stack.
14546
14547 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
14548
14549 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14550
14551 2008-06-26 Jason Rumney <jasonr@gnu.org>
14552
14553 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14554 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14555
14556 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14557
14558 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14559
14560 2008-06-26 Jason Rumney <jasonr@gnu.org>
14561
14562 * w32bdf.c, w32bdf.h: Remove obsolete files.
14563
14564 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14565
14566 * w32gui.h: Don't include w32bdf.h.
14567 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14568 Remove obsolete font support.
14569
14570 * w32font.h (struct w32font_info): Remove compat_w32_font.
14571 Add hfont member.
14572 (FONT_COMPAT): Remove obsolete macro.
14573
14574 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14575 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14576 (w32font_open_internal): Remove compat code. Set new hfont member.
14577 (Fx_select_font): Use new hfont member.
14578
14579 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14580 (uniscribe_encode_char): Use new hfont member.
14581
14582 * w32term.c (x_draw_glyph_string_foreground)
14583 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14584 (x_draw_glyph_string): Use metrics in w32font_info.
14585
14586 2008-06-26 Kenichi Handa <handa@m17n.org>
14587
14588 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14589
14590 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14591
14592 * unexnext.c:
14593 * m/ews4800.h:
14594 * m/hp9000s300.h:
14595 * m/ibm370aix.h:
14596 * m/mips-siemens.h:
14597 * m/ncr386.h:
14598 * m/next.h:
14599 * m/pmax.h:
14600 * m/powerpcle.h:
14601 * m/tandem-s2.h:
14602 * s/386bsd.h:
14603 * s/bsd386.h:
14604 * s/bsd4-1.h:
14605 * s/bsd4-2.h:
14606 * s/bsdos2-1.h:
14607 * s/bsdos2.h:
14608 * s/bsdos3.h:
14609 * s/bsdos4.h:
14610 * s/nextstep.h:
14611 * s/ultrix4-3.h:
14612 * s/usg5-0.h:
14613 * s/usg5-2-2.h:
14614 * s/usg5-2.h:
14615 * s/usg5-4-3.h:
14616 * s/ux4800.h:
14617 * s/uxpds.h:
14618 * s/uxpv.h: Remove support for obsolete systems.
14619 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
14620 Remove, insert contents in s/hpux10-20.h.
14621 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14622 Remove, insert contents in s/aix4-2.h.
14623 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14624 * s/bsd4-3.h: Rename to ...
14625 * s/bsd-common.h: ... this.
14626 * data.c:
14627 * doc.c:
14628 * ecrt0.c:
14629 * emacs.c:
14630 * fileio.c:
14631 * floatfns.c:
14632 * keyboard.c:
14633 * mem-limits.h:
14634 * print.c:
14635 * process.c:
14636 * sysdep.c:
14637 * syssignal.h:
14638 * systty.h:
14639 * syswait.h:
14640 * term.c:
14641 * unexec.c:
14642 * unexelf.c:
14643 * unexhp9k800.c:
14644 * m/hp800.h:
14645 * m/ibmrs6000.h:
14646 * m/mips.h:
14647 * m/vax.h:
14648 * s/darwin.h:
14649 * s/freebsd.h:
14650 * s/gnu.h:
14651 * s/ms-w32.h:
14652 * s/msdos.h:
14653 * s/netbsd.h:
14654 * s/template.h: Remove references to obsolete variables.
14655
14656 * Makefile.in: Add dependencies for all unexec files.
14657 (admindir): Remove unused variable.
14658 (UNEXEC_SRC): Remove references.
14659
14660 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
14661
14662 * xfns.c (x_default_font_parameter): If Xft is available, first
14663 try Monospace-12 for the default font.
14664
14665 2008-06-25 Jason Rumney <jasonr@gnu.org>
14666
14667 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14668
14669 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14670
14671 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14672
14673 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14674
14675 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
14676
14677 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14678 <scroll-conservatively>: Fix typo in docstring.
14679
14680 * xselect.c (Fx_send_client_event): Doc fix.
14681
14682 2008-06-25 Kenichi Handa <handa@m17n.org>
14683
14684 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14685
14686 * font.c (font_parse_fcname): Remove unused variables.
14687 (font_sort_entites): Delete the arg SPEC. Caller changed.
14688 Fix for the case of ! best_only.
14689 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14690
14691 * lisp.h (Fstring_to_unibyte): EXFUN it.
14692
14693 * character.h (str_to_unibyte): Extern it.
14694
14695 * character.c (str_to_unibyte): New function.
14696
14697 * fns.c (Fstring_to_unibyte): New function.
14698 (syms_of_fns): Defsubr it.
14699
14700 2008-06-24 Kenichi Handa <handa@m17n.org>
14701
14702 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14703 DPI too.
14704 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14705
14706 2008-06-24 Andreas Schwab <schwab@suse.de>
14707
14708 * Makefile.in (${lispsource}loaddefs.el): Rename from
14709 ../lisp/loaddefs.el.
14710 (bootstrap-clean): Do what distclean does but don't remove
14711 Makefile.
14712 (distclean): Depend on bootstrap-clean and remove Makefile.
14713
14714 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14715
14716 * buffer.h (struct buffer): New member word_wrap.
14717
14718 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14719 word-wrap.
14720 (init_buffer_once): Initialize them.
14721
14722 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14723 line_wrap enum possessing three possible values.
14724
14725 * termopts.h: Replace truncate_partial_width_windows with
14726 Vtruncate_partial_width_windows.
14727
14728 * dispnew.c (direct_output_for_insert): Avoid direct output when
14729 inserting a space with word wrap on.
14730
14731 * indent.c (compute_motion): Obey integer values of
14732 truncate-partial-width-windows.
14733
14734 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14735 replacing truncate_partial_width_windows.
14736 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14737 truncate only if the window width is below that integer.
14738 (start_display, resize_mini_window, produce_stretch_glyph)
14739 (display_string, move_it_in_display_line_to): Use line_wrap.
14740 (back_to_previous_visible_line_start, reseat_1): Reset
14741 string_from_display_prop_p.
14742 (display_line): Extend default face to end of line when wrapping.
14743
14744 2008-06-24 Kim F. Storm <storm@cua.dk>
14745
14746 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14747 to wrap continued lines at word boundaries.
14748
14749 2008-06-24 Jason Rumney <jasonr@gnu.org>
14750
14751 * font.c (Ffont_face_attributes): Multiply pixel size before point
14752 conversion to avoid multiplying rounding error.
14753
14754 2008-06-23 Jason Rumney <jasonr@gnu.org>
14755
14756 * w32term.c (x_draw_glyph_string_background)
14757 (x_draw_glyph_string): Remove old bdf font code.
14758
14759 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14760
14761 2008-06-22 Kenichi Handa <handa@m17n.org>
14762
14763 * font.c (font_find_for_lface): Try the adstyle specified in
14764 the property of LFACE_FONT of LFACE (if any).
14765
14766 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14767 Ryo Yoshitake <ryo@shiftmode.net>
14768
14769 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14770
14771 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14772
14773 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14774 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14775 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14776 (witness-emacs): Remove.
14777 (lisp, shortlisp): Move loaddefs.el earlier.
14778 (mostlyclean): Forget about witness-emacs.
14779
14780 2008-06-22 Glenn Morris <rgm@gnu.org>
14781
14782 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14783 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14784
14785 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14786
14787 * Makefile.in (PRECOMP): Remove.
14788 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14789 (witness-emacs): Run `compile-first'.
14790 (.el.elc): Use the new compile-onefile target.
14791
14792 2008-06-21 Kenichi Handa <handa@m17n.org>
14793
14794 * xftfont.c (xftfont_open): Handle QCembolden only when
14795 FC_EMBOLDEN is defined.
14796
14797 2008-06-21 Andreas Schwab <schwab@suse.de>
14798
14799 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14800 (.el.elc): Likewise.
14801
14802 2008-06-21 Miles Bader <miles@gnu.org>
14803
14804 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14805 build dir, not the lisp source dir.
14806
14807 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14808
14809 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14810 (bootstrapclean): Remove.
14811 (.el.elc): New rule.
14812 (PRECOMP): New var.
14813 (../lisp/subdirs.el): Remove.
14814 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14815 (witness-emacs): New target.
14816 (mostlyclean): Remove witness-emacs as well.
14817 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14818 Add witness-emacs dependency.
14819
14820 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14821
14822 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14823 defined by the font.
14824
14825 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14826
14827 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14828 (bootstrap-clean): New target that keeps TAGS around.
14829 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14830 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14831
14832 2008-06-20 Jason Rumney <jasonr@gnu.org>
14833
14834 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14835 Remove obsolete font code.
14836
14837 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14838 to determine language support.
14839
14840 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14841
14842 * sysdep.c (cfsetspeed): New fun extracted from the code.
14843 (cfmakeraw): Move before first use.
14844
14845 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14846
14847 * sysdep.c (cfmakeraw): Provide fallback implementation.
14848 (serial_configure): Provide fallback implementation of cfsetspeed.
14849
14850 2008-06-20 Kenichi Handa <handa@m17n.org>
14851
14852 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14853 the pattern.
14854
14855 * fontset.c (fontset_from_font): Copy font_spec before changing
14856 the elements.
14857
14858 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14859
14860 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14861
14862 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14863 for explicit `font' parameters.
14864
14865 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14866
14867 2008-06-19 Kenichi Handa <handa@m17n.org>
14868
14869 * frame.c: Include <ctype.h>.
14870 (x_set_font_backend): Allow spacing characters in the X resource
14871 for FontBackend.
14872
14873 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14874
14875 * w32fns.c, xfns.c (Qfont_param): New var.
14876 (syms_of_w32fns): Initialize it.
14877 (x_default_font_parameter): Record explicit `font' into
14878 `font-parameter'.
14879
14880 2008-06-18 Kenichi Handa <handa@m17n.org>
14881
14882 * font.c (font_parse_xlfd): Fix previous change.
14883 (font_parse_fcname): Don't use :fc-unknown-spec.
14884 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14885 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14886 (font_add_log): Prepend the driver name to the resulting fonts.
14887
14888 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14889 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14890 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14891
14892 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14893 (QCembolden): New variables.
14894 (syms_of_xftfont): DEFSYM them.
14895 (xftfont_open): Call XftFontMatch. Don't trust the result of
14896 XftTextExtents8 if the pixel_size is less than 5.
14897
14898 2008-06-18 Andreas Schwab <schwab@suse.de>
14899
14900 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14901 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14902
14903 2008-06-18 Jason Rumney <jasonr@gnu.org>
14904
14905 * w32font.c (w32font_list, w32font_match): Add logging.
14906
14907 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14908
14909 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14910
14911 * font.c (font_parse_fcname): Store divider characters for
14912 unknown-spec list. For known key symbols, intern using correct
14913 symbol name.
14914
14915 2008-06-17 Kenichi Handa <handa@m17n.org>
14916
14917 * xfaces.c (realize_default_face): If the frame is not on window
14918 system, set the fontset of face to nil.
14919
14920 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14921
14922 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14923
14924 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14925
14926 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14927 (build_font_name_from_vector): Delete externs.
14928
14929 * xfaces.c (struct font_name): Don't declare.
14930
14931 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14932
14933 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14934
14935 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14936
14937 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14938
14939 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14940
14941 * font.c (Ffont_spec): Fix usage in docstring.
14942 (Ffont_face_attributes): Doc fix.
14943
14944 2008-06-16 Andreas Schwab <schwab@suse.de>
14945
14946 * font.c (Ffont_face_attributes): Fix definition.
14947
14948 2008-06-16 Jason Rumney <jasonr@gnu.org>
14949
14950 * font.h (font_style_symbolic_from_value): Remove.
14951
14952 * font.c (font_style_symbolic_from_value): Remove.
14953 (font_style_symbolic): Revert to pre 2008-06-13 version.
14954
14955 * w32font.c (w32_to_fc_weight): New function.
14956 (w32font_full_name, logfont_to_fcname): Use it.
14957
14958 2008-06-16 Kenichi Handa <handa@m17n.org>
14959
14960 * font.c (font_check_object): Delete it.
14961 (font_clear_cache): Check if a font-object is alive.
14962 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14963 font-object to nil.
14964 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14965 (font_at): Don't call font_check_object.
14966 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14967
14968 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14969
14970 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14971
14972 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14973
14974 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14975
14976 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
14977
14978 * font.c (font_parse_fcname): Only one decimal point.
14979 (font_unparse_fcname): Handle data in family and foundry indices
14980 as symbols, not strings.
14981 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14982
14983 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14984
14985 * font.h (font_unparse_gtkname): Add prototype.
14986
14987 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14988
14989 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14990
14991 2008-06-15 Andreas Schwab <schwab@suse.de>
14992
14993 * font.c (font_update_drivers): Fix crash when no drivers match.
14994
14995 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14996
14997 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14998 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14999
15000 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15001
15002 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15003
15004 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15005
15006 * process.c (Fserial_process_configure, Fprocess_send_eof):
15007 Use EQ to compare Lisp_Objects.
15008
15009 2008-06-13 Jason Rumney <jasonr@gnu.org>
15010
15011 * w32fns.c (Fw32_select_font): Remove old font API function.
15012
15013 * w32font.c (logfont_to_fcname): New function.
15014 (Fx_select_font): New font dialog function compatible with
15015 GTK/fontconfig version.
15016
15017 * font.c (font_style_symbolic_from_value): New function.
15018 (font_style_symbolic): Use it.
15019
15020 * font.h (font_style_symbolic_from_value): Declare new function.
15021
15022 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
15023
15024 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15025 <font-width-table>: Fix typos in docstrings.
15026
15027 2008-06-13 Daniel Engeler <engeler@gmail.com>
15028
15029 These changes add serial port access.
15030 * process.c: Add HAVE_SERIAL.
15031 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15032 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15033 (list_processes_1, select_wrapper, Fstop_process)
15034 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15035 (status_notify): Modify to handle serial processes.
15036 [HAVE_SERIAL] (Fserial_process_configure)
15037 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15038 New functions.
15039 * process.h (struct Lisp_Process): Add `type'.
15040 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15041 New functions.
15042 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15043 serial ports.
15044 (serial_open, serial_configure): New functions.
15045 * w32.h: Add FILE_SERIAL.
15046 (struct _child_process): Add ovl_read, ovl_write.
15047
15048 2008-06-13 Kenichi Handa <handa@m17n.org>
15049
15050 * dispextern.h (enum lface_attribute_index): New member
15051 LFACE_FOUNDRY_INDEX.
15052
15053 * font.c (font_score): Delete arg alternate_families. Check only
15054 weight, slant, width, and size. Ignore the difference of alias
15055 style symbols.
15056 (font_sort_entites): Adjust for the above change. Reflect the
15057 order of font-driver to scores.
15058 (font_list_entities): Don't check alternate_familes here.
15059 (font_clear_prop): Handle foundry.
15060 (font_update_lface): Don't parse "foundry-family" form here.
15061 Handle FONT_FOUNDRY_INDEX.
15062 (font_find_for_lface): Likewise. Handle alternate families here.
15063 If registry is nil, try iso8859-1 and ascii-0.
15064 (font_open_for_lface): Pay attention to size in ENTITY.
15065 (font_open_by_name): Simplify by calling font_load_for_lface.
15066 (free_font_driver_list): Delete it.
15067 (font_update_drivers): Preserve the order of backends.
15068 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15069 of font_score and font_sort_entites.
15070 (font_update_sort_order): Likewise.
15071
15072 * xfaces.c (LFACE_FOUNDRY): New macro.
15073 (check_lface_attrs): Check foundry.
15074 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15075 (merge_face_vectors): Check foundry.
15076 (merge_face_ref): Likewise.
15077 (Finternal_set_lisp_face_attribute): Likewise.
15078 (x_update_menu_appearance): Likewise.
15079 (Finternal_get_lisp_face_attribute): Likewise.
15080 (lface_hash): Likewise.
15081 (lface_same_font_attributes_p): Likewise.
15082 (x_supports_face_attributes_p): Likewise.
15083 (tty_supports_face_attributes_p): Likewise.
15084 (Finternal_set_alternative_font_family_alist): Intern strings.
15085 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15086 (realize_default_face): Set LFACE_FOUNDRY (lface).
15087
15088 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15089 font-driver at first.
15090
15091 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15092
15093 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15094
15095 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15096
15097 2008-06-12 Jim Meyering <meyering@redhat.com>
15098
15099 Make unexec_free handle NULL the same way free does.
15100 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15101
15102 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15103
15104 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15105 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15106 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15107 (WEAK_ALIAS): Simplify.
15108 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15109 when searching a unibyte buffer.
15110
15111 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
15112
15113 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15114
15115 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
15116
15117 * w32font.c: Include ctype.h.
15118
15119 2008-06-11 Jason Rumney <jasonr@gnu.org>
15120
15121 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15122 misreported as space.
15123 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15124 as aliases for registry iso10646-1.
15125
15126 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15127
15128 * buffer.c (clone_per_buffer_values): Skip `name'.
15129
15130 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
15131
15132 * font.c (font_parse_fcname): Fix last change; accept decimal
15133 points in font size.
15134
15135 2008-06-10 Jason Rumney <jasonr@gnu.org>
15136
15137 * w32uniscribe.c (add_opentype_font_name_to_list):
15138 Skip non unicode fonts.
15139
15140 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15141
15142 * xfns.c (Fx_font_dialog): New function.
15143
15144 * gtkutil.c (xg_dialog_response_cb): Rename from
15145 xg_file_response_callback.
15146 (pop_down_dialog): Rename from pop_down_file_dialog.
15147 (xg_get_file_name): Callers changed.
15148 (xg_get_font_name): New function.
15149
15150 * gtkutil.h (xg_get_font_name): Insert prototype.
15151
15152 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15153
15154 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15155 x_underline_minimum_display_offset.
15156 (syms_of_xdisp): Declare it here rather than in xterm.c.
15157 * dispextern.h (underline_minimum_offset): Declare it.
15158 * w32term.c (x_draw_glyph_string): Use it.
15159 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15160 (syms_of_xterm): Don't declare it any more.
15161 (x_draw_glyph_string): Adjust to the new name.
15162
15163 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
15164
15165 * xterm.c (x_underline_minimum_display_offset): New var.
15166 (x_draw_glyph_string): Use it.
15167 (syms_of_xterm): Declare it.
15168
15169 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15170
15171 * font.c (font_parse_fcname): Accept GTK-style font names too.
15172
15173 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15174
15175 * dired.c (file_name_completion): Don't return t if the match is exact
15176 but with different capitalization.
15177 * minibuf.c (Ftry_completion): Simplify.
15178
15179 * window.c (Vwindow_point_insertion_type): New var.
15180 (set_window_buffer): Use it.
15181 (syms_of_window): Init and export it to Lisp.
15182
15183 2008-06-10 Kenichi Handa <handa@m17n.org>
15184
15185 * font.h (font_intern_prop): Prototype adjusted.
15186
15187 * font.c (font_intern_prop): New arg force_symbol.
15188 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15189 Adjust for the change of font_intern_prop.
15190
15191 * ftfont.c (ftfont_pattern_entity):
15192 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15193 (w32_registry):
15194 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15195 the change of font_intern_prop.
15196
15197 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
15198
15199 * w32menu.c (digest_single_submenu): Declare extern.
15200
15201 2008-06-09 Jason Rumney <jasonr@gnu.org>
15202
15203 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15204
15205 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15206 (parse_single_submenu): Remove.
15207 (digest_single_submenu): Remove.
15208 (syms_of_w32menu): Don't initialise variables that have moved
15209 to menu.c.
15210 (set_frame_menubar): Sync with version in xmenu.c.
15211 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15212
15213 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15214 Make static again.
15215
15216 2008-06-09 Jason Rumney <jasonr@gnu.org>
15217
15218 Changes to w32 files related to the move of common menu code
15219 to menu.c on 2008-06-08 by Chong Yidong.
15220
15221 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15222 defs to w32gui.h.
15223 (single_keymap_panes, push_menu_item, push_menu_pane):
15224 Make globally visible.
15225
15226 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15227 (local_free, malloc_widget_value, free_widget_value)
15228 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15229 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15230 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15231 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15232 (menu_items, menu_items_allocated, menu_items_used)
15233 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15234 (init_menu_items, finish_menu_items, discard_menu_items)
15235 (grow_menu_items, push_submenu_start, push_submenu_end)
15236 (push_left_right_boundary, push_menu_pane, push_menu_item)
15237 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15238 (free_menubar_widget_tree_value, parse_single_submenu)
15239 (update_submenu_strings): Remove functions.
15240 (xmalloc_widget_value): Remove and declare extern.
15241
15242 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15243 (OBJ1): Build it.
15244
15245 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15246 (local_heap, local_alloc, local_free, malloc_widget_value)
15247 (free_widget_value): Define here.
15248
15249 2008-06-09 Kenichi Handa <handa@m17n.org>
15250
15251 * font.h (Qascii_0): Extern it.
15252
15253 * font.c (Qascii_0): New variable.
15254 (syms_of_font): DEFSYM it.
15255 (font_open_by_name): If the registry "iso8859-1" fails, try also
15256 "ascii-0".
15257
15258 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15259
15260 2008-06-08 Kenichi Handa <handa@m17n.org>
15261
15262 * .gdbinit (xfont): New command.
15263
15264 2008-06-08 Andreas Schwab <schwab@suse.de>
15265
15266 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15267 * Makefile.in (menu.o): Update dependencies.
15268
15269 * Makefile.in (obj): Always add menu.o.
15270 * emacs.c (main): Always call syms_of_menu.
15271 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15272
15273 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
15274
15275 * Makefile.in: Compile menu.c.
15276
15277 * lisp.h: Declare syms_of_menu.
15278
15279 * emacs.c (main): Call syms_of_menu.
15280
15281 * keyboard.h: Relocate platform-independent menu definitions from
15282 xmenu.c.
15283
15284 * menu.c: New file. Relocate platform-independent menu
15285 definitions from xmenu.c. Suggested by Adrian Robert.
15286
15287 * xmenu.c: Remove platform-independent menu definitions.
15288 (menu_items, menu_items_inuse, menu_items_allocated)
15289 (menu_items_used, menu_items_n_panes)
15290 (menu_items_submenu_depth): Move to keyboard.h.
15291 (init_menu_items, finish_menu_items, unuse_menu_items)
15292 (discard_menu_items, restore_menu_items, save_menu_items)
15293 (grow_menu_items, push_submenu_start, push_submenu_end)
15294 (push_left_right_boundary, push_menu_pane, push_menu_item)
15295 (keymap_panes, single_keymap_panes, single_menu_item)
15296 (list_of_panes, list_of_items, find_and_call_menu_selection)
15297 (xmalloc_widget_value, free_menubar_widget_value_tree)
15298 (parse_single_submenu, digest_single_submenu)
15299 (update_submenu_strings): Move to menu.c.
15300
15301 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15302
15303 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15304
15305 2008-06-06 Miles Bader <miles@gnu.org>
15306
15307 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15308 face, not frame default.
15309
15310 2008-06-05 Martin Rudalics <rudalics@gmx.at>
15311
15312 * window.c (pop_up_windows, pop_up_frames)
15313 (display_buffer_reuse_frames, Vpop_up_frame_function)
15314 (Vdisplay_buffer_function, Veven_window_heights)
15315 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15316 (Vspecial_display_function, Vsame_window_buffer_names)
15317 (Vsame_window_regexps, split_height_threshold)
15318 (Vsplit_window_preferred_function): Move those vars to window.el.
15319 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15320 (Fdisplay_buffer): Move those functions to window.el.
15321 (syms_of_window): Remove corresponding declarations.
15322 (display_buffer): New function.
15323 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15324 * dispnew.c (Flast_nonminibuf_frame): New function.
15325 * buffer.c (Fpop_to_buffer): Move to window.el.
15326
15327 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15328
15329 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15330
15331 2008-06-05 Kenichi Handa <handa@m17n.org>
15332
15333 * coding.c (detect_coding): Fix previous change.
15334 (detect_coding_system): Likewise.
15335
15336 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15337
15338 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15339
15340 * keymap.c (Vminibuffer_local_filename_must_match_map):
15341 Rename from Vminibuffer_local_must_match_filename_map.
15342 (syms_of_keymap):
15343 * minibuf.c (Fcompleting_read): Adjust accordingly.
15344 * commands.h: Rename declaration as well.
15345
15346 2008-06-05 Kenichi Handa <handa@m17n.org>
15347
15348 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15349 family name.
15350 (Ffont_put): Likewise.
15351
15352 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15353 current font-spec.
15354
15355 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15356 is unspecified.
15357
15358 * xfaces.c (realize_x_face): If the font-related face attributes
15359 are the same as those of default face, realize a new fontset from
15360 default->fontset.
15361 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15362
15363 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15364
15365 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15366 (move_it_in_display_line): New wrapper.
15367
15368 * window.c (window_scroll_pixel_based_preserve_x)
15369 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15370 (window_scroll_pixel_based, window_scroll_line_based):
15371 Use them to preserve column positions.
15372 (syms_of_window): Initialize them.
15373
15374 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15375 (HPOS . VPOS) pair.
15376
15377 * dispextern.h (move_it_in_display_line): Declare.
15378
15379 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
15380
15381 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15382 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15383 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15384
15385 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
15386
15387 * window.c (Fset_window_parameter): Doc fix.
15388 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15389
15390 2008-06-04 Joakim Verona <joakim@verona.se>
15391
15392 * window.h (struct window): Add new member window_parameters.
15393
15394 * window.c (Fwindow_parameters, Fwindow_parameter)
15395 (Fset_window_parameter): New defuns.
15396 (syms_of_window): Defsubr the new defuns.
15397 (make_window): Initialize window_parameters to nil.
15398
15399 2008-06-04 John Paul Wallington <jpw@pobox.com>
15400
15401 * eval.c (Fdefmacro): Doc fix.
15402
15403 2008-06-04 Kenichi Handa <handa@m17n.org>
15404
15405 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15406 Be sure to call setup_coding_system when we find a proper coding system.
15407 (detect_coding_system): Fix handling of coding->head_ascii.
15408
15409 2008-06-03 Andreas Schwab <schwab@suse.de>
15410
15411 * font.c (font_prop_validate_spacing): Fix last change.
15412
15413 2008-06-03 Kenichi Handa <handa@m17n.org>
15414
15415 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15416 (font_parse_fcname): Fix handling of unknown key.
15417
15418 * xfont.c (xfont_list): Try an alias.
15419
15420 * charset.c (char_charset): Return NULL if the arg charset_list is
15421 specified and C doesn't belong to any of them.
15422
15423 2008-06-02 Chip Coldwell <coldwell@redhat.com>
15424
15425 * font.c (font_pixel_size): Don't take cdr of an integer.
15426
15427 2008-06-02 Jim Meyering <meyering@redhat.com>
15428
15429 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15430 * alloc.c (xfree): Return right away for a NULL arg.
15431 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15432 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15433 * mac.c (create_apple_event_from_event_ref): Likewise.
15434 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15435 Likewise.
15436 * doprnt.c (doprnt1): Likewise.
15437 * frame.c (frame): Likewise.
15438 * keyboard.c (wipe_kboard): Likewise.
15439 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15440 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15441 * term.c (tty_default_color_capabilities, maybe_fatal)
15442 (delete_tty): Likewise.
15443 * w16select.c (string): Likewise.
15444 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15445 * w32bdf.c (w32_free_bdf_font): Likewise.
15446 * w32fns.c (w32_unload_font): Likewise.
15447 * w32font.c (w32font_close): Likewise.
15448 * window.c (size_window): Likewise.
15449 * xselect.c (receive_incremental_selection): Likewise.
15450 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15451 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15452 * w32.c (stat): Likewise.
15453
15454 Remove useless if-before-free tests.
15455 * editfns.c (Fset_time_zone_rule): Likewise.
15456 * lread.c (nosuffix): Likewise.
15457 * ralloc.c (get_bloc): Likewise.
15458 * regex.c (reg_free): Likewise.
15459 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15460 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15461 * xsmfns.c (smc_save_yourself_CB): Likewise.
15462
15463 2008-06-02 Kenichi Handa <handa@m17n.org>
15464
15465 * font.c (font_find_for_lface): Handle float font size.
15466 (font_open_for_lface): Likewise.
15467
15468 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15469 comparing the properties.
15470
15471 2008-06-01 Jason Rumney <jasonr@gnu.org>
15472
15473 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15474 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15475 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15476 Don't add empty script list.
15477 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15478
15479 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15480
15481 * Makefile.in (dot, dotdot): Remove, update users.
15482 ".." has been used elsewhere in the file for a long time.
15483 (LIBXT_STATIC): Remove conditional based on unused variable.
15484
15485 2008-06-01 Miles Bader <miles@gnu.org>
15486
15487 * xfaces.c (Vface_remapping_alist): New variable.
15488 (syms_of_xfaces): Initialize it.
15489 (enum named_merge_point_kind): New type.
15490 (struct named_merge_point): Add `named_merge_point_kind' field.
15491 (push_named_merge_point): Make cycle detection respect different
15492 named-merge-point kinds.
15493 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15494 Remove face-name alias resolution.
15495 (lface_from_face_name): New definition using
15496 `lface_from_face_name_no_resolve'.
15497 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15498 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15499 (get_lface_attributes): New definition that layers face-remapping on
15500 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15501 (lookup_basic_face): New function.
15502 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15503 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15504 `get_lface_attributes'.
15505 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15506 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15507 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15508
15509 * xdisp.c (init_iterator): Pass base_face_id through
15510 `lookup_basic_face' when we actually use it as a face-id.
15511 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15512 DEFAULT_FACE_ID.
15513
15514 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15515 lookup the initial face-id.
15516
15517 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15518
15519 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
15520
15521 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15522 (Fremove_text_properties): Fix typos in docstrings.
15523
15524 2008-05-31 Kenichi Handa <handa@m17n.org>
15525
15526 * font.c (font_list_entities): Fix the car part of data to be
15527 stored in the cache.
15528
15529 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15530
15531 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15532
15533 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15534 Add a `test' argument so another predicate than `equal' can be used.
15535 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15536 (map_char_table): Remove unused vars `c' and `i'.
15537 * lisp.h (Foptimize_char_table): Adjust declaration.
15538 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15539
15540 2008-05-30 Kenichi Handa <handa@m17n.org>
15541
15542 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15543 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15544 defined.
15545
15546 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15547
15548 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15549 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15550 frame-local settings for the same variable.
15551
15552 2008-05-30 Kenichi Handa <handa@m17n.org>
15553
15554 * fontset.c (Ffont_info): Move to font.c.
15555 (syms_of_fontset): Delete defsubr of Sfont_info.
15556
15557 * font.c (font_style_to_value, font_score): Delete casting of the
15558 args to xstcasecmp.
15559 (register_font_driver): Increment num_font_drivers only when
15560 registering the driver globally.
15561 (Ffont_info): Move from fontset.c. Handle a font object too.
15562 (syms_of_font): Defsubr Sfont_info.
15563
15564 2008-05-29 Kenichi Handa <handa@m17n.org>
15565
15566 * coding.h (enum define_coding_utf8_arg_index): New enum.
15567 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15568 coding_attr_utf_bom.
15569 (enum utf_bom_type): Rename from utf_16_bom_type.
15570 (struct utf_16_spec): Adjust for the above change.
15571 (struct coding_system): Add utf_8_bom in `spec' union.
15572
15573 * coding.c (CODING_UTF_8_BOM): New macro.
15574 (enum coding_category): Delete coding_category_utf_8, add
15575 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15576 coding_category_utf_8_sig.
15577 (CATEGORY_MASK_UTF_8): Delete it.
15578 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15579 (CATEGORY_MASK_UTF_8_SIG): New macros.
15580 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15581 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15582 CATEGORY_MASK_UTF_8_SIG.
15583 (CATEGORY_MASK_UTF_8): New macro.
15584 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15585 (detect_coding_utf_8): Check BOM.
15586 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15587 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15588 (encode_coding_utf_16): Likewise.
15589 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15590 (detect_coding, detect_coding_system): Handle utf-8-auto.
15591 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15592 (syms_of_coding): Fix setting up of Vcoding_category_table.
15593
15594 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15595
15596 * process.c (Faccept_process_output): If `millisec' is non-nil,
15597 `seconds' default to 0.
15598 (wait_reading_process_output): Also return non-nil if we read output
15599 from a non-running process.
15600
15601 2008-05-29 Jason Rumney <jasonr@gnu.org>
15602
15603 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15604 `raster' specified.
15605 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15606 in the uniscribe backend, but disallow any font that has no
15607 unicode subrange support.
15608
15609 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
15610
15611 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15612 Fix typos in docstrings.
15613
15614 2008-05-29 Kenichi Handa <handa@m17n.org>
15615
15616 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15617 (Fx_family_fonts): Set frame correctly.
15618
15619 2008-05-28 Jason Rumney <jasonr@gnu.org>
15620
15621 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15622
15623 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15624
15625 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15626 calling build_annotations.
15627
15628 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
15629
15630 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15631 (Fencode_coding_string):
15632 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15633 <latin-extra-code-table>: Fix typos in docstrings.
15634 (syms_of_coding) <coding-system-alist>: Doc fix.
15635 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15636
15637 2008-05-28 Kenichi Handa <handa@m17n.org>
15638
15639 * fontset.c (Ffont_info): Don't call font_close_object.
15640
15641 * font.c (font_parse_family_registry): Use Ffont_put to validate
15642 foundry and family.
15643 (font_delete_unmatched): Don't check spacing.
15644 (font_list_entities): Add spacing to the spec to list fonts.
15645
15646 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15647 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15648
15649 * coding.c (encode_coding_raw_text): Fix previous change.
15650 (encode_coding_object): When the dst_object is a buffer and is
15651 different from src_object, move gap to PT.
15652
15653 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15654
15655 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15656
15657 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15658
15659 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15660 all branches. Compute it differently.
15661
15662 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15663
15664 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
15665
15666 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15667 into "else if () ... else ...".
15668
15669 2008-05-27 Jason Rumney <jasonr@gnu.org>
15670
15671 * w32font.c (w32font_open_internal): Determine if glyph indices
15672 are likely to work here.
15673
15674 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15675
15676 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15677 draw overlap glyphs with appropriate highlighting.
15678
15679 2008-05-27 Kenichi Handa <handa@m17n.org>
15680
15681 * xfont.c (xfont_open): Fix calculation of font->average_width.
15682
15683 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15684
15685 * casefiddle.c (casify_object): Try to guess better whether the
15686 argument is a byte or a char.
15687
15688 2008-05-26 Andreas Schwab <schwab@suse.de>
15689
15690 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15691 Always send multiples of format size.
15692
15693 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15694
15695 2008-05-26 Jason Rumney <jasonr@gnu.org>
15696
15697 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15698 (compute_metrics): Don't set failure if we just cleared the cache.
15699 (w32_weight_table): Remove unused variable.
15700 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15701 backwards compatibility.
15702
15703 2008-05-25 Kenichi Handa <handa@m17n.org>
15704
15705 * w32term.c (x_draw_glyph_string):
15706 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15707
15708 * xfaces.c: Delete unused function prototypes.
15709 (xstrlwr, font_frame): Delete them.
15710 (clear_face_cache): Delete unused variable.
15711
15712 * xftfont.c (xftfont_open): Delete unused variable.
15713 If underline_thickness is not 1, adjust underline_position.
15714
15715 * ftxfont.c (ftxfont_open): Delete unused variable.
15716
15717 * fontset.c (face_for_char): Optimize for the case of no charset
15718 property.
15719
15720 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15721 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15722 (otf_open, font_otf_capability, generate_otf_features)
15723 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15724 Comment out by surrounding "#if 0" and "#endif" for the moment.
15725 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15726 (syms_of_font): Codes for accessing above commented out.
15727
15728 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15729
15730 * w32proc.c: Include dispextern.h.
15731
15732 * w32.c: Include dispextern.h.
15733
15734 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15735
15736 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15737 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15738 Fix typos in docstrings.
15739
15740 2008-05-23 Jason Rumney <jasonr@gnu.org>
15741
15742 * xsmfns.c: Remove includes that are already included by config.h.
15743
15744 2008-05-23 Kenichi Handa <handa@m17n.org>
15745
15746 * charset.c (Qemacs, charset_emacs): New variables.
15747 (char_charset): Fix for non-Unicode characters.
15748 (syms_of_charset): Define charset_emacs.
15749
15750 * w32term.c (x_draw_glyph_string): Be sure to update
15751 s->underline_thickness and s->underline_position. Be sure to draw
15752 underline within the current line area.
15753
15754 * xterm.c (x_draw_glyph_string): Be sure to update
15755 s->underline_thickness and s->underline_position. Be sure to draw
15756 underline within the current line area.
15757
15758 * fontset.c: Delete unused variables and add casting for char *
15759 throughout the file.
15760 (fontset_font): Try the fallback fonts of the current fontset
15761 before consulting the default fontset.
15762
15763 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15764
15765 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15766
15767 2008-05-22 Jason Rumney <jasonr@gnu.org>
15768
15769 * font.c: Don't include strings.h.
15770
15771 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15772
15773 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15774 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15775 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15776 to call xstrcasecmp.
15777
15778 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15779
15780 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15781
15782 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15783
15784 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15785
15786 2008-05-22 Kenichi Handa <handa@m17n.org>
15787
15788 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15789
15790 * font.c (font_prop_validate_style): Adjust for the format
15791 change of font_style_table.
15792
15793 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15794 two args.
15795
15796 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15797 two args.
15798
15799 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15800
15801 * minibuf.c (keys_of_minibuf): Delete.
15802 * lisp.h (keys_of_minibuf): Delete.
15803 * emacs.c (main): Don't call keys_of_minibuf.
15804
15805 2008-05-22 Kenichi Handa <handa@m17n.org>
15806
15807 * ftfont.c (ftfont_resolve_generic_family): Rename from
15808 ftfont_list_generic_family. Return a single family for each
15809 generic family.
15810 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15811 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15812 Call font_add_log.
15813 (ftfont_match): Call font_add_log.
15814
15815 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15816 (FONT_DEBUG): Define it.
15817 (font_add_log): Extern it.
15818 (font_assert): Rename from xassert.
15819
15820 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15821 (xfont_list_family): Call font_add_log.
15822 (xfont_match): Likewise.
15823 (memq_no_quit): Delete.
15824
15825 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15826 call of Ffont_xlfd_name.
15827
15828 * xfaces.c (struct table_entry, slant_table, weight_table)
15829 (swidth_table): Move to font.c.
15830
15831 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15832 xassert are changed to font_assert. Delete many unused variables.
15833 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15834 New variables.
15835 (struct table_entry): Move from xfaces.c and modified.
15836 (weight_table, slant_table, width_table): Move from xfaces.c and
15837 contents adjusted for the change of struct table_entry.
15838 (font_style_to_value, font_style_symbolic): Adjust for the
15839 format change of font_style_table.
15840 (font_parse_family_registry): Don't overwrite existing foundry and
15841 family of font_spec.
15842 (font_score): Fix calculation of diff for sizes.
15843 (font_sort_entites): Call font_add_log.
15844 (font_delete_unmatched): Return a newly created list.
15845 (font_list_entities): Fix previous change. Call font_add_log.
15846 (font_matching_entity, font_open_entity, font_close_entity):
15847 Call font_add_log.
15848 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15849 (Finternal_set_font_style_table): Delete.
15850 (BUILD_STYLE_TABLE): New macro.
15851 (build_style_table): New function.
15852 (Vfont_log, font_log_env_checked): New variables.
15853 (font_add_log): New function.
15854 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15855 Declare Lisp variables "font-weight-table", "font-slant-table",
15856 "font-width-table", and "font-log". Initialize font_style_table.
15857
15858 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15859
15860 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15861
15862 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15863 Ryo Yoshitake <ryo@shiftmode.net>
15864
15865 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15866 (Vframe_alpha_lower_limit): New variable.
15867 (x_set_alpha): New function.
15868
15869 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15870
15871 * xfns.c (x-create-frame, Qalpha):
15872 Initialize the frame parameter `alpha'.
15873 * xterm.c (OPAQUE, OPACITY): New.
15874 (x_set_frame_alpha): New function.
15875 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15876
15877 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15878 * w32fns.c (w32_frame_parm_handlers): Likewise.
15879
15880 2008-05-20 Jason Rumney <jasonr@gnu.org>
15881
15882 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15883 truetype fonts to opentype list.
15884
15885 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15886
15887 * fontset.c (Ffontset_info): Doc fix.
15888 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15889 <ignore-relative-composition>: Fix typos in docstrings.
15890
15891 * font.c (syms-of-font) <font-encoding-alist>:
15892 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15893 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15894 (Ffont_otf_alternates): Doc fixes.
15895
15896 2008-05-20 Kenichi Handa <handa@m17n.org>
15897
15898 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15899 font.h through out the file.
15900 (FONT_DRIVERS): Rename from FONTOBJ.
15901 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15902 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15903
15904 * emacs.c (main): Call syms_of_font unconditionally.
15905
15906 * font.h (find_font_encoding): Extern it.
15907
15908 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15909 fontset.c.
15910 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15911 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15912 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15913 only when HAVE_WINDOW_SYSTEM is defined.
15914 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15915 when HAVE_WINDOW_SYSTEM is defined.
15916
15917 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15918 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15919
15920 * xfaces.c: Include font.h unconditionally.
15921 (merge_face_ref, merge_face_vectors)
15922 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15923
15924 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15925
15926 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15927 indirect_variable.
15928 * eval.c (lisp_indirect_variable): New fun.
15929 (Fuser_variable_p): Use it.
15930
15931 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15932
15933 * lisp.h (indirect_variable):
15934 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15935 Use Lisp_Symbol pointers rather than Lisp_Object.
15936 Adjust callers.
15937 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15938 To this end, change calling-convention.
15939
15940 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15941 if some non-hidden buffers are selected by string&pred.
15942
15943 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15944
15945 * process.c (wait_reading_process_output): Always check status
15946 when in batch mode.
15947
15948 2008-05-19 Kenichi Handa <handa@m17n.org>
15949
15950 * font.c (font_list_entities): Fix handling of cache.
15951 (font_matching_entity): Likewise.
15952
15953 * ftfont.c (cs_iso8859_1): Delete.
15954 (ft_face_cache): New variable.
15955 (struct ftfont_info): New member fc_charset_idx.
15956 (ftfont_build_basic_charsets): Delete.
15957 (fc_charset_table): New variable.
15958 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15959 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15960 Callers changed.
15961 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15962 (ftfont_spec_pattern): New argument fc_charset_idx.
15963 Check registry more rigidly. Change callers.
15964 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15965 change of :font-entity property of the font.
15966
15967 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15968 property of the font.
15969
15970 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
15971
15972 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15973 (Funencodable_char_position, Fcheck_coding_systems_region)
15974 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15975 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15976 (Ffind_operation_coding_system, Fset_coding_system_priority)
15977 (Fcoding_system_eol_type): Doc fixes.
15978
15979 2008-05-17 Glenn Morris <rgm@gnu.org>
15980
15981 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15982
15983 2008-05-16 Eli Zaretskii <eliz@gnu.org>
15984
15985 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15986 and st_gid.
15987
15988 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15989 HAVE_WINDOW_SYSTEM is not defined.
15990
15991 * xfaces.c (merge_face_ref, merge_face_vectors)
15992 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15993 HAVE_WINDOW_SYSTEM is defined.
15994 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15995
15996 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15997
15998 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15999
16000 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16001
16002 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16003
16004 2008-05-15 Kenichi Handa <handa@m17n.org>
16005
16006 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16007 preference.
16008
16009 2008-05-15 Glenn Morris <rgm@gnu.org>
16010
16011 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16012
16013 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
16014
16015 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16016 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16017
16018 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16019
16020 2008-05-15 Kenichi Handa <handa@m17n.org>
16021
16022 * ftfont.c (ftfont_list): Downcase family name to check generic
16023 families.
16024
16025 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16026 font-spec for QCfont value.
16027
16028 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16029 buffer. Check the return value of it.
16030
16031 2008-05-14 Jason Rumney <jasonr@gnu.org>
16032
16033 * w32term.c (w32_get_glyph_overhangs): Remove.
16034 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16035
16036 2008-05-14 Kenichi Handa <handa@m17n.org>
16037
16038 * font.c (font_prop_validate): Make nil a valid value.
16039 (font_clear_cache): Check if the cached vector of entities is nil
16040 or not.
16041
16042 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16043
16044 * emacs.c (main_thread): Conditionalize on
16045 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16046 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16047
16048 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16049 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16050 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16051
16052 2008-05-14 Kenichi Handa <handa@m17n.org>
16053
16054 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16055 has no corresponding coding system.
16056
16057 2008-05-14 Jason Rumney <jasonr@gnu.org>
16058
16059 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16060
16061 * w32font.h (w32font_open_internal): Update declaration.
16062
16063 * w32font.c (w32font_open_internal): Change last argument from
16064 w32font_info struct to font object. Fill in font object from
16065 font_entity. Get Outline metrics if possible. Use them to
16066 calculate underline position and thickness. Use xlfd name as name
16067 property. Don't set codepage.
16068 (w32font_open): Pass font_object to w32font_open_internal. Don't
16069 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16070 (w32font_draw): Use s->font.
16071 (clear_cached_metrics): Don't clear non-existent blocks.
16072
16073 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16074 font was not found.
16075 (x_draw_glyph_string): Use underline position and thickness from font.
16076
16077 * w32uniscribe.c (uniscribe_open): Pass font_object to
16078 w32font_open_internal.
16079
16080 2008-05-14 Kenichi Handa <handa@m17n.org>
16081
16082 These changes are to delete all legacy font-handling codes, and
16083 make Emacs use only font-backends.
16084
16085 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16086 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16087
16088 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16089
16090 * charset.h (Vcharset_non_preferred_head)
16091 (Vcurrent_iso639_language): Extern them.
16092
16093 * charset.c (Vcharset_non_preferred_head): New variable.
16094 (Vcurrent_iso639_language): New variable.
16095 (syms_of_charset): Declare it as a Lisp variable.
16096 (char_charset): Don't check non preferred charsets. As a last
16097 resort, return charset_unicode.
16098 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16099
16100 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16101 conditionals. Don't check enable_font_backend. Delete all codes
16102 used only when USE_FONT_BACKEND is not defined.
16103
16104 * dispextern.h (struct glyph_string): Change type of `font' to
16105 `struct font *'.
16106 (struct glyph_string): New member underline_position and
16107 underline_thickness.
16108 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16109 (struct face): Change type of `font' to `struct font *'. Remove
16110 members `font_name', `font_info_id'.
16111 (per_char_metric, encode_char): Delete externs.
16112 (calc_pixel_width_or_height): Adjust the prototype.
16113
16114 * emacs.c (enable_font_backend): Delete extern.
16115 (main): Don't set enable_font_backend. Don't check the command
16116 line argument "-disable-font-backend".
16117
16118 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16119 (enum font_property_index): New members FONT_DPI_INDEX,
16120 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16121 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16122 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16123 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16124 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16125 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16126 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16127 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16128 (struct font_spec, struct font_entity): New structs.
16129 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16130 (struct font): Many members from old "struct font_info" moved to
16131 here. Members font and entity deleted.
16132 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16133 the new font-related objects.
16134 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16135 (CHECK_FONT_GET_OBJECT): Likewise.
16136 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16137 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16138 (struct font_driver): New members case_sensitive anc check. Type
16139 of the member list and open changed.
16140 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16141 (font_symbolic_width, font_find_object, font_get_spec)
16142 (font_set_lface_from_name): Delete extern.
16143 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16144
16145 * font.c: Include <strings.h>.
16146 (enable_font_backend): Delete it.
16147 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16148 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16149 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16150 (null_string): Delete it.
16151 (null_vector): Make it static.
16152 (font_family_alist): Delete it.
16153 (Qnormal): Extern it.
16154 (QCextra, QClanguage): Delete it.
16155 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16156 (font_make_spec, font_make_entity, font_make_object)
16157 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16158 the string. Callers changed.
16159 (font_pixel_size): Adjusted for the format change of font-related
16160 objects.
16161 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16162 (font_style_to_value, font_style_symbolic): New function.
16163 (build_font_family_alist): Delete it.
16164 (font_registry_charsets): Use Fassoc_string instead of
16165 assq_no_quit.
16166 (font_prop_validate_symbol): Don't return null_string.
16167 (font_prop_validate_style): Adjusted for the change of
16168 style-related values in a font vector.
16169 (font_property_table): Delete entries for QClanguage and
16170 QCantialias, add entries for QCavgwidth.
16171 (get_font_prop_index): Delete the 2nd argument FROM.
16172 (font_prop_validate): Arguments changed.
16173 (font_put_extra): Adjusted for the change of font-related objects.
16174 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16175 (font_parse_fcname, font_unparse_fcname)
16176 (font_prepare_composition): Likewise.
16177 (font_parse_family_registry): Renamed from font_merge_old_spec.
16178 (otf_open): Delete the 1st arg entity.
16179 (font_otf_capability): Adjusted for the above change.
16180 (font_score): New arg alternate_families. Adjusted for the change
16181 of font-related objects.
16182 (font_sort_entites): New arg best_only.
16183 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16184 Delete them.
16185 (font_match_p): Check alternate families.
16186 (font_find_object): Delete it.
16187 (font_check_object): New function.
16188 (font_clear_cache): Adjusted for the change of font-related objects.
16189 (font_delete_unmatched): New arg.
16190 (font_list_entities): Call font_driver->list with a spec that
16191 doesn't specify style-related properties.
16192 (font_matching_entity): Arguments changed. Caller changed.
16193 (font_open_entity): Adjusted for the change of font-related objects.
16194 (font_close_object, font_has_char, font_encode_char)
16195 (font_get_name, font_get_spec): Likewise.
16196 (font_spec_from_name, font_clear_prop, font_update_lface):
16197 New functions.
16198 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16199 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16200 (font_at): Adjusted for the change of font-related objects.
16201 (font_range): New function.
16202 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16203 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16204 (Fcopy_font_spec, Fmerge_font_spec): New function.
16205 (Ffont_family_list): Renamed from list-families.
16206 (Finternal_set_font_style_table): Arguments changed.
16207 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16208 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16209 change of font-related objects.
16210 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16211
16212 * fontset.h (struct font_info): Delete it. Most members go to
16213 struct font.
16214 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16215 (enum FONT_SPEC_INDEX): Delete it.
16216 (font_info, list_fonts_func, load_font_func, query_font_func)
16217 (set_frame_fontset_func, find_ccl_program_func)
16218 (get_font_repertory_func, new_fontset_from_font_name): Delete
16219 externs.
16220 (fontset_from_font_name): Extern it.
16221 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16222 (FONT_INFO_FROM_FACE): Deleted.
16223 (face_for_font): Adjust prototype.
16224
16225 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16226 conditionals. Don't check enable_font_backend. Delete all codes
16227 used only when USE_FONT_BACKEND is not defined.
16228 (get_font_info_func, list_font_func, load_font_func)
16229 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16230 (get_font_repertory_func): Delete them.
16231 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16232 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16233 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16234 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16235 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16236 (fontset_compare_rfontdef): New function.
16237 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16238 rfont-defs by qsort. Adjusted for the change of font-group vector.
16239 (load_font_get_repertory): Deleted.
16240 (fontset_find_font): Use new macros to ref/set elements of
16241 font-def and rfont-def.
16242 (fontset_font): Fix the timing of remembering that no font for C.
16243 (free_face_fontset): Do nothing if the face has no fontset.
16244 (face_suitable_for_char_p): Use new macros to ref/set elements of
16245 rfont-def.
16246 (face_for_char): Likewise. Call face_for_char with font_object.
16247 (fs_load_font): Delete. Delete #pragma surrounding it.
16248 (fs_query_fontset): Use strcasecmp instead of strcmp.
16249 (generate_ascii_font_name): Adjusted for the format change of
16250 font-spec.
16251 (Fset_fontset_font): Likewise. Use new macros to set elements of
16252 font-def.
16253 (Fnew_fontset): Use font_unparse_xlfd to generate
16254 FONTSET_ASCII (fontset).
16255 (new_fontset_from_font_name): Deleted.
16256 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16257 a fontset is already created for the font. FIx updating of
16258 Vfontset_alias_alist.
16259 (fontset_ascii_font): Deleted.
16260 (Ffont_info): Adjusted for the format change of font-spec.
16261 (Finternal_char_font): Likewise.
16262 (Ffontset_info): Likewise.
16263 (syms_of_fontset): Don't check load_font_func.
16264
16265 * fns.c (internal_equal): Handle PREV_FONT.
16266
16267 * frame.h: Delete USE_FONT_BACKEND conditional.
16268
16269 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16270 conditionals. Don't check enable_font_backend. Delete all codes
16271 used only when USE_FONT_BACKEND is not defined.
16272 (x_set_font): Call x_new_font, not x_new_fontset2.
16273 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16274 already set for the frame.
16275
16276 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16277 a font-entity by font_make_entity. Use font_intern_prop instead
16278 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16279 font property. If a font is scalable, set avgwidth property to 0.
16280 Set font-entity property by font_put_extra.
16281 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16282 (ffont_driver): Adjusted for the change of struct font_driver.
16283 (ftfont_spec_pattern): New function.
16284 (ftfont_list): Return a list, not vector.
16285 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16286 (ftfont_list_family): Don't downcase names.
16287 (ftfont_free_entity): Deleted.
16288 (ftfont_open): Return a font-object. Adjusted for the change of
16289 struct font. Get underline_thickness and underline_position from
16290 font property. Don't update dpyinfo->smallest_font_height and
16291 dpyinfo->smallest_char_width.
16292 (ftfont_close): Don't free `struct font'.
16293 (ftfont_has_char): Adjusted for the format change of font-entity.
16294 (ftfont_encode_char, ftfont_text_extents): Likewise.
16295
16296 * ftxfont.c (ftxfont_list): Return a list, not vector.
16297 (ftxfont_open): Return a font-object. Adjusted for the change of
16298 struct font. Get underline_thickness and underline_position from
16299 font property. Don't update dpyinfo->smallest_font_height and
16300 dpyinfo->smallest_char_width.
16301 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16302 (ftxfont_draw): Adjusted for the change of struct font.
16303
16304 * image.c (image_ascent): Don't include "charset.h". Include
16305 "character.h" and "font.h".
16306
16307 * lisp.h (enum pvec_type): New member PREV_FONT.
16308 (Fassoc_string): EXFUN it.
16309
16310 * print.c: Include font.h.
16311 (print_object): Handle font-related objects.
16312
16313 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16314 conditionals. Don't check enable_font_backend. Delete all codes
16315 used only when USE_FONT_BACKEND is not defined.
16316 (handle_auto_composed_prop): Do nothing if it->f is not on a
16317 window system. Check how many following characters can be
16318 displayed by the same font.
16319 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16320 'struct font *'.
16321 (get_char_face_and_encoding): Assign the whole encoding task to
16322 the `encode-char' method of a font driver.
16323 (fill_composite_glyph_string): Adjusted for the change of `struct
16324 face' and `struct glyph_string'.
16325 (fill_glyph_string): Likewise.
16326 (get_per_char_metric): Arguments changed.
16327 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16328 and `struct glyph_string'.
16329 (produce_stretch_glyph, calc_line_height_property)
16330 (x_produce_glyphs): Likewise.
16331
16332 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16333 conditionals. Don't check enable_font_backend. Delete all codes
16334 used only when USE_FONT_BACKEND is not defined. Use
16335 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16336 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16337 (Qp): Extern them.
16338 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16339 Deleted.
16340 (struct font_name): Deleted.
16341 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16342 (compare_fonts_by_sort_order): New function.
16343 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16344 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16345 Deleted.
16346 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16347 compare_fonts_by_sort_order.
16348 (Fx_font_family_list): Call Ffont_family_list.
16349 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16350 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16351 (face_symbolic_slant, face_symbolic_swidth)
16352 (split_font_name_into_vector, build_font_name_from_vector)
16353 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16354 (font_rescale_ratio, split_font_name, build_font_name)
16355 (free_font_names, sort_fonts, x_face_list_fonts)
16356 (face_font_available_p, sorted_font_list, cmp_font_names)
16357 (font_list_1, concat_font_list, font_list, remove_duplicates):
16358 Deleted.
16359 (Fx_list_fonts): Use Ffont_list.
16360 (LFACE_AVGWIDTH): Deleted.
16361 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16362 by FONTP.
16363 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16364 (set_lface_from_font_name): Delete it.
16365 (set_lface_from_font): Renamed from
16366 set_lface_from_font_and_fontset. Caller changed. Don't set
16367 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16368 for face.
16369 (merge_face_vectors): Copy font-spec if necessary.
16370 Clear properties of the font-spec if necessary.
16371 (merge_face_ref): Clear properties of the font-spec if necessary.
16372 (Finternal_set_lisp_face_attribute): Likewise.
16373 (set_font_frame_param): Use font_load_for_lface to load a
16374 font-object, and call Fmodify_frame_parameters with it.
16375 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16376 font name by Ffont_xlfd_name.
16377 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16378 QCslant, and QCwidth.
16379 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16380 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16381 Compare fonts by EQ.
16382 (lookup_non_ascii_face): Deleted.
16383 (face_for_font): The 2nd argument changed.
16384 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16385 Check atomic font properties by case insensitive.
16386 (realize_non_ascii_face): Set face->overstrike correctly.
16387 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16388 (dump_realized_face): Get font name from
16389 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16390
16391 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16392 conditionals. Don't check enable_font_backend. Delete all codes
16393 used only when USE_FONT_BACKEND is not defined.
16394 (xic_create_xfontset): Original code deleted and renamed from
16395 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16396 (x_make_gc): Don't set GCFont in GCs.
16397 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16398 opened by "fixed".
16399 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16400 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16401 get_font_repertory_func.
16402
16403 * xfont.c: Include <stdlib.h> and "ccl.h".
16404 (struct xfont_info): New structure.
16405 (xfont_query_font): Deleted.
16406 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16407 moved from xterm.c.
16408 (xfont_driver): Adjusted for the change of struct font_driver.
16409 (compare_font_names): New function.
16410 (xfont_list_pattern): Sort font names case insensitively. Make
16411 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16412 (xfont_list): Return a list, not vector.
16413 (xfont_match): If the font doesn't have QCname property, generate
16414 a name from the other font properties.
16415 (xfont_open): Return a font-object. Adjusted for the change of
16416 struct font. Get underline_thickness and underline_position from
16417 font property. Don't update dpyinfo->smallest_font_height and
16418 dpyinfo->smallest_char_width.
16419 (xfont_close): Don't free struct font.
16420 (xfont_prepare_face): Adjusted for the change of struct font.
16421 (xfont_done_face): Deleted.
16422 (xfont_has_char): Adjusted for the change of struct font.
16423 (xfont_encode_char, xfont_draw): Likewise.
16424 (xfont_check): New function.
16425
16426 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16427 callback function.
16428 (xftfont_match): Adjusted for the format change of font-entity.
16429 (xftfont_open): Adjusted for the format change of font-entity and
16430 font-object. Adjusted for the change of struct font. Return a
16431 font-object. Don't update dpyinfo->smallest_font_height and
16432 dpyinfo->smallest_char_width.
16433 (xftfont_close): Block input while calling XftFontClose.
16434 (xftfont_prepare_face): Don't block input while calling
16435 xftfont_get_colors. Adjusted for the change of struct font.
16436 (xftfont_shape): Return value of error case fixed.
16437
16438 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16439
16440 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16441 conditionals.
16442 (FONT_WIDTH): Return (f)->max_width.
16443 (struct x_display_info): Delete member `font'.
16444 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16445 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16446 (struct x_output): Change type of `font' to `struct font *'.
16447
16448 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16449 conditionals. Don't check enable_font_backend. Delete all codes
16450 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16451 (x_per_char_metric, x_encode_char): Deleted.
16452 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16453 (x_compute_glyph_string_overhangs): Adjusted for the change of
16454 `struct face'.
16455 (x_draw_glyph_string_foreground)
16456 (x_draw_composite_glyph_string_foreground): Likewise.
16457 (x_draw_glyph_string): Likewise. Use font->underline_position and
16458 font->underline_thickness.
16459 (x_new_font): Renamed from x_new_fontset2.
16460 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16461 (x_check_font): Call `check' method of a font driver.
16462 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16463 (x_query_font, x_get_font_repertory): Deleted.
16464 (x_find_ccl_program): Renamed and moved to xfont.c.
16465 (x_redisplay_interface): Adjusted for the change of `struct
16466 redisplay_interface'.
16467
16468 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16469 conditionals. Don't check enable_font_backend. Delete all codes
16470 used only when USE_FONT_BACKEND is not defined. Surround non-used
16471 code by "#ifdef OLD_FONT" and "endif".
16472 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16473
16474 * w32font.h (struct w32font_info): New member.
16475 (FONT_COMPAT): New macro.
16476 (w32font_open_internal): Prototype adjusted.
16477
16478 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16479 OLD_FONT" and "endif".
16480
16481 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16482 conditionals. Don't check enable_font_backend. Delete all codes
16483 used only when USE_FONT_BACKEND is not defined.
16484 (w32font_open): Return a font-object. Make a font-object by
16485 font_make_object. Adjusted for the change of struct w32font_info.
16486 (w32font_close): Don't free struct font. Adjusted for the change
16487 of struct w32font_info.
16488 (w32font_encode_char, w32font_text_extents, w32font_draw):
16489 Adjusted for the change of struct w32font_info.
16490 (w32font_draw): Likewise.
16491 (w32font_list_internal): Return a list, not vector.
16492 (w32font_open_internal): Change the 4th arg to font-object.
16493 Adjusted for the change of struct w32font_info and font-object format.
16494 (add_font_name_to_list): Don't downcase names.
16495 (w32_enumfont_pattern_entity): Make a font-entity by
16496 font_make_entity. Adjusted for the format change of font-entity.
16497 Use FONT_SET_STYLE to set a style-related font property. If a
16498 font is scalable, set avgwidth property to 0. Set font-entity
16499 property by font_put_extra.
16500 (font_matches_spec): Adjusted for the format change of font-entity.
16501 (w32_weight_table, w32_decode_weight): New variables.
16502 (w32_encode_weight): New function.
16503 (fill_in_logfont): Adjusted for the format change of font-spec.
16504 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16505 weight value.
16506 (w32font_driver): Adjusted for the change of struct font_driver.
16507
16508 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16509 conditionals. Don't check enable_font_backend. Surround non-used
16510 code by "#ifdef OLD_FONT" and "endif".
16511 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16512 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16513
16514 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16515 conditionals. Don't check enable_font_backend. Delete all codes
16516 used only when USE_FONT_BACKEND is not defined. Surround non-used
16517 code by "#ifdef OLD_FONT" and "endif".
16518
16519 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16520 (uniscribe_open): Return value changed to font-object.
16521 Adjusted for the format change of font-object.
16522 (uniscribe_otf_capability): Adjusted for the change of struct font.
16523 (add_opentype_font_name_to_list): Don't downcase names.
16524 (uniscribe_font_driver): Adjusted for the change of struct
16525 font_driver.
16526
16527 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
16528
16529 * dispnew.c (update_frame_1): Check if tty output is still valid
16530 before flushing it.
16531
16532 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16533
16534 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16535 to Gtk+ menus.
16536
16537 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16538
16539 * dired.c (file_name_completion): Tweak the code so as to always do it
16540 in a single pass. Tighten the scope of some variables.
16541
16542 * dired.c (Qdefault_directory): New var.
16543 (file_name_completion): Use it instead of Fexpand_file_name.
16544 (syms_of_dired): Initialize it.
16545
16546 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16547
16548 * fileio.c (double_dollars): Remove dead code.
16549
16550 2008-05-10 Eli Zaretskii <eliz@gnu.org>
16551
16552 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16553 Mention w32-get-true-file-attributes in doc string.
16554
16555 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16556
16557 2008-05-09 Glenn Morris <rgm@gnu.org>
16558
16559 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16560 2008-04-23.
16561
16562 2008-05-09 Eli Zaretskii <eliz@gnu.org>
16563
16564 Support for reporting owner and group of each file on MS-Windows:
16565 * dired.c (stat_uname, stat_gname): New functions, with special
16566 implementation for w32.
16567 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16568
16569 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16570 (dflt_group_name): New static variable.
16571 (dflt_group): Rename from the_group.
16572 (init_user_info): Init dflt_group fields. Get user's group name
16573 from LookupAccountSid.
16574 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16575 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16576 New initialization states.
16577 (globals_of_w32): Initialize them to zero. Initialize the default
16578 group name to "None".
16579 (GetFileSecurity_Name): New global var, the name of the function
16580 to call for GetFileSecurity.
16581 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16582 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16583 (get_file_security, get_security_descriptor_owner)
16584 (get_security_descriptor_group, is_valid_sid)
16585 (get_file_security_desc, get_rid, get_name_and_id)
16586 (get_file_owner_and_group): New functions.
16587 (stat): Use get_file_security_desc and get_file_owner_and_group to
16588 report the owner and primary group of each file. Don't ignore the
16589 high 32 bits of file's size, now that st_size is 64-bit wide.
16590 Fix test when to get true file attributes.
16591 (init_user_info): Use get_rid instead of equivalent inline code.
16592 (fstat): Don't ignore the high 32 bits of file's size.
16593
16594 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
16595
16596 * image.c (png_load): Use correct bit-depth for setting background
16597 color.
16598
16599 2008-05-08 Eli Zaretskii <eliz@gnu.org>
16600
16601 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16602 epa-hook.elc.
16603
16604 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
16605
16606 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16607
16608 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16609
16610 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16611 because the original parameters are in pure storage now.
16612 (mac_window): Remove unused params. Update callers.
16613
16614 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16615
16616 * lread.c (substitute_object_recurse): Use lower-level primitives.
16617 Don't signal errors when traversing sub-char-tables.
16618 Don't loop over all the possible characters when traversing char-tables.
16619
16620 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16621 just like we do in print.c.
16622
16623 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16624
16625 * minibuf.c (Ftry_completion): Remove code left over from when we used
16626 scmp instead of Fcompare_strings.
16627
16628 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
16629
16630 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16631
16632 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16633
16634 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16635 Create bitmap context in native byte order.
16636
16637 * macterm.c (XDrawLine)
16638 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16639 context in native byte order.
16640
16641 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16642
16643 * config.in: Regenerate.
16644
16645 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16646 New definitions for Image I/O support.
16647 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16648 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16649 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16650 (mac_data_provider_release_data, image_load_image_io)
16651 [USE_MAC_IMAGE_IO]: New functions.
16652 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16653 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16654 (init_image_func_pointer) [MAC_OSX]: Remove function.
16655 (image_load_quartz2d) [MAC_OSX]: Check availability of
16656 CGImageCreateWithPNGDataProvider at compile time.
16657 Use lowercase `false' for boolean constant.
16658 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16659 Use image_load_image_io.
16660 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16661 Don't check MyCGImageCreateWithPNGDataProvider.
16662 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16663 Don't call init_image_func_pointer.
16664
16665 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16666
16667 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16668 Make variable non-static.
16669 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16670 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16671
16672 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16673 (RED_FROM_ULONG): Mask off higher bits.
16674 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16675
16676 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16677 Include AvailabilityMacros.h.
16678 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16679 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16680
16681 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16682
16683 * chartab.c (Fset_char_table_range): If range is t, really set all
16684 chars to that value.
16685
16686 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16687
16688 * dired.c (Ffile_attributes): Don't allow the device number become
16689 negative.
16690
16691 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16692
16693 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16694
16695 2008-05-02 Juri Linkov <juri@jurta.org>
16696
16697 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16698 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16699 DEFAULT argument as a list of default values in docstrings.
16700
16701 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16702
16703 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16704
16705 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16706
16707 * dispnew.c (change_frame_size_1): Preserve small windows when
16708 shrinking frames by calling set_window_height|width with third
16709 arg 2.
16710
16711 * window.h (struct window): Replace field too_small_ok by field
16712 resize_proportionally.
16713
16714 * window.c (make_window): Initialize resize_proportionally.
16715 (enlarge_window): Temporarily set resize_proportionally to make
16716 sure that shrink_windows does scale the window proportionally.
16717 (shrink_windows): When window has resize_proportionally set try
16718 to shrink it proportionally by stealing from other windows.
16719 (struct saved_window, Fset_window_configuration)
16720 (compare_window_configurations): Handle resize_proportionally.
16721 (WINDOW_TOTAL_SIZE): New macro.
16722 (window_min_size, shrink_windows, size_window): Use it.
16723 (check_min_window_sizes): Remove. Invalid values of
16724 window-min-height|width are handled by window_min_size_2 now.
16725 (size_window, Fsplit_window, enlarge_window)
16726 (adjust_window_trailing_edge, grow_mini_window): Don't call
16727 check_min_window_sizes.
16728 (window_min_size_2, window_min_size_1, window_min_size):
16729 New argument safe_p for retrieving "safe" minimum sizes.
16730 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16731 (adjust_window_trailing_edge, grow_mini_window):
16732 Adjust arguments of window_min_size... functions.
16733 (shrink_windows): Argument min_size removed. New argument
16734 safe_p allows shrinking windows to their safe minimum sizes.
16735 Calculate minimum size and decide whether a window shall be
16736 deleted for each window individually.
16737 (size_window): When nodelete_p equals 2, tell shrink_windows to
16738 delete windows only if their new minimum size is no more safe.
16739 (shrink_window_lowest_first): Call window_min_size_1 to make
16740 sure to preserve modeline of bottom-most window when resizing
16741 the minibuffer.
16742 (Fset_window_configuration, Fcurrent_window_configuration)
16743 (compare_window_configurations): Do not handle
16744 window-min-height|width any more.
16745 (syms_of_window): Clarify window-min-height|width doc-strings.
16746
16747 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16748
16749 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16750 some more. Copy some of the code from Ftry_completions.
16751 Remove special case code that dates back to initial revision when the
16752 slash was only added when necessary and that can't trigger nowadays.
16753
16754 2008-04-27 Kenichi Handa <handa@m17n.org>
16755
16756 * font.c (font_prop_validate): Signal `error' instead of `font'.
16757
16758 2008-04-29 Jason Rumney <jasonr@gnu.org>
16759
16760 * w32fns.c (Fw32_battery_status): New defun.
16761 (syms_of_w32fns): Defsubr it.
16762
16763 2008-04-28 Andreas Schwab <schwab@suse.de>
16764
16765 * dired.c (file_name_completion): Fix another mixing of encoded
16766 and decoded names.
16767
16768 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16769
16770 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16771
16772 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16773
16774 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16775
16776 2008-04-27 Andreas Schwab <schwab@suse.de>
16777
16778 * dired.c (file_name_completion): Fix inappropriate mixing of
16779 encoded and decoded names.
16780
16781 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16782
16783 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16784
16785 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16786
16787 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16788 2008-03-31, it's not needed anymore with `struct stat' definition
16789 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16790 for the same reasons.
16791
16792 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16793
16794 * m/sparc.h: Additional redefinitions for GNU/Linux.
16795
16796 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16797
16798 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16799 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16800 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16801 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16802 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16803 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16804 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16805 Likewise.
16806
16807 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16808 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16809 (mac_ax_number_of_characters): Add externs.
16810 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16811 [USE_MAC_TSM]: Likewise.
16812 (mac_handle_text_input_event) [MAC_OSX]:
16813 Handle kEventTextInputOffsetToPos for no active input area case.
16814 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16815 (mac_handle_document_access_event)
16816 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16817 (install_application_handler) [MAC_OSX]: Register handlers for
16818 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16819 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16820 Register mac_handle_document_access_event.
16821
16822 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16823 Make functions non-static.
16824
16825 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16826
16827 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16828 (read_file_name_completion_ignore_case, insert_default_directory)
16829 (Qdefault_directory): Move to minibuffer.el.
16830 (Fread_file_name): Call the new `read-file-name' instead.
16831
16832 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16833
16834 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16835 Make function non-static.
16836 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16837 Remove function.
16838 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16839 Move to mactoolbox.c.
16840 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16841
16842 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16843 (mac_rect_make): New macro.
16844
16845 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16846 instead of float.
16847 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16848 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16849 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16850 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16851 CGRectMake.
16852 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16853 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16854 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16855 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16856 instead of WindowRef in argument type.
16857 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16858 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16859 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16860 instead of DISPLAY. All uses changed.
16861 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16862 (x_calc_absolute_position): Simplify so as not to use
16863 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16864
16865 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16866 instead of WindowRef in argument type.
16867 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16868 [TARGET_API_MAC_CARBON]: Remove externs.
16869 (create_apple_event, mac_event_parameters_to_lisp)
16870 [TARGET_API_MAC_CARBON]: Add externs.
16871
16872 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16873 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16874 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16875 is clicked.
16876 (x_activate_menubar): Remove extern for saved_menu_event_location.
16877 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16878 Move from mac.c.
16879
16880 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16881
16882 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16883 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16884
16885 2008-04-23 Jason Rumney <jasonr@gnu.org>
16886
16887 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16888 attributes only for local files.
16889
16890 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16891 default to Qlocal.
16892
16893 2008-04-22 Juri Linkov <juri@jurta.org>
16894
16895 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16896 read-buffer-to-switch instead of using the letter "B".
16897
16898 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16899
16900 * fileio.c (Qdefault_directory): New variable.
16901 (Fread_file_name): Use it to pass `dir' to the completion functions.
16902
16903 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16904
16905 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16906
16907 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16908
16909 * keyboard.c (Vpre_help_message): Remove.
16910 (show_help_echo): Remove default C code.
16911
16912 * dired.c (directory_files_internal, file_name_completion):
16913 Only call ENCODE_FILE if the string is indeed decoded.
16914
16915 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16916
16917 * Makefile.in (TOOLKIT_DEFINES): Remove.
16918 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16919
16920 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16921
16922 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16923 (mactoolbox.o): New target.
16924
16925 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16926 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16927
16928 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16929 Use mac_set_frame_window_background instead of XSetWindowBackground.
16930 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16931 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16932 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16933 instead of SetWindowTitleWithCFString.
16934 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16935 Move function to mactoolbox.c.
16936 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16937 Use mac_set_window_modified instead of SetWindowModified.
16938 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16939 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16940 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16941 FrontNonFloatingWindow. Use mac_activate_window instead of
16942 ActivateWindow. Use mac_active_non_floating_window instead of
16943 ActiveNonFloatingWindow.
16944 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16945 Use mac_show_hourglass and mac_hide_hourglass.
16946 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16947 instead of GetGlobalMouse.
16948 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16949 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16950 Use mac_bring_window_to_front instead of BringToFront.
16951 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16952 mactoolbox.c.
16953 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16954 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16955 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16956 mactoolbox.c.
16957
16958 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16959 (XtPointer): Move typedef from macmenu.c.
16960 (enum button_type): Move enum from macmenu.c.
16961 (widget_value): Move typedef from macmenu.c.
16962 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16963 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16964 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16965 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16966 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16967 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16968 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16969 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16970 (Selection): Move typedef from macselect.c.
16971 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16972 macterm.c.
16973 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16974 (mac_is_window_collapsed, mac_bring_window_to_front)
16975 (mac_send_window_behind, mac_hide_window, mac_show_window)
16976 (mac_collapse_window, mac_front_non_floating_window)
16977 (mac_active_non_floating_window, mac_activate_window)
16978 (mac_move_window_structure, mac_move_window, mac_size_window)
16979 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16980
16981 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16982 (enum mac_menu_kind): Move enum to mactoolbox.c.
16983 (min_menu_id): Move variable to mactoolbox.c.
16984 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16985 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16986 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16987 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16988 [TARGET_API_MAC_CARBON]: Likewise.
16989 (XtPointer): Move typedef to macgui.h.
16990 (enum button_type): Move enum to macgui.h.
16991 (widget_value): Move typedef to macgui.h.
16992 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16993 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16994 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16995 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16996 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16997 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16998 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16999 (popup_activated_flag): Make variable non-static.
17000 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17001 (add_menu_item, fill_menu, dispose_menus):
17002 Move functions to mactoolbox.c.
17003 (restore_show_help_function, menu_target_item_handler)
17004 (install_menu_target_item_handler, mac_handle_dialog_event)
17005 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17006 [TARGET_API_MAC_CARBON]: Likewise.
17007 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17008 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17009 (find_and_call_menu_selection, name_is_separator): Make function
17010 non-static.
17011 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17012 to mactoolbox.c.
17013 (set_frame_menubar): Don't call install_menu_quit_handler.
17014 (menu_item_selection): New variable.
17015 (mac_menu_show): Use create_and_show_popup_menu.
17016 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17017 selection but set variable menu_item_selection. All uses changed.
17018 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17019 Call install_menu_quit_handler. Move to mactoolbox.c.
17020
17021 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17022 (Selection): Move typedef to macgui.h.
17023 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17024 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17025 Make variables non-static.
17026 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17027 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17028 Make functions non-static.
17029 (Vmac_service_selection) [MAC_OSX]: Likewise.
17030 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17031 (mac_valid_selection_target_p, mac_clear_selection)
17032 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17033 (mac_put_selection_value, mac_selection_has_target_p)
17034 (mac_get_selection_value, mac_get_selection_target_list)
17035 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17036 Move functions to mactoolbox.c.
17037 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17038 Likewise.
17039 (copy_scrap_flavor_data, mac_handle_service_event)
17040 (install_service_handler) [MAC_OSX]: Likewise.
17041 (syms_of_macselect) <Vmac_dnd_known_types>:
17042 Use mac_dnd_default_known_types.
17043
17044 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17045 Move to mactoolbox.c.
17046 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17047 (Fx_selection_owner_p): Add EXFUN.
17048 (install_window_handler, remove_window_handler, XSetWindowBackground):
17049 Remove externs.
17050 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17051 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17052 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17053 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17054 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17055 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17056 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17057 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17058 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17059 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17060 (mac_valid_selection_target_p, mac_clear_selection)
17061 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17062 (mac_put_selection_value, mac_selection_has_target_p)
17063 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17064 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17065 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17066 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17067 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17068 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17069 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17070 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17071 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17072
17073 * mactoolbox.c: New file.
17074
17075 2008-04-18 Jason Rumney <jasonr@gnu.org>
17076
17077 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17078
17079 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17080
17081 * character.c (Fmultibyte_char_to_unibyte):
17082 Return latin1 chars unchanged.
17083
17084 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17085 relocated if it points to `name'.
17086
17087 2008-04-17 Kenichi Handa <handa@m17n.org>
17088
17089 * data.c (Faset): Allow setting a multibyte character in an
17090 ASCII-only unibyte string.
17091
17092 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17093
17094 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17095
17096 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17097 done in config.h.
17098
17099 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
17100
17101 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17102 (Fchar_direction): Add usage in the docstring.
17103
17104 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
17105
17106 * keyboard.c (read_key_sequence): Remove always-true checks.
17107
17108 2008-04-14 Jason Rumney <jasonr@gnu.org>
17109
17110 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17111 compatibility struct, for better underline positioning.
17112
17113 2008-04-13 David Hansen <david.hansen@gmx.net>
17114
17115 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17116 string.
17117
17118 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17119
17120 * m/hp800.h (XUINT, XSET): Remove.
17121
17122 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
17123
17124 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17125 previous change.
17126
17127 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17128
17129 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17130 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17131
17132 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17133
17134 * keymap.h (map_keymap_canonical): Declare.
17135 * xmenu.c (single_keymap_panes): Use it.
17136
17137 2008-04-11 Glenn Morris <rgm@gnu.org>
17138
17139 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17140 set the target's value to that of the alias.
17141
17142 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17143
17144 * term.c (set_tty_color_mode): Left over typo.
17145
17146 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
17147
17148 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17149 only after check for file name handler functions. Signal, when
17150 native functionality is not supported.
17151 (syms_of_fileio): Declare it unconditionally.
17152
17153 2008-04-10 Jason Rumney <jasonr@gnu.org>
17154
17155 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17156 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17157
17158 * w32.c (logon_network_drive): Also logon to remote drives that
17159 are mapped to drive letters.
17160
17161 2008-04-10 Glenn Morris <rgm@gnu.org>
17162
17163 * xdisp.c (truncate-partial-width-windows): Doc fix.
17164
17165 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17166
17167 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17168 Move functions to minibuffer.el.
17169 (syms_of_fileio): Don't declare them.
17170
17171 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17172
17173 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17174 (syms_of_minibuf): Remove its initialization.
17175
17176 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17177
17178 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
17179
17180 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17181
17182 2008-04-09 Jason Rumney <jasonr@gnu.org>
17183
17184 * makefile.w32-in (distclean): Delete makefile too.
17185 (maintainer-clean): New target.
17186
17187 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17188
17189 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17190 for new font backend and composite cases.
17191
17192 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17193
17194 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17195 Most of the code moved to run_timers.
17196 (do_pending_atimers): Call run_timers.
17197 (run_timers): New function.
17198
17199 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17200 run atimers.
17201
17202 * process.c (wait_reading_process_output): The same as above.
17203
17204 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17205
17206 * minibuf.c (last_exact_completion): Remove variable.
17207 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17208 (complete_and_exit_1, complete_and_exit_2)
17209 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17210 (Fdisplay_completion_list, display_completion_list_1)
17211 (Fminibuffer_completion_help, Fself_insert_and_exit)
17212 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17213 minibuffer.el.
17214 (syms_of_minibuf): Remove corresponding initializations.
17215
17216 * keyboard.c (Qdeactivate_mark): New var.
17217 (command_loop_1): Use it to call `deactivate-mark'.
17218 (syms_of_keyboard): Initialize it.
17219
17220 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17221 to another frame.
17222 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17223 Don't call set_tty_color_mode.
17224 (store_frame_param): Reset previous_frame rather than call
17225 set_tty_color_mode.
17226 * term.c (set_tty_color_mode): Rewrite.
17227 * dispextern.h (set_tty_color_mode): New type.
17228 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17229
17230 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17231
17232 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17233 for generic chars, which do not exist any more in emacs-unicode.
17234
17235 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
17236
17237 * coding.c (detect_coding_emacs_mule)
17238 (Ffind_operation_coding_system): Fix typo.
17239
17240 2008-04-08 Jason Rumney <jasonr@gnu.org>
17241
17242 * w32uniscribe.c (SNAME): Extract only symbol name.
17243
17244 * w32font.h (struct w32_metric_cache): New struct.
17245 (w32font_info): Use it.
17246 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17247 (CACHE_BLOCKSIZE): New constants.
17248
17249 * w32font.c (Qja, Qko, Qzh): New symbols.
17250 (syms_of_w32font): Initialise them.
17251 (font_matches_spec): Use them to filter by language.
17252 (recompute_cached_metrics): Remove function.
17253 (compute_metrics, clear_cached_metrics): New functions.
17254 (w32font_encode_char): Use them to manage metric cache.
17255 (w32font_text_extents): Cache metrics for all glyphs on demand.
17256 Delay converting glyph indices to WORD until needed.
17257 (w32font_open_internal): Initialize metric cache to empty.
17258 (registry_to_w32_charset): Charset should always be a symbol.
17259 (fill_in_logfont, list_all_matching_fonts): Family should
17260 always be a symbol.
17261
17262 2008-04-06 Jason Rumney <jasonr@gnu.org>
17263
17264 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17265 Give up if glyph indices not supported. Use uniscribe obtained
17266 ABC widths for individual metrics. Map glyph clusters back to
17267 characters using fClusterStart flag. Return number of glyphs
17268 produced, not chars processed.
17269 (uniscribe_shape): Map char at FROM to current glyph.
17270
17271 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17272
17273 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17274 Use SetMenuItemHierarchicalMenu.
17275
17276 2008-04-05 Jason Rumney <jasonr@gnu.org>
17277
17278 * image.c (pbm_load): Allow color values up to 65535.
17279 Throw an error if max_color_idx is outside the supported range.
17280 Report an error when image size is invalid.
17281 Read two bytes at a time when raw images have max_color_idx above 255.
17282
17283 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17284
17285 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17286 append "CCL: Quitted" when the CCL program is quitted.
17287 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17288
17289 * ccl.h (struct ccl_program): New member quit_silently.
17290
17291 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
17292
17293 * search.c (compile_pattern_1): Treat non-nil and non-string of
17294 search-spaces-regexp as nil.
17295
17296 * minibuf.c (Fassoc_string): Tweak docstring.
17297
17298 2008-04-05 Eli Zaretskii <eliz@gnu.org>
17299
17300 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17301 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17302 2008-03-14 to force inode be positive.
17303
17304 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17305 _S_* ones, since we now use our own sys/stat.h.
17306 (stat, fstat): Don't mangle the inode number.
17307 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17308
17309 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17310
17311 * frame.h (struct frame): Give one more bit to `visible' since we use
17312 values larger than 1 to indicate obscured frames on ttys.
17313
17314 * keymap.c (Qkeymap_canonicalize): New var.
17315 (Fmap_keymap_internal): New fun.
17316 (describe_map): Use keymap-canonicalize.
17317
17318 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17319 (Fundo_boundary): Set them.
17320 (syms_of_undo): Initialize them.
17321 (record_point): Use them instead of last_point_position*.
17322 (last_undo_buffer): Change type.
17323
17324 2008-04-04 Jason Rumney <jasonr@gnu.org>
17325
17326 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17327 (recompute_cached_metrics): Don't set ascent and descent per char.
17328
17329 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17330 (uniscribe_check_otf): Add GC protection before consing.
17331 Rearrange loop for counting features.
17332
17333 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17334
17335 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17336 buffer with byte-size of source buffer.
17337
17338 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
17339
17340 * callint.c (Fcall_interactively): Handle temporary region even
17341 when shift-select-mode is off.
17342
17343 2008-04-03 Jason Rumney <jasonr@gnu.org>
17344
17345 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17346
17347 2008-04-03 Kenichi Handa <handa@m17n.org>
17348
17349 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17350 (CATEGORY_MASK_UTF_16): Likewise.
17351 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17352 binary file.
17353 (detect_coding): Add null-byte detection for a binary file.
17354 (detect_coding_system): Likewise.
17355
17356 2008-04-03 Jason Rumney <jasonr@gnu.org>
17357
17358 * w32uniscribe.c: New file.
17359
17360 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17361
17362 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17363
17364 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17365 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17366 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17367 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17368 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17369 (Qphonetic): New symbols.
17370 (syms_of_w32font): Initialize them.
17371 (font_supported_scripts): Use them.
17372 (w32font_list_family): List all charsets.
17373 (w32font_text_extents, recompute_cached_metrics): Fix metric
17374 calculations.
17375 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17376 Give opentype fonts their own format.
17377 (font_matches_spec): New arguments backend and logfont.
17378 Handle :otf spec for uniscribe backend.
17379 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17380 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17381
17382 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17383 font backend.
17384 (globals_of_w32fns): Initialize uniscribe font backend.
17385
17386 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17387 dependencies.
17388 (w32uniscribe.$(O)): New file to build.
17389 (FONT_OBJ): Include w32uniscribe.$(O).
17390 (LIBS): Add uniscribe libraries.
17391
17392 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17393
17394 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
17395
17396 * callint.c (Vshift_select_mode): New var.
17397 (Finteractive): Document new ^ spec.
17398 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17399 is present.
17400
17401 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17402 (command_loop_1): Avoid running the direct display versions of
17403 forward-char and backward-char if shift-selection may occur.
17404 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17405 shift-translation takes place.
17406
17407 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17408 avoid clobbering by define-minor-mode.
17409
17410 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17411 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17412
17413 * syntax.c (Fforward_word): Add ^ interactive spec.
17414
17415 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17416 (Fscroll_right): Add ^ interactive spec.
17417
17418 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17419
17420 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17421
17422 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17423
17424 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17425
17426 2008-03-31 Juri Linkov <juri@jurta.org>
17427
17428 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17429
17430 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17431
17432 * gtkutil.c (xg_set_geometry): Fix indentation.
17433 (xg_resize_outer_widget): Remove.
17434 (x_wm_size_hint_off): Fix indentation.
17435 (xg_frame_set_char_size): Call flush_and_sync after
17436 gtk_window_resize.
17437 (x_wm_set_size_hint): Pass NULL as geometry window to
17438 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17439 Add menu bar and tool bar height to base height.
17440 (xg_update_frame_menubar, free_frame_menubar)
17441 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17442 (update_frame_tool_bar, free_frame_tool_bar):
17443 Change xg_resize_outer_widget to xg_frame_set_char_size.
17444
17445 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
17446
17447 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17448 (Fdbus_call_method): New parameter TIMEOUT.
17449 (dbus-send-signal): Optimize UNGCPRO call.
17450
17451 2008-03-29 Juri Linkov <juri@jurta.org>
17452
17453 * window.c (Fdisplay_buffer): Move call to
17454 Vsplit_window_preferred_function out of conditions that check
17455 if window is eligible for vertical splitting.
17456 When Vsplit_window_preferred_function is non-nil, call it and use
17457 its non-nil return value as window. Otherwise, continue doing
17458 vertical splitting using Fsplit_window with arg horflag=nil.
17459 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17460 default value from `split-window' to nil.
17461
17462 2008-03-29 Juri Linkov <juri@jurta.org>
17463
17464 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17465 for interactive code letters 'b' and 'B'.
17466
17467 2008-03-29 Eli Zaretskii <eliz@gnu.org>
17468
17469 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17470 multibyte string.
17471
17472 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17473
17474 * keyboard.c (pending_funcalls): New var.
17475 (timer_check): Run it.
17476 (syms_of_keyboard): Initialize it.
17477 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17478 (Vdelete_terminal_functions): New vars.
17479 (syms_of_terminal): Initialize them.
17480 (Fdelete_terminal): Run delete-terminal-functions.
17481 * xdisp.c (safe_eval): Rewrite.
17482 (safe_call2): New fun.
17483 * frame.c (Qdelete_frame_functions): New var.
17484 (syms_of_frame): Initialize it.
17485 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17486 * lisp.h (safe_call2, pending_funcalls): Declare.
17487
17488 2008-03-28 Andreas Schwab <schwab@suse.de>
17489
17490 * indent.c (Fmove_to_column): Move declaration before statements.
17491
17492 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17493
17494 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17495 (struct frame): Use bit fields for boolean vars.
17496
17497 * process.c (server_accept_connection): Simplify naming.
17498 (emacs_get_tty_pgrp): Use SDATA.
17499
17500 * coding.c (decode_coding_object): Fix last change.
17501
17502 2008-03-27 Jason Rumney <jasonr@gnu.org>
17503
17504 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17505
17506 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17507
17508 * charset.c (Fdefine_charset_internal): Change the way of
17509 registering charsets in Vcharset_order_list.
17510 (syms_of_charset): Make the charset `eight-bit' supplementary.
17511
17512 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17513
17514 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17515 operations, to avoid having the difference between pointers
17516 overflow.
17517
17518 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17519
17520 * indent.c (check_display_width): New fun.
17521 (scan_for_column): Use it.
17522
17523 * data.c (syms_of_data): Mark most-positive-fixnum and
17524 most-negative-fixnum as constants.
17525
17526 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17527
17528 * indent.c (scan_for_column): Extract from current_column_1.
17529 Merge with the same code from Fmove_to_column.
17530 (current_column_1, Fmove_to_column): Use it.
17531
17532 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17533
17534 * keymap.c (map_keymap_internal): New fun.
17535 (map_keymap): Use it.
17536 (Fmap_keymap_internal): New fun.
17537 (Fmap_keymap): Remove left-out test from before make_save_value.
17538
17539 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17540
17541 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17542 Use XCAR/XCDR.
17543
17544 * process.h (struct Lisp_Process): Remove filter_multibyte.
17545 * process.c (QCfilter_multibyte): Remove.
17546 (setup_process_coding_systems): Don't use filter_multibyte.
17547 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17548 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17549 (Fset_process_filter_multibyte): Change the coding-system to
17550 approximate the previous behavior.
17551 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17552 coding-system.
17553
17554 * coding.c (decode_coding_object): When not decoding into a buffer,
17555 obey the coding system's preference of (uni|multi)byte.
17556
17557 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17558
17559 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17560 every char is changed and has a different byte-length.
17561 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17562 Fix int -> EMACS_INT.
17563
17564 2008-03-23 David Hansen <david.hansen@gmx.net>
17565
17566 * dbusbind.c (xd_read_message): Remove extra copying of message
17567 strings. Check for NULL `interface' or `member'.
17568
17569 2008-03-22 Eli Zaretskii <eliz@gnu.org>
17570
17571 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17572 cFileName a file name that includes `?' characters, use the 8+3
17573 alias in cAlternateFileName instead.
17574
17575 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17576
17577 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17578
17579 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17580
17581 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17582 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17583 work on current_buffer only instead (that was already the case
17584 for some of the code anyway).
17585 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17586 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17587 (SET_PT, SET_PT_BOTH): Adjust.
17588 * intervals.h (set_point, temp_set_point, set_point_both)
17589 (temp_set_point_both): Remove redundant declarations.
17590
17591 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17592
17593 * fileio.c (Finsert_file_contents):
17594 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17595 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17596 when buffer != current_buffer anyway.
17597
17598 2008-03-20 Andreas Schwab <schwab@suse.de>
17599
17600 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17601 as default.
17602
17603 2008-03-19 Jason Rumney <jasonr@gnu.org>
17604
17605 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17606 (syms_of_w32fns): Initialize them.
17607 (HOURGLASS_ID): New constant.
17608 (x_window_to_frame): Don't check hourglass_window.
17609 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17610 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17611 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17612 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17613 Only change the cursor if hourglass is not active.
17614 (Fx_create_frame): Initialize frame's current_cursor.
17615 (hourglass_atimer): Remove.
17616 (hourglass_started): New function.
17617 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17618 (show_hourglass): Adapt to w32, changing argument to frame.
17619
17620 * w32term.h (struct w32_output): Remove hourglass_window.
17621 Add current_cursor.
17622
17623 * eval.c (call_debugger, Fsignal):
17624 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17625 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17626 (Fexecute_extended_command, cancel_hourglass_unwind):
17627 * minibuf.c (read_minibuf):
17628 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17629
17630 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17631
17632 * window.c (run_funs): New fun.
17633 (run_window_configuration_change_hook): Use it to run the buffer-local
17634 and the global part of the hook.
17635
17636 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17637 (unwind_format_mode_line): Restore selected window.
17638 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17639
17640 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17641
17642 * editfns.c (Fchar_equal): Check they are valid characters.
17643
17644 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17645
17646 2008-03-17 Andreas Schwab <schwab@suse.de>
17647
17648 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17649 against a charset.
17650
17651 * lisp.h (Fbuffer_list): Declare.
17652
17653 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
17654
17655 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17656 handlebox_widget is != 0.
17657
17658 2008-03-16 Juri Linkov <juri@jurta.org>
17659
17660 * callint.c (Fcall_interactively): For interactive code letters
17661 'b' and 'B' put the buffer list into the list of default "future"
17662 values of the minibuffer.
17663
17664 2008-03-16 Andreas Schwab <schwab@suse.de>
17665
17666 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17667 modifiers.
17668
17669 * regex.c (re_match_2_internal): Correct matching of a charset
17670 against latin-1 characters.
17671
17672 2008-03-16 Kenichi Handa <handa@m17n.org>
17673
17674 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17675 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17676 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17677 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17678 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17679 CHAR_STRING_ADVANCE.
17680 (produce_chars): Fix for the case that the source and the
17681 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17682 instead of CHAR_STRING_ADVANCE.
17683 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17684 STRING_CHAR_ADVANCE.
17685
17686 2008-03-15 Andreas Schwab <schwab@suse.de>
17687
17688 * regex.c (re_match_2_internal): Correct matching of eight bit
17689 characters in unibyte strings.
17690
17691 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17692
17693 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17694 at end of range when it coincides with the end of the buffer.
17695
17696 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17697
17698 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17699
17700 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17701
17702 2008-03-14 Jason Rumney <jasonr@gnu.org>
17703
17704 * editfns.c (initial_tz): New variable.
17705 (syms_of_editfns): Initialize it.
17706 (Fset_time_zone_rule): Set it when first called.
17707 Use it when TZSTRING is nil.
17708
17709 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17710 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17711 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17712 (globals_of_w32fns): Initialize them.
17713 (compute_tip_xy): Use them to position tooltips.
17714
17715 2008-03-14 Glenn Morris <rgm@gnu.org>
17716
17717 * emacs.c (main): Revert previous change.
17718 (standard_args): Revert -internal-script back to -scriptload,
17719 and remove the long-option form.
17720
17721 2008-03-13 Glenn Morris <rgm@gnu.org>
17722
17723 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17724 Remove option -enable-font-backend.
17725
17726 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17727
17728 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17729
17730 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17731
17732 * xterm.c (x_connection_closed): For GTK: If this is the last
17733 terminal just exit without closing the display.
17734
17735 2008-03-11 Jason Rumney <jasonr@gnu.org>
17736
17737 * w32font.c (w32font_full_name): Use floor to round.
17738
17739 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17740
17741 * sound.c (alsa_configure): Declare vol at beginning of block.
17742
17743 * fontset.c (Ffontset_info): Remove extra semicolon.
17744
17745 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17746
17747 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17748 size of resulting string.
17749
17750 2008-03-10 Jason Rumney <jasonr@gnu.org>
17751
17752 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17753
17754 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17755
17756 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17757 Don't pretend as if characters with display property haven't been
17758 consumed for string-replacing-string case.
17759
17760 2008-03-08 Kim F. Storm <storm@cua.dk>
17761
17762 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17763 (get_next_display_element, next_element_from_string)
17764 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17765
17766 2008-03-08 Andreas Schwab <schwab@suse.de>
17767
17768 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17769
17770 2008-03-06 Jason Rumney <jasonr@gnu.org>
17771
17772 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17773 when charset not specified. Only translate ANSI to unicode when
17774 font_type is truetype.
17775 (w32font_coverage_ok): New function.
17776 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17777
17778 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17779
17780 * lread.c (Fread_char): Resolve modifiers.
17781 (Fread_char_exclusive): Likewise.
17782
17783 * character.c (char_resolve_modifier_mask): New function.
17784 (char_string): Use char_resolve_modifier_mask.
17785 (Fchar_resolve_modifiers): New function.
17786 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17787 function.
17788
17789 2008-03-04 Jason Rumney <jasonr@gnu.org>
17790
17791 * makefile.w32-in: Always include w32font.c in the build.
17792 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17793
17794 2008-03-04 Andreas Schwab <schwab@suse.de>
17795
17796 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17797 (versionclean): Likewise.
17798
17799 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17800
17801 * .cvsignore: Add oo.
17802
17803 2008-03-03 Andreas Schwab <schwab@suse.de>
17804
17805 * coding.c (decode_coding_object): Inhibit gap shrinking while
17806 decoding in place.
17807
17808 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17809
17810 * w32term.c: Remove unused include "gnu.h".
17811 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17812
17813 * gnu.h: Rename to ...
17814 * emacs-icon.h: ... this.
17815 * xterm.c: Use emacs-icon.h instead of gnu.h.
17816 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17817
17818 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17819
17820 * w32font.c: Include math.h.
17821
17822 2008-03-03 Jason Rumney <jasonr@gnu.org>
17823
17824 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17825 Compute options separately.
17826 (w32font_open_internal): Set glyph_idx before caching metrics.
17827
17828 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17829 Define if system headers don't.
17830 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17831 (w32font_encode_char): Don't declare here.
17832
17833 * w32font.c (Quniscribe, QCformat): New symbols.
17834 (syms_of_w32font): Define them.
17835 (w32font_has_char): Indicate uncertainty.
17836 (w32font_encode_char): Encode as glyph point. Make static.
17837 (recompute_cached_metrics): New function.
17838 (w32font_open_internal): Use it. Set font to use glyph points
17839 initially. Set format based on type of font.
17840 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17841 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17842 on it. Set format based on information available here.
17843 (add_font_entity_to_list): Identify backend based on opentype_only.
17844
17845 2008-03-02 Andreas Schwab <schwab@suse.de>
17846
17847 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17848
17849 * coding.c (decode_coding_big5, produce_chars):
17850 Fix typos in last change.
17851
17852 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17853
17854 * gnu.h: New icon.
17855
17856 2008-03-02 Kenichi Handa <handa@m17n.org>
17857
17858 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17859 `dos', don't decode '\r' if that is the last in the source.
17860 (decode_coding_utf_16, decode_coding_emacs_mule)
17861 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17862 (decode_coding_raw_text, decode_coding_charset): Likewise.
17863 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17864
17865 2008-03-01 Jason Rumney <jasonr@gnu.org>
17866
17867 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17868
17869 2008-03-01 Kim F. Storm <storm@cua.dk>
17870
17871 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17872
17873 2008-03-01 Jason Rumney <jasonr@gnu.org>
17874
17875 * w32font.c (w32font_full_name): New function.
17876 (w32font_open_internal): Use it.
17877
17878 2008-03-01 Kim F. Storm <storm@cua.dk>
17879
17880 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17881
17882 2008-03-01 Jason Rumney <jasonr@gnu.org>
17883
17884 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17885
17886 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17887
17888 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17889 xg_frame_resized when the event is for the edit widget.
17890
17891 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17892
17893 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17894 set_char_size.
17895 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17896 operations on widgets here. Just set frame size if needed.
17897 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17898 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17899 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17900 the whole frame.
17901 (xg_create_tool_bar): Move attachment of the tool bar to
17902 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17903 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17904
17905 2008-03-01 Jason Rumney <jasonr@gnu.org>
17906
17907 * w32fns.c (w32_msg_pump): Disable debug code.
17908
17909 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17910
17911 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17912
17913 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17914
17915 * xdisp.c (next_overlay_string): Don't set
17916 overlay_strings_at_end_processed_p if we're currently reading from
17917 a display string.
17918
17919 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17920
17921 * xdisp.c (get_overlay_strings_1): Fix typo.
17922
17923 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17924
17925 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17926
17927 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17928
17929 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17930
17931 * xdisp.c (display_mode_element): Cancel the previous change.
17932 (decode_mode_spec): Likewise.
17933 (handle_auto_composed_prop): Don't make composition if it->string
17934 is a string.
17935
17936 2008-02-27 Kim F. Storm <storm@cua.dk>
17937
17938 * lisp.h (GLYPH): Change type from int to struct with separate char
17939 and face_id members.
17940 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17941 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17942 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17943 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17944 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17945 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17946 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17947 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17948 handle new Lisp glyph code encoding, either an integer or a cons.
17949
17950 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17951 (GLYPH_ALIAS): Delete.
17952 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17953 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17954 (GLYPH_FROM_CHAR): Replace macro by ...
17955 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17956
17957 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17958 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17959 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17960 (GLYPH_INVALID_P): New macro.
17961 (spec_glyph_lookup_face): Update prototype.
17962
17963 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17964 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17965 new glyph code encoding.
17966 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17967 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17968
17969 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17970 Adapt to new glyph type and new glyph code encoding.
17971
17972 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17973
17974 * indent.c (current_column, current_column_1, Fmove_to_column)
17975 (compute_motion): Adapt to new glyph code encoding.
17976
17977 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17978
17979 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
17980
17981 * process.c (wait_reading_process_output): Check for window
17982 changes caused by timers.
17983 Suggested by Johan Bockgård.
17984
17985 2008-02-27 Glenn Morris <rgm@gnu.org>
17986
17987 * emacs.c (USAGE1): Add `--disable-font-backend'.
17988
17989 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17990
17991 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17992 is made to the buffer.
17993
17994 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17995
17996 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17997 (face_at_string_position):
17998 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17999 (face_at_string_position):
18000 * xdisp.c (display_string, next_overlay_change):
18001 * buffer.h (overlays_at):
18002 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18003 Update callers.
18004
18005 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
18006
18007 * editfns.c (Fformat): Doc fix.
18008
18009 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
18010
18011 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18012 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18013 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18014
18015 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18016
18017 * buffer.c (Fbuffer_swap_text): New function.
18018 (syms_of_buffer): Defsubr it.
18019
18020 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
18021
18022 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18023
18024 2008-02-25 Jason Rumney <jasonr@gnu.org>
18025
18026 * w32font.c (w32font_draw): Draw one character at a time when padding.
18027
18028 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18029
18030 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18031 Handle a nil arg. Use run_window_configuration_change_hook.
18032 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18033 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18034 Use run_window_configuration_change_hook.
18035
18036 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18037
18038 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18039 1-pixel width.
18040
18041 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18042
18043 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18044 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18045 if the glyph in the font is zero pixel with.
18046
18047 * dispextern.h (struct glyph_string): New member padding_p.
18048
18049 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18050
18051 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18052
18053 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18054
18055 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18056
18057 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18058
18059 2008-02-25 Jason Rumney <jasonr@gnu.org>
18060
18061 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18062
18063 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18064
18065 Allow fine-grained image-cache flushing.
18066 * dispextern.h (struct image): Add `dependencies' field.
18067 (clear_image_caches): Change arg to Lisp_Object.
18068 * image.c (make_image): Initialize `dependencies' field.
18069 (clear_image_cache): Change arg to allow fine-grained flushing.
18070 Perform the flush even if image-cache-eviction-delay is nil.
18071 (clear_image_caches): Change arg to Lisp_Object.
18072 (Fclear_image_cache): Expand meaning of the argument.
18073 (mark_image): Mark `dependencies' field.
18074 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18075 (lface_hash): Use XHASH rather than XFASTINT.
18076 (face_at_buffer_position): Fix int -> EMACS_INT position.
18077 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18078 (select_frame_for_redisplay): Remove code duplication.
18079 (redisplay_internal): Adapt arg to call to clear_image_caches.
18080
18081 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18082
18083 * s/vms4-0.h:
18084 * s/vms4-2.h:
18085 * s/vms4-4.h:
18086 * s/vms5-5.h: Remove, unused.
18087
18088 * s/irix5-2.h:
18089 * s/irix6-0.h:
18090 * s/riscos5.h:
18091 * s/mach-bsd4-3.h:
18092 * m/mips4.h: Remove files for obsolete systems.
18093
18094 * Makefile.in:
18095 * filelock.c:
18096 * unexmips.c:
18097 * m/hp9000s300.h:
18098 * m/iris4d.h:
18099 * s/aix3-1.h:
18100 * s/hpux.h:
18101 * s/msdos.h:
18102 * s/usg5-0.h:
18103 * s/usg5-2-2.h:
18104 * s/usg5-2.h:
18105 * s/usg5-3.h: Remove references to obsolete variables.
18106
18107 * s/irix5-0.h: Remove, move all the contents ...
18108 * s/irix6-5.h: ... here. Simplify.
18109 * config.in: Regenerate.
18110
18111 2008-02-24 Jason Rumney <jasonr@gnu.org>
18112
18113 * w32term.c (x_draw_glyph_string_background): Clear the background
18114 manually when cleartype is in use.
18115 (x_draw_glyph_string_foreground): Draw text transparently when
18116 cleartype is in use.
18117
18118 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18119 a font into it unless we have to.
18120
18121 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18124 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
18125
18126 2008-02-18 Jason Rumney <jasonr@gnu.org>
18127
18128 * w32fns.c (Fw32_shell_execute): Encode parameters.
18129
18130 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18131
18132 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18133
18134 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
18135
18136 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18137
18138 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18139
18140 * xterm.c (x_set_offset): Don't change the gravity if
18141 CHANGE_GRAVITY is -1.
18142
18143 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
18144
18145 * fileio.c (auto_save_error_occurred): New var.
18146 (auto_save_error): Set it.
18147 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18148 error occurred.
18149
18150 2008-02-23 Eli Zaretskii <eliz@gnu.org>
18151
18152 * w32.c (globals_of_w32): Add initializations for
18153 g_b_init_get_sid_sub_authority and
18154 g_b_init_get_sid_sub_authority_count.
18155
18156 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18157
18158 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18159 (font_parse_xlfd): Use them for sanity check.
18160 (Finternal_set_font_style_table): Make sure the table is bijective.
18161
18162 Consolidate the image_cache to the terminal struct.
18163 * termhooks.h (P_): Remove redundant def.
18164 (struct terminal): New field `image_cache'.
18165 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18166 of FRAME_X_IMAGE_CACHE.
18167 * xterm.h (struct x_display_info): Remove image_cache field.
18168 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18169 * w32term.h (struct w32_display_info): Remove image_cache field.
18170 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18171 * macterm.h (struct mac_display_info): Remove image_cache field.
18172 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18173 * xterm.c (x_term_init):
18174 * w32term.c (w32_term_init):
18175 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18176 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18177 Remove declarations.
18178 (clear_image_caches, mark_image_cache): New declarations.
18179 * xfaces.c (clear_face_cache):
18180 * xdisp.c (redisplay_internal): Use clear_image_caches.
18181 * image.c (clear_image_cache): Don't check that a frame is on
18182 a window-system before checking if it shares the same cache.
18183 (clear_image_caches): New function.
18184 (Fclear_image_cache): Use it.
18185 (mark_image): Move from allo.c.
18186 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18187 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18188 (mark_object): Don't call mark_image_cache for frames.
18189 (mark_terminals): Call mark_image_cache.
18190
18191 * lisp.h (Fdelete_terminal): Declare.
18192
18193 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18194 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18195 wrong_type_argument.
18196
18197 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18198
18199 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18200 malayalam.el, and tamil.el. Add sinhala.el.
18201
18202 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18203
18204 * xterm.c (x_connection_closed): Consolidate identical tests.
18205 (x_delete_terminal): Don't crash if called via x_connection_closed.
18206
18207 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18208
18209 * xdisp.c (decode_mode_spec): New arg string.
18210 (display_mode_element): Adjust for the above change.
18211
18212 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18213
18214 * callint.c (Fcall_interactively): Use AREF.
18215
18216 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18217
18218 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18219
18220 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18221
18222 * xfns.c (Fx_show_tip): Set string to " " if empty.
18223
18224 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18225
18226 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18227 with Qt.
18228
18229 2008-02-17 Kenichi Handa <handa@m17n.org>
18230
18231 * ftfont.c (ftfont_shape): Return Lispy number.
18232
18233 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18234 for GCs.
18235 (Finternal_set_font_selection_order): Call font_update_sort_order
18236 only when enable_font_backend is set.
18237 (realize_x_face): Set face->font_info to that of default face only
18238 when enable_font_backend is set.
18239
18240 * xdisp.c (handle_composition_prop): Set it->c to the fist
18241 character of the composed region.
18242 (fill_composite_glyph_string): Set base_face->font_info to
18243 s->font_info. Get a face for ascii from base_face->ascii_face.
18244 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18245 with a face already decided.
18246 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18247 non-negative.
18248 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18249 call font_prepare_composition unconditionally.
18250
18251 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18252
18253 * xterm.h (struct x_display_info): New member font.
18254
18255 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18256 (x_set_mouse_face_gc, x_new_font): Likewise.
18257 (x_term_init): Setup display_info->font.
18258 (x_delete_terminal): Free display_info->font.
18259
18260 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18261
18262 * ftxfont.c (ftxfont_default_fid): Delete it.
18263 (ftxfont_open): Set xfont->fid to 0.
18264 (ftxfont_end_for_frame): Clear data specific to the frame and the
18265 font-driver.
18266
18267 * xftfont.c (xftfont_default_fid): Delete it.
18268 (xftfont_open): Set xfont->fid to 0.
18269
18270 * fontset.c (FONTSET_OBJLIST): New macro.
18271 (fontset_find_font): Update font-object list of the fontset.
18272 (free_realized_fontset): New function.
18273 (free_face_fontset): Call free_realized_fontset.
18274 (Ffont_info): Call font_close_object only when enable_font_backend
18275 is set.
18276
18277 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18278 [HAVE_NTGUI]: Include w32term.h.
18279 [MAC_OS]: Include macterm.ch.
18280 (font_otf_ValueRecord): Use make_number.
18281 (font_finish_cache): Fix handling of reference count.
18282 (font_clear_cache): Update num_fonts.
18283 (font_open_entity): Update smallest_char_width and
18284 smallest_font_height of the frame.
18285 (font_close_object): Update num_fonts.
18286 (Fclear_font_cache): Fix finding the target cache data.
18287
18288 2008-02-16 Glenn Morris <rgm@gnu.org>
18289
18290 * fontset.c (Finternal_char_font): Fix compilation warning.
18291
18292 2008-02-16 Eli Zaretskii <eliz@gnu.org>
18293
18294 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18295 instead of char arrays. Enlarge the size of array passed to
18296 get_token_information.
18297
18298 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18299 warnings.
18300
18301 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18302
18303 * .gdbinit: Don't set `args', it breaks gdb --args.
18304
18305 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18306
18307 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18308 within a narrowed buffer.
18309
18310 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18311
18312 * coding.c (decode_coding_object, encode_coding_object):
18313 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18314
18315 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18316
18317 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18318 hardcoding 1.
18319 (detect_coding_system):
18320 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18321 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18322 * insdel.c (insert_from_gap):
18323 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18324 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18325 (string_to_multibyte):
18326 * character.c (chars_in_text, multibyte_chars_in_text):
18327 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18328
18329 * character.h (FETCH_STRING_CHAR_ADVANCE)
18330 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18331 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18332 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18333
18334 * casefiddle.c (casify_region): Only call after-change and composition
18335 functions on the part of the region that was changed.
18336
18337 * keyboard.c (read_avail_input):
18338 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18339
18340 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18341
18342 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18343 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18344
18345 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
18346
18347 * w32menu.c (push_submenu_start, push_submenu_end)
18348 (push_left_right_boundary, push_menu_pane, push_menu_item):
18349 * keyboard.c (read_key_sequence): Don't pass args with side effects
18350 to AREF, it fails when compiling with -DENABLE_CHECKING.
18351
18352 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18353
18354 * Makefile.in (${lispsource}international/charprop.el):
18355 Delete this target.
18356
18357 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18358 emacs-unicode-2.
18359
18360 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18361
18362 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18363
18364 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18365
18366 * frame.c (Qnoelisp): New symbol.
18367 (syms_of_frame): Initialize it.
18368 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18369 harmless Elisp code, from a strong `force' from x_connection_closed.
18370 * frame.h (Qnoelisp): Declare.
18371 * xterm.c (x_connection_closed): Pass `noelisp'.
18372
18373 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18374 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18375 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18376 rather than `int' for the type of `type'.
18377
18378 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18379
18380 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18381
18382 * Makefile.in (GNUC): Remove support for gcc-1.x.
18383
18384 2008-02-10 Richard Stallman <rms@gnu.org>
18385
18386 * lisp.h (ASET): Use AREF, not ASLOT.
18387
18388 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18389
18390 * lisp.h (ASET): Check bounds.
18391
18392 2008-02-10 Glenn Morris <rgm@gnu.org>
18393
18394 * buffer.c (mode-name): Doc fix.
18395
18396 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18397
18398 * Makefile.in:
18399 * emacs.c:
18400 * gmalloc.c:
18401 * keyboard.c:
18402 * lisp.h:
18403 * m/ibm370aix.h:
18404 * process.c:
18405 * regex.c:
18406 * s/hpux.h:
18407 * sysdep.c:
18408 * sysselect.h:
18409 * systty.h:
18410 * unexec.c:
18411 * w32term.c:
18412 * xsmfns.c:
18413 * xterm.c: Remove code that deals with obsolete variables.
18414
18415 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18416
18417 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18418 nothing else needs it anymore.
18419
18420 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18421
18422 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18423 instead of unibyte_char_to_multibyte.
18424
18425 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18426
18427 * s/gnu-linux.h: Remove commented out code.
18428
18429 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18430
18431 * Makefile.in: Update what RMS says about using autoconf.
18432 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18433 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18434 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18435 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18436
18437 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18438
18439 * keymap.c (Fkey_description): Move side effect outside of macro call.
18440
18441 * xfaces.c (Finternal_make_lisp_face):
18442 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18443
18444 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18445 (syms_of_fontset): Use ASET.
18446
18447 * fns.c (concat): Move side effect outside of macro call.
18448 (hash_clear): Use ASET.
18449
18450 2008-02-08 Richard Stallman <rms@gnu.org>
18451
18452 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18453 If FORCE, and frame has a surrogate minibuffer for another frame,
18454 delete the other frame first.
18455
18456 2008-02-07 Timo Savola <timo.savola@iki.fi>
18457
18458 * xterm.c (x_detect_focus_change): Handle embed client message.
18459 (handle_one_xevent): Ditto.
18460 (handle_one_xevent): If embedded and we get a button press/release,
18461 request focus.
18462 (xembed_set_info, xembed_send_message): New functions.
18463 (x_make_frame_visible): Call xembed_set_info if embedded.
18464 (x_make_frame_invisible): Call xembed_set_info if embedded.
18465 (x_term_init): Initialize Xatom_XEMBED.
18466 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18467 (x_iconify_frame): Ditto.
18468
18469 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18470 (enum xembed_info, enum xembed_message, enum xembed_focus)
18471 (enum xembed_modifier, enum xembed_accelerator): New.
18472 (xembed_set_info, xembed_send_message): Declare.
18473 (FRAME_X_EMBEDDED_P): New.
18474
18475 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18476 gtk_plug_new.
18477
18478 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18479 window ID of a frame.
18480 (x_window): Reparent frame if embedded.
18481 (Fx_create_frame): Don't set border width if embedded.
18482
18483 * emacs.c (USAGE3): Add --parent-id.
18484 (standard_args): Ditto.
18485
18486 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18487
18488 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18489
18490 2008-02-07 Jim Meyering <meyering@redhat.com>
18491
18492 Use "do...while (0)", not "if (1)...else" in macro definitions.
18493 The latter provokes a warning from gcc about the empty else, when
18494 followed by ";". Also, without that trailing semicolon, it would
18495 silently swallow up any following statement.
18496 * syntax.h (SETUP_SYNTAX_TABLE)
18497 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18498 * buffer.h (DECODE_POSITION): Likewise.
18499 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18500 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18501 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18502 (FETCH_CHAR_ADVANCE): Likewise.
18503 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18504
18505 2008-02-07 Jim Meyering <meyering@redhat.com>
18506
18507 * lread.c [lint]: Don't include <sys/inode.h>.
18508
18509 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18510
18511 * xselect.c (x_handle_dnd_message):
18512 * xmenu.c (digest_single_submenu, xmenu_show):
18513 * xdisp.c (with_echo_area_buffer_unwind_data)
18514 (format_mode_line_unwind_data, unwind_format_mode_line)
18515 (display_menu_bar):
18516 * eval.c (Ffetch_bytecode):
18517 * doc.c (store_function_docstring):
18518 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18519 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18520 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18521
18522 2008-02-07 Kenichi Handa <handa@m17n.org>
18523
18524 * ftxfont.c (ftxfont_open): Don't set
18525 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18526
18527 * ftfont.c (ftfont_open): Fix previous change.
18528
18529 2008-02-06 Jason Rumney <jasonr@gnu.org>
18530
18531 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18532 Use cached metrics for ASCII characters.
18533 (w32font_open_internal): Don't set font's owning_frame.
18534 Cache metrics for ASCII characters.
18535
18536 * w32font.h (struct w32font_info): Add ascii_metrics.
18537 Remove owning_frame.
18538
18539 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18540
18541 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18542 to negative value.
18543
18544 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18545
18546 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18547
18548 * charset.c (syms_of_charset): Set QCtest and Qeq.
18549
18550 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18551
18552 * process.c (Fstart_process):
18553 * callproc.c (Fcall_process): Handle the case where
18554 Funhandled_file_name_directory returns nil.
18555
18556 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18557 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18558 * font.c (check_gstring): Use them and AREF to access the vector before
18559 we know it's really a gstring.
18560 (Ffont_shape_text): Fix typo.
18561 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
18562
18563 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18564 Declare.
18565
18566 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18567
18568 2008-02-05 Jason Rumney <jasonr@gnu.org>
18569
18570 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18571 Set smallest_font_height and smallest_char_width in display info.
18572
18573 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18574
18575 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18576
18577 2008-02-05 Miles Bader <miles@gnu.org>
18578
18579 * xfaces.c (get_lface_attributes, merge_named_face)
18580 (lookup_named_face, lookup_derived_face, realize_named_face):
18581 Revert 2008-02-01 change by cyd@stupidchicken.com.
18582
18583 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18584
18585 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18586 fallback fonts.
18587 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18588
18589 2008-02-04 Jason Rumney <jasonr@gnu.org>
18590
18591 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18592 set full_name.
18593 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18594
18595 2008-02-03 Jason Rumney <jasonr@gnu.org>
18596
18597 * makefile.w32-in (OBJ1): Include font.o here.
18598 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18599
18600 2008-02-02 Jason Rumney <jasonr@gnu.org>
18601
18602 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18603
18604 2008-02-01 Jason Rumney <jasonr@gnu.org>
18605
18606 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18607
18608 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18609
18610 2008-02-01 Andreas Schwab <schwab@suse.de>
18611
18612 * Makefile.in (shortlisp, lisp): Update for rename of
18613 ../lisp/language/myanmar.el.
18614
18615 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
18616
18617 * xfaces.c (get_lface_attributes): Delete function.
18618 (merge_named_face, lookup_named_face, lookup_derived_face)
18619 (realize_named_face): Call lface_from_face_name directly, and use
18620 the fact that merge_face_vectors does not alter its FROM argument.
18621
18622 2008-02-01 Jason Rumney <jasonr@gnu.org>
18623
18624 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18625 input in the default locale. Handle non-Unicode multibyte input.
18626
18627 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18628
18629 * fontset.c (reorder_font_vector): Exclude nil elements from the
18630 font group. Don't try multiple fonts.
18631 (fontset_font): Adjust for the above change.
18632 (Finternal_char_font): Return nil if the found font doesn't
18633 contain the character ch.
18634
18635 * Makefile.in (lisp, shortlisp): Add cham.el.
18636
18637 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18638
18639 * font.h (FONTP): Make it return 1 also for a font-object.
18640
18641 * .gdbinit (xfontset): New function.
18642
18643 * font.c (font_find_for_lface): Check if the character C is
18644 supported or not only for the first font.
18645
18646 * fontset.c (reorder_font_vector): Fix typo.
18647 (fontset_find_font): Don't add a font-spec specifying a script.
18648 Use 0 (not Qt) for the indication of empty font-group. Change the
18649 format of RFONT-DEF. Return Qt if no font in the font-group
18650 support the character.
18651 (fontset_font): Adjust for the above change. If no font was
18652 found the character, remember that.
18653 (face_for_char): Adjust for the change of RFONT-DEF.
18654 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18655 no font for the target.
18656 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18657
18658 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18659
18660 * font.c (font_load_for_face): Handle the case that the font in
18661 face->lface is a string.
18662
18663 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18664
18665 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18666
18667 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18668
18669 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18670 Fix previous change. If the frame is not on a window system,
18671 signal an error.
18672
18673 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18674
18675 * coding.c (decode_coding_object, encode_coding_object): Adjust
18676 marker positions after conversion.
18677
18678 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18679
18680 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18681
18682 * font.c (font_find_for_lface): Fix the handling of the return
18683 value of font_has_char.
18684 (Ffont_shape_text): Fix previous change.
18685
18686 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18687 (fontset_ref_and_range): Delete it.
18688 (fontset_find_font): Call char_table_ref_and_range instead of
18689 FONTSET_REF_AND_RANGE.
18690 (make_fontset): Don't setup font groups of Latin here.
18691 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18692 (new_fontset_from_font): Make the specified font the default for
18693 all Latin characters.
18694
18695 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18696
18697 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18698 is on a window system before accessing the fontset of the frame.
18699
18700 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18701
18702 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18703
18704 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18705 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18706
18707 * font.c (Ffont_shape_text): If the font driver doesn't have a
18708 shaper function, make zero-width glyphs to have at least one-pixel
18709 width. Fix setting of `to' field of glyphs.
18710
18711 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18712
18713 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18714 glyphs.
18715
18716 * font.h (struct font_driver): Improve docstring of member `shape'.
18717
18718 2008-02-01 Kenichi Handa <handa@m17n.org>
18719
18720 * composite.c (syms_of_composite): Fix docstring of
18721 auto-composition-function.
18722
18723 * font.h (LGLYPH_SIZE): New macro.
18724
18725 * font.c (Ffont_fill_gstring): Stop filling when a character not
18726 supported by the font is found.
18727 (Ffont_shape_text): When a shape callback function returns nil,
18728 try at most two more times with larger gstring.
18729 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18730
18731 * xdisp.c (handle_auto_composed_prop): Change the argument to
18732 auto-composition-function.
18733
18734 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18735 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18736 Lispy glyph and store it in the lgstring.
18737
18738 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18739
18740 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18741
18742 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18743
18744 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18745
18746 * fontset.c (Vfont_encoding_charset_alist): New variable.
18747 (syms_of_fontset): DEFVAR it.
18748 (reorder_font_vector, fontset_find_font): Optimize for the case of
18749 no need of reordering.
18750 (face_for_char): Map the charset property by
18751 Vfont_encoding_charset_alist.
18752
18753 2008-02-01 Jason Rumney <jasonr@gnu.org>
18754
18755 * w32font.c (logfonts_match): Don't check adstyle here.
18756 (font_matches_spec): Check here against physical font instead.
18757 (add_font_entity_to_list): Avoid some substitutions.
18758
18759 * font.c (font_parse_fcname): Default weight and slant to normal.
18760 (font_score): Prefer normal fonts if weight or slant unspecified.
18761 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18762 match freetype scores.
18763
18764 2008-02-01 Jason Rumney <jasonr@gnu.org>
18765
18766 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18767 font, as it may have been deleted.
18768 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18769 most common hyphenless variation.
18770 (logfonts_match): Check generic family.
18771 (font_matches_spec): Don't check generic family here.
18772 (fill_in_logfont): Set generic family based on adstyle.
18773
18774 * w32font.h (w32font_get_cache): Update declaration.
18775
18776 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18777
18778 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18779
18780 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18781 If none of the new drivers are available, call font_update_drivers
18782 with the old drivers.
18783
18784 * w32font.c (w32font_get_cache): Adjust the argument type.
18785
18786 * xfont.c (xfont_get_cache): Adjust the argument type.
18787
18788 * font.h (struct font_driver): Change argument type of get_cache.
18789
18790 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18791
18792 * font.c (Ffont_get): Fix arguments to Fassoc.
18793 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18794 (font_clear_cache): New function.
18795 (font_list_entities, font_matching_entity): Use font_get_cache.
18796 (font_update_drivers): Call font_clear_cache when finishing a driver.
18797
18798 * fontset.c (fontset_find_font): Fix previous change.
18799
18800 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18801
18802 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18803 dpyinfo->font_table.
18804 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18805 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18806
18807 * font.c (font_at): Handle the case that the arg C is negative.
18808 Handle the unibyte case.
18809 (Ffont_at): Call font_at with the arg C -1.
18810
18811 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18812 the position here, and call font_at with the arg C -1.
18813 Don't check the range of the existing composition at the point.
18814
18815 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18816
18817 * fontset.c (fontset_add): New args charset_id and family.
18818 Change caller.
18819 (load_font_get_repertory, fontset_find_font): Assume that
18820 font_spec is always a font-spec object.
18821 (Fset_fontset_font): Always store a font-spec object in a fontset.
18822
18823 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18824 instead of get_property_and_range.
18825
18826 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18827
18828 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18829 (xftfont_open): Don't keep locking face.
18830 (xftfont_close): Don't unlock face.
18831 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18832
18833 * fontset.c (fontset_find_font): Don't prefer a font of
18834 supplementary charset.
18835
18836 2008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18839 script, langsys_tag to langsys, new member script.
18840 (OTF_TAG_STR): Terminate by '\0'.
18841 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18842 listing to the script specified in that property. Fix arg to
18843 OTF_check_features.
18844
18845 2008-02-01 Jason Rumney <jasonr@gnu.org>
18846
18847 * w32font.h: New file.
18848
18849 * w32font.c: Include it.
18850 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18851 (w32font_open): Set owning_frame.
18852 (w32font_text_extents): Use owning_frame.
18853 (struct font_callback_data): Add opentype_only field.
18854 (add_font_entity_to_list): Use it to filter fonts.
18855 Don't check against full name.
18856 (w32font_list_internal): New function.
18857 (w32font_list): Use it.
18858 (w32font_match_internal): New function.
18859 (w32font_match): Use it.
18860 (w32font_open_internal): New function.
18861 (w32font_open): Use it.
18862 (w32font_get_cache, w32font_close, w32font_has_char)
18863 (w32font_encode_char, w32font_text_extents, w32font_draw):
18864 Make non-static.
18865
18866 * makefile.w32-in (w32font.o): Depend on w32font.h.
18867
18868 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18869
18870 * charset.c (Fdefine_charset_internal): Record a supplementary
18871 charset at the tail of Vcharset_order_list.
18872
18873 * font.c (Ffont_shape_text): Fix the return value.
18874
18875 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18876
18877 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18878
18879 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18880
18881 * ftfont.c (struct OpenTypeSpec): New struct.
18882 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18883 (ftfont_get_open_type_spec): New function.
18884 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18885
18886 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18887
18888 2008-02-01 Jason Rumney <jasonr@gnu.org>
18889
18890 * w32font.c (add_font_entity_to_list): Compare only the beginning
18891 of full name.
18892
18893 2008-02-01 Kenichi Handa <handa@m17n.org>
18894
18895 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18896 Never return HANDLED_RECOMPUTE_PROPS.
18897
18898 2008-02-01 Kenichi Handa <handa@m17n.org>
18899
18900 * font.c (font_gstring_produce): Delete it.
18901
18902 * composite.h (COMPOSITION_METHOD):
18903 Handle COMPOSITION_WITH_GLYPH_STRING.
18904
18905 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18906
18907 * xfont.c (Qx): Delete.
18908 (syms_of_xfont): Don't initialize Qx.
18909
18910 * composite.h (enum composition_method):
18911 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18912
18913 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18914
18915 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18916 (choose_face_font): Accept new form of font-spec.
18917
18918 * frame.h (font_driver_list): Declare it unconditionally.
18919 (struct frame): Define members font_driver_list and font_data_list
18920 unconditionally.
18921
18922 * fontset.c: Include "font.h" unconditionally.
18923 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18924 (Fset_fontset_font): Accept a font-spec object.
18925
18926 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18927 PIXEL_SIZE part a wild card.
18928
18929 * dispextern.h (struct glyph_string): Define members clip and
18930 num_clips unconditionally.
18931 (struct face): Define members font_info and extra unconditionally.
18932
18933 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18934 ftfont_info only when HAVE_LIBOTF is defined.
18935
18936 2008-02-01 Andreas Schwab <schwab@suse.de>
18937
18938 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18939 and end.
18940
18941 2008-02-01 Jason Rumney <jasonr@gnu.org>
18942
18943 * w32font.c (w32font_driver): Add new fields.
18944
18945 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18946
18947 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18948 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18949 (LIBES): Add @M17N_FLT_CFLAGS@.
18950
18951 * composite.c (compose_text): Don't treat the new style
18952 composition specially.
18953
18954 * emacs.c (main): Call syms_of_font unconditionally.
18955
18956 * font.h (FONT_ENTITY_NOT_LOADABLE)
18957 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18958 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18959 (struct font_driver): New member shape.
18960 (font_registry_charsets): Extern it.
18961 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18962 (font_otf_capability, font_drive_otf): Delete their externs.
18963
18964 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18965 (font_charset_alist, font_registry_charsets): Move from xfont.c
18966 and rename.
18967 (font_prop_validate_otf): New function.
18968 (font_property_table): Register it for QCotf.
18969 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18970 (font_drive_otf): Delete.
18971 (font_prepare_composition): New arg F. Adjust for the change of
18972 lispy gstring.
18973 (font_find_for_lface): New arg C.
18974 (font_load_for_face): Adjust for the change of font_find_for_lface.
18975 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18976 lispy gstring.
18977 (Ffont_shape_text): New function.
18978 (Fopen_font): If the font size is not given, use 12-pixel.
18979 (Ffont_at): New arg STRING.
18980 (syms_of_font): Initalize font_charset_alist.
18981 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18982 conditionally.
18983
18984 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18985 fonts of the same font-spec. Change the format of RFONT-DEF.
18986 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18987 Adjust for the change of RFONT-DEF.
18988 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18989
18990 * ftfont.h: New file.
18991
18992 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18993 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18994 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18995 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18996 font_otf_capability and font_drive_otf, set ftfont_shape.
18997 (ftfont_list): Adjust for the change of :otf property value.
18998 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18999 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19000 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19001 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19002 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19003 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19004
19005 * w32term.c (x_draw_composite_glyph_string_foreground):
19006 Adjust for the change of lispy gstring.
19007
19008 * xdisp.c (handle_composition_prop): Adjust for the change of
19009 lispy gstring. Call a function for auto-composition with the
19010 third arg it->window.
19011 (fill_composite_glyph_string): Adjust for the change of lispy string.
19012 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19013
19014 * xfaces.c (set_font_frame_param): Adjust for the change of
19015 font_find_for_lface.
19016
19017 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19018 (xfont_registry_charsets): Likewise. Change caller.
19019 (syms_of_xfont): Don't handle x_font_charset_alist.
19020
19021 * xftfont.c: Include "ftfont.h".
19022 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19023 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19024 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19025 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19026 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19027 Set xftfont_driver.shape to xftfont_shape.
19028
19029 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19030 the change of lispy gstring.
19031
19032 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19033
19034 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19035
19036 2008-02-01 Jason Rumney <jasonr@gnu.org>
19037
19038 * w32font.c (w32font_draw): Fill background manually.
19039
19040 2008-02-01 Jason Rumney <jasonr@gnu.org>
19041
19042 * font.c (Qfontp): Remove unused symbol.
19043 (QCantialias): New symbol.
19044 (syms_of_font): Define it.
19045 (font_property_table): Set a validator for QCantialias.
19046
19047 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19048 Define if not already.
19049 (QCfamily): Share with xfaces.c.
19050 (Qstandard, Qsubpixel, Qnatural): New symbols.
19051 (syms_of_w32font): Define them. Don't define QCfamily here.
19052 (w32_antialias_type, lispy_antialias_type): New functions.
19053 (w32_enumfont_pattern_entity): New arg requested_font.
19054 Set antialias parameter if non-default was requested.
19055 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19056
19057 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19058
19059 * lread.c (read1): Undo the previous change.
19060
19061 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19062
19063 * frame.c (Fdelete_frame): Call font_update_drivers only when
19064 USE_FONT_BACKEND is defined.
19065
19066 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19067
19068 * font.h (struct font_bitmap): New member bits_per_pixel.
19069 (struct font_driver): New members start_for_frame and end_for_frame.
19070 (struct font_data_list): New struct.
19071 (font_put_frame_data, font_get_frame_data): Extern them.
19072
19073 * frame.h (struct frame): New member font_data_list.
19074
19075 * font.c (font_update_drivers): Call driver->start_for_frame and
19076 driver->end_for_frame at proper timings.
19077 (font_put_frame_data, font_get_frame_data): New functions.
19078 (Ffont_spec): Add usage in the docstring.
19079
19080 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19081 (Fdelete_frame): Call font_update_drivers.
19082
19083 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19084 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19085 (xftfont_get_xft_draw): New function.
19086 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19087 (xftfont_end_for_frame): New function.
19088 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19089
19090 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19091 Change argument. Cache GCs in the per-frame data.
19092 (struct ftxfont_frame_data): New struct.
19093 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19094 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19095 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19096 (ftxfont_end_for_frame): New function.
19097 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19098
19099 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19100
19101 2008-02-01 Kenichi Handa <handa@m17n.org>
19102
19103 * xselect.c (Vselection_coding_system)
19104 (Vnext_selection_coding_system): Delete them.
19105 (syms_of_xselect): Don't declare selection-coding-system and
19106 next-selection-coding-system. They are declared in select.el.
19107
19108 2008-02-01 Jason Rumney <jasonr@gnu.org>
19109
19110 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19111
19112 * w32fns.c: Include imm.h.
19113 (get_composition_string_fn, get_ime_context_fn): New optional
19114 system functions.
19115 (globals_of_w32fns): Load them from imm32.dll.
19116 (ignore_ime_char): New flag.
19117 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19118 WM_IME_ENDCOMPOSITION messages.
19119
19120 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19121 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19122
19123 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19124
19125 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19126 (READCHAR_REPORT_MULTIBYTE): New macro.
19127 (readchar): New 2nd arg MULTIBYTE.
19128 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19129 Make symbol's name multibyte according to the multibyteness of the
19130 source.
19131
19132 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19133
19134 * xfaces.c (face_for_overlay_string): Call lookup_face with
19135 correct arguments (fix of synching with the trunk).
19136
19137 2008-02-01 Kenichi Handa <handa@m17n.org>
19138
19139 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19140 (font_prop_validate_non_neg, font_prop_validate_spacing):
19141 Delete argument prop_index.
19142 (font_property_table): Change arguments to validater. Change Callers.
19143 (font_lispy_object): Delete.
19144 (font_at): Use font_find_object instead fo font_lispy_object.
19145
19146 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19147
19148 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19149 and file names.
19150
19151 2008-02-01 Jason Rumney <jasonr@gnu.org>
19152
19153 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19154 (font_matches_spec): Remove debug output.
19155 (add_font_entity_to_list): Avoid using substituted fonts.
19156
19157 2008-02-01 Jason Rumney <jasonr@gnu.org>
19158
19159 * doc.c (Fsnarf_documentation):
19160 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19161
19162 2008-02-01 Miles Bader <miles@gnu.org>
19163
19164 * dispextern.h (struct glyph_row): Only define "clip" field if
19165 HAVE_WINDOW_SYSTEM is defined.
19166
19167 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19168
19169 Fix up multi-tty merge.
19170
19171 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19172 and indentation.
19173
19174 * xfaces.c (free_realized_face, clear_face_gcs):
19175 Include font_done_for_face in the input_blocked section, just in case.
19176
19177 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19178 (get_char_face_and_encoding): Undo last change and remove the *other*
19179 duplicate definition (i.e. keep the one that's better scoped and that
19180 includes code for the font-backend).
19181
19182 * terminal.c (create_terminal): Default keyboard_coding to
19183 `no-conversion' and terminal_coding to `undecided'.
19184
19185 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19186
19187 * fontset.c (free_realized_fontsets): Check that the table entry does
19188 contain a fontset before trying to compare it to `base'.
19189
19190 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19191 syms_of_charset, and syms_of_coding earlier because init_window_once
19192 now needs Vcoding_system_hash_table to be setup.
19193
19194 * coding.h (default_buffer_file_coding): Remove.
19195
19196 * coding.c (default_buffer_file_coding): Remove.
19197 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19198 than ->symbol, and use the terminal-local coding system.
19199 (syms_of_coding): Don't setup the coding-systems that are not
19200 terminal-local.
19201 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19202
19203 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19204 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19205
19206 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19207 in chartab.c and were re-added here by mistake.
19208 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19209
19210 * doc.c (Fsnarf_documentation):
19211 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19212 src to etc.
19213
19214 * ChangeLog.10: Add mistakenly removed entry.
19215
19216 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19217
19218 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19219
19220 2008-02-01 Miles Bader <miles@gnu.org>
19221
19222 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19223 Add extra args to FACE_FOR_CHAR.
19224
19225 2008-02-01 Kenichi Handa <handa@m17n.org>
19226
19227 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19228 in sequence.
19229
19230 * chartab.c (map_sub_char_table, map_char_table): If the range
19231 contains just one character, call the function with that character
19232 even if the depth is not 3.
19233
19234 2008-02-01 Jason Rumney <jasonr@gnu.org>
19235
19236 * w32font.c (w32font_text_extents): Calculate metrics for the
19237 whole string.
19238
19239 2008-02-01 Jason Rumney <jasonr@gnu.org>
19240
19241 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19242
19243 2008-02-01 Jason Rumney <jasonr@gnu.org>
19244
19245 * w32term.c (x_set_glyph_string_clipping): Use
19246 get_glyph_string_clip_rects.
19247 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19248 Adjust for the change of struct glyph_string.
19249
19250 * w32font.c (w32font_draw): Do clipping here.
19251
19252 2008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * xftfont.c (xftfont_draw): Adjust for the change of struct
19255 glyph_string.
19256
19257 * xterm.c (x_set_glyph_string_clipping): Use
19258 get_glyph_string_clip_rects.
19259 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19260 Adjust for the change of struct glyph_string.
19261
19262 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19263 the resulting clip(s}.
19264 (expose_overlaps): Add arg r. Change callers. Set it to
19265 row->clip temporarily.
19266 (expose_window): Redraw rows overlapping the exposed area.
19267
19268 * dispextern.h (struct glyph_row): New member clip.
19269 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19270 clip_height, new member clip, and num_clips.
19271
19272 2008-02-01 Kenichi Handa <handa@m17n.org>
19273
19274 * data.c (Fchar_or_string_p): Fix docstring.
19275
19276 2008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19279 create a temporary XftDraw object.
19280
19281 2008-02-01 Kenichi Handa <handa@m17n.org>
19282
19283 * font.c (Ffontp): Fix docstring.
19284
19285 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19286 strong evidence of ISO-2022.
19287
19288 2008-02-01 Kenichi Handa <handa@m17n.org>
19289
19290 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19291 SYNTAX_ENTRY_FOLLOW_PARENT.
19292
19293 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19294
19295 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19296 its type.
19297 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19298 Update to the new type of weak_hash_tables and next_weak.
19299
19300 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19301 a plain C pointer to Lisp_Hash_Table.
19302
19303 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19304 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19305 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19306 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19307 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19308 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19309 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19310 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19311 (GC_EQ): Remove since they've been identical to their non-GC_
19312 alter-egos ever since the markbit was eradicated.
19313
19314 * alloc.c:
19315 * buffer.c:
19316 * buffer.h:
19317 * data.c:
19318 * fileio.c:
19319 * filelock.c:
19320 * fns.c:
19321 * frame.h:
19322 * lisp.h:
19323 * macterm.c:
19324 * print.c:
19325 * process.c:
19326 * w32fns.c:
19327 * w32menu.c:
19328 * w32term.c:
19329 * xfns.c:
19330 * xmenu.c:
19331 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19332
19333 2008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * chartab.c (map_sub_char_table): Make it work for the top-level
19336 char-table. Fix handling of parent char-table.
19337 (map_char_table): Adjust for the above change.
19338
19339 2008-02-01 Jason Rumney <jasonr@gnu.org>
19340
19341 * w32font.c (Qgdi): Rename from Qw32.
19342
19343 2008-02-01 Jason Rumney <jasonr@gnu.org>
19344
19345 * w32bdf.c (get_quoted_string): Make function static.
19346
19347 2008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19350 bigger ascent and descent than those of the font, use them as
19351 font's ascent and descent.
19352
19353 2008-02-01 Kenichi Handa <handa@m17n.org>
19354
19355 * Makefile.in (${lispsource}international/charprop.el): Move this
19356 target within "#ifdef HAVE_UNIDATA" and "#endif".
19357
19358 2008-02-01 Kenichi Handa <handa@m17n.org>
19359
19360 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19361 (shortlisp): Add ../lisp/language/tai-viet.el.
19362
19363 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
19364
19365 * Makefile.in (${lispsource}international/charprop.el): Depend on
19366 temacs${EXEEXT}.
19367
19368 2008-02-01 Jason Rumney <jasonr@gnu.org>
19369
19370 * w32font.c (w32font_close): Delete the GDI font object.
19371
19372 * w32menu.c: Include character.h.
19373
19374 * w32proc.c: Likewise.
19375
19376 * w32select.c: Likewise.
19377
19378 * makefile.w32-in (w32proc.o): Depend on character.h.
19379
19380 2008-02-01 Jason Rumney <jasonr@gnu.org>
19381
19382 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19383
19384 * w32menu.c (syms_of_w32menu): Likewise.
19385
19386 * w32proc.c (syms_of_ntproc): Likewise.
19387
19388 * w32select.c (syms_of_w32select): Likewise.
19389
19390 * w32term.c (syms_of_w32term): Likewise.
19391
19392 2008-02-01 Jason Rumney <jasonr@gnu.org>
19393
19394 * w32font.c (w32font_draw): Delete brush after using it.
19395
19396 2008-02-01 Jason Rumney <jasonr@gnu.org>
19397
19398 * w32font.c (w32font_open): Don't set font_idx.
19399 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19400 to font settings.
19401 (w32font_draw): Fill background explicitly.
19402
19403 2008-02-01 Jason Rumney <jasonr@gnu.org>
19404
19405 * w32term.c (w32_initialize): Don't call w32font_initialize.
19406
19407 * w32font.c (w32font_info): Remove subranges.
19408 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19409 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19410 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19411 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19412 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19413 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19414 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19415 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19416 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19417 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19418 New symbols.
19419 (font_callback_data): New struct.
19420 (w32font_list, w32font_match): Use it.
19421 (w32font_open): Don't populate subranges.
19422 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19423 (w32font_encode_char): Always return unicode code-point as-is.
19424 (w32font_text_extents): Supply a transformation matrix to
19425 GetGlyphOutline. Never look up by glyph index. Avoid looping
19426 twice. Use unicode version of GetTexExtentPoint32 instead of
19427 glyph index version.
19428 (set_fonts_frame): Remove.
19429 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19430 set frame parameter. Use backward compatible fake foundries.
19431 Save generic family in extra slot under QCfamily. Make width slot
19432 constant. Save QCspacing value. Save list of scripts instead of
19433 binary subranges.
19434 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19435 (add_font_entity_to_list): Use font_callback_data struct. Filter
19436 unwanted fonts.
19437 (add_one_font_entity_to_list): Use font_callback_data struct.
19438 (w32_registry): Default to iso10646_1.
19439 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19440 string font registries. Don't fill in font name if it is a generic
19441 family name, fill family instead. Use spacing, family and script
19442 extra info to fill pitch, family and charset fields.
19443 (list_all_matching_fonts): Use font_callback_data struct.
19444 (unicode_range_for_char): Remove.
19445 (font_supported_scripts): New function.
19446 (w32font_initialize): Remove.
19447 (syms_of_w32font): Update which symbols are defined.
19448
19449 2008-02-01 Jason Rumney <jasonr@gnu.org>
19450
19451 * font.c (font_pixel_size): Reverse assq_no_quit args.
19452
19453 * w32term.h (FONT_WIDTH): Report max width, not average.
19454 (FONT_MAX_WIDTH): Remove.
19455 (FONT_AVG_WIDTH): New macro.
19456
19457 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19458 redefinition of FONT_WIDTH.
19459
19460 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19461 (w32_cache_char_metrics): Use FONT_WIDTH.
19462
19463 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19464
19465 2008-02-01 Jason Rumney <jasonr@gnu.org>
19466
19467 * w32font.c (w32font_open): Make lfHeight negative.
19468
19469 * w32fns.c (x_default_font_parameter): Use new style font name.
19470 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19471
19472 2008-02-01 Jason Rumney <jasonr@gnu.org>
19473
19474 * w32font.c (QCsubranges): New symbol.
19475 (w32font_open, w32font_has_char): Get subranges from subproperty
19476 of extra.
19477 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19478 (syms_of_w32font): Define :subranges symbol.
19479
19480 * font.c (font_put_extra): Expose externally.
19481
19482 * font.h (font_put_extra): Move declaration from font.c.
19483
19484 * font.c (Ffont_get): Use font driver to determine otf capability.
19485 (adjust_anchor): Check if driver defines anchor_point before using.
19486
19487 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19488 (w32font_draw): Use options.
19489 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19490 Fix detection of truetype fonts.
19491 (registry_to_w32_charset): Handle charsets other than iso8859-1
19492 expressed as lisp symbols.
19493 (w32_registry): Express charset as lisp symbol.
19494 (fill_in_logfont): Reverse pixel and point height logic.
19495 Don't set width here. Set quality to default.
19496
19497 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19498 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19499
19500 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19501 Remove redundant loop and allocation.
19502
19503 * makefile.w32-in (font.o, w32font.o): New objects.
19504 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19505 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19506
19507 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19508 STORE_XCHARB a valid l-value.
19509
19510 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19511 calculations for non-Truetype fonts.
19512 (x_draw_glyph_string): Sync with xterm.c.
19513 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19514 Remove redundant code.
19515 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19516
19517 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19518 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19519
19520 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19521 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19522
19523 * w32font.c: New file for w32 font backend.
19524
19525 2008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * term.c: Don't include "buffer.h" twice.
19528
19529 2008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * character.c (Funibyte_string): New function.
19532 (syms_of_character): Defsubr it.
19533
19534 2008-02-01 Jason Rumney <jasonr@gnu.org>
19535
19536 * w32term.c [USE_FONT_BACKEND]:
19537 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19538 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19539 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19540 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19541 (x_free_frame_resources): Sync with xterm.c.
19542
19543 2008-02-01 Andreas Schwab <schwab@suse.de>
19544
19545 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19546 char-table size.
19547
19548 2008-02-01 Kenichi Handa <handa@m17n.org>
19549
19550 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19551
19552 2008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19555 font_otf_gpos, add font_drive_otf.
19556
19557 * fontset.c (fontset_find_font): Pay attention to font size
19558 specified for a font.
19559 (reorder_font_vector): Check contents of font_def.
19560
19561 * font.c (struct otf_list): Delete it.
19562 (otf_list): Make it a lisp variable.
19563 (otf_open): Use lispy otf_list.
19564 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19565 (check_otf_features): New function.
19566 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19567 New functions.
19568 (font_drive_otf): New function merging font_otf_gsub and
19569 font_otf_gpos.
19570 (font_open_for_lface): New arg spec. Change argument order.
19571 (font_load_for_face): Adjust for the change of font_open_for_lface.
19572 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19573 Ffont_otf_gpos.
19574 (syms_of_font): Staticpro otf_list. Delete defsubr of
19575 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19576
19577 * xfaces.c (set_font_frame_param): Adjust for the change of
19578 font_open_for_lface.
19579
19580 * font.h (font_open_for_lface): Adjust prototype.
19581 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19582 member otf_drive.
19583 (font_otf_gsub, font_otf_gpos): Delete externs.
19584 (font_drive_otf): Extern it.
19585
19586 2008-02-01 Kenichi Handa <handa@m17n.org>
19587
19588 * font.c (font_at): If the window W is not on a window system,
19589 return Qnil.
19590
19591 * coding.c (produce_chars, encode_coding): Don't call
19592 insert_from_gap if no characters to produce.
19593
19594 2008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19597 Fclear_face_cache.
19598
19599 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19600
19601 2008-02-01 Miles Bader <miles@gnu.org>
19602
19603 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19604 Parse "--disable-font-backend" option.
19605 (standard_args): Add "--disable-font-backend" option.
19606
19607 2008-02-01 Kenichi Handa <handa@m17n.org>
19608
19609 * fontset.c (fontset_find_font): New function.
19610 (fontset_font): Use fontset_find_font.
19611 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19612 Register the specified font for all Latin characters.
19613 (new_fontset_from_font): Register the specified font for all Latin
19614 characters.
19615 (dump_fontset): For a realized fontset, include the base fontset
19616 name in the returned vector.
19617
19618 2008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * character.h (CHAR_STRING): Cast C to unsigned on calling
19621 char_string.
19622
19623 * character.c (char_string): Type of arg C changed to unsigned.
19624 Signal an error if C is an invalid character code.
19625
19626 * editfns.c (general_insert_function, Fchar_to_string):
19627 Use CHARACTERP, not INTEGERP.
19628
19629 2008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19632 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19633
19634 * regex.c (analyse_first): Fix for multibyte characters in "case
19635 charset:" and "case categoryspec:".
19636
19637 2008-02-01 Andreas Schwab <schwab@suse.de>
19638
19639 * Makefile.in (LIBES): Move standard libraries to the end.
19640
19641 2008-02-01 Kenichi Handa <handa@m17n.org>
19642
19643 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19644 nonzero, don't shrink the buffer nextb.
19645
19646 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19647
19648 * coding.c (coding_alloc_by_making_gap): New arg offset.
19649 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19650 offset.
19651 (decode_coding_iso_2022): Update coding->safe_charsets.
19652 (decode_coding_gap): Temporarily set
19653 current_buffer->text->inhibit_shrinking to 1.
19654
19655 2008-02-01 Kenichi Handa <handa@m17n.org>
19656
19657 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19658 indexing into elements of s->cmp and s->char2b.
19659
19660 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
19661
19662 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19663
19664 2008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19667 target_multibyte instead of multibyte.
19668 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19669 (bcmp_translate): Change the argument name from multibyte to
19670 target_multibyte.
19671
19672 2008-02-01 Kenichi Handa <handa@m17n.org>
19673
19674 These changes are to compile a regexp into a pattern that can be
19675 used both for multibyte and unibyte targets.
19676
19677 * Makefile.in (search.o): Depend on charset.h.
19678
19679 * character.c (multibyte_char_to_unibyte_safe): New function.
19680
19681 * search.c: Include "charset.h".
19682 (compile_pattern_1): Delete argument multibyte. Don't set
19683 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19684 (compile_pattern): Don't compare cp->buf.target_multibyte.
19685 Compare cp->buf.charset_unibyte.
19686 (compile_pattern): Set cp->buf.target_multibyte.
19687
19688 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19689
19690 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19691
19692 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19693 multibyte. Change callers.
19694 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19695 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19696 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19697 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19698 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19699 (regex_compile): Make the compiled pattern usable both for
19700 multibyte and unibyte targets.
19701 (analyse_first): Make the fastmap usable both for multibyte and
19702 unibyte targets.
19703 (TRANSLATE_VIA_MULTIBYTE): Delete.
19704 (re_match_2_internal): Pay attention to the case that the
19705 multibyteness of bufp and target may be different.
19706
19707 2008-02-01 Kenichi Handa <handa@m17n.org>
19708
19709 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19710 empty box occupy at least one column width.
19711
19712 2008-02-01 Miles Bader <miles@gnu.org>
19713
19714 * Makefile.in: Remove redundant HAVE_XFT clause.
19715
19716 2008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19719
19720 2008-02-01 Kenichi Handa <handa@m17n.org>
19721
19722 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19723 being nil.
19724
19725 2008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19728
19729 2008-02-01 Kenichi Handa <handa@m17n.org>
19730
19731 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19732
19733 2008-02-01 Kenichi Handa <handa@m17n.org>
19734
19735 * search.c (simple_search): Fix previous change.
19736
19737 2008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * xftfont.c (ftfont_font_format): Extern declaration.
19740
19741 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19742
19743 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19744 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19745
19746 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19747 (ftfont_font_format): Fix previous change.
19748
19749 * font.h (Ffont_xlfd_name): EXFUN it.
19750
19751 * font.c (font_parse_xlfd): Fix the array size of `f'.
19752 (register_font_driver): Use EQ to compare driver->type.
19753
19754 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19755 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19756 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19757
19758 2008-02-01 Kenichi Handa <handa@m17n.org>
19759
19760 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19761 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19762
19763 2008-02-01 Kenichi Handa <handa@m17n.org>
19764
19765 * xfont.c (xfont_open): Set font->format.
19766
19767 * xftfont.c (xftfont_open): Set font->format.
19768
19769 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19770 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19771 (ftfont_open): Set font->format.
19772 (ftfont_font_format): New function.
19773
19774 * font.h (struct font): New member format.
19775
19776 * font.c (Qopentype): New variable.
19777 (syms_of_font): Defsym it.
19778 (Fquery_font): Change the format of the last element of the return
19779 value.
19780
19781 2008-02-01 Kenichi Handa <handa@m17n.org>
19782
19783 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19784 last resort.
19785
19786 2008-02-01 Kenichi Handa <handa@m17n.org>
19787
19788 * coding.c (detect_coding_charset): Fix detection of multi-byte
19789 charset.
19790
19791 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19792
19793 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19794
19795 2008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * xdisp.c (get_next_display_element): Set it->face_id for the
19798 first component of a composition.
19799 (x_produce_glyphs): Check if the font is changed or not for composition.
19800
19801 2008-02-01 Kenichi Handa <handa@m17n.org>
19802
19803 * fontset.c (Qlatin): New variable.
19804 (syms_of_fontset): Define it as a lisp symbol.
19805 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19806
19807 2008-02-01 Kenichi Handa <handa@m17n.org>
19808
19809 * font.c (font_unparse_fcname): Pay attention to the case that
19810 some of font property is a null string.
19811
19812 2008-02-01 Kenichi Handa <handa@m17n.org>
19813
19814 * term.c: Include "composite.h".
19815 (encode_terminal_code): Output all components of composition.
19816 Check the size of encode_terminal_src.
19817 (produce_glyphs): For composition, call produce_composite_glyph.
19818 (append_composite_glyph, produce_composite_glyph): New functions.
19819
19820 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19821 is not found, get font_info from the current ascii face.
19822
19823 2008-02-01 Kenichi Handa <handa@m17n.org>
19824
19825 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19826 buffer-file-name to Qnil before calling insert_from_buffer.
19827
19828 * font.c (font_unparse_fcname): Pay attention to the case that
19829 foundry is a null string.
19830
19831 2008-02-01 Kenichi Handa <handa@m17n.org>
19832
19833 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19834
19835 * font.c (Qunicode_sip): New variable.
19836 (syms_of_font): Declare it as a Lisp symbol.
19837
19838 * font.h (Qunicode_sip): Extern it.
19839
19840 2008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * composite.c (get_composition_id): Pay attention to TAB component.
19843
19844 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19845 TAB. Adjust for the change of s->char2b which always points to
19846 the first element of allocated memory.
19847
19848 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19849
19850 * xdisp.c (handle_composition_prop): Set it->c to the first
19851 non-TAB component.
19852 (fill_composite_glyph_string): Change argument.
19853 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19854 (x_produce_glyphs): Fix handling of left/right padding.
19855
19856 2008-02-01 Kenichi Handa <handa@m17n.org>
19857
19858 * coding.c (detect_coding_system): Fix for handling off
19859 inhibit_iso_escape_detection. Fix for the case that no coding
19860 system is defined for a specific coding category.
19861
19862 2008-02-01 Kenichi Handa <handa@m17n.org>
19863
19864 * font.c (font_matching_entity): Delete unused local var.
19865
19866 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19867 opening a font.
19868
19869 * fileio.c (Finsert_file_contents): On recovering a file, assume
19870 Unix-like eol.
19871 (choose_write_coding_system): On auto-saving a file, force
19872 Unix-like eol.
19873
19874 * coding.c (setup_coding_system): Fix setting of
19875 coding->common_flags based on eol_type.
19876 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19877 inherit from it.
19878
19879 2008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 * alloc.c (NSTATICS): Increas to 0x600.
19882
19883 2008-02-01 Kenichi Handa <handa@m17n.org>
19884
19885 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19886 (ftfont_list): Don't check :name property.
19887 (ftfont_match): New function.
19888 (ftfont_pattern_entity): If the pattern doesn't contain
19889 FC_SPACING, don't assume FC_MONO.
19890
19891 * font.h (struct font_driver): New member `match'.
19892 (font_update_drivers): Adjust prototype.
19893
19894 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19895 property of FONT.
19896 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19897 them unconditionally.
19898 (font_matching_entity): New function.
19899 (font_open_by_name): Try font_matching_entity if exact match is
19900 not found.
19901 (font_update_drivers): Delete the arg FONT. Return a list of
19902 actually used backends. Don't free faces, font caches here.
19903 Don't store data in frame parameters. Don't call x_set_font.
19904 (Ffont_spec): Store :name property as is.
19905 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19906 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19907 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19908 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19909 Call font->driver->otf_gsub instead of font_otf_gsub.
19910
19911 * frame.c (x_set_font_backend): Do more works that were done in
19912 font_update_drivers before.
19913
19914 * xfont.c (xfont_match): New function.
19915 (xfont_driver): Set xfont_driver.match to xfont_match.
19916 (xfont_draw): Set font in GC if necessary.
19917
19918 * ftxfont.c (ftxfont_match): New function.
19919 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19920
19921 * xftfont.c (xftfont_match): New function.
19922 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19923
19924 2008-02-01 Kenichi Handa <handa@m17n.org>
19925
19926 * font.h (struct font): New member scalable.
19927 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19928 (font_otf_gsub): Adjust prototype.
19929
19930 * font.c (font_otf_capability): Fix handling of the default langsys.
19931 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19932 Check the contents of SPEC.
19933 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19934 (check_gstring): New function.
19935 (REPLACEMENT_CHARACTER): New macro.
19936 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19937 glyph codes of GSTRING.
19938 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19939 (font_prepare_composition): Set cmp->glyph_len.
19940 (font_open_entity): Set font->scalable.
19941 (Ffont_get): Handle :otf property.
19942 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19943 functions.
19944 (Fquery_font): Use font->font.full_name.
19945 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19946 Sfont_otf_alternates.
19947
19948 * ftfont.c (ftfont_open): Set font->font.full_name and
19949 font->font.name properly. Fix calculation of font->font.height
19950 and font->min_width.
19951
19952 * ftxfont.c (ftxfont_create_gcs): New function.
19953 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19954 (ftxfont_draw_backgrond): Fix filling region.
19955 (ftxfont_default_fid): New function.
19956 (ftxfont_open): Set xfont->fid to the return value of
19957 ftxfont_default_fid.
19958 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19959 (ftxfont_done_face): Free only GCs that are created by
19960 ftxfont_create_gcs.
19961 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19962
19963 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19964 Clip to src->width, etc (not src->clip_XXX).
19965
19966 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19967 FontBackend frame parameter.
19968
19969 2008-02-01 Kenichi Handa <handa@m17n.org>
19970
19971 * font.h (struct font_driver_list): New member `on'.
19972 (Fclear_font_cache): EXFUN it.
19973 (font_update_drivers): Extern it.
19974
19975 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19976 (font_list_entities): Check driver_list->on.
19977 (register_font_driver): Initalize `on' member to 0.
19978 (font_update_drivers): New function.
19979 (Fclear_font_cache): Check driver_list->on.
19980
19981 * frame.h (Qfont_backend): Extern it.
19982 (x_set_font_backend): Extern it.
19983
19984 * frame.c (Qfont_backend): New variable.
19985 (frame_parms): New element for font-backend.
19986 (x_set_font_backend): New function.
19987
19988 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19989 FontBackend frame parameter.
19990 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19991 x_set_font_backend.
19992
19993 * xfont.c (xfont_list): Don't try listing by :name property if the
19994 name is not for XLFD.
19995
19996 2008-02-01 Kenichi Handa <handa@m17n.org>
19997
19998 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19999 (LGLYPH_SET_TO): New macros.
20000 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20001 element of G is vector or not.
20002 (font_at): Extern it.
20003
20004 * font.c: Include window.h.
20005 (font_lispy_object): New function.
20006 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20007 end of valid glyph.
20008 (font_close_object): Fix getting (struct font *).
20009 (font_at): New function.
20010 (Ffont_get): If FONT is a font-object, get entity from it.
20011 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20012 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20013 range check.
20014 (Ffont_at): New function.
20015 (syms_of_font): Defsubr Sfont_at.
20016
20017 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20018 before the entry for Qcomposition.
20019 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20020 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20021 the font in gstring.
20022 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20023 LGLYPH_FORM (g) to detect the end of valid glyph.
20024 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20025 we are composing with gstring.
20026
20027 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20028 Check if adjustment is vector or not.
20029
20030 * Makefile.in (font.o): Make it depends on window.h.
20031
20032 2008-02-01 Kenichi Handa <handa@m17n.org>
20033
20034 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20035 adjustment is vector or not.
20036
20037 2008-02-01 Miles Bader <miles@gnu.org>
20038
20039 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20040
20041 2008-02-01 Kenichi Handa <handa@m17n.org>
20042
20043 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20044 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20045 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20046
20047 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20048 (DEVICE_DELTA): Fix typo.
20049 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20050 LGLYPH format.
20051
20052 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20053 the change of LGLYPH format.
20054
20055 2008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * ftfont.c (ftfont_list): Fix typo.
20058 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20059
20060 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20061
20062 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20063
20064 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20065 xftface_info is non-NULL.
20066
20067 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20068
20069 * ftfont.c (ftfont_list): Move misplaced #endif.
20070
20071 2008-02-01 Kenichi Handa <handa@m17n.org>
20072
20073 * ftfont.c (ftfont_list): Pay attention to the case that
20074 FC_CAPABILITY is not defined.
20075
20076 2008-02-01 Kenichi Handa <handa@m17n.org>
20077
20078 * xftfont.c (xftfont_open): Set charset related members to -1.
20079
20080 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20081 QCname.
20082 (ftfont_open): Set charset related members to -1.
20083
20084 * fontset.c (Votf_script_alist): New variable.
20085 (syms_of_fontset): Initialize it.
20086 (fontset_font): Delete unused variable.
20087
20088 * fontset.h (Votf_script_alist): Extern it.
20089
20090 * font.c (font_find_for_lface): Optimize code.
20091
20092 * font.h (font_close_object, font_merge_old_spec): Extern them.
20093
20094 2008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20097 (syms_of_font): Initialize them.
20098 (font_pixel_size): Allow float value in dpi.
20099 (font_prop_validate_type): Delete.
20100 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20101 Change caller.
20102 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20103 (font_prop_validate_extra): Delete.
20104 (font_prop_validate_spacing): New function.
20105 (font_property_table): Add elements for all known properties.
20106 (get_font_prop_index): Rename from check_font_prop_name. New
20107 argument FROM. Change caller.
20108 (font_prop_validate): Validate all known properties.
20109 (font_put_extra): Delete argument force. Change caller.
20110 (font_expand_wildcards): Make it static. Fix the way of shrinking
20111 the possible range.
20112 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20113 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20114 Change caller.
20115 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20116 (font_parse_fcname): Delete argument merge. Fix parsing of point
20117 size. Don't validate properties values here. Change caller.
20118 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20119 (font_open_by_name): Delete unused variable.
20120 (Ffont_spec): Likewise. Validate property values.
20121 (Ffont_match_p): New function.
20122
20123 * font.h (QCscalable): Extern it.
20124 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20125
20126 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20127
20128 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20129 (xfont_list_pattern): New function.
20130 (xfont_list): Use xfont_list_pattern.
20131
20132 2008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * font.h (Flist_fonts): EXFUN it.
20135
20136 2008-02-01 Jason Rumney <jasonr@gnu.org>
20137
20138 * w32term.c (w32_initialize): Add back smoothing_type and
20139 smoothing_enabled definitions.
20140
20141 2008-02-01 Kenichi Handa <handa@m17n.org>
20142
20143 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20144 s->face->font on determining underline position.
20145
20146 2008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20149 (font_has_char): Accept font-object too.
20150 (font_find_for_lface): Try at first with a size specified in face.
20151
20152 2008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20155 font_open_by_name.
20156
20157 2008-02-01 Kenichi Handa <handa@m17n.org>
20158
20159 * font.h (QCspacing, QCdpi): Extern them.
20160 (enum font_spacing): New enum.
20161 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20162
20163 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20164 (QCspacing, QCdpi): New variables.
20165 (syms_of_font): Initialize them.
20166 (font_pixel_size): New function.
20167 (font_put_extra): New function.
20168 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20169 in FONT_EXTRA.
20170 (font_parse_fcname): Handle enumerated values (e.g. bold).
20171 Fix handling font size. Add QCname property that contains only
20172 unknown properties.
20173 (font_score): Change argument. Change caller. Pay attention to
20174 FONT_PIXEL_SIZE_QUANTUM.
20175 (font_sort_entites, font_list_entities, font_find_for_lface)
20176 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20177 (Ffont_spec): Add QCname property that contains only unknown properties.
20178
20179 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20180 include weight in listing pattern, instead check weight of each
20181 listed font. Don't include scalable in pattern. Pay attention to
20182 FONT_PIXEL_SIZE_QUANTUM.
20183
20184 2008-02-01 Kenichi Handa <handa@m17n.org>
20185
20186 * font.c (font_parse_fcname): Fix parsing of point-size.
20187 (font_unparse_fcname): Produce symbolic names for style properties.
20188 (font_list_entities): Handle float size correctly.
20189 (font_open_by_name): Prefer `normal' property values if the name
20190 doesn't specify them.
20191
20192 * fontset.c (Finternal_char_font): Use font_get_name, not
20193 Ffont_xlfd_name.
20194
20195 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20196 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20197 pattern. Don't force scalable.
20198
20199 * xftfont.c (xftfont_open): For generating a name, start from
20200 96-byte buffer.
20201
20202 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20203
20204 * frame.h (x_new_fontset2): Fix prototype.
20205
20206 2008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * font.h (struct font_driver): Delete member parse_name.
20209 (font_match_p, font_get_spec, font_parse_fcname)
20210 (font_unparse_fcname): Extern them.
20211 (font_get_name): Adjust prototype.
20212
20213 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20214 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20215 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20216 unnecessary checks for weight, slant, and swidth.
20217 (font_parse_fcname): New function.
20218 (font_unparse_fcname): New function.
20219 (font_parse_name): New function.
20220 (font_match_p): New function.
20221 (font_get_name): Change return value to Lisp string.
20222 (font_get_spec): New function.
20223 (Qunspecified, Qignore_defface): Don't extern them.
20224 (font_find_for_lface): Assume that LFACE is fully specified.
20225 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20226 object, use it for FACE.
20227 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20228 driver->parse_name.
20229 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20230
20231 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20232 prototype.
20233
20234 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20235 argument F. Don't call Fnew_fontset. Instead, directly call
20236 make_fontset.
20237
20238 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20239
20240 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20241 of x_new_fontset2.
20242
20243 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20244 (Qsans__serif): New variables.
20245 (ftfont_generic_family_list): New variable.
20246 (syms_of_ftfont): Initialize the above variables.
20247 (ftfont_pattern_entity): Delete argument NAME.
20248 (ftfont_list_generic_family): New function.
20249 (ftfont_parse_name): Delete this function.
20250 (ftfont_list): Try generic family only when FcFontList found no font.
20251 (ftfont_list_family): Fix args to FcObjectSetBuild.
20252
20253 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20254 object in attrs[LFACE_FONT_INDEX].
20255 (set_lface_from_font_name): Cancel all changes for font-backend.
20256 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20257 function.
20258 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20259 font object in QCfont attribute.
20260 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20261 (realize_default_face) [USE_FONT_BACKEND]: Call
20262 set_lface_from_font_and_fontset.
20263
20264 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20265 "fixed", and signal error here if no suitable font was found.
20266
20267 * xfont.c (xfont_parse_name): Delete this function.
20268
20269 * xftfont.c (xftfont_open): Change coding style of error
20270 handling. Generate fontconfig's fontname pattern.
20271
20272 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20273 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20274
20275 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20276 Both args FONTSET and FONT_OBJECT must be existing ones.
20277
20278 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20279
20280 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20281
20282 2008-02-01 Kenichi Handa <handa@m17n.org>
20283
20284 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20285
20286 * font.h (struct font): Fix typo.
20287
20288 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20289 XLFD_XXX_INDEX.
20290 (enum xlfd_field_mask): New enum.
20291 (intern_font_field): Changed argument. Change caller. If digits
20292 are followed by non-digits, return a symbol.
20293 (font_expand_wildcards): New function.
20294 (font_parse_xlfd): Fix wildcard handling.
20295 (Ffont_spec): If :name is specified, reflect the info in the other
20296 properties.
20297
20298 * ftfont.c (ftfont_pattern_entity): Fix typo.
20299 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20300 locale.
20301
20302 2008-02-01 Kenichi Handa <handa@m17n.org>
20303
20304 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20305
20306 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20307 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20308 registry doesn't specify encoding part.
20309 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20310 (font_open_by_name): At first try parsing the name.
20311 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20312 as Lisp symbols.
20313
20314 * fontset.c (reorder_font_vector): Pay attention to the case that
20315 the 3rd element of font_def is nil.
20316 (fontset_font): For the default fontset, append one more fontset
20317 elements for a script-based font specification. Don't add script
20318 attribute on finding a font.
20319 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20320 font name.
20321 (fontset_ascii_font): If a font can't be opened, return nil.
20322
20323 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20324 (ftfont_pattern_entity): New function.
20325 (ftfont_get_cache): Assume that freetype_font_cache is already
20326 initialized.
20327 (ftfont_list): Handle the case that a file is specified in font
20328 name. Use ftfont_pattern_entity to generate entities.
20329 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20330 (syms_of_ftfont): Initialize freetype_font_cache.
20331
20332 * xftfont.c (xftfont_open): Make the font name fontconfig's
20333 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20334 (xftfont_close): Free font->font.name if not NULL.
20335
20336 * xfont.c (xfont_list): If script is specified for a font, return
20337 null_vector.
20338 (xfont_list_family): Declare argument type.
20339
20340 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20341 name, set LFACE_FONT (lface) to nil.
20342
20343 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20344 return Qnil.
20345
20346 2008-02-01 Kenichi Handa <handa@m17n.org>
20347
20348 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20349 (standard_args): Add "-enable-font-backend".
20350
20351 2008-02-01 Kenichi Handa <handa@m17n.org>
20352
20353 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20354 (struct xftdraw_list, xftdraw_list): Delete them.
20355 (register_xftdraw, check_xftdraw): Delete them.
20356 (xftfont_prepare_face): Don't call register_xftdraw.
20357 (xftfont_done_face): Don't call check_xftdraw.
20358 (xftfont_draw): Get background color only when with_background is
20359 nonzero.
20360
20361 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20362
20363 2008-02-01 Kenichi Handa <handa@m17n.org>
20364
20365 These changes are for the new font handling codes.
20366
20367 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20368 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20369 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20370 (FONTSRC, FONTOBJ): New variables.
20371 (obj): Add $(FONTOBJ).
20372 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20373 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20374 @LIBOTF_LIBS@.
20375 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20376 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20377
20378 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20379
20380 * character.h (Vscript_representative_chars): Extern it.
20381
20382 * character.c (Vscript_representative_chars): New variable.
20383 (syms_of_character): Declare it as a Lisp variable.
20384
20385 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20386 enable_font_backend is nonzero, accept the composition method
20387 COMPOSITION_WITH_GLYPH_STRING.
20388
20389 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20390 enumeration COMPOSITION_WITH_GLYPH_STRING.
20391
20392 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20393 members clip_x, clip_y, clip_width, and clip_height.
20394 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20395
20396 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20397 --enable-font-backend. Call syms_of_font.
20398
20399 * fns.c (assoc_no_quit): New function.
20400
20401 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20402 (face_for_font, new_fontset_from_font)
20403 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20404
20405 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20406 (fontset_font, fontset_ascii, face_for_char)
20407 (make_fontset_for_ascii_face, Ffont_info)
20408 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20409 is nonzero, use font-backend mechanism.
20410 (find_font_encoding): Make it non-static.
20411 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20412 New functions.
20413
20414 * frame.h (struct frame): New members resx and resy.
20415 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20416 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20417
20418 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20419 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20420
20421 * lisp.h (assoc_no_quit): Extern it.
20422
20423 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20424 Through out the file, use FONT_INFO_FROM_FACE instead of
20425 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20426 rif->per_char_metric.
20427 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20428 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20429 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20430 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20431 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20432 nonzero, use font-backend mechanism.
20433 (get_per_char_metric): New function.
20434
20435 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20436 (set_lface_from_font_name)
20437 (set_font_frame_param, free_realized_face)
20438 (prepare_face_for_display, clear_face_gcs)
20439 (Finternal_set_font_selection_order, realize_x_face)
20440 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20441 font-backend mechanism.
20442 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20443 (load_face_font) [USE_FONT_BACKEND]: Abort.
20444 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20445 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20446
20447 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20448 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20449 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20450 nonzero, register all available font drivers. Call
20451 x_default_font_parameter for deciding a font.
20452 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20453
20454 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20455 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20456 (x_set_glyph_string_clipping_exactly)
20457 (x_compute_glyph_string_overhangs)
20458 (x_draw_glyph_string_foreground)
20459 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20460 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20461 enable_font_backend is nonzero, use font-backend mechanism.
20462 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20463
20464 2008-02-01 Kenichi Handa <handa@m17n.org>
20465
20466 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20467 system_eol_type.
20468 (syms_of_coding): Initialize system_eol_type.
20469
20470 * process.c (Fset_process_coding_system): Inherit system's eol
20471 format if necessary.
20472
20473 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20474
20475 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20476
20477 2008-02-01 Kenichi Handa <handa@m17n.org>
20478
20479 * coding.c (decode_eol): Pay attention to buffer relocation in
20480 del_range_2.
20481 (decode_coding): Call decode_eol before restoring undo_list.
20482
20483 2008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * charset.c (Fdefine_charset_internal): Fix setting of
20486 emacs_mule_bytes.
20487
20488 2008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * keyboard.c (read_char): Check if C is a character or not before
20491 looking up Vkeyboard_translate_table.
20492
20493 2008-02-01 Kenichi Handa <handa@m17n.org>
20494
20495 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20496 condition to terminate the loop.
20497
20498 2008-02-01 Kenichi Handa <handa@m17n.org>
20499
20500 * coding.c (produce_composition): Compare charbuf[i] instead of
20501 args[i] against 0.
20502 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20503
20504 2008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20507 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20508 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20509 detect_coding.
20510 (emacs_mule_char): Handle old style (Emacs 20) component character
20511 of a composition.
20512 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20513 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20514 composition rule.
20515 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20516
20517 2008-02-01 Kenichi Handa <handa@m17n.org>
20518
20519 * coding.c (encode_coding_ccl): Allocate destination dynamically
20520 when necessary.
20521
20522 2008-02-01 Kenichi Handa <handa@m17n.org>
20523
20524 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20525 the loop. When quitted, show a proper error message.
20526
20527 2008-02-01 Kenichi Handa <handa@m17n.org>
20528
20529 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20530 src->clip_head and src->clip_tail temporarily instead of src->hl.
20531
20532 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20533 character sequence.
20534 (Fccl_execute_on_string): Use ASET, not XSET.
20535
20536 2008-02-01 Kenichi Handa <handa@m17n.org>
20537
20538 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20539
20540 2008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 * coding.c (decode_coding): Fix the condition of terminating the
20543 decoding loop.
20544
20545 2008-02-01 Kenichi Handa <handa@m17n.org>
20546
20547 * data.c (Faset): On setting a character bigger than 255 in a
20548 unibyte string, signal an error instead of make the string multibyte.
20549
20550 2008-02-01 Kenichi Handa <handa@m17n.org>
20551
20552 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20553 made by a mapping table.
20554
20555 2008-02-01 Kenichi Handa <handa@m17n.org>
20556
20557 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20558 not.
20559 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20560 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20561
20562 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20563 s->face is NULL or not.
20564
20565 2008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20568 (x_draw_glyph_string): Fix drawing of right_overhang and
20569 left_overhang around/on cursor.
20570
20571 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20572
20573 2008-02-01 Kenichi Handa <handa@m17n.org>
20574
20575 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20576
20577 2008-02-01 Kenichi Handa <handa@m17n.org>
20578
20579 * coding.c (Fdefine_coding_system_internal)
20580 (Fdefine_coding_system_alias): Avoid a duplicated element in
20581 Vcoding_system_alist.
20582
20583 2008-02-01 Kenichi Handa <handa@m17n.org>
20584
20585 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20586
20587 * coding.c (Qcoding_system_define_form): New variable.
20588 (syms_of_coding): Intern and staticpro it.
20589 (Fcoding_system_p): Check Qcoding_system_define_form.
20590 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20591
20592 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20593 Fcoding_system_p.
20594 (CHECK_CODING_SYSTEM): If ID is not available, call
20595 Fcheck_coding_system.
20596 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20597 Try also Fcheck_coding_system.
20598
20599 2008-02-01 Kenichi Handa <handa@m17n.org>
20600
20601 * coding.c (code_conversion_restore): GCPRO arg.
20602
20603 2008-02-01 Kenichi Handa <handa@m17n.org>
20604
20605 * character.c (lisp_string_width): Check multibyteness of STRING.
20606
20607 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20608
20609 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20610 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20611 (decode_mac_font_name): Use decode_coding_c_string instead of
20612 decode_coding.
20613 (x_load_font): Initialize fontp->fontset to -1. Set
20614 fontp->encoding_type.
20615
20616 2008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * search.c (search_buffer): Give up BM search on case-fold-search
20619 if one of a target character has a case-equivalence of different
20620 byte length even if that target character is an ASCII.
20621 (simple_search): Fix calculation of byte length of matched text.
20622 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20623
20624 2008-02-01 Kenichi Handa <handa@m17n.org>
20625
20626 * coding.c (decode_coding): Fix handling of invalid bytes.
20627
20628 2008-02-01 Kenichi Handa <handa@m17n.org>
20629
20630 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20631 Unicode characters.
20632
20633 2008-02-01 Kenichi Handa <handa@m17n.org>
20634
20635 * coding.c (encode_coding_object): If a pre-write-conversion
20636 function makes a new buffer, kill it.
20637
20638 2008-02-01 Kenichi Handa <handa@m17n.org>
20639
20640 * coding.c (QCascii_compatible_p): New variable.
20641 (syms_of_coding): Initialize it.
20642 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20643 calling string_char.
20644 (record_conversion_result): Add `default:' case.
20645 (coding_charset_list): Delete unused variable `coding_type'.
20646 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20647 property in the plist of the coding system.
20648 (Fcoding_system_put): Check QCascii_compatible_p.
20649
20650 2008-02-01 Miles Bader <miles@gnu.org>
20651
20652 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20653 removed calculation of frame `f', as it's now used.
20654
20655 2008-02-01 Kenichi Handa <handa@m17n.org>
20656
20657 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20658 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20659 (UNIDATA): New variable.
20660 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20661 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20662 $(RUN_TEMACS) unconditionally.
20663
20664 2008-02-01 Kenichi Handa <handa@m17n.org>
20665
20666 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20667 (admindir): New variable.
20668 ($(lispsource)international/charprop.el): New target.
20669
20670 2008-02-01 Miles Bader <miles@gnu.org>
20671
20672 * character.c (chars-in-region): Remove obsolete function.
20673 (syms_of_character): Remove its initialization.
20674
20675 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20676
20677 * w32select.c (validate_coding_system)
20678 (setup_windows_coding_system): New functions.
20679 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20680 setup_windows_coding_system.
20681 (setup_config, Fw32_get_clipboard_data): Use
20682 validate_coding_system.
20683 (Fx_selection_exists): Move call to setup_config to a place
20684 where signals are allowed.
20685
20686 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20687 (Fcheck_coding_system): Add declarations.
20688
20689 2008-02-01 Kenichi Handa <handa@m17n.org>
20690
20691 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20692
20693 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20694
20695 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20696 string as the second argument for x_new_fontset.
20697
20698 2008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20701 (encode_coding_object): Use safe_call instead of call2.
20702
20703 2008-02-01 Kenichi Handa <handa@m17n.org>
20704
20705 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20706
20707 * Makefile.in (lisp): Include charprop.el.
20708
20709 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20710
20711 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20712 Not sure if it's unnecessary.
20713
20714 2008-02-01 Steven Tamm <steventamm@mac.com>
20715
20716 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20717 some possibly unnecessary fontset checking code that crashed
20718 when creating a new frame.
20719
20720 2008-02-01 Kenichi Handa <handa@m17n.org>
20721
20722 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20723 lookup_face.
20724
20725 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20726
20727 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20728
20729 2008-02-01 Kenichi Handa <handa@m17n.org>
20730
20731 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20732 (coding_charset_list): New function.
20733
20734 * coding.h (coding_charset_list): Extern it.
20735
20736 2008-02-01 Kenichi Handa <handa@m17n.org>
20737
20738 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20739 concatenation of family and registry.
20740
20741 2008-02-01 Kenichi Handa <handa@m17n.org>
20742
20743 * character.h (BYTE8_STRING): Fix typo.
20744
20745 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20746 string to multibyte (sync to HEAD).
20747
20748 * casefiddle.c (casify_region): Handle changes in byte-length
20749 using replace_range_2 (sync to HEAD).
20750
20751 2008-02-01 Andreas Schwab <schwab@suse.de>
20752
20753 * chartab.c (map_char_table): GCPRO table and arg.
20754
20755 2008-02-01 Kenichi Handa <handa@m17n.org>
20756
20757 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20758 already at limit.
20759
20760 2008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20763 instead of fast_c_string_match_ignore_case.
20764 (find_font_encoding): Change argument to Lisp_Object. Use
20765 fast_string_match_ignore_case instead of
20766 fast_c_string_match_ignore_case. Change caller.
20767
20768 2008-02-01 Kenichi Handa <handa@m17n.org>
20769
20770 * xdisp.c (get_next_display_element): In unibyte case, decide to
20771 display in octal form by checking a character by
20772 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20773
20774 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20775
20776 * character.c (unibyte_has_multibyte_table): New variable.
20777
20778 * character.h (unibyte_has_multibyte_table): Extern it.
20779 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20780
20781 2008-02-01 Kenichi Handa <handa@m17n.org>
20782
20783 * coding.c (encode_coding_iso_2022): Fix handling of charset
20784 annotation.
20785
20786 2008-02-01 Kenichi Handa <handa@m17n.org>
20787
20788 * coding.c (setup_coding_system): If coding_system is nil, use
20789 Qundecided.
20790 (Fterminal_coding_system): Return nil if terminal coding system is
20791 `undecided'.
20792 (syms_of_coding): Define coding-system `undecided' here. Setup
20793 terminal_coding as `undecided'.
20794
20795 2008-02-01 Kenichi Handa <handa@m17n.org>
20796
20797 * xdisp.c (message_dolog, set_message_1): Call
20798 unibyte_char_to_multibyte with arg type int.
20799
20800 * lread.c (read1): Fix reading of a char-table.
20801
20802 * print.c (print_object): Include sub char-table in circularities
20803 detection.
20804
20805 2008-02-01 Kenichi Handa <handa@m17n.org>
20806
20807 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20808 Append the found sequences in car of ARGS instead of prepending.
20809
20810 2008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * fileio.c (report_file_error): Make a unibyte string from
20813 strerror (errorno).
20814 (Fsubstitute_in_file_name): Fix the arg to
20815 unibyte_char_to_multibyte. It is evaluated twice.
20816
20817 2008-02-01 Kenichi Handa <handa@m17n.org>
20818
20819 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20820
20821 2008-02-01 Kenichi Handa <handa@m17n.org>
20822
20823 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20824 BOM is not found.
20825 (detect_coding, detect_coding_system): Optimization for ISO-2022
20826 when no 8-bit data is found.
20827
20828 2008-02-01 Jason Rumney <jasonr@gnu.org>
20829
20830 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20831
20832 2008-02-01 Kenichi Handa <handa@m17n.org>
20833
20834 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20835 CHARS.
20836
20837 2008-02-01 Steven Tamm <steventamm@mac.com>
20838
20839 * macterm.c (mac_encode_char): Add charset argument and update
20840 to use encoding_type.
20841 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20842 switch to pure fontset.
20843 (decode_mac_font_name): Temporarily remove decoding.
20844 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20845 (x_load_font): Temporarily remove encoding.
20846
20847 2008-02-01 Kenichi Handa <handa@m17n.org>
20848
20849 * xfaces.c (Fface_font): If frame is not on a window system,
20850 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20851 refer to face->font.
20852 (split_font_name_into_vector, build_font_name_from_vector)
20853 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20854 when HAVE_WINDOW_SYSTEM is defined.
20855
20856 2008-02-01 Kenichi Handa <handa@m17n.org>
20857
20858 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20859 (x_produce_glyphs): Fix setting of members of cmp in case
20860 cmp->glyph_len is zero.
20861
20862 * fontset.c (Fset_fontset_font): Fix docstring.
20863 (Ffontset_info): Make it backward compatible. New arg ALL.
20864
20865 2008-02-01 Kim F. Storm <storm@cua.dk>
20866
20867 * process.c (read_process_output): Grow decoding_buf when needed;
20868 this could cause a crash in allocate_string and compact_small_strings.
20869
20870 2008-02-01 Kenichi Handa <handa@m17n.org>
20871
20872 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20873
20874 2008-02-01 Kenichi Handa <handa@m17n.org>
20875
20876 * coding.c (setup_coding_system): Set coding->common_flags
20877 correctly for raw-text.
20878 (consume_chars): On encoding unibyte text by raw-text, don't check
20879 multibyte form.
20880 (encode_coding): On encoding by raw-text, never use translation tables.
20881
20882 * fileio.c (e_write): Short cut for the case of no encoding.
20883
20884 2008-02-01 Kenichi Handa <handa@m17n.org>
20885
20886 * coding.c (detect_coding, detect_coding_system): Delete unused
20887 variables.
20888
20889 2008-02-01 Kenichi Handa <handa@m17n.org>
20890
20891 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20892 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20893
20894 2008-02-01 Kenichi Handa <handa@m17n.org>
20895
20896 * coding.c (Ffind_coding_systems_region_internal): Include
20897 raw-text and no-conversion in the result.
20898
20899 2008-02-01 Kenichi Handa <handa@m17n.org>
20900
20901 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20902 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20903 FONT_DEF.
20904 (font_def_arg, add_arg, from_arg, to_arg): New args.
20905 (set_fontset_font): Change argument.
20906 (Fset_fontset_font): Fix for the case that TARGET is a script
20907 name and charset name.
20908 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20909
20910 2008-02-01 Kenichi Handa <handa@m17n.org>
20911
20912 * fontset.c (fontset_font): Rename from fontset_face. Change return
20913 value.
20914 (face_suitable_for_char_p, face_for_char): Adjust for the change
20915 of fontset_font.
20916 (make_fontset_for_ascii_face): Fix setting of the fontset element
20917 for ASCII.
20918 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20919 to get a font name.
20920 (Ffontset_info): Adjust for the change of fontset_font.
20921
20922 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20923
20924 * character.h (LEADING_CODE_LATIN_1_MIN)
20925 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20926
20927 2008-02-01 Kenichi Handa <handa@m17n.org>
20928
20929 * editfns.c (check_translation): New function.
20930 (Ftranslate_region_internal): Handle M:N mapping.
20931
20932 2008-02-01 Kenichi Handa <handa@m17n.org>
20933
20934 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20935
20936 2008-02-01 Kenichi Handa <handa@m17n.org>
20937
20938 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20939 goto invalid_code.
20940 (decode_coding_iso_2022): Fix handling of invalid designation.
20941
20942 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20943 after calling code_conversion_save.
20944
20945 2008-02-01 Kenichi Handa <handa@m17n.org>
20946
20947 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20948
20949 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20950
20951 * fontset.c: Include "intervals.h".
20952 (fontset_face): Fix comparing of Lisp_Objects.
20953 (free_face_fontset, new_fontset_from_font_name): Fix
20954 Lisp_Object/int mixup.
20955
20956 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20957
20958 * coding.c: Add many prototypes for static functions.
20959 (get_translation_table): Allow max_lookup to be NULL.
20960 (decode_coding, Ffind_coding_systems_region_internal)
20961 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20962 get_translation_table with max_lookup NULL.
20963
20964 2008-02-01 Kenichi Handa <handa@m17n.org>
20965
20966 * coding.c (get_translation_table): Declare it as Lisp_Object.
20967 (LOOKUP_TRANSLATION_TABLE): New macro.
20968 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20969 instead of CHAR_TABLE_REF.
20970
20971 2008-02-01 Kenichi Handa <handa@m17n.org>
20972
20973 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20974 annotation data format.
20975 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20976 Change arguments FROM and TO to single argument NCHARS. Change caller.
20977 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20978 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20979 (decode_coding_ccl, decode_coding_charset): Pay attention to
20980 coding->charbuf_used.
20981 (get_translation): New function.
20982 (produce_chars): New arguments translation_table and last_block.
20983 Translate characters here. Return number of carryover chars.
20984 Change caller.
20985 (produce_composition): New argument pos. Change caller.
20986 Adjust for the change of annotation data format.
20987 (produce_charset, produce_annotation): Likewise.
20988 (decode_coding, encode_coding): Don't call translate_chars.
20989 (consume_chars): New arg translation_table. Change caller.
20990 (translate_chars): Delete.
20991 (syms_of_coding): Make translation-table's number of extra slots 2.
20992
20993 2008-02-01 Kenichi Handa <handa@m17n.org>
20994
20995 * search.c (simple_search): Fix setting this_pos_byte in backward
20996 search.
20997
20998 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20999 byte sequence.
21000 (detect_coding_ccl): Fix setting of the variable valids.
21001
21002 2008-02-01 Kenichi Handa <handa@m17n.org>
21003
21004 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21005
21006 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21007
21008 * editfns.c (Ftranslate_region_internal): Rename from
21009 Ftranslate_region. Accept a char-table in TABLE.
21010 (syms_of_editfns): Defsubr Stranslate_region_internal.
21011
21012 * xfaces.c (set_lface_from_font_name): If a font is specified for
21013 a frame, generate a fontset from the font.
21014 (build_scalable_font_name): If the scalable font is requested for
21015 a specific size, don't change that size.
21016 (try_font_list): Try a scalable font also in the case that a
21017 pattern string is specified.
21018
21019 2008-02-01 Kenichi Handa <handa@m17n.org>
21020
21021 * xfaces.c (Fface_font): New optional arg CHARACTER.
21022
21023 2008-02-01 Kenichi Handa <handa@m17n.org>
21024
21025 * charset.h (CHARSET_OFFSET): New macro.
21026
21027 2008-02-01 Kenichi Handa <handa@m17n.org>
21028
21029 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21030
21031 * fontset.c (fontset_face): Handle the case that repertory is a
21032 char-table.
21033 (find_font_encoding): Return nil for unknown encoding.
21034 (Fset_fontset_font): Ignore a font of unknown encoding.
21035
21036 2008-02-01 Kenichi Handa <handa@m17n.org>
21037
21038 * keymap.c (describe_vector): Handle default value of a char table.
21039
21040 * fontset.c (fontset_face): Handle fallback fonts correctly.
21041 (Ffontset_info): Return infomation about fallback fonts.
21042
21043 2008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * fontset.c (FONTSET_DEFAULT): New macro.
21046 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21047 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21048 the case that it is nil.
21049 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21050 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21051
21052 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21053 subset or superset.
21054
21055 2008-02-01 Kenichi Handa <handa@m17n.org>
21056
21057 * emacs.c (main): Call init_charset after syms_of_XXX.
21058
21059 * charset.c (Vcharset_map_directory): Delete.
21060 (Vcharset_map_path): New variable.
21061 (load_charset_map_from_file): Use Vcharset_map_path instead.
21062 (init_charset): Initialize Vcharset_map_path.
21063 (syms_of_charset): Delete declaration of "charset-map-directory",
21064 add declaration of "charset-map-path".
21065
21066 2008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21069 ASCII only string.
21070
21071 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21072
21073 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21074 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21075
21076 2008-02-01 Kenichi Handa <handa@m17n.org>
21077
21078 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21079
21080 * coding.c (QCmnemonic, QCdefalut_char)
21081 (QCdecode_translation_table, QCencode_translation_table)
21082 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21083 (get_translation_table): Return a list of translation tables if
21084 necessary.
21085 (decode_coding): Call get_translation_table with ENCODEP 0.
21086 (char_encodable_p): If translation_table is non-nil, always call
21087 translate_char.
21088 (Fdefine_coding_system_internal): Accept list of translation
21089 tables as :encode-translation-table and :decode-translation-table.
21090 (Fcoding_system_put): New function.
21091 (syms_of_coding): Declare new symbols. Defsubr
21092 Scoding_system_put.
21093 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21094 typically JISX0212.
21095
21096 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21097 when the charset is superset type.
21098
21099 * character.c (translate_char): Accept list of translation tables.
21100
21101 2008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21104 (CODING_ATTR_TRANS_TBL): New macro.
21105
21106 * coding.c (get_translation_table): New function.
21107 (translate_chars): Fix the bug of skipping annotation data.
21108 (decode_coding, encode_coding): Utilize get_translation_table.
21109 (char_encodable_p, Funencodable_char_position): Translate char if
21110 necessary.
21111 (Ffind_coding_systems_region_internal)
21112 (Fcheck_coding_systems_region): Setup translation table for encode
21113 in a coding system attribute vector in advance.
21114 (Fdefine_coding_system_internal): Allow a symbol as translation
21115 table. For shift-jis type coding system, allow 4th charset.
21116
21117 2008-02-01 Kenichi Handa <handa@m17n.org>
21118
21119 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21120
21121 * xdisp.c (get_next_display_element): Pass -1 as POS to
21122 FACE_FOR_CHAR if displaying a C-string.
21123
21124 2008-02-01 Kenichi Handa <handa@m17n.org>
21125
21126 * composite.c (get_composition_id): Handle xoff and yoff in a
21127 composition rule.
21128
21129 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21130 (struct composition): New member lbearing and rbearing.
21131
21132 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21133 (x_get_glyph_overhangs): Handle a composition glyph.
21134 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21135
21136 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21137 composition glyph.
21138
21139 2008-02-01 Kenichi Handa <handa@m17n.org>
21140
21141 * print.c: Include charset.h.
21142 (Vprint_charset_text_property): New variable.
21143 (Qdefault): Extern it.
21144 (PRINT_STRING_NON_CHARSET_FOUND)
21145 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21146 (print_check_string_result): New variable.
21147 (print_check_string_charset_prop): New function.
21148 (print_prune_charset_plist): New variable.
21149 (print_prune_string_charset): New function.
21150 (print_object): Call print_prune_string_charset if
21151 Vprint_charset_text_property is not t.
21152 (print_interval): Print nothing if interval->plist is nil.
21153 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21154 variable. Init and staticpro print_prune_charset_plist.
21155
21156 2008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * fontset.c (new_fontset_from_font_name): Use the specified font
21159 for all characters in the new fontset.
21160
21161 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21162 OBJECT args.
21163
21164 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21165 OBJECT args for composition too.
21166
21167 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21168 OBJECT args.
21169
21170 2008-02-01 Kenichi Handa <handa@m17n.org>
21171
21172 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21173
21174 * fontset.c (reorder_font_vector): Adjust for the change of
21175 FONT_DEF format.
21176 (fontset_face): New arg id. Change caller.
21177 (face_for_char): New args pos and object.
21178 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21179 (fs_query_fontset): Check NAME by Fassoc too.
21180 (Fset_fontset_font): Allow non-XLFD font name.
21181 (Ffontset_info): Adjust for the change of FONT_DEF format.
21182
21183 * fontset.h (face_for_char): Adjust prototype.
21184
21185 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21186 (append_space, extend_face_to_end_of_line)
21187 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21188 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21189
21190 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21191 POS and OBJECT args.
21192
21193 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21194 POS and OBJECT args.
21195
21196 2008-02-01 Jason Rumney <jasonr@gnu.org>
21197
21198 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21199 of GlobalAlloc'ed memory.
21200
21201 2008-02-01 Kenichi Handa <handa@m17n.org>
21202
21203 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21204
21205 * charset.h (charset_table_used): Delete extern.
21206
21207 * charset.c (charset_table_used): Make it static.
21208 (map_charset_chars): Fix args to c_function with.
21209
21210 * chartab.c (map_sub_char_table_for_charset): Fix args to
21211 c_function with.
21212
21213 * coding.h (enum coding_result_code): Delete
21214 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21215
21216 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21217 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21218 (Vlast_code_conversion_error): New variables.
21219 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21220 (ONE_MORE_BYTE): Record error if any instead of signaling an
21221 error. If non-ASCII multibyte char is found, return the negative
21222 value of the code. All callers changed to check it.
21223 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21224 (record_conversion_result): New function. Change all codes setting
21225 coding->result to call this function.
21226 (detect_coding_utf_8, decode_coding_utf_8)
21227 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21228 Don't use the local variable incomplete.
21229 (emacs_mule_char): Change the second arg to `const'.
21230 (decode_coding): Fix of flushing out unprocessed data.
21231 (make_conversion_work_buffer): Fix making of a work buffer.
21232 (decode_coding_object): Return coding->dst_object.
21233
21234 * fontset.c (set_fontset_font): Fix args.
21235
21236 * lisp.h (CHARACTERBITS): Define as 22.
21237
21238 * process.c (send_process): Be sure to set coding->src_multibyte.
21239
21240 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21241
21242 2008-02-01 Kenichi Handa <handa@m17n.org>
21243
21244 * xdisp.c (handle_auto_composed_prop): Give limit to
21245 Fnext_single_char_property_change.
21246
21247 2008-02-01 Kenichi Handa <handa@m17n.org>
21248
21249 * composite.c (syms_of_composite): Don't make the composition hash
21250 table weak.
21251
21252 * fontset.c (Fset_fontset_font): Fix docstring.
21253
21254 * lisp.h (detect_coding_system): Adjust prototype.
21255
21256 * fileio.c (kill_workbuf_unwind): Delete this function.
21257 (Finsert_file_contents): Adjust the call of detect_coding_system.
21258 Get conversion_buffer by code_conversion_save. Use the macro
21259 CODING_MAY_REQUIRE_DECODING. After decoding, update
21260 coding_system.
21261
21262 * coding.h (make_conversion_work_buffer): Delete extern.
21263 (code_conversion_save): Extern it.
21264
21265 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21266 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21267 (decode_coding_utf_8): Don't do eol converion.
21268 (detect_coding_utf_16): Check coding->src_chars, not
21269 coding->src_bytes. Add heuristics for those that have no signature.
21270 (decode_coding_emacs_mule, decode_coding_iso_2022)
21271 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21272 Don't do eol converion.
21273 (adjust_coding_eol_type): Return a new coding system.
21274 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21275 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21276 each change.
21277 (decode_coding): Pay attention to undo_list. Do eol conversion for
21278 all types of coding-systems (if necessary).
21279 (Vcode_conversion_work_buf_list): Delete it.
21280 (Vcode_conversion_reused_workbuf): Rename from
21281 Vcode_conversion_reused_work_buf.
21282 (Vcode_conversion_workbuf_name): New variable.
21283 (reused_workbuf_in_use): New variable.
21284 (make_conversion_work_buffer): Delete the arg DEPTH.
21285 (code_conversion_restore): Change argument to cons.
21286 (code_conversion_save): Delete the argument BUFFER. Change callers.
21287 (detect_coding_system): New argument src_chars. Change callers.
21288 Fix for utf-16 detection.
21289 (init_coding_once): Don't use ISO_carriage_return.
21290 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21291 reused_workbuf_in_use.
21292
21293 2008-02-01 Kenichi Handa <handa@m17n.org>
21294
21295 * keymap.c (store_in_keymap): Pay attention to the case that idx
21296 is a cons specifying a character range.
21297
21298 2008-02-01 Kenichi Handa <handa@m17n.org>
21299
21300 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21301 HANDLED_RECOMPUTE_PROPS.
21302
21303 * coding.c (Fdefine_coding_system_internal): Fix checking of
21304 ascii compatibility.
21305
21306 2008-02-01 Kenichi Handa <handa@m17n.org>
21307
21308 * charset.c (find_charsets_in_text): Delete unused locale variable.
21309 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21310
21311 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21312 Resync charset_list to Vemacs_mule_charset_list.
21313
21314 * keymap.c (store_in_keymap): Pay attention to the case that idx
21315 is a cons specifying a character range.
21316
21317 2008-02-01 Kenichi Handa <handa@m17n.org>
21318
21319 * composite.c (update_compositions): Bind inhibit-read-only, etc
21320 to t before calling remove-list-of-text-properties.
21321
21322 * print.c (print_object): Always print ASCII chars as is.
21323
21324 2008-02-01 Kenichi Handa <handa@m17n.org>
21325
21326 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21327
21328 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21329 is a char table.
21330
21331 2008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21334
21335 2008-02-01 Kenichi Handa <handa@m17n.org>
21336
21337 * xfaces.c (set_lface_from_font_name): Fix for the case that
21338 FONTNAME is not fontset name.
21339
21340 2008-02-01 Kenichi Handa <handa@m17n.org>
21341
21342 * fns.c (base64_encode_1): Fix previous change.
21343
21344 2008-02-01 Kenichi Handa <handa@m17n.org>
21345
21346 * fontset.c (set_fontset_font): New function.
21347 (Fset_fontset_font): If a font is specified for a charset, use
21348 map_charset_chars to store the font spec in a fontset.
21349
21350 2008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * fontset.c (fontset_face): Create a fallback fontset on demand.
21353 (make_fontset): Don't create a fallback fontset here.
21354 (free_face_fontset): Free a fallback fontset (if any) too.
21355 (n_auto_fontsets): Delete this variable.
21356 (auto_fontset_alist): New variable.
21357 (new_fontset_from_font_name): Check auto_fontset_alist.
21358 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21359 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21360 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21361 Defsubr Sfontset_list_all.
21362
21363 2008-02-01 Kenichi Handa <handa@m17n.org>
21364
21365 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21366
21367 2008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21370
21371 2008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * editfns.c (Fgoto_char): Fix docstring.
21374
21375 2008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * insdel.c (insert_from_gap): Adjust intervals correctly.
21378
21379 2008-02-01 Jason Rumney <jasonr@gnu.org>
21380
21381 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21382 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21383 (w32_initialize): Try to load it.
21384 (x_get_font_repertory): Use it if available.
21385 (w32_encode_char): Add shortcut for unicode output.
21386
21387 * w32fns.c (w32_load_system_font): Default charset to -1.
21388 (x_to_w32_charset): Match all fonts for unicode.
21389 (w32_to_x_charset): New parameter matching. Don't return partial
21390 or wildcard charsets.
21391 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21392 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21393 (w32_to_x_font): Match charset to real charset.
21394 (enum_font_cb2): Always list unicode versions.
21395
21396 * makefile.w32-in (temacs): Increase EMHEAP.
21397
21398 2008-02-01 Jason Rumney <jasonr@gnu.org>
21399
21400 * w32term.c (w32_encode_char): New charset parameter.
21401 font_info.encoding becomes encoding_type.
21402 (x_get_font_repertory): New function. Warning: stub only!
21403 (x_new_font): Return quickly if font already set.
21404 (x_new_fontset): fontsetname parameter is Lisp_Object.
21405 Use new fs_query_fontset. Try new_fontset_from_font_name.
21406 Use fontset_name for return value.
21407
21408 * w32term.h: Declare x_get_font_repertory.
21409
21410 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21411 place of find_charset_in_text. Use encode_coding_object in place
21412 of encode_coding.
21413 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21414 decode_coding.
21415
21416 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21417 of x_new_fontset.
21418 (w32_load_system_font): Initialize charset as unicode.
21419 font_info.encoding becomes encoding_type.
21420 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21421 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21422 (syms_of_w32fns): Set get_font_repertory_func.
21423
21424 * w32console.c: Include character.h. Use terminal_encode_buffer
21425 from term.c.
21426 (write_glyphs): Use new version of encode_terminal_code. Use
21427 encode_coding_object in place of encode_coding.
21428
21429 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21430 encoding becomes encoding_type.
21431
21432 * term.c (terminal_encode_buffer): Make externally visible.
21433
21434 * makefile.w32-in: Add character.h dependancies.
21435 (character.o, chartab.o): New targets.
21436
21437 2008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21440 CODING_ID_EOL_TYPE.
21441
21442 2008-02-01 Andreas Schwab <schwab@suse.de>
21443
21444 * coding.c (produce_chars): Revert last change.
21445
21446 2008-02-01 Kenichi Handa <handa@m17n.org>
21447
21448 * charset.h (charset_unicode): Extern it.
21449
21450 * charset.c (string_xstring_p): Check by (C >= 0x100).
21451 (find_charsets_in_text): Change format of the arc CHARSETS. New
21452 arg MULTIBYTE.
21453 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21454 change of find_charsets_in_text.
21455 (Fsplit_char): Fix doc. Never return unknown.
21456
21457 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21458
21459 * coding.c (Fdefine_coding_system_alias): Update
21460 Vcoding_system_list.
21461
21462 * fontset.c (load_font_get_repertory): Pay attention to the case
21463 that ENCODING of a font is specified by a char-table.
21464
21465 * xterm.c (x_get_font_repertory): Handle the case that the
21466 encoding of font is other than Unicode.
21467
21468 2008-02-01 Kenichi Handa <handa@m17n.org>
21469
21470 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21471 if a character is encodable by the terminal coding system. If
21472 not, produces proper number of `?'s. Update
21473 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21474 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21475
21476 2008-02-01 Kenichi Handa <handa@m17n.org>
21477
21478 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21479 variables.
21480 (encode_terminal_code): Change argument. Encode multiple
21481 characters at once. Store the result of encoding in
21482 terminal_encode_buffer.
21483 (write_glyphs, insert_glyphs): Adjust for the change of
21484 encode_terminal_code.
21485 (term_init): Initialize terminal_encode_buffer and
21486 terminal_encode_buf_size.
21487
21488 * coding.c (consume_chars): If coding->src_object is nil, don't
21489 check annotation.
21490
21491 2008-02-01 Kenichi Handa <handa@m17n.org>
21492
21493 * character.c (char_string): Use ASCII_CHAR_P instead of
21494 SINGLE_BYTE_CHAR_P.
21495
21496 2008-02-01 Kenichi Handa <handa@m17n.org>
21497
21498 * xdisp.c (handle_auto_composed_prop): Check if the last
21499 characters of auto-composed region is newly composed with the
21500 following characters.
21501 (handle_composition_prop): Fix checking of point being inside
21502 composition.
21503
21504 2008-02-01 Kenichi Handa <handa@m17n.org>
21505
21506 * fns.c (concat): Don't change multibyteness of the result by
21507 concatenating an 8-bit character.
21508
21509 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21510 multibyteness of the result when newelt is an 8-bit character.
21511
21512 2008-02-01 Dave Love <fx@gnu.org>
21513
21514 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21515 EMACS_INT.
21516
21517 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21518
21519 * xfaces.c (face_numeric_value): Declare dim size_t.
21520 (Finternal_lisp_face_equal_p): Remove unused f.
21521
21522 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21523 (MATRIX_ROW): Remove unused vars.
21524 (draw_glyphs, x_insert_glyphs, fast_find_position)
21525 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21526 byte/char counts.
21527
21528 * regex.c (regex_compile): Remove unused var.
21529
21530 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21531
21532 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21533 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21534
21535 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21536
21537 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21538
21539 * fileio.c (Fwrite_region): Remove unused var.
21540
21541 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21542 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21543
21544 * composite.c (Fremove_list_of_text_properties): Declare.
21545
21546 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21547 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21548 (coding_inherit_eol_type): Remove unused attrs.
21549 (detect_coding): Cast arg of detect_eol.
21550
21551 * charset.c (syms_of_charset): Remove unused var p.
21552 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21553 byte/char counts.
21554
21555 * casetab.c (set_case_table): Remove unused var.
21556
21557 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21558 unused vars.
21559
21560 2008-02-01 Dave Love <fx@gnu.org>
21561
21562 * xterm.c (x_bitmap_mask): Declare.
21563
21564 2008-02-01 Dave Love <fx@gnu.org>
21565
21566 * xterm.c (x_term_init): Fix type error.
21567
21568 * lisp.h: Add Funibyte_char_to_multibyte.
21569
21570 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21571 (Fset_coding_system_priority): Doc fix.
21572
21573 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21574
21575 * indent.c (check_composition): Make start and end EMACS_INT.
21576
21577 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21578
21579 * xdisp.c (handle_composition_prop, check_point_in_composition):
21580 Make buffer positions EMACS_INT.
21581
21582 * composite.c (find_composition, run_composition_function)
21583 (update_compositions, Ffind_composition_internal): Make buffer
21584 positions EMACS_INT.
21585
21586 * composite.h (find_composition, update_compositions): Make
21587 position args EMACS_INT.
21588
21589 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21590
21591 * intervals.c (get_property_and_range):
21592 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21593
21594 * unexalpha.c: Don't include varargs.h.
21595
21596 2008-02-01 Dave Love <fx@gnu.org>
21597
21598 * coding.h (ENCODE_UTF_8): New.
21599
21600 * Makefile.in (gtkutil.o): Depend on coding.h.
21601
21602 * coding.c (Fset_coding_system_priority): Doc fix.
21603
21604 2008-02-01 Kenichi Handa <handa@m17n.org>
21605
21606 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21607 the case of auto saving.
21608
21609 2008-02-01 Andreas Schwab <schwab@suse.de>
21610
21611 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21612 `range' from GC.
21613
21614 2008-02-01 Kenichi Handa <handa@m17n.org>
21615
21616 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21617
21618 2008-02-01 Kenichi Handa <handa@m17n.org>
21619
21620 * fileio.c (choose_write_coding_system): Return a decided coding system.
21621 (Fwrite_region): Set Vlast_coding_system_used to the return value
21622 of choose_write_coding_system.
21623
21624 2008-02-01 Kenichi Handa <handa@m17n.org>
21625
21626 * charset.c (Fset_charset_priority): Pay attention to duplicated
21627 arguments.
21628
21629 * coding.c (QCcategory): New variable.
21630 (syms_of_coding): Defsym it. Set all elements of
21631 Vcoding_category_table and their symbol values.
21632 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21633 coding-category-XXX, and coding-category-list.
21634 (Fdefine_coding_system_internal): Add category in the plist.
21635
21636 2008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * callproc.c (Fcall_process): Handle carryover correctly.
21639
21640 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21641 (raw_text_coding_system): Check NILP (coding_system).
21642 (coding_inherit_eol_type): Check NILP (coding_system) and
21643 NILP (parent).
21644 (consume_chars): Fix for the case of raw-text.
21645
21646 * process.c (read_process_output): Handle carryover correctly.
21647
21648 2008-02-01 Dave Love <fx@gnu.org>
21649
21650 * regex.c (re_search_2): Fix last change.
21651
21652 2008-02-01 Kenichi Handa <handa@m17n.org>
21653
21654 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21655 target_multibyte. Even in a unibyte case, return a converted
21656 multibyte char.
21657 (GET_CHAR_AFTER): New macro.
21658 (PATFETCH): Translate via multibyte char.
21659 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21660 (SETUP_MULTIBYTE_RANGE): New macro.
21661 (regex_compile): Setup compiled code so that its multibyteness
21662 matches that of a target. Fix the handling of "[X-YZ]" using
21663 SETUP_MULTIBYTE_RANGE.
21664 (analyse_first) <charset>: For filling fastmap for all multibyte
21665 characters, don't check by BASE_LEADING_CODE_P.
21666 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21667 the same as RE_MULTIBYTE_P (bufp) now.
21668 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21669 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21670 (TRANSLATE_VIA_MULTIBYTE): New macro.
21671 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21672 It is the same as RE_MULTIBYTE_P (bufp) now.
21673 <exactn>: Translate via multibyte.
21674 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21675 translate it.
21676 <charset, charset_not>: Fetch a character by
21677 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21678 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21679 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21680 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21681 by GET_CHAR_AFTER.
21682 (bcmp_translate): Likewise.
21683
21684 * search.c (compile_pattern): Check the member target_multibyte,
21685 not the member multibyte of buf.
21686
21687 * lread.c (read1): While reading a string, set force_singlebyte
21688 and force_multibyte correctly.
21689
21690 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21691 up of unibyte_to_multibyte_table.
21692
21693 2008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * coding.c (setup_coding_system): If coding has
21696 post-read-conversion or pre-write-conversion, set
21697 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21698 respectively.
21699 (decode_coding_gap): Run post-read-conversion if any.
21700
21701 * fileio.c (Finsert_file_contents): Even if we read into a
21702 unibyte buffer, check if we must decode the result or not.
21703
21704 2008-02-01 Kenichi Handa <handa@m17n.org>
21705
21706 * coding.c (make_conversion_work_buffer): Change the work buffer
21707 name to the same one as that of Emacs 21.
21708
21709 2008-02-01 Kenichi Handa <handa@m17n.org>
21710
21711 * coding.h (make_conversion_work_buffer): Adjust prototype.
21712 (code_conversion_restore): Don't extern it.
21713
21714 * coding.c (detected_mask): Delete unused variable.
21715 (decode_coding_iso_2022): Pay attention to the byte sequence of
21716 CTEXT extended segment, and retain those bytes as is.
21717 (decode_coding_ccl): Delete unused variable `valids'.
21718 (setup_coding_system): Delete unused variable `category'.
21719 (consume_chars): Delete unused variable `category'. Make it work
21720 for non-multibyte case.
21721 (make_conversion_work_buffer): Change argument.
21722 (saved_coding): Delete unused variable.
21723 (code_conversion_restore): Don't check saved_coding->destination.
21724 (code_conversion_save): New function.
21725 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21726 instead of record_unwind_protect.
21727 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21728 (detect_coding_system): Delete unused variable `mask'.
21729 (Fdefine_coding_system_internal): Delete unused variable id.
21730
21731 * fileio.c (kill_workbuf_unwind): New function.
21732 (Finsert_file_contents): On replacing, call
21733 make_conversion_work_buffer with correct args, and call
21734 record_unwind_protect with the first arg kill_workbuf_unwind.
21735
21736 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21737
21738 2008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21741 (fontset_add): Fix for the case that TO is less than TO1.
21742 (Ffontset_info): Don't use fallback fontset on checking the
21743 default fontset.
21744 (dump_fontset): New function for debugging.
21745
21746 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21747 coding_type is Qcharset.
21748
21749 2008-02-01 Kenichi Handa <handa@m17n.org>
21750
21751 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21752 (map_char_table): Don't inherit the value from the parent on
21753 initializing VAL. Adjust for the above change.
21754
21755 2008-02-01 Kenichi Handa <handa@m17n.org>
21756
21757 * coding.c (Qsignature, Qendian): Delete these variables.
21758 (syms_of_coding): Don't initialize them.
21759 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21760 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21761 detect_info->found.
21762 (decode_coding_utf_16): Don't detect BOM here.
21763 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21764 is NOT utf_16_without_bom.
21765 (setup_coding_system): For a coding system of type utf-16, check
21766 if the attribute :endian is Qbig or not (not nil or not), and set
21767 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21768 (detect_coding): If coding type is utf-16 and BOM detection is
21769 required, detect it.
21770 (Fdefine_coding_system_internal): For a coding system of type
21771 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21772
21773 2008-02-01 Kenichi Handa <handa@m17n.org>
21774
21775 * coding.c (coding_set_source): Fix for the case that the current
21776 buffer is different from coding->src_object.
21777 (decode_coding_object): Don't use the conversion work buffer if
21778 DST_OBJECT is a buffer.
21779
21780 2008-02-01 Dave Love <fx@gnu.org>
21781
21782 * lread.c (read_emacs_mule_char) [len==2]: Index
21783 emacs_mule_charset correctly.
21784
21785 2008-02-01 Dave Love <fx@gnu.org>
21786
21787 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21788 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21789 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21790 treated specially.)
21791 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21792 (detected_mask): Remove Big5 bits.
21793
21794 2008-02-01 Kenichi Handa <handa@m17n.org>
21795
21796 The following changes are to make the font rescaling facility
21797 compatible with Emacs 21.
21798
21799 * xfaces.c (Vface_font_rescale_alist): Rename from
21800 Vface_resizing_fonts.
21801 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21802 (font_rescale_ratio): Rename from font_resizing_ratio.
21803 (split_font_name): Set font->rescale_ratio.
21804 (better_font_p): Pay attention to font->rescale_ratio.
21805 (build_scalable_font_name): Likewise. Change RESX, and RESY
21806 fields.
21807 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21808
21809 2008-02-01 Kenichi Handa <handa@m17n.org>
21810
21811 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21812 (Qutf_16_le): Remove these variables.
21813 (syms_of_coding): Don't DEFSYM them.
21814 (decode_coding_utf_16): Fix handling of BOM.
21815 (encode_coding_utf_16): Fix handling of BOM.
21816
21817 2008-02-01 Kenichi Handa <handa@m17n.org>
21818
21819 * fileio.c (Finsert_file_contents): On replacing, before decoding
21820 the file into the work buffer, set point of the work buffer to the end.
21821
21822 2008-02-01 Dave Love <fx@gnu.org>
21823
21824 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21825
21826 2008-02-01 Dave Love <fx@gnu.org>
21827
21828 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21829 and fix C types.
21830
21831 2008-02-01 Kenichi Handa <handa@m17n.org>
21832
21833 * xdisp.c (SKIP_GLYPHS): New macro.
21834 (set_cursor_from_row): Pay attention to string display properties.
21835
21836 * category.c (copy_category_entry): Fix for the case that RANGE
21837 is an integer.
21838
21839 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21840
21841 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21842
21843 2008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * charset.c (Fcharset_id_internal): New function.
21846 (syms_of_charset): Defsubr it.
21847
21848 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21849 with the last arg charset_list acquired from coding.
21850 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21851 the attribute coding_attr_ccl_valids.
21852
21853 * coding.h (enum define_coding_ccl_arg_index): Set the first
21854 member coding_arg_ccl_decoder to coding_arg_max.
21855
21856 * ccl.h (ccl_driver): Adjust prototype.
21857
21858 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21859 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21860 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21861 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21862 last arg Qnil.
21863
21864 2008-02-01 Kenichi Handa <handa@m17n.org>
21865
21866 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21867 call encode_char.
21868
21869 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21870
21871 2008-02-01 Dave Love <fx@gnu.org>
21872
21873 * composite.c (syms_of_composite): Make composition_hash_table weak.
21874
21875 2008-02-01 Kenichi Handa <handa@m17n.org>
21876
21877 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21878 (font_name_registry): Don't extern them.
21879 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21880
21881 * fontset.h (Qfontset): Don't extern it.
21882 (new_fontset_from_font_name): Extern it.
21883
21884 * fontset.c: Give 8 extra slots to fontset objects.
21885 (Qfontset_info): New variable.
21886 (syms_of_fontset): Defsym it.
21887 (FONTSET_FALLBACK): New macro.
21888 (fontset_face): Try also the default fontset.
21889 (make_fontset): Realize a fallback fontset from the default fontset.
21890 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21891 using split_font_name_into_vector and build_font_name_from_vector.
21892 (Fset_fontset_font): Access the elements of font_spec by enum
21893 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21894 name by using split_font_name_into_vector.
21895 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21896 generate a proper font name from the fontset name. Update
21897 Vfontset_alias_alist.
21898 (n_auto_fontsets): New variable.
21899 (new_fontset_from_font_name): New function.
21900 (Ffont_info): Store the information about fonts generated from the
21901 default fontset in the first extra slot of the returned char-table.
21902
21903 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21904 (font_name_registry): Delete function.
21905 (split_font_name_into_vector): New function.
21906 (build_font_name_from_vector): New function.
21907 (font_list): The argument REGISTRY is now a list of registry names.
21908 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21909 specifies an explicit font name, return the name as is. Make a
21910 list of registy names.
21911
21912 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21913 of x_new_fontset.
21914 (Fx_create_frame): Don't call x_new_fontset here. Just use
21915 x_list_fonts to check the existence of fonts.
21916
21917 * xterm.h (x_new_fontset): Adjust prototype.
21918
21919 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21920 string. Use new_fontset_from_font_name to create a fontset from a
21921 font name.
21922
21923 2008-02-01 Kenichi Handa <handa@m17n.org>
21924
21925 * syntax.c (Vfind_word_boundary_function_table): New name for
21926 Vnext_word_boundary_function_table.
21927 (find-word-boundary-function-table): New name for
21928 next-word-boundary-function-table.
21929
21930 2008-02-01 Dave Love <fx@gnu.org>
21931
21932 * Makefile.in: Fix some dependencies.
21933
21934 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21935 set it to nil before returning.
21936
21937 * composite.c (update_compositions): Fix type error.
21938
21939 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21940
21941 2008-02-01 Kenichi Handa <handa@m17n.org>
21942
21943 * xterm.c (x_new_font): Optimize for the case that the font is
21944 already set for the frame.
21945
21946 2008-02-01 Kenichi Handa <handa@m17n.org>
21947
21948 * chartab.c (char_table_ascii): Check if the char table contents
21949 is sub-char-table or not.
21950 (char_table_set, char_table_set_range): Fix argument to
21951 char_table_ascii.
21952
21953 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21954 (detect_coding_utf_8, detect_coding_utf_16)
21955 (detect_coding_emacs_mule, detect_coding_iso_2022)
21956 (detect_coding_sjis, detect_coding_big5)
21957 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21958 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21959 sequence is valid in this coding system. Change callers.
21960 (MAX_ANNOTATION_LENGTH): New macro.
21961 (ADD_ANNOTATION_DATA): New macro.
21962 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21963 ADD_ANNOTATION_DATA. Change the format of annotation data.
21964 (ADD_CHARSET_DATA): New macro.
21965 (emacs_mule_char): New argument ID. Change callers.
21966 (decode_coding_emacs_mule, decode_coding_iso_2022)
21967 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21968 Produce charset annotation data in coding->charbuf.
21969 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21970 to charset annotation data in coding->charbuf.
21971 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21972 coding->common_flags if the coding system is iso-2022 based and
21973 uses designation.
21974 (produce_composition): Adjust for the new annotation data format.
21975 (produce_charset): New function.
21976 (produce_annotation): Handle charset annotation.
21977 (handle_composition_annotation, handle_charset_annotation): New
21978 functions.
21979 (consume_chars): Handle charset annotation. Utilize the above two
21980 functions.
21981 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21982 buffer, get the deleted text as a string and set
21983 coding->src_object to that string.
21984 (detect_coding, detect_coding_system): Use the new struct
21985 coding_detection_info.
21986
21987 * coding.h (struct coding_detection_info): New structure.
21988 (struct coding_system): Adjust prototype of the member `detector'.
21989 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21990
21991 2008-02-01 Kenichi Handa <handa@m17n.org>
21992
21993 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21994
21995 2008-02-01 Dave Love <fx@gnu.org>
21996
21997 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21998 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21999 to new local and nullify apropos_accumulate before returning.
22000 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22001
22002 2008-02-01 Kenichi Handa <handa@m17n.org>
22003
22004 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22005 correctly.
22006
22007 2008-02-01 Dave Love <fx@gnu.org>
22008
22009 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22010
22011 2008-02-01 Kenichi Handa <handa@m17n.org>
22012
22013 The following changes are to make character composition happen
22014 automatically on displaying.
22015
22016 * Makefile.in (lisp, shortlisp): Add composite.elc.
22017
22018 * composite.h (Qauto_composed, Vauto_composition_function)
22019 (Qauto_composition_function): Extern them.
22020
22021 * composite.c (Vcomposition_function_table)
22022 (Qcomposition_function_table): Delete variables.
22023 (Qauto_composed, Vauto_composition_function)
22024 (Qauto_composition_function): New variables.
22025 (run_composition_function): Don't call
22026 compose-chars-after-function.
22027 (update_compositions): Clear `auto-composed' text property.
22028 (compose_chars_in_text): Delete this function.
22029 (syms_of_composite): Staticpro Qauto_composed and
22030 Qauto_composition_function. Declare Vauto_composition_function as
22031 a Lisp variable.
22032
22033 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22034
22035 * xdisp.c (it_props): Add an entry for Qauto_composed.
22036 (handle_auto_composed_prop): New function.
22037
22038 * xselect.c (selection_data_to_lisp_data): Don't call
22039 compose_chars_in_text.
22040
22041 2008-02-01 Dave Love <fx@gnu.org>
22042
22043 * keyboard.c (read_char): Modify checking around use of
22044 Vkeyboard_translate_table.
22045
22046 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22047 and fix C types.
22048
22049 2008-02-01 Kenichi Handa <handa@m17n.org>
22050
22051 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22052 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22053 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22054 the case that the last byte is '\r' correctly.
22055 (decode_coding): Flush out the unprocessed data correctly.
22056 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22057
22058 2008-02-01 Dave Love <fx@gnu.org>
22059
22060 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22061 Add XK_ISO... case.
22062 (xaw_scroll_callback): Revert last change.
22063
22064 2008-02-01 Kenichi Handa <handa@m17n.org>
22065
22066 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22067
22068 2008-02-01 Kenichi Handa <handa@m17n.org>
22069
22070 * xfaces.c (Vface_resizing_fonts): New variable.
22071 (struct font_name): New member `resizing_ratio'.
22072 (font_resizing_ratio): New function.
22073 (split_font_name): Set font->resizing_ratio.
22074 (better_font_p): Pay attention to font->resizing_ratio.
22075 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22076 RESX, and RESY fields.
22077 (try_alternative_families): Try scalable fonts if
22078 Vscalable_fonts_allowed is not Qt.
22079 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22080
22081 2008-02-01 Dave Love <fx@gnu.org>
22082
22083 * xterm.c (xaw_scroll_callback): Cast correctly.
22084
22085 2008-02-01 Dave Love <fx@gnu.org>
22086
22087 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22088 (lispy_kana_keys): Comment out.
22089 (make_lispy_event) [XK_kana_A]: Comment out.
22090
22091 * xterm.c (xaw_scroll_callback): Cast call_data.
22092 (XTread_socket): Deal with ASCII keysyms.
22093 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22094
22095 2008-02-01 Dave Love <fx@gnu.org>
22096
22097 * xterm.c (Vx_keysym_table): New.
22098 (syms_of_xterm): Initialize it.
22099 (XTread_socket): Use it.
22100 From head: Eliminate incorrect optimization that tried to avoid
22101 decoding the output of X*LookupString.
22102 (x_get_font_repertory): Delete charset declaration.
22103
22104 2008-02-01 Kenichi Handa <handa@m17n.org>
22105
22106 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22107 return 0.
22108 (Fdefine_coding_system_internal): Setup
22109 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22110
22111 2008-02-01 Dave Love <fx@gnu.org>
22112
22113 * coding.c (Fcheck_coding_system): Doc fix.
22114
22115 * editfns.c (Finsert_byte): Return a proper value.
22116
22117 2008-02-01 Kenichi Handa <handa@m17n.org>
22118
22119 * coding.c (decode_coding): Fix args to translate_chars. Pay
22120 attention to Vstandard_translation_table_for_decode.
22121 (encode_coding): Fix args to translate_chars. Pay attention to
22122 Vstandard_translation_table_for_encode.
22123
22124 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22125 SINGLE_BYTE_CHAR_P.
22126
22127 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22128 not by SINGLE_BYTE_CHAR_P.
22129
22130 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22131 SINGLE_BYTE_CHAR_P.
22132
22133 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22134 SINGLE_BYTE_CHAR_P.
22135
22136 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22137 by SINGLE_BYTE_CHAR_P.
22138
22139 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22140 SINGLE_BYTE_CHAR_P.
22141
22142 2008-02-01 Dave Love <fx@gnu.org>
22143
22144 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22145
22146 2008-02-01 Dave Love <fx@gnu.org>
22147
22148 * fns.c (Flanginfo): Fix typo.
22149
22150 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22151
22152 2008-02-01 Kenichi Handa <handa@m17n.org>
22153
22154 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22155 (detect_coding_emacs_mule, detect_coding_iso_2022)
22156 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22157 incomplete byte sequence. Don't update *mask when correctly detected.
22158 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22159 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22160 (detect_coding, detect_coding_system): Adjust for the changes above.
22161
22162 2008-02-01 Kenichi Handa <handa@m17n.org>
22163
22164 * character.c (char_string): Rename from
22165 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22166 (string_char): Rename from string_char.
22167
22168 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22169 if C is greater than MAX_3_BYTE_CHAR.
22170 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22171 string_char instead of string_char_with_unification.
22172
22173 2008-02-01 Dave Love <fx@gnu.org>
22174
22175 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22176
22177 2008-02-01 Kenichi Handa <handa@m17n.org>
22178
22179 * keymap.c (push_key_description): Pay attention to force_multibyte.
22180
22181 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22182
22183 2008-02-01 Dave Love <fx@gnu.org>
22184
22185 * charset.c (define_charset_internal): Rename `supprementary'.
22186
22187 * Makefile.in (lisp, shortlisp): Remove latin-N.
22188
22189 2008-02-01 Dave Love <fx@gnu.org>
22190
22191 * xfns.c (x_window, x_window): Use use_xim.
22192
22193 * xterm.c (use_xim): Initialize.
22194 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22195 (x_term_init): Maybe set use_xim.
22196
22197 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22198
22199 2008-02-01 Kenichi Handa <handa@m17n.org>
22200
22201 * search.c (search_buffer): Fix case-fold-search of multibyte
22202 characters.
22203 (boyer_moore): Rename the last argument to char_high_bits.
22204
22205 2008-02-01 Kenichi Handa <handa@m17n.org>
22206
22207 * xdisp.c (display_string): Fix for the case of zero width glyph.
22208
22209 * xfns.c (x_set_font): Change the error message of the case that
22210 x_new_fontset returns Qt.
22211
22212 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22213 (Finternal_set_lisp_face_attribute): Use signal_error for the
22214 error of invalid fontset.
22215
22216 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22217 fontset, return Qt.
22218
22219 2008-02-01 Dave Love <fx@gnu.org>
22220
22221 * unexelf.c (unexec): Make .got handling not SGI-specific.
22222
22223 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22224
22225 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22226
22227 * keyboard.c (read_key_sequence): Fix type error.
22228
22229 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22230 type error.
22231
22232 * fontset.c (fontset_add): Return Lisp_Object.
22233
22234 2008-02-01 Dave Love <fx@gnu.org>
22235
22236 * charset.h (charset_ordered_list_tick): Declare extern.
22237
22238 2008-02-01 Kenichi Handa <handa@m17n.org>
22239
22240 The following changes (and some of 2008-02-01 changes of mine) are
22241 for handling syntax, category, and case conversion for unibyte
22242 characters by converting them to multibyte on the fly. With these
22243 changes, we don't have to setup syntax and case tables for unibyte
22244 characters in each language environment.
22245
22246 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22247 multibyte if necessary.
22248
22249 * bytecode.c (Fbyte_code): Likewise.
22250
22251 * character.h (LEADING_CODE_LATIN_1_MIN)
22252 (LEADING_CODE_LATIN_1_MAX): New macros.
22253 (unibyte_to_multibyte_table): Extern it.
22254 (unibyte_char_to_multibyte): New macro.
22255 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22256 (CHAR_LEADING_CODE): New macro.
22257 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22258
22259 * character.c (unibyte_to_multibyte_table): New variable.
22260 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22261 (multibyte_char_to_unibyte): If C is an eight-bit character,
22262 convert it to the corresponding byte value.
22263
22264 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22265 not 1, signals an error. Update the elements of
22266 unibyte_to_multibyte_table.
22267 (init_charset_once): Initialize unibyte_to_multibyte_table.
22268 (syms_of_charset): Define the charset `iso-8859-1'.
22269
22270 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22271 as is without converting it to unibyte. In a unibyte buffer,
22272 convert C to multibyte before checking the syntax.
22273
22274 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22275
22276 * minibuf.c (Fminibuffer_complete_word): Use the macro
22277 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22278
22279 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22280
22281 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22282 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22283 that is zero, convert an eight-bit char to multibyte.
22284 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22285 non-emacs case.
22286 (PATFETCH): Convert an eight-bit char to multibyte.
22287 (HANDLE_UNIBYTE_RANGE): New macro.
22288 (regex_compile): Setup the compiled pattern for multibyte chars
22289 even if the given regex string is unibyte. Use PATFETCH_RAW
22290 instead of PATFETCH in many places. To handle `charset'
22291 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22292 only for ASCII chars.
22293 (analyse_first) <exactn>: Simplify because the compiled pattern
22294 is multibyte.
22295 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22296 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22297 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22298 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22299 multibyte always 1.
22300 (re_search_2): In emacs, set the locale variable multibyte to 1,
22301 otherwise to 0. New local variable target_multibyte. Check it
22302 to decide the multibyteness of STR1 and STR2. If
22303 target_multibyte is zero, convert unibyte chars to multibyte
22304 before translating and checking fastmap.
22305 (TARGET_CHAR_AND_LENGTH): New macro.
22306 (re_match_2_internal): In emacs, set the locale variable multibyte
22307 to 1, otherwise to 0. New local variable target_multibyte. Check
22308 it to decide the multibyteness of STR1 and STR2. Use
22309 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22310 <charset, charset_not>: If multibyte is nonzero, check fastmap
22311 only for ASCII chars. Call bcmp_translate with
22312 target_multibyte, not with multibyte.
22313 <begline>: Declare the local variable C as `unsigned'.
22314 (bcmp_translate): Change the last arg name to target_multibyte.
22315
22316 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22317 the regexp pattern and the matching target. Set cp->buf.multibyte
22318 to the multibyteness of the regexp pattern. Set
22319 cp->but.target_multibyte to the multibyteness of the matching target.
22320 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22321 FETCH_STRING_CHAR_ADVANCE.
22322 (Freplace_match): Convert unibyte chars to multibyte.
22323
22324 * syntax.c (char_quoted, back_comment, scan_words)
22325 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22326 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22327 unibyte chars to multibyte.
22328 (skip_chars): Delete the arg syntaxp, and move the code for
22329 handling syntaxes to skip_syntaxes. Change callers.
22330 Fix the case that the multibyteness of STRING and the current
22331 buffer doesn't match.
22332 (skip_syntaxes): New function.
22333 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22334 SINGLE_BYTE_CHAR_P.
22335
22336 2008-02-01 Kenichi Handa <handa@m17n.org>
22337
22338 * xfaces.c (QCfontset): New variable.
22339 (LFACE_FONTSET): New macro.
22340 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22341 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22342 (Finternal_set_lisp_face_attribute)
22343 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22344 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22345 check also LFACE_FONTSET_INDEX.
22346 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22347 attrs[LFACE_FONT_INDEX].
22348 (syms_of_xfaces): Intern and staticpro QCfontset.
22349
22350 * dispextern.h (enum lface_attribute_index): New member
22351 LFACE_FONTSET_INDEX.
22352
22353 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22354
22355 2008-02-01 Kenichi Handa <handa@m17n.org>
22356
22357 * coding.c (coding_set_destination): Fix coding->destination for
22358 the case converting a region.
22359 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22360 (encode_coding_object): Fix coding->dst_pos and
22361 coding->dst_pos_byte for the case converting a region.
22362
22363 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22364
22365 * character.h (BYTE8_STRING): New macro.
22366
22367 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22368
22369 2008-02-01 Kenichi Handa <handa@m17n.org>
22370
22371 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22372 characters by octal form.
22373
22374 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22375
22376 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22377 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22378 _fetch_multibyte_char_len.
22379 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22380
22381 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22382
22383 * casefiddle.c (casify_object): Simplify. Handle the case that
22384 the case conversion change the byte length.
22385 (casify_region): Likewise.
22386
22387 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22388
22389 * character.c (_fetch_multibyte_char_len): Delete this variable.
22390 (syms_of_character): Setup Vprintable_chars.
22391
22392 * editfns.c (Fchar_equal): Fix for the unibyte case.
22393 (Finsert_byte): New function.
22394 (syms_of_editfns): Defsubr it.
22395
22396 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22397 of direct code 0x3ffff.
22398
22399 * search.c (Freplace_match): Fix for the unibyte case.
22400
22401 2008-02-01 Kenichi Handa <handa@m17n.org>
22402
22403 * lread.c (safe_to_load_p): Fix the logic.
22404
22405 * syntax.c (scan_words): Don't treat characters belonging to
22406 different scripts as constituting a word.
22407
22408 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22409
22410 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22411
22412 * emacs.c (main): In the case of --unibyte, instead of aborting on
22413 finding non-empty buffer, make it unibyte.
22414
22415 2008-02-01 Kenichi Handa <handa@m17n.org>
22416
22417 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22418 to create a fontset.
22419
22420 2008-02-01 Dave Love <fx@gnu.org>
22421
22422 * character.c (Funibyte_char_to_multibyte): Doc fix.
22423
22424 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22425
22426 2008-02-01 Kenichi Handa <handa@m17n.org>
22427
22428 * fontset.c (fontset_add): Make the type `int'.
22429 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22430
22431 * character.c (unibyte_char_to_multibyte)
22432 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22433 charset_unibyte, not charset_primary.
22434
22435 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22436
22437 * charset.c (charset_unibyte): Rename from charset_primary.
22438 (Funibyte_charset): Rename from Fprimary_charset.
22439 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22440 (syms_of_charset): Adjust for the above changes.
22441
22442 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22443 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22444 it->multibyte_p is zero.
22445
22446 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22447 Delete extern.
22448
22449 2008-02-01 Kenichi Handa <handa@m17n.org>
22450
22451 * coding.c (Fdefine_coding_system_internal): Fix category setting
22452 for a coding system of type iso-2022.
22453
22454 2008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22457
22458 2008-02-01 Kenichi Handa <handa@m17n.org>
22459
22460 * syntax.c (Vnext_word_boundary_function_table): New variable.
22461 (next-word-boundary-function-table): Declare it as a Lisp variable
22462 in syms_of_syntax.
22463 (scan_words): Call functions in Vnext_word_boundary_function_table
22464 if any.
22465
22466 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22467
22468 * fontset.c (fs_load_font): If fontp->charset is not negative,
22469 return fontp without setting its members.
22470
22471 2008-02-01 Dave Love <fx@gnu.org>
22472
22473 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22474
22475 * m/sparc.h (HAVE_ALLOCA): Delete.
22476
22477 * s/irix6-5.h: Don't include strings.h.
22478 (bcopy, bzero, bcmp): Don't undef.
22479
22480 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22481
22482 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22483 (TIOCSIGSEND): Don't test IRIX6.
22484 (bcopy, bzero, bcmp): Define conditionally.
22485
22486 2008-02-01 Kenichi Handa <handa@m17n.org>
22487
22488 * buffer.c (Qas, Qmake, Qto): New variables.
22489 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22490 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22491
22492 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22493 we are inserting a process output into a multibyte buffer.
22494
22495 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22496 multibyte_char_to_unibyte.
22497
22498 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22499 by the primary charset, make it eight-bit char.
22500 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22501
22502 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22503 (charset_8_bit__control, charset_8_bit_graphic)
22504 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22505 (define_charset_internal): New function.
22506 (syms_of_charset): Call define_charset_internal for pre-defined
22507 charsets.
22508
22509 * charset.h (charset_8_bit): Extern it.
22510
22511 * coding.c (make_conversion_work_buffer): Adjust for the change
22512 of Fset_buffer_multibyte.
22513 (encode_coding_raw_text): Increment p0 in the loop.
22514
22515 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22516
22517 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22518 for the change of Fset_buffer_multibyte.
22519
22520 * fns.c (Fstring_to_multibyte): New function.
22521 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22522
22523 2008-02-01 Dave Love <fx@gnu.org>
22524
22525 * xfns.c (x_put_x_image): Declare args.
22526
22527 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22528 (try_font_list): Declare an arg.
22529
22530 * xdisp.c (message2_nolog, set_message): Declare an arg.
22531
22532 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22533
22534 * syntax.c (scan_sexps_forward): Declare an arg.
22535
22536 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22537 Declare an arg.
22538
22539 * lisp.h (Fnew_fontset): Declare.
22540
22541 * keymap.c (push_key_description): Call CHARACTERP correctly.
22542
22543 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22544 (face_for_char): Delete unused vars.
22545 (Fset_fontset_font): Doc fix. Delete unused vars.
22546
22547 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22548
22549 * composite.c (update_compositions): Declare arg.
22550
22551 * cm.c (calccost, cmgoto): Declare args.
22552
22553 * charset.c: Remove `emacs' conditional. Doc fixes.
22554 (map_char_table_for_charset): Declare.
22555
22556 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22557
22558 * ccl.c: Remove `emacs' conditional.
22559
22560 2008-02-01 Kenichi Handa <handa@m17n.org>
22561
22562 The following changes are to allow specifying multiple font
22563 patterns for a character range (specified by script or charset).
22564
22565 * Makefile.in (abbrev.o): Depend on syntax.h.
22566 (xfaces.o): Depend on charset.h.
22567
22568 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22569 SINGLE_BYTE_CHAR_P.
22570
22571 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22572
22573 * character.h (Vchar_script_table): Extern it.
22574
22575 * character.c (Vscript_alist): Delete.
22576 (Vchar_script_table, Qchar_script_table): New variable.
22577 (syms_of_character): Declare Vchar_script_table as a lisp variable
22578 and initialize it.
22579
22580 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22581 have property char-table-extra-slots, make no extra slot.
22582
22583 * dispextern.h (struct face): Delete member `charset'.
22584 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22585 SINGLE_BYTE_CHAR_P.
22586 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22587 Add prototypes.
22588 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22589 (generate_ascii_font_name): Rename from generate_ascii_font.
22590
22591 * fontset.h (get_font_repertory_func): New prototype.
22592 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22593 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22594
22595 * fontset.c (Qprepend, Qappend): New variables.
22596 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22597 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22598 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22599 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22600 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22601 (load_font_get_repertory): New functions.
22602 (fontset_set): Delete.
22603 (fontset_face): New arg FACE. Return face ID, not face.
22604 Complete re-write to handle new fontset structure. Change caller.
22605 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22606 (face_for_char): Don't call lookup_face.
22607 (make_fontset_for_ascii_face): New arg FACE.
22608 (fs_load_font): New arg CHARSET_ID. Don't check
22609 Vfont_encoding_alist here.
22610 (find_font_encoding): New function.
22611 (list_fontsets): Use STRINGP, not ! NILP.
22612 (accumulate_script_ranges): New function.
22613 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22614 re-written to handle new fontset structure.
22615 (Ffontset_font): Return a copy of element.
22616 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22617 docstring of font-encoding-alist.
22618
22619 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22620 (Fset_fotset_font): Fix arguments to 5.
22621
22622 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22623
22624 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22625 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22626 (highlight_trailing_whitespace): Adjust for the change of
22627 lookup_named_face.
22628
22629 * xfaces.c: Include charset.h.
22630 (load_face_font): Delete argument C. Change caller.
22631 (generate_ascii_font_name): Rename from generate_ascii_font.
22632 (font_name_registry): New function.
22633 (cache_face): Store ascii faces before non-ascii faces in buckets.
22634 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22635 Lookup only ascii faces.
22636 (lookup_non_ascii_face): New function.
22637 (lookup_named_face): Delete argument C. Change caller.
22638 (lookup_derived_face): Delete argument C. Change caller.
22639 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22640 a string, just call font_list with it.
22641 (choose_face_font): Delete arguments FACE and C. New arg
22642 FONT_SPEC. Change caller.
22643 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22644 Change caller.
22645 (realize_non_ascii_face): New function.
22646 (realize_x_face): Call load_face_font here.
22647 (realize_tty_face): Delete argument C. Change caller.
22648 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22649 get a face ID.
22650 (dump_realized_face): Don't print charset of FACE.
22651
22652 * xfns.c (x_set_font): Always call x_new_fontset and
22653 store_frame_parameter.
22654 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22655 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22656
22657 * xterm.h (x_get_font_repertory): Extern it.
22658
22659 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22660 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22661 it->multibyte_p is zero.
22662 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22663 (x_new_fontset): If FONTSETNAME doesn't match any existing
22664 fontsets, create a new one.
22665 (x_get_font_repertory): New function.
22666
22667 2008-02-01 Kenichi Handa <handa@m17n.org>
22668
22669 * coding.c (Ffind_coding_systems_region_internal): Detect an
22670 ASCII only string correctly.
22671
22672 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22673 version is 0.
22674
22675 2008-02-01 Kenichi Handa <handa@m17n.org>
22676
22677 * lread.c: Include "coding.h".
22678 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22679 (load_each_byte, unread_char): New variables.
22680 (readchar_backlog): Delete.
22681 (readchar): Return a character unless load_each_byte is nonzero.
22682 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22683 cons. If unread_char is not -1, simply return it.
22684 (unreadchar): Handle the case that readcharfun is
22685 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22686 (read_multibyte): Delete.
22687 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22688 (read_emacs_mule_char): New functions.
22689 (Fload): Even if the file doesn't have the extension ".elc", if
22690 safe_to_load_p returns a positive version number, assume that the
22691 file contains bytecompiled code. If the version is less than 22,
22692 load the file while decoding multibyte sequences by emacs-mule.
22693 (readevalloop): Don't use readchar_backlog.
22694 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22695 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22696 (read_escape): Delete the arg BYTEREP.
22697 (read1): Set load_each_byte to 1 temporarily while handling
22698 #@NUMBER. Don't call read_multibyte.
22699 (read_vector): Call Fread with a cons. If readcharfun is
22700 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22701 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22702 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22703 and Qload_force_doc_strings.
22704
22705 2008-02-01 Kenichi Handa <handa@m17n.org>
22706
22707 * xdisp.c (face_before_or_after_it_pos): Call
22708 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22709
22710 2008-02-01 Kenichi Handa <handa@m17n.org>
22711
22712 * character.h (TRAILING_CODE_P): New macro.
22713 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22714 (string_char_with_unification): Fix prototype.
22715 (Vscript_alist): Extern it.
22716
22717 * character.c (Vscript_alist): New variable.
22718 (string_char_with_unification, str_as_unibyte)
22719 (string_escape_byte8): Add `const' to local variables.
22720 (syms_of_character): Declare script-alist as a Lisp variable.
22721
22722 * charset.h (Vcharset_ordered_list): Extern it.
22723 (charset_ordered_list_tick): Extern it.
22724 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22725 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22726 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22727 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22728 (Funify_charset): Adjust for the change of Funify_charset.
22729
22730 * charset.c (charset_ordered_list_tick): New variable.
22731 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22732 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22733 deunify instead of unify a charset.
22734 (string_xstring_p): Add `const' to local variables.
22735 (find_charsets_in_text): Add `const' to arguments and local variables.
22736 (encode_char): Adjust for the change of Funify_charset. Fix
22737 detecting of invalid code.
22738 (Fset_charset_priority): Increment charset_ordered_list_tick.
22739 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22740 and TO_CODE.
22741
22742 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22743 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22744 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22745 (decode_coding_ccl, consume_chars)
22746 (Ffind_coding_systems_region_internal)
22747 (Fcheck_coding_systems_region): Add `const' to local variables.
22748
22749 * print.c (print_object): Use octal form for printing the
22750 contents of a bool vector.
22751
22752 2008-02-01 Dave Love <fx@gnu.org>
22753
22754 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22755 <version == 20>: Refuse to load.
22756
22757 2008-02-01 Dave Love <fx@gnu.org>
22758
22759 * fns.c: Move coding.h.
22760 (Qcodeset, Qdays, Qmonths): New.
22761 (concat): Use CHARACTERP instead of INTEGERP.
22762 (Flocale_codeset): Delete.
22763 (Flanginfo): New function.
22764 (syms_of_fns): Change accordingly.
22765
22766 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22767
22768 2008-02-01 Dave Love <fx@gnu.org>
22769
22770 * casetab.c (init_casetab_once, init_casetab_once): Fix
22771 CHAR_TABLE_SET call.
22772
22773 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22774
22775 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22776
22777 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22778 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22779 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22780
22781 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22782
22783 * coding.c (ENCODE_DESIGNATION, decode_eol)
22784 (make_conversion_work_buffer, code_conversion_restore)
22785 (Fdefine_coding_system_internal): Convert Lisp types.
22786 (code_conversion_restore): Use EQ, not ==.
22787 (Fencode_coding_string): Fix code_convert_string call.
22788
22789 * coding.h (code_convert_region): Fix prototype.
22790
22791 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22792
22793 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22794 (Ffontset_info): Convert Lisp types.
22795
22796 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22797
22798 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22799
22800 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22801
22802 * chartab.c: Include "...h", not <...h> in some cases.
22803
22804 * callproc.c (Fcall_process): Remove unused variables.
22805
22806 2008-02-01 Dave Love <fx@gnu.org>
22807
22808 * coding.c (Fset_coding_system_priority): Allow null arg list.
22809
22810 2008-02-01 Dave Love <fx@gnu.org>
22811
22812 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22813 (Fself_insert_and_exit): Use CHARACTERP.
22814
22815 * callproc.c (Fcall_process): Remove unused vars.
22816
22817 * xterm.c (XTread_socket): Add extra dead keysyms.
22818
22819 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22820
22821 * dispextern.h: Remove prototypes for redraw_frame,
22822 redraw_garbaged_frames.
22823
22824 * cmds.c (Fself_insert_command): Use CHARACTERP.
22825
22826 * chartab.c (make_sub_char_table): Remove unused var.
22827 (Fset_char_table_default, Fmap_char_table): Doc fix.
22828
22829 * keymap.c (access_keymap): Remove generic char code.
22830 (push_key_description): Use CHARACTERP.
22831
22832 2008-02-01 Dave Love <fx@gnu.org>
22833
22834 * charset.c: Doc fixes.
22835 (Funify_charset): Extra checking.
22836
22837 2008-02-01 Dave Love <fx@gnu.org>
22838
22839 * lread.c: Remove some unused variables.
22840 (safe_to_load_p): If safe, return the magic number version byte.
22841 (Fload): Maybe use load-with-code-conversion.
22842
22843 2008-02-01 Kenichi Handa <handa@m17n.org>
22844
22845 * category.c (Fmodify_category_entry): Don't modify the contents
22846 of category_set for characters out of the range. Avoid
22847 unnecessary modification.
22848
22849 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22850 Vchar_unify_table. The default value of the table is now nil.
22851
22852 * character.c (syms_of_character): Setup Vchar_width_table for
22853 eight-bit-control and raw-byte chars.
22854
22855 * charset.h (enum define_charset_arg_index): Delete
22856 charset_arg_parents and add charset_arg_subset and
22857 charset_arg_superset.
22858 (enum charset_attr_index): Delete charset_parents and add
22859 charset_subset and charset_superset.
22860 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22861 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22862 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22863 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22864 (CHARSET_SUPERSET): New macros.
22865 (charset_work): Extern it.
22866 (ENCODE_CHAR): Use charset_work.
22867 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22868 (map_charset_chars): Extern it.
22869
22870 * charset.c (load_charset_map): Set the default value of encoder
22871 and deunifier char-tables to nil.
22872 (map_charset_chars): Change argument. Change callers. Use
22873 map_char_table_for_charset instead of map_char_table.
22874 (Fmap_charset_chars): New optional args from_code and to_code.
22875 (Fdefine_charset_internal): Adjust for the change of
22876 `define-charset' (:parents -> :subset or :superset).
22877 (charset_work): New variable.
22878 (encode_char, syms_of_charset): Adjust for the change of
22879 Fdefine_charset_internal.
22880 (Ffind_charset_string): Setup the vector `charsets' correctly.
22881
22882 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22883 the previous change.
22884 (char_table_ref_and_range): Adjust for the above change.
22885 (map_sub_char_table_for_charset): New function.
22886 (map_char_table_for_charset): New function.
22887
22888 * keymap.c (describe_vector): Handle a char-table directly here.
22889 (describe_char_table): Delete.
22890
22891 * lisp.h (map_charset_chars): Delete.
22892
22893 2008-02-01 Dave Love <fx@gnu.org>
22894
22895 * fns.c (count_combining): Comment out (unused).
22896 (Flocale_codeset): New.
22897 (syms_of_fns): Defsubr it.
22898
22899 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22900 (size_t): Remove.
22901
22902 2008-02-01 Dave Love <fx@gnu.org>
22903
22904 * Makefile.in (chartab.o): Depend on charset.h.
22905
22906 2008-02-01 Kenichi Handa <handa@m17n.org>
22907
22908 * character.c (syms_of_character): Set the default value of
22909 Vprintable_chars to Qnil.
22910
22911 2008-02-01 Dave Love <fx@gnu.org>
22912
22913 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22914
22915 2008-02-01 Kenichi Handa <handa@m17n.org>
22916
22917 * charset.c (load_charset_map): Handle the case that from < to
22918 correctly.
22919
22920 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22921 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22922 Pay attention to raw-8-bit chars.
22923
22924 2008-02-01 Kenichi Handa <handa@m17n.org>
22925
22926 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22927 It is not bytecompiled now.
22928
22929 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22930 (charset_jisx0208): New variables.
22931 (Fdefine_charset_internal): Setup them if appropriate.
22932 (init_charset_once): Initialize them to -1.
22933
22934 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22935 (charset_jisx0208): Extern them.
22936
22937 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22938 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22939 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22940 (setup_iso_safe_charsets): Fix arguments to Fassq.
22941 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22942 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22943 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22944 (encode_coding_iso_2022): Change the 1st arg to
22945 ENCODE_ISO_CHARACTER to a variable.
22946
22947 2008-02-01 Kenichi Handa <handa@m17n.org>
22948
22949 * charset.h (enum define_charset_arg_index): New enums
22950 charset_arg_min_code and charset_arg_max_code.
22951 (struct charset): New member char_index_offset.
22952
22953 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22954 Take charset->char_index_offset into account.
22955 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22956 args[charset_arg_max_code]. Setup charset.char_index_offset.
22957 (syms_of_charset): Fix args to Fdefine_charset_internal.
22958
22959 2008-02-01 Dave Love <fx@gnu.org>
22960
22961 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22962
22963 2008-02-01 Dave Love <fx@gnu.org>
22964
22965 * coding.c: Doc fixes.
22966 (Fcoding_system_aliases): Fix return value.
22967 (Qmac): Remove (duplicated) definition.
22968
22969 2008-02-01 Dave Love <fx@gnu.org>
22970
22971 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22972 New functions.
22973
22974 * character.c (Fstring): Doc fix.
22975
22976 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22977
22978 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
22979 (font-encoding-alist): Doc fix.
22980
22981 2008-02-01 Dave Love <fx@gnu.org>
22982
22983 * term.c (costs_set): Declare static, non-initialized for pcc.
22984 (encode_terminal_code): Remove unused var.
22985
22986 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22987 for K&R.
22988
22989 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22990
22991 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22992 (suffixes): Move out of make_subsidiaries for K&R.
22993
22994 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22995
22996 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22997
22998 2008-02-01 Dave Love <fx@gnu.org>
22999
23000 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23001
23002 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23003
23004 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23005
23006 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23007
23008 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23009
23010 2008-02-01 Kenichi Handa <handa@m17n.org>
23011
23012 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23013 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23014
23015 2008-02-01 Kenichi Handa <handa@m17n.org>
23016
23017 * coding.c (decode_coding_charset): Adjust for the change of
23018 Fdefine_coding_system_internal.
23019 (Fdefine_coding_system_internal): For a coding system of
23020 `charset' type, store a list of charset IDs in
23021 `charset_attr_charset_valids' element of coding attributes.
23022
23023 2008-02-01 Kenichi Handa <handa@m17n.org>
23024
23025 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23026 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23027 caller. Handle 2-byte and 3-byte charsets correctly.
23028 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23029 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23030 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23031 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23032 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23033 sequence.
23034 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23035 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23036 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23037 and alt&rule composition.
23038 (decode_coding_iso_2022): Handle composition correctly.
23039 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23040
23041 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23042 re-defining a charset. If the charset has :emacs-mule-id, setup
23043 emacs_mule_bytes.
23044 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23045
23046 2008-02-01 Kenichi Handa <handa@m17n.org>
23047
23048 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23049 (encode_coding_big5, encode_coding_charset): If coding requires safe
23050 encoding, produce a character specified by
23051 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23052
23053 2008-02-01 Dave Love <fx@gnu.org>
23054
23055 * xterm.c (XSetIMValues): Declare.
23056
23057 * process.c: Conditionally include sys/wait.h, pty.h.
23058
23059 * print.c (print_object): Fix print format for 64-bit systems.
23060
23061 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23062
23063 * buffer.c (emacs_strerror): Declare.
23064
23065 * fontset.c (Fclear_face_cache): Declare.
23066 (accumulate_font_info): Comment-out (unused).
23067 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23068 variables.
23069
23070 * character.h (string_escape_byte8): Declare.
23071
23072 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23073 unused vars.
23074 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23075 (Fmap_charset_chars): Doc fix.
23076
23077 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23078 (Fset_coding_system_priority, Fset_coding_system_priority)
23079 (Fdefine_coding_system_internal): Doc fix.
23080
23081 2008-02-01 Dave Love <fx@gnu.org>
23082
23083 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23084
23085 2008-02-01 Kenichi Handa <handa@m17n.org>
23086
23087 * character.c (string_escape_byte8): Make multibyte string with
23088 correct size.
23089
23090 * charset.c (Fmake_char): Delete unnecessary code.
23091
23092 2008-02-01 Kenichi Handa <handa@m17n.org>
23093
23094 * xfns.c (x_encode_text): Allocate coding.destination here, and
23095 call encode_coding_object with dst_object Qnil.
23096
23097 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23098 multibyte form correctly.
23099
23100 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23101 against Vfont_encoding_alist.
23102
23103 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23104 handling of charset list.
23105 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23106 (decode_coding_object): Move point to coding->dst_pos before
23107 calling post-read-conversion function.
23108 (encode_coding_object): Give correct arguments to
23109 pre-write-conversion. Ignore the return value of
23110 pre-write-conversion function. Pay attention to the case that
23111 pre-write-conversion changes the current buffer. If dst_object is
23112 Qt, even if coding->src_bytes is zero, allocate at least one byte
23113 to coding->destination.
23114
23115 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23116
23117 * charset.c (Fmake_char): Make it more backward compatible.
23118 (Fmap_charset_chars): Fix docstring.
23119
23120 2008-02-01 Dave Love <fx@gnu.org>
23121
23122 * coding.c: Doc fixes.
23123 (Fdefine_coding_system_alias): Use names, not symbols, in
23124 coding-system-alist.
23125
23126 2008-02-01 Kenichi Handa <handa@m17n.org>
23127
23128 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23129 of calling free_realized_face.
23130
23131 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23132
23133 * charset.c (read_hex): Don't treat SPC as a comment starter.
23134 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23135 (Fdecode_char): Fix typo.
23136
23137 2008-02-01 Kenichi Handa <handa@m17n.org>
23138
23139 * charset.h (struct charset): New member `code_space_mask'.
23140
23141 * coding.c (coding_set_source): Delete the local variable beg_byte.
23142 (encode_coding_charset, Fdefine_coding_system_internal):
23143 Delete the local variable charset.
23144 (Fdefine_coding_system_internal): Setup
23145 attrs[coding_attr_charset_valids] correctly.
23146
23147 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23148 member to check if CODE is valid or not.
23149 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23150 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23151 is within the range of charset->min_code and carset->max_code.
23152
23153 2008-02-01 Dave Love <fx@gnu.org>
23154
23155 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23156
23157 * dispextern.h (generate_ascii_font): Fix return type.
23158
23159 * xfaces.c (generate_ascii_font): Fix arg declaration.
23160
23161 * coding.c (coding_inherit_eol_type)
23162 (Fset_terminal_coding_system_internal)
23163 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23164
23165 2008-02-01 Kenichi Handa <handa@m17n.org>
23166
23167 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23168 multiple charsets correctly.
23169
23170 2008-02-01 Kenichi Handa <handa@m17n.org>
23171
23172 * search.c (boyer_moore): Fix handling of multibyte character
23173 translation.
23174
23175 * xdisp.c (display_mode_element): When the variable `elt' is
23176 changed, update `this' and `lisp_string'.
23177
23178 2008-02-01 Kenichi Handa <handa@m17n.org>
23179
23180 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23181
23182 * callproc.c (Fcall_process): Be sure to give the current buffer
23183 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23184
23185 * charset.c (struct charset_map_entries): New struct.
23186 (load_charset_map): Rename from parse_charset_map. New args
23187 entries and n_entries. Change caller.
23188 (load_charset_map_from_file): Rename from load_charset_map.
23189 Change caller. New arg control_flag. Call load_charset_map at
23190 the tail.
23191 (load_charset_map_from_vector): New function.
23192 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23193 (encode_char): If the charset is compact, change a character index
23194 to a code point.
23195
23196 * coding.c (coding_alloc_by_making_gap): Check the case that the
23197 source and destination are the same correctly.
23198 (decode_coding_raw_text): Set coding->consumed_char and
23199 coding->consumed to 0.
23200 (produce_chars): If coding->chars_at_source is nonzero, update
23201 coding->consumed_char and coding->consumed before calling
23202 alloc_destination.
23203 (Fdefine_coding_system_alias): Register ALIAS in
23204 Vcoding_system_alist.
23205 (syms_of_coding): Define `no-conversion' coding system at the tail.
23206
23207 * fileio.c (Finsert_file_contents): Set coding_system instead of
23208 val. If the current buffer is multibyte, always call
23209 decode_coding_gap.
23210
23211 * xfaces.c (try_font_list): Give higher priority to fontset's
23212 family than face's family.
23213
23214 2008-02-01 Kenichi Handa <handa@m17n.org>
23215
23216 * callproc.c (Fcall_process): Be sure to give the current buffer
23217 to decode_coding_c_string.
23218
23219 * xfaces.c (try_font_list): Give a family specified in a fontset
23220 higher priority than a family specified in a face.
23221
23222 2008-02-01 Kenichi Handa <handa@m17n.org>
23223
23224 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23225 Fix arguments to insert_from_buffer.
23226
23227 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23228
23229 2008-02-01 Kenichi Handa <handa@m17n.org>
23230
23231 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23232 (decode_coding_gap): Set coding->dst_multibyte correctly.
23233
23234 2008-02-01 Kenichi Handa <handa@m17n.org>
23235
23236 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23237 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23238 (encode_coding_utf_16): Substitute coding->default_char for
23239 non-Unicode characters.
23240 (decode_coding): Don't call record_insert here.
23241 (setup_coding_system): Initialize `surrogate' of
23242 coding->spec.utf_16 to 0.
23243 (EMIT_ONE_BYTE): Fix for multibyte case.
23244
23245 * insdel.c (insert_from_gap): Call record_insert.
23246
23247 2008-02-01 Kenichi Handa <handa@m17n.org>
23248
23249 * casefiddle.c (casify_region): Fix multibyte case.
23250
23251 * character.c (c_string_width): Add return type `int'.
23252 (char_string_with_unification): Delete arg ADVANCED.
23253
23254 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23255 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23256 (CHAR_STRING_ADVANCE): Make it do-while statement.
23257
23258 * chartab.c (sub_char_table_set_range): Optimize for the case
23259 DEPTH == 3. Add workaround code for a GCC optimization bug.
23260
23261 * charset.c (parse_charset_map): Remove an unused variable.
23262
23263 * coding.c: Delete unused variables.
23264
23265 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23266 earlier. If inserted is zero and the coding system doesn't
23267 require flushing, don't call decode_coding_gap.
23268
23269 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23270
23271 2008-02-01 Kenichi Handa <handa@m17n.org>
23272
23273 The following changes are for using Unicode as an internal
23274 character model, and use UTF-8 format for buffer/string
23275 representation.
23276
23277 * .gdbinit (xchartable): Adjust for the change of char table structure.
23278 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23279
23280 * Makefile.in (obj): Add character.o and chartab.o.
23281 (lisp, shortlisp): Remove utf-8.elc.
23282 (*.o): For many files, change dependency on charset.h to
23283 character.h, and add dependency on character.h.
23284 (character.o, chartab.o): New targets.
23285
23286 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23287 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23288 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23289 of "charset.h".
23290
23291 * dired.c, filelock.c: Include "character.h".
23292
23293 * alloc.c: Include "character.h" instead of "charset.h".
23294 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23295 (syms_of_alloc): Remove defsubr for Smake_char_table.
23296
23297 * buffer.c: Include "character.h" instead of "charset.h", don't
23298 include "coding.h".
23299 (Fset_buffer_multibyte): Adjust for UTF-8.
23300
23301 * buffer.h: EXFUN Fbuffer_live_p.
23302
23303 * callproc.c: Include "character.h" instead of "charset.h".
23304 (Fcall_process): Big change for the new code-conversion APIs.
23305
23306 * casetab.c: Include "character.h" instead of "charset.h".
23307 (set_canon, set_identity, shuffle): Adjust for the new
23308 map_char_table spec.
23309 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23310 accessing the char table structure.
23311
23312 * chartab.c: New file that implements char table.
23313
23314 * category.c: Include "character.h".
23315 (copy_category_entry): New function.
23316 (copy_category_table): Call map_char_table and copy_category_entry.
23317 (Fmake_category_table): Initialize all top-level slots.
23318 (char_category_set): New function.
23319 (modify_lower_category_set): Delete.
23320 (Fmodify_category_entry): Call char_table_ref_and_range.
23321
23322 * category.h (CATEGORY_SET): Just call char_category_set.
23323
23324 * ccl.c: Include "character.h".
23325 (Qccl, Qcclp): New variables.
23326 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23327 it's less than 256.
23328 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23329 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23330 and DST type.
23331 (ccl_driver): Change types of argument, adjust code accordingly.
23332 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23333 ccl_driver.
23334 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23335
23336 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23337 New members src_multibyte, dst_multibyte, consumed, and produced.
23338 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23339 (CODING_SPEC_CCL_PROGRAM): New macro.
23340 (ccl_driver): Update prototype.
23341 (Qccl, Qcclp, Fccl_program_p): Extern them.
23342 (CHECK_CCL_PROGRAM): New macro.
23343
23344 * character.c, character.h, chartab.c: New files.
23345
23346 * charset.c: Mostly re-written. Move character and multibyte sequence
23347 handling codes to character.c.
23348
23349 * charset.h: Mostly re-written. Move character and multibyte sequence
23350 handling codes to character.h.
23351
23352 * coding.c, coding.h: Mostly re-written.
23353
23354 * composite.c: Include "character.h" instead of "charset.h".
23355 (CHAR_WIDTH): Move to character.h.
23356 (HASH_KEY, HASH_VALUE): Delete.
23357
23358 * composite.h (enum composition_method): Change order of enumeration
23359 symbols.
23360
23361 * data.c: Include "character.h" instead of "charset.h".
23362 (Faref): Call CHAR_TABLE_REF for a char table.
23363 (Faset): Call CHAR_TABLE_SET for a char table.
23364
23365 * dispextern.h (free_realized_face, check_face_attribytes)
23366 (generate_ascii_font): Extern them.
23367 (free_realized_multibyte_face): Delete extern.
23368
23369 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23370 table structure.
23371
23372 * editfns.c: Include "character.h" instead of "charset.h".
23373 (Fchar_to_string): Always call CHAR_STRING.
23374
23375 * emacs.c (main): Call init_charset_once, init_charset,
23376 syms_of_chartab, and syms_of_character.
23377
23378 * fileio.c: Include "character.h" instead of "charset.h".
23379 (Finsert_file_contents): Big change for the new code-conversion API.
23380 (choose_write_coding_system, Fwrite_region): Likewise.
23381 (build_annotations_2): Delete.
23382 (e_write): Big change for the new code-conversion API.
23383
23384 * fns.c: Include "character.h" instead of "charset.h".
23385 (copy_sub_char_table): Move to chartab.c.
23386 (Fcopy_sequence): Call copy_char_table for a char table.
23387 (concat): Delete codes calling count_multibyte.
23388 (string_char_to_byte, string_byte_to_char): Adjust for the new
23389 multibyte form.
23390 (internal_equal): Adjust for the change of char table structure.
23391 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23392 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23393 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23394 (char_table_translate, optimize_sub_char_table)
23395 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23396 chartab.c.
23397 (char_table_ref_and_index): Delete.
23398 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23399 (Fmd5): Call preferred_coding_system instead of accessing
23400 Vcoding_category_list. Adjust for the new code-conversion API.
23401 (syms_of_fns): Move defsubr for char table related functions to
23402 chartab.c.
23403
23404 * fontset.c: Mostly re-written.
23405
23406 * fontset.h (struct font_info): Change type of the member encoding_type.
23407 (enum FONT_SPEC_INDEX): New enum.
23408 (fontset_font_pattern, fs_load_font): Update prototype.
23409 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23410
23411 * indent.c: Include "character.h" instead of "charset.h".
23412 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23413
23414 * insdel.c: Include "character.h" instead of "charset.h".
23415 (copy_text): Don't refer to Vnonascii_translation_table.
23416 (insert_from_gap): New function.
23417
23418 * keyboard.c: Include "character.h" instead of "charset.h".
23419 (command_loop_1): Never call direct_output_forward_char before
23420 a non-ASCII character.
23421 (read_char): If Vkeyboard_translate_table is a char table, always
23422 translate a character.
23423
23424 * keymap.c: Include "character.h".
23425 (store_in_keymap): Handle the case that IDX is a cons.
23426 (Fdefine_key): Handle the case that KEY is a cons and the car part
23427 is also a cons (range).
23428 (push_key_description): Adjust for the new character code.
23429 (describe_vector): Call describe_char_table for a char table.
23430 (describe_char_table): New function.
23431
23432 * keymap.h (describe_char_table): Extern it.
23433
23434 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23435 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23436 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23437 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23438 Delete.
23439 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23440 structure.
23441 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23442 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23443 (CHARTAB_SIZE_BITS_3): New macros.
23444 (chartab_size): Extern it.
23445 (struct Lisp_Char_Table): Re-design.
23446 (struct Lisp_Sub_Char_Table): New structure.
23447 (HASH_KEY, HASH_VALUE): Move from fns.c.
23448 (CHARACTERBITS): Define as 22.
23449 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23450 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23451 (GC_SUB_CHAR_TABLE_P): New macro.
23452 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23453 (code_convert_string_norecord): Deleted extern.
23454 (init_character_once, syms_of_character, init_charset)
23455 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23456
23457 * lread.c: Include "character.h".
23458 (read_multibyte): New arg NBYTES.
23459 (read_escape): Change the meaning of returned *BYTEREP.
23460 (to_multibyte): Delete.
23461 (read1): Adjust the handling of char table and string.
23462
23463 * print.c: Include "character.h" instead of "charset.h".
23464 (print_string): Convert 8-bit raw bytes to octal form by
23465 string_escape_byte8.
23466 (print_object): Adjust for the new multibyte form. Print 8-bit
23467 raw bytes always in octal form. Handle sub char table correctly.
23468
23469 * process.c: Include "character.h" instead of "charset.h".
23470 (read_process_output, send_process): Adjust for the new
23471 code-conversion API.
23472
23473 * puresize.h (BASE_PURESIZE): Increase.
23474
23475 * regex.c: Include "character.h" instead of "charset.h".
23476 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23477 (regex_compile): Accept a range whose starting and ending
23478 character have different leading bytes.
23479 (analyse_first): Adjust for the above change.
23480
23481 * search.c: Include "character.h" instead of "charset.h".
23482 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23483 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23484
23485 * syntax.c: Include "character.h" instead of "charset.h".
23486 (syntax_parent_lookup): Delete.
23487 (Fmodify_syntax_entry): Accept a cons as CHAR.
23488 (skip_chars): Adjust for the new multibyte form.
23489 (init_syntax_once): Call char_table_set_range instead of directly
23490 accessing the structure of a char table.
23491
23492 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23493 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23494 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23495 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23496
23497 * term.c: Include "buffer.h" and "character.h".
23498 (encode_terminal_code, write_glyphs): Adjust for the new
23499 code-conversion API.
23500 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23501
23502 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23503
23504 * xdisp.c: Include "character.h".
23505 (get_next_display_element): Adjust for the new multibyte form.
23506 (disp_char_vector): Adjust for the new char table structure.
23507 (decode_mode_spec_coding): Adjust for the new structure of
23508 coding system.
23509 (decode_mode_spec): Adjust for the new code-conversion API.
23510
23511 * xfaces.c: Include "character.h" instead of "charset.h".
23512 (load_face_font): Adjust for the change of choose_face_font and
23513 FS_LOAD_FONT.
23514 (generate_ascii_font): New function.
23515 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23516 (set_font_frame_param): Adjust for the change of choose_face_font.
23517 (free_realized_face): Make it public.
23518 (free_realized_faces_for_fontset): Rename from
23519 free_realized_multibyte_face. Free also faces realized for ASCII.
23520 (choose_face_font): Change arguments. Adjust for the change of
23521 fontset_font_pattern and FS_LOAD_FONT.
23522
23523 * xfns.c: Include "character.h".
23524 (x_encode_text): Adjust for the new code-conversion API.
23525
23526 * xselect.c: Don't include "charset.h".
23527 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23528
23529 * xterm.c: Include "character.h".
23530 (x_encode_char): New argument CHARSET. Change caller.
23531 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23532 Call ENCODE_CHAR instead of SPLIT_CHAR.
23533 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23534 CHAR_WIDTH instead of CHARSET_WIDTH.
23535 (XTread_socket): Adjust for the new code-conversion API.
23536 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23537 (x_load_font): Adjust for the change of struct font.
23538
23539 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23540
23541 * xfaces.c (face_at_buffer_position): Remove unused vars.
23542
23543 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23544
23545 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23546 Fix overflow checking.
23547
23548 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23549
23550 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23551 Cancel previous change.
23552
23553 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23554
23555 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23556 ccl->eight_bit_control. Fix check for buffer overflow.
23557 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23558 (ccl_driver): Initialize extra_bytes to 0.
23559
23560 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23561
23562 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23563 return it ORed with ctrl_modifier.
23564
23565 2008-01-29 Miles Bader <miles@gnu.org>
23566
23567 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23568
23569 2008-01-28 Jason Rumney <jasonr@gnu.org>
23570
23571 * w32.c (stat): Don't double check for networked drive.
23572
23573 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23574
23575 * window.c (run_window_configuration_change_hook): New function.
23576 Code extracted from set_window_buffer. Set the selected frame.
23577 (set_window_buffer): Use it.
23578 * window.h (run_window_configuration_change_hook): Declare.
23579 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23580
23581 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23582
23583 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23584
23585 * Makefile.in: Remove references to unused macros.
23586
23587 2008-01-26 Eli Zaretskii <eliz@gnu.org>
23588
23589 * w32.c (g_b_init_get_sid_sub_authority)
23590 (g_b_init_get_sid_sub_authority_count): New static variables.
23591 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23592 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23593 (init_user_info): Use them to retrieve uid and gid.
23594 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23595 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23596 st_uid and st_gid of the file.
23597
23598 2008-01-26 Jason Rumney <jasonr@gnu.org>
23599
23600 * w32.c (logon_network_drive): New function.
23601 (stat): Use it.
23602
23603 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
23604
23605 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23606 invisible text covered with an ellipsis.
23607
23608 2008-01-25 Richard Stallman <rms@gnu.org>
23609
23610 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23611 jump back to beginning. Move some other initializations after that.
23612 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23613 New variables.
23614 (syms_of_xdisp): Init them.
23615
23616 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23617
23618 * buffer.c (reset_buffer_local_variables):
23619 Implement `permanent-local-hook'.
23620 (Qpermanent_local_hook): New variable.
23621 (syms_of_buffer): Init and staticpro it.
23622
23623 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
23624
23625 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23626
23627 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23628
23629 * fns.c (Fclrhash): Return TABLE.
23630
23631 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23632
23633 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23634 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23635 is set even without positional changes.
23636 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23637
23638 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23639
23640 2008-01-23 Jason Rumney <jasonr@gnu.org>
23641
23642 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23643
23644 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23645 the unicode range available in MULE by locale-coding-system.
23646 Improve dbcs lead byte detection. Set event timestamp and modifiers
23647 earlier.
23648
23649 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23650
23651 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23652 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23653 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23654 when used on child processes.
23655
23656 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
23657
23658 * dbusbind.c (Fdbus_method_return_internal): Rename from
23659 Fdbus_method_return.
23660 (Fdbus_unregister_object): Move to dbus.el.
23661 (Fdbus_call_method, Fdbus_method_return_internal)
23662 (Fdbus_send_signal): Improve debug messages.
23663
23664 2008-01-20 Martin Rudalics <rudalics@gmx.at>
23665
23666 * undo.c (undo_inhibit_record_point): New variable.
23667 (syms_of_undo): Initialize it.
23668 (record_point): Don't record point when undo_inhibit_record_point
23669 is set.
23670
23671 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23672
23673 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23674
23675 * xdisp.c (Qauto_hscroll_mode): New var.
23676 (syms_of_xdisp): Initialize it.
23677 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23678 window's buffer.
23679 (hscroll_windows): Don't check automatic_hscrolling_p here.
23680
23681 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23682 vscroll if we're setting window-buffer to the value it already has.
23683
23684 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23685
23686 * m/intel386.h: Remove references to XENIX.
23687
23688 2008-01-17 Andreas Schwab <schwab@suse.de>
23689
23690 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23691 instead of HAVE_X86_64_LIB64_DIR.
23692 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23693
23694 2008-01-17 Glenn Morris <rgm@gnu.org>
23695
23696 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23697 to HAVE_X86_64_LIB64_DIR.
23698
23699 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23700
23701 * s/irix3-3.h:
23702 * s/irix4-0.h:
23703 * s/386-ix.h:
23704 * s/domain.h:
23705 * s/hpux9-x11r4.h:
23706 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23707
23708 * sysdep.c: Remove code containing references to symbols defined
23709 by unsupported systems.
23710
23711 2008-01-16 Glenn Morris <rgm@gnu.org>
23712
23713 * coding.c (select-safe-coding-system-function): Doc fix.
23714
23715 2008-01-15 Glenn Morris <rgm@gnu.org>
23716
23717 * config.in: Revert 2008-01-13 change: this is a generated file.
23718
23719 2008-01-13 Tom Tromey <tromey@redhat.com>
23720
23721 * lisp.h: Fix typo.
23722
23723 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23724
23725 * m/sequent-ptx.h:
23726 * m/sequent.h:
23727 * s/ptx.h:
23728 * s/ptx4-2.h:
23729 * s/ptx4.h: Remove files for systems no longer supported.
23730
23731 * callproc.c (Fcall_process): Fix previous change.
23732
23733 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23734
23735 * unexsunos4.c: Remove file, system not supported anymore.
23736
23737 * m/mips.h:
23738 * m/intel386.h:
23739 * callproc.c:
23740 * config.in:
23741 * ecrt0.c:
23742 * emacs.c:
23743 * fileio.c:
23744 * frame.c:
23745 * getpagesize.h:
23746 * keyboard.c:
23747 * lread.c:
23748 * process.c:
23749 * puresize.h:
23750 * sysdep.c:
23751 * systty.h:
23752 * syswait.h:
23753 * unexec.c:
23754 * xdisp.c:
23755 * alloc.c: Remove code containing references to symbols defined by
23756 unsupported systems.
23757
23758 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23759
23760 * coding.c (detect_coding_mask): Fix previous change.
23761
23762 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23763
23764 * coding.c (detect_coding_iso2022): New arg
23765 latin_extra_code_state. Allow Latin extra codes only
23766 when *latin_extra_code_state is nonzero.
23767 (detect_coding_mask): If there is a NULL byte, detect the encoding
23768 as UTF-16 or binary. If Latin extra codes exist, detect the
23769 encoding as ISO-2022 only when there's no other proper encoding is
23770 found.
23771
23772 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23773
23774 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23775 #ifdef MAC_OS.
23776
23777 2008-01-08 Richard Stallman <rms@gnu.org>
23778
23779 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23780
23781 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23782
23783 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23784 menu bar in parentheses.
23785
23786 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23787
23788 * m/7300.h:
23789 * m/acorn.h:
23790 * m/alliant-2800.h:
23791 * m/alliant.h:
23792 * m/alliant1.h:
23793 * m/alliant4.h:
23794 * m/altos.h:
23795 * m/amdahl.h:
23796 * m/apollo.h:
23797 * m/att3b.h:
23798 * m/aviion-intel.h:
23799 * m/aviion.h:
23800 * m/celerity.h:
23801 * m/clipper.h:
23802 * m/cnvrgnt.h:
23803 * m/convex.h:
23804 * m/cydra5.h:
23805 * m/delta88k.h:
23806 * m/dpx2.h:
23807 * m/dual.h:
23808 * m/elxsi.h:
23809 * m/f301.h:
23810 * m/gould-np1.h:
23811 * m/gould.h:
23812 * m/i860.h:
23813 * m/ibmps2-aix.h:
23814 * m/ibmrt-aix.h:
23815 * m/ibmrt.h:
23816 * m/irist.h:
23817 * m/is386.h:
23818 * m/isi-ov.h:
23819 * m/mega68.h:
23820 * m/mg1.h:
23821 * m/news-r6.h:
23822 * m/news-risc.h:
23823 * m/news.h:
23824 * m/nh3000.h:
23825 * m/nh4000.h:
23826 * m/ns16000.h:
23827 * m/ns32000.h:
23828 * m/nu.h:
23829 * m/orion.h:
23830 * m/orion105.h:
23831 * m/paragon.h:
23832 * m/pfa50.h:
23833 * m/plexus.h:
23834 * m/pyramid.h:
23835 * m/pyrmips.h:
23836 * m/sh3el.h:
23837 * m/sps7.h:
23838 * m/sr2k.h:
23839 * m/stride.h:
23840 * m/sun1.h:
23841 * m/sun2.h:
23842 * m/sun3-68881.h:
23843 * m/sun3-fpa.h:
23844 * m/sun3-soft.h:
23845 * m/sun3.h:
23846 * m/sun386.h:
23847 * m/symmetry.h:
23848 * m/tad68k.h:
23849 * m/tahoe.h:
23850 * m/targon31.h:
23851 * m/tek4300.h:
23852 * m/tekxd88.h:
23853 * m/tower32.h:
23854 * m/tower32v3.h:
23855 * m/ustation.h:
23856 * m/wicat.h:
23857 * m/xps100.h:
23858 * s/cxux.h:
23859 * s/cxux7.h:
23860 * s/dgux.h:
23861 * s/dgux4.h:
23862 * s/dgux5-4-3.h:
23863 * s/dgux5-4r2.h:
23864 * s/esix.h:
23865 * s/esix5r4.h:
23866 * s/hiuxmpp.h:
23867 * s/hiuxwe2.h:
23868 * s/iris3-5.h:
23869 * s/iris3-6.h:
23870 * s/isc2-2.h:
23871 * s/isc3-0.h:
23872 * s/isc4-0.h:
23873 * s/isc4-1.h:
23874 * s/newsos5.h:
23875 * s/newsos6.h:
23876 * s/osf1.h:
23877 * s/osf5-0.h:
23878 * s/riscix1-1.h:
23879 * s/riscix12.h:
23880 * s/sco4.h:
23881 * s/sco5.h:
23882 * s/sunos4-0.h:
23883 * s/sunos4-1.h:
23884 * s/sunos413.h:
23885 * s/sunos4shr.h:
23886 * s/umax.h:
23887 * s/unipl5-2.h:
23888 * s/xenix.h:
23889 * cxux-crt0.s:
23890 * unexapollo.c:
23891 * unexconvex.c:
23892 * unexenix.c:
23893 * unexsni.c: Remove files for systems no longer supported.
23894
23895 * m/intel386.h: Remove references to unsupported systems.
23896
23897 * w32.c (get_emacs_configuration): Remove reference to i860.
23898
23899 * sysdep.c: Remove dead code.
23900
23901 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23902
23903 * s/rtu.h:
23904 * m/masscomp.h: Remove files. Platform is obsolete.
23905
23906 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23907
23908 * dbusbind.c (Fdbus_method_return): New function.
23909 (xd_read_message): Add the serial number to the event.
23910 (Fdbus_register_method): Activate the function.
23911
23912 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23913
23914 * keyboard.c (read_key_sequence): Fix typo.
23915
23916 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23917
23918 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23919 (xd_signature, xd_append_arg): Handle element type detection for
23920 empty arrays.
23921 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23922 SDATA () calls; this must be solved more general.
23923 (Fdbus_register_signal): Use SBYTES instead of strlen.
23924
23925 2008-01-03 Magnus Henoch <magnus@zemdatav>
23926
23927 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23928 unsigned int for byte values (necessary for big-endian platform).
23929 (Fdbus_call_method): Handle the case of no returned arguments.
23930
23931 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23932
23933 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23934
23935 2007-12-31 Magnus Henoch <mange@freemail.hu>
23936
23937 * dbusbind.c (xd_signature): Signature of variant is just "v".
23938
23939 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23940
23941 * dbusbind.c: Fix several errors and compiler warnings.
23942 Reported by Tom Tromey <tromey@redhat.com>.
23943 (XD_ERROR, XD_DEBUG_MESSAGE)
23944 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23945 (xd_append_arg): Part for basic D-Bus types rewritten.
23946 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23947 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23948 appropriate.
23949 (xd_read_message): Return Qnil. Don't signal an error; it is not
23950 useful during event reading.
23951 (Fdbus_register_signal): Signal an error if the check for
23952 FUNCTIONP fails.
23953 (Fdbus_register_method): New function. The implementation is not
23954 complete, the call of the function signals an error therefore.
23955 (Fdbus_unregister_object): New function, renamed from
23956 Fdbus_unregister_signal. The initial check signals an error, if
23957 the object is not well formed.
23958
23959 2007-12-30 Richard Stallman <rms@gnu.org>
23960
23961 * textprop.c (get_char_property_and_overlay):
23962 Signal error if POSITION is out of range in a buffer.
23963
23964 2007-12-29 Martin Rudalics <rudalics@gmx.at>
23965
23966 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23967 because the original parameters are in pure storage now.
23968
23969 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23970
23971 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23972
23973 2007-12-22 Eli Zaretskii <eliz@gnu.org>
23974
23975 * callint.c (syms_of_callint) <command-history>: Add reference to
23976 history-length in the doc string.
23977
23978 2007-12-17 Jason Rumney <jasonr@gnu.org>
23979
23980 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23981 before passing as wParam.
23982
23983 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
23984
23985 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23986 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23987 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23988 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23989 as number.
23990 (Fdbus_call_method): Fix docstring.
23991
23992 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
23993
23994 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23995 New macros.
23996 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23997 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23998 Simplify.
23999 (xd_signature): New function.
24000 (xd_append_arg): Compute also signatures. Major rewrite.
24001 (xd_retrieve_arg): Make debug messages friendly.
24002 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24003 Check for signatures of arguments.
24004
24005 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
24006
24007 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24008 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24009 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24010 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24011 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24012 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24013 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24014 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24015 (xd_retrieve_value): Remove. Functionality included in ...
24016 (xd_append_arg): New function.
24017 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24018
24019 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
24020
24021 * dbusbind.c (top): Include <stdio.h>.
24022 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24023 dbus_message_new_method_call and dbus_message_new_signal.
24024 (Fdbus_register_signal): Rename unique_name to uname.
24025 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24026 non-existing unique name. Fix typos in matching rule. Return an
24027 object which is useful in Fdbus_unregister_signal.
24028 (Fdbus_unregister_signal): Reimplementation, in order to remove
24029 only the corresponding entry.
24030 (Vdbus_registered_functions_table): Change the order of entries.
24031 Apply these changes in xd_read_message and Fdbus_register_signal.
24032
24033 2007-12-16 Andreas Schwab <schwab@suse.de>
24034
24035 * fileio.c (Finsert_file_contents): Fix overflow check to not
24036 depend on undefined integer overflow.
24037
24038 2007-12-14 Jason Rumney <jasonr@gnu.org>
24039
24040 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24041 for characters above 127.
24042
24043 2007-12-13 Jason Rumney <jasonr@gnu.org>
24044
24045 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24046 before dereferencing array.
24047 (lookup_vk_code): Remove zero comparison.
24048
24049 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
24050
24051 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24052 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24053 Use `unsigned int' instead of `uint'.
24054 (xd_read_message, Fdbus_register_signal): Split expressions into
24055 multiple lines before operators "&&" and "||", according to the
24056 GNU Coding Standards.
24057
24058 2007-12-14 Eli Zaretskii <eliz@gnu.org>
24059
24060 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24061
24062 2007-12-12 Juri Linkov <juri@jurta.org>
24063
24064 * buffer.c (Frename_buffer): In interactive spec replace
24065 `read-buffer' with `read-string' that uses `buffer-name-history'
24066 as history, and the current buffer's name as default.
24067
24068 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24069
24070 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24071 manipulating the backtrace manually.
24072 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24073 (struct backtrace, backtrace_list): Remove.
24074 (command_loop_1): Remove dead var `no_direct'.
24075
24076 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24077 preserve non-built-in buffer-local variables.
24078 (Fkill_all_local_variables): Don't re-create&re-set permanent
24079 buffer-local variables.
24080
24081 2007-12-09 Juri Linkov <juri@jurta.org>
24082
24083 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24084 Lisp code that uses `read-buffer' with current buffer as default.
24085
24086 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
24087
24088 * dbusbind.c (xd_read_message): Generate an event for every
24089 registered handler. There might be several handlers registered
24090 for the same signal.
24091 (Fdbus_register_signal): Don't overwrite a registration for the
24092 same signal. Add a new registration if handlers are different.
24093 (Vdbus_registered_functions_table): Rework doc string.
24094
24095 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
24096
24097 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24098 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24099 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24100 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24101 Unify argument lists.
24102 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24103 arguments and hash table keys. Use unique name for service.
24104 (Fdbus_unregister_signal): Remove checks.
24105 (Vdbus_registered_functions_table): Fix doc string.
24106
24107 2007-12-05 Magnus Henoch <mange@freemail.hu>
24108
24109 * process.c (make_process): Initialize pty_flag to 0.
24110
24111 2007-12-05 Jason Rumney <jasonr@gnu.org>
24112
24113 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24114 specified XBMs.
24115
24116 2007-12-05 Richard Stallman <rms@gnu.org>
24117
24118 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24119
24120 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24121
24122 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24123 New variable.
24124 (mac_try_close_socket) [MAC_OSX]: New function.
24125 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24126 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24127
24128 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24129 Use mac_try_close_socket.
24130
24131 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24132
24133 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24134 reloc_base.
24135 (copy_dysymtab): Compute relocation base here.
24136 (rebase_reloc_address) [__ppc64__]: New function.
24137 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24138 changed.
24139
24140 2007-12-05 Jason Rumney <jasonr@gnu.org>
24141
24142 * w32proc.c (sys_spawnve): Quote args with wildcards.
24143
24144 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24145
24146 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24147 __objc_* sections.
24148 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24149
24150 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
24151
24152 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24153 Move check for Vdbus_registered_functions_table to
24154 xd_read_queued_messages.
24155 (xd_read_queued_messages): Protect xd_read_message calls by
24156 internal_condition_case_1.
24157
24158 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
24159
24160 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24161 Qdbus_system_bus and Qdbus_session_bus, respectively.
24162 (Vdbus_intern_symbols): Remove.
24163 (Vdbus_registered_functions_table): New hash table.
24164 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24165 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24166 Rewrite in order to manage registered functions by hash table
24167 Vdbus_registered_functions_table.
24168
24169 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24170
24171 * xterm.c: Update URL to Window Manager Specification in comment.
24172
24173 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
24174
24175 * config.in (HAVE_DBUS): Add.
24176
24177 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24178 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24179 (obj): Add $(DBUS_OBJ).
24180 (LIBES): Add $(DBUS_LIBS).
24181 (dbusbind.o): New target.
24182
24183 * dbusbind.c: New file.
24184
24185 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24186
24187 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24188 (Qdbus_event): New Lisp symbol.
24189 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24190 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
24191 (keys_of_keyboard): Define dbus-event.
24192
24193 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24194
24195 2007-12-01 Richard Stallman <rms@gnu.org>
24196
24197 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24198
24199 2007-11-30 Jason Rumney <jasonr@gnu.org>
24200
24201 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24202 (w32con_reset_terminal_modes): Clear screen buffer.
24203 (w32_face_attributes): Don't use color indexes that are out of range.
24204 Only reverse the default colors.
24205
24206 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24207 WINDOWSNT.
24208
24209 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24210
24211 2007-11-29 Jason Rumney <jasonr@gnu.org>
24212
24213 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24214 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24215 if the terminal colors are initialized.
24216 (unspecified_fg, unspecified_bg): Remove unused declarations.
24217
24218 2007-11-29 Andreas Schwab <schwab@suse.de>
24219
24220 * keyboard.c (apply_modifiers): Fix typo.
24221
24222 2007-11-29 Richard Stallman <rms@gnu.org>
24223
24224 * keymap.c (Fcurrent_local_map): Doc fix.
24225
24226 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24227
24228 * s/gnu-kfreebsd.h: New file.
24229
24230 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24231
24232 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24233 Don't cast redundantly.
24234
24235 * keyboard.c (KEY_TO_CHAR): New macro.
24236 (parse_modifiers, apply_modifiers): Accept integer arguments.
24237 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24238 for chars and symbol keys.
24239 After doing such remapping, apply function-key-map again.
24240
24241 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24242
24243 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24244 compiled anymore.
24245
24246 2007-11-26 Andreas Schwab <schwab@suse.de>
24247
24248 * process.c (list_processes_1): Fix indentation level of the
24249 command column.
24250
24251 2007-11-23 Andreas Schwab <schwab@suse.de>
24252
24253 * editfns.c (Fformat): Handle %c specially since it requires the
24254 argument to be of type int.
24255
24256 2007-11-23 Markus Triska <markus.triska@gmx.at>
24257
24258 * emacs.c (main): Call init_editfns before init_process, since
24259 init_process sets Vprocess_connection_type depending on OS release.
24260
24261 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24262
24263 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24264 (find_symbol_value): Use do_symval_forwarding.
24265
24266 * data.c (set_internal): Set the value in the `cons-cell' (for
24267 Buffer_Local_values) not only for frame-local variables.
24268
24269 2007-11-22 Andreas Schwab <schwab@suse.de>
24270
24271 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24272 values to sprintf.
24273 * keymap.c (Fsingle_key_description): Likewise.
24274 * print.c (print_object): Likewise.
24275
24276 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24277
24278 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24279 file for image is nil.
24280
24281 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24282
24283 * term.c: Include stdarg.h.
24284 (fatal): Implement using varargs.
24285 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24286
24287 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24288
24289 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24290 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24291 Update call to buffer_slot_type_mismatch.
24292 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24293 (buffer_slot_type_mismatch): Update.
24294 * buffer.c (buffer_local_types): Remove.
24295 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24296 (defvar_per_buffer): Set the type in the buffer_objfwd.
24297
24298 2007-11-21 Jason Rumney <jasonr@gnu.org>
24299
24300 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24301 CreateFileMapping returns NULL on failure.
24302
24303 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24304
24305 * search.c (Fset_match_data): Remove the `evaporate' feature.
24306 (unwind_set_match_data): Don't use the `evaporate' feature.
24307
24308 2007-11-21 Jason Rumney <jasonr@gnu.org>
24309
24310 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24311
24312 * w32console.c (w32con_write_glyphs): Remove unused variables.
24313
24314 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24315
24316 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24317
24318 * s/darwin.h (MULTI_KBOARD): Remove.
24319
24320 * macfns.c (x_create_tip_frame, Fx_create_frame)
24321 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24322
24323 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24324
24325 * buffer.c (Fbuffer_local_value): Remove redundant test.
24326 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24327 than in `current-buffer' to match the comment.
24328 Do the swap using swap_in_global_binding.
24329
24330 * data.c (store_symval_forwarding, set_internal):
24331 * eval.c (specbind): Remove dead code.
24332
24333 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24334 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24335 Since we do not want to see internal Lisp_*fwd objects here.
24336
24337 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24338
24339 * sysdep.c (init_system_name): Use getaddrinfo if available.
24340
24341 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24342 (x_scroll_bar_note_movement): start, end, with, height in struct
24343 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24344
24345 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24346
24347 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24348
24349 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24350
24351 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24352 This undoes Richard's change of 14-Oct-2002.
24353
24354 * alloc.c (allocate_other_vector):
24355 * lisp.h (allocate_other_vector): Remove.
24356
24357 * window.c (struct save_window_data): Move non-lisp data to the end
24358 and make it `int' rather than Lisp_Object.
24359 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24360 Done wrap/unwrap integer values.
24361 (Fset_window_configuration, compare_window_configurations):
24362 Update use of fields to their new types.
24363
24364 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24365 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24366 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24367 (SET_SCROLL_BAR_X_WINDOW): Remove.
24368 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24369 Access the new x_window field directly.
24370 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24371 Don't wrap/unwrap integers into Lisp_Objects.
24372 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24373 (x_scroll_bar_report_motion):
24374 Don't wrap/unwrap integers into Lisp_Objects.
24375 (x_term_init): Use SDATA.
24376 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24377 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24378 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24379 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24380 * xfns.c (x_set_background_color):
24381 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24382 Access the new x_window field directly.
24383
24384 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24385 (allocate_pseudovector): Make non-static.
24386
24387 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24388 (allocate_pseudovector): Declare.
24389 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24390
24391 2007-11-15 Andreas Schwab <schwab@suse.de>
24392
24393 * editfns.c (Fformat): Correctly format EMACS_INT values.
24394 Also take precision into account when formatting an integer.
24395
24396 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24397
24398 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24401 (syms_of_keyboard): Defsubr it.
24402
24403 * data.c (swap_in_global_binding): Fix longstanding bug where
24404 store_symval_forwarding was not called with the right second argument,
24405 thus causing objfwd-ing from being dropped.
24406
24407 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24408
24409 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24410 (Fx_display_pixel_height, Fx_display_planes)
24411 (Fx_display_color_cells, Fx_server_max_request_size)
24412 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24413 (Fx_display_visual_class, Fx_display_save_under):
24414 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24415 (Fx_display_pixel_height, Fx_display_planes)
24416 (Fx_display_color_cells, Fx_server_max_request_size)
24417 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24418 (Fx_display_mm_height, Fx_display_mm_width)
24419 (Fx_display_backing_store, Fx_display_visual_class)
24420 (Fw32_select_font, Fx_display_save_under):
24421 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24422 (Fx_display_pixel_height, Fx_display_planes)
24423 (Fx_display_color_cells, Fx_server_max_request_size)
24424 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24425 (Fx_display_save_under): Fix typos in docstrings.
24426
24427 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24428
24429 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24430 corresponding to deleted entries; they are an implementation detail.
24431 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24432 Remove variables.
24433 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24434 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24435 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24436 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24437 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24438 (Fw32_define_rgb_color, Fw32_load_color_file)
24439 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24440 Fix typos in docstrings.
24441 (Fx_server_version): Reflow docstring.
24442 (Fw32_shell_execute): Doc fixes.
24443
24444 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
24445
24446 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24447 if w32_parse_hot_key returned nil.
24448
24449 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24450
24451 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24452
24453 2007-11-09 Jason Rumney <jasonr@gnu.org>
24454
24455 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24456
24457 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24458
24459 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24460 Remove W32_SCROLL_BAR_CLICK_EVENT.
24461
24462 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24463 Add MULTIMEDIA_KEY_EVENT.
24464
24465 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24466 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24467 (make_lispy_event) [WINDOWSNT]: Use it to translate
24468 MULTIMEDIA_KEY_EVENT.
24469
24470 * w32term.h (WM_APPCOMMAND): Define if not already.
24471 (GET_APPCOMMAND_LPARAM): Likewise.
24472
24473 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24474 WM_APPCOMMAND.
24475
24476 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24477 (syms_of_w32fns): Export and initialize it.
24478 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24479
24480 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
24481
24482 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24483 twice.
24484
24485 * xdisp.c (handle_face_prop): Fix last change.
24486
24487 2007-11-09 Richard Stallman <rms@gnu.org>
24488
24489 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24490 not just for after-strings and before-strings.
24491 Call face_for_overlay_string and pass the overlay to it.
24492 (handle_display_prop): Determine whether property came from an overlay.
24493 Pass OVERLAY arg to handle_single_display_spec.
24494 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24495 (load_overlay_strings): Fill in it->string_overlays.
24496 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24497
24498 * xfaces.c (face_for_overlay_string): Function renamed from
24499 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24500
24501 * dispextern.h (struct it): New elt string_overlays.
24502 New elt from_overlay, also in stack.
24503 Rearrange a few elements.
24504 (face_for_overlay_string): Decl renamed from
24505 face_at_buffer_position_no_overlays, and add argument.
24506
24507 2007-11-09 Richard Stallman <rms@gnu.org>
24508
24509 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24510 to get the base face for an overlay string.
24511
24512 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24513
24514 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24515
24516 * xdisp.c (handle_stop): Move some code out of loop.
24517
24518 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24519
24520 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24521 Fix conversion from Lisp object to ATSUFontID.
24522
24523 2007-11-09 Jason Rumney <jasonr@gnu.org>
24524
24525 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24526
24527 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24528
24529 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24530 Don't assume regions are aligned to page boundary.
24531 (print_load_command_name): Add LC_UUID if defined.
24532
24533 2007-11-09 Richard Stallman <rms@gnu.org>
24534
24535 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24536
24537 2007-11-07 Jason Rumney <jasonr@gnu.org>
24538
24539 * s/windows95.h: Remove.
24540
24541 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24542
24543 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24544 abort with a message on unhandled store_type values.
24545
24546 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24547
24548 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24549 Remove HAVE_X11R5 and HAVE_X11R4.
24550
24551 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24552
24553 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24554
24555 2007-11-01 Johan Bockgård <bojohan@gnu.org>
24556
24557 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24558 Don't set s->stippled_p here, since it has already been set by
24559 x_set_glyph_string_gc from x_draw_glyph_string.
24560
24561 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24562
24563 * sunfns.c: Remove file.
24564
24565 * m/sun386.h:
24566 * m/sun2.h:
24567 * m/sparc.h: Remove Sun windows code.
24568
24569 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24570
24571 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24572 (init_keyboard): Set current_kboard's window-system to nil.
24573 (tty_read_avail_input): Typo.
24574 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24575
24576 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24577
24578 * s/usg5-4.h:
24579 * s/usg5-3.h:
24580 * s/ptx.h:
24581 * m/is386.h:
24582 * m/ibmps2-aix.h:
24583 * Makefile.in: Remove all mentions of X10.
24584
24585 * dispnew.c (syms_of_display): Don't mention version 10.
24586
24587 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
24588
24589 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24590 ($(BLD)/abbrev.$(O)): Remove.
24591
24592 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24593
24594 Rewrite abbrev.c in Elisp.
24595 * image.c (Qcount): Don't declare as extern.
24596 (syms_of_image): Initialize and staticpro `Qcount'.
24597 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24598 * emacs.c (main): Don't call syms_of_abbrev.
24599 * Makefile.in (obj): Remove abbrev.o.
24600 (abbrev.o): Remove.
24601 * abbrev.c: Remove.
24602
24603 2007-10-26 Martin Rudalics <rudalics@gmx.at>
24604
24605 * window.c (window_min_size_2): Don't count header-line.
24606
24607 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24608
24609 * frame.h (struct frame): Move all bit fields after the first bit
24610 field to take advantage of the available space. Group all the
24611 chars together to reduce wasted space due to padding.
24612
24613 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
24614
24615 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24616
24617 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24618 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24619 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24620 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24621 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24622 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24623 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24624 (last_marked, mark_object_loop_halt): Make static.
24625
24626 * frame.c (syms_of_frame) <delete-frame-functions>:
24627 Fix typo in docstring.
24628
24629 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
24630
24631 * w32.c (init_environment): Fix tiny memory leak.
24632 (w32_get_resource): Remove unused variable `ok'.
24633
24634 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24635
24636 Make `window-system' into a keyboard-local variable (rather than
24637 frame-local as done originally by multi-tty).
24638
24639 * keyboard.h (struct kboard): Add Vwindow_system.
24640 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24641 (mark_kboards): Mark Vwindow_system.
24642
24643 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24644 (init_display): Don't set the obsolete `window-system' frame-param.
24645
24646 * xterm.c (x_term_init):
24647 * w32term.c (w32_create_terminal):
24648 * term.c (init_tty): Set Vwindow_system.
24649 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24650 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24651
24652 * xfns.c (Fx_create_frame, x_create_tip_frame):
24653 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24654 * macfns.c (Fx_create_frame):
24655 Don't set the obsolete `window-system' frame-param.
24656
24657 * frame.h (Qwindow_system): Remove.
24658 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24659 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24660
24661 2007-10-24 Richard Stallman <rms@gnu.org>
24662
24663 * frame.c (x_figure_window_size): For fullscreen case,
24664 set USPosition | PPosition without clobbering rest of window_prompting.
24665
24666 * keyboard.c (Fcurrent_idle_time): Doc fix.
24667
24668 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24669
24670 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24671
24672 * process.c (unwind_request_sigio): Only define if __ultrix__.
24673
24674 * callproc.c (child_setup): Remove spurious *.
24675
24676 * lisp.h (Fget_text_property): Declare.
24677 (have_menus_p): Declare it here rather than in sys-dep header files.
24678 * macterm.h (have_menus_p):
24679 * msdos.h (have_menus_p):
24680 * xterm.h (have_menus_p): Remove.
24681
24682 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24683 (Fmake_variable_frame_local): Just check the variable's const-ness
24684 rather than checking nil or t.
24685
24686 2007-10-22 Jason Rumney <jasonr@gnu.org>
24687
24688 * w32fns.c: Include math.h.
24689 (w32_abort): Declaration moved to nt/config.nt.
24690
24691 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24692 (abort): Redefinition moved to nt/config.nt.
24693
24694 * m/windowsnt.h: Remove.
24695
24696 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24697
24698 * emacs.c (Fdump_emacs): Fix typo in message.
24699 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24700 <installation-directory>: Reflow docstring.
24701
24702 2007-10-22 Juri Linkov <juri@jurta.org>
24703
24704 * minibuf.c: Allow minibuffer default to be a list of default values.
24705 With empty input use the first element of this list as returned default.
24706 (string_to_object)
24707 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24708 (read_minibuf): If defalt is cons, set histstring to its car.
24709 (Fread_string): If default_value is cons, set val to its car.
24710 (Fread_buffer): If def is cons, use its car.
24711 (Fcompleting_read): If defalt is cons, set val to its car.
24712
24713 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24714
24715 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24716
24717 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24718
24719 * doc.c (Fdocumentation): Check for advice in all cases.
24720
24721 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24722
24723 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24724
24725 2007-10-19 Richard Stallman <rms@gnu.org>
24726
24727 * doc.c (Fdocumentation): Check for and handle an advised function.
24728
24729 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24730
24731 * process.c (Fset_process_filter): Doc fix.
24732
24733 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24734
24735 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24736 which caused key-translation-map to applied repeatedly (thus breaking
24737 double-mode).
24738
24739 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24740
24741 * xselect.c (x_own_selection, x_handle_selection_clear)
24742 (x_clear_frame_selections):
24743 * w32menu.c (list_of_panes, list_of_items):
24744 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24745 * textprop.c (validate_plist, interval_has_all_properties)
24746 (interval_has_some_properties, interval_has_some_properties_list)
24747 (add_properties, text_property_list):
24748 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24749 * minibuf.c (Fassoc_string):
24750 * macselect.c (x_own_selection, x_clear_frame_selections)
24751 (Fx_disown_selection_internal):
24752 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24753 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24754
24755 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24756
24757 * process.c: Link to libs for calling res_init() if available.
24758 (Fmake_network_process): Call res_init() before getaddrinfo or
24759 gethostbyname, if possible.
24760
24761 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24762
24763 * lread.c (read1): Set pvectype for char_tables.
24764
24765 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24766 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24767 Add type checks.
24768 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24769
24770 * alloc.c (free_misc): Use XMISCTYPE.
24771 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24772
24773 2007-10-17 Glenn Morris <rgm@gnu.org>
24774
24775 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24776 (syms_of_minibuf): Add Qcompletion_ignore_case.
24777 * dired.c (Qcompletion_ignore_case): Change to external.
24778 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24779 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24780 (Fread_file_name): Use it rather than intern'ing.
24781
24782 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24783 (Fread_coding_system): Ignore case of user input.
24784
24785 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24786
24787 * xdisp.c (handle_display_prop): Ignore display specs after
24788 replacing one when string text is being replaced.
24789 (handle_single_display_spec): Pretend as if characters with display
24790 property haven't been consumed only when buffer text is being replaced.
24791
24792 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24793
24794 * xfns.c (Fx_create_frame, Fx_display_list):
24795 * window.c (window_fixed_size_p, enlarge_window)
24796 (shrink_window_lowest_first):
24797 * macterm.c (init_font_name_table):
24798 * macfns.c (Fx_create_frame, Fx_display_list):
24799 * lread.c (close_load_descs):
24800 * keyboard.c (read_char_x_menu_prompt):
24801 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24802 * coding.c (code_convert_region_unwind): Test the type of an object
24803 rather than just !NILP before extracting data from it.
24804
24805 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24806
24807 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24808 (XMISCANY): New macro.
24809 (XMISCTYPE): Use it.
24810 (struct Lisp_Misc_Any): New type.
24811 (union Lisp_Misc): Use it.
24812 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24813 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24814 (find_symbol_value, set_internal, default_value, Fset_default)
24815 (Fmake_variable_buffer_local, Fmake_local_variable)
24816 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24817 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24818 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24819 * alloc.c (allocate_buffer): Set the size and tag.
24820 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24821 Use XMISCANY.
24822 (die): Follow the GNU convention for error messages.
24823 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24824 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24825 tag any more.
24826 (set_buffer_internal_1):
24827 * frame.c (store_frame_param):
24828 * eval.c (specbind):
24829 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24830
24831 * doc.c (Fsnarf_documentation): Simplify.
24832
24833 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24834
24835 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24836 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24837
24838 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24839
24840 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24841
24842 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24843
24844 * eval.c (do_autoload): Don't save autoloads.
24845
24846 * data.c (Ffset): Save autoload of the function being set.
24847
24848 2007-10-07 John Paul Wallington <jpw@pobox.com>
24849
24850 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24851 parameter before setting up faces.
24852
24853 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24854
24855 * ccl.c (Fregister_code_conversion_map):
24856 * keyboard.c (append_tool_bar_item): Reformat last change.
24857
24858 * lisp.h (eabs): Rename from `abs'. All callers changed.
24859
24860 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24861
24862 * buffer.c (add_overlay_mod_hooklist):
24863 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24864 * fontset.c (make_fontset):
24865 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24866 (append_tool_bar_item):
24867 * macmenu.c (grow_menu_items):
24868 * w32menu.c (grow_menu_items):
24869 * xmenu.c (grow_menu_items): Use larger_vector.
24870
24871 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24872
24873 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24874 selected frame'' on MSDOS).
24875
24876 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24877
24878 * frame.c (Qexplicit_name): New variable.
24879 (x_report_frame_params): Report it in parameter alist.
24880 (syms_of_frame): Intern and staticpro it.
24881
24882 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24883
24884 * macfns.c (x_create_tip_frame): Set terminal for frame.
24885
24886 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24887
24888 * frame.c (Qenvironment): Remove.
24889 (syms_of_frame) <Qenvironment>: Don't initialize.
24890 (Fdelete_frame): Don't treat the `environment' param specially.
24891 * frame.h (Qenvironment): Don't declare.
24892 * callproc.c (set_initial_environment): Don't set unused frame param.
24893
24894 * frame.c (Fframe_with_environment): Remove.
24895 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24896
24897 * lisp.h (Fframe_with_environment): Don't declare.
24898
24899 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24900
24901 * indent.c (indent_tabs_mode, last_known_column)
24902 (last_known_column_modified): Make static.
24903 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24904
24905 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24906
24907 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24908
24909 2007-10-09 Jason Rumney <jasonr@gnu.org>
24910
24911 * w32term.c (x_set_window_size): Disable code that attempts to tell
24912 Lisp code about a size change before it actually happens.
24913
24914 2007-10-09 Richard Stallman <rms@gnu.org>
24915
24916 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24917 return HANDLED_RETURN.
24918
24919 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24920
24921 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24922 when there's an unread command event.
24923
24924 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24925 window autoselection act appropriately when leaving selected frame.
24926 (syms_of_frame): Initialize focus_follows_mouse.
24927 * frame.h (focus_follows_mouse): Extern it.
24928 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24929 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24930 * msdos.c (dos_rawgetc): Likewise.
24931 * w32term.c (w32_read_socket): Likewise.
24932 * xterm.c (handle_one_xevent): Likewise.
24933 * xdisp.c (syms_of_xdisp): In doc-string of
24934 mouse-autoselect-window mention focus-follows-mouse.
24935
24936 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24937
24938 * macterm.c (mac_load_query_font): Fix missing return value.
24939 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24940 Add BLOCK_INPUT.
24941
24942 2007-10-08 Richard Stallman <rms@gnu.org>
24943
24944 * xdisp.c (get_window_cursor_type): Implement documented behavior
24945 for cursor-in-non-selected-windows = t.
24946
24947 2007-10-08 Jason Rumney <jasonr@gnu.org>
24948
24949 * w32.c (w32_get_resource): Always close registry keys.
24950
24951 2007-10-08 Jason Rumney <jasonr@gnu.org>
24952
24953 * makefile.w32-in (LIBS): Add COMCTL32.
24954
24955 * w32fns.c (globals_of_w32fns): Init common controls.
24956
24957 2007-10-08 Richard Stallman <rms@gnu.org>
24958
24959 * image.c (our_memory_buffer): Rename from omfib_buffer.
24960
24961 2007-10-08 Richard Stallman <rms@gnu.org>
24962
24963 * buffer.c (Foverlays_at): Doc fix.
24964
24965 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24966
24967 * fns.c (Fplist_put): Preserve uneven tail data.
24968
24969 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24970
24971 * termhooks.h (enum event_kind): Remove trailing comma.
24972
24973 * frame.h (enum): Remove trailing comma.
24974
24975 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24976
24977 * w32proc.c (delete_child): Don't terminate threads of zombies.
24978
24979 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24980
24981 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24982
24983 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24984 last-repeatable-command.
24985 (init_kboard): Initialize Vlast_repeatable_command.
24986 (command_loop_1): Set it to real_this_command unless that was
24987 bound to an input event.
24988 (mark_kboards): Mark it.
24989
24990 2007-10-08 Richard Stallman <rms@gnu.org>
24991
24992 * eval.c (condition-case): Doc fix.
24993
24994 2007-10-08 Masatake YAMATO <jet@gyve.org>
24995
24996 * xfaces.c (tty_supports_face_attributes_p): Fix code
24997 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24998 was copied and not edited.
24999
25000 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25001
25002 Add new `input-decode-map' keymap and use it for terminal
25003 escape sequences.
25004 * keyboard.h (struct kboard): Add Vinput_decode_map.
25005 Remove Vlocal_key_translation_map.
25006 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25007 (init_kboard): Init input-decode-map.
25008 Replace local-key-translation-map back with key-translation-map.
25009 (syms_of_keyboard): Declare input-decode-map.
25010 Remove local-key-translation-map. Update docstrings.
25011 (mark_kboards): Mark Vinput_decode_map.
25012 Don't mark Vlocal_key_translation_map.
25013 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25014 Replace local-key-translation-map back with key-translation-map.
25015 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25016 Bind in input-decode-map rather than function-key-map.
25017
25018 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25019 This was made redundant by the previous introduction of XSETPVECTYPE.
25020
25021 2007-10-09 Richard Stallman <rms@gnu.org>
25022
25023 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25024
25025 2007-09-29 Richard Stallman <rms@gnu.org>
25026
25027 * eval.c (internal_condition_case_2, internal_condition_case_1)
25028 (internal_condition_case): Reenable abort if x_catching_errors ()
25029 to see if that really happens and why.
25030
25031 2007-10-06 Andreas Schwab <schwab@suse.de>
25032
25033 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25034
25035 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
25036
25037 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25038
25039 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25040
25041 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25042
25043 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25044
25045 * window.h (struct window):
25046 * window.c (struct save_window_data, struct saved_window):
25047 * termhooks.h (struct terminal):
25048 * process.h (struct Lisp_Process):
25049 * frame.h (struct frame):
25050 * buffer.h (struct buffer):
25051 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25052 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25053 The size field of (pseudo)vectors is now unsigned.
25054 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25055
25056 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25057 Turn `count' into an integer.
25058
25059 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25060 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25061 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25062 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25063 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25064
25065 * alloc.c (allocate_pseudovector): New fun.
25066 (ALLOCATE_PSEUDOVECTOR): New macro.
25067 (allocate_window, allocate_terminal, allocate_frame)
25068 (allocate_process): Use it.
25069 (mark_vectorlike): New function.
25070 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25071 (mark_terminals): Use it.
25072 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25073 (Fmake_byte_code): Use XSETPVECTYPE.
25074
25075 * frame.c (Fframe_parameters): Minor simplification.
25076
25077 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25078
25079 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25080
25081 * buffer.c (Fget_buffer_create, init_buffer_once):
25082 * lread.c (defsubr):
25083 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25084
25085 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25086 defined differently in the m/*.h files.
25087 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25088 (XSETPVECTYPE): New macro.
25089 (XSETPSEUDOVECTOR): Use it.
25090
25091 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25092 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25093
25094 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25095 * lread.c (defvar_per_buffer):
25096 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25097
25098 * window.c (candidate_window_p): Only consider as visible frames that
25099 are on the same terminal.
25100
25101 * m/ibms390x.h (MARKBIT): Remove unused macro.
25102
25103 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
25104
25105 * lread.c (Fload): Fix typo in docstring.
25106
25107 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25108
25109 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25110 of a non-zero value can't yield zero.
25111
25112 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25113
25114 * term.c (term_clear_mouse_face, term_mouse_highlight)
25115 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25116
25117 * print.c (safe_debug_print): Use XHASH.
25118
25119 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25120 Lisp elements such as tags.
25121 (XHASH): New macro.
25122 (EQ): Use it.
25123 (SREF, SSET, STRING_COPYIN): Use SDATA.
25124 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25125
25126 * alloc.c (mark_terminal): Remove left-over declaration.
25127 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25128 (allocate_vectorlike): Remove type argument. Adjust callers.
25129 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25130 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25131
25132 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25133 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25134 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25135 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25136 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25137 Use them.
25138
25139 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25140 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25141 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25142
25143 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25144
25145 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25146 loaded by default.
25147
25148 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25149
25150 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25151 on this tty.
25152 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25153
25154 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25155 Update all users.
25156 (handle_one_term_event): Use Gpm_DrawPointer.
25157 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25158 Signal errors instead of returning nil. Always return nil.
25159 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25160 Make it a noop if gpm-mouse was not activated.
25161 (syms_of_term): Update names.
25162
25163 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25164
25165 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25166 (init_sys_modes): Check that gpm_tty is the current tty.
25167
25168 * alloc.c (allocate_terminal): Set the vector size to only count the
25169 lisp fields. Initialize those to nil.
25170 (mark_object): Don't treat terminals specially.
25171 (mark_terminal): Remove.
25172 (mark_terminals): Use mark_object instead.
25173
25174 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25175 the GC to the beginning.
25176
25177 * indent.h:
25178 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25179
25180 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25181
25182 2007-09-25 Jason Rumney <jasonr@gnu.org>
25183
25184 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25185
25186 * w32console.c (create_w32cons_output): Remove.
25187
25188 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25189
25190 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25191 (reset_sys_modes): Use reset_terminal_modes_hook.
25192
25193 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25194
25195 * eval.c (do_autoload): Don't output any message.
25196
25197 2007-09-24 Juri Linkov <juri@jurta.org>
25198
25199 * emacs.c (standard_args): Change priority of "--no-splash"
25200 from 40 to 3. Add "--no-desktop" with the same priority.
25201
25202 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25203
25204 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25205 and optimize the case where they are all 1.
25206
25207 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
25208
25209 * lisp.h (abs): Define if not defined.
25210 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25211 Don't define `abs', since it's defined in lisp.h.
25212
25213 2007-09-22 Eli Zaretskii <eliz@gnu.org>
25214
25215 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25216 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25217 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25218 (init_tty): Use DEV_TTY instead of "/dev/tty".
25219 [WINDOWSNT]: No need to protect from NAME arg being null.
25220
25221 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25222
25223 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25224 up the tty state.
25225
25226 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25227
25228 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25229 (gpm_tty): Change its type.
25230 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25231 (gpm_tty): Change its type and initialize it.
25232 (Fterm_open_connection): Check the frame is indeed a tty.
25233 Use the new gpm_tty.
25234 (Fterm_close_connection): Use the new gpm_tty.
25235 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25236 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25237
25238 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
25239
25240 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25241 underline_color, to draw strike-through.
25242
25243 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25244
25245 * lisp.h (allocate_terminal): Declare.
25246
25247 * window.c (candidate_window_p): Consider frames that are being placed
25248 by the user as somewhere between visible and iconified.
25249 (window_loop): Prefer windows on the current frame.
25250 (Fselect_window): Move the use of select-frame to the beginning so we
25251 can just delegate all the work (it'll call us back anyway).
25252
25253 * frame.c (Qdisplay_environment_variable):
25254 * frame.h (Qdisplay_environment_variable): Delete.
25255
25256 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25257 of the first arg, since that value may be a union.
25258
25259 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25260 parameter rather than Qdisplay_environment_variable. If all else
25261 fails, look for DISPLAY in initial-environment.
25262
25263 2007-09-21 Glenn Morris <rgm@gnu.org>
25264
25265 * Makefile.in (emacstool): Remove target.
25266 (lisp, shortlisp): Remove termdev.elc.
25267
25268 2007-09-21 Markus Triska <markus.triska@gmx.at>
25269
25270 * xterm.c (x_delete_display): Compile session management conditionally.
25271
25272 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25273
25274 * callproc.c (getenv_internal_1): New function.
25275 (getenv_internal): Use it.
25276 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25277
25278 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25279 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25280 (Fset_terminal_parameter): Work with dead terminals as well.
25281 (Fmodify_terminal_parameters): Remove.
25282
25283 * terminal.c (get_terminal): Handle terminals.
25284 Make sure the terminal returned is live.
25285 (create_terminal): Use allocate_terminal.
25286 (mark_terminals): Move to alloc.c.
25287 (delete_terminal): Use terminal->name as liveness status.
25288 NULL out fields after freeing their contents.
25289 Don't deallocate the object.
25290 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25291 rather than an int.
25292 (Fterminal_live_p): Accept non-integer arguments.
25293 (Fterminal_list): Return terminal objects rather than an ints.
25294
25295 * alloc.c (enum mem_type): New member for `terminal' objects.
25296 (allocate_terminal): New function.
25297 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25298 Handle terminals.
25299 (mark_terminal): New fun.
25300 (mark_terminals): Move from terminal.c.
25301
25302 * term.c (get_tty_terminal): Don't treat output_initial specially.
25303 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25304 (delete_tty): Use terminal->name as liveness status.
25305
25306 * termhooks.h (struct terminal): Make it into a pseudovector.
25307 Remove `deleted' replaced by checking `name's nullness.
25308
25309 * print.c (print_object): Handle terminals.
25310
25311 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25312 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25313
25314 * frame.c (make_terminal_frame):
25315 * keyboard.c (tty_read_avail_input):
25316 * w32term.c (x_delete_terminal):
25317 * xfns.c (Fx_create_frame, x_create_tip_frame):
25318 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25319
25320 2007-09-20 Glenn Morris <rgm@gnu.org>
25321
25322 * process.c (Fmake_network_process): Doc fix.
25323
25324 2007-09-19 Jason Rumney <jasonr@gnu.org>
25325
25326 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25327
25328 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25329
25330 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25331 Fix a C warning regarding variable constness.
25332
25333 * xterm.c (handle_one_xevent): Fix a C warning.
25334
25335 2007-09-18 Jason Rumney <jasonr@gnu.org>
25336
25337 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25338
25339 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25340
25341 * gtkutil.c (gdpy_def): New variable.
25342 (xg_initialize): Initialize gdpy_def.
25343 (xg_display_close): If no other display exists, set gdpy_def to a
25344 new connection.
25345
25346 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25347
25348 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25349 when we have no file name for the icon.
25350 (xg_tool_bar_expose_callback): Remove.
25351 (xg_create_tool_bar): Don't connect expose signal to
25352 xg_tool_bar_expose_callback.
25353 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25354
25355 2007-09-16 Andreas Schwab <schwab@suse.de>
25356
25357 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25358 values instead of zapping them.
25359
25360 2007-09-14 Glenn Morris <rgm@gnu.org>
25361
25362 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25363 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25364 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25365 scope and rename to omfib_buffer for clarity.
25366 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25367
25368 2007-09-14 Kenichi Handa <handa@m17n.org>
25369
25370 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25371
25372 2007-09-13 Jason Rumney <jasonr@gnu.org>
25373
25374 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25375
25376 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25377
25378 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25379 (mac_term_init): Call here instead, passing rif.
25380
25381 2007-09-13 Glenn Morris <rgm@gnu.org>
25382
25383 * s/hpux.h: No longer define `static' as nothing.
25384
25385 2007-09-13 Johan Bockgård <bojohan@gnu.org>
25386
25387 * callint.c (Fcall_interactively): Remove unused var `fun'.
25388
25389 2007-09-12 Romain Francoise <romain@orebokech.com>
25390
25391 * window.c (prefer_window_split_horizontally, display_buffer):
25392 Revert 2007-09-08 change.
25393
25394 2007-09-12 Glenn Morris <rgm@gnu.org>
25395
25396 * alloca.c: Remove file.
25397 * Makefile.in (alloca): Do not undef.
25398 (allocaobj, alloca.o): Remove.
25399 (otherobj): Remove allocaobj.
25400 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25401 * regex.c (C_ALLOCA): Remove all references and code that was only
25402 used when this was defined.
25403 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25404 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25405 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25406
25407 * Makefile.in (SOURCES, unlock, relock): Delete.
25408
25409 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25410 (menu_grab_callback): All uses changed.
25411
25412 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25413 (x_reply_selection_request): All uses changed.
25414
25415 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25416
25417 * lread.c (load_warn_old_style_backquotes): Change message to look
25418 better when it appears in the middle of byte-compiler messages.
25419
25420 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25421
25422 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25423
25424 * xterm.c (x_create_terminal): Add comment.
25425
25426 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25427
25428 2007-09-10 Richard Stallman <rms@gnu.org>
25429
25430 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25431
25432 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25433
25434 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25435 (DEFUN): Document `intspec', use it instead of `prompt'.
25436
25437 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25438
25439 * data.c (Finteractive_form): If the interactive specification starts
25440 with a `(', use it as a Lisp form.
25441
25442 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25443 name and file modes.
25444
25445 * callint.c (Fcall_interactively): Comment fixes.
25446
25447 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25448
25449 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25450 and compiled functions.
25451
25452 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25453
25454 * window.c (prefer_window_split_horizontally): New variable.
25455 (display_buffer): Consider splitting window horizontally depending
25456 on prefer_window_split_horizontally.
25457
25458 2007-09-08 Eli Zaretskii <eliz@gnu.org>
25459
25460 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25461
25462 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25463
25464 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25465
25466 * frame.c (x_set_frame_parameters): Check number is positive before
25467 using XFASTINT.
25468
25469 * window.c (freeze_window_start): Don't presume selected_window holds
25470 a window object.
25471 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25472
25473 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25474
25475 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25476
25477 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25478
25479 * window.c (Vsplit_window_preferred_function): New var.
25480 (Fdisplay_buffer): Use it.
25481 (syms_of_window): Export, and initialize it.
25482
25483 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25484
25485 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25486
25487 2007-09-06 Glenn Morris <rgm@gnu.org>
25488
25489 * gtkutil.c (menu_grab_callback) <cnt>:
25490 * xselect.c (x_reply_selection_request) <cnt>: Move static
25491 variable to file scope.
25492
25493 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25494
25495 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25496 consistent values of selected_frame and selected_window.
25497
25498 2007-09-04 Jason Rumney <jasonr@gnu.org>
25499
25500 * w32console.c (initialize_w32_display): Zero unused hooks.
25501
25502 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25503
25504 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25505 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25506
25507 2007-09-04 Jason Rumney <jasonr@gnu.org>
25508
25509 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25510 in w32console.c. Set up input. Remove XXX comments that have been
25511 confirmed as correct.
25512
25513 * s/ms-w32.h (MULTI_KBOARD): Define.
25514
25515 * w32console.c (one_and_only_w32cons): Remove.
25516 (initialize_w32_display): Take terminal argument.
25517
25518 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25519 initialize_w32_display.
25520 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25521
25522 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25523
25524 * keyboard.c (discard_mouse_events): Discard it.
25525 (make_lispy_event): Translate it to a lisp event.
25526 (lispy_wheel_names): Add wheel-left and right events.
25527 (syms_of_keyboard): Enlarge wheel_syms.
25528
25529 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25530 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25531
25532 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25533
25534 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25535 from WM_MOUSEHWHEEL.
25536 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25537
25538 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25539 terminal.
25540
25541 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25542 keyboard for the terminal.
25543
25544 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25545
25546 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25547 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25548 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25549 and resume-tty-function to resume-tty-hook.
25550 (Fsuspend_tty, Fresume_tty): Use new names.
25551
25552 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25553
25554 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25555 if it starts with "n:".
25556
25557 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25558
25559 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25560
25561 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25562
25563 * frame.h:
25564 * frame.c (Qterm_environment_variable): Remove.
25565 (syms_of_frame): Don't init and staticpro it.
25566
25567 * callproc.c (getenv_internal): Remove special case for $TERM.
25568
25569 * callproc.c (Vinitial_environment): New variable.
25570 (set_initial_environment): Initialize it.
25571 (syms_of_callproc): Declare it.
25572 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25573 TERM under which a process runs is never related to the TERM in which
25574 Emacs is running.
25575
25576 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25577
25578 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25579 * s/darwin.h: ... do it here.
25580
25581 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25582
25583 * lisp.h (set_initial_environment): Rename from set_global_environment.
25584
25585 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25586 removed by mistake on the multi-tty branch.
25587
25588 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25589 (Fmodify_frame_parameters): Return a value.
25590
25591 * image.c (png_load): Comment-out var only used in commented-out code.
25592
25593 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25594 before passing it to mark_object.
25595
25596 * xfaces.c (internal_resolve_face_name): Return a value.
25597 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25598
25599 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25600 (x_icon): Comment-out var only used in commented-out code.
25601
25602 2007-08-29 Romain Francoise <romain@orebokech.com>
25603
25604 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25605 QUIT hasn't been provided.
25606
25607 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25608
25609 * callproc.c (child_setup, getenv_internal): Use the
25610 display-environment-variable and term-environment-variable frame params.
25611 (set_initial_environment): Initialise Vprocess_environment.
25612
25613 * config.in: Disable multi-keyboard support on a mac.
25614
25615 * frame.c (Qterm_environment_variable)
25616 (Qdisplay_environment_variable): New variables.
25617 (syms_of_frame): Intern and staticpro them.
25618 (Fmake_terminal_frame): Disable output method test.
25619
25620 * frame.h: Declare them here.
25621
25622 * macfns.c (x_set_mouse_color): Get rif from the frame.
25623 (x_set_tool_bar_lines): Don't use updating_frame.
25624 (mac_window): Add 2 new parameters for consistency with other systems.
25625 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25626 frame parameters following what is done in X11 and w32. Don't use
25627 FRAME_MAC_DISPLAY_INFO.
25628 (Fx_open_connection, start_hourglass): Remove window-system check.
25629 (x_create_tip_frame): Get the keyboard from the terminal.
25630
25631 * macmenu.c: Reorder includes.
25632 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25633
25634 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25635 terminal parameter.
25636 (x_clear_frame): Add a frame parameter.
25637 (note_mouse_movement): Get rif from the frame.
25638 (mac_term_init): Initialize the terminal.
25639 (mac_initialize): Make static and move terminal initialization ...
25640 (mac_create_terminal): ... to this new function.
25641
25642 * macterm.h (struct mac_display_info): Add terminal.
25643 (mac_initialize): Delete declaration.
25644
25645 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25646
25647 * sysdep.c: Comment out text after #endif.
25648
25649 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25650 is defined. Better initialize ttys in windows. Use terminal
25651 specific mouse_position_hook.
25652
25653 * termhooks.h (union display_info): Add mac_display_info.
25654
25655 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25656 Set the default minibuffer frame, window_system and the rest of the
25657 frame parameters following what is done in X11.
25658
25659 * w32term.c (w32_initialize): Make static.
25660
25661 * xselect.c (x_handle_selection_clear): Only access
25662 terminal->kboard when MULTI_KBOARD is defined.
25663
25664 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25665 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25666
25667 2007-08-29 Jason Rumney <jasonr@gnu.org>
25668
25669 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25670 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25671
25672 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25673 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25674
25675 * keyboard.c (restore_kboard_configuration): Only define when
25676 MULTI_KBOARD defined.
25677
25678 * makefile.w32-in: Update dependancies from Makefile.in.
25679 (OBJ1): Add terminal.$(O)
25680
25681 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25682 Don't define function body.
25683 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25684
25685 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25686
25687 * w32.c (request_sigio, unrequest_sigio): Remove.
25688
25689 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25690 (w32con_clear_frame, w32con_clear_end_of_line)
25691 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25692 (w32con_delete_glyphs, w32con_set_terminal_window)
25693 (scroll_line, w32_sys_ring_bell): Add frame arg.
25694 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25695 Add terminal arg.
25696 (PICK_FRAME): Remove.
25697 (w32con_write_glyphs): Use frame specific terminal coding.
25698 (one_and_only_w32cons): New global variable.
25699 (initialize_w32_display): Use it for storing hooks.
25700 (create_w32cons_output): New function.
25701
25702 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25703 arg a frame.
25704
25705 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25706 Set window_system.
25707 (x_set_tool_bar_lines): Don't use updating_frame.
25708 (Fx_create_frame): Set terminal and ref count.
25709 (Fx_open_connection): Remove window-system check.
25710
25711 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25712
25713 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25714 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25715 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25716 Add frame arg.
25717 (x_delete_terminal, w32_create_terminal): New functions.
25718 (w32_term_init): Create a terminal.
25719 (w32_initialize): Move terminal specific initialization to
25720 w32_create_terminal.
25721
25722 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25723 (w32_clear_rect, w32_clear_area): Use background from frame.
25724 (w32_display_info): Add terminal.
25725 (w32_sys_ring_bell, x_delete_display): Declare here.
25726
25727 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25728
25729 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25730
25731 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25732
25733 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25734 Fix get_named_tty calls for the controlling tty.
25735
25736 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25737
25738 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25739
25740 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25741
25742 * term.c (tty_insert_glyphs): Add missing first parameter.
25743
25744 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25745
25746 * buffer.c (Fbuffer_list, Fbury_buffer):
25747 Take frame->buried_buffer_list into account.
25748
25749 * cm.c (current_tty): New variable, for cmputc().
25750 (cmputc): Use it.
25751 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25752 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25753 (cmgoto): Add tty parameter. Pass it on to calccost().
25754 Use emacs_tputs() instead of tputs().
25755
25756 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25757 tputs().
25758 (current_tty): New variable, for cmputc().
25759 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25760
25761 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25762 (internal_condition_case, internal_condition_case_1)
25763 (internal_condition_case_2): Don't abort when x_catching_errors.
25764
25765 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25766 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25767 prevent crashes caused by bogus longjmps in read_char.
25768
25769 * keymap.h (Fset_keymap_parent): Add EXFUN.
25770
25771 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25772 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25773 Remove redundant definition.
25774
25775 * macfns.c (x_set_mouse_color, x_make_gc):
25776 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25777
25778 * w32term.c (x_free_frame_resources):
25779 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25780 (w32_initialize): Use the accessor macros for terminal characteristics.
25781
25782 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25783 Use the accessor macros for terminal characteristics.
25784 * msdos.c (internal_terminal_init): Use the accessor macros for
25785 terminal characteristics.
25786 (ScreenVisualBell, internal_terminal_init):
25787 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25788
25789 * termopts.h (no_redraw_on_reenter): Declare.
25790
25791 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25792 (mark_terminals, mark_ttys): Declare.
25793 (Fgarbage_collect): Call them.
25794 (mark_object): Mark buried_buffer_list.
25795
25796 * prefix-args.c: Include stdlib.h for exit.
25797
25798 * syssignal.h: Add comment.
25799
25800 * indent.c: Include stdio.h.
25801
25802 * window.h (Vinitial_window_system): Declare.
25803 (Vwindow_system): Delete declaration.
25804
25805 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25806
25807 * image.c (lookup_image): Don't initialize `c' until the xasserts
25808 have been run.
25809
25810 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25811 FRAME_FOREGROUND_PIXEL.
25812
25813 * print.c (print_preprocess): Don't lose print_depth levels while
25814 iterating.
25815
25816 * widget.c (update_from_various_frame_slots):
25817 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25818
25819 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25820 frames.
25821 (window_internal_height): Remove bogus make_number call.
25822 (init_window_once): Call make_terminal_frame with two zero parameters.
25823
25824 * fileio.c (Fread_file_name): Update comment.
25825
25826 * callint.c (Fcall_interactively):
25827 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25828 Make sure it is correctly unwound.
25829
25830 * xsmfns.c (x_session_close): New function.
25831
25832 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25833 Delete declarations.
25834
25835 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25836 (x_output): Remove background_pixel and foreground_pixel fields.
25837 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25838 (x_delete_device, x_session_close): Declare.
25839
25840 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25841 (read_filtered_event): Call `read_char' with a local
25842 `wrong_kboard_jmpbuf'.
25843
25844 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25845 Don't call single_kboard_state. Use FRAME_RIF.
25846
25847 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25848 systems.
25849
25850 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25851 (Fframe_with_environment, Fset_input_meta_mode)
25852 (Fset_quit_char): EXFUN.
25853 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25854 (init_sys_modes, reset_sys_modes): Update prototypes.
25855 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25856
25857 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25858 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25859 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25860 Delete declarations.
25861 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25862 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25863 New declarations.
25864
25865 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25866 already does that during init_display(). Call syms_of_keymap
25867 before syms_of_keyboard. Call `syms_of_terminal'.
25868 Call set_initial_environment, not set_process_environment.
25869 (shut_down_emacs): Call reset_all_sys_modes() instead of
25870 reset_sys_modes().
25871
25872 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25873 (internal_resolve_face_name, resolve_face_name_error): New functions.
25874 (resolve_face_name): Protect against loops and errors thrown by Fget.
25875 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25876 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25877
25878 * scroll.c: Replace CURTTY() with local variables throughout the
25879 file (where applicable).
25880 (calculate_scrolling, calculate_direct_scrolling)
25881 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25882 characteristics.
25883
25884 * keymap.c (Vfunction_key_map): Remove.
25885 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25886 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25887 (Vkey_translation_map): Remove.
25888 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25889 (Fdescribe_buffer_bindings)
25890 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25891 Update for terminal-local key-translation-map.
25892
25893 * Makefile.in (callproc.o): Update dependencies.
25894 (lisp, shortlisp): Add termdev.elc.
25895 (obj): Add terminal.o.
25896 (terminal.o): Add dependencies.
25897 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25898 (data.o, fns.o): Add termhooks.h dependency.
25899 (SOME_MACHINE_LISP): Add dnd.elc.
25900 (minibuf.o): Fix typo.
25901 Update dependencies.
25902
25903 * data.c (do_symval_forwarding, store_symval_forwarding)
25904 (find_symbol_value): Use the selected frame's keyboard, not
25905 current_kboard.
25906
25907 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25908 Vwindow_system.
25909
25910 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25911 Fmenu_bar_open.
25912 (syms_of_xmenu): Update defsubr.
25913 (mouse_position_for_popup, Fx_popup_menu)
25914 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25915 (set_frame_menubar, free_frame_menubar)
25916 (create_and_show_popup_menu, xmenu_show)
25917 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25918 an X frame.
25919
25920 * xselect.c (x_own_selection): Abort if not an X frame.
25921 (some_frame_on_display): Check if it is an X frame.
25922 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25923
25924 * coding.c: Include frame.h and termhooks.h.
25925 (terminal_coding, keyboard_coding): Delete.
25926 (Fset_terminal_coding_system_internal)
25927 (Fset_keyboard_coding_system_internal)
25928 (Fkeyboard_coding_system)
25929 (Fterminal_coding_system): Add a terminal parameter.
25930 Get terminal_coding from the terminal.
25931 (init_coding_once): Don't call setup_coding_system here.
25932
25933 * dispextern.h (set_scroll_region, turn_off_insert)
25934 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25935 (tty_clear_end_of_line, tty_setup_colors)
25936 (delete_tty, updating_frame)
25937 (produce_special_glyphs, produce_glyphs, write_glyphs)
25938 (insert_glyphs): Remove.
25939 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25940 (tty_turn_off_highlight, get_tty_size): Add declaration.
25941 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25942
25943 * frame.h (enum output_method): Add output_initial.
25944 (struct x_output): Delete.
25945 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25946 Access foreground_pixel and background_pixel directly from the frame.
25947 (tty_display): Delete.
25948 (struct frame): Add buried_buffer_list, foreground_pixel,
25949 background_pixel and terminal. Delete kboard.
25950 (union output_data): Add tty.
25951 (FRAME_KBOARD): Get the kboard from the terminal.
25952 (FRAME_INITIAL_P): New macro.
25953 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25954 (Qterm_environment_variable, Qdisplay_environment_variable)
25955 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25956 New declarations.
25957
25958 * termchar.h (tty_output, tty_display_info): New structures.
25959 (tty_list): Declare.
25960 (FRAME_TTY, CURTTY): New macros.
25961 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25962 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25963 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25964 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25965
25966 * callproc.c: Include frame.h and termhooks.h, for terminal
25967 parameters.
25968 (add_env): New function.
25969 (child_setup): Use it.
25970 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25971 (getenv_internal): Fix get_terminal_param call.
25972 (Fgetenv_internal, egetenv): Update doc.
25973 (syms_of_callproc): Initialize Vprocess_environment to nil.
25974 Register and initialize them. Remove obsolete defvars. Update doc
25975 strings.
25976 (child_setup): Handle Vlocal_environment_variables.
25977 (getenv_internal): Add terminal parameter.
25978 Handle Vlocal_environment_variables.
25979 (Fgetenv_internal): Add terminal parameter.
25980 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25981 environment in a frame (not terminal) parameter. Update doc strings.
25982 (set_initial_environment): Rename from set_global_environment.
25983 Store Emacs environment in initial frame parameter.
25984
25985 * xdisp.c (redisplay_internal): Update references to
25986 `previous_terminal_frame'.
25987 (display_mode_line, Fformat_mode_line): Replace calls to
25988 `push_frame_kboard' with `push_kboard'.
25989 (get_glyph_string_clip_rects): Add extra parentheses and
25990 braces to prevent compiler warnings.
25991 (calc_pixel_width_or_height): Add xassert to check that the
25992 frame is alive. Don't call `lookup_image' on a termcap frame.
25993 (message2_nolog, message3_nolog, redisplay_internal)
25994 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25995 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25996 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25997 (Fx_display_pixel_width, Fx_display_pixel_height)
25998 (Fx_display_planes, Fx_display_color_cells)
25999 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26000 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26001 (Fx_display_backing_store, Fx_display_visual_class)
26002 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26003 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26004
26005 * xfns.c (x_set_foreground_color x_set_background_color)
26006 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26007 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26008 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26009 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26010 terminal that is being deleted.
26011 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26012 frame parameter, and make sure it overrides any user-supplied setting.
26013 (Fx_close_connection, Fx_synchronize): Unify argument names with
26014 the rest of the DEFUNs.
26015
26016 * dispnew.c (Fsend_string_to_terminal): Update call to
26017 `get_tty_terminal'.
26018 (Fredraw_frame, Fsend_string_to_terminal)
26019 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26020 FRAME_TERMCAP_P and FRAME_TTY.
26021 (window_change_signal): Don't believe width/height values that are
26022 impossibly small.
26023 (Vinitial_window_system): Rename from Vwindow_system.
26024 (termscript, Wcm, rif): Delete.
26025
26026 * termhooks.h (struct terminal): New struct containing the
26027 previously global text display hooks and new members NAME,
26028 DELETED and PARAM_ALIST.
26029 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26030 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26031 (FRAME_RIF): New macros.
26032 (get_terminal_param, get_device): New declarations.
26033 (termscript): Delete declaration.
26034
26035 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26036 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26037 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26038 FRAME_FOREGROUND_PIXEL.
26039 (x_fully_uncatch_errors): Disable definition.
26040 (x_scroll_bar_expose): Fix reference to foreground pixel.
26041 (XTread_socket): Disable loop on all X displays.
26042 (x_delete_terminal): Don't set terminal->deleted and let
26043 delete_terminal delete the frames on the terminal.
26044 (x_delete_display): Doc update to reflect changes in
26045 delete_terminal.
26046 (x_display_info) <terminal>: Move member earlier in the struct.
26047 (deleting_tty): Remove old variable.
26048 (Fsuspend_tty): Call clear_tty_hooks.
26049 (Fresume_tty, init_tty): Call set_tty_hooks.
26050 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26051 errors on X frames.
26052 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26053 (handle_one_xevent): Initialize `f' to NULL.
26054 (x_delete_terminal, x_create_terminal): New functions.
26055 (XTset_terminal_modes, XTreset_terminal_modes)
26056 (XTread_socket, x_connection_closed, x_term_init)
26057 (x_term_init, x_delete_display): Add terminal parameter.
26058 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26059 X connections.
26060
26061 * frame.c: Include termchar.h.
26062 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26063 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26064 (Qdisplay_environment_variable): New vars.
26065 (Fframep): Deal with output_initial.
26066 (Fframe-live-p): Doc fix.
26067 (Fwindow-system): New function.
26068 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26069 (make_terminal_frame): Don't create frames on a terminal that is
26070 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26071 (store_frame_param): Check for found_for_frame before calling XFRAME.
26072 (Fmake_terminal_frame): Handle NULL tty names correctly.
26073 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26074 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26075 frames to refer to a deleted frame in their 'environment parameter.
26076 (Fframe_with_environment): New function.
26077 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26078 (get_future_frame_param): New function.
26079 (Fmake_terminal_frame): Use it.
26080 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26081
26082 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26083 * sysdep.c (reset_sys_modes): Update for renames.
26084
26085 * keyboard.c (tty_read_avail_input): New function.
26086 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26087 (syms_of_keyboard): Defsubr them.
26088 (Fset_input_meta_mode, Fset_quit_char): New functions.
26089 (Fset_input_mode): Split to above functions.
26090 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26091 parameter. Use it in call to `read_char'.
26092 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26093 Set wrong_kboard_jmpbuf correctly in recursive calls.
26094 Use current_kboard to access Vkeyboard_translate_table.
26095 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26096 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26097 Update longjmp invocations. Remember the original current_kboard,
26098 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26099 changes it. Comment out unnecessary calls to
26100 `record_single_kboard_state' and `any_kboard_state'.
26101 Update recursive calls.
26102 (wrong_kboard_jmpbuf): Remove global variable.
26103 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26104 Handle deleted interrupted_kboards correctly; that is a legal
26105 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26106 and read_char calls. Abort if interrupted_kboard died in read_char.
26107 (any_kboard_state, single_kboard_state)
26108 (push_frame_kboard): Remove function.
26109 (pop_kboard): Switch out of single_kboard mode if the kboard has
26110 been deleted. Remove unused variable. Help debugging by not
26111 changing current_kboard unnecessarily. Set current_kboard to the
26112 kboard of the selected frame when the stored kboard object has
26113 been deleted before pop_kboard.
26114 (temporarily_switch_to_single_kboard): Change first parameter to a
26115 frame pointer. Throw an error when caller wants to change kboards
26116 while in single_kboard mode. Don't push_kboard if we weren't in
26117 single kboard state. Don't pop_kboard if we popped into any
26118 kboard state.
26119 (restore_kboard_configuration): Abort if pop_kboard changed the
26120 kboard in single_kboard mode. Call pop_kboard only after setting
26121 up single_kboard mode.
26122 (Frecursive_edit): Switch to single_kboard mode only in nested
26123 command loops.
26124 (cmd_error, command_loop, command_loop_1, timer_check):
26125 Comment out unnecessary call to `any_kboard_state' and
26126 `record_single_kboard_state'.
26127 (delete_kboard): Exit single_kboard mode if we have just deleted
26128 that kboard. Use FRAME_KBOARD.
26129 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26130 `fatal_error_signal'.
26131 (record_single_kboard_state): Don't push_kboard if we weren't in
26132 single kboard state. Don't pop_kboard if we popped into any
26133 kboard state.
26134 (push_frame_kboard): Rename to push_kboard.
26135 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26136 (read_avail_input): Read input from all terminals.
26137 (mark_kboards): Also mark Vkeyboard_translate_table.
26138 (kbd_buffer_store_event_hold): Simplify condition.
26139 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26140 (Vkeyboard_translate_table): Move to struct kboard.
26141 (init_kboard): Initialize Vkeyboard_translate_table.
26142 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26143 Vkeyboard_translate_table. Update doc strings. Update docs of
26144 local-function-key-map and function-key-map.
26145
26146 * terminal.c: New file.
26147
26148 * term.c: Include errno.h.
26149 (Vring_bell_function, device_list, initial_device)
26150 (next_device_id, ring_bell, update_begin, update_end)
26151 (set_terminal_window, cursor_to, raw_cursor_to)
26152 (clear_to_end, clear_frame, clear_end_of_line)
26153 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26154 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26155 (syms_of_term): Move their initialization to terminal.c.
26156 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26157 (Ftty_display_color_cells)
26158 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26159 (clear_tty_hooks, set_tty_hooks)
26160 (init_tty, maybe_fatal): New functions.
26161 (Ftty_type): Return nil if terminal is not on a tty instead of
26162 throwing an error. Doc update.
26163 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26164 Doc update. Initialize new subrs and variables.
26165 (delete_tty): Use terminal->deleted.
26166 (tty_set_terminal_modes): Rename from set_terminal_modes.
26167 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26168 (set_scroll_region): Rename to `tty_set_scroll_region'.
26169 (turn_on_insert): Rename to `tty_turn_on_insert'.
26170 (turn_off_insert): Rename to `tty_turn_off_insert'.
26171 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26172 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26173 (toggle_highligh): Rename to `tty_toggle_highlight'.
26174 (background_highlight): Rename to `tty_background_highlight'.
26175 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26176 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26177 (tty_set_scroll_region, tty_background_highlight)
26178 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26179 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26180 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26181 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26182 Add static modifier.
26183 (tty_reset_terminal_modes, tty_set_terminal_window)
26184 (tty_set_scroll_region, tty_background_highlight)
26185 (tty_highlight_if_desired, tty_cursor_to)
26186 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26187 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26188 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26189 renames.
26190
26191 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26192
26193 * keyboard.c: Qrtl is new.
26194 (parse_tool_bar_item): Handle :rtl keyword.
26195 (syms_of_keyboard): Intern :rtl keyword.
26196
26197 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26198
26199 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26200 so no Lisp code is executed.
26201 (file_for_image, find_rtl_image): New functions.
26202 (xg_get_image_for_pixmap): Use file_for_image.
26203 (update_frame_tool_bar): If direction is RTL, use RTL image if
26204 defined. Use Gtk stock images if defined.
26205
26206 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26207
26208 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26209 for nonexistent or zero-width glyph in composition glyph.
26210
26211 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26212
26213 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26214
26215 * xdisp.c (Finvisible_p): New function.
26216 (syms_of_xdisp): defsubr it.
26217
26218 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
26219
26220 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26221 Doc fixes.
26222
26223 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26224
26225 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26226
26227 2007-08-24 Martin Rudalics <rudalics@gmx.at>
26228
26229 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26230 whether decoding has modified buffer contents.
26231
26232 2007-08-24 Jason Rumney <jasonr@gnu.org>
26233
26234 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26235 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26236 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26237 (init_svg_functions) [HAVE_NTGUI]: New function.
26238 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26239 (svg_load_image): Use them.
26240 (svg_load_image) [HAVE_NTGUI]: Implement background.
26241
26242 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26243
26244 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26245 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26246 (LIBX): Remove @RSVG_LIBS@.
26247 (LIBES): Add $(RSVG_LIBS).
26248
26249 * image.c (svg_load_image): Blend with specified background if exists.
26250 Use IMAGE_BACKGROUND. Add Mac OS Support.
26251
26252 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26253 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26254 Remove macros.
26255 [MAC_OSX] (socket_callback): Do nothing.
26256 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26257 ReceiveNextEvent.
26258 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26259 socket_callback.
26260 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26261
26262 2007-08-22 Glenn Morris <rgm@gnu.org>
26263
26264 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26265
26266 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26267
26268 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26269
26270 * image.c: Add support for SVG images. Some additional comments
26271 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26272 (svg_image_p): New function to test for SVG image.
26273 (svg_load): New function to load SVG image.
26274 (svg_load_image): New function, helper for svg_load.
26275 (Qsvg): New Lisp_object.
26276 (svg_keyword_index): New enum.
26277 (svg_format): New static `image_keyword' struct.
26278 (svg_type): New static `image_type' struct.
26279 (librsvg/rsvg.h): Include it.
26280
26281 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26282
26283 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26284
26285 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26286
26287 * lread.c (Qold_style_backquotes): New var.
26288 (syms_of_lread): Init and staticpro it.
26289 (load_warn_old_style_backquotes): New fun.
26290 (Fload): Use them to warn about old style backquotes.
26291 (end_of_file_error, Fload): Remove unused vars.
26292
26293 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26294
26295 * lread.c (Vold_style_backquotes): New var.
26296 (syms_of_lread): Init and export it to Elisp.
26297 (read1): Set it when we find an old-style (back)quote.
26298
26299 2007-08-22 Jason Rumney <jasonr@gnu.org>
26300
26301 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26302
26303 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26304
26305 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26306
26307 2007-08-19 Richard Stallman <rms@gnu.org>
26308
26309 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26310
26311 2007-08-19 Andreas Schwab <schwab@suse.de>
26312
26313 * alloc.c (pure): Round PURESIZE up.
26314
26315 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26316
26317 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26318 active frame.
26319
26320 2007-08-16 Richard Stallman <rms@gnu.org>
26321
26322 * eval.c (Fcommandp): Add parens to clarify.
26323
26324 * minibuf.c (Fall_completions): Use enum for type of table.
26325
26326 * emacs.c (USAGE2): Improve text.
26327
26328 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26329
26330 * term.c (tty_default_color_capabilities): Declare static
26331 variables in file scope, to avoid HPUX compiler problem.
26332
26333 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26334
26335 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26336 to gtk_toolbar_insert.
26337
26338 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26339
26340 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26341
26342 * insdel.c (reset_var_on_error): New fun.
26343 (signal_before_change, signal_after_change):
26344 Use it to reset (after|before)-change-functions to nil in case of error.
26345 Bind inhibit-modification-hooks to t.
26346 Don't bind (after|before)-change-functions to nil while they run.
26347
26348 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26349
26350 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26351 filling pixmap with stippled background.
26352
26353 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26354
26355 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26356 Don't use invisible frame as parent window for repositioning.
26357
26358 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26359
26360 * print.c (new_backquote_output): Rename from old_backquote_output.
26361 (print): Inverse its logic (according to its name) so as to match the
26362 behavior of new_backquote_flag in lread.c.
26363
26364 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26365
26366 * gmalloc.c (posix_memalign): New function.
26367
26368 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26369 ActivateControl/DeactivateControl here.
26370 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26371 frame-notice-user-settings is non-nil.
26372 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26373 for kEventParamFMFontStyle.
26374 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26375 mac_pass_command_to_system and mac_pass_control_to_system here.
26376 (XTread_socket): Call ActivateControl/DeactivateControl here.
26377 (XTread_socket) [TARGET_API_MAC_CARBON]:
26378 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26379 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26380 for window repositioning.
26381
26382 2007-08-08 Glenn Morris <rgm@gnu.org>
26383
26384 * Replace `iff' in doc-strings and comments.
26385
26386 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
26387
26388 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26389
26390 2007-08-07 Martin Rudalics <rudalics@gmx.at>
26391
26392 * fileio.c (Finsert_file_contents): Run format-decode and
26393 after_insert_file_functions on entire buffer when REPLACE is
26394 non-nil and inhibit modification_hooks and point_motion_hooks.
26395 For consistency, run after_insert_file_functions iff something
26396 got inserted. Move signal_after_change and update_compositions
26397 after code running after_insert_file_functions. Make sure that
26398 undo_list doesn't record intermediate steps of the decoding process.
26399
26400 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26401
26402 * emacs.c (main)
26403 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26404 Call malloc_enable_thread on interactive startup.
26405
26406 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26407 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26408 [USE_PTHREAD]: Conditionalize with it.
26409 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26410 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26411 New functions.
26412
26413 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
26414
26415 * xdisp.c (redisplay_window): When restoring original buffer
26416 position, make sure it is still valid.
26417
26418 * image.c (png_load): Ignore png-supplied background color.
26419
26420 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26421
26422 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26423 Use kCFAbsoluteTimeIntervalSince1970.
26424
26425 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26426 New variable.
26427 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26428 event loop should be quit.
26429 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26430 Quit dialog event loop if quit_dialog_event_loop is set.
26431
26432 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26433 (Selection): New typedef. Use instead of ScrapRef.
26434 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26435 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26436 (mac_clear_selection): Rename from clear_scrap.
26437 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26438 scrap_has_target_type. All uses changed.
26439 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26440 (mac_selection_has_target_p): New functions.
26441 (mac_put_selection_value): Rename from put_scrap_string.
26442 (mac_get_selection_value): Rename from get_scrap_string.
26443 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26444 (put_scrap_private_timestamp, scrap_has_target_type)
26445 (get_scrap_private_timestamp): Remove functions.
26446 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26447 (x_own_selection, x_get_local_selection):
26448 Use mac_valid_selection_value_p.
26449 (x_own_selection): Don't use put_scrap_private_timestamp.
26450 Record OWNERSHIP-INFO into Vselection_alist instead.
26451 (x_get_local_selection): Don't check type if request is local.
26452 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26453 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26454
26455 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26456
26457 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26458 add comment explaining why.
26459
26460 2007-08-03 Richard Stallman <rms@gnu.org>
26461
26462 * fileio.c (Fvisited_file_modtime): Use make_time.
26463
26464 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26465
26466 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26467 build.
26468
26469 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26470
26471 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26472
26473 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26474
26475 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26476
26477 2007-07-30 Richard Stallman <rms@gnu.org>
26478
26479 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26480
26481 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26482
26483 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26484
26485 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
26486
26487 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26488 remote default-directory.
26489
26490 * buffer.c (mode-line-format): Update doc string.
26491
26492 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26493
26494 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26495 scroll bar gap.
26496 (x_scroll_bar_create): Set bar->fringe_extended_p.
26497 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26498 on frame edge. Check fringe background extension. Don't clear
26499 extended fringe background area.
26500
26501 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26502 (w32_fill_area): Enclose multiple statements with do ... while (0).
26503
26504 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26505 Extend fringe background to scroll bar gap.
26506 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26507 Set bar->fringe_extended_p.
26508 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26509 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26510 background extension. Don't clear extended fringe background area.
26511
26512 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26513 New member fringe_extended_p.
26514
26515 2007-07-25 Glenn Morris <rgm@gnu.org>
26516
26517 * Relicense all FSF files to GPLv3 or later.
26518
26519 * COPYING: Switch to GPLv3.
26520
26521 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26522
26523 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26524
26525 * data.c (Finteractive_form): Check for the presence of an
26526 `interactive-form' symbol property more thoroughly.
26527
26528 * data.c (Finteractive_form): Use an `interactive-form' property if
26529 present, analogous to the function-documentation property.
26530
26531 2007-07-24 Jason Rumney <jasonr@gnu.org>
26532
26533 * w32fns.c (x_real_positions): Get real position from OS instead of
26534 calculating it.
26535
26536 2007-07-23 Jason Rumney <jasonr@gnu.org>
26537
26538 * filelock.c (current_lock_owner): Allow for @ sign in username.
26539
26540 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
26541
26542 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26543 remote default-directory.
26544
26545 * buffer.c (mode-line-format): Describe above case in doc string.
26546
26547 2007-07-20 Eli Zaretskii <eliz@gnu.org>
26548
26549 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26550 Define if not defined.
26551
26552 2007-07-18 Jason Rumney <jasonr@gnu.org>
26553
26554 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26555
26556 2007-07-18 Richard Stallman <rms@gnu.org>
26557
26558 * data.c (Fsetq_default): Doc fix.
26559
26560 * eval.c (Fsetq): Doc fix.
26561
26562 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
26563
26564 * coding.c (Ffind_operation_coding_system):
26565 * eval.c (For, Fand): Doc fixes.
26566 Reported by Johan Bockgård.
26567
26568 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26569
26570 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26571
26572 * xterm.h: Declare x_ewmh_activate_frame.
26573
26574 * xterm.c (x_ewmh_activate_frame): New function.
26575 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26576
26577 2007-07-17 Martin Rudalics <rudalics@gmx.at>
26578
26579 * window.c (Fdisplay_buffer): If largest or LRU window is the
26580 only window, split it even if it is not eligible for splitting.
26581 This restores the original behavior broken by the 2007-07-15
26582 change.
26583
26584 2007-07-17 Glenn Morris <rgm@gnu.org>
26585
26586 * abbrev.c (abbrev_check_chars): New function.
26587 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26588 Call abbrev_check_chars to check abbrev characters are word
26589 constituents. Doc fix.
26590
26591 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26592
26593 * process.c (Fstart_process, Fmake_network_process)
26594 (read_process_output): Fix up last changes.
26595
26596 2007-07-16 Eli Zaretskii <eliz@gnu.org>
26597
26598 * makefile.w32-in (clean): Don't delete *~.
26599
26600 2007-07-16 Andreas Schwab <schwab@suse.de>
26601
26602 * window.c (Fdisplay_buffer): Use NILP.
26603 (Fset_window_scroll_bars): Likewise.
26604
26605 2007-07-15 Martin Rudalics <rudalics@gmx.at>
26606
26607 * window.c (window_min_size_2): New function.
26608 (window_min_size_1, size_window, Fdisplay_buffer)
26609 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26610 windows without mode- or header-lines when window-min-height is
26611 too small.
26612 (size_window): Reset nodelete_p after testing it, following an
26613 earlier note by Kim F. Storm.
26614 (display_buffer): Do not set split_height_threshold to twice the
26615 value of window_min_height to avoid changing the value of a
26616 customizable variable. Rather explicitly check whether the
26617 height of the window that shall be splitted is at least as large
26618 as split_height_threshold.
26619 (Fwindow_full_width_p): New defun.
26620 (syms_of_window): Defsubr it.
26621
26622 * window.h: Add EXFUN for Fwindow_full_width_p.
26623
26624 2007-07-14 Jason Rumney <jasonr@gnu.org>
26625
26626 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26627
26628 2007-07-14 Richard Stallman <rms@gnu.org>
26629
26630 * eval.c (maybe_call_debugger): New function.
26631 (find_handler_clause): Use maybe_call_debugger.
26632 Call it when the handler says `debug'.
26633 Eliminate DEBUGGER_VALUE_PTR.
26634 (Fsignal): Eliminate debugger_value.
26635 (Qdebug): New variable.
26636 (syms_of_eval): Initialize it.
26637
26638 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
26639
26640 * eval.c (Fprogn):
26641 * keyboard.c (Ftrack_mouse):
26642 * print.c (Fwith_output_to_temp_buffer):
26643 * window.c (Fsave_window_excursion): Doc fix.
26644
26645 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26646
26647 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26648
26649 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26650
26651 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26652 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26653 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26654 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26655 Remove unused encoding_carryover.
26656 * process.c: Adjust all functions accordingly.
26657
26658 2007-07-12 Richard Stallman <rms@gnu.org>
26659
26660 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26661
26662 2007-07-11 Jason Rumney <jasonr@gnu.org>
26663
26664 * makefile.w32-in (LIBS): Include OLE32.
26665
26666 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26667 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26668
26669 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26670
26671 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26672 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26673 from a Lisp_Object into a bare pointer.
26674 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26675 Adjust the code correspondingly.
26676
26677 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26678
26679 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26680 (term_show_mouse_face): Remove unused var `j'.
26681 (handle_one_term_event): Remove unused vars `i' and `j'.
26682 Don't cast return value of ttyname since it's not necessary.
26683
26684 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26685
26686 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26687 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26688
26689 * fns.c (map_char_table): Use an array of int for `indices' rather than
26690 an array of Lisp_Objects (which are only ever integers anyway).
26691 (Fmap_char_table): Update caller.
26692 * lisp.h: Update prototype.
26693 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26694 * fontset.c (Ffontset_info):
26695 * casetab.c (set_case_table): Update callers.
26696
26697 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26698
26699 * keymap.c (struct accessible_keymaps_data)
26700 (struct where_is_internal_data): New structures.
26701 (accessible_keymaps_1, where_is_internal_1): Use them to change
26702 interface to adhere to the one used by map_keymap.
26703 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26704 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26705
26706 * keymap.h (map_keymap_function_t): More informative prototype.
26707
26708 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26709
26710 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26711 (looking_at_1): Don't change search_regs and last_thing_searched
26712 if `inhibit-changing-match-data' is non-nil.
26713 (string_match_1, search_buffer, set_search_regs): Likewise.
26714 (syms_of_search): Add Lisp level definition for
26715 `inhibit-changing-match-data' and set it to nil.
26716 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26717 start and end of the match, instead of using values in search_regs.
26718
26719 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26720
26721 * minibuf.c (Fcompleting_read): New value `confirm-only'
26722 for `require-match'.
26723
26724 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26725
26726 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26727 part of the 2007-06-27 change to syms_of_fileio.
26728
26729 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26730
26731 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26732 Check WINDOWP before using XWINDOW. Consolidate return statements.
26733
26734 2007-06-27 Richard Stallman <rms@gnu.org>
26735
26736 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26737
26738 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26739
26740 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26741
26742 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26743
26744 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26745 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26746 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26747 (_free_internal, memalign): Use them.
26748 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26749 Initialize to PTHREAD_MUTEX_INITIALIZER.
26750 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26751 (morecore_nolock): Rename from morecore. All uses changed.
26752 Use only nolock versions of internal allocation functions.
26753 (_malloc_internal_nolock, _realloc_internal_nolock)
26754 (_free_internal_nolock): New functions created from
26755 _malloc_internal, _realloc_internal, and _free_internal.
26756 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26757 Copy hook value to automatic variable before its use.
26758 (memalign): Copy hook value to automatic variable before its use.
26759
26760 2007-06-26 Kenichi Handa <handa@m17n.org>
26761
26762 * coding.c (Ffind_operation_coding_system): Docstring improved.
26763 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26764
26765 2007-06-25 David Kastrup <dak@gnu.org>
26766
26767 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26768 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26769 cater for additional parameter.
26770
26771 * keymap.h: Adjust number of parameters to `current-active-maps'.
26772
26773 * doc.c (Fsubstitute_command_keys): Adjust call of
26774 `current-active-maps'.
26775
26776 2007-06-25 David Kastrup <dak@gnu.org>
26777
26778 * callint.c (Fcall_interactively): Make the parsing of interactive
26779 specs somewhat more readable.
26780
26781 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26782
26783 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26784 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26785 if extended background has already been filled.
26786
26787 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26788
26789 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26790 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26791
26792 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26793 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26794 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26795 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26796 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26797 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26798 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26799 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26800 Run timers during dialog popup.
26801 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26802
26803 2007-06-21 Jason Rumney <jasonr@gnu.org>
26804
26805 * image.c (convert_mono_to_color_image): Swap fore and background.
26806
26807 2007-06-20 Jason Rumney <jasonr@gnu.org>
26808
26809 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26810 (w32_free_bdf_font): Unmap memory not handle.
26811
26812 2007-06-20 Sam Steingold <sds@gnu.org>
26813
26814 * gmalloc.c (__morecore): Fix the declaration to comply with the
26815 definition.
26816
26817 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26818
26819 * w32term.c (w32_delete_display): Remove leftover declaration.
26820 (w32_define_cursor, w32_initialize): Make static.
26821
26822 * w32.c (_wsa_errlist): Fix typo in error message.
26823 (init_environment): Ignore any environment variable from the
26824 registry having a null value.
26825
26826 2007-06-20 Glenn Morris <rgm@gnu.org>
26827
26828 * Makefile.in (LIBGIF): Default to -lgif.
26829
26830 2007-06-17 Jason Rumney <jasonr@gnu.org>
26831
26832 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26833 unicode strings.
26834
26835 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26836
26837 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26838 Fix typo in docstring.
26839
26840 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26841
26842 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26843 and their keybindings.
26844
26845 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26846
26847 * composite.c (update_compositions): Fix last fix.
26848
26849 2007-06-14 Jason Rumney <jasonr@gnu.org>
26850
26851 * w32.c (get_process_times_fn): New function pointer.
26852 (globals_of_w32): Intialize it if present in kernel32.dll.
26853 (w32_get_internal_run_time): New function.
26854
26855 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26856
26857 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26858
26859 * composite.c (update_compositions): Check the validness of
26860 compositions.
26861
26862 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26863
26864 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26865 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26866
26867 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26868 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26869
26870 * macgui.h (USE_MAC_TOOLBAR): New define.
26871
26872 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26873 Return immediately unless popup is activated.
26874
26875 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26876 background to scroll bar gap.
26877 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26878 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26879 scroll bars on frame edge. Check fringe background extension.
26880 Don't clear extended fringe background area.
26881 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26882 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26883 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26884 [USE_MAC_TOOLBAR]: New macros.
26885 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26886 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26887 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26888 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26889 [USE_MAC_TOOLBAR]: New functions.
26890 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26891 manually if previous repositioning has failed.
26892 (mac_handle_keyboard_event): Use precomputed event kind.
26893 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26894 as tool bar item click. Handle mouse movement over tool bar items.
26895
26896 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26897 toolbar_win_gravity.
26898 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26899 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26900 Add externs.
26901
26902 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26903 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26904
26905 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26906
26907 * image.c (search_image_cache): Remove unused variable.
26908
26909 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26910
26911 * xfns.c, xmenu.c: Link to xaw3d if available.
26912
26913 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26914
26915 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26916 frame_foreground and frame_background.
26917
26918 * image.c (lookup_image): Save frame foreground and background colors.
26919 (search_image_cache): Check if saved and current frame colors match.
26920
26921 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26922
26923 * regex.c (regex_compile): Remove the `regnum' counter.
26924 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26925
26926 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26927
26928 * term.c: Include intervals.h to declare Fget_text_property.
26929
26930 2007-06-10 Jason Rumney <jasonr@gnu.org>
26931
26932 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26933
26934 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26935
26936 * callint.c (Fcall_interactively):
26937 * editfns.c (Fdelete_and_extract_region):
26938 * fileio.c (Fread_file_name):
26939 * fns.c (Fmapconcat):
26940 * keyboard.c (cmd_error_internal):
26941 * keymap.c (Fkey_description):
26942 * lread.c (openp):
26943 * minibuf.c (read_minibuf):
26944 * search.c (wordify):
26945 * sunfns.c (sel_read):
26946 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26947 * xfns.c (x_default_scroll_bar_color_parameter):
26948 * xmenu.c (menu_help_callback):
26949 * xselect.c (Fx_get_atom_name):
26950 * xterm.c (x_term_init): Use empty_unibyte_string.
26951
26952 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26953
26954 * alloc.c (init_strings): Initialize canonical empty strings.
26955 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26956 canonical empty string when the requested size is 0.
26957
26958 * emacs.c (empty_unibyte_string): Rename from empty_string.
26959 (empty_multibyte_string): New canonical empty string.
26960 (syms_of_emacs): Don't initialize empty_string.
26961
26962 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26963 string, if appropriate.
26964 (empty_unibyte_string, empty_multibyte_string): New externs.
26965 (empty_string): Remove extern.
26966
26967 * lread.c (syms_of_lread): Use empty_unibyte_string.
26968
26969 2007-06-07 Jason Rumney <jasonr@gnu.org>
26970
26971 * s/ms-w32.h: Don't define HAVE_TZNAME.
26972
26973 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26974
26975 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26976
26977 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26978
26979 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26980 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26981
26982 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26983 Don't call next handler.
26984 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26985 Remove argument. Install handler to application.
26986 (set_frame_menubar): Don't change deep_p.
26987 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26988 FRAME_OUTER_TO_INNER_DIFF_Y.
26989 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26990 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26991 [HAVE_DIALOGS]: New macros.
26992 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26993 Use them.
26994 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26995
26996 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26997 init_service_handler. All callers changed. Return OSStatus value.
26998
26999 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27000 All callers changed so as not to call SetPortWindowPort.
27001 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27002 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27003 mac_draw_string_common.
27004 (mac_draw_image_string_qd): Likewise.
27005 (mac_draw_string_common): Use them. Add INLINE.
27006 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27007 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27008 GetGlobalMouse.
27009 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27010 and FRAME_OUTER_TO_INNER_DIFF_Y.
27011 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27012 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27013 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27014 repositioning window to mac_handle_window_event.
27015 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27016 saving window location to mac_handle_window_event
27017 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27018 (install_menu_target_item_handler): Remove argument in extern.
27019 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27020 Also accept command events.
27021 (do_keystroke): New function created from XTread_socket.
27022 (init_command_handler): Remove functions.
27023 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27024 and save window location by kEventWindowShowing and kEventWindowHiding
27025 handlers here. Don't call next handler for window state change and
27026 focus events.
27027 (mac_handle_application_event, mac_handle_keyboard_event)
27028 [TARGET_API_MAC_CARBON]: New functions.
27029 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27030 kEventWindowShowing and kEventWindowHiding events. Move installation
27031 of mouse, font, text input and menu target item handlers to
27032 install_application_handler.
27033 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27034 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27035 New function.
27036 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27037 Register it.
27038 (XTread_socket) [TARGET_API_MAC_CARBON]:
27039 Consolidate SendEventToEventTarget calls.
27040 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27041 Move application activation handler to mac_handle_application_event.
27042 Move keyboard handler to mac_handle_keyboard_event.
27043 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27044 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27045 init_command_handler. Call install_application_handler.
27046
27047 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27048 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27049
27050 2007-06-07 Glenn Morris <rgm@gnu.org>
27051
27052 * emacs.c (main): Use `emacs-copyright' in --version output.
27053
27054 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
27055
27056 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27057
27058 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27059
27060 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27061
27062 * macgui.h: Replace WindowPtr with WindowRef.
27063
27064 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27065 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27066 Replace ControlHandle with ControlRef.
27067 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27068
27069 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27070 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27071 Replace ControlHandle with ControlRef.
27072 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27073 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27074
27075 * macterm.h (struct scroll_bar): Rename member control_handle_low
27076 and control_handle_high to control_ref_low and control_ref_high.
27077 All uses changed.
27078 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27079 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27080 respectively. All uses changed.
27081 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27082 (install_window_handler, remove_window_handler): Replace WindowPtr
27083 with WindowRef in externs.
27084
27085 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
27086
27087 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27088
27089 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
27090
27091 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27092
27093 * frame.c (Fmouse_position, Fmouse_pixel_position):
27094 Condition on HAVE_GPM too.
27095
27096 * term.c (term_mouse_highlight): Remove unused variables.
27097 (Fterm_open_connection): Set gpm_zerobased to 1.
27098 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27099 Use zero based co-ordinates.
27100 (handle_one_term_event): Report a drag as mouse movement too.
27101
27102 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27103
27104 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
27105
27106 * image.c (search_image_cache): New function. Require background
27107 color match if background color is unspecified in the image spec.
27108 (uncache_image, lookup_image): Use it.
27109
27110 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
27111
27112 * window.c (Fshrink_window): Reflow docstring.
27113
27114 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
27115
27116 * Version 22.1 released.
27117
27118 2007-06-01 Richard Stallman <rms@gnu.org>
27119
27120 * xfns.c (x_encode_text): Add GCPRO.
27121
27122 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27123
27124 * xfns.c (x_set_name_internal): Save encoded name before
27125 x_encode_text in case string data is relocated.
27126
27127 2007-05-31 Richard Stallman <rms@gnu.org>
27128
27129 * buffer.c (syms_of_buffer): Doc fix.
27130
27131 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
27132
27133 * sysdep.c (init_sys_modes): Add rather than replace with
27134 O_NONBLOCK.
27135
27136 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27137 term_mouse_moveto.
27138
27139 * termhooks.h (term_mouse_moveto): New extern.
27140
27141 * term.c (mouse_face_window): Rename...
27142 (Qmouse_face_window): ...to this.
27143 (term_show_mouse_face, term_clear_mouse_face)
27144 (term_mouse_highlight): Use Qmouse_face_window.
27145 (term_mouse_moveto): New function.
27146 (term_mouse_position): Make it work.
27147 (syms_of_term): Uncomment assignment to mouse_position_hook.
27148 Staticpro Qmouse_face_window.
27149
27150 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27151
27152 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27153 around current_column call.
27154
27155 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27156
27157 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27158 * xdisp.c (next_element_from_buffer):
27159 * window.c (delete_window):
27160 * term.c (term_mouse_highlight):
27161 * msdos.c (getdefdir):
27162 * macterm.c (mac_create_bitmap_from_bitmap_data)
27163 (init_font_name_table):
27164 * fns.c (Fsxhash):
27165 * data.c (Fmake_local_variable):
27166 * ccl.c (ccl_driver): Likewise.
27167
27168 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27169
27170 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27171 Call mac_wakeup_from_rne on window size change.
27172
27173 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
27174
27175 * image.c (uncache_image): Fix typo.
27176
27177 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27178
27179 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27180
27181 2007-05-22 Richard Stallman <rms@gnu.org>
27182
27183 * xterm.c (x_connection_closed): Remove NO_RETURN.
27184
27185 2007-05-22 Martin Rudalics <rudalics@gmx.at>
27186
27187 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27188
27189 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
27190
27191 * image.c (uncache_image): New function.
27192 (Fimage_refresh): New function.
27193
27194 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27195
27196 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27197
27198 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27199
27200 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27201 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27202
27203 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27204
27205 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27206 conditional on [HAVE_GPM_H].
27207
27208 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27209
27210 * syntax.c (skip_chars): Update syntax-table only after we checked that
27211 the new location is valid.
27212
27213 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27214
27215 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27216 mac_get_window_bounds.
27217
27218 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27219
27220 * Makefile.in (LIBGPM): Allow it to be set from configure.
27221 If set then link Emacs with it.
27222
27223 * config.in: Regenerate.
27224
27225 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27226 New externs.
27227
27228 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27229 Include gpm.h.
27230 (handle_one_term_event, term_gpm): New externs.
27231
27232 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27233 and allow it to be interrupted by SIGIO.
27234
27235 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27236 (wait_reading_process_output): Wait on gpm_fd too.
27237 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27238 (add_gpm_wait_descriptor_called_flag): New variable.
27239 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27240
27241 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27242 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27243 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27244 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27245 (make_lispy_event): Add case GPM_CLICK_EVENT.
27246 (read_avail_input): Handle mouse input.
27247
27248 * term.c (write_glyphs_with_face): New function.
27249 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27250 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27251 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27252 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27253 (last_mouse_x, last_mouse_y): New variables.
27254 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27255 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27256 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27257 (Fterm_close_connection): New functions.
27258 (term_init): Initialise mouse_face_window.
27259
27260 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
27261
27262 * xdisp.c (redisplay_window): If first window line is a
27263 continuation line, recompute the new window start instead of
27264 recentering.
27265
27266 2007-05-18 Glenn Morris <rgm@gnu.org>
27267
27268 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27269 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27270
27271 2007-05-17 Glenn Morris <rgm@gnu.org>
27272
27273 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27274
27275 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27276
27277 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27278 dead key repeat and up events.
27279
27280 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
27281
27282 * image.c (pbm_load): Check image size for monochrome pbm.
27283
27284 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
27285
27286 * xterm.c (XTread_socket): Revert last change.
27287
27288 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
27289
27290 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27291
27292 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27293
27294 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27295
27296 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27297 mixup (YAILOM).
27298
27299 2007-05-07 Andreas Schwab <schwab@suse.de>
27300
27301 * keymap.c (Flookup_key): Fix typo in last change.
27302
27303 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27304
27305 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27306 mapping for unibyte strings.
27307
27308 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27309
27310 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27311 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27312
27313 2007-04-29 Richard Stallman <rms@gnu.org>
27314
27315 * insdel.c (replace_range): For undo, record insertion first.
27316
27317 2007-04-29 Andreas Schwab <schwab@suse.de>
27318
27319 * lisp.h (VECSIZE): Use OFFSETOF.
27320
27321 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27322
27323 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27324 disabled lines.
27325
27326 2007-04-28 Richard Stallman <rms@gnu.org>
27327
27328 * lread.c (read_escape): In a string, \s is always space.
27329
27330 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27331
27332 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27333
27334 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27335 submenu for menu bar items.
27336
27337 See ChangeLog.10 for earlier changes.
27338
27339 ;; Local Variables:
27340 ;; coding: utf-8
27341 ;; add-log-time-zone-rule: t
27342 ;; End:
27343
27344 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
27345
27346 This file is part of GNU Emacs.
27347
27348 GNU Emacs is free software: you can redistribute it and/or modify
27349 it under the terms of the GNU General Public License as published by
27350 the Free Software Foundation, either version 3 of the License, or
27351 (at your option) any later version.
27352
27353 GNU Emacs is distributed in the hope that it will be useful,
27354 but WITHOUT ANY WARRANTY; without even the implied warranty of
27355 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27356 GNU General Public License for more details.
27357
27358 You should have received a copy of the GNU General Public License
27359 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27360
27361 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40