Merge changes from emacs-23 branch.
[bpt/emacs.git] / src / ChangeLog
1 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * syntax.c (back_comment): Detect the case where a 1-char comment
4 starter is also the 2nd char of a 2-char comment ender.
5
6 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
7
8 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
9
10 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
11
12 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
13 unwind_protect more than 2GB worth of functions.
14
15 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
16
17 * lisp.h: Have oblookup take EMACS_INT to allow interning big
18 string and avoid compiler warnings.
19 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
20 all users.
21
22 * lread.c (oblookup): EMACS_INT/int cleanup.
23
24 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
25
26 2010-09-23 Eli Zaretskii <eliz@gnu.org>
27
28 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
29
30 * lisp.h (clip_to_bounds): Adjust prototype.
31
32 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
33
34 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
35
36 * lisp.h: doprnt.c EMACS_INT/int cleanup.
37
38 * doprnt.c (doprnt): EMACS_INT/int cleanup.
39
40 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
41 cleanup.
42
43 * lisp.h: Change the definition of all marker.c functions that
44 take and return buffer stuff to be EMACS_INT instead of int.
45
46 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
47 (buf_charpos_to_bytepos, bytepos_to_charpos)
48 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
49 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
50 for all buffer positions.
51
52 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
53
54 * intervals.c (traverse_intervals, rotate_right, rotate_left)
55 (split_interval_right, find_interval, next_interval)
56 (delete_node, delete_interval, interval_deletion_adjustment)
57 (adjust_intervals_for_deletion, merge_interval_right)
58 (merge_interval_left, graft_intervals_into_buffer)
59 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
60
61 * intervals.h (traverse_intervals): Update prototype.
62
63 2010-09-23 Eli Zaretskii <eliz@gnu.org>
64
65 * indent.c (compute_motion): Use EMACS_INT for arguments to
66 region_cache_forward.
67
68 * region-cache.c (struct boundary, struct region_cache): Use
69 EMACS_INT for positions.
70 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
71 (delete_cache_boundaries, set_cache_region)
72 (invalidate_region_cache, know_region_cache)
73 (region_cache_forward, region_cache_backward, pp_cache): Use
74 EMACS_INT for buffer positions.
75
76 * region-cache.h (know_region_cache, invalidate_region_cache)
77 (region_cache_forward, region_cache_backward): Adjust prototypes.
78
79 * search.c (string_match_1, fast_c_string_match_ignore_case)
80 (looking_at_1, scan_buffer, scan_newline)
81 (find_next_newline_no_quit, find_before_next_newline)
82 (search_command, trivial_regexp_p, search_buffer, simple_search)
83 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
84 and string positions and length.
85
86 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
87 (find_before_next_newline): Adjust prototypes.
88
89 * editfns.c (transpose_markers, update_buffer_properties)
90 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
91 (get_pos_property, Fconstrain_to_field)
92 (Fline_beginning_position, Fline_end_position, Fprevious_char)
93 (Fchar_after, Fchar_before, Finsert_char)
94 (Finsert_buffer_substring, Fcompare_buffer_substrings)
95 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
96 EMACS_INT for buffer and string position variables.
97 (Finsert_char): Protect against too large insertions.
98
99 * lisp.h (clip_to_bounds): Adjust prototype.
100
101 * intervals.c (traverse_intervals, rotate_right, rotate_left)
102 (balance_an_interval, split_interval_right, split_interval_left)
103 (find_interval, next_interval, update_interval)
104 (adjust_intervals_for_insertion, delete_node, delete_interval)
105 (interval_deletion_adjustment, adjust_intervals_for_deletion)
106 (offset_intervals, merge_interval_right, merge_interval_left)
107 (graft_intervals_into_buffer, adjust_for_invis_intang)
108 (move_if_not_intangible, get_local_map, copy_intervals)
109 (copy_intervals_to_string, compare_string_intervals)
110 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
111 and for interval tree size.
112
113 * intervals.h (traverse_intervals, split_interval_right)
114 (split_interval_left, find_interval, offset_intervals)
115 (graft_intervals_into_buffer, copy_intervals)
116 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
117 (update_interval): Adjust prototypes.
118
119 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
120 Use EMACS_INT for buffer position variables and arguments.
121
122 * composite.c (get_composition_id, find_composition)
123 (run_composition_function, compose_text)
124 (composition_gstring_width, autocmp_chars)
125 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
126 for buffer positions and string length variables and arguments.
127
128 * composite.h (get_composition_id, find_composition, compose_text)
129 (composition_gstring_width): Adjust prototypes.
130
131 * editfns.c (Fformat): Use EMACS_INT for string size variables.
132
133 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
134 EMACS_INT for string positions.
135
136 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
137 position arguments.
138
139 * intervals.h (get_property_and_range): Adjust prototype.
140
141 * character.c (parse_str_as_multibyte, str_as_multibyte)
142 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
143 (string_count_byte8, string_escape_byte8, c_string_width)
144 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
145 EMACS_INT for string length variables and arguments.
146
147 * character.h (parse_str_as_multibyte, str_as_multibyte)
148 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
149 (c_string_width, strwidth, lisp_string_width): Adjust
150 prototypes.
151
152 * font.c (font_intern_prop): Use EMACS_INT for string length
153 variables.
154
155 * font.c (font_intern_prop): Use EMACS_INT for string length
156 variables.
157
158 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
159 variables.
160
161 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
162 (Fmake_string): Protect against too large strings.
163 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
164 (live_misc_p): Use ptrdiff_t instead of int for pointer
165 differences.
166 (string_bytes, check_sblock, check_string_free_list)
167 (allocate_string_data, compact_small_strings, Fmake_string)
168 (Fmake_bool_vector, make_string, make_unibyte_string)
169 (make_multibyte_string, make_string_from_bytes)
170 (make_specified_string_string, Fmake_list, Fmake_vector): Use
171 EMACS_INT for string length variables and arguments.
172 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
173 (Fpurecopy): Use EMACS_INT for string size.
174 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
175 for vector size.
176
177 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
178 (make_string_from_bytes, make_specified_string_string)
179 (make_pure_string, string_bytes, check_point_in_composition):
180 Adjust prototypes.
181
182 2010-09-22 Eli Zaretskii <eliz@gnu.org>
183
184 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
185 (check_translation): Use EMACS_INT for buffer positions and
186 length.
187
188 * undo.c (record_marker_adjustment, record_delete)
189 (record_change, record_point, record_insert)
190 (record_property_change, Fprimitive_undo): Use EMACS_INT for
191 buffer positions.
192
193 * lisp.h (record_marker_adjustment, record_delete)
194 (record_change, record_point, record_insert)
195 (record_property_change, Fprimitive_undo): Adjust prototypes.
196
197 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
198 Eli Zaretskii <eliz@gnu.org>
199
200 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
201
202 2010-09-22 Eli Zaretskii <eliz@gnu.org>
203
204 * minibuf.c (Fminibuffer_contents)
205 (Fminibuffer_contents_no_properties)
206 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
207 positions.
208
209 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
210 mark.
211
212 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
213 (allocate_string_data): Accept EMACS_INT for string length.
214
215 * editfns.c (Ffield_string, Ffield_string_no_properties)
216 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
217 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
218 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
219 (Ffield_end): Use EMACS_INT for buffer positions.
220
221 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
222 point with mark.
223
224 * lisp.h (allocate_string_data, make_uninit_string)
225 (make_uninit_multibyte_string, make_buffer_string)
226 (make_buffer_string_both): Adjust prototypes.
227
228 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
229
230 * xml.c: Switch to GNU indentation.
231 (make_dom): Change parse tree format to match xml.el.
232 (Fxml_parse_html_string_internal): Rename from html-parse-string.
233 (Fxml_parse_string_internal): Rename from xml-parse-string.
234
235 2010-09-22 Kenichi Handa <handa@m17n.org>
236
237 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
238 only if we are not at a composition.
239 (set_iterator_to_next): Give it->end_charpos to
240 composition_compute_stop_pos.
241 (set_iterator_to_next, next_element_from_buffer): Likewise.
242
243 * dispnew.c (buffer_posn_from_coords): Fix position when the
244 current display element is a grapheme cluster in bidi-reordered
245 region.
246
247 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
248
249 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
250 the regions may overlap.
251
252 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
253
254 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
255
256 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
257
258 * emacs.c: Do not include sys/ioctl.h, not needed.
259
260 * doprnt.c: Do not include stdlib.h, config.h does it.
261 Move #include before macro definition.
262
263 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
264
265 * Makefile.in (temacs): Link using $(CC) not $(LD).
266 (LD_FIRSTFLAG): Define using autoconf.
267 (LD): Remove.
268
269 Remove HAVE_TERMIOS definitions.
270 * s/usg5-4-common.h (HAVE_TERMIOS):
271 * s/template.h (HAVE_TERMIOS):
272 * s/gnu-linux.h (HAVE_TERMIOS):
273 * s/darwin.h (HAVE_TERMIOS):
274 * s/cygwin.h (HAVE_TERMIOS):
275 * s/bsd-common.h (HAVE_TERMIOS):
276 * s/aix4-2.h (HAVE_TERMIOS):
277 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
278 defined on all non-MS platforms.
279 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
280
281 * xterm.c (xt_action_hook): Use const.
282
283 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
284
285 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
286 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
287 (gethostname) [!HAVE_SOCKETS]: Remove.
288 (SOCK_REPLACE_HANDLE): Remove macro.
289 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
290 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
291 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
292 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
293
294 2010-09-18 Eli Zaretskii <eliz@gnu.org>
295
296 * deps.mk (xml.o): Add dependencies.
297
298 * xdisp.c (Fcurrent_bidi_paragraph_direction):
299 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
300
301 * bidi.c (bidi_paragraph_init): Accept an additional argument
302 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
303 search back until a paragraph with a strong directional character
304 is found, and use that to determine paragraph's base direction.
305
306 * dispextern.h (bidi_paragraph_init): Update prototype.
307
308 2010-09-17 Eli Zaretskii <eliz@gnu.org>
309
310 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
311 of w32api >= 3.15. (Bug#6989)
312
313 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
314
315 * process.c (wait_reading_process_output): Don't message about
316 accept-process-output unless the time limit really is zero.
317
318 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
319
320 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
321 int/Lisp_Object mixup).
322
323 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
324
325 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
326 not HELP.
327
328 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
329
330 * frame.c (Ftool_bar_pixel_width): New function to expose tool
331 bar's pixel width to Lisp (Bug#7048).
332
333 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
334
335 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
336
337 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
338
339 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
340 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
341
342 2010-09-17 Kenichi Handa <handa@m17n.org>
343
344 * ftfont.c (ftfont_check_otf): Fix previous change.
345
346 2010-09-14 Kenichi Handa <handa@m17n.org>
347
348 * ftfont.c (ftfont_check_otf): Fix the case of checking just
349 existence of GSUB or GPOS.
350
351 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
352
353 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
354
355 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
356
357 * xml.c (parse_buffer): Renamed to parse_string(), since that's
358 what it does.
359 (parse_string): Return nil when the document can't be parsed.
360
361 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
362
363 * xterm.c (get_current_vm_state): New function.
364 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
365 want_fullscreen so set_wm_state calls are few (Bug#7013).
366 (x_handle_net_wm_state): Move code to get_current_vm_state and
367 call that function.
368
369 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
370
371 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
372
373 2010-09-14 Kenichi Handa <handa@m17n.org>
374
375 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
376 we may use designation or locking-shift.
377
378 2010-09-14 Kenichi Handa <handa@m17n.org>
379
380 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
381 sequence when the source is multibyte.
382
383 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
384
385 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
386 Don't make first argument optional. Doc fix.
387
388 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
389
390 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
391 parameters for the doc string.
392
393 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
394
395 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
396
397 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
398
399 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
400 (syms_of_fns): Don't defsubr Sy_or_n_p.
401 * lisp.h: Don't declare Fy_or_n_p.
402 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
403
404 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
405
406 * xml.c (Fxml_parse_buffer): New function to parse XML files.
407
408 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
409
410 * xml.c: New file.
411 (Fhtml_parse_buffer): New function to interface to the libxml2
412 html parsing function.
413
414 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
415
416 * biditype.h: Regenerate.
417
418 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
419
420 * nsimage.m (ns_load_image): Check argument types.
421
422 * image.c: Remove all uses of gcpro.
423 (xpm_load): Check all lisp types.
424 (pbm_load): Likewise.
425 (png_load): Likewise.
426 (jpeg_load): Likewise.
427 (tiff_load): Likewise.
428 (gif_load): Likewise.
429 (imagemagick_load_image): Likewise.
430 (imagemagick_load): Likewise.
431 (svg_load): Likewise.
432 (gs_load): Likewise.
433
434 2010-09-04 Eli Zaretskii <eliz@gnu.org>
435
436 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
437 try to reorder grapheme clusters, since LGSTRING should always
438 hold them in the logical order.
439 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
440 return glyph codes in the logical order.
441
442 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
443
444 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
445 (imagemagick_load_image): Fix type mismatch.
446 (Fimagemagick_types): Likewise. Doc fix.
447
448 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
449
450 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
451
452 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
453
454 * xselect.c: Remove declaration of cut-buffer objects and functions.
455 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
456 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
457 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
458 (Fx_rotate_cut_buffers_internal): Remove.
459 (syms_of_xselect): Remove defsubr of above.
460 Remove intern of QCUT_BUFFERn.
461
462 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
463
464 * cmds.c (Vblink_paren_function): Remove.
465 (internal_self_insert): Make it insert N chars at a time.
466 Don't call blink-paren-function.
467 (Fself_insert_command): Adjust accordingly.
468 (syms_of_cmds): Don't declare blink-paren-function.
469
470 2010-08-31 Kenichi Handa <handa@m17n.org>
471
472 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
473 characters.
474
475 * term.c (encode_terminal_code): Fix the previous change.
476 (produce_glyphs): Don't set it->char_to_display here.
477 Don't handle unibyte-display-via-language-environment here.
478 (produce_special_glyphs): Set temp_it.char_to_display before
479 calling produce_glyphs.
480
481 * xdisp.c (get_next_display_element): Set it->char_to_display
482 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
483 characters.
484 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
485 calling PRODUCE_GLYPHS.
486 (append_space_for_newline): Save and store it->char_to_display.
487 Set it->char_to_display before calling PRODUCE_GLYPHS.
488 (extend_face_to_end_of_line): Set it->char_to_display before
489 calling PRODUCE_GLYPHS.
490 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
491 character to its byte value.
492 (get_char_glyph_code): New function.
493 (produce_stretch_glyph): Set it2.char_to_display too before
494 calling x_produce_glyphs.
495 (x_produce_glyphs): Simplify by using the same code for ASCII and
496 non-ASCII characters. Don't set it->char_to_display here.
497 Don't handle unibyte-display-via-language-environment here. For a
498 character of no glyph, use font->space_width instead of FONT_WIDTH.
499
500 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
501
502 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
503
504 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
505
506 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
507
508 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
509
510 * marker.c (Fcopy_marker): Make the first arg optional.
511
512 2010-08-30 Kenichi Handa <handa@m17n.org>
513
514 * composite.c (composition_update_it): Fix computing of
515 cmp_it->width.
516
517 2010-08-29 Kenichi Handa <handa@m17n.org>
518
519 * term.c (encode_terminal_code): Encode byte chars to the
520 corresponding bytes.
521
522 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
523
524 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
525
526 2010-08-26 Kenichi Handa <handa@m17n.org>
527
528 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
529 on calling composition_compute_stop_pos.
530
531 2010-08-25 Kenichi Handa <handa@m17n.org>
532
533 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
534 :otf.
535
536 * composite.c (composition_compute_stop_pos): Don't break
537 composition at PT.
538 (composition_reseat_it): Likewise. Fix calculation of character
539 position starting a composition.
540 (Fcomposition_get_gstring): Don't limit the number of components
541 for automatic composition.
542
543 2010-08-25 Kenichi Handa <handa@m17n.org>
544
545 * composite.c (composition_compute_stop_pos): In forward search,
546 pay attention to the possibility that some character after ENDPOS
547 will be composed with charactrs before ENDPOS.
548
549 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
550
551 * keyboard.c (command_loop_1): Don't clobber primary selection
552 during handle-switch-frame (Bug#6872).
553
554 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
555
556 * dbusbind.c: Accept UNIX domain sockets as bus address.
557 (Fdbus_close_bus): New function.
558 (Vdbus_registered_buses): New variable.
559 (xd_initialize): Implement string as bus address.
560 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
561 (Fdbus_get_unique_name, Fdbus_call_method)
562 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
563 (Fdbus_method_error_internal, Fdbus_send_signal)
564 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
565 check. This is done in xd_initialize_bus. Adapt doc string, if
566 necessary.
567 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
568 Vdbus_registered_buses.
569 (Vdbus_registered_objects_table): Create hash.
570
571 2010-08-22 Juri Linkov <juri@jurta.org>
572
573 * keyboard.c (Fexecute_extended_command): Move reading a command name
574 with `completing-read' to a new Elisp function `read-extended-command'.
575 Call it to read a command to `function' (bug#5364, bug#5214).
576
577 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
578
579 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
580
581 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
582
583 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
584 instead of SAFE_ALLOCA.
585
586 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
587
588 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
589 (Bug#6214).
590
591 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
592
593 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
594
595 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
596
597 * doc.c (Fsnarf_documentation): Initialize skip_file before
598 build-files test.
599
600 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
601
602 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
603 New definitions.
604 (HAVE_TERMIO): Remove.
605
606 2010-08-22 Eli Zaretskii <eliz@gnu.org>
607
608 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
609
610 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
611 for w32.
612
613 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
614 it's done in nt/config.nt.
615
616 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
617
618 * unexcoff.c (report_error, make_hdr, write_segment)
619 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
620 Convert argument lists and prototypes to ANSI C.
621 (make_hdr, write_segment): Remove unused variables.
622 (unexec): Remove commented-out line. Initialize `new' to shut up
623 compiler warnings.
624
625 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
626
627 Simplify termio code.
628 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
629 HAVE_TERMIO code is obsolete.
630 Replace HAVE_TERMIOS conditionals with !DOS_NT.
631 * systty.h: Do not define HAVE_TCATTR.
632 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
633 Do not define EMACS_HAVE_TTY_PGRP. Only define
634 EMACS_GET_TTY_PGRP for !DOS_NT.
635 * sysdep.c: Include sysselect.h unconditionally. Do not include
636 sys/ioctl.h and termios.h, systty.h does it. Use
637 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
638 (init_baud_rate): Remove HAVE_TERMIO code.
639 (child_setup_tty): Remove HAVE_TERMIO code.
640 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
641 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
642 (new_ltchars, new_tchars): Remove, unused.
643 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
644 code. Remove special casing for __mips__, it was a no-op. Remove
645 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
646 (init_sys_modes): Remove HPUX special case.
647 * process.c: Include stdlib.h unconditionally. Do not include
648 fcntl.h, systty.h does it. Remove conditional code for
649 HAVE_SERIAL, it is always true.
650 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
651 always true when SIGNALS_VIA_CHARACTERS is true.
652 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
653 !WINDOWSNT means HAVE_TERMIOS.
654 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
655 conditional, which is true for all HAVE_TERMIOS systems.
656 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
657 instead of HAVE_TERMIOS.
658 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
659 EMACS_HAVE_TTY_PGRP.
660 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
661 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
662 anyway.
663
664 2010-08-21 Eli Zaretskii <eliz@gnu.org>
665
666 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
667 mirroring pixel positions.
668
669 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
670
671 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
672 write only.
673 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
674 malloc_sbrk_used, nothing uses them.
675
676 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
677 defined, unconditionally defined in lisp.h.
678
679 * term.c: Do not include <termios.h>, systty.h does it.
680
681 * s/unixware.h (HAVE_TCATTR):
682 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
683 systty.h defines it when HAVE_TERMIOS is defined.
684
685 2010-08-20 Eli Zaretskii <eliz@gnu.org>
686
687 * dispnew.c (buffer_posn_from_coords): Fix last change for text
688 terminals: add one-character offset for R2L lines.
689
690 * emacs.c <emacs_version>: Add a comment regarding
691 msdos/mainmake.v2's dependency on the syntax of this declaration.
692
693 2010-08-20 Eli Zaretskii <eliz@gnu.org>
694
695 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
696 position for R2L lines by mirroring the pixel position wrt the
697 text are box. Improve commentary.
698
699 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
700
701 * image.c (imagemagick_clear_image): Remove debugging output.
702
703 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
704
705 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
706 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
707 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
708 self-insert-face.
709 (syms_of_cmds): Initialize the new vars.
710
711 2010-08-19 Jason Rumney <jasonr@gnu.org>
712
713 * w32menu.c (set_frame_menubar): Remove call to undefined function.
714
715 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
716
717 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
718
719 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
720
721 2010-08-18 Eli Zaretskii <eliz@gnu.org>
722
723 * xterm.c (x_draw_bar_cursor):
724 * w32term.c (x_draw_bar_cursor): If the character under cursor is
725 R2L, draw the bar cursor on its right rather than on its left.
726
727 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
728
729 * eval.c (Fdefmacro): Only obey one declaration.
730
731 * casefiddle.c (casify_region): Setup gl_state.
732
733 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
734
735 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
736
737 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
738
739 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
740
741 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
742
743 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
744 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
745 QPRIMARY => NXPrimaryPboard.
746 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
747 NXPrimaryPboard => QPRIMARY.
748 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
749 NXSecondaryPboard = SecondarySelection.
750 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
751
752 2010-08-18 Joakim Verona <joakim@verona.se>
753
754 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
755 defined:
756 (imagemagick_image_p): New function to test for ImageMagic image.
757 (imagemagick_load): New function to load ImageMagick image.
758 (imagemagick_load_image): New function, helper for imagemagick_load.
759 (imagemagick-types): New function.
760 (Qimagemagick): New Lisp_object.
761 (imagemagick-render-type): New variable, decides which renderer to use.
762
763 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
764
765 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
766 is a string.
767
768 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
769
770 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
771 x_set_tool_bar_position handler.
772
773 2010-08-17 Eli Zaretskii <eliz@gnu.org>
774
775 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
776 x_set_tool_bar_position handler, needed to support changes from
777 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
778
779 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
780
781 * nsselect.m: include keyboard.h for QPRIMARY, remove its
782 declaration (Bug#6863).
783 (syms_of_nsselect): Don't intern QPRIMARY.
784
785 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
786
787 * keyboard.h (QPRIMARY): Declare (Bug#6864).
788
789 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
790
791 * keyboard.c (command_loop_1): Avoid setting selection twice,
792 since it's done in deactivate-mark as well.
793 (Vselect_active_regions): Change default to t. Replace `lazy'
794 with non-default value `only', meaning only set PRIMARY for
795 temporarily active regions.
796
797 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
798 select-active-regions.
799
800 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
801
802 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
803 isn't a string.
804
805 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
806
807 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
808
809 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
810
811 * keyboard.c (parse_tool_bar_item): malloc buf.
812 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
813 new_lbl (Bug#6855).
814
815 2010-08-14 Eli Zaretskii <eliz@gnu.org>
816
817 * xterm.c (x_draw_stretch_glyph_string):
818 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
819 the cursor on the right edge of the stretch glyph.
820
821 * xdisp.c (window_box_right_offset, window_box_right):
822 Fix commentary.
823
824 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
825 direction when point is inside a run of whitespace characters.
826
827 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
828
829 2010-08-14 Jason Rumney <jasonr@gnu.org>
830
831 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
832
833 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
834
835 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
836
837 2010-08-13 Jason Rumney <jasonr@gnu.org>
838
839 * w32menu.c (simple_dialog_show): Use unicode message box if available.
840 (MessageBoxW_Proc): New function typedef.
841 (unicode-message-box): New function pointer.
842 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
843
844 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
845
846 * frame.h (Qtool_bar_position): Declare.
847
848 * xfns.c (Fx_create_frame): Call x_default_parameter for
849 Qtool_bar_position.
850
851 2010-08-13 Eli Zaretskii <eliz@gnu.org>
852
853 * unexcoff.c: Remove the parts used when "emacs" is not defined.
854 (report_error, report_error_1): Ditto.
855 (write_segment): Remove "#if 0" unused code.
856 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
857 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
858 (start_of_text): Remove unused function (was used only if NO_REMAP
859 was NOT defined).
860
861 * msdos.c (IT_set_face): Fix format string to match argument
862 types.
863 (IT_write_glyphs, IT_note_mode_line_highlight)
864 (IT_set_frame_parameters): Remove unused variables.
865 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
866 (IT_set_terminal_modes): Disambiguate expression in if clause.
867 (Fmsdos_remember_default_colors): Return Qnil.
868 (IT_set_frame_parameters): Add parens to disambiguate boolean
869 expression for logging the cursor type to termscript.
870 (keyboard_layout_list, keypad_translate_map)
871 (grey_key_translate_map): Add braces in inner initializers.
872 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
873 (dos_rawgetc): Remove unused label.
874 (XMenuActivate): Add braces to remove ambiguous `else'.
875 (dos_ttraw): Always return a value.
876 (spawnve): Declare.
877 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
878
879 * dosfns.h (x_set_title): Declare.
880
881 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
882 Remove unused variables.
883
884 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
885 variables.
886 (init_dosfns): Declare get_lim_data.
887 (system_process_attributes): Declare Fget_internal_run_time.
888
889 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
890 list to be consistent with menu.h.
891
892 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
893 warnings due to mixing of "char *" and "const char *".
894
895 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
896
897 Introduce a new comment style "c" flag.
898 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
899 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
900 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
901 (syntax_prefix_flag_p): New function.
902 (Fstring_to_syntax): Understand new "c" flag.
903 (Finternal_describe_syntax_value): Recognize new flag; use the
904 SYNTAX_FLAGS_* macros.
905 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
906 comment style to accomodate the new styles.
907 (back_comment, forw_comment, Fforward_comment, scan_lists)
908 (scan_sexps_forward): Update code to obey the new comment style flag.
909
910 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
911
912 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
913
914 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
915
916 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
917 first.
918 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
919
920 * gtkutil.h (xg_check_special_colors): Declare.
921
922 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
923 (xg_create_frame_widgets): Connect theme name changes to
924 style_changed_cb.
925
926 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
927 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
928 (x_term_init): Use char[] display_opt and name_opt instead of
929 string literal. file is const char*.
930
931 * xsmfns.c (NOSPLASH_OPT): Change to char[].
932 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
933 props. Free them at the end.
934
935 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
936
937 * xrdb.c (get_system_app): Make path const and use char *p for
938 non-const char.
939
940 * xmenu.c (Fx_popup_dialog): error_name is const char*.
941 (xmenu_show): error parameter is const char **. pane_string is const
942 char *.
943 (button_names): Is const char *.
944 (xdialog_show): error_name and pane_string is const.
945
946 * process.h (synch_process_death): Is const char*.
947
948 * w32menu.c (w32_menu_show):
949 * nsmenu.m (ns_menu_show): error parameter is const char **.
950
951 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
952 is const char **.
953
954 * menu.c (Fx_popup_menu): error_name is const.
955
956 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
957 with unsigned char and XtPointer with void *.
958
959 * gtkutil.h: Replace widget_value with struct _widget_value.
960 (enum button_type, struct _widget_value): Remove and use the one from
961 keyboard.h.
962
963 * gtkutil.c (get_utf8_string): Always return an allocated string.
964 Parameter is const.
965 (create_dialog, xg_create_one_menuitem, create_menus)
966 (xg_item_label_same_p, xg_update_menu_item): Free result from
967 get_utf8_string.
968 (xg_separator_p, xg_item_label_same_p): label is const.
969
970 * font.h (font_open_by_name): Make name const.
971
972 * font.c (font_open_by_name): Make name const.
973
974 * floatfns.c (matherr): Use a const char* variable for x->name.
975
976 * emacs.c (main): Pass char[] to putenv instead of literal.
977
978 * callproc.c (synch_process_death): Make const.
979 (Fcall_process): Make signame const.
980
981 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
982 (addDisplayItemWithImage): Use const char*.
983
984 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
985 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
986
987 * nsfont.m (ns_descriptor_to_entity): Use const char*.
988
989 * keyboard.h (_widget_value): name, value and key are const char*.
990
991 * unexmacosx.c (unexec_error): Use const char *.
992
993 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
994
995 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
996 (font_parse_name, font_open_by_name):
997 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
998 (font_parse_name, font_open_by_name): Remove const.
999
1000 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1001
1002 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1003 definition.
1004
1005 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1006 * m/amdx86-64.h: Likewise.
1007 * m/arm.h: Likewise.
1008 * m/hp800.h: Likewise.
1009 * m/ia64.h: Likewise.
1010 * m/ibmrs6000.h: Likewise.
1011 * m/ibms390.h: Likewise.
1012 * m/intel386.h: Likewise.
1013 * m/iris4d.h: Likewise.
1014 * m/m68k.h: Likewise.
1015 * m/macppc.h: Likewise.
1016 * m/mips.h: Likewise.
1017 * m/sh3.h: Likewise.
1018 * m/sparc.h: Likewise.
1019 * m/template.h: Likewise.
1020 * m/vax.h: Likewise.
1021 * m/xtensa.h: Likewise.
1022 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1023 WORDS_BIG_ENDIAN.
1024 * lisp.h: Likewise.
1025 * md5.c: Likewise.
1026 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1027
1028 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1029
1030 Use const char* instead of char*.
1031 Reduce the number of warnings with -Wwrite-strings.
1032 * xrdb.c (get_environ_db, get_system_name):
1033 * unexelf.c (find_section):
1034 * term.c (string_cost, string_cost_one_line, per_line_cost)
1035 (get_named_tty, init_tty):
1036 * sysdep.c (sys_subshell):
1037 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1038 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1039 * search.c (Freplace_match):
1040 * process.c (Fmake_network_process, send_process, init_process):
1041 * lread.c (Fload, init_lread):
1042 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1043 * keyboard.c (parse_tool_bar_item, struct event_head):
1044 * gtkutil.h (xg_get_font_name):
1045 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1046 (make_widget_for_menu_item, make_menu_item, create_menus)
1047 (xg_make_tool_item):
1048 * font.c (parse_matrix, font_parse_name):
1049 * floatfns.c (rounding_driver, float_error_fn_name):
1050 * filelock.c (get_boot_time_1, lock_file_1):
1051 * fileio.c (barf_or_query_if_file_exists, check_writable):
1052 * editfns.c (get_system_name, get_operating_system_release)
1053 (Fencode_time, Fset_time_zone_rule):
1054 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1055 * buffer.c (defvar_per_buffer): Use const.
1056
1057 2010-08-08 Kenichi Handa <handa@m17n.org>
1058
1059 * charset.c: Include <stdlib.h>.
1060 (struct charset_sort_data): New struct.
1061 (charset_compare): New function.
1062 (Fsort_charsets): New function.
1063 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1064
1065 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1066 number in CTEXT extended segment.
1067
1068 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1069
1070 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1071 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1072
1073 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1074
1075 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1076 (Fhash_table_size): Fix typos in docstrings.
1077 (Fmake_hash_table): Doc fix.
1078
1079 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1080
1081 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1082 Doc fix (bug#5625).
1083
1084 2010-08-08 Ken Brown <kbrown@cornell.edu>
1085
1086 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1087 the MSDOS definition.
1088
1089 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1090
1091 Use const char* instead of char*.
1092 * xterm.c (x_create_toolkit_scroll_bar):
1093 * xfont.c (xfont_list_pattern):
1094 * xfns.c (x_default_scroll_bar_color_parameter)
1095 (xic_create_fontsetname, x_default_font_parameter)
1096 (x_screen_planes):
1097 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1098 (store_mode_line_string, decode_mode_spec, display_string):
1099 * menu.c (digest_single_submenu):
1100 * keymap.h (initial_define_key, initial_define_lispy_key):
1101 * keymap.c (initial_define_key, initial_define_lispy_key):
1102 * image.c (image_error, image_keyword):
1103 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1104 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1105 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1106 (ftfont_list, ftfont_match):
1107 * frame.c (frame_parm_table):
1108 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1109 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1110 (font_add_log, font_deferred_log):
1111 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1112 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1113 (font_add_log, font_deferred_log):
1114 * emacs.c (argmatch):
1115 * dispextern.h (struct it):
1116 * coding.c (ENCODE_DESIGNATION):
1117 * charset.c (define_charset_internal): Use const.
1118
1119 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1120
1121 * xrdb.c: Remove include guard.
1122 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1123 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1124 realloc->xrealloc instead of using #defines.
1125
1126 2010-08-08 Eli Zaretskii <eliz@gnu.org>
1127
1128 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
1129 * editfns.c (Fline_beginning_position, Fline_end_position):
1130 State in the doc strings that start and end of line are in the
1131 logical order.
1132
1133 * xdisp.c (display_line): Move the handling of overlay arrow after
1134 the call to find_row_edges. (Bug#6699)
1135
1136 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1137
1138 * keyboard.c (command_loop_1):
1139 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1140
1141 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1142
1143 * insdel.c (prepare_to_modify_buffer): Save active region text to
1144 Vsaved_region_selection.
1145
1146 * xselect.c (QPRIMARY): Move to keyboard.c.
1147
1148 * keyboard.c (Vselect_active_regions): Move from simple.el.
1149 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1150 (command_loop_1): Set window selection prior to deactivating the mark.
1151
1152 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
1153
1154 * alloc.c (lisp_malloc):
1155 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1156 * charset.h (emacs_mule_charset):
1157 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1158 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1159 (bitch_at_user):
1160 * lisp.h (Fcheck_coding_system, Fget_text_property)
1161 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1162 Remove duplicate declarations.
1163
1164 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1165
1166 * process.c: Simplify include logic.
1167
1168 * keyboard.h (quit_char): Add declaration.
1169 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
1170 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1171 Add declarations.
1172 * sysdep.c:
1173 * w32.c: Remove the above declarations.
1174
1175 Remove extern declarations in .c files, .h files have them.
1176 * xterm.c:
1177 * xdisp.c:
1178 * msdos.c:
1179 * image.c:
1180 * gtkutil.c:
1181 * fileio.c:
1182 * eval.c: Remove declarations.
1183
1184 * frame.c (frame_params): Make const.
1185
1186 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1187
1188 * emacs.c (emacs_copyright, emacs_version): Make static.
1189 (Vinitial_window_system, Vauto_save_list_file_name)
1190 (Vinhibit_redisplay): Remove declarations.
1191 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1192 for AIX.
1193
1194 Use const for some arrays and functions.
1195 * xterm.h (xg_set_icon_from_xpm_data):
1196 * xfns.c (xg_set_icon_from_xpm_data):
1197 * term.c (fkeys):
1198 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1199 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1200 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1201 (frame.c frame_parms):
1202 * emacs-icon.h (gnu_xpm_bits):
1203 * callint.c (callint_argfuns): Use const.
1204
1205 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1206
1207 * sysdep.c: Move include term.h last of includes (Bug#6812).
1208
1209 2010-08-06 Eli Zaretskii <eliz@gnu.org>
1210
1211 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1212
1213 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1214
1215 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1216
1217 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1218
1219 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1220
1221 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1222
1223 * xterm.h (x_get_focus_frame): Declare.
1224
1225 * keyboard.h (poll_for_input_1): Unconditionally declare.
1226
1227 * nsterm.h (x_set_menu_bar_lines): Declare.
1228
1229 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1230
1231 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1232
1233 * window.c: Include menu.h.
1234
1235 * unexmacosx.c (print_region_list, print_regions)
1236 (build_region_list, find_emacs_zone_regions)
1237 (unexec_regions_merge, read_load_commands, dump_it)
1238 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1239
1240 * term.c: Check HAVE_SYS_IOCTL_H.
1241
1242 * sysdep.c: Check HAVE_TERM_H.
1243
1244 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
1245
1246 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1247 (ns_ring_bell, ns_defined_color, hide_hourglass)
1248 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1249 Convert to ANSI C prototypes.
1250 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1251 before code.
1252
1253 * nsterm.h : Include sysselect.h.
1254 (x_sync, x_get_focus_frame, x_set_mouse_position)
1255 (x_set_mouse_pixel_position, x_make_frame_visible)
1256 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1257 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1258 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1259 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
1260 Declare.
1261
1262 * nsmenu.m (popup_activated, name_is_separator)
1263 (syms_of_nsmenu): Convert to ANSI C prototypes.
1264 (runMenuAt): Prototypes and move declarations before code.
1265
1266 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1267
1268 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1269 prototypes.
1270
1271 * nsfns.m (have_menus_p, ns_display_info_for_name)
1272 (x_set_cursor_type, ns_appkit_version_str)
1273 (ns_appkit_version_int, ns_do_applescript)
1274 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1275 (syms_of_nsfns): Convert to ANSI C prototypes.
1276
1277 * menu.h (x_set_menu_bar_line): Declare.
1278 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1279
1280 * lisp.h (fmod_float): Declare.
1281
1282 * image.c (xpm_scan, xpm_make_color_table_v)
1283 (xpm_put_color_table_v, xpm_get_color_table_v)
1284 (xpm_make_color_table_h, xpm_put_color_table_h)
1285 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1286 (xpm_load): Convert to ANSI C prototypes.
1287
1288 * emacs.c: Include nsterm.h if HAVE_NS.
1289
1290 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1291
1292 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1293
1294 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1295 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1296 (socket_options): Use const char* for name.
1297
1298 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1299
1300 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1301
1302 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1303 Don't declare xmalloc_widget_value and digest_single_submenu.
1304
1305 * w32font.c (Qlatin): Remove declaration.
1306
1307 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1308
1309 * dired.c (compile_pattern): Restore declaration.
1310
1311 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1312
1313 Remove extern declarations in .c files, .h files have them.
1314 * data.c:
1315 * dired.c:
1316 * editfns.c:
1317 * filelock.c:
1318 * fns.c:
1319 * font.c:
1320 * fontset.c:
1321 * frame.c:
1322 * fringe.c:
1323 * ftfont.c:
1324 * gtkutil.c:
1325 * indent.c:
1326 * keyboard.c:
1327 * keymap.c:
1328 * lread.c:
1329 * menu.c:
1330 * print.c:
1331 * search.c:
1332 * sound.c:
1333 * window.c:
1334 * xdisp.c:
1335 * xfaces.c:
1336 * xfns.c:
1337 * xfont.c:
1338 * xftfont.c:
1339 * xmenu.c:
1340 * xterm.c: Remove declarations.
1341
1342 Cleanup syssignal.h.
1343 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1344 (main_thread): Move down to remove #ifdef.
1345 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1346 Remove conditional definition following unconditional ones.
1347
1348 * lisp.h: Remove HAVE_SHM code, unused.
1349 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1350 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1351 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1352 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1353 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1354 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1355 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1356 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1357 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1358 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1359 (Qwindow_scroll_functions, Vafter_load_alist)
1360 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1361 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1362 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1363 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1364 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1365 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1366 (initial_argv, last_nonmenu_event, load_in_progress)
1367 (noninteractive_need_newline, scroll_margin): Add declarations.
1368
1369 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1370 declarations, menu.h has them.
1371 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1372 (Vinput_method_function, Qinput_method_function)
1373 (Qevent_symbol_element_mask, last_event_timestamp):
1374 * dispextern.h (Voverflow_newline_into_fringe):
1375 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1376 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1377 (syms_of_w32font, syms_of_nsfont):
1378 * fontset.h (find_font_encoding, Qlatin):
1379 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1380 (Vtool_bar_mode, set_frame_menubar):
1381 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1382 * xterm.h (Qx_gtk_map_stock):
1383 * keymap.h (meta_prefix_char): Add declarations.
1384
1385 * term.c: Remove dead code.
1386
1387 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1388 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1389 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1390 which is what was there before BSD_PGRPS was removed.
1391
1392 2010-08-05 Eli Zaretskii <eliz@gnu.org>
1393
1394 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1395
1396 * unexcoff.c: Renamed from unexec.c.
1397
1398 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1399
1400 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1401
1402 2010-08-03 Johan Bockgård <bojohan@gnu.org>
1403
1404 * data.c (Flocal_variable_p): Handle variable aliases correctly.
1405 (Bug#6744)
1406
1407 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1410 to TRUE if depth of screen is < 16.
1411
1412 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1413 USE_GTK_TOOLTIP.
1414 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1415 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
1416 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
1417 USE_GTK_TOOLTIP.
1418 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1419
1420 * xterm.h (USE_GTK_TOOLTIP): New define.
1421 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1422
1423 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1424 to Control-D (Bug#6771).
1425
1426 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
1427
1428 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1429 Wording by Drew Adams <drew.adams@oracle.com>.
1430
1431 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1432
1433 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1434 ttip_lbl.
1435
1436 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1437 calling gtk_widget_queue_draw.
1438 (x_free_frame_resources): Call xg_free_frame_widgets.
1439
1440 * xfns.c (x_gtk_use_system_tooltips): New variable.
1441 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1442 new gtkutil tooltip functions to show the tooltip.
1443 (Fx_hide_tip): Call xg_hide_tooltip.
1444 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1445
1446 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1447 (xg_show_tooltip, xg_hide_tooltip): Declare.
1448
1449 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
1450 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1451 New functions.
1452 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1453 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1454 Remove code that is commented out.
1455
1456 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1457
1458 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1459
1460 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
1461
1462 * xselect.c (x_own_selection): Use list4.
1463
1464 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1465
1466 * buffer.c (Qwindow): Do not define, already defined in data.c.
1467 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1468
1469 2010-07-29 Chad Brown <yandros@mit.edu>
1470
1471 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1472 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1473 * config.in: Undef HAVE_DIRENT_H.
1474 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
1475 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1476
1477 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1478
1479 Rename s/usg5-4.h -> s/usg5-4-common.h.
1480 * s/usg5-4.h: Rename file to ...
1481 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1482 * s/unixware.h:
1483 * s/sol2-6.h:
1484 * s/irix6-5.h: Update includes accordingly.
1485
1486 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1487
1488 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1489
1490 * xterm.h (struct x_output): Add toolbar_top_height,
1491 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1492 Remove toolbar_height.
1493 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
1494 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1495 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1496 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1497
1498 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1499
1500 * xfns.c (x_set_tool_bar_position): New function.
1501 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1502 (x_frame_parm_handlers): Add x_set_tool_bar_position.
1503 (syms_of_xfns): If USE_GTK, provide move-toolbar.
1504
1505 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1506 and FRAME_TOOLBAR_LEFT_WIDTH.
1507
1508 * gtkutil.h (xg_change_toolbar_position): Declare.
1509
1510 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1511 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1512 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1513 (xg_create_frame_widgets): Create a hobox for placing widgets
1514 vertically. Use gtk_box_pack_start.
1515 (xg_height_or_width_changed): Renamed from xg_height_changed.
1516 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1517 (xg_update_frame_menubar, free_frame_menubar): Change to
1518 xg_height_or_width_changed.
1519 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1520 size correctly. Remove hardcoded 4, instead use handlebox size -
1521 toolbar size.
1522 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
1523 size correctly. Use handlebox size + toolbar size as additional size.
1524 (xg_pack_tool_bar): POS is a new parameter.
1525 Set orientation of tool bar based on pos.
1526 Only make handlebox_widget if NULL.
1527 Check if tool bar goes to vbox or hbox depending on pos.
1528 (xg_update_tool_bar_sizes): New function.
1529 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
1530 height, call xg_update_tool_bar_sizes instead.
1531 (free_frame_tool_bar): Remove from hbox or vbox depending on
1532 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1533 (xg_change_toolbar_position): New function.
1534
1535 * frame.h (struct frame): Add tool_bar_position.
1536 (Qbottom): Declare.
1537
1538 * frame.c (Qtool_bar_position): New variable.
1539 (make_frame): Set tool_bar_position to Qtop.
1540 (frame_parms): Add tool-bar-position.
1541 (x_report_frame_params): Store tool_bar_position.
1542 (x_set_fringe_width): Reset wm size hint after fringe changes.
1543
1544 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1545
1546 Make lisp_time_argument declaration work on all systems.
1547 * lisp.h (lisp_time_argument): Move declaration ...
1548 * systime.h (lisp_time_argument): ... here
1549 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1550
1551 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1552
1553 * vm-limit.c (POINTER): Add typedef for it.
1554 (start_of_data): Change return type from POINTER to char *.
1555
1556 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1557 HAVE_WINDOW_SYSTEM.
1558
1559 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1560
1561 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1562 Remove reference to __osf__, unused.
1563
1564 * mem-limits.h: Remove duplicated includes.
1565 (NULL): Remove definition, unused.
1566 (POINTER): Remove definition.
1567 (start_of_data): Use char* in prototype, as the function
1568 definition does.
1569
1570 Remove extern declarations from .c files, and them to .h files.
1571 * keyboard.h (Qhelp_echo, waiting_for_input)
1572 (input_available_clear_time, ignore_mouse_drag_p)
1573 (Vdouble_click_time, real_this_command, Vthis_original_command):
1574 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1575 (Voverriding_local_map_menu_flag):
1576 * lisp.h (Qinteractive_form, use_file_dialog)
1577 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1578 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1579 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1580 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1581 (Qfunction, debug_on_next_call, Qfield)
1582 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1583 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1584 (Qfile_directory_p, Qinsert_file_contents)
1585 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1586 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1587 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1588 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1589 (Qminibuffer_prompt)
1590 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1591 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1592 (gray_bitmap_bits, xic_create_fontsetname):
1593 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1594
1595 * xsmfns.c (Vuser_login_name):
1596 * xrdb.c (Vdouble_click_time):
1597 * xfaces.c (xic_create_fontsetname):
1598 * w32select.c (waiting_for_input):
1599 * print.c (minibuffer_auto_raise):
1600 * msdos.c (Qhelp_echo):
1601 * macros.c (real_this_command):
1602 * keymap.c (Voverriding_local_map):
1603 * xterm.c (poll_for_input_1, gray_bitmap_width)
1604 (gray_bitmap_height, gray_bitmap_bits;
1605 * xmenu.c ( Voverriding_local_map)
1606 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1607 (use_file_dialog, Xt_app_con):
1608 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1609 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1610 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1611 (Qtool_bar_lines, ignore_mouse_drag_p):
1612 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1613 (Qrear_nonsticky, nconc2):
1614 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1615 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1616 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1617 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1618 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1619 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1620 (gc_in_progress):
1621 * doc.c (Voverriding_local_map, Qremap):
1622 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1623 (Vcompletion_regexp_list):
1624 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1625 (Qcompletion_ignore_case):
1626 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1627 (Vhistory_length, Vthis_original_command, real_this_command)
1628 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1629 * image.c (Qrisky_local_variable):
1630 * fontset.c (QCname):
1631 * fns.c (minibuffer_auto_raise, QCname):
1632 * dispnew.c (char_ins_del_cost):
1633 * composite.c (font_fill_lglyph_metrics):
1634 * cmds.c (Qface, Vtranslation_table_for_input):
1635 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1636 * ccl.c (charset_unicode):
1637 * callproc.c (Vtemporary_file_directory):
1638 * buffer.c (emacs_strerror): Remove extern declarations.
1639
1640 * data.c (Qwindow): Make non-static, used from other files too.
1641 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1642
1643 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1644 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1645 * s/usg5-4.h (COFF):
1646 * s/template.h:
1647 * s/msdos.h (COFF, NO_REMAP):
1648 * s/ms-w32.h (NO_REMAP):
1649 * s/hpux10-20.h (NO_REMAP):
1650 * m/sparc.h (SEGMENT_MASK):
1651 * m/m68k.h (NO_REMAP):
1652 * m/intel386.h (SEGMENT_MASK):
1653 * m/arm.h (NO_REMAP):
1654 * m/alpha.h (COFF):
1655 * m/template.h: Remove references to unused defines.
1656
1657 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1658
1659 * xsettings.c (Ftool_bar_get_system_style): Also check for
1660 Qtext_image_horiz.
1661
1662 * xdisp.c (Qtext_image_horiz): Define.
1663 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
1664 to documentation of tool-bar-style.
1665
1666 * lisp.h (Qtext_image_horiz): Declare.
1667
1668 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1669 style text_image_horiz.
1670
1671 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1672
1673 * emacs.c (Fkill_emacs): Remove return statement.
1674
1675 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1676 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1677 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1678 local extern declarations.
1679
1680 * xmenu.c: Do not included lwlib.h, not needed.
1681
1682 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1683
1684 * process.c: Move definitions earlier to minimize #ifdefs.
1685
1686 * xterm.h (x_get_customization_string, x_load_resources)
1687 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1688 (x_check_errors, x_property_data_to_lisp, defined_color)
1689 (xic_set_xfontset, x_defined_color): Use const.
1690
1691 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1692 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1693
1694 * xselect.c (selection_data_to_lisp_data)
1695 (x_property_data_to_lisp):
1696 * xrdb.c (x_get_string_resource, file_p)
1697 (x_get_customization_string, magic_file_p, search_magic_path)
1698 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1699 (x_get_string_resource): Use const.
1700
1701 * xfns.c: Include xlwmenu.h when USE_LUCID.
1702 (x_defined_color, xic_set_xfontset): Use const.
1703 (Fx_hide_tip): Remove local extern declaration.
1704
1705 * xfaces.c (Qmouse_face): Remove declaration.
1706 (face_color_gray_p, tty_defined_color, defined_color)
1707 (face_color_gray_p, face_color_supported_p): Add const.
1708
1709 * xdisp.c (do_mouse_tracking): Remove declaration.
1710 (add_to_log): Use const.
1711
1712 * minibuf.c (Qmouse_face): Remove declaration.
1713
1714 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1715
1716 * keyboard.h (do_mouse_tracking): Add declaration.
1717
1718 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1719 (QCdata, QCtype, Qcenter): Remove declarations.
1720
1721 * frame.c (x_get_resource_string, x_get_string_resource)
1722 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1723 (x_default_parameter): Use const.
1724
1725 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1726 (QCheight, QCsize, QCname): Remove declarations.
1727
1728 * emacs.c (main): Remove local extern declaration.
1729
1730 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1731 declarations.
1732
1733 * dispnew.c: Remove duplicate #include <unistd.h>.
1734 (update_window, update_frame_1, init_display): Remove local extern
1735 declarations.
1736
1737 * dispextern.h (add_to_log): Remove declaration.
1738 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1739 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1740
1741 * dired.c (scmp): Add const.
1742 (directory_files_internal): Remove local extern declaration.
1743
1744 * data.c (Finteractive_form): Use const.
1745
1746 * composite.c (syms_of_composite): Remove local extern declarations.
1747
1748 * charset.c (add_to_log): Remove declaration.
1749
1750 * character.c (strwidth, parse_str_to_multibyte): Add const.
1751
1752 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1753
1754 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1755
1756 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
1757 (Lisp_Subr): Make doc and intspec constant.
1758 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1759 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1760 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1761 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1762 (display_arg): Add declarations.
1763
1764 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
1765
1766 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1767
1768 * window.c (Fwindow_height): Doc fix (bug#6518).
1769
1770 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
1771
1772 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1773
1774 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1775
1776 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1777 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1778 functions.
1779
1780 * frame.h (Qtty_color_mode): Add declaration.
1781
1782 * lisp.h (Ftop_level, Fexit_recursive_edit)
1783 (Fabort_recursive_edit): Mark as NO_RETURN.
1784
1785 2010-07-26 Kenichi Handa <handa@m17n.org>
1786
1787 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
1788 number of glyphs gets smaller than the original length. (Bug#6621)
1789
1790 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
1791
1792 * lread.c (unreadpure, mapatoms_1): Make static.
1793
1794 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1795
1796 * terminfo.c (tparam): Fix prototype of tparm.
1797
1798 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1799
1800 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1801 find start of text segment.
1802 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1803 is defined.
1804
1805 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1806
1807 2010-07-25 Ken Brown <kbrown@cornell.edu>
1808
1809 * vm-limit.c (check_memory_limits): Fix previous change;
1810 accidentally reverted an earlier change.
1811
1812 2010-07-25 Ken Brown <kbrown@cornell.edu>
1813
1814 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1815 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1816
1817 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
1818
1819 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1820 * dired.c (opendir, readdir): Fix prototypes.
1821 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1822 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1823 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1824 (telldir): Remove declaration.
1825 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1826 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1827 * syssignal.h (strsignal): Fix prototype.
1828 * term.c (tparam): Fix prototype.
1829 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1830 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1831 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1832 and __morecore.
1833 * w32gui.h (XParseGeometry): Fix prototype.
1834 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1835 * w32term.c (my_set_focus): Declare inside #if 0.
1836 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1837 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1838 (drain_message_queue, get_next_msg, post_msg, parse_button)
1839 (ClipboardSequence_Proc): Fix prototypes.
1840 (wait_for_sync): Remove declaration.
1841
1842 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
1843
1844 * w32fns.c (w32_to_x_color): Remove, unused.
1845
1846 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1847
1848 * lisp.h: Remove leftover P_.
1849
1850 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1851
1852 * ecrt0.c, unexalpha.c: Remove files, unused.
1853
1854 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1855
1856 * cmds.c (internal_self_insert): Make static.
1857 * lisp.h (internal_self_insert): Remove declaration.
1858
1859 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
1860
1861 * alloc.c (free_float):
1862 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1863 * frame.c (delete_frame_handler):
1864 * ralloc.c (reorder_bloc):
1865 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1866 Remove unused static functions.
1867
1868 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1869 it is called only from NS code.
1870
1871 * w32term.c (my_set_focus): #ifdef away; it is called only from
1872 "#ifdef 0" code.
1873
1874 * w32fns.c (x_edge_detection):
1875 * xfaces.c (may_use_scalable_font_p):
1876 Remove obsolete static declarations.
1877
1878 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
1879
1880 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1881 (emacs_blocked_realloc, uninterrupt_malloc):
1882 * fringe.c (w32_reset_fringes):
1883 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1884 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1885 * sound.c (be2hs, do_play_sound):
1886 * vm-limit.c (get_lim_data, ret_lim_data):
1887 * w32term.c (x_free_frame_resources):
1888 * xfaces.c (x_create_gc, x_free_gc):
1889 Convert definitions to standard C.
1890
1891 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1892
1893 * eval.c (Feval, Ffuncall): Use the new names.
1894
1895 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1896 (DEFUN): Add braces around the union initialisation and use ## to
1897 specify the right union alternative and avoid a cast.
1898
1899 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
1900
1901 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1902
1903 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
1904
1905 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1906
1907 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1908
1909 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1910 is related to the menu bar (Bug#6499).
1911 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
1912
1913 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1914
1915 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1916
1917 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1918
1919 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1920 i.e. don't put back ButtonRelease (Bug#6608).
1921
1922 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1923 instead of Window. Call xg_event_is_for_menubar when
1924 USE_GTK (Bug#6499).
1925
1926 * gtkutil.h (xg_event_is_for_menubar): Declare.
1927
1928 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1929
1930 2010-07-16 Eli Zaretskii <eliz@gnu.org>
1931
1932 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1933 when it's the same as the old foreground. (Bug#6609)
1934
1935 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1936
1937 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1938 widget is non-null (Bug#6645).
1939
1940 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1941
1942 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1943 Convert old-style definition.
1944
1945 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1946 timestamp argument.
1947
1948 2010-07-15 Eli Zaretskii <eliz@gnu.org>
1949
1950 * fringe.c (update_window_fringes): Restore mistakenly reverted
1951 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1952
1953 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1954
1955 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1956 (SET_SAVED_KEY_EVENT): Remove (not used).
1957 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1958 remove size parameter.
1959 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1960 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1961 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1962 ButtonRelease.
1963 (x_set_window_size_1): scroll_bar_actual_width is always
1964 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
1965
1966 * xdisp.c (pending_menu_activation): Remove extern declaration.
1967 (prepare_menu_bars): Remove setting of pending_menu_activation.
1968
1969 * xmenu.c (pending_menu_activation): Remove.
1970 (x_activate_menubar): Set popup_activated_flag for Xt also.
1971 Remove setting of pending_menu_activation.
1972 (set_frame_menubar): Remove check of pending_menu_activation.
1973 Declare menubar_size before code. Correct spelling in comment.
1974
1975 2010-07-14 Kenichi Handa <handa@m17n.org>
1976
1977 * font.c (font_open_entity): Cancel previous change.
1978 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1979
1980 2010-07-13 Eli Zaretskii <eliz@gnu.org>
1981
1982 Remove subprocesses #ifdefs.
1983 * process.c <inhibit_sentinels>: Move to the common part.
1984 (Fwaiting_for_user_input_p): Move to the common part; return nil
1985 if async subprocesses aren't supported.
1986 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1987 MS-DOS. Remove "#ifdef subprocesses".
1988 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1989 (gettimeofday): Remove "#ifdef subprocesses".
1990 (wait_without_blocking): Remove function.
1991 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1992 Remove "#ifdef subprocesses".
1993 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1994 compiled on MS-DOS.
1995 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1996 wait_for_termination on MS-DOS.
1997 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1998 initialization of inhibit_sentinels.
1999 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2000 subprocesses" conditional.
2001 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2002 wait_for_termination, since `buffer' cannot be an integer when
2003 async subprocesses are not supported
2004 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2005 for ifdefing away the call to Fprocess_status.
2006
2007 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2008 away the entire body of the function.
2009
2010 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2011
2012 Remove subprocesses #ifdefs from term.c.
2013 * process.c (add_keyboard_wait_descriptor)
2014 (delete_keyboard_wait_descriptor): Move to common section, do
2015 nothing when subprocesses is not defined.
2016 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2017 Remove subprocesses #ifdefs.
2018
2019 Convert maybe_fatal to standard C.
2020 * lisp.h (verror): Declare.
2021 * eval.c (verror): New function containing the code from ...
2022 (error): ... this. Call verror.
2023 * term.c (vfatal): New function containing the code from ...
2024 (fatal): ... this. Call vfatal.
2025 (maybe_fatal): Convert to standard C, use variable number of
2026 arguments. Declare as non-return.
2027 (init_tty): Fix maybe_fatal call.
2028
2029 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2030
2031 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2032 (_scroll_bar_note_movement): Convert definitions to standard C.
2033 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2034 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2035
2036 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2037
2038 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2039 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2040 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2041 (xaw_jump_callback, xaw_scroll_callback)
2042 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2043 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2044 definitions to standard C.
2045 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2046 (popup_activate_callback, popup_deactivate_callback)
2047 (menu_highlight_callback, menubar_selection_callback)
2048 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2049 (free_frame_menubar, popup_selection_callback, as)
2050 (create_and_show_popup_menu, dialog_selection_callback)
2051 (create_and_show_dialog):
2052 * xfns.c (hack_wm_protocols, x_window):
2053 * xfaces.c (x_update_menu_appearance):
2054 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2055 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2056 (set_frame_size, update_wm_hints, setup_frame_gcs)
2057 (update_various_frame_slots, update_from_various_frame_slots)
2058 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2059 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2060 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2061
2062 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2063
2064 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
2065
2066 2010-07-12 Eli Zaretskii <eliz@gnu.org>
2067
2068 * process.c (setup_process_coding_systems): Move to the part
2069 shared by non-subprocesses systems, and make its body empty when
2070 subprocesses is not defined.
2071 (close_process_descs): Move to the part shared by non-subprocesses
2072 systems.
2073 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2074 ANSI C.
2075
2076 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2077
2078 * editfns.c (transpose_markers): Convert old-style definition.
2079 * emacs.c (abort, shut_down_emacs, fixup_locale)
2080 (synchronize_system_time_locale)
2081 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2082 * floatfns.c (extract_float, matherr, init_floatfns)
2083 (syms_of_floatfns): Likewise.
2084 * fns.c (make_hash_table): Likewise.
2085 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2086 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2087 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2088 (ftfont_variation_glyphs): Likewise.
2089 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2090 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2091 * lread.c (read_filtered_event): Likewise.
2092 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2093 * process.c (wait_reading_process_output): Likewise.
2094 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2095 * search.c (search_buffer, boyer_moore): Likewise.
2096 * syntax.c (scan_sexps_forward): Likewise.
2097 * xdisp.c (try_scrolling): Likewise.
2098 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2099 (face_at_string_position): Likewise.
2100 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2101 * xselect.c (x_get_window_property, receive_incremental_selection)
2102 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2103 Likewise.
2104 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2105
2106 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2107
2108 * callproc.c (child_setup): Remove subprocesses conditional.
2109 Remove code dealing with SET_EMACS_PRIORITY, unused.
2110
2111 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2112 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2113
2114 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2115 (__do_global_dtors, __main): Use void in definition.
2116 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2117 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2118 the only users from ...
2119 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2120 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2121 (HAVE_VOLATILE): Remove, unused.
2122
2123 Convert more function definitions to standard C.
2124 * xdisp.c (window_box_edges, handle_single_display_spec)
2125 (display_string): Convert definition to standard C.
2126 * scroll.c (do_direct_scrolling, scrolling_1):
2127 * dispnew.c (allocate_matrices_for_frame_redisplay)
2128 (mirrored_line_dance):
2129 * coding.c (code_convert_string):
2130 * charset.c (map_charset_chars):
2131 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2132 (Fregister_ccl_program, Fregister_code_conversion_map):
2133 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2134 (head_table): Make static and const.
2135
2136 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2137
2138 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2139 (PROFILING_LDFLAGS): Set from substitution.
2140 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2141 CFLAGS last.
2142
2143 2010-07-12 Kenichi Handa <handa@m17n.org>
2144
2145 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2146 (shortlisp): Likewise.
2147
2148 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2149
2150 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2151 of FONT_ENTITY_INDEX.
2152 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2153 property, get the property value dynamically.
2154 (Ffont_put): Accept font-entity and font-object too.
2155 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2156 return value changed.
2157 (syms_of_font): Adjusted for the above change.
2158
2159 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2160
2161 * blockinput.h: Remove obsolete comment.
2162
2163 * lisp.h: Include <stddef.h>.
2164 (OFFSETOF): Don't define.
2165 (VECSIZE): Use offsetof instead of OFFSETOF.
2166 (PSEUDOVECSIZE): Likewise.
2167 * process.c (conv_sockaddr_to_lisp): Likewise.
2168 * alloc.c: Don't include <stddef.h>.
2169 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2170
2171 * process.c: Remove obsolete comment.
2172
2173 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2176
2177 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2178
2179 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2180 index, rindex.
2181 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2182 * editfns.c (Fuser_full_name, Fformat): Likewise.
2183 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2184 * fileio.c (Ffile_symlink_p): Likewise.
2185 * filelock.c (current_lock_owner): Likewise.
2186 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2187 * fontset.c (fontset_pattern_regexp): Likewise.
2188 * lread.c (read1): Likewise.
2189 * sysdep.c (init_system_name): Likewise.
2190 * xfns.c (select_visual): Likewise.
2191 * s/hpux10-20.h (index, rindex): Don't define.
2192 * s/ms-w32.h (index): Likewise.
2193 * s/usg5-4.h: Likewise.
2194
2195 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2196
2197 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2198 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2199 (egetenv): Likewise.
2200 * doprnt.c (doprnt): Likewise.
2201 * editfns.c (set_time_zone_rule, format2): Likewise.
2202 * emacs.c (decode_env_path): Likewise.
2203 * eval.c (signal_error, error): Likewise.
2204 * insdel.c (replace_range_2): Likewise.
2205 * keyboard.c (cmd_error_internal): Likewise.
2206 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2207 * print.c (write_string, write_string_1, print_error_message):
2208 Likewise.
2209 * vm-limit.c (warn_function, memory_warnings): Likewise.
2210 * xdisp.c (message1, message1_nolog, message_with_string)
2211 (vmessage, message, message_nolog): Likewise.
2212 * emacs.c: Remove duplicate declaration.
2213 * keyboard.h: Likewise.
2214 * lisp.h: Update prototypes.
2215
2216 * eval.c: Fix indentation problem.
2217
2218 * keyboard.c: Include "process.h"
2219
2220 * eval.c: Remove obsolete noinline declaration.
2221 * fns.c: Likewise.
2222
2223 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
2224
2225 * doprnt.c (doprnt): Take a va_list argument instead of count and
2226 pointer.
2227 * eval.c (error): Change to a standard-C variadic function.
2228 * xdisp.c (vmessage): Renamed from message, made static, and
2229 changed to take a va_list argument.
2230 (message): New variadic wrapper.
2231 (message_nolog): Now a variadic function, calling vmessage.
2232 * lisp.h: Include stdarg.h for va_list.
2233 (doprnt, error, message, message_nolog): Decls updated.
2234
2235 2010-07-11 Eli Zaretskii <eliz@gnu.org>
2236
2237 * process.c (syms_of_process) <delete-exited-processes>: Define
2238 even if !subprocesses.
2239 (delete_exited_processes): Ditto.
2240
2241 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2242 (delete_exited_processes): Don't define.
2243
2244 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
2245
2246 * frame.c (make_frame): Initialize menu_bar_lines and
2247 tool_bar_lines members.
2248 (make_initial_frame, make_terminal_frame): Initialize
2249 menu_bar_lines using value of menu-bar-mode.
2250
2251 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2252
2253 2010-07-10 Eli Zaretskii <eliz@gnu.org>
2254
2255 * process.c: Reshuffle #include's. Condition some of the global
2256 and static variables on `subprocesses'.
2257 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2258 Leave only one implementation.
2259 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2260 (kill_buffer_processes, Flist_system_processes)
2261 (Fprocess_attributes, init_process, syms_of_process): Unify the
2262 implementations for with subprocesses and without them.
2263
2264 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2265
2266 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2267 correct size for Motif.
2268 (free_frame_menubar): Call x_set_window_size to update frame size.
2269
2270 * xfns.c (x_window): Set borderWidth to 0 for pane and
2271 EmacsFrame. Frame size calculation is wrong otherwise.
2272
2273 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
2274
2275 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2276 allows to suppress errors when polling in Emacs' main loop.
2277 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2278 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2279 (Fdbus_method_error_internal, Fdbus_send_signal)
2280 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2281 (Fdbus_register_method): Use it. (Bug#6579)
2282
2283 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2284
2285 * alloc.c: Convert DEFUNs to standard C.
2286 * buffer.c:
2287 * bytecode.c:
2288 * callint.c:
2289 * callproc.c:
2290 * casefiddle.c:
2291 * casetab.c:
2292 * category.c:
2293 * character.c:
2294 * charset.c:
2295 * chartab.c:
2296 * cmds.c:
2297 * coding.c:
2298 * composite.c:
2299 * data.c:
2300 * dbusbind.c:
2301 * dired.c:
2302 * dispnew.c:
2303 * doc.c:
2304 * dosfns.c:
2305 * editfns.c:
2306 * emacs.c:
2307 * eval.c:
2308 * fileio.c:
2309 * filelock.c:
2310 * floatfns.c:
2311 * fns.c:
2312 * font.c:
2313 * fontset.c:
2314 * frame.c:
2315 * fringe.c:
2316 * image.c:
2317 * indent.c:
2318 * insdel.c:
2319 * keyboard.c:
2320 * keymap.c:
2321 * lread.c:
2322 * macros.c:
2323 * marker.c:
2324 * menu.c:
2325 * minibuf.c:
2326 * msdos.c:
2327 * nsfns.m:
2328 * nsmenu.m:
2329 * nsselect.m:
2330 * print.c:
2331 * process.c:
2332 * search.c:
2333 * sound.c:
2334 * syntax.c:
2335 * term.c:
2336 * terminal.c:
2337 * textprop.c:
2338 * undo.c:
2339 * w16select.c:
2340 * w32console.c:
2341 * w32fns.c:
2342 * w32font.c:
2343 * w32menu.c:
2344 * w32proc.c:
2345 * w32select.c:
2346 * window.c:
2347 * xdisp.c:
2348 * xfaces.c:
2349 * xfns.c:
2350 * xmenu.c:
2351 * xselect.c:
2352 * xsettings.c:
2353 * xsmfns.c: Likewise.
2354
2355 2010-07-08 Eli Zaretskii <eliz@gnu.org>
2356
2357 * process.c (kbd_is_on_hold, hold_keyboard_input)
2358 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2359
2360 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2361
2362 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2363 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2364 unless USE_LUCID.
2365
2366 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2367
2368 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2369 declaration.
2370
2371 Clean up include guards.
2372 * tparam.c: Remove include guards for config.h, string.h and code
2373 that assumes #ifndef emacs.
2374 * termcap.c:
2375 * unexalpha.c:
2376 * sysdep.c:
2377 * filemode.c:
2378 * filelock.c:
2379 * bidi.c: Likewise.
2380
2381 Remove prefix-args.c
2382 * prefix-args.c: Remove file.
2383 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2384 * Makefile.in (temacs${EXEEXT}): Remove references to
2385 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2386 (mostlyclean): Remove reference to prefix-args.
2387 (prefix-args): Remove.
2388
2389 Simplify cstart_of_data, start_of_code and related code.
2390 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2391 (start_of_data): Merge into start_of_data function.
2392 * sysdep.c (start_of_text): Remove. Move simplified versions of
2393 it in the only users: unexaix.c and unexec.c.
2394 (read_input_waiting): Remove local declaration of quit_char.
2395 (start, etext): Remove declarations.
2396 (start_of_data): Merge with the version in mem-limits.h and move
2397 to vm-limits.c.
2398 * vm-limit.c (start_of_data): Merged and simplified version of the
2399 code formerly in mem-limits.h and sysdep.c.
2400 * unexec.c (start): New declaration, moved from sysdep.c.
2401 (start_of_text): Simplified version of the code formerly in sysdep.c.
2402 * unexaix.c (start_of_text): Simplified version of the code
2403 formerly in sysdep.c.
2404 * m/alpha.h (HAVE_TEXT_START): Remove.
2405 (TEXT_START): Move ...
2406 * unexalpha.c (TEXT_START): ... here.
2407 * s/hpux10-20.h (TEXT_START): Remove.
2408 * s/darwin.h (TEXT_START):
2409 * m/mips.h (TEXT_START):
2410 * m/macppc.h (HAVE_TEXT_START):
2411 * m/m68k.h (TEXT_START):
2412 * m/iris4d.h (TEXT_START):
2413 * m/intel386.h (TEXT_START):
2414 * m/ibmrs6000.h (TEXT_START):
2415 * m/ia64.h (HAVE_TEXT_START):
2416 * s/msdos.h (TEXT_START): Likewise.
2417
2418 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2419
2420 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2421 (overrun_check_free, xstrdup, allocate_string)
2422 (allocate_string_data, compact_small_strings, Fmake_string)
2423 (make_unibyte_string, make_multibyte_string)
2424 (make_string_from_bytes, make_specified_string, make_float)
2425 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2426 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2427 memcpy, memmove, memset, memcmp.
2428 * atimer.c (start_atimer, set_alarm): Likewise.
2429 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2430 (mmap_realloc, init_buffer_once): Likewise.
2431 * callint.c (Fcall_interactively): Likewise.
2432 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2433 (getenv_internal_1): Likewise.
2434 * casefiddle.c (casify_object): Likewise.
2435 * ccl.c (ccl_driver): Likewise.
2436 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2437 * charset.c (load_charset_map_from_file)
2438 (load_charset_map_from_file, load_charset_map_from_vector)
2439 (Fdefine_charset_internal): Likewise.
2440 * cm.c (Wcm_clear): Likewise.
2441 * coding.c (decode_eol, decode_coding_object)
2442 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2443 * data.c (Faset): Likewise.
2444 * dired.c (directory_files_internal, file_name_completion_stat):
2445 Likewise.
2446 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2447 (clear_glyph_row, copy_row_except_pointers)
2448 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2449 (save_current_matrix, restore_current_matrix)
2450 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2451 (mirror_line_dance, scrolling_window): Likewise.
2452 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2453 Likewise.
2454 * doprnt.c (doprnt): Likewise.
2455 * editfns.c (Fuser_full_name, make_buffer_string_both)
2456 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2457 * emacs.c (sort_args): Likewise.
2458 * eval.c (Fapply, Ffuncall): Likewise.
2459 * fileio.c (Ffile_name_directory, make_temp_name)
2460 (Fexpand_file_name, search_embedded_absfilename)
2461 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2462 (auto_save_error): Likewise.
2463 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2464 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2465 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2466 (Fmake_hash_table): Likewise.
2467 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2468 * ftfont.c (ftfont_text_extents): Likewise.
2469 * getloadavg.c (getloadavg): Likewise.
2470 * image.c (define_image_type, make_image, make_image_cache)
2471 (x_create_x_image_and_pixmap, xbm_image_p)
2472 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2473 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2474 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2475 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2476 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2477 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2478 Likewise.
2479 * indent.c (scan_for_column, compute_motion): Likewise.
2480 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2481 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2482 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2483 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2484 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2485 (store_user_signal_events, menu_bar_items, tool_bar_items)
2486 (process_tool_bar_item, append_tool_bar_item)
2487 (read_char_minibuf_menu_prompt, read_key_sequence)
2488 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2489 Likewise.
2490 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2491 Likewise.
2492 * lisp.h (STRING_COPYIN): Likewise.
2493 * lread.c (Fload, read1, oblookup): Likewise.
2494 * msdos.c (Frecent_doskeys): Likewise.
2495 * nsfns.m (Fx_create_frame): Likewise.
2496 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2497 Likewise.
2498 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2499 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2500 Likewise.
2501 * nsmenu.m (ns_update_menubar): Likewise.
2502 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2503 * print.c (print_unwind, printchar, strout, print_string)
2504 (print_error_message): Likewise.
2505 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2506 (Fmake_network_process, Fnetwork_interface_list)
2507 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2508 (init_process): Likewise.
2509 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2510 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2511 Likewise.
2512 * scroll.c (do_scrolling, do_direct_scrolling)
2513 (scrolling_max_lines_saved): Likewise.
2514 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2515 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2516 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2517 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2518 (emacs_set_tty): Likewise.
2519 * term.c (encode_terminal_code, calculate_costs)
2520 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2521 Likewise.
2522 * termcap.c (tgetst1, gobble_line): Likewise.
2523 * termhooks.h (EVENT_INIT): Likewise.
2524 * tparam.c (tparam1): Likewise.
2525 * unexalpha.c (unexec): Likewise.
2526 * unexec.c (write_segment): Likewise.
2527 * unexmacosx.c (unexec_write_zero): Likewise.
2528 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2529 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2530 * w32font.c (w32font_list_family, w32font_text_extents)
2531 (w32font_list_internal, w32font_match_internal)
2532 (w32font_open_internal, compute_metrics, Fx_select_font):
2533 Likewise.
2534 * w32menu.c (set_frame_menubar, add_menu_item)
2535 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2536 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2537 * w32uniscribe.c (uniscribe_list_family): Likewise.
2538 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2539 * window.c (make_window, replace_window, set_window_buffer)
2540 (Fsplit_window): Likewise.
2541 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2542 (add_to_log, message3, x_consider_frame_title)
2543 (append_space_for_newline, extend_face_to_end_of_line)
2544 (decode_mode_spec_coding, init_glyph_string): Likewise.
2545 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2546 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2547 (face_attr_equal_p, make_realized_face, make_face_cache)
2548 (free_realized_faces, lookup_named_face, smaller_face)
2549 (face_with_height, lookup_derived_face)
2550 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2551 (Finternal_set_font_selection_order, realize_default_face)
2552 (compute_char_face, face_at_buffer_position)
2553 (face_for_overlay_string, face_at_string_position, merge_faces):
2554 Likewise.
2555 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2556 (Fx_window_property, x_create_tip_frame)
2557 (Fx_backspace_delete_keys_p): Likewise.
2558 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2559 (xfont_text_extents): Likewise.
2560 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2561 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2562 * xselect.c (x_queue_event, x_get_window_property)
2563 (receive_incremental_selection): Likewise.
2564 * xsmfns.c (x_session_check_input): Likewise.
2565 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2566 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2567 Likewise.
2568 * character.h (BCOPY_SHORT): Removed.
2569 * config.in: Regenerate.
2570 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2571 * emacs.c (main) [PROFILING]: Don't declare
2572 dump_opcode_frequencies.
2573 * lisp.h (safe_bcopy): Remove declaration.
2574 (memset) [!HAVE_MEMSET]: Declare.
2575 (memcpy) [!HAVE_MEMCPY]: Likewise.
2576 (memmove) [!HAVE_MEMMOVE]: Likewise.
2577 (memcmp) [!HAVE_MEMCMP]: Likewise.
2578 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2579 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2580 Don't define.
2581 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2582 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2583 (BCOPY_DOWNWARD_SAFE): Don't define.
2584 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2585 (memcpy) [!HAVE_MEMCPY]: Define.
2586 (memmove) [!HAVE_MEMMOVE]: Define.
2587 (memcmp) [!HAVE_MEMCMP]: Define.
2588
2589 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2590
2591 * process.c (kbd_is_on_hold): New variable.
2592 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2593 New functions.
2594 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2595 select on empty input mask.
2596 (init_process): Initialize kbd_is_on_hold to 0.
2597
2598 * process.h (hold_keyboard_input, unhold_keyboard_input)
2599 (kbd_on_hold_p): Declare.
2600
2601 * keyboard.c (input_available_signal): Declare.
2602 (kbd_buffer_nr_stored): New function.
2603 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2604 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2605 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2606 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2607 (tty_read_avail_input): If input is on hold, return.
2608 Don't read more that free slots in kbd_buffer (Bug#6571).
2609
2610 2010-07-07 Eli Zaretskii <eliz@gnu.org>
2611
2612 * msdos.h:
2613 * msdos.c:
2614 * dosfns.c:
2615 * w16select.c: Convert function definitions to ANSI C.
2616
2617 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2618 Remove unused prototypes.
2619
2620 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2621
2622 * coding.c, sysdep.c: Convert some more functions to standard C.
2623
2624 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
2625
2626 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2627 (encode_coding_object): Use SPECPDL_INDEX.
2628 (syms_of_coding): Use DOS_NT.
2629
2630 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2631
2632 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2633
2634 Make the function member of Lisp_Subr use standard C prototypes.
2635 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2636 (DECL_ALIGN): Add a cast for the function.
2637 * eval.c (Feval, Ffuncall): Use the proper type for each type
2638 function call.
2639
2640 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
2641
2642 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2643 fringe face id, so face-remapping-alist works (Bug#6091).
2644
2645 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
2646
2647 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2648 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2649 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2650
2651 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2652
2653 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2654 * lisp.h: Declare x_get_keysym_name.
2655 * keyboard.c (modify_event_symbol): Don't declare
2656 x_get_keysym_name here.
2657
2658 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2659
2660 * ecrt0.c: Revert conversion to standard C.
2661
2662 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2663
2664 * vm-limit.c (memory_warnings):
2665 * keyboard.c (modify_event_symbol):
2666 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2667 (round2, emacs_rint):
2668 * process.c (send_process, old_sigpipe): Convert function
2669 definitions and declarations to standard C.
2670
2671 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
2672
2673 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2674 * xdisp.c: Convert function definitions to standard C.
2675
2676 * cm.c (cmputc): Arg C is now int, not char.
2677 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2678
2679 2010-07-05 James Cloos <cloos@jhcloos.com>
2680
2681 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2682
2683 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2684 _NET_WM_ICON_NAME atoms.
2685
2686 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2687 and _NET_WM_ICON_NAME properties, too, matching what is
2688 done in the Gtk+ case.
2689
2690 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2691
2692 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2693
2694 * xsmfns.c (SSDATA): New macro.
2695 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2696 passed to strlen/strcpy/strcat.
2697 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2698 7:th arg to XChangeProperty to (unsigned char *)
2699
2700 * xsettings.c (something_changedCB, parse_settings)
2701 (apply_xft_settings): Reformat prototype.
2702 (something_changedCB, init_gconf): Remove unused variable i.
2703 (read_settings): Remove unused variable long_len.
2704
2705 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2706 (xg_get_image_for_pixmap, create_dialog)
2707 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2708 (menuitem_highlight_callback, make_menu_item)
2709 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2710 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2711 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2712 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2713 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2714 (xg_tool_bar_item_expose_callback): Reformat prototype.
2715 (xg_update_menubar): GList *group => GSList *group.
2716 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2717 before use.
2718 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2719 to GTK_IMAGE (wimage).
2720
2721 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2722
2723 * atimer.c: Use "" instead of <> for local includes for
2724 consistency with the rest of the code.
2725
2726 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2727 * xrdb.c (get_system_name):
2728 * window.c (shrink_windows):
2729 * syntax.c (forw_comment):
2730 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2731 (ins_del_costs):
2732 * mem-limits.h (start_of_data):
2733 * lread.c (readevalloop):
2734 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2735 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2736 * frame.c (x_get_focus_frame):
2737 * floatfns.c (fmod_float):
2738 * fileio.c (choose_write_coding_system):
2739 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2740 (malloc_initialize_hook, sort_args, synchronize_locale):
2741 * doprnt.c (doprnt):
2742 * dired.c (compile_pattern):
2743 * data.c (fmod_float):
2744 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2745 (map_char_table_for_charset):
2746 * charset.c (define_charset_internal):
2747 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2748 to standard C.
2749
2750 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
2751 Stefan Monnier <monnier@iro.umontreal.ca>
2752
2753 * lread.c (read1): Fix up last change to not mess up `c'.
2754
2755 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2756
2757 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2758
2759 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
2760
2761 Fix prototypes.
2762
2763 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
2764 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
2765 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2766 arg, as required by internal_condition_case_1.
2767 * print.c (strout): Use const char* for arg PTR.
2768 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2769 (analyse_first): Fix "const const".
2770 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
2771 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
2772 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2773
2774 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2775
2776 * alloc.c: Convert function definitions to standard C.
2777 * atimer.c:
2778 * bidi.c:
2779 * bytecode.c:
2780 * callint.c:
2781 * callproc.c:
2782 * casefiddle.c:
2783 * casetab.c:
2784 * category.c:
2785 * ccl.c:
2786 * character.c:
2787 * charset.c:
2788 * chartab.c:
2789 * cmds.c:
2790 * coding.c:
2791 * composite.c:
2792 * data.c:
2793 * dbusbind.c:
2794 * dired.c:
2795 * dispnew.c:
2796 * doc.c:
2797 * doprnt.c:
2798 * ecrt0.c:
2799 * editfns.c:
2800 * fileio.c:
2801 * filelock.c:
2802 * filemode.c:
2803 * fns.c:
2804 * font.c:
2805 * fontset.c:
2806 * frame.c:
2807 * fringe.c:
2808 * ftfont.c:
2809 * ftxfont.c:
2810 * gtkutil.c:
2811 * indent.c:
2812 * insdel.c:
2813 * intervals.c:
2814 * keymap.c:
2815 * lread.c:
2816 * macros.c:
2817 * marker.c:
2818 * md5.c:
2819 * menu.c:
2820 * minibuf.c:
2821 * prefix-args.c:
2822 * print.c:
2823 * ralloc.c:
2824 * regex.c:
2825 * region-cache.c:
2826 * scroll.c:
2827 * search.c:
2828 * sound.c:
2829 * strftime.c:
2830 * syntax.c:
2831 * sysdep.c:
2832 * termcap.c:
2833 * terminal.c:
2834 * terminfo.c:
2835 * textprop.c:
2836 * tparam.c:
2837 * undo.c:
2838 * unexelf.c:
2839 * window.c:
2840 * xfaces.c:
2841 * xfns.c:
2842 * xfont.c:
2843 * xftfont.c:
2844 * xgselect.c:
2845 * xmenu.c:
2846 * xrdb.c:
2847 * xselect.c:
2848 * xsettings.c:
2849 * xsmfns.c:
2850 * xterm.c: Likewise.
2851
2852 2010-07-03 Eli Zaretskii <eliz@gnu.org>
2853
2854 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2855 frames other than the initial one. Fix reversal of colors when
2856 `reverse' is specified in the frame parameters. Call
2857 update_face_from_frame_parameter instead of
2858 internal-set-lisp-face-attribute. Initialize screen colors from
2859 initial_screen_colors[] when f->default_face_done_p is zero,
2860 instead of depending on being called with default-frame-alist as
2861 the alist argument.
2862
2863 * xfaces.c (update_face_from_frame_parameter): Move out of
2864 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2865 with HAVE_WINDOW_SYSTEM.
2866
2867 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2868 to menu-bar-mode, if not set in the frame parameters or in
2869 default-frame-alist.
2870
2871 * w32console.c (sys_tputs): Adjust argument list to prototype in
2872 term.c.
2873
2874 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
2875
2876 * lisp.h (memory_warnings): Fix prototype.
2877
2878 * cm.h (evalcost): Fix prototype.
2879
2880 * cm.c (evalcost): Fix arg type.
2881
2882 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2883
2884 * term.c (term_clear_mouse_face, Fidentity):
2885 * syssignal.h (signal_handler_t):
2886 * lisp.h (memory_warnings):
2887 * coding.h (preferred_coding_system):
2888 * cm.h (evalcost):
2889 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2890
2891 2010-07-02 Eli Zaretskii <eliz@gnu.org>
2892
2893 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2894 from prototypes.
2895
2896 * msdos.h (load_pixmap): Don't define away.
2897
2898 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2899
2900 * lisp.h:
2901 * atimer.h: Remove define for P_.
2902
2903 * alloc.c: Remove __P and P_ from .c and .m files.
2904 * atimer.c:
2905 * buffer.c:
2906 * callint.c:
2907 * category.c:
2908 * charset.c:
2909 * chartab.c:
2910 * cm.c:
2911 * coding.c:
2912 * composite.c:
2913 * data.c:
2914 * dired.c:
2915 * dispnew.c:
2916 * doc.c:
2917 * editfns.c:
2918 * emacs.c:
2919 * eval.c:
2920 * fileio.c:
2921 * filelock.c:
2922 * fns.c:
2923 * font.c:
2924 * fontset.c:
2925 * frame.c:
2926 * ftfont.c:
2927 * ftxfont.c:
2928 * gmalloc.c:
2929 * gtkutil.c:
2930 * image.c:
2931 * indent.c:
2932 * intervals.c:
2933 * keyboard.c:
2934 * keymap.c:
2935 * lread.c:
2936 * marker.c:
2937 * menu.c:
2938 * minibuf.c:
2939 * print.c:
2940 * process.c:
2941 * scroll.c:
2942 * search.c:
2943 * sound.c:
2944 * strftime.c:
2945 * syntax.c:
2946 * sysdep.c:
2947 * term.c:
2948 * terminal.c:
2949 * textprop.c:
2950 * unexalpha.c:
2951 * w32console.c:
2952 * w32fns.c:
2953 * w32font.c:
2954 * w32menu.c:
2955 * w32term.c:
2956 * w32uniscribe.c:
2957 * window.c:
2958 * xdisp.c:
2959 * xfaces.c:
2960 * xfns.c:
2961 * xfont.c:
2962 * xftfont.c:
2963 * xmenu.c:
2964 * xselect.c:
2965 * xterm.c: Likewise.
2966
2967 Remove P_ and __P macros.
2968 * atimer.h: Remove P_ and __P macros.
2969 * buffer.h:
2970 * category.h:
2971 * ccl.h:
2972 * character.h:
2973 * charset.h:
2974 * cm.h:
2975 * coding.h:
2976 * composite.h:
2977 * dispextern.h:
2978 * disptab.h:
2979 * dosfns.h:
2980 * font.h:
2981 * fontset.h:
2982 * frame.h:
2983 * gtkutil.h:
2984 * indent.h:
2985 * intervals.h:
2986 * keyboard.h:
2987 * keymap.h:
2988 * lisp.h:
2989 * macros.h:
2990 * md5.h:
2991 * menu.h:
2992 * msdos.h:
2993 * nsterm.h:
2994 * puresize.h:
2995 * region-cache.h:
2996 * syntax.h:
2997 * syssignal.h:
2998 * systime.h:
2999 * termhooks.h:
3000 * w32font.h:
3001 * w32term.h:
3002 * widget.h:
3003 * window.h:
3004 * xgselect.h:
3005 * xsettings.h:
3006 * xterm.h: Likewise.
3007
3008 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3009
3010 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3011
3012 Cleanup old code.
3013 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3014 * syssignal.h: Remove code for Lynx, not supported anymore.
3015 * vm-limit.c: Remove unused code the depends on emacs not being
3016 defined and NO_LIM_DATA being defined.
3017 * mem-limits.h: Remove dead code.
3018
3019 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3022
3023 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3024 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3025
3026 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3027 parameters, they are already absolute.
3028
3029 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3030 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
3031
3032 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3033
3034 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3035 Update FRAME_TOOLBAR_HEIGHT.
3036
3037 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3038 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
3039
3040 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
3041
3042 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3043 check default-frame-alist.
3044
3045 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3046
3047 * process.c (create_process): Avoid using invalid file descriptors.
3048
3049 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3050
3051 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3052
3053 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3054 Improve documentation. Return font regardless of use_system_font.
3055 (syms_of_xsettings): Improve documentation for font-use-system-font.
3056
3057 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3058
3059 * xfaces.c (realize_face): Garbage the frame if a face is removed
3060 (Bug#6593).
3061
3062 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3063
3064 * keyboard.c: Remove duplicate <setjmp.h>.
3065 (read_key_sequence): Remove volatile qualifiers.
3066
3067 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3068
3069 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3070 (struct glyph_row): New members left_fringe_offset and
3071 right_fringe_offset.
3072
3073 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3074 specially.
3075 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3076 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3077
3078 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
3079 Take account of bitmap offset.
3080 (draw_window_fringes): Take account of window vscroll.
3081 (update_window_fringes): Likewise. Extend top-aligned top indicator
3082 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3083 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3084 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3085
3086 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3087
3088 * w32fns.c (Qtooltip): Declare.
3089 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3090
3091 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3092
3093 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3094 grab on just Press (Bug#6499).
3095
3096 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
3097
3098 * frame.c (Qtooltip): New var.
3099 (delete_frame): Use it. Fix faulty if statement. Don't update
3100 mode line for tooltip frames. Suggested by Martin Rudalics.
3101
3102 * xfns.c (x_create_tip_frame):
3103 * w32fns.c (x_create_tip_frame): Use it.
3104
3105 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
3106
3107 * xftfont.c (xftfont_open): Check font width one by one also when
3108 spacing is dual.
3109
3110 * ftfont.c (ftfont_open): Ditto.
3111
3112 2010-06-30 Glenn Morris <rgm@gnu.org>
3113
3114 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3115
3116 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3117
3118 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3119 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3120 * s/darwin.h (SYSTEM_MALLOC):
3121 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3122
3123 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3124
3125 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3126 (ns_get_screen): Don't assign integer to f.
3127 (Fx_display_color_cells): Declarations before statements.
3128
3129 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3130
3131 * xfns.c (x_default_font_parameter): Remove got_from_system
3132 (Bug#6526).
3133
3134 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3135 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3136 defines based on what configure finds.
3137
3138 * xterm.c (XTflash): Use gtk_widget_get_window.
3139 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3140 gtk_adjustment_get_page_size.
3141 (handle_one_xevent): Use gtk_widget_get_mapped.
3142 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3143 messages.
3144
3145 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3146
3147 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3148 HAVE_GTK_FILE_SELECTION_NEW.
3149
3150 * gtkutil.c (xg_display_open, xg_display_close): Remove
3151 HAVE_GTK_MULTIDISPLAY, it is always defined.
3152 (xg_display_open): Return type is void.
3153 (gtk_widget_set_has_window)
3154 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3155 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3156 (gtk_adjustment_set_page_increment)
3157 (gtk_adjustment_get_step_increment): #define these if not found
3158 by configure.
3159 (remove_submenu): New define based on Gtk+ version.
3160 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3161 gtk_widget_get_window.
3162 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3163 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3164 (create_dialog): Use gtk_dialog_get_action_area and
3165 gtk_dialog_get_content_area.
3166 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3167 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3168 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3169 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3170 g_object_ref and g_object_unref.
3171 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3172 gtk_widget_get_sensitive.
3173 (xg_update_submenu): Use remove_submenu.
3174 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3175 properties instead to get old x and y position.
3176 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3177 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
3178 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
3179 (xg_get_tool_bar_widgets): New function.
3180 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3181 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3182 (toolbar_set_orientation): New #define based on if configure
3183 finds gtk_orientable_set_orientation.
3184 (xg_create_tool_bar): Call toolbar_set_orientation.
3185 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3186 instead of gtk_box_pack_start_defaults.
3187
3188 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
3189
3190 * cmds.c (Fdelete_backward_char): Move into Lisp.
3191
3192 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3193
3194 * s/freebsd.h (BSD4_2): Remove redundant definition.
3195 bsd-common.h defines it already.
3196
3197 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
3198
3199 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3200 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3201 tool-bar-mode, which are now set using these X resources at
3202 startup, to determine the defaults (Bug#2249).
3203
3204 * w32fns.c (Fx_create_frame):
3205 * nsfns.m (Fx_create_frame): Likewise.
3206
3207 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3208
3209 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
3210
3211 * gtkutil.c (xg_update_scrollbar_pos):
3212 Avoid C99 mid-block variable declaration.
3213
3214 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3215
3216 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3217
3218 * gtkutil.h (xg_show_scroll_bar): Remove.
3219
3220 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3221 if height is less than scroll bar min size.
3222 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3223
3224 * xfns.c (x_default_font_parameter): Try to open font from system
3225 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3226
3227 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
3228
3229 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3230
3231 2010-06-20 Eli Zaretskii <eliz@gnu.org>
3232
3233 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3234 most-positive-fixnum, be extra accurate when scrolling window
3235 start, to avoid missing the cursor line.
3236
3237 2010-06-19 Eli Zaretskii <eliz@gnu.org>
3238
3239 * xdisp.c (try_scrolling): Compute the limit for searching point
3240 in forward scroll from scroll_max, instead of an arbitrary limit
3241 of 10 screen lines. See
3242 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3243 and
3244 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3245 for details.
3246
3247 2010-06-16 Glenn Morris <rgm@gnu.org>
3248
3249 * editfns.c (Fbyte_to_string): Pacify compiler.
3250
3251 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3252
3253 * lread.c (read1): Phase out old-style backquotes a bit more.
3254
3255 2010-06-12 Eli Zaretskii <eliz@gnu.org>
3256
3257 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3258 bidimirror.h.
3259
3260 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3261
3262 * bidi.c (bidi_initialize): Remove explicit initialization of
3263 bidi_type_table; include biditype.h instead. Don't support
3264 entries whose second codepoint is zero. Initialize bidi_mirror_table.
3265 (bidi_mirror_char): Use bidi_mirror_table.
3266
3267 * biditype.h: New file.
3268
3269 * bidimirror.h: New file.
3270
3271 * window.c (syms_of_window): Doc fix (bug#6409).
3272
3273 2010-06-12 Romain Francoise <romain@orebokech.com>
3274
3275 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3276 ediff-hook.
3277
3278 2010-06-10 Glenn Morris <rgm@gnu.org>
3279
3280 * editfns.c (Fbyte_to_string): Pacify compiler.
3281
3282 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3283
3284 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3285
3286 * alloc.c (Fmake_byte_code): Don't access undefined argument
3287 (Bug#6517).
3288
3289 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
3290
3291 * xdisp.c (next_element_from_image): Ensure that after-strings are
3292 read the next time we hit handle_stop (Bug#1336).
3293
3294 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3295
3296 * lread.c (read1): Signal error if #s is not followed by paren.
3297
3298 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
3299
3300 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3301
3302 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3303
3304 2010-06-15 Glenn Morris <rgm@gnu.org>
3305
3306 * editfns.c (Fbyte_to_string): Pacify compiler.
3307
3308 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3309
3310 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3311 Check `object's type before accessing its guts.
3312
3313 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3314
3315 * s/usg5-4.h: Fix previous change.
3316 Suggested by Lawrence Mitchell <wence@gmx.li>
3317
3318 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3319
3320 * minibuf.c (Fall_completions): Add more checks.
3321
3322 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
3323
3324 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3325
3326 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3327
3328 * lread.c (X_OK): Remove, unused.
3329
3330 * dispnew.c: Remove obsolete comment.
3331
3332 Remove INCLUDED_FCNTL.
3333 * xterm.c (INCLUDED_FCNTL):
3334 * callproc.c (INCLUDED_FCNTL):
3335 * alloc.c (INCLUDED_FCNTL):
3336 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3337 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3338
3339 2010-06-07 Martin Rudalics <rudalics@gmx.at>
3340
3341 * window.c (Fselect_window): Move `record_buffer' up to the
3342 beginning of this function, so the buffer gets recorded
3343 even if the selected window does not change.
3344 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3345
3346 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
3347
3348 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3349 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3350
3351 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3352
3353 Remove BSTRING related code, all platforms define it.
3354 * s/usg5-4.h (BSTRING): Remove definition.
3355 * s/template.h (BSTRING):
3356 * s/msdos.h (BSTRING):
3357 * s/ms-w32.h (BSTRING):
3358 * s/hpux10-20.h (BSTRING):
3359 * s/gnu-linux.h (BSTRING):
3360 * s/darwin.h (BSTRING):
3361 * s/cygwin.h (BSTRING):
3362 * s/bsd-common.h (BSTRING):
3363 * s/aix4-2.h (BSTRING): Likewise.
3364 * sysdep.c: Remove code depending on BSTRING not being defined.
3365
3366 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
3367
3368 Remove obsolete macro BASE_LEADING_CODE_P.
3369 * character.h (BASE_LEADING_CODE_P): Remove.
3370 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3371 * buffer.c (Fset_buffer_multibyte):
3372 * indent.c (scan_for_column, compute_motion):
3373 * insdel.c (count_combining_before, count_combining_after):
3374 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3375
3376 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
3377
3378 Turn `directory-sep-char' into a noop.
3379
3380 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3381 (DIRECTORY_SEP): Define unconditionally.
3382
3383 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3384
3385 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3386 call dostounix_filename directly.
3387
3388 * fileio.c (CORRECT_DIR_SEPS): Remove.
3389 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3390 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3391 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3392 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3393
3394 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3395 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3396
3397 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3398
3399 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3400 (Bug#6346)
3401
3402 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3403
3404 * ccl.c (Fccl_program_p): Fix typo in docstring.
3405
3406 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3407
3408 Move UNEXEC definition to autoconf.
3409 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3410 * s/sol2-10.h (UNEXEC):
3411 * s/irix6-5.h (UNEXEC):
3412 * s/hpux10-20.h (UNEXEC):
3413 * s/gnu-linux.h (UNEXEC):
3414 * s/darwin.h (UNEXEC):
3415 * s/cygwin.h (UNEXEC):
3416 * s/bsd-common.h (UNEXEC):
3417 * s/aix4-2.h (UNEXEC):
3418 * m/alpha.h (UNEXEC): Likewise.
3419 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3420
3421 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
3422
3423 Remove obsolete pre-unicode2 macros.
3424 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3425 * composite.c (composition_reseat_it):
3426 * data.c (Faset):
3427 * fns.c (Ffillarray):
3428 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3429 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3430
3431 2010-06-03 Juri Linkov <juri@jurta.org>
3432
3433 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3434 (Fswitch_to_buffer): Remove unused variable `err'.
3435
3436 2010-06-03 Glenn Morris <rgm@gnu.org>
3437
3438 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3439
3440 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3441 now that AH_BOTTOM does it.
3442
3443 * m/hp800.h (HAVE_ALLOCA):
3444 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3445
3446 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3447 Remove NOT_C_CODE tests, it is always true now.
3448
3449 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3450
3451 Fix config.h includes.
3452 * xsettings.c:
3453 * xgselect.c:
3454 * nsterm.m:
3455 * nsselect.m:
3456 * nsimage.m:
3457 * nsfont.m:
3458 * nsfns.m:
3459 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3460 other files do.
3461
3462 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3463
3464 * s/sol2-6.h: Remove obsolete comments.
3465
3466 Remove unnecessary alloca.h includes.
3467 * keymap.c: Do not include alloca.h, config.h does that.
3468 * sysdep.c: Likewise. Do not define fwrite, not used.
3469
3470 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3471
3472 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3473 the HAVE_TERMIO where it belongs (bug#6149).
3474
3475 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3476
3477 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3478 of bug#6305).
3479
3480 2010-05-30 Eli Zaretskii <eliz@gnu.org>
3481
3482 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3483 state is always cached (bug#6306).
3484
3485 2010-05-29 Eli Zaretskii <eliz@gnu.org>
3486
3487 Fix cursor motion in bidi-reordered continued lines.
3488 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3489 only after finding point's row. Fix the logic. Rewrite the loop
3490 over continuation lines in bidi-reordered buffers. Return
3491 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3492 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3493
3494 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
3495
3496 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3497
3498 2010-05-28 Kenichi Handa <handa@m17n.org>
3499
3500 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3501 Don't sheck SPEC if it is nil.
3502 (font_list_entities): Call font_delete_unmatched if
3503 Vface_ignored_fonts is non-nil. (Bug#6287)
3504
3505 2010-05-28 Glenn Morris <rgm@gnu.org>
3506
3507 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3508
3509 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3510
3511 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3512 whether to trash.
3513 (internal_delete_file, Frename_file): Callers changed.
3514 (delete_by_moving_to_trash): Doc fix.
3515 (Fdelete_directory_internal): Don't move to trash.
3516
3517 * callproc.c (delete_temp_file):
3518 * buffer.c (Fkill_buffer): Callers changed.
3519
3520 * lisp.h: Update prototype.
3521
3522 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
3523
3524 * xdisp.c (redisplay_window): After redisplay, check if point is
3525 still valid before setting it (Bug#6177).
3526
3527 2010-05-27 Glenn Morris <rgm@gnu.org>
3528
3529 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3530 Convert comments to Makefile format.
3531
3532 * Makefile.in (bootstrap-clean): No more Makefile.c.
3533
3534 2010-05-26 Glenn Morris <rgm@gnu.org>
3535
3536 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3537 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3538
3539 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3540 Remove.
3541 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3542
3543 2010-05-26 Kenichi Handa <handa@m17n.org>
3544
3545 * composite.c (composition_compute_stop_pos): Fix condition for
3546 backward scanning.
3547
3548 2010-05-25 Glenn Morris <rgm@gnu.org>
3549
3550 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3551 Move before TEMACS_LDFLAGS.
3552 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3553 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3554
3555 * Makefile.in (NOT_C_CODE): No longer define.
3556 (config.h): No longer include.
3557
3558 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3559 variables it may reference.
3560
3561 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3562 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3563
3564 2010-05-25 Kenichi Handa <handa@m17n.org>
3565
3566 * dispextern.h (struct composition_it): New members rule_idx and
3567 charpos.
3568
3569 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3570 that the character positions of IT point the last character of the
3571 current grapheme cluster.
3572 (next_element_from_composition): Don't change character positions
3573 of IT.
3574 (append_composite_glyph): Set glyph->charpos to
3575 it->cmp_it.charpos.
3576
3577 * composite.c (autocmp_chars): Change the first argument to RULE,
3578 and try composition with RULE only.
3579 (composition_compute_stop_pos): Record the index number of the
3580 composition rule in CMP_IT->rule_idx.
3581 (composition_reseat_it): Call autocmp_chars repeatedly until the
3582 correct rule of the composition is found.
3583 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3584 is at the last character of the current grapheme cluster when
3585 CMP_IT->reversed_p is nonzero.
3586
3587 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3588
3589 * editfns.c (Fbyte_to_string): New function.
3590
3591 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3592
3593 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3594 Suggested by Masatake YAMATO <yamato@redhat.com>.
3595
3596 2010-05-23 Eli Zaretskii <eliz@gnu.org>
3597
3598 * dispextern.h (init_iterator): Sync prototype with changed definition.
3599
3600 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3601
3602 * s/netbsd.h: If terminfo is found, use it in preference to
3603 termcap. (Bug#6190) [Backport from trunk]
3604
3605 2010-05-19 Eli Zaretskii <eliz@gnu.org>
3606
3607 Redesign and reimplement bidi-aware edge positions of glyph rows.
3608
3609 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3610 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3611 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3612 and maxpos members instead of start.pos and end.pos, respectively.
3613
3614 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3615 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3616 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
3617 (try_window_reusing_current_matrix, try_window_id):
3618 Use ROW->minpos rather than ROW->start.pos.
3619 (init_from_display_pos, init_iterator): Use EMACS_INT for
3620 character and byte positions.
3621 (find_row_edges): Rename from find_row_end. Accept additional
3622 arguments for minimum and maximum buffer positions seen by
3623 display_line for this row. Don't use iterator to find the
3624 position following the maximum one; instead, increment the
3625 position found by display_line directly. Fix logic; eol_pos
3626 should be tested before the rest. Handle the case of characters
3627 delivered from display vector (bug#6036). Fix tests related to
3628 it->method. Handle the truncated_on_right_p rows.
3629 (RECORD_MAX_MIN_POS): New macro.
3630 (display_line): Use it to record the minimum and maximum buffer
3631 positions for glyphs in the row being assembled. Record the
3632 position of the newline that terminates the line. If word wrap is
3633 in effect, restore minimum and maximum positions seen up to the
3634 wrap point, when iterator returns to it.
3635 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3636 row and cursor not already at point. Restore original pre-bidi
3637 code for unidirectional buffers.
3638
3639 * dispnew.c (increment_row_positions, check_matrix_invariants):
3640 Increment and check row->start.pos and row->end.pos, in addition
3641 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3642
3643 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3644 Display truncated_on_left_p and truncated_on_right_p flags.
3645 Formatting fixes.
3646 (pmtxrows): Display the ordinal number of each row. Don't display
3647 rows beyond the last one.
3648
3649 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3650 it is not copied by bidi_copy_it.
3651
3652 2010-05-22 Eli Zaretskii <eliz@gnu.org>
3653
3654 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3655 (Bug#6237)
3656
3657 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * image.c (Fimage_flush): Rename from image-refresh.
3660
3661 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
3662
3663 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3664 just one window.
3665
3666 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3667 (clear_image_cache): If the number of cached images is unusually
3668 large, decrease the cache eviction delay (Bug#6230).
3669
3670 2010-05-21 Glenn Morris <rgm@gnu.org>
3671
3672 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3673 Move these rules to ns.mk.
3674 * ns.mk: New file.
3675
3676 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3677
3678 * Makefile.in (CANNOT_DUMP): New, set by configure.
3679 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3680
3681 2010-05-20 Juri Linkov <juri@jurta.org>
3682
3683 * fileio.c (Fdelete_file): Change interative spec to use
3684 `read-file-name' like in `find-file-read-args' where the default
3685 value is `default-directory' instead of `buffer-file-name'.
3686 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3687
3688 2010-05-20 Kevin Ryde <user42@zip.com.au>
3689
3690 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3691 (Voverriding_terminal_local_map, Vsystem_key_alist)
3692 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3693
3694 2010-05-20 Glenn Morris <rgm@gnu.org>
3695
3696 * Makefile.in (DEPDIR): New constant.
3697 (DEPFLAGS): Set with configure, not cpp.
3698 (MKDEPDIR): New, set by configure.
3699 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3700 (clean): Use $DEPDIR.
3701 (deps_frag): Include from configure.
3702 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3703 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3704
3705 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3706 reallocation of the cache. (Bug#6210)
3707
3708 2010-05-19 Glenn Morris <rgm@gnu.org>
3709
3710 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3711
3712 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3713 (GNULIB_VAR): Remove.
3714 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3715
3716 * m/ibms390x.h (LINKER):
3717 * m/macppc.h (LINKER) [GNU_LINUX]:
3718 * s/aix4-2.h (ORDINARY_LINK):
3719 * s/cygwin.h (LINKER):
3720 * s/darwin.h (ORDINARY_LINK):
3721 * s/gnu.h (ORDINARY_LINK):
3722 * s/netbsd.h (LINKER):
3723 * s/usg5-4.h (ORDINARY_LINK):
3724 Move to configure.
3725
3726 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3727
3728 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
3729
3730 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3731 prevent stack overflow if number of arguments is too large
3732 (Bug#6214).
3733
3734 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
3735
3736 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3737
3738 2010-05-18 Glenn Morris <rgm@gnu.org>
3739
3740 * s/gnu-linux.h: Combine two conditionals.
3741
3742 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
3743 $(POST_ALLOC_OBJ).
3744
3745 * Makefile.in (RALLOC_OBJ): New, set by configure.
3746 (rallocobj): Replace with the previous variable.
3747 (otherobj): Use $RALLOC_OBJ.
3748
3749 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3750 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3751
3752 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3753 (gmallocobj, vmlimitobj): Replace with previous two variables.
3754 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3755
3756 2010-05-17 Glenn Morris <rgm@gnu.org>
3757
3758 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3759 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3760
3761 2010-05-16 Glenn Morris <rgm@gnu.org>
3762
3763 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3764
3765 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3766
3767 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3768 trailing "/".
3769
3770 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3771 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3772
3773 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3774 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3775 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3776 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3777 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3778
3779 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3780 Remove ${STARTFLAGS}, nothing ever sets it.
3781
3782 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3783
3784 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3785
3786 2010-05-16 Glenn Morris <rgm@gnu.org>
3787
3788 * Makefile.in (LIBX_BASE): Always define.
3789
3790 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3791
3792 * Makefile.in (LIBXT): Always define.
3793
3794 2010-05-15 Glenn Morris <rgm@gnu.org>
3795
3796 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
3797
3798 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3799 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3800
3801 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
3802
3803 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
3804 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3805
3806 * emacs.c (main): Initialize initial-environment and
3807 process-environment before generating from env, not after.
3808
3809 Handle --version reasonably in CANNOT_DUMP configuration.
3810 * emacs.c (emacs_version, emacs_copyright): New string variables.
3811 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3812 (syms_of_emacs): Defvar them, and initialize them from the C
3813 string variables.
3814 (main): If initialization hasn't been done, print initial version
3815 info from the C strings, instead of starting an interactive session.
3816
3817 2010-05-15 Eli Zaretskii <eliz@gnu.org>
3818
3819 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3820 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
3821 (bidi_paragraph_init): Remove redundant assertion that we are at
3822 the beginning of a line after call to bidi_find_paragraph_start.
3823
3824 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3825 (syms_of_xdisp): Defsubr it.
3826
3827 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3828
3829 * Makefile.in: Fix MSDOS-related comments.
3830
3831 2010-05-15 Glenn Morris <rgm@gnu.org>
3832
3833 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3834 (really-lwlib, really-oldXMenu): Always define.
3835 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3836
3837 * Makefile.in: Simplify cpp conditional.
3838
3839 * Makefile.in (${ns_appdir}): Simplify using umask.
3840
3841 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3842
3843 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3844
3845 * eval.c (specbind): Remove left-over duplicate test.
3846 Disallow let-binding frame-local vars. Add comment.
3847
3848 2010-05-14 Eli Zaretskii <eliz@gnu.org>
3849
3850 Make the cache of bidi iterator states dynamically allocated.
3851 * bidi.c (bidi_cache_shrink): New function.
3852 (bidi_init_it): Call it.
3853 (bidi_cache_iterator_state): Enlarge the cache if needed.
3854
3855 * bidi.c (bidi_move_to_visually_next): Rename from
3856 bidi_get_next_char_visually. All callers changed.
3857
3858 2010-05-14 Kenichi Handa <handa@m17n.org>
3859
3860 * dispextern.h (struct composition_it): New member reversed_p.
3861
3862 * composite.c (composition_compute_stop_pos): Search backward if
3863 ENDPOS < CHARPOS.
3864 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3865 Set CMP_IT->reversed_p.
3866 (composition_update_it): Pay attention to CMP_IT->reversed_p.
3867
3868 * xdisp.c (set_iterator_to_next):
3869 Call composition_compute_stop_pos with negative ENDPOS if we are
3870 scanning backward. Call composition_compute_stop_pos if scan
3871 direction is changed.
3872 (next_element_from_buffer): Call composition_compute_stop_pos with
3873 negative ENDPOS if we are scanning backward.
3874 (next_element_from_composition): Pay attention to
3875 IT->cmp_it.reversed_p.
3876
3877 2010-05-14 Kenichi Handa <handa@m17n.org>
3878
3879 * font.c (font_range): Return the range for the font found at first.
3880
3881 2010-05-14 Glenn Morris <rgm@gnu.org>
3882
3883 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3884
3885 * Makefile.in (mktime, X11, register): Move undefs to configure.
3886
3887 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3888 (MSDOS_X_OBJ): New variable.
3889 (MSDOS_SUPPORT_REAL): New constant.
3890 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3891 (obj): Use MSDOS_X_OBJ.
3892 (lisp): Use MSDOS_SUPPORT as a variable.
3893
3894 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3895 (GPM_MOUSE_SUPPORT): Now it's a constant.
3896 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3897 not cpp.
3898
3899 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
3900 (ns_appresdir): Remove, unused.
3901
3902 * Makefile.in (SHELL): Move outside cpp section.
3903
3904 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3905
3906 2010-05-13 Glenn Morris <rgm@gnu.org>
3907
3908 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3909 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3910
3911 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3912 HAVE_WINDOW_SYSTEM must be too.
3913
3914 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3915 (lisp): Remove WINNT_SUPPORT.
3916
3917 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3918 Let configure set these variables (to empty) in this case as well.
3919
3920 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3921 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3922
3923 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3924 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3925 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3926 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3927 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
3928 the values output by configure.
3929 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3930
3931 2010-05-12 Glenn Morris <rgm@gnu.org>
3932
3933 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3934 (LINKER_WAS_SPECIFIED): Remove.
3935
3936 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3937 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3938 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3939 * s/cygwin.h (LIB_GCC):
3940 * s/freebsd.h (LIB_GCC):
3941 * s/gnu-linux.h (LIB_GCC):
3942 * s/msdos.h (LIB_GCC):
3943 * s/netbsd.h (LIB_GCC):
3944 Move to configure.
3945
3946 2010-05-11 Karel Klic <kklic@redhat.com>
3947
3948 * ftfont.c: Fix incorrect parentheses of #if condition for
3949 definining M17N_FLT_USE_NEW_FEATURE.
3950
3951 2010-05-11 Glenn Morris <rgm@gnu.org>
3952
3953 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3954 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3955
3956 2010-05-10 Eli Zaretskii <eliz@gnu.org>
3957
3958 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3959 unibyte buffers. See
3960 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3961
3962 2010-05-10 Glenn Morris <rgm@gnu.org>
3963
3964 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3965 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3966 (LIBES): Use LIBS_SYSTEM as a variable.
3967 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3968 * s/aix4-2.h (LIBS_SYSTEM):
3969 * s/freebsd.h (LIBS_SYSTEM):
3970 * s/hpux10-20.h (LIBS_SYSTEM):
3971 * s/sol2-6.h (LIBS_SYSTEM):
3972 * s/unixware.h (LIBS_SYSTEM):
3973 Move to configure.
3974
3975 * s/aix4-2.h (MAIL_USE_LOCKF):
3976 * s/bsd-common.h (MAIL_USE_FLOCK):
3977 * s/darwin.h (MAIL_USE_FLOCK):
3978 * s/gnu-linux.h (MAIL_USE_FLOCK):
3979 * s/irix6-5.h (MAIL_USE_FLOCK):
3980 * s/template.h (MAIL_USE_FLOCK):
3981 Move to configure.
3982
3983 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
3984
3985 * Version 23.2 released.
3986
3987 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
3988
3989 * composite.c (autocmp_chars): Save point as marker before calling
3990 auto-composition-function (Bug#5984).
3991
3992 * lisp.h (restore_point_unwind): Add prototype.
3993
3994 * fileio.c (restore_point_unwind): Remove static attribute.
3995
3996 2010-05-08 Kenichi Handa <handa@m17n.org>
3997
3998 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3999 new feature of libotf and m17n-flt.
4000 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4001 Call OTF_check_features even if no specific feature is given.
4002 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4003 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4004 that OUT is NULL. Use OTF_drive_gsub_with_log and
4005 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4006 OTF_drive_gpos.
4007 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
4008 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4009 Setup mflt_enable_new_feature and mflt_try_otf.
4010
4011 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4012
4013 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4014
4015 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4016 box and toolbar (Bug #6139).
4017 (xg_create_tool_bar): Remove comment (Bug #6139).
4018 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4019 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4020
4021 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
4022
4023 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4024 Update dependencies.
4025
4026 2010-05-08 Eli Zaretskii <eliz@gnu.org>
4027
4028 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4029 R2L lines.
4030
4031 2010-05-08 Glenn Morris <rgm@gnu.org>
4032
4033 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4034
4035 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4036 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4037 (termcapobj): Replace with TERMCAP_OBJ.
4038 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4039 (LIBES): Use LIBS_TERMCAP as a variable.
4040
4041 * s/freebsd.h (osreldate.h): No longer include, since this file
4042 does not use __FreeBSD_version any more.
4043
4044 * s/aix4-2.h (TERMINFO):
4045 * s/cygwin.h (TERMINFO):
4046 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4047 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4048 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4049 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4050 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4051 * s/irix6-5.h (TERMINFO):
4052 * s/netbsd.h (LIBS_TERMCAP):
4053 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4054 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4055 * s/usg5-4.h (TERMINFO):
4056 Move to configure.
4057
4058 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4059
4060 * eval.c (unbind_to): Don't unbind a local binding into the global
4061 binding when the local binding disappeared. Inversely, don't unbind
4062 a global binding into a newly created local binding.
4063 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4064 can specify the frame to use, when applicable. Adjust callers.
4065
4066 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
4067 Stefan Monnier <monnier@iro.umontreal.ca>
4068
4069 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4070
4071 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4072
4073 * w32fns.c: Include w32.h.
4074 (Fw32_shell_execute): Decode the error message before passing it
4075 to `error'. (Bug#6126)
4076
4077 * msdos.c (dos_set_window_size):
4078 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4079 instead of `XSYMBOL (foo)->value'.
4080
4081 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4082
4083 Fix the MS-DOS build, broken by autoconfiscation.
4084
4085 * Makefile.in: Don't use Make-style comments past the "start of
4086 cpp stuff" line.
4087 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4088
4089 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4090 edited directly by msdos/sed1v2.inp).
4091
4092 2010-05-07 Glenn Morris <rgm@gnu.org>
4093
4094 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4095 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4096 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4097 move out of cpp section.
4098 * s/freebsd.h (LD_SWITCH_SYSTEM):
4099 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4100 * s/netbsd.h (LD_SWITCH_SYSTEM):
4101 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4102
4103 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4104
4105 Define LIB_STANDARD and START_FILES using autoconf.
4106 * s/usg5-4.h (LIB_STANDARD):
4107 * s/netbsd.h (START_FILES):
4108 * s/irix6-5.h (LIB_STANDARD):
4109 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4110 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4111 * s/freebsd.h (START_FILES):
4112 * s/darwin.h (START_FILES):
4113 * s/cygwin.h (START_FILES):
4114 * s/aix4-2.h (LIB_STANDARD):
4115 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4116 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4117 autoconf, not cpp.
4118
4119 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4120
4121 Remove NEED_BSDTTY and NEED_UNISTD_H.
4122 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4123 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4124 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4125 <sys/ptyio.h> and <unistd.h>.
4126
4127 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4128
4129 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4130 * s/gnu.h (START_FILES): Remove empty definition.
4131
4132 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4133
4134 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4135
4136 2010-05-06 Glenn Morris <rgm@gnu.org>
4137
4138 * Makefile.in (CPP, LN_S): Remove unused variables.
4139
4140 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4141
4142 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4143
4144 2010-05-05 Lawrence Mitchell <wence@gmx.li>
4145
4146 * m/sparc.h: Fix typo in earlier change.
4147
4148 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4149
4150 Misc tweaks.
4151 * eval.c (Fdefvaralias): Remove unintended nested if.
4152 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4153
4154 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
4155
4156 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4157
4158 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4159
4160 Remove BSD_PGRPS.
4161 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4162 * s/gnu-linux.h (BSD_PGRPS): Remove.
4163 * term.c (dissociate_if_controlling_tty):
4164 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4165 (init_sys_modes, reset_sys_modes):
4166 * emacs.c (main):
4167 * callproc.c (Fcall_process, child_setup): Remove code depending
4168 on BSD_PGRPS.
4169
4170 Remove POSIX_SIGNALS.
4171 * s/usg5-4.h (POSIX_SIGNALS):
4172 * s/netbsd.h (POSIX_SIGNALS):
4173 * s/msdos.h (POSIX_SIGNALS):
4174 * s/ms-w32.h (POSIX_SIGNALS):
4175 * s/hpux11.h (POSIX_SIGNALS):
4176 * s/gnu.h (POSIX_SIGNALS):
4177 * s/gnu-linux.h (POSIX_SIGNALS):
4178 * s/freebsd.h (POSIX_SIGNALS):
4179 * s/darwin.h (POSIX_SIGNALS):
4180 * s/cygwin.h (POSIX_SIGNALS):
4181 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4182 * s/unixware.h:
4183 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4184 * process.c (create_process):
4185 * syssignal.h:
4186 * sysdep.c (wait_for_termination, init_signals):
4187 * process.c (create_process):
4188 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4189 remove all code that assumes the contrary.
4190
4191 2010-05-04 Glenn Morris <rgm@gnu.org>
4192
4193 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4194 variable.
4195 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4196 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4197 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4198 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4199 LD_SWITCH_SYSTEM_tmp.
4200 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4201 New variables, set by configure.
4202
4203 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4204 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4205 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4206 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4207 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4208
4209 * s/aix4-2.h (C_SWITCH_SYSTEM):
4210 * m/alpha.h (C_SWITCH_MACHINE):
4211 Move to configure.in.
4212 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4213 New variables, set by configure.
4214 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4215 $c_switch_machine and $c_switch_system.
4216
4217 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4218
4219 * s/hpux10-20.h (LIB_STANDARD): New definition.
4220 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4221 on it, not used anymore.
4222
4223 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
4224
4225 * eval.c (internal_condition_case_n): Rename from
4226 internal_condition_case_2.
4227 (internal_condition_case_2): New function.
4228
4229 * xdisp.c (safe_call): Use internal_condition_case_n.
4230
4231 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4232 (internal_delete_file, Frename_file): Callers changed.
4233
4234 * buffer.c (Fkill_buffer):
4235 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4236
4237 * lisp.h: Update prototypes.
4238
4239 2010-05-03 Glenn Morris <rgm@gnu.org>
4240
4241 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4242 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4243 (LIBXT): Set with configure, not cpp.
4244 (LIBX): Remove.
4245 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4246
4247 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4248
4249 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4250 The FreeBSD is not needed, the default works, Solaris version is
4251 not needed, and the remaining case is not supported by configure.
4252
4253 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4254
4255 * xsmfns.c (CHDIR_OPT): New define.
4256 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4257 restarting emacs.
4258
4259 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4260 shut_down_emacs.
4261
4262 * emacs.c (USAGE1): Mention --chdir.
4263 (main): Handle --chdir.
4264 (standard_args): Add --chdir.
4265 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4266 #5552).
4267
4268 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4269
4270 Remove LD_SWITCH_MACHINE.
4271 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4272 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4273
4274 Clean up IRIX code.
4275 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4276 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4277
4278 Clean up AIX code.
4279 * m/ibmrs6000.inp: Remove file, unused.
4280 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4281 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4282 definition ...
4283 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4284
4285 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4286 unused.
4287
4288 2010-05-01 Eli Zaretskii <eliz@gnu.org>
4289
4290 Emulate POSIX_SIGNALS on MS-Windows.
4291
4292 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4293 (SIG_SETMASK, SIG_UNBLOCK): Define.
4294
4295 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4296 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4297 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4298
4299 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4300 New stubs.
4301
4302 Miscellaneous fixes of bidi display.
4303
4304 * xdisp.c (find_row_end): New function, refactored from display_line.
4305 (display_line): Use it.
4306 (extend_face_to_end_of_line): In almost-filled rows, extend only
4307 if the row is R2L and not continued.
4308 (display_line): Fix prepending of truncation glyphs to R2L rows.
4309 Preserve overlay and string info in row->end.
4310 (insert_left_trunc_glyphs): Support addition of left truncation
4311 glyphs to R2L rows.
4312 (set_cursor_from_row): Don't place cursor on the vertical border
4313 glyph between adjacent windows. Fix a crash when a display string
4314 is continued to the next line. Don't return zero if cursor was
4315 found by `cursor' property of a display string.
4316 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4317 test for that explicitly.
4318
4319 2010-05-01 Glenn Morris <rgm@gnu.org>
4320
4321 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4322 for clarity.
4323 (OTHER_OBJ): Remove.
4324 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4325 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4326
4327 2010-05-01 Karel Klíč <kklic@redhat.com>
4328
4329 * fileio.c (Ffile_selinux_context): Context functions may return null.
4330
4331 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4332
4333 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
4334
4335 2010-04-30 Glenn Morris <rgm@gnu.org>
4336
4337 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4338 (OTHER_OBJ): Define as a separate variable, for clarity.
4339
4340 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4341
4342 * xsettings.c: include limits.h and update file comment.
4343
4344 2010-04-30 Glenn Morris <rgm@gnu.org>
4345
4346 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4347 Set with configure, not cpp.
4348 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4349
4350 * Makefile.in (mallocobj): Remove.
4351 (otherobj): Simplify using @OTHER_OBJ@.
4352
4353 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4354 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4355 Don't bother making nsgui.h dependency platform-specific.
4356
4357 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4358
4359 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4360
4361 * process.c (read_process_output, exec_sentinel): Don't burp if the
4362 sentinel/filter kills the current buffer (bug#6060).
4363
4364 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
4365 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4366 Remove unused var `args'.
4367 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4368 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4369 * doc.c (store_function_docstring): Use XSETCAR.
4370
4371 2010-04-28 Glenn Morris <rgm@gnu.org>
4372
4373 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4374 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4375
4376 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4377
4378 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4379 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4380
4381 * Makefile.in (FONT_OBJ): New, set by configure.
4382 (FONT_DRIVERS): Use $FONT_OBJ.
4383
4384 * Makefile.in (LIBXMU): Set with configure, not cpp.
4385 * s/aix4-2.h (LIBXMU):
4386 * s/hpux10-20.h (LIBXMU):
4387 Remove definition, now set in configure.
4388
4389 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4390
4391 * m/amdx86-64.h [i386]: Move this test to configure.in.
4392
4393 2010-04-27 Glenn Morris <rgm@gnu.org>
4394
4395 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4396 * s/unixware.h (NEED_LIBW): Remove definition.
4397
4398 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4399 (TOOLKIT_LIBW): New, set by configure.
4400 (@X_TOOLKIT_TYPE@): No longer define it.
4401
4402 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4403 (MOTIF_LIBW): Set with configure, not cpp.
4404 * s/aix4-2.h (LIB_MOTIF):
4405 * s/gnu-linux.h (LIB_MOTIF):
4406 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4407
4408 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4409
4410 Reduce CPP usage.
4411 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4412 (obj): Use autoconf for unexec instead of cpp.
4413 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4414 definitions and undefs. Inline definitions in the only user.
4415 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
4416
4417 2010-04-27 Glenn Morris <rgm@gnu.org>
4418
4419 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4420 since the defaults (set by the system file) are fine in most cases.
4421 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4422 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4423 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4424 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4425 Remove definitions, since they are set correctly in s/gnu-linux.h.
4426 * s/freebsd.h (START_FILES, LIB_STANDARD):
4427 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4428 * s/hpux10-20.h (START_FILES):
4429 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4430 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4431
4432 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4433 (MOTIF_LIBW): Use $LIBXP.
4434 (otherobj): Use $WIDGET_OBJ.
4435
4436 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4437
4438 * Makefile.in (LIBS_MACHINE): Remove, unused.
4439
4440 Use autoconf instead of cpp for LIB_MATH.
4441 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4442 * s/cygwin.h (LIB_MATH): Likewise.
4443 * Makefile.in (LIB_MATH): Do not define with cpp.
4444 (LIBES): Use autoconf for LIB_MATH.
4445
4446 2010-04-26 Kenichi Handa <handa@m17n.org>
4447
4448 * composite.c (Ffind_composition_internal): Fix the return value
4449 for an automatic composition.
4450
4451 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4452
4453 Remove all NO_ARG_ARRAY uses.
4454 * fns.c (concat2, concat3, nconc2):
4455 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4456 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4457 * m/xtensa.h (NO_ARG_ARRAY):
4458 * m/template.h (NO_ARG_ARRAY):
4459 * m/sparc.h (NO_ARG_ARRAY):
4460 * m/sh3.h (NO_ARG_ARRAY):
4461 * m/mips.h (NO_ARG_ARRAY):
4462 * m/macppc.h (NO_ARG_ARRAY):
4463 * m/iris4d.h (NO_ARG_ARRAY):
4464 * m/intel386.h (NO_ARG_ARRAY):
4465 * m/ibms390x.h (NO_ARG_ARRAY):
4466 * m/ibms390.h (NO_ARG_ARRAY):
4467 * m/ibmrs6000.h (NO_ARG_ARRAY):
4468 * m/ia64.h (NO_ARG_ARRAY):
4469 * m/hp800.h (NO_ARG_ARRAY):
4470 * m/arm.h (NO_ARG_ARRAY):
4471 * m/amdx86-64.h (NO_ARG_ARRAY):
4472 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4473
4474 2010-04-25 Eli Zaretskii <eliz@gnu.org>
4475
4476 * xdisp.c (display_line): Don't assume 2nd call to
4477 get_next_display_element cannot return zero. (Bug#6030)
4478 (iterate_out_of_display_property): New function, body from pop_it.
4479 (pop_it): Use it.
4480
4481 2010-04-24 Glenn Morris <rgm@gnu.org>
4482
4483 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4484 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4485 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4486 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4487
4488 2010-04-24 Eli Zaretskii <eliz@gnu.org>
4489
4490 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4491 use `get_next_display_element' and `set_iterator_to_next' to
4492 advance to the next character, when looking for the character that
4493 begins the next row.
4494
4495 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
4496 definition of "struct Lisp_Symbol".
4497
4498 2010-04-24 Glenn Morris <rgm@gnu.org>
4499
4500 * Makefile.in (CRT_DIR): New variable, set by configure.
4501 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4502 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4503
4504 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4505
4506 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4507
4508 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4509
4510 Remove redundant flags.
4511 * s/freebsd.h (C_SWITCH_SYSTEM):
4512 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4513 * s/netbsd.h (C_SWITCH_SYSTEM):
4514 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4515 of these.
4516
4517 Simplify m/intel386.h.
4518 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4519 user: ecrt0.c.
4520 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4521 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4522 the only user: s/unixware.h.
4523 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4524 from m/intel386.h.
4525 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4526 moved here from m/intel386.h.
4527
4528 * m/mips.h: Remove #if 0 code.
4529
4530 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4531
4532 Fix display of composed characters from L2R scripts in bidi buffers.
4533 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4534 After advancing IT past the composition, resync the bidi iterator
4535 with IT's position. (Bug#5977)
4536
4537 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4538
4539 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4540 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4541
4542 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4543
4544 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4545
4546 2010-04-23 Eli Zaretskii <eliz@gnu.org>
4547
4548 Support `display' text properties and overlay strings in bidi buffers.
4549 * xdisp.c (pop_it): When the stack is popped after displaying
4550 from a string, bidi-iterate to exit from the text portion covered
4551 by the `display' property or overlay. (Bug#5988, bug#5920)
4552
4553 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4554
4555 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4556 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4557
4558 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4559 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4560
4561 Simplify STARTFILES definition.
4562 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4563 relying on Makefile.in to define it.
4564 * s/cygwin.h (START_FILES): Likewise.
4565 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4566
4567 Clean up Solaris code.
4568 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4569 (LIB_MOTIF): Remove, configure takes care of this.
4570 (NOT_USING_MOTIF): Remove, unused.
4571 * xrdb.c: Remove #if 0-ed #include.
4572 (SYSV): Remove conditional for old SysV.
4573 * sysdep.c (closedir): Remove conditional code for Solaris,
4574 Solaris has closedir.
4575
4576 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4577
4578 * xsettings.c (read_and_apply_settings): Check if current_font is
4579 NULL before strcmp (Bug#6001).
4580
4581 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4582
4583 Clean up HP-UX files.
4584 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4585 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4586 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4587 * s/hpux10-20.h: ... to the only user, here.
4588
4589 2010-04-21 Eli Zaretskii <eliz@gnu.org>
4590
4591 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4592 use buffer-local values of paragraph-start and paragraph-separate.
4593 <paragraph_start_re, paragraph_separate_re>: Rename from
4594 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4595 (Bug#5992)
4596
4597 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4598
4599 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4600 current_tool_bar_style are new.
4601 (store_config_changed_event): Rename from store_font_changed_event.
4602 (XSETTINGS_TOOL_BAR_STYLE): New define.
4603 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4604 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4605 HAVE_XFT.
4606 (something_changedCB): store_font_changed_event is now
4607 store_config_changed_event.
4608 (parse_settings): Rename from parse_xft_settings. Read
4609 non-xft xsettings outside #ifdef HAVE_XFT.
4610 (read_settings): Renamed from read_xft_settings.
4611 (apply_xft_settings): Take current settings as parameter. Do not
4612 call read_(xft)_settings.
4613 (read_and_apply_settings): New function.
4614 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4615 read_and_apply_settings if there are settings to be read.
4616 (init_xsettings): Renamed from init_xfd_settings.
4617 Call read_and_apply_settings unconditionally.
4618 (xsettings_initialize): Call init_xsettings.
4619 (Ftool_bar_get_system_style): New function.
4620 (syms_of_xsettings): Define Qmonospace_font_name and
4621 Qtool_bar_style. Initialize current_tool_bar_style to nil.
4622 defsubr Stool_bar_get_system_style. Fprovide on
4623 dynamic-setting.
4624 Move misplaced HAVE_GCONF
4625
4626 * xsettings.h (Ftool_bar_get_system_style): Declare.
4627
4628 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4629 Qtext, Qboth, Qboth_horiz are new.
4630 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4631 Vtool_bar_style, tool_bar_max_label_size.
4632
4633 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4634
4635 * keyboard.c: QClabel is new.
4636 (parse_tool_bar_item): Take out QClabel from tool bar items.
4637 Try to construct a label if ther is no QClabel.
4638 (syms_of_keyboard): Intern :label as QClabel.
4639
4640 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4641 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4642 New.
4643
4644 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4645 dynamic-setting.el.
4646
4647 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4648 (xg_make_tool_item, xg_show_toolbar_item): New function.
4649 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4650 Call xg_make_tool_item to make a tool bar item.
4651 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4652
4653 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4654 into account for toolbars.
4655
4656 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4657
4658 * data.c (make_blv): Declarations before code (Bug#5993).
4659
4660 2010-04-21 Glenn Morris <rgm@gnu.org>
4661
4662 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4663 Define using autoconf, not cpp.
4664 (LIBXSM): New variable, set by autoconf.
4665 (LIBXT): Use $LIBXSM.
4666
4667 2010-04-21 Dan Nicolaescu <local_user@dannlt>
4668
4669 Remove NOMULTIPLEJOBS, unused.
4670 * s/template.h (NOMULTIPLEJOBS):
4671 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4672
4673 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4674 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4675 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4676 detects -znocombreloc and passes it to the linker
4677 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4678
4679 2010-04-21 Glenn Morris <rgm@gnu.org>
4680
4681 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4682
4683 2010-04-21 Karel Klíč <kklic@redhat.com>
4684
4685 * Makefile.in (LIBSELINUX_LIBS): New.
4686 (LIBES): Add $LIBSELINUX_LIBS.
4687 * eval.c, lisp.h (call7): New function.
4688 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4689 (Ffile_selinux_context, Fset_file_selinux_context):
4690 New functions.
4691 (Fcopy_file): New parameter preserve-selinux-context.
4692 (Frename_file): Preserve selinux context when renaming by copy-file.
4693
4694 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
4695 Eli Zaretskii <eliz@gnu.org>
4696
4697 Don't depend on cm.c or termcap.c on Windows, use stubs.
4698 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4699 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4700 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4701 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4702 (sys_tputs, sys_tgetstr): New stubs.
4703 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4704 (tputs, tgetstr): New; define to sys_*.
4705
4706 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
4707
4708 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4709
4710 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4711
4712 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4713 Just signal a warning rather than an error when inside a let.
4714 (Fmake_variable_frame_local): Add the same test.
4715
4716 * font.c (syms_of_font): Make the style table vars read-only.
4717
4718 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4719 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4720
4721 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4722
4723 2010-04-20 Eli Zaretskii <eliz@gnu.org>
4724
4725 Fix R2L paragraph display on TTY.
4726
4727 * xdisp.c (unproduce_glyphs): New function.
4728 (display_line): Use it when produced glyphs are discarded from R2L
4729 glyph rows.
4730 (append_composite_glyph): In R2L rows, prepend the glyph rather
4731 than appending it.
4732
4733 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4734 rather than append it. Set up the resolved_level and bidi_type
4735 attributes of the appended glyph.
4736 (produce_special_glyphs): Mirror the backslash continuation
4737 character in R2L lines.
4738
4739 Implement display of R2L paragraphs in GUI sessions.
4740
4741 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4742 append_stretch_glyph.
4743 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4744 off-by-one error in computing x at end of text in the row.
4745 (append_stretch_glyph): In reversed row, prepend the glyph rather
4746 than append it. Set resolved_level and bidi_type of the glyph.
4747 (extend_face_to_end_of_line): If the row is reversed, prepend a
4748 stretch glyph whose width is such that the rightmost glyph will be
4749 drawn at the right margin of the window. Fix off-by-one error on
4750 TTY frames in testing whether a line needs face extension. Fix
4751 face extension at ZV. If this is the last glyph row, use
4752 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4753 region face.
4754 (set_cursor_from_row, display_line): Use
4755 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4756 row->continuation_lines_width.
4757 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4758 are at ZV. Fixes a crash when reseated to ZV by
4759 try_window_reusing_current_matrix.
4760 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4761 which happens with R2L glyph rows. Fixes a crash when inserting a
4762 character at end of an R2L line.
4763 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4764 treat them as having zero-width characters. Improve comments.
4765 Don't reverse pos_before and pos_after for reversed glyph rows.
4766 Set cursor.x to negative value when the cursor might be on the
4767 left fringe.
4768 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4769 left fringe, not the right one.
4770 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4771 (erase_phys_cursor): For reversed cursor_row, support cursor on
4772 the left fringe.
4773
4774 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4775 of continuation indicators on the fringes.
4776 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4777 left fringe.
4778
4779 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4780 draw cursor on the left fringe.
4781
4782 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4783 cursor on the left fringe.
4784
4785 * dispnew.c (update_text_area): Handle reversed desired rows when
4786 the cursor is on the left fringe.
4787 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4788 below, not by 0, for when the cursor is on the left fringe.
4789
4790 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4791
4792 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4793 widget is a scrollbar.
4794
4795 2010-04-20 Kenichi Handa <handa@m17n.org>
4796
4797 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4798 only when the arg CHARSET_LIST is nil.
4799
4800 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4801
4802 Make variable forwarding explicit rather the using special values.
4803 Basically, this makes the structure of buffer-local values and object
4804 forwarding explicit in the type of Lisp_Symbols rather than use
4805 special Lisp_Objects for that. This tends to lead to slightly more
4806 verbose code, but is more C-like, simpler, and makes it easier to make
4807 sure we handled all cases, among other things by letting the compiler
4808 help us check it.
4809 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4810 Removing forwarding objects.
4811 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4812 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4813 explicit rather than hiding them inside Lisp_Object "values".
4814 (XFWDTYPE): New macro.
4815 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4816 (XBUFFER_LOCAL_VALUE): Remove.
4817 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4818 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4819 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4820 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4821 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4822 Remove the Lisp_Misc_* header.
4823 (struct Lisp_Buffer_Local_Value): Redefine.
4824 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4825 (struct Lisp_Misc_Any): Add filler to get the right size.
4826 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4827 Lisp_Intfwd.
4828 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4829 (DEFVAR_KBOARD): Allocate a forwarding object.
4830 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4831 (let_shadows_global_binding_p): New function.
4832 (union Lisp_Val_Fwd): New type.
4833 (make_blv): New function.
4834 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4835 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4836 (swap_in_symval_forwarding, find_symbol_value, Fset)
4837 (let_shadows_buffer_binding_p, set_internal, default_value)
4838 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4839 (Fkill_local_variable, Fmake_variable_frame_local)
4840 (Flocal_variable_p, Flocal_variable_if_set_p)
4841 (Fvariable_binding_locus):
4842 * xdisp.c (select_frame_for_redisplay):
4843 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4844 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4845 * frame.c (store_frame_param):
4846 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4847 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4848 value structure.
4849 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4850 (clone_per_buffer_values): Only adjust markers into the current buffer.
4851 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4852 (Fbuffer_local_value, set_buffer_internal_1)
4853 (swap_out_buffer_local_variables):
4854 Adapt to the new symbol value structure.
4855 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4856 (defvar_per_buffer): Take a new arg for the fwd object.
4857 (buffer_lisp_local_variables): Return a proper alist (different fix
4858 for bug#4138).
4859 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4860 (Fgarbage_collect): Don't handle buffer_defaults specially.
4861 (mark_object): Handle new symbol value structure rather than the old
4862 special Lisp_Misc_* objects.
4863 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4864 * term.c (set_tty_color_mode):
4865 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4866 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4867 a buffer_local_flags.
4868 * print.c (print_object): Get rid of impossible forwarding objects.
4869
4870 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4871
4872 * bidi.c (bidi_get_type, bidi_get_category)
4873 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
4874 (bidi_type_of_next_char, bidi_level_of_next_char):
4875 Declare static. Use `INLINE' rather than `inline'.
4876
4877 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
4878
4879 * dired.c (Ffile_attributes): Fix typo in docstring.
4880
4881 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
4882
4883 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4884 NSInteger (Bug#5811).
4885
4886 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4887
4888 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4889 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4890
4891 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4892
4893 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4894
4895 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
4896
4897 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4898 terminal frames (Bug#5837).
4899
4900 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4901
4902 * .gdbinit (xsubchartable): New command.
4903
4904 2010-04-19 Eli Zaretskii <eliz@gnu.org>
4905
4906 * xdisp.c (display_line): Don't write beyond the last glyph row in
4907 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
4908 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4909 and
4910 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4911
4912 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4913
4914 * alloc.c (Fpurecopy): Hash-cons if requested.
4915 (syms_of_alloc): Update purify-flag docstring.
4916
4917 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4918
4919 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4920 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4921
4922 2010-04-17 Eli Zaretskii <eliz@gnu.org>
4923
4924 Fix a crash when an NSM character is inserted at BEGV.
4925
4926 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4927 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4928 NEUTRAL_B or UNKNOWN_BT.
4929
4930 2010-04-16 Eli Zaretskii <eliz@gnu.org>
4931
4932 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4933 other rows with cursor unless they are different from this row and
4934 this row is part of a continued line. (Bug#5943)
4935
4936 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4937
4938 * s/freebsd.h: Restore osreldate.h include.
4939 Suggested by Naohiro Aota.
4940
4941 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4942
4943 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4944
4945 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4946
4947 * s/cygwin.h: Avoid linking against static libgcc.
4948
4949 2010-04-15 Juri Linkov <juri@jurta.org>
4950
4951 * window.c: Add Qscroll_command.
4952 Remove Vscroll_preserve_screen_position_commands.
4953 (window_scroll_pixel_based, window_scroll_line_based): Check the
4954 `scroll-command' property on the last command instead of searching
4955 the last command in Vscroll_preserve_screen_position_commands.
4956 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4957 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4958 (scroll-preserve-screen-position): Doc fix.
4959 (Vscroll_preserve_screen_position_commands): Remove variable.
4960
4961 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4962
4963 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4964
4965 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4966
4967 Reduce cpp use in Makefile.in.
4968 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4969 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4970 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4971 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4972 (CRT0_COMPILE): Remove, inline it in the only user.
4973
4974 2010-04-14 Juri Linkov <juri@jurta.org>
4975
4976 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4977 `scroll-up-command' and `M-v' from `scroll-down' to
4978 `scroll-down-command'.
4979
4980 2010-04-14 Juri Linkov <juri@jurta.org>
4981
4982 * window.c (Vscroll_preserve_screen_position_commands): New variable
4983 with the default value as the list of Qscroll_down and Qscroll_up.
4984 (window_scroll_pixel_based, window_scroll_line_based): Search the
4985 last command in the list Vscroll_preserve_screen_position_commands
4986 instead of comparing with Qscroll_up and Qscroll_down.
4987
4988 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4989
4990 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4991 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4992 does that.
4993
4994 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4995 to zero.
4996
4997 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4998
4999 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5000
5001 Try to solve the problem of spurious EOF chars in long lines of text
5002 sent to interactive subprocesses.
5003 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5004 (system_process_attributes): Remove unused var `ttotal'.
5005 * process.c (send_process): Don't bother breaking long line with EOF
5006 chars when talking to ttys any more.
5007 (wait_reading_process_output): Output a warning when called in such
5008 a way that it could block without being interruptible.
5009
5010 Try to detect file modification within the same second.
5011 * buffer.h (struct buffer): New field modtime_size.
5012 * buffer.c (reset_buffer): Initialize it.
5013 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5014 (Fverify_visited_file_modtime): Check it.
5015 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5016 (Fset_visited_file_modtime): Set (or clear) it.
5017
5018 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5019
5020 * process.c (status_notify): Remove unused var `ro'.
5021
5022 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5023
5024 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5025 more than one visual (Bug#5938).
5026
5027 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5028
5029 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5030 Undefine.
5031
5032 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5033
5034 Remove C_SWITCH_SYSTEM_TEMACS.
5035 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5036 (malloc, realloc, free): Use emacs, not temacs for conditional
5037 definition.
5038
5039 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5040 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5041
5042 Use autoconf, not cpp for some variables.
5043 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5044 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5045 (ALL_CFLAGS): Use them as make variables.
5046 (really-lwlib, really-oldXMenu): Do not pass them.
5047
5048 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5049
5050 * xmenu.c (apply_systemfont_to_dialog): New.
5051 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5052
5053 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5054
5055 * process.c (exec_sentinel): Preserve current-buffer.
5056
5057 * process.c (read_process_output): Move the save-current-buffer to
5058 apply to both the filter and the non-filter branches.
5059
5060 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5061
5062 * s/msdos.h (UNEXEC): New definition.
5063
5064 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5065
5066 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5067 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5068
5069 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5070 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5071 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5072 TRY_WINDOW_CHECK_MARGINS.
5073
5074 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5075 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5076 width only when it is for padding.
5077
5078 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5079
5080 * xfns.c (Fx_show_tip): Call try_window in a loop until
5081 fonts_changed_p is zero (Bug#2423).
5082
5083 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5084
5085 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5086 the end of TEXT_AREA. (Bug#5856)
5087
5088 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5089
5090 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5091 HAVE_GCONF.
5092
5093 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5094
5095 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5096 prev.orig_type, for resolving type of NSM. (Bug#5858)
5097
5098 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5099
5100 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5101 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5102 in current_font.
5103 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
5104 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5105 New functions.
5106 (syms_of_xsettings): Initialize current_font.
5107 defsubr Sfont_get_system_normal_font.
5108
5109 * xsettings.h (Ffont_get_system_normal_font)
5110 (xsettings_get_system_normal_font): Declare.
5111
5112 * xfns.c (extern xlwmenu_default_font): Remove.
5113 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5114 to xlwmenu.c.
5115
5116 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5117 menu items in UTF-8.
5118
5119 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5120 (apply_systemfont_to_menu): New function.
5121 (set_frame_menubar, create_and_show_popup_menu): Call
5122 apply_systemfont_to_menu.
5123
5124 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5125
5126 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5127 FRAME_LINE_TO_PIXEL_Y.
5128
5129 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5130 pixelwidth/height.
5131
5132 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5133
5134 Simplify code for HP machines.
5135 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5136 for GNU_LINUX, not needed.
5137 (UNEXEC, NEED_BSDTTY): Move definitions...
5138 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5139
5140 * m/iris4d.h (UNEXEC): Move definition ...
5141 * s/irix6-5.h (UNEXEC): ... here.
5142
5143 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5144
5145 * xfns.c (set_machine_and_pid_properties): New function.
5146 (Fx_create_frame): Call set_machine_and_pid_properties.
5147
5148 2010-04-03 Eli Zaretskii <eliz@gnu.org>
5149
5150 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5151 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5152 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5153
5154 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5155 in this function. (Bug#5703)
5156
5157 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
5158
5159 * nsterm.h: Fix last change.
5160
5161 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5162
5163 * m/intel386.h (NO_REMAP): Move definition ...
5164 * s/msdos.h (NO_REMAP): ... here.
5165
5166 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5167
5168 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5169 used on those platforms.
5170
5171 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5172
5173 Remove extern errno declarations.
5174 * xterm.c:
5175 * xrdb.c:
5176 * w32term.c:
5177 * unexec.c:
5178 * unexaix.c:
5179 * sysdep.c:
5180 * process.c:
5181 * lread.c:
5182 * keyboard.c:
5183 * floatfns.c:
5184 * filelock.c:
5185 * fileio.c:
5186 * emacs.c (main):
5187 * ecrt0.c:
5188 * dispnew.c:
5189 * callproc.c:
5190 * buffer.c: Remove errno extern declarations.
5191 * s/netbsd.h (NEED_ERRNO): Remove.
5192
5193 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5194
5195 Remove all uses of LIBX11_SYSTEM.
5196 * Makefile.in (LIBX11_SYSTEM): Remove.
5197 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5198 instead.
5199
5200 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5201
5202 Remove support for DJGPP v1.x (bug#5813).
5203
5204 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
5205 * s/msdos.h:
5206 * unexec.c (make_hdr, copy_text_and_data):
5207 * sysdep.c (wait_for_termination, sys_subshell):
5208 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
5209 (IT_set_terminal_modes, __write, _rename, gethostname)
5210 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5211 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5212 the value of __DJGPP__.
5213 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5214 compatibility code.
5215 * lread.c:
5216 * gmalloc.c (memalign):
5217 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5218 * emacs.c (main):
5219 * dosfns.c (init_dosfns):
5220 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5221
5222 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5223
5224 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5225 string with `cursor' property comes from an `after-string'
5226 overlay. (Bug#5816)
5227
5228 2010-04-01 Glenn Morris <rgm@gnu.org>
5229
5230 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5231 Define as Makefile variables.
5232 (LIBX): Use above variables rather than directly using autoconf.
5233
5234 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5235
5236 Clean up BSD_SYSTEM use.
5237 * xterm.c:
5238 * process.c:
5239 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5240 for including <sys/ioctl.h>.
5241 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5242 code is only used for MSDOS.
5243
5244 2010-03-31 Juri Linkov <juri@jurta.org>
5245
5246 * image.c: Add `Qextension_data'.
5247 (syms_of_image): Initialize and staticpro `Qextension_data'.
5248 (Fimage_metadata): Rename from `Fimage_extension_data'.
5249 (gif_load): Put GIF extension data to the property
5250 `Qextension_data'.
5251
5252 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5253
5254 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5255 * nsterm.h: Fix prototype.
5256
5257 2010-03-31 Eli Zaretskii <eliz@gnu.org>
5258
5259 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5260 trailing whitespace in right-to-left rows.
5261
5262 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5263
5264 Get rid of the direct_output optimizations.
5265 * keyboard.c (nonundocount): Remove extern declaration.
5266 (command_loop_1): Remove brittle optimisation for cheap and
5267 common operations.
5268 * xdisp.c (redisplay_internal): Don't bother checking
5269 redisplay_performed_directly_p any more.
5270 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5271 any more.
5272 * dispnew.c (redisplay_performed_directly_p)
5273 (direct_output_for_insert, direct_output_forward_char):
5274 * dispextern.h (redisplay_performed_directly_p)
5275 (direct_output_for_insert, direct_output_forward_char): Remove.
5276 * cmds.c (nonundocount): Make it static.
5277
5278 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
5279
5280 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5281
5282 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
5283
5284 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5285 invisible (Bug#5766).
5286
5287 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
5288
5289 * xdisp.c (x_consider_frame_title, update_window_cursor):
5290 Remove HAVE_NS conditionals.
5291 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
5292
5293 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5294 filename for the title.
5295 (ns_set_doc_edited): Do nothing if the selected window is a
5296 minibuffer window.
5297
5298 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5299 ns_set_doc_edited.
5300
5301 * nsterm.m: Remove unneeded prototype.
5302
5303 2010-03-31 Glenn Morris <rgm@gnu.org>
5304
5305 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5306 in the DOC file. (Bug#5336)
5307
5308 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5311
5312 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5313
5314 * window.c (keys_of_window): Remove redundant/overridden bindings.
5315
5316 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5317
5318 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5319 Restore original behavior when the iterator is not bidi_p.
5320
5321 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5322
5323 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5324
5325 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5326
5327 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5328 are outside the range of cached character positions.
5329
5330 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
5331
5332 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5333
5334 2010-03-30 Eli Zaretskii <eliz@gnu.org>
5335
5336 Initial support for bidirectional editing.
5337
5338 * Makefile.in (obj): Include bidi.o.
5339 (bidi.o): New target.
5340
5341 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5342 ($(BLD)/bidi.$(O)): New target.
5343
5344 * bidi.c: New file.
5345
5346 * buffer.h (struct buffer): New members bidi_display_reordering
5347 and bidi_paragraph_direction.
5348
5349 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5350 and bidi_paragraph_direction.
5351 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5352 and bidi-paragraph-direction.
5353 (Fbuffer_swap_text): Swap the values of
5354 bidi_display_reordering and bidi_paragraph_direction.
5355
5356 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5357 (bidi_type_t, bidi_dir_t): New types.
5358 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5359 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5360 prev_stop, base_level_stop, and eol_pos.
5361 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5362 (IT_STACK_SIZE): Enlarge to 5.
5363 (struct glyph_row): New member reversed_p.
5364 <string_buffer_position>: Update prototype.
5365 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5366 glyph_row if bidi_it.paragraph_dir == R2L.
5367 (struct glyph): New members resolved_level and bidi_type.
5368
5369 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5370 processing or buffer's direction is right-to-left.
5371 (prepare_desired_row): Preserve the reversed_p flag.
5372 (row_equal_p): Compare the reversed_p attributes as well.
5373
5374 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5375 bidi_init_it and set it->paragraph_embedding from the current
5376 buffer's value of bidi_paragraph_direction.
5377 (reseat_1): Initialize bidi_it.first_elt.
5378 (set_iterator_to_next, next_element_from_buffer): Use the value of
5379 paragraph_embedding to determine the paragraph direction.
5380 (set_iterator_to_next): Under bidi reordering, call
5381 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5382 new_paragraph flag is set in the bidi iterator.
5383 (next_element_from_buffer): If bidi_it.first_elt is set,
5384 initialize paragraph direction and find the first character to
5385 display in the visual order. If reseated to a middle of a line,
5386 prime the bidi iterator starting at the line's beginning. Handle
5387 the situation where we overstepped stop_charpos due to
5388 non-linearity of the bidi iteration. Likewise for when we back up
5389 beyond the previous stop_charpos. When moving across stop_charpos,
5390 record it in prev_stop.
5391 (display_line): Set row->end and it->start for the next row to the
5392 next character in logical order. Always extend reversed_p rows to
5393 the end of line, even if they end at ZV. Copy the reversed_p flag
5394 to the next glyph row. Keep calling set_cursor_from_row for
5395 bidi-reordered rows even if we already have a possible candidate
5396 for cursor position. Set row_end after all the row's glyphs have
5397 been produced, by looping over the glyphs. Record the position
5398 after EOL in it->eol_pos, and use it to set end_pos of the last
5399 row produced for a continued line.
5400 <Qright_to_left, Qleft_to_right>: New variables.
5401 (syms_of_xdisp): Initialize and staticpro them.
5402 (string_buffer_position_lim): New function.
5403 (string_buffer_position): Most of code moved to
5404 string_buffer_position_lim. Last argument and return value are
5405 now EMACS_INT; all callers changed.
5406 (set_cursor_from_row): Rewritten to support bidirectional text and
5407 reversed glyph rows.
5408 (text_outside_line_unchanged_p, try_window_id): Disable
5409 optimizations if we are reordering bidirectional text and the
5410 paragraph direction can be affected by the change.
5411 (append_glyph, append_composite_glyph)
5412 (produce_image_glyph, append_stretch_glyph): Set the
5413 resolved_level and bidi_type members of each glyph.
5414 (append_glyph): If the glyph row is reversed, prepend the glyph
5415 rather than appending it.
5416 (handle_stop_backwards): New function.
5417 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5418 (reseat): call handle_stop_backwards to recompute prev_stop and
5419 base_level_stop for the new position.
5420 (handle_invisible_prop): Under bidi iteration, skip invisible text
5421 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5422 paragraph direction. Update IT->prev_stop after skipping
5423 invisible text.
5424 (move_it_in_display_line_to): New variables prev_method
5425 and prev_pos. Compare for strict equality in
5426 BUFFER_POS_REACHED_P.
5427 (try_cursor_movement): Examine all the candidate rows that occlude
5428 point, to return the best match. If rows are bidi-reordered
5429 and point moved backwards, back up to the row that is not a
5430 continuation line, and start looking for a suitable row from
5431 there.
5432
5433 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5434 rather than appending, if the glyph_row's reversed_p flag is set.
5435 Set the resolved_level and bidi_type members of each glyph.
5436
5437 * .gdbinit (pbiditype): New command.
5438 (pgx): Use it to display bidi level and type of the glyph.
5439 (pitx): Display some bidi information about the iterator.
5440 (prowlims, pmtxrows): New commands.
5441
5442 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5443
5444 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5445 * s/usg5-4.h (LIBS_DEBUG):
5446 * s/irix6-5.h (C_DEBUG_SWITCH):
5447 * s/gnu-linux.h (LIBS_DEBUG):
5448 * s/darwin.h (LIBS_DEBUG):
5449 * s/bsd-common.h (LIBS_DEBUG):
5450 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5451 * m/iris4d.h (LIBS_DEBUG):
5452 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5453
5454 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5455 (LIBS_DEBUG): Remove definition.
5456
5457 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
5458
5459 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5460 Windows.
5461
5462 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5463
5464 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5465 `connect' (Bug#5723).
5466
5467 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
5468
5469 * process.c (Fmake_network_process): Call `select' for interrupted
5470 `connect' rather than creating new socket (Bug#5173).
5471
5472 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
5473
5474 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5475
5476 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5477
5478 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5479
5480 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5481
5482 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5483 XLoadQueryFont.
5484
5485 2010-03-24 Kenichi Handa <handa@m17n.org>
5486
5487 * coding.c (decode_coding_ccl): Fix previous change for the
5488 multibyte case.
5489 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5490 case that the output buffer is fullfilled.
5491 (encode_coding): Setup ccl program here.
5492
5493 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5494
5495 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5496
5497 Simplify LIBS_MACHINE definitions.
5498 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5499 * m/iris4d.h (LIBS_MACHINE): Likewise.
5500 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5501 * s/aix4-2.h (LIBS_SYSTEM): ... here.
5502 * s/netbsd.h: Remove commented out code.
5503
5504 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5505
5506 Remove dead code dealing with POSIX_SIGNALS.
5507 * atimer.c (set_alarm): Remove dead code, all USG systems define
5508 POSIX_SIGNALS.
5509 * data.c (arith_error): Likewise.
5510 * keyboard.c (input_available_signal, handle_user_signal)
5511 (interrupt_signal): Likewise.
5512 * process.c (sigchld_handler): Likewise.
5513 (create_process): Remove if 0 code. Remove HPUX conditional when
5514 !defined (POSIX_SIGNALS), it cannot be true.
5515 * syssignal.h: Remove USG5_4 and USG conditionals when
5516 !POSIX_SIGNALS, they cannot be true.
5517
5518 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5519 NO_SOCK_SIGIO, not used anymore.
5520
5521 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5522
5523 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5524 support vax on BSDs.
5525
5526 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5527 * s/aix4-2.h (ORDINARY_LINK): ... here.
5528
5529 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5530
5531 * Makefile.in (abs_builddir): Define.
5532 (bootstrap_exe): Use it.
5533 (VPATH): Use $(srcdir) instead of @srcdir@.
5534
5535 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5536
5537 * Makefile.in (bootstrap_exe): Use an absolute name.
5538
5539 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5540
5541 Remove support for old GNU/Linux using libc version 5.
5542 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5543 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5544
5545 Consolidate redundant definitions in s/bsd-common.h.
5546 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5547 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5548 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5549 doing it in all files that include this one.
5550 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5551 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5552 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5553 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5554 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5555 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5556 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5557 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5558 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5559
5560 Consolidate redundant definitions.
5561 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5562 it's undefined in all files that include this one.
5563 (POSIX_SIGNALS): Define here instead of doing it in all files that
5564 include this one.
5565 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5566 (POSIX_SIGNALS): Do not define.
5567 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5568 (POSIX_SIGNALS): Do not define.
5569 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5570 (POSIX_SIGNALS): Do not define.
5571
5572 Remove support for old UNIX System V systems.
5573 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5574 * s/usg-5-4-2.h: Remove.
5575
5576 Remove support for Solaris on PPC and for old versions.
5577 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5578 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5579 that cancel each other.
5580 * s/sol2-3.h:
5581 * s/sol2-4.h:
5582 * s/sol2-5.h: Remove.
5583 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5584 (NO_REMAP): Remove, unused.
5585 (UNEXEC): Move definition ...
5586 * s/aix4-2.h (UNEXEC): ... here.
5587
5588 * s/openbsd.h: Remove support for non-ELF and for systems that do
5589 not support shared libraries.
5590 * s/netbsd.h:
5591 * s/freebsd.h: Likewise.
5592
5593 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5594
5595 Remove non-working support for lynxos 3.0.
5596 * s/lynxos.h: Remove file.
5597
5598 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5599 COFF_BSD_SYMBOLS, nothing defines it anymore.
5600
5601 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5602
5603 Remove obsolete uses of HAVE_SHM.
5604 * emacs.c (standard_args):
5605 (Fdump_emacs):
5606 (syms_of_emacs): Remove code depending on HAVE_SHM.
5607
5608 * alloc.c: Remove HAVE_SHM dependent definition.
5609
5610 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5611
5612 2010-03-18 Glenn Morris <rgm@gnu.org>
5613
5614 * emacs.c (USAGE4): Hard-code bug address.
5615 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5616 (bug_reporting_address): Remove.
5617 (main): Don't call bug_reporting_address.
5618
5619 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5620 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5621
5622 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
5623
5624 * xfns.c (Fx_create_frame):
5625 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5626 on left.
5627
5628 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5629
5630 * editfns.c (Fformat): Account for string precision when computing
5631 field width (Bug#5710).
5632
5633 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
5634
5635 * xfns.c (Fx_create_frame): Set default to Qright.
5636
5637 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5638 all window systems.
5639
5640 2010-03-12 Eli Zaretskii <eliz@gnu.org>
5641
5642 These changes remove termcap.c from the build on Posix platforms.
5643 * Makefile.in (termcapobj): Move termcap.o from here...
5644 (MSDOS_OBJ): ...to here.
5645 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5646 now identical to when LIBS_TERMCAP is defined.
5647
5648 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5649
5650 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5651
5652 * config.in: Regenerated. (See top-level ChangeLog.)
5653
5654 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
5655
5656 * Branch for 23.2.
5657
5658 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5659
5660 Cleanup setup of gl_state in various parts of the code.
5661 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5662 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5663 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5664 (skip_chars):
5665 * regex.c (regex_compile): Use it.
5666 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5667 it's now set in regex_compile when/if we need it.
5668
5669 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5670
5671 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5672 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5673 (QUIT): Use it to consolidate code and remove redundancy.
5674 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5675
5676 * regex.c (regex_compile): Setup gl_state as well.
5677
5678 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5679 (in_classes): Use CONSP before XCAR/XCDR.
5680
5681 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5684 definitions, so that keyboard macros are correctly handled
5685 (Bug#5481).
5686
5687 2010-03-02 Eli Zaretskii <eliz@gnu.org>
5688
5689 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5690 text that could be relocated inside the call to emacs_mule_char.
5691 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5692 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5693
5694 2010-03-02 Kenichi Handa <handa@m17n.org>
5695
5696 * character.c (parse_str_as_multibyte): Fix handling of the
5697 multibyte form of raw-bytes.
5698 (str_as_multibyte): Likewise.
5699
5700 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5701 form of raw-bytes.
5702
5703 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
5704
5705 * charset.c (load_charset_map_from_file)
5706 (load_charset_map_from_vector): Zero out allocated
5707 charset_map_entries before using them.
5708
5709 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5710
5711 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5712
5713 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5716 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
5717
5718 2010-02-26 Kenichi Handa <handa@m17n.org>
5719
5720 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5721
5722 * xdisp.c (reseat_to_string): Fix previous change.
5723
5724 2010-02-26 David Reitter <david.reitter@gmail.com>
5725
5726 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5727 Lisp_Object (Bug#4736).
5728
5729 2010-02-25 Kenichi Handa <handa@m17n.org>
5730
5731 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5732
5733 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5734
5735 * xterm.c (XTflash): Move declarations before statements.
5736
5737 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5738 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5739 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5740 (xg_create_tool_bar): Remove unused variables.
5741 (x_wm_set_size_hint): Move declarations before statements.
5742 (xg_create_frame_widgets): Remove variable grav.
5743
5744 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
5745
5746 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5747
5748 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5749
5750 * term.c (fatal): Add a final \n if needed (bug#5596).
5751
5752 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
5753
5754 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5755
5756 2010-02-18 Glenn Morris <rgm@gnu.org>
5757
5758 * callint.c (Finteractive): Doc fix.
5759
5760 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5761
5762 * coding.c (record_conversion_result):
5763 Handle CODING_RESULT_INSUFFICIENT_DST.
5764 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5765 memory allocation error.
5766
5767 2010-02-17 Kenichi Handa <handa@m17n.org>
5768
5769 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5770 Fix for the case that the output buffer is fullfilled.
5771 (decode_coding): Setup ccl program here. Keep looping when the
5772 decoder stopped because the output buffer is
5773 fullfilled (bug#5534).
5774
5775 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5776
5777 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5778
5779 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
5780 bug #5571.
5781 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
5782 overdrawn.
5783
5784 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5785
5786 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5787 doing_interact here.
5788 (ice_connection_closed): New function.
5789 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5790 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5791 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5792 returns I/O error.
5793 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5794 bug #5512.
5795
5796 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
5797
5798 * nsfont.m (nsfont_open): The system's value for the font descent
5799 is negative, so round it down to avoid clipping.
5800
5801 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
5802
5803 * charset.c (load_charset_map_from_file)
5804 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
5805 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
5806
5807 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
5808
5809 * charset.c (load_charset_map_from_file): Allocate large
5810 charset_map_entries structure on the heap rather than the stack.
5811 (Bug#5526).
5812
5813 2010-01-31 Kenichi Handa <handa@m17n.org>
5814
5815 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
5816 size in NAME is invalid, return -1 (Bug#5396).
5817
5818 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
5819
5820 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5821 <deactivated@gmail.com> (Bug#3605).
5822
5823 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
5824
5825 * fileio.c (Frename_file): Correctly rename symlinks to
5826 directories (Bug#5496).
5827
5828 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5829
5830 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5831
5832 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5833
5834 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5835
5836 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
5837
5838 * frame.c (DEFAULT_ROWS): Change default to 35.
5839
5840 * xfns.c (x_default_font_parameter): Change default XFT font to
5841 monospace-10 (Bug#3643).
5842
5843 2010-01-29 Eli Zaretskii <eliz@gnu.org>
5844
5845 * w32inevt.c (key_event): Remove unnecessary comparison of
5846 event->uChar.AsciiChar with 128.
5847
5848 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
5849
5850 * fileio.c (Frename_file): Fix last change (Bug#5487).
5851
5852 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5853
5854 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5855
5856 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5857
5858 * xfns.c (Fx_create_frame): Remove window size matching code from
5859 2010-01-15.
5860 (x_get_current_desktop, x_get_desktop_workarea): Remove.
5861
5862 2010-01-27 Jason Rumney <jasonr@gnu.org>
5863
5864 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
5865 (key_event): Use unicode for characters 128 and higher (Bug#4567).
5866
5867 2010-01-27 Kenichi Handa <handa@m17n.org>
5868
5869 * regex.c (analyse_first): Fix setting of fastmap for unibyte
5870 pattern string (Bug#4209).
5871
5872 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
5873
5874 * fileio.c (Frename_file): Call copy-directory and
5875 delete-directory for directories, in order to handle cross-device
5876 renaming (Bug#3353).
5877
5878 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5879
5880 * xfns.c (Fx_create_frame): If frame height is too big, try
5881 sizes 24 and 10. Bug #3643.
5882
5883 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5884
5885 Try and fix bug#788, hopefully for real this time.
5886 * keymap.c (shadow_lookup): Add `remap' arg.
5887 (describe_map, describe_vector): Update calls to shadow_lookup.
5888 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5889 `remapped' so this flag is applicable to `sequence'. Be careful to
5890 perform remapping during shadow_lookup check of remapped_sequences.
5891
5892 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5893
5894 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5895 png_check_sig, which has been removed in libpng 1.4.
5896
5897 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5898
5899 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5900 lacks this header file).
5901
5902 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5903
5904 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5905 as in Emacs 22.
5906
5907 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5908
5909 * lisp.h (make_pure_string): String pointer arg now points to const.
5910
5911 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5912 args now point to const.
5913
5914 2010-01-22 Eli Zaretskii <eliz@gnu.org>
5915
5916 * lread.c (Fload): Don't treat files without .elc extension as
5917 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5918 them. (bug#5303)
5919
5920 2010-01-20 Kenichi Handa <handa@m17n.org>
5921
5922 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5923 treat the source as actual byte sequence.
5924
5925 2010-01-19 Alan Mackenzie <acm@muc.de>
5926
5927 Fix spurious before-change-functions invocation from (insert ?\n).
5928 * textprop.c (set_text_properties): Rename parameter
5929 `signal_after_change_p' to `coherent_change_p', and make the
5930 invocation of `modify_region' conditional on it.
5931
5932 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5933
5934 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5935 for debug purpose.
5936 (syms_of_xsettings): Declare xft-settings.
5937
5938 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
5939
5940 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5941
5942 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5943
5944 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5945
5946 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
5947
5948 * emacs.c (standard_args): Adjust arg priorities to reflect how
5949 they are processed in startup.el.
5950
5951 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5952
5953 * Makefile.in (lisp, shortlisp): Update.
5954
5955 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5956
5957 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5958 code, link the new kboard into all_kboard before running Lisp code,
5959 and protect the new terminal with GCPRO (Bug#5365).
5960 (x_term_init): Remove unused var `atom'.
5961 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5962
5963 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5964
5965 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5966 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5967 to find out usable size of the desktop. Don't make frames larger than
5968 this. Bug #3643.
5969
5970 2010-01-15 Kenichi Handa <handa@m17n.org>
5971
5972 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5973
5974 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
5975
5976 * nsterm.m (Qnone): Define.
5977
5978 * nsfns.m (Qnone): Move definition to nsterm.m.
5979
5980 2010-01-14 Kenichi Handa <handa@m17n.org>
5981
5982 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5983 systems.
5984
5985 2010-01-14 Kenichi Handa <handa@m17n.org>
5986
5987 Make auto-composition work on all buffers even if they are
5988 fundamental mode.
5989
5990 * composite.c (Vauto_composition_mode): New variable.
5991 (composition_compute_stop_pos): Check Vauto_composition_mode
5992 instead of Vauto_composition_function.
5993 (composition_adjust_point, Ffind_composition_internal): Likewise.
5994 (syms_of_composite): Declare Lisp variable
5995 "auto-composition-mode" here.
5996
5997 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
5998
5999 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6000 during call to vendor-specific-keysyms (Bug#5365).
6001
6002 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6003
6004 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6005 Call SIGNAL_THREAD_CHECK (Bug#5333).
6006
6007 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6008 Call SIGNAL_THREAD_CHECK.
6009
6010 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6011
6012 Try to fix bug#5314. This is probably not the final word, tho.
6013 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6014 recent-auto-save-p as a side-effect.
6015 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6016 * buffer.c (Fkill_buffer, reset_buffer):
6017 * editfns.c (Fsubst_char_in_region):
6018 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6019 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6020
6021 2010-01-13 Kenichi Handa <handa@m17n.org>
6022
6023 Display buffer name, etc. in mode line by composing correctly.
6024
6025 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6026 STRING is not nil.
6027 (display_mode_element): Adjust for the change of
6028 decode_mode_spec and display_line.
6029 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6030 (display_string): Handle the case that STRING is non-null and
6031 LISP_STRING is not nil.
6032
6033 * xterm.c (x_draw_composite_glyph_string_foreground):
6034 Pay attention to s->face->overstrike.
6035
6036 * composite.c (composition_reseat_it): Don't check PT if STRING is
6037 non nil.
6038
6039 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6040
6041 * keyboard.c (read_char): Don't apply previous change when current
6042 buffer is unchanged by command execution.
6043
6044 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6045
6046 * keyboard.c (read_char): Return after executing from special map.
6047
6048 2010-01-12 Glenn Morris <rgm@gnu.org>
6049
6050 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6051 bug-gnu-emacs rather than emacs-pretest-bug.
6052
6053 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
6054
6055 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6056 initializing the Lisp variables that depend on them.
6057
6058 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6059
6060 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6061 Clear areas that will not be updated after change of menu bar lines.
6062 Clear the menu bar window's current matrix when the window gets empty.
6063
6064 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
6065
6066 * intervals.h, textprop.c (extend_property_ranges): Return value
6067 and args changed. Discard properties that begin at or after the
6068 new end (Bug#5306).
6069
6070 * editfns.c (Fformat): Caller changed.
6071
6072 * nsterm.m (ns_set_default_prefs): Delete function.
6073 (syms_of_nsterm): Initialize ns_command_modifier,
6074 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6075 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6076
6077 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6078 position (Bug#4040).
6079
6080 2010-01-09 Eli Zaretskii <eliz@gnu.org>
6081
6082 * editfns.c (Ffloat_time): Doc fix.
6083
6084 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6085
6086 * xfns.c (Fx_create_frame): Don't create frame larger than display
6087 by default bug#3643.
6088
6089 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6090
6091 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6092 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6093 windows above internal border.
6094
6095 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6096 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6097 windows above internal border.
6098
6099 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6100 tool bar windows specially.
6101
6102 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6103
6104 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6105 specially.
6106 (XTflash): Take account of menu bar height.
6107
6108 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6109 specially.
6110
6111 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6112
6113 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
6114 also be true before we can return early (bug #5339).
6115
6116 2010-01-06 David Reitter <david.reitter@gmail.com>
6117
6118 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6119 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6120 (Bug#3233).
6121
6122 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6123
6124 * font.c (font_open_entity): Enable chache and call cached_font_ok
6125 for the driver if defined.
6126 (QCuser_spec): New symbol.
6127 (font_spec_from_name): Save name as user-spec.
6128 (font_load_for_lface): Keep user-spec instead of name.
6129 (font_open_by_name): Save name as user-spec.
6130 (syms_of_font): Initialize QCuser_spec.
6131 (font_clear_prop): Clear name if it exists in font (bug#5157).
6132
6133 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6134 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6135 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6136
6137 * font.h (struct font_driver): Add cached_font_ok.
6138
6139 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6140
6141 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6142
6143 * xterm.c (x_new_font): Move code for setting rows/cols before
6144 resizing ...
6145 (x_set_window_size): ... to here. Bug #2568.
6146
6147 * gtkutil.c (xg_clear_under_internal_border): New function.
6148 (xg_frame_resized, xg_frame_set_char_size):
6149 Call xg_clear_under_internal_border.
6150 (xg_update_scrollbar_pos): Clear under old scroll bar position.
6151
6152 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
6153
6154 * keyboard.c (read_key_sequence): Catch keyboard switch after
6155 making a new tty frame (Bug#5095).
6156
6157 2010-01-05 Kenichi Handa <handa@m17n.org>
6158
6159 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6160
6161 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6162
6163 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6164 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6165 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6166
6167 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
6168
6169 * dbusbind.c (xd_add_watch): Improve debug message.
6170 (xd_remove_watch): Improve debug message. If DATA is the session
6171 bus, unset D-Bus session environment.
6172 (Fdbus_init_bus): Pass the bus as argument to
6173 dbus_connection_set_watch_functions. (Bug#5283)
6174
6175 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6178
6179 * lread.c (syms_of_lread): Make it clearer that these are the
6180 names of loaded files (Bug#5068).
6181
6182 * eval.c (run_hook_with_args): Handle the case where the global
6183 value has the obsolete single-function form (Bug#5026).
6184
6185 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
6186
6187 * minibuf.c (Fall_completions): Minor optimization.
6188
6189 2009-12-26 Eli Zaretskii <eliz@gnu.org>
6190
6191 * .gdbinit (pgx): Fix display of composite glyphs.
6192 Display cmp.from and cmp.to as well.
6193 (pitx): Fix last change.
6194
6195 2009-12-25 Kenichi Handa <handa@m17n.org>
6196
6197 * composite.h (composition_adjust_point): Update prototype.
6198
6199 * composite.c (composition_reseat_it): Don't make a composition
6200 spanning over point.
6201 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6202 composable characters.
6203 (composition_adjust_point): New arg NEW_PT. Callers changed.
6204
6205 * keyboard.c (command_loop_1): Force redisplay if the last point
6206 was within a composition.
6207 (adjust_point_for_property): Don't adjust point for automatic
6208 composition when called after buffer modification.
6209
6210 2009-12-19 Eli Zaretskii <eliz@gnu.org>
6211
6212 * .gdbinit (pitx): Don't use enum names, use their values.
6213 Remove reference to non-existing value GET_FROM_COMPOSITION.
6214 (pgx): Don't use enum names, use their values.
6215 (pitmethod): New helper command.
6216 (pitx): Use it to display iteration method.
6217 (pgrowit): New command.
6218
6219 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6220
6221 Update dependencies in Makefile.in.
6222
6223 * Makefile.in (alloc.o): Depend on termhooks.h.
6224 (atimer.o): Depend on blockinput.h.
6225 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6226 and frame.h.
6227 (callint.o): Depend on systime.h, coding.h, and composite.h.
6228 (callproc.o): Depend on buffer.h.
6229 (casefiddle.o): Don't depend on charset.h.
6230 (casetab.o): Depend on character.h.
6231 (ccl.o): Depend on composite.h.
6232 (chartab.o): Depend on ccl.h.
6233 (cm.o): Depend on dispextern.h.
6234 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6235 (coding.o): Don't depend on $(INTERVALS_H).
6236 (composite.o): Don't depend on dispextern.h explicitly (it's in
6237 $(INTERVALS_H)). Depend on ccl.h.
6238 (data.o): Depend on systime.h, coding.h, composite.h,
6239 dispextern.h, font.h, and ccl.h.
6240 (dired.o): Depend on composite.h.
6241 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6242 composite.h (it's in $(INTERVALS_H)).
6243 (doc.o): Depend on systime.h, coding.h, and composite.h.
6244 (editfns.o): Don't depend explicitly on dispextern.h.
6245 (emacs.o): Depend on frame.h and coding.h.
6246 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6247 (fileio.o): Depend on frame.h and commands.h. Don't depend
6248 explicitly on dispextern.h.
6249 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6250 composite.h.
6251 (fns.o): Don't depend on termhooks.h.
6252 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6253 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6254 coding.h, $(INTERVALS_H), window.h, xterm.h.
6255 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6256 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6257 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6258 fontset.h, ccl.h, and ftfont.h.
6259 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6260 (gtkutil.o): Depend on dispextern.h and composite.h.
6261 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6262 termhooks.h, and ccl.h.
6263 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6264 (intervals.o): Depend on systime.h and coding.h.
6265 (keyboard.o): Depend on composite.h and coding.h.
6266 (keymap.o): Depend on coding.h and frame.h.
6267 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6268 (macros.o): Depend on systime.h, coding.h, and composite.h.
6269 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6270 and atimer.h.
6271 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6272 dispextern.h explicitly.
6273 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6274 Don't depend explicitly on dispextern.h and composite.h.
6275 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6276 (regex.o): Don't depend on charset.h.
6277 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6278 (search.o): Don't depend explicitly on composite.h.
6279 (sound.o): Depend on atimer.h and systime.h.
6280 (syntax.o): Don't depend explicitly on composite.h.
6281 (sysdep.o): Depend on coding.h and composite.h.
6282 (term.o): Depend on xterm.h and buffer.h.
6283 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6284 (textprop.o): Don't depend on dispextern.h explicitly.
6285 (undo.o): Depend on dispextern.h.
6286 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6287 dispextern.h and composite.h explicitly.
6288 (xdisp.o): Depend on ccl.h.
6289 (xfaces.o): Depend on coding.h and ccl.h.
6290 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6291 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6292 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6293 ftfont.h.
6294 (xgselect.o): New dependency.
6295 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6296 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6297 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6298 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6299 (xsmfns.o): Depend on frame.h and dispextern.h.
6300 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6301 sysselect.h.
6302
6303 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6304
6305 * font.c (Fclear_font_cache): Pass correct cache argument to
6306 font_clear_cache.
6307
6308 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6309
6310 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6311 twice.
6312
6313 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6316 calling file-remote-p. Reported by Jim Meyering.
6317
6318 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
6319
6320 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
6321 avoid compiler warnings. (Bug #5217)
6322
6323 2009-12-14 Kenichi Handa <handa@m17n.org>
6324
6325 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6326 in 8-bit encoding.
6327
6328 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
6329
6330 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6331 tooltip windows.
6332
6333 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6334
6335 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6336 Xatom_net_window_type.
6337
6338 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6339 Xatom_net_window_type.
6340
6341 * xterm.c (my_log_handler): New function.
6342 (x_term_init): Set my_log_handler as log handler during gtk_init
6343 so we can filter out buggy messages. (Bug #5120).
6344
6345 * xterm.c (xg_scroll_callback): Parameter list changed,
6346 use parameter GtkScrollType to determine scroll/line/page.
6347 Only allow dragging if a button < 4 is grabbed (bug #5177).
6348 (xg_end_scroll_callback): New function.
6349 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6350 xg_create_scroll_bar.
6351
6352 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6353 (scroll_end_callback): Remove.
6354 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6355 button-release-event. Replace value-changed event with change-value,
6356 bug #5177.
6357 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6358 bug #5177.
6359
6360 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6361 (xg_create_scroll_bar): Add GCallback end_callback.
6362
6363 * xftfont.c (QClcdfilter): New variable.
6364 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6365 (syms_of_xftfont): Initialize QClcdfilter.
6366
6367 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6368
6369 * xsettings.c (struct xsettings): Add member seen.
6370 (parse_xft_settings): Update member seen with what we have read.
6371 Return non-zero if Xft-settings have been parsed, 0 otherwise.
6372 (apply_xft_settings): Only update Xft settings with what member seen
6373 indicates as new.
6374
6375 2009-12-12 Eli Zaretskii <eliz@gnu.org>
6376
6377 * dispextern.h (struct text_pos): Use EMACS_INT.
6378 (struct glyph): Use EMACS_INT for charpos.
6379 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6380 region_beg_charpos, region_end_charpos,
6381 redisplay_end_trigger_charpos, and also for
6382 iterator_stack_entry.end_charpos and
6383 iterator_stack_entry.stop_charpos.
6384
6385 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6386
6387 * gtkutil.c (scroll_end_callback): New function (bug #5177).
6388 (xg_create_scroll_bar): Call scroll_end_callback on button release
6389 event (bug #5177).
6390 (xg_event_is_for_scrollbar): != replaced with ==.
6391
6392 2009-12-12 Kenichi Handa <handa@m17n.org>
6393
6394 * ftfont.c (struct ftfont_info): New member matrix.
6395 (ftfont_open): Setup xftfont_info->matrix.
6396 (MFLTFontFT): New member matrix.
6397 (FLOOR, CEIL, ROUND): New macros.
6398 (ftfont_get_metrics): Handle matrix transformation.
6399 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6400
6401 * xftfont.c (struct xftfont_info): New member matrix.
6402 (xftfont_open): Setup xftfont_info->matrix.
6403
6404 2009-12-10 Kenichi Handa <handa@m17n.org>
6405
6406 * xdisp.c (append_space_for_newline): Consider face-remapping.
6407
6408 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6409
6410 * xsettings.c: Include "keyboard.h".
6411
6412 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6413
6414 Fix implicit function declarations.
6415 * cmds.c: Include "frame.h".
6416 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6417 * frame.h: Move declaration of delete_frame outside of
6418 HAVE_WINDOW_SYSTEM.
6419
6420 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6421
6422 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6423
6424 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6425 GTK builds.
6426
6427 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6428
6429 * unexelf.c (unexec): Don't search for .data twice.
6430
6431 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
6432
6433 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6434 if push failed.
6435 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6436 of push_display_prop (Bug#5000).
6437
6438 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6439 value of font_list_entities (Bug#5085).
6440
6441 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
6442
6443 Fix `string-to-number' to deal consistently with integers and floats.
6444 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6445 trailing characters, not just whitespace.
6446 (read1): Pass new arg 0 to keep old behavior.
6447 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6448 trailing chars, as it is already done for integers. Doc fixes.
6449 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6450
6451 2009-12-04 Eli Zaretskii <eliz@gnu.org>
6452
6453 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6454 Delete unused enumeration value.
6455
6456 2009-12-03 Eli Zaretskii <eliz@gnu.org>
6457
6458 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6459
6460 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6461
6462 * process.c (Fmake_network_process): Fix up the tests for
6463 "connectionless socket", so they DTRT for seqpacket sockets as well.
6464
6465 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6466
6467 * process.c (Qseqpacket): New symbol.
6468 (HAVE_SEQPACKET): New macro.
6469 (Fmake_network_process): Accept new :type `seqpacket'.
6470 (init_process): Add `seqpacket' feature when applicable.
6471 (syms_of_process): Initialize Qseqpacket.
6472
6473 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6474
6475 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6476 if entity is Qnil.
6477
6478 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6479
6480 * print.c (print_preprocess): Preprocess the key_and_value table of
6481 hashtables, even tho they're "hidden" (bug#5082).
6482
6483 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6484
6485 * frame.c (frame_make_pointer_invisible)
6486 (frame_make_pointer_visible): Declare f before statements.
6487
6488 2009-11-28 Eli Zaretskii <eliz@gnu.org>
6489
6490 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6491 omitted dependencies on lisp.h.
6492
6493 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6494
6495 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6496 is NULL.
6497
6498 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6499
6500 * frame.c (frame_make_pointer_invisible)
6501 (frame_make_pointer_visible): Just return if there isn't any selected
6502 frame.
6503
6504 * search.c (simple_search): Remove warning by making *p const.
6505
6506 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6507
6508 * xdisp.c (power_letter): Remove duplicate const.
6509
6510 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6511
6512 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6513
6514 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
6515 defaults (bug #5025).
6516
6517 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6518
6519 * insdel.c (adjust_markers_for_delete): Move it in the
6520 right direction! (bug#4803)
6521
6522 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6523
6524 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6525
6526 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6527
6528 2009-11-24 Glenn Morris <rgm@gnu.org>
6529
6530 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6531
6532 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6533
6534 * Makefile.in: Must create deps for ecrt0.o in its rule.
6535
6536 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6537 because that is what Gtk+ font dialog understands.
6538
6539 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6540 of Fcopy_sequence.
6541 (font_open_by_name): Put name given into QCname for font-object returned.
6542
6543 * frame.c (x_set_font): Save original font name as frame parameter
6544 font-parameter.
6545
6546 * xsettings.c (set_default_xft_settings): New function.
6547 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6548 is found.
6549
6550 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6551
6552 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6553 searching backwards through multibyte buffer.
6554
6555 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6556
6557 * xterm.c: #include xgselect.h.
6558 (x_initialize): Call xgselect_initialize.
6559
6560 * xsettings.c (something_changedCB): C++ comments => C comments.
6561 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6562 does that now.
6563
6564 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6565 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6566 (scroll_bar_button_cb): Remove.
6567 (create_menus): C++ comments => C comments. Don't bind grab-notify
6568 event.
6569 (xg_create_scroll_bar): Don't bind button-press-event and
6570 button-release-event.
6571
6572 * process.c: Include xgselect.h if defined (USE_GTK) ||
6573 defined (HAVE_GCONF).
6574 (wait_reading_process_output): Call xg_select for the same condition.
6575
6576 * xgselect.c (xg_select): New function to better integrate with
6577 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6578
6579 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6580
6581 * Makefile.in (XOBJ): Add xgselect.o.
6582
6583 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6584
6585 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6586 Remove ignored second argument. All callers changed.
6587 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6588 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6589 * xdisp.c (string_char_and_length): Likewise.
6590
6591 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6592
6593 * xterm.c (x_new_font):
6594 * print.c (print_object):
6595 * cmds.c (Fself_insert_command): Move declarations before statements.
6596
6597 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6598
6599 * s/cygwin.h: Remove unneeded linker flags.
6600
6601 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6602
6603 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6604
6605 * xsettings.h: Declare xsettings_get_system_font.
6606
6607 * xsettings.c (xsettings_get_system_font): New function.
6608 (init_gconf): No use initiating gconf unless we have Xft also.
6609 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6610 HAVE_GCONF.
6611
6612 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6613 add a blank entry so it doesn't collapse into nothing.
6614
6615 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6616
6617 * lread.c (Funintern): Comment out last change.
6618
6619 2009-11-19 Richard Stallman <rms@gnu.org>
6620
6621 * lread.c (Funintern): Error if symbol is t or nil.
6622
6623 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6624
6625 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6626 representation of Lisp integers.
6627 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6628
6629 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6630
6631 * lisp.h: Remove declaration of Ffont_get_system_font.
6632 * xfns.c: Move include of "xsettings.h".
6633 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6634
6635 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6636
6637 * xsettings.c (something_changedCB, Ffont_get_system_font):
6638 Check use_system_font.
6639 (syms_of_xsettings): DEFVAR font-use-system-font.
6640
6641 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6642
6643 * xfns.c (x_default_font_parameter): Remove dead assignment.
6644
6645 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6646
6647 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6648
6649 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
6650 not have FC_LCD_*. #define them if not there.
6651
6652 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
6653
6654 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6655
6656 * xterm.c (handle_one_xevent): Call xft_settings_event for
6657 ClientMessage, PropertyNotify and DestroyNotify.
6658 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6659 Call xsettings_initialize.
6660
6661 * xftfont.c (xftfont_fix_match): New function.
6662 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6663 Call xftfont_fix_match after XftFontMatch.
6664
6665 * xfont.c (xfont_driver): Initialize all members.
6666
6667 * xfns.c (x_default_font_parameter):
6668 Try font from Ffont_get_system_font.
6669 Do not get font from x_default_parameter if we got one from
6670 Ffont_get_system_font.
6671 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
6672
6673 * w32font.c (w32font_driver): Initialize all members.
6674
6675 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6676
6677 * lisp.h: Declare syms_of_xsettings.
6678
6679 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6680 Handle CONFIG_CHANGED_EVENT.
6681
6682 * ftfont.c (ftfont_filter_properties): New function.
6683
6684 * frame.c (x_set_font): Remove unused variable lval.
6685
6686 * font.h (struct font_driver): Add filter_properties.
6687
6688 * font.c (font_put_extra): Don't return if val is nil, it means
6689 boolean option is off.
6690 (font_parse_fcname): Collect all extra properties in extra_props
6691 and call filter_properties for all drivers with extra_props and
6692 font as parameter.
6693 (font_open_entity): Do not use cache, it does not pick up new
6694 fontconfig settings like hinting.
6695 (font_load_for_lface): If spec had a name in it, store it in entity.
6696
6697 * emacs.c (main): Call syms_of_xsettings.
6698
6699 * config.in: HAVE_GCONF is new.
6700
6701 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6702 xsettings.o is new.
6703
6704 2009-11-17 Kenichi Handa <handa@m17n.org>
6705
6706 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6707 back to the default font in case that no suitable font is found.
6708
6709 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6710
6711 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6712 Suggested by Chad Brown <yandros@mit.edu>.
6713 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6714
6715 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6716
6717 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6718
6719 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6720
6721 * Makefile.in: Ignore errors from mkdir when creating deps directory.
6722
6723 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6724
6725 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6726 has a parent.
6727
6728 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
6729 dependency files in deps/. Include those files into Makefile.
6730
6731 * config.in: Generated (AUTO_DEPEND).
6732
6733 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
6734
6735 * dbusbind.c (Vdbus_registered_objects_table): Rename from
6736 Vdbus_registered_functions_table, because it contains also
6737 properties. Fix docstring.
6738 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
6739
6740 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6741
6742 * alloc.c (mark_object): Don't reprocess marked strings.
6743 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6744 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6745
6746 2009-11-13 Kenichi Handa <handa@m17n.org>
6747
6748 * category.c (word_boundary_p): Adjust for the change of the
6749 semantics of Vword_combining_categories.
6750 (Vword_combining_categories): Describe the slight change of the
6751 semantics.
6752
6753 2009-11-13 Eli Zaretskii <eliz@gnu.org>
6754
6755 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6756
6757 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6758
6759 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6760
6761 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6762
6763 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
6764
6765 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6766
6767 2009-11-11 David Reitter <david.reitter@gmail.com>
6768
6769 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6770 variables to fix 2009-11-09 change.
6771
6772 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6773
6774 * process.c (ifflag_def): Make flag_sym constant.
6775 (Fnetwork_interface_info): Use a constant pointer.
6776 (ifflag_table):
6777 * xfns.c (cursor_bits):
6778 * xdisp.c (power_letter):
6779 * termcap.c (speeds, esctab):
6780 * sysdep.c (baud_convert):
6781 * keyboard.c (lispy_accent_codes, modifier_names):
6782 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6783 (jpeg_format, tiff_format, gif_format, svg_format)
6784 (interlace_start, interlace_increment, gs_format):
6785 * gtkutil.c (separator_names):
6786 * fringe.c (swap_nibble):
6787 * fns.c (base64_value_to_char, base64_char_to_value):
6788 * fileio.c (make_temp_name_tbl):
6789 * coding.c (suffixes): Make constant.
6790
6791 * frame.c (make_initial_frame):
6792 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6793 build_string.
6794 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6795
6796 * s/freebsd.h:
6797 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6798
6799 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6800 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6801
6802 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6803 * xterm.c (syms_of_xterm):
6804 * xfaces.c (syms_of_xfaces):
6805 * xdisp.c (syms_of_xdisp):
6806 * lread.c (syms_of_lread):
6807 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6808 build_string.
6809
6810 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6811
6812 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6813
6814 * fns.c (Fplist_get): Merge the active and the commented out code.
6815
6816 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6817
6818 * keyboard.h: Declare timer_check.
6819
6820 * keyboard.c (timer_check_2): New function that does what the old
6821 timer_check did.
6822 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6823 returned, i.e. don't return -1 with timers pending.
6824
6825 * process.c: Remove extern declaration of timer_check.
6826
6827 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6828 even if timer_check returned -1.
6829
6830 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6831 xg_dialog_data.
6832 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6833 the event loop.
6834 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6835 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6836 Destroy the dialog after xg_dialog_run.
6837
6838 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6839
6840 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6841
6842 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6843
6844 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6845
6846 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
6847
6848 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6849
6850 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6851
6852 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6853 w32menu.c, and nsmenu.m.
6854 Simplify the obsolete case where position is nil.
6855 (cleanup_popup_menu): New function, moved from nsmenu.m.
6856 (struct skp): Remove slot `notreal'.
6857 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6858 adjust callers.
6859 (single_menu_item): Adjust call to parse_menu_item.
6860 (syms_of_menu): Defsubr x-popup-menu.
6861 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6862 (keymap_panes): Don't export any more.
6863 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6864 (xmenu_show): Declare.
6865 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6866 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6867 * keyboard.h (parse_menu_item): Update declaration.
6868 * xmenu.c (Fx_popup_menu): Remove.
6869 (syms_of_xmenu): Don't defsubr x-popup-menu.
6870 * w32menu.c (Fx_popup_menu): Remove.
6871 (syms_of_w32menu): Don't defsubr x-popup-menu.
6872 * nsmenu.m (cleanup_popup_menu): Remove.
6873 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6874 moved to menu.c's Fx_popup_menu.
6875 (Fx_popup_menu): Remove.
6876 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6877 menu_items (it's done in menu.c already).
6878
6879 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6880
6881 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6882 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6883
6884 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
6885
6886 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
6887 xmenu_show. Hide any tooltip before opening a menu.
6888 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6889 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6890
6891 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6892
6893 Let integers use up 2 tags to give them one extra bit and thus double
6894 their range.
6895 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6896 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6897 New macros.
6898 (enum Lisp_Type): Use them. Give explicit values.
6899 (Lisp_Type_Limit): Remove.
6900 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6901 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6902 Pay attention to USE_2_TAGS_FOR_INTS.
6903 (INTEGERP): Use LISP_INT_TAG_P.
6904 * fns.c (internal_equal): Simplify the default case.
6905 (sxhash): Use case_Lisp_Int.
6906 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6907 any more.
6908 (Ftype_of): Use case_Lisp_Int.
6909 (store_symval_forwarding): Take into account the fact that Ints can
6910 now have more than one tag.
6911 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
6912 (buffer_slot_type_mismatch):
6913 * xfaces.c (face_attr_equal_p):
6914 * print.c (print_object):
6915 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6916 Use case_Lisp_Int.
6917
6918 2009-11-06 Eli Zaretskii <eliz@gnu.org>
6919
6920 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6921
6922 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6923 warning.
6924
6925 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6926
6927 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6928
6929 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6930
6931 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6932 ButtonPressRelease and MotionNotify (bug#4870).
6933
6934 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6935
6936 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6937
6938 * xterm.c (syms_of_xterm):
6939 * xselect.c (syms_of_xselect):
6940 * xmenu.c (syms_of_xmenu):
6941 * xfns.c (syms_of_xfns):
6942 * xfaces.c (syms_of_xfaces):
6943 * xdisp.c (syms_of_xdisp):
6944 * window.c (syms_of_window):
6945 * w32fns.c (syms_of_w32fns):
6946 * undo.c (syms_of_undo):
6947 * textprop.c (syms_of_textprop):
6948 * terminal.c (syms_of_terminal):
6949 * syntax.c (syms_of_syntax):
6950 * sound.c (syms_of_sound):
6951 * search.c (syms_of_search):
6952 * print.c (syms_of_print):
6953 * minibuf.c (syms_of_minibuf):
6954 * macros.c (syms_of_macros):
6955 * keymap.c (syms_of_keymap, initial_define_key)
6956 (initial_define_lispy_key):
6957 * keyboard.c (syms_of_keyboard):
6958 * insdel.c (syms_of_insdel):
6959 * image.c (syms_of_image):
6960 * fringe.c (syms_of_fringe):
6961 * frame.c (syms_of_frame):
6962 * fontset.c (syms_of_fontset):
6963 * fns.c (syms_of_fns):
6964 * fns.c (syms_of_fns):
6965 * fileio.c (syms_of_fileio):
6966 * fileio.c (syms_of_fileio):
6967 * eval.c (syms_of_eval):
6968 * doc.c (syms_of_doc):
6969 * dispnew.c (syms_of_display):
6970 * dired.c (syms_of_dired):
6971 * dbusbind.c (syms_of_dbusbind):
6972 * data.c (syms_of_data):
6973 * composite.c (syms_of_composite):
6974 * coding.c (syms_of_coding):
6975 * cmds.c (syms_of_cmds):
6976 * charset.c (define_charset_internal, syms_of_character):
6977 * ccl.c (syms_of_ccl):
6978 * category.c (syms_of_category, init_category_once):
6979 * casetab.c (syms_of_casetab):
6980 * casefiddle.c (syms_of_casefiddle):
6981 * callint.c (syms_of_callint):
6982 * bytecode.c (syms_of_bytecode):
6983 * buffer.c (keys_of_buffer, syms_of_buffer):
6984 * alloc.c (syms_of_alloc):
6985 * process.c (syms_of_process, init_process):
6986 * lread.c (syms_of_lread, init_obarray):
6987 * font.c (build_style_table):
6988 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6989 intern_c_string, calls to make_pure_string with
6990 make_pure_c_string. Use pure_cons instead of Fcons.
6991
6992 * process.c (socket_options): Make it const.
6993 (set_socket_option, init_process): Use a const pointer.
6994
6995 * lread.c (intern_c_string): New function.
6996 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6997 (defvar_int): Uset it. Make the name const char*.
6998
6999 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7000 (defvar_int): Update prototypes.
7001 (DEFUN, EXFUN): Support for prototypes is now required.
7002 (intern_c_string): New prototype.
7003 (struct Lisp_Subr): Make symbol_name constant.
7004
7005 * font.c (struct table_entry): Remove unused member. Make NAMES
7006 constant.
7007 (weight_table, slant_table, width_table): Make constant.
7008
7009 * emacs.c (struct standard_args): Make name and longname constant.
7010
7011 * character.h (DEFSYM): Use intern_c_string.
7012
7013 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7014
7015 * alloc.c (make_pure_c_string): New function.
7016
7017 * eval.c (Fautoload): Purecopy all arguments.
7018
7019 2009-11-05 Kenichi Handa <handa@m17n.org>
7020
7021 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7022 the buffer in case of replace.
7023
7024 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7025
7026 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7027
7028 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7029
7030 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7031 when applicable (bug#4851).
7032
7033 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7034 (P_): Support for prototypes is now required.
7035
7036 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7039 (Bug#4827).
7040
7041 2009-10-30 Eli Zaretskii <eliz@gnu.org>
7042
7043 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
7044
7045 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7046
7047 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7048
7049 * lread.c (Fload): Purecopy the file name when building
7050 Vpreloaded_file_list.
7051
7052 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7053
7054 * w32fns.c (syms_of_w32fns): Change default value of
7055 w32-scroll-lock-modifier to nil. (Bug#2827)
7056
7057 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7058
7059 * minibuf.c (Fall_completions): Fix typos in docstring.
7060
7061 2009-10-26 Andreas Schwab <schwab@redhat.com>
7062
7063 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7064
7065 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7066
7067 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7068 For delta < 0, skip check that only makes sense when the mini-window
7069 is going to be enlarged. (Bug#4534)
7070
7071 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
7072
7073 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7074 string in menu maps (Bug#4471).
7075
7076 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
7077
7078 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7079 FRAME_NS_VIEW on terminal frames (Bug#4765).
7080
7081 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7082
7083 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7084 DBUS_TYPE_UINTnn separately to get proper sign extension.
7085
7086 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7087 can properly handle unsigned types.
7088 (make_uid, make_gid): Remove.
7089
7090 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7091 types again.
7092
7093 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
7094 (system_process_attributes): Likewise.
7095
7096 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7097
7098 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7099
7100 * eval.c (Fautoload): Purecopy the filename. Simplify.
7101
7102 * category.c (Fdefine_category): Purecopy docstring.
7103
7104 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7105
7106 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7107
7108 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7109
7110 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
7111
7112 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7113 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7114 (Bug#4775).
7115
7116 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7117
7118 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7119 (init_fileio_once):
7120 * lisp.h (init_fileio_once): Remove.
7121 * emacs.c (main): Don't call init_fileio_once.
7122
7123 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7124
7125 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7126
7127 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7128
7129 * doprnt.c (doprnt): Fix overflow check.
7130
7131 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7132
7133 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7134
7135 * xterm.h (x_wait_for_event): Declare it.
7136
7137 * xterm.c (pending_event_wait): New variable.
7138 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7139 see pending_event_wait.eventtype.
7140 (handle_one_xevent): Don't change gravity when parent changes.
7141 (x_new_font): Call change_frame_size with new rows/columns before we
7142 try to resize the frame.
7143 (x_wait_for_event): New function.
7144 (x_set_window_size_1): Don't change gravity unless change_gravity
7145 is set.
7146 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7147 don't change frame size, instead wait for the ConfigureNotify.
7148 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7149 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7150 (x_initialize): Initialize pending_event_wait.
7151
7152 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7153 size.
7154
7155 * widget.c (EmacsFrameSetValues): Add comment.
7156 (EmacsFrameSetCharSize): Just call x_set_window_size.
7157
7158 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7159 x_wait_for_event.
7160 (flush_and_sync): Remove again.
7161 (xg_get_font_name): Suggest monospace if no previous font is known.
7162
7163 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7164
7165 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
7166 8th bit, since that only made sense in the ASCII world (bug#4751).
7167
7168 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7169
7170 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7171 processing pending events when event is filtered for input method.
7172 (Bug#3681)
7173
7174 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
7175
7176 * fns.c: Add #endif accidentally removed in previous change.
7177
7178 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7179
7180 * fns.c: Remove code for unsupported system: MAC_OS.
7181 * image.c: Likewise. Include setjmp.h.
7182
7183 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7184
7185 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7186 pixel -1 (bug #4742).
7187
7188 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7189
7190 * process.c (create_pty): Remove conditionals for no longer
7191 supported systems: UNIPLUS and RTU.
7192
7193 * xterm.c:
7194 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7195
7196 * alloc.c: Do not define struct catchtag.
7197 * eval.c: Move struct catchtag definition ...
7198 * lisp.h: ... here.
7199
7200 * image.c: Move png.h #include earlier to avoid warnings.
7201
7202 * xterm.c:
7203 * xsmfns.c:
7204 * xselect.c:
7205 * xrdb.c:
7206 * xmenu.c:
7207 * xftfont.c:
7208 * xfont.c:
7209 * xfns.c:
7210 * xfaces.c:
7211 * xdisp.c:
7212 * window.c:
7213 * widget.c:
7214 * w32xfns.c:
7215 * w32uniscribe.c:
7216 * w32term.c:
7217 * w32select.c:
7218 * w32reg.c:
7219 * w32proc.c:
7220 * w32menu.c:
7221 * w32inevt.c:
7222 * w32heap.c:
7223 * w32font.c:
7224 * w32fns.c:
7225 * w32console.c:
7226 * w32.c:
7227 * w16select.c:
7228 * vm-limit.c:
7229 * unexsol.c:
7230 * unexec.c:
7231 * unexcw.c:
7232 * unexaix.c:
7233 * undo.c:
7234 * tparam.c:
7235 * textprop.c:
7236 * terminfo.c:
7237 * terminal.c:
7238 * termcap.c:
7239 * term.c:
7240 * syntax.c:
7241 * sound.c:
7242 * sheap.c:
7243 * search.c:
7244 * scroll.c:
7245 * region-cache.c:
7246 * regex.c:
7247 * ralloc.c:
7248 * process.c:
7249 * print.c:
7250 * nsterm.m:
7251 * nsselect.m:
7252 * nsmenu.m:
7253 * nsimage.m:
7254 * nsfont.m:
7255 * nsfns.m:
7256 * msdos.c:
7257 * minibuf.c:
7258 * menu.c:
7259 * marker.c:
7260 * macros.c:
7261 * keymap.c:
7262 * keyboard.c:
7263 * intervals.c:
7264 * insdel.c:
7265 * indent.c:
7266 * gtkutil.c:
7267 * ftxfont.c:
7268 * ftfont.c:
7269 * fringe.c:
7270 * frame.c:
7271 * fontset.c:
7272 * font.c:
7273 * fns.c:
7274 * floatfns.c:
7275 * filelock.c:
7276 * fileio.c:
7277 * emacs.c:
7278 * editfns.c:
7279 * dosfns.c:
7280 * doprnt.c:
7281 * doc.c:
7282 * dispnew.c:
7283 * dired.c:
7284 * dbusbind.c:
7285 * data.c:
7286 * composite.c:
7287 * coding.c:
7288 * cmds.c:
7289 * cm.c:
7290 * chartab.c:
7291 * charset.c:
7292 * character.c:
7293 * ccl.c:
7294 * category.c:
7295 * casetab.c:
7296 * casefiddle.c:
7297 * callproc.c:
7298 * callint.c:
7299 * bytecode.c:
7300 * buffer.c:
7301 * atimer.c: Include setjmp.h. (Bug#4643)
7302
7303 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7304
7305 Remove leftover table unibyte_to_multibyte_table.
7306 * character.c (unibyte_to_multibyte_table): Remove.
7307 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7308 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7309 * character.h (UNIBYTE_TO_CHAR): New macro.
7310 (MAKE_CHAR_MULTIBYTE): Use it.
7311 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7312 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7313 (message_dolog, set_message_1):
7314 * search.c (Freplace_match):
7315 * editfns.c (Fcompare_buffer_substrings):
7316 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7317 (concat):
7318 * insdel.c (copy_text, count_size_as_multibyte):
7319 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7320 * term.c (produce_glyphs):
7321 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7322 * regex.c (RE_CHAR_TO_MULTIBYTE):
7323 * cmds.c (internal_self_insert):
7324 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7325
7326 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7327
7328 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7329
7330 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7331
7332 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
7333
7334 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7335
7336 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7337
7338 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7339 still needed under Tiger.
7340
7341 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7342
7343 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7344 __Apple__.
7345
7346 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7347
7348 2009-10-15 Kenichi Handa <handa@m17n.org>
7349
7350 * print.c (print_object): Escape a symbol like "2E10" too.
7351
7352 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
7353
7354 Cleanups and changes for 64-bit compile under Snow Leopard.
7355 Based on suggestions by Erik Charlebois.
7356
7357 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7358
7359 * nsfont.m (ns_char_width): Replace deprecated call.
7360 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7361 cast argument.
7362 (nsfont_open): Use ns_char_width() everywhere.
7363 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
7364
7365 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7366
7367 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7368 where appropriate.
7369
7370 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7371 where appropriate.
7372 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7373 Use stringWithUTF8String.
7374 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7375
7376 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7377 Add formal protocol mention to inheritance.
7378 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7379
7380 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7381 Fix printf format.
7382 (ns_query_color): Use CGFloat where appropriate.
7383 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
7384 (EmacsScroller-mouseDown:): Use long format in printf, and cast
7385 argument.
7386
7387 * config.in (NS_HAVE_NSINTEGER): Drop.
7388
7389 * dbusbind.c (dbus-method-return-internal)
7390 (dbus-method-error-internal): Use long format in printf, and cast
7391 argument.
7392
7393 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7394 in printf, and cast argument.
7395
7396 * process.c (list_processes_1): Use long format in printf, and
7397 cast argument.
7398
7399 2009-10-11 Glenn Morris <rgm@gnu.org>
7400
7401 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7402
7403 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7404
7405 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7406 menu bar with a small width so it doesn't enlarge the frame.
7407
7408 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
7409
7410 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7411
7412 2009-10-06 Glenn Morris <rgm@gnu.org>
7413
7414 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7415 SOME_MACHINE_LISP (this enters indirectly via DOC).
7416
7417 2009-10-05 Eli Zaretskii <eliz@gnu.org>
7418
7419 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7420
7421 2009-10-04 Eli Zaretskii <eliz@gnu.org>
7422
7423 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7424 Doc fix.
7425
7426 2009-10-03 Martin Rudalics <rudalics@gmx.at>
7427
7428 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7429
7430 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
7431
7432 * lisp.h (Qdelete_directory_internal): Remove, because it is not
7433 used anymore outside fileio.c.
7434
7435 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7436
7437 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
7438
7439 * lisp.h (Qdelete_directory_internal):
7440 Declare, instead of Qdelete_directory.
7441
7442 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7443
7444 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7445
7446 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7447
7448 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
7449
7450 * fileio.c (Fdelete_directory_internal): Rename from
7451 Fdelete_directory. It is not a command anymore. It has no file
7452 name handler.
7453
7454 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7455
7456 * xdisp.c (get_next_display_element): Use an enum in last change.
7457
7458 2009-09-28 Kenichi Handa <handa@m17n.org>
7459
7460 * xdisp.c (get_next_display_element): Pay attention to
7461 unibyte_display_via_language_environment in handling
7462 Vnobreak_char_display.
7463
7464 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7465
7466 * nsterm.h (ns_app_name): New extern variable.
7467
7468 * nsterm.m (ns_app_name): New variable.
7469 (ns_term_init): Set and use it.
7470 (ns_term_shutdown): Use it.
7471
7472 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7473 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7474
7475 * nsfns.m (ns_set_name_iconic, ns_set_name)
7476 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7477 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7478
7479 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7480 Remove double-casting in client_data comparison.
7481
7482 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7483
7484 * keyboard.c (make_lispy_event): Remember last wheel direction.
7485 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7486
7487 2009-09-26 Glenn Morris <rgm@gnu.org>
7488
7489 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7490 internal.elc. Add term/pc-win.elc.
7491 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7492 term/x-win.elc.
7493 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7494 term/w32-win.elc.
7495 (NS_SUPPORT): New.
7496 (lisp): Add NS_SUPPORT.
7497 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7498
7499 2009-09-25 David Reitter <david.reitter@gmail.com>
7500
7501 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7502 on Mac OS X 10.6+ (bug#4513).
7503
7504 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7505
7506 * frame.c (xrdb_get_resource): Return nil for empty string resources;
7507 some parts of Emacs code (like font selection) don't grok them.
7508 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
7509
7510 2009-09-24 Andreas Schwab <schwab@redhat.com>
7511
7512 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7513
7514 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
7515
7516 * dired.c (Fdirectory_files): Fix typo in docstring.
7517
7518 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7519
7520 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7521 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7522 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7523 under GNUstep.
7524 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7525
7526 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7527 glyph advancement.
7528
7529 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7530
7531 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
7532 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
7533
7534 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7535 deleted (bug #4492).
7536
7537 * nsfont.m (Vns_reg_to_script): New lisp variable.
7538 (syms_of_nsfont): Declare it.
7539 (ns_registry_to_script): New function.
7540 (ns_get_req_script): Call it.
7541 (ns_findfonts): Don't give up on non-unicode registry.
7542
7543 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7544
7545 2009-09-20 Tom Tromey <tromey@redhat.com>
7546
7547 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7548 batch mode (bug#4228).
7549
7550 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
7551
7552 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
7553 carefully. (Bug #4339)
7554
7555 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
7556
7557 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
7558
7559 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7560
7561 * emacs.c (inhibit_x_resources): Update doc string for NS.
7562 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
7563 legacy code for -NXHost. Fix error printf in daemon case.
7564
7565 * nsterm.h (ns_no_defaults): Remove.
7566
7567 * nsterm.m (ns_no_defaults): Remove.
7568 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7569 (ns_use_qd_smoothing): Remove legacy variable.
7570 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7571 don't update the NSWindow itself.
7572 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
7573 state detection and store user rect ourselves. (Bug #3581)
7574
7575 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7576 ns_use_qd_smoothing.
7577
7578 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7579 platform versions. Drop support for emacs-20-style face specs.
7580 (x-close-connection): Drop PSFlush() under OS X.
7581 (x-focus-frame): Activate the app first. (Bug #4180)
7582
7583 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
7584
7585 * emacs.c (inhibit_x_resources): New variable.
7586 (main) [HAVE_NS]: Don't process --quick command line option.
7587 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7588
7589 * lisp.h (inhibit_x_resources): Declare it extern.
7590
7591 * w32reg.c (x_get_string_resource):
7592 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7593
7594 2009-09-17 Eli Zaretskii <eliz@gnu.org>
7595
7596 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7597 Add lisp/term/internal.elc.
7598
7599 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7600
7601 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7602 (bug#4461).
7603
7604 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7605
7606 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7607
7608 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7609 (OBJECTS_MACHINE): Remove, unused.
7610
7611 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7612
7613 * frame.c (x_get_resource_string): Remove unused.
7614
7615 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7616
7617 * xterm.c (x_new_font): Call change_frame_size before calling
7618 x_set_window_size, in case frame size won't change.
7619
7620 * frame.c (x_set_font): Remove dead code.
7621
7622 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7623
7624 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7625
7626 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7627
7628 * lread.c (Fload): Don't output a message after loading an obsolete
7629 package any more (done in Lisp now).
7630
7631 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
7632
7633 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7634
7635 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7636
7637 * keymap.c (Fwhere_is_internal): Use nconc2.
7638
7639 2009-09-11 Alan Mackenzie <acm@muc.de>
7640
7641 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7642 batch mode.
7643
7644 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7645
7646 * xdisp.c (display_mode_element): Detect cycles.
7647
7648 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7649
7650 * keymap.c (where_is_internal): Don't erroneously return nil right after
7651 filling the cache.
7652 (where_is_internal_1): Fix up typo.
7653
7654 2009-09-11 Glenn Morris <rgm@gnu.org>
7655
7656 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7657 share a common doc-string.
7658
7659 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7660
7661 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7662 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7663
7664 * keymap.c (QCadvertised_binding): New constant.
7665 (syms_of_keymap): Initialize it.
7666 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7667 if applicable.
7668
7669 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7672 (parse_menu_item): Streamline since bindings are recomputed all the
7673 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7674 more and don't support lmenu's menu-alias any more either.
7675
7676 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7677 (where_is_internal): Strip it down to only traverse the keymaps.
7678 Move the cache handling from Fwhere_is_internal to here.
7679 (Fwhere_is_internal): Move the handling of remapping and the choice of
7680 the best binding from where_is_internal to here.
7681 Unify the cached/noncached paths, so remapping is also handled
7682 correctly when the cache is used, and so the cache can be used to
7683 speed up remap-handling when applicable.
7684 Give preference to non-remapped bindings.
7685 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7686 non-remapped bindings.
7687 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7688 command remapping.
7689
7690 * xdisp.c (display_mode_element): Move list length limit from 50 to
7691 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7692
7693 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
7694
7695 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7696
7697 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7698
7699 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7700 (Bug#4334)
7701
7702 * keymap.c (where_is_internal): Filter out shadowed remappings.
7703 Assume that where_is_internal returns unshadowed bindings to simplify
7704 the code and get rid of the gotos. Use ASIZE.
7705
7706 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7707
7708 * xterm.c (x_focus_changed): If we get a focusout and pointer
7709 is invisible, make it visible.
7710
7711 * xterm.h: Remove condition for declaration of
7712 x_*_window_to_frame.
7713
7714 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7715
7716 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7717 initial terminal as well.
7718
7719 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7720
7721 * xterm.h: Rename x_non_menubar_window_to_frame to
7722 x_menubar_window_to_frame.
7723
7724 * xterm.c: Remove declarations also in xterm.h.
7725 (XTmouse_position): Do not return valid positions
7726 for clicks in the menubar and the toolbar for Gtk+.
7727
7728 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7729 if the widget for the event has the same top level as a frame,
7730 return the frame.
7731 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7732 internal windows, bug #4122.
7733 (x_non_menubar_window_to_frame): Remove.
7734
7735 2009-09-02 Glenn Morris <rgm@gnu.org>
7736
7737 * buffer.c (default-major-mode): Move most of the doc from here...
7738 (major-mode): ... to here.
7739
7740 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
7741
7742 * process.c (wait_reading_process_output): Keep the descriptor
7743 when pty is used by a non-child process, e.g., in I/O buffer of
7744 GDB this allows inferior to be restarted.
7745
7746 2009-08-29 Eli Zaretskii <eliz@gnu.org>
7747
7748 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7749 both branches into one.
7750
7751 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7752
7753 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7754 (main): Use enable-multibyte-characters rather than
7755 default-enable-multibyte-characters. Output a warning message when
7756 running a unibyte session.
7757
7758 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7759
7760 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7761 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7762 (copy_data_segment): Also copy __program_vars section.
7763 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7764 (dump_it) [LC_DYLD_INFO]: Use it.
7765
7766 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7767
7768 2009-08-28 Eli Zaretskii <eliz@gnu.org>
7769
7770 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7771 $(SRC)/buildobj.h.
7772 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7773 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7774 $(SRC)/buildobj.h.
7775 (clean): Add buildobj.h.
7776
7777 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7778
7779 * print.c (print_object): Set escapeflag to 1 when printing
7780 hashtable keys and values.
7781
7782 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7783
7784 * lread.c (read_integer): Use doubles (and potentially return a float
7785 number) as we do in string-to-number.
7786 (read1): Use strtol to read integers, signal errors on strtol's
7787 overflow and use floats if strtol's output is too large for
7788 Elisp integers.
7789
7790 2009-08-27 Eli Zaretskii <eliz@gnu.org>
7791
7792 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7793 (make-buildobj-SH): Fix last change.
7794 (SRC): Move to before where it's first used.
7795
7796 2009-08-27 Kenichi Handa <handa@m17n.org>
7797
7798 * process.c (send_process): Use encode_coding_object instead of
7799 encode_coding_string to perform eol-conversion even if the string
7800 is unibyte.
7801
7802 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7803 character.
7804
7805 * cmds.c (Fself_insert_command): Avoid unnecessay
7806 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
7807
7808 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7809
7810 * callproc.c (Fcall_process): Remove always true #if.
7811
7812 * lisp.h: Replace #if 0 code for checking with text pointing to
7813 the --enable-checking configure flag.
7814
7815 * emacs.c (main): Mention the --enable-profiling configure flag
7816 instead of using CFLAGS.
7817
7818 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
7819
7820 * Makefile.in (buildobj.h): New target.
7821 (doc.o): Depend on it.
7822 (temacs${EXEEXT}): Don't generate buildobj.lst.
7823 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7824 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7825 ($(BLD)/doc.$(O)): Depend on it.
7826 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7827 provided by Eli Zaretskii.)
7828 ($(TEMACS)): Don't generate buildobj.lst.
7829 * doc.c: Include buildobj.h.
7830 (buildobj): New static variable.
7831 (Fsnarf_documentation): Use it, instead of opening and reading
7832 buildobj.lst.
7833
7834 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
7835
7836 * dbusbind.c (Fdbus_call_method)
7837 (Fdbus_call_method_asynchronously): Use English numeric format for
7838 timeout values in doc string.
7839
7840 2009-08-25 Kenichi Handa <handa@m17n.org>
7841
7842 * alloc.c (mark_char_table): New function.
7843 (mark_object): Use mark_char_table for a char-table.
7844
7845 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7846 (CHAR_TABLE_REF): Use it.
7847
7848 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
7849
7850 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7851 before invoking the newly build emacs to check for load-path
7852 shadowing.
7853
7854 2009-08-22 Glenn Morris <rgm@gnu.org>
7855
7856 * Makefile.in (bootstrap_exe): New variable.
7857 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7858 Use ${bootstrap_exe}.
7859
7860 2009-08-22 Eli Zaretskii <eliz@gnu.org>
7861
7862 * coding.h (encode_coding_string): Don't encode unibyte strings.
7863 (Bug#4047)
7864
7865 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
7866
7867 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7868
7869 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7870 intended as hotfix only.
7871 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7872
7873 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7874
7875 * nsterm.m (ns_get_color): Update documentation properly for last
7876 change, and clean up loose ends in the code left by it. Fix
7877 longstanding bug with 16-bit hex parsing, and add support for
7878 yet another X11 format (rgb:r/g/b) for compatibility.
7879 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7880 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7881
7882 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7883
7884 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7885
7886 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
7887
7888 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7889 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7890 (xd_initialize, xd_pending_messages): Check, whether
7891 $DBUS_SESSION_BUS_ADDRESS is set.
7892
7893 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7894
7895 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7896
7897 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7898
7899 2009-08-20 Glenn Morris <rgm@gnu.org>
7900
7901 * emacs.c (system-type): Doc fix.
7902
7903 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7904
7905 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7906 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7907
7908 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
7909
7910 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7911 New functions.
7912 (xd_initialize): Revert change from 2009-08-16.
7913
7914 2009-08-18 Kenichi Handa <handa@m17n.org>
7915
7916 * fontset.c (Ffontset_font): If a nil element is found in a
7917 font-group vector, return nil.
7918
7919 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
7920
7921 * process.c (status_notify): Don't perform redisplay.
7922 (Fdelete_process, list_processes_1, process_send_signal):
7923 Expliticly perform redisplay.
7924 (wait_reading_process_output): Always check process status, but
7925 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7926
7927 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
7928
7929 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
7930 (XFLOAT_INIT): New macro for storing a float value.
7931 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7932 * fns.c (sxhash): Copy out the value of a float in order to
7933 examine its bytes.
7934 * dbusbind.c (xd_append_arg): Likewise.
7935
7936 * emacs.c (main): Don't call syms_of_data twice.
7937
7938 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
7939
7940 * dbusbind.c (xd_initialize): Add connection file descriptor to
7941 input_wait_mask, in order to let select() detect, whether a new
7942 message has been arrived.
7943 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
7944
7945 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
7946
7947 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7948 New functions.
7949
7950 * lisp.h (xd_pending_messages): Declare.
7951
7952 * keyboard.c (readable_events): Call xd_pending_messages.
7953
7954 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
7955
7956 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
7957
7958 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7959
7960 * buffer.c (set_buffer_internal_1)
7961 (swap_out_buffer_local_variables): Check for unbound local
7962 variables (Bug#4138).
7963
7964 2009-08-14 Eli Zaretskii <eliz@gnu.org>
7965
7966 * process.c (create_pty): Fix last change.
7967
7968 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
7969
7970 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7971 (xbm_load_image): Caller changed.
7972 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
7973
7974 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
7975
7976 * process.c (create_pty): New function.
7977 (Fstart_process): Use it to allow Emacs to just associate a pty
7978 with the buffer. See associated change in gdb-mi.el.
7979 (list_processes_1): Deal with no program name.
7980 (start_process_unwind): Use pid == -2 to mean no process.
7981
7982 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7983
7984 * cmds.c (nonundocount): New global variable.
7985 (keys_of_cmds): Initialize it.
7986 (Fself_insert_command): Use it to combine upto 20 sequential chars
7987 into a single undo entry, just like the Qself_insert_command code in
7988 keyboard.c does.
7989 Call frame_make_pointer_invisible, also like the Qself_insert_command
7990 code in keyboard.c does.
7991 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7992 than its own local replacement for it.
7993
7994 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
7995
7996 * fns.c (concat): Don't re-set string length to its current value.
7997
7998 * coding.h (decode_coding_string, encode_coding_string):
7999 Use SBYTES macro.
8000
8001 * doprnt.c (doprnt_lisp): Delete unused function.
8002 (doprnt): Merge with doprnt1, discarding lispstrings code.
8003 * lisp.h (doprnt_lisp): Don't declare.
8004
8005 2009-08-07 Juri Linkov <juri@jurta.org>
8006
8007 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8008
8009 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8010
8011 * print.c (syms_of_print): Undo previous change.
8012
8013 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8014
8015 * lread.c (read1, syms_of_lread): Read hashtables back from the
8016 readable format.
8017
8018 * print.c (print_preprocess, print_object): Print hashtables fully
8019 and readably.
8020 (syms_of_print): Provide 'hashtable-print-readable.
8021
8022 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8023
8024 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8025 no family set.
8026 (nsfont_open): Handle case when entity has no family.
8027
8028 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8029
8030 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8031 element, not a list, for match case.
8032
8033 2009-07-28 Kenichi Handa <handa@m17n.org>
8034
8035 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8036 rigidly.
8037
8038 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8039 font_parse_xlfd. Check font properties more rigidly.
8040
8041 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8042
8043 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8044 bsd-common.h.
8045
8046 2009-07-27 Kenichi Handa <handa@m17n.org>
8047
8048 * xfaces.c (face_with_height): Call font_clear_prop.
8049
8050 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
8051
8052 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8053
8054 * xterm.c (x_term_init): Use Qx.
8055
8056 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8057
8058 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
8059 (ns_get_color): Revert 2009-07-16 change.
8060
8061 2009-07-25 Eli Zaretskii <eliz@gnu.org>
8062
8063 * lread.c (syms_of_lread) <force_load_messages>: New variable.
8064 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
8065
8066 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
8067
8068 * coding.h (decode_coding_string, encode_coding_string):
8069 Use SCHARS macro.
8070
8071 * lread.c: Rewrite 2009-07-21 changes.
8072 (load_depth): Delete.
8073 (Qload_in_progress): New variable.
8074 (load_unwind): Don't reference load_depth or load_in_progress.
8075 (Fload): Likewise; specbind Qload_in_progress instead.
8076 (init_lread): Don't initialize load_depth.
8077 (syms_of_lread): Initialize and protect Qload_in_progress.
8078
8079 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8080
8081 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8082
8083 2009-07-23 Yavor Doganov <yavor@gnu.org>
8084
8085 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8086
8087 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8088
8089 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
8090 Bugs 3792, 3720, 2402.
8091 (ns_lookup_indexed_color): Check for bad index.
8092 (ns_index_color): Init unused slot to 0.
8093 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8094 Bug 3714, possibly 3082.
8095
8096 2009-07-22 Jason Rumney <jasonr@gnu.org>
8097
8098 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8099 Position IME window at cursor (Bug#2570).
8100 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8101 (globals_of_w32fns): Dynamically load functions required above.
8102
8103 * w32term.c (w32_draw_window_cursor): Send message to reposition
8104 any IME window.
8105
8106 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8107
8108 * fileio.c: Revert 2009-07-16 changes.
8109 (Vauto_save_include_big_deletions): New variable.
8110 (Fdo_auto_save): Disable auto-save only if
8111 auto-save-include-big-deletions is nil.
8112
8113 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8114
8115 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8116 the overflowed pixels into account (Bug#3879).
8117
8118 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
8119
8120 * lread.c (load_depth): New variable.
8121 (Fload, load_unwind, init_lread): Set it to the load recursion
8122 depth; set load_in_progress as a simple boolean based on the
8123 current load_depth. (Bug#3892)
8124
8125 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8126
8127 * nsfont.m (ns_has_attribute): Remove.
8128 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8129
8130 2009-07-18 Juri Linkov <juri@jurta.org>
8131
8132 * process.c (Fset_process_query_on_exit_flag): Mention killing
8133 a buffer in docstring.
8134
8135 2009-07-17 Kenichi Handa <handa@m17n.org>
8136
8137 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8138
8139 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8140
8141 * nsfns.m (Fns_set_alpha): Remove function.
8142 (syms_of_nsfns): Don't defsubr it.
8143
8144 * nsterm.m (ns_get_color): Remove incompatible color formats.
8145 (ns_color_to_lisp): Generate #rrggbb color format string.
8146
8147 2009-07-16 Richard Stallman <rms@gnu.org>
8148
8149 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8150 (Fset_buffer_auto_saved): Handle save_length = -2.
8151
8152 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
8153
8154 * xterm.c (Qx_gtk_map_stock): New var.
8155
8156 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8157 of calling intern each time.
8158
8159 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8160
8161 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8162 does tiling.
8163
8164 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8165
8166 2009-07-14 Kenichi Handa <handa@m17n.org>
8167
8168 * font.c (font_vconcat_entity_vectors): New function.
8169 (struct font_sort_data): New member font_driver_preference.
8170 (font_compare): Check font_driver_preference.
8171 (font_sort_entities): The format of the first argument changed.
8172 (font_delete_unmatched): Likewise.
8173 (font_list_entities): The return type changed.
8174 (font_select_entity): The format of the second argument changed.
8175 (font_find_for_lface): Adjuste for the above changes.
8176 Don't suppress the checking of C even if the repertory supports it.
8177 (Flist_fonts): Adjust for the above changes.
8178
8179 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8180 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
8181 Reject a font who has adstyle property that is different from a
8182 langname derived from registry property.
8183 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
8184
8185 2009-07-13 Eli Zaretskii <eliz@gnu.org>
8186
8187 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8188 local copy of dirfilename.
8189
8190 2009-07-13 Kenichi Handa <handa@m17n.org>
8191
8192 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8193 against max_char.
8194
8195 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8196 calling XSYMBOL (sym).
8197
8198 2009-07-11 Eli Zaretskii <eliz@gnu.org>
8199
8200 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8201 New function.
8202 (directory_files_internal) [WINDOWSNT]:
8203 Bind w32-get-true-file-attributes to either t or nil, depending whether
8204 the filesystem of the directory is fast or slow.
8205
8206 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8207 file name.
8208 (is_slow_fs): New function.
8209 (stat): Use it to determine whether to issue more system calls to
8210 get accurate file attributes, when w32-get-true-file-attributes is
8211 `local'.
8212
8213 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8214
8215 * xfns.c (Fx_select_font): Remember last font selected in
8216 x_last_font_name and use that the next time. Also try the frame
8217 parameter font-parameter as default to the font dialog.
8218
8219 2009-07-10 Kenichi Handa <handa@m17n.org>
8220
8221 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8222
8223 2009-07-09 Eli Zaretskii <eliz@gnu.org>
8224
8225 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8226
8227 * w32.c (stat): Treat UNC file names as residing on remote
8228 drives. (Bug#3542)
8229
8230 2009-07-09 Kenichi Handa <handa@m17n.org>
8231
8232 * fontset.c (fontset_find_font): Fix previous change.
8233
8234 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
8235
8236 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8237 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8238 error flag.
8239
8240 2009-07-08 Kenichi Handa <handa@m17n.org>
8241
8242 * fontset.c (fontset_find_font): Fix the logic of handling
8243 charset_matched.
8244 (font_for_char): Delete unused var.
8245 (generate_ascii_font_name): Delete it.
8246
8247 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8248
8249 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8250 (encode_coding_sjis): Fix the code range check.
8251
8252 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8255 (Fexpand_file_name): Copy string data properly (Bug#3772).
8256
8257 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8258
8259 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8260 first MapNotify.
8261
8262 2009-07-07 Kenichi Handa <handa@m17n.org>
8263
8264 * character.h (unibyte_has_multibyte_table): Delete extern.
8265 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8266
8267 * charset.c (Fset_charset_priority): Update charset_unibyte.
8268 (syms_of_charset): Initialize charset_unibyte.
8269
8270 * character.c (unibyte_has_multibyte_table): Delete it.
8271 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8272 charset_unibyte.
8273 (multibyte_char_to_unibyte_safe): Likewise.
8274 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8275
8276 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
8277 (x_produce_glyphs): Likewise.
8278
8279 * .gdbinit (xcharset): Fix the treating $arg0.
8280
8281 2009-07-04 Eli Zaretskii <eliz@gnu.org>
8282
8283 Emulation of `getloadavg' on MS-Windows.
8284 * w32.c: Include float.h.
8285 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8286 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8287 (get_native_system_info, get_system_times): New functions.
8288 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8289 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8290 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8291 g_b_init_get_system_times, and num_of_processors.
8292
8293 2009-07-03 Jason Rumney <jasonr@gnu.org>
8294
8295 * w32term.c (w32_initialize): Use standard types.
8296
8297 2009-07-03 Eli Zaretskii <eliz@gnu.org>
8298
8299 * dired.c (Ffile_attributes): Decode user and group names by the
8300 locale's encoding. (Bug#3443)
8301
8302 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8303
8304 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8305 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8306
8307 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8308
8309 * term.c (init_tty): Remove spurious #ifdef.
8310
8311 * m/mips.h: Mention this file is also used for netbsd.
8312 * m/pmax.h: Remove file.
8313
8314 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8315
8316 * xterm.h (struct x_display_info): Add invisible_cursor.
8317 (struct x_output): Add current_cursor.
8318
8319 * xterm.c (XTtoggle_invisible_pointer): New function.
8320 (x_define_frame_cursor): Don't define cursor if invisible or the
8321 same as before. Set current_cursor.
8322 (x_create_terminal): Set toggle_invisible_pointer_hook.
8323
8324 * xfns.c (make_invisible_cursor): New function.
8325 (x_set_mouse_color): Call make_invisible_cursor.
8326 Set current_cursor.
8327 (x_window): Set current_cursor.
8328
8329 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8330
8331 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8332 inserting a character.
8333 (read_avail_input): Call frame_make_pointer_visible.
8334
8335 * frame.c (Vmake_pointer_invisible): New variable.
8336 (frame_make_pointer_invisible, frame_make_pointer_visible):
8337 New functions.
8338 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8339
8340 * frame.h: Declare frame_make_pointer_invisible and
8341 frame_make_pointer_visible.
8342 (struct frame): Add pointer_invisible.
8343
8344 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8345
8346 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8347 frame isn't visible.
8348 (xg_frame_resized): If width/height is -1, get size of window
8349 from X server.
8350
8351 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8352 for MapNotify.
8353
8354 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
8355 here or call change_frame_size. Just call flush_and_sync.
8356 (flush_and_sync): Reintroduce.
8357
8358 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
8359
8360 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
8361
8362 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8363 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8364
8365 * frame.h: Declare Qsticky.
8366
8367 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8368
8369 * nsfns.m (ns_frame_parm_handlers): Ditto.
8370
8371 * frame.c: Declare Qsticky.
8372 (frame_parms): Add sticky.
8373
8374 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8375
8376 * xterm.h: Declare x_set_sticky.
8377
8378 * xterm.c (x_set_sticky): New function.
8379
8380 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8381 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8382 xg_tool_bar_proxy_help_callback.
8383
8384 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8385
8386 * frame.c: Qmaximized is new.
8387 (x_set_frame_parameters): Do not handle fullscreen specially.
8388 Only set width and height if explicitly set.
8389 (x_set_fullscreen): Handle Qmaximized.
8390 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8391 (syms_of_frame): Initialize Qmaximized.
8392
8393 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8394 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
8395
8396 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
8397 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8398 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
8399 set gravity to NorthWestGravity when USE_GTK.
8400 (set_wm_state): New function.
8401 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
8402 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8403 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
8404 or the case when no window manager is running. That means remove calls
8405 to x_real_positions and x_fullscreen_adjust.
8406
8407 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8408 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8409 flush_and_sync.
8410 (xg_height_changed): New function.
8411 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
8412 and gtk_window_set_policy. Set frame gravity after parsing the
8413 geometry string.
8414 (xg_update_frame_menubar, free_frame_menubar)
8415 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8416 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8417 Remove calls to xg_frame_set_char_size.
8418
8419 2009-07-01 Kenichi Handa <handa@m17n.org>
8420
8421 * keyboard.c (decode_keyboard_code): New function.
8422 (tty_read_avail_input): Decode the input bytes if necessary.
8423
8424 * coding.c (setup_coding_system):
8425 Initialize coding->carryover_bytes to 0.
8426 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8427 use Qno_conversion.
8428
8429 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8430
8431 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8432
8433 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
8434
8435 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
8436
8437 2009-06-30 Jason Rumney <jasonr@gnu.org>
8438
8439 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8440 is already loaded.
8441 Set user model ID if supported (bug#1849).
8442
8443 2009-06-29 Jim Meyering <meyering@redhat.com>
8444
8445 Remove useless if-before-xfree test.
8446 * nsfont.m (nsfont_close): Remove useless test.
8447 * term.c (delete_tty): Likewise.
8448 * w32.c (system_process_attributes): Likewise.
8449 * w32font.c (w32font_close): Likewise.
8450 * xfaces.c (x_free_gc): Likewise.
8451 * xselect.c (buffer): Likewise.
8452
8453 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8454
8455 * process.c (send_process): Keep decoded string in a local
8456 variable and protect it from GC. (Bug#3521)
8457
8458 2009-06-28 Eli Zaretskii <eliz@gnu.org>
8459
8460 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8461 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8462
8463 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
8464
8465 * xdisp.c (start_display, handle_face_prop)
8466 (move_it_vertically_backward, cursor_row_fully_visible_p)
8467 (redisplay_window, try_window_id, produce_image_glyph):
8468 Delete some #ifdef-ed out code chunks that are now obsolete.
8469
8470 * xterm.c (x_update_window_begin, x_new_focus_frame)
8471 (x_scroll_bar_handle_click, handle_one_xevent)
8472 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8473 (x_make_frame_visible, x_make_frame_invisible)
8474 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8475 code chunks that are now obsolete.
8476
8477 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
8478
8479 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8480 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8481 for hours, when optimzation is enabled.
8482 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8483 (xd_read_message): Make them static.
8484
8485 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8486
8487 * term.c (turn_on_face): Allow simultaneously bold and dim
8488 terminal faces (Bug#3530).
8489
8490 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
8491
8492 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8493
8494 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8495 truncation glyphs (Bug#3686).
8496
8497 2009-06-27 Glenn Morris <rgm@gnu.org>
8498
8499 * m/pmax.h: Restore file, with only netbsd portions.
8500
8501 2009-06-26 David Reitter <david.reitter@gmail.com>
8502
8503 * nsterm.m (keydown): Avoid infinite loop.
8504
8505 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8506
8507 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8508 the arg FORCE_SYMBOL.
8509
8510 2009-06-25 Kenichi Handa <handa@m17n.org>
8511
8512 * fontset.c (fontset_find_font): When a usable rfont_def is found
8513 in a fallback font-group, make it the first element of the group.
8514
8515 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
8516
8517 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8518
8519 2009-06-24 Kenichi Handa <handa@m17n.org>
8520
8521 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8522 set for C.
8523 (fontset_font): Record the availability of a font for C both in
8524 the realized fontsets of the current one and the default one.
8525
8526 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8527
8528 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8529 conditional, it is always defined on AIX.
8530
8531 2009-06-23 Miles Bader <miles@gnu.org>
8532
8533 * window.c (Vrecenter_redisplay): New variable.
8534 (syms_of_window): Initialize it.
8535 (Qtty): New extern declaration.
8536 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8537
8538 2009-06-23 Jim Meyering <meyering@redhat.com>
8539
8540 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8541 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
8542 pointer dereferences are guaranteed to be valid.
8543
8544 2009-06-23 Kenichi Handa <handa@m17n.org>
8545
8546 * emacs.c (main): Call init_font ().
8547
8548 * font.h (Vfont_log): Extern it.
8549 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8550
8551 * font.c (font_sort_entities, font_list_entities)
8552 (font_matching_entity, font_open_entity)
8553 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8554 (Vfont_log): Delete static.
8555 (font_log_env_checked): Delete this variable.
8556 (font_add_log): Don't check font_log_env_checked.
8557 (font_deferred_log): Check Vfont_log.
8558 (init_font): New function.
8559
8560 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8561
8562 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8563
8564 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8565
8566 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8567
8568 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8569 (face_for_char): Don't call font_deferred_log here.
8570 (font_for_char): Likewise.
8571
8572 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
8573
8574 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8575 rather than its background_width for drawing the overline and
8576 underline (Bug#489).
8577
8578 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8579 rather than its background_width for drawing the overline and
8580 underline (Bug#489).
8581 (xg_default_icon_file): New variable.
8582 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8583 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
8584
8585 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8586 (load_overlay_strings): Remove externs.
8587 (fast_find_position): Function deleted.
8588 (mouse_face_from_buffer_pos): New function, based on
8589 fast_find_position. Correctly handle before-strings,
8590 display-strings, and after-strings (Bug#1220).
8591 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8592
8593 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8594
8595 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
8596 (move_it_in_display_line_to, move_it_in_display_line_to)
8597 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8598
8599 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
8600
8601 * Branch for 23.1.
8602
8603 2009-06-21 Jason Rumney <jasonr@gnu.org>
8604
8605 * w32term.c (keyboard_codepage): New static variable.
8606 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8607 (w32_read_socket) [WM_CHAR]: Use it to decode character
8608 input (bug#3237).
8609 (w32_initialize): Initialize it.
8610 (codepage_for_locale): New function.
8611
8612 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
8613
8614 * process.c (status_message): Pass Faset index argument as a lisp
8615 object, so as to work with USE_LISP_UNION_TYPE.
8616
8617 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8618
8619 * coding.c (Ffind_coding_systems_region_internal):
8620 Cache checked characters.
8621
8622 2009-06-18 Kenichi Handa <handa@m17n.org>
8623
8624 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
8625
8626 2009-06-18 Andreas Schwab <aschwab@redhat.com>
8627
8628 * xdisp.c (redisplay_internal): Check that the frame is still
8629 live after redisplay of its windows.
8630 (redisplay_windows): Check that the window is still live.
8631
8632 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8633
8634 * coding.c (detect_coding_utf_16): Fix previous change.
8635
8636 2009-06-16 Kenichi Handa <handa@m17n.org>
8637
8638 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8639 UTF-16 by checking the dispersion of Eth and Oth bytes.
8640
8641 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8642
8643 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8644
8645 2009-06-15 Kenichi Handa <handa@m17n.org>
8646
8647 * process.c (status_message): Fix previous change. Be sure to
8648 decode a localized string.
8649
8650 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8651
8652 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8653 add comment explaining why.
8654
8655 2009-06-14 Sidney Markowitz <sidney@sidney.com>
8656
8657 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
8658
8659 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8660
8661 * nsfont.m (ns_attribute_value): Remove.
8662 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8663 (ns_has_attribute): Shrink the normal range.
8664 (ns_findfonts): Don't worry about requested spec in determining
8665 need for synthItal.
8666 (ns_get_covering_families): Retain scriptToFamilies.
8667
8668 2009-06-14 Seiji Zenitani <zenitani@mac.com>
8669
8670 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8671
8672 2009-06-11 Kenichi Handa <handa@m17n.org>
8673
8674 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8675 overhang for the static composition case.
8676
8677 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8678
8679 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8680 overhang for the automatic composition case.
8681
8682 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8683 composition case.
8684
8685 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
8686
8687 * xdisp.c (get_next_display_element): When handling wrap-prefix
8688 and line-prefix, treat \n as a control character (bug#3502).
8689
8690 2009-06-10 Kenichi Handa <handa@m17n.org>
8691
8692 * font.c (font_parse_family_registry): Fix for one-char foundry.
8693 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8694
8695 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8696
8697 * process.c (status_message): Fix handling of multibyte signal
8698 string (Bug#3499).
8699
8700 2009-06-09 Jim Meyering <meyering@redhat.com>
8701
8702 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8703 color name is missing.
8704
8705 2009-06-09 Kenichi Handa <handa@m17n.org>
8706
8707 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8708 FROM-CODE and TO-CODE are codepoints of CHARSET.
8709
8710 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8711
8712 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8713
8714 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8715
8716 Changes to support :script/:lang/:otf in NS font driver.
8717 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8718 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8719 indicate not part of font driver interface, and change callers.
8720 (ns_get_family): Remove pointless null check.
8721 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8722 ns_spec_to_descriptor, ns_descriptor_to_entity.
8723 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8724 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8725 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8726 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8727 (ns_get_req_script, ns_accumulate_script_ranges)
8728 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8729 New functions.
8730 (nsfont_list, nsfont_match): Use ns_findfonts.
8731 (nsfont_open): Use font descriptor instead of traits.
8732 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8733 (dump_glyphstring): Rename to ns_dump_glyphstring.
8734
8735 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8736
8737 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8738
8739 * fontset.c (fontset_from_font): Remove NS-specific code.
8740
8741 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
8742
8743 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8744 nonactive windows.
8745
8746 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
8747
8748 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
8749
8750 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8751
8752 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8753
8754 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
8755
8756 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8757 account for the overflowing of newlines into the last glyph on the
8758 display line (Bug#3482).
8759
8760 2009-06-05 David Reitter <david.reitter@gmail.com>
8761
8762 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8763 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
8764 Fns_selection_exists_p, Fns_selection_owner_p.
8765
8766 2009-06-03 Jason Rumney <jasonr@gnu.org>
8767
8768 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8769 available. (Bug#3379)
8770
8771 2009-05-29 Kenichi Handa <handa@m17n.org>
8772
8773 * coding.c (get_translation_table):
8774 Check Venable_character_translation.
8775
8776 2009-05-26 David Reitter <david.reitter@gmail.com>
8777
8778 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8779 (x_make_frame_visible): Move frame to front rather than calling
8780 ns_raise_frame().
8781 (keyDown:): Do not swallow events that aren't re-sent if frame
8782 isn't key window.
8783 (drawRect:): Do not set visibility/iconified flags because
8784 drawRect may be called by NSView even if the frame is hidden.
8785
8786 * nsfns.m (Fx_create_frame): Follow other ports in
8787 determining visibility; default to t. Ensure async_visible is set.
8788
8789 2009-05-23 Eli Zaretskii <eliz@gnu.org>
8790
8791 * dired.c (Ffile_attributes): Doc fix.
8792
8793 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
8794
8795 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8796
8797 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8798
8799 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8800 and xfont_scratch_props.
8801 (syms_of_xfont): Do it here instead.
8802 (xfont_find_ccl_program): Delete, unused.
8803 (xfont_open): Delete unused var `i'.
8804
8805 2009-05-21 Kenichi Handa <handa@m17n.org>
8806
8807 * fontset.c (Qlatin): Don't make it static.
8808
8809 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8810 New functions.
8811 (xfont_scripts_cache, xfont_scratch_props): New variables.
8812 (Qlatin, Vscalable_fonts_allowed): Extern it.
8813 (xfont_list_pattern): Argument changed. Callers changed.
8814 Check Vscalable_fonts_allowed. Check the support of a script.
8815 (xfont_list): Don't reject a font spec with :script property.
8816 (xfont_has_char): Fix setting of encoding.
8817 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8818 xfont_scratch_props.
8819
8820 2009-05-19 Kenichi Handa <handa@m17n.org>
8821
8822 * font.c (font_sort_entities): Rename from font_sort_entites.
8823 Callers changed.
8824
8825 2009-05-18 Kenichi Handa <handa@m17n.org>
8826
8827 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8828
8829 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8832 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8833
8834 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8835
8836 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8837 (x_delete_terminal): Dissociate resource database from display and
8838 then call XrmDestroyDatabase before closing display.
8839
8840 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8841
8842 * nsterm.m (ns_read_socket): Remove unused variable.
8843 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8844 whether selected frame is viable before raising it (based on patch
8845 by David Reitter), and improve commentary.
8846 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
8847
8848 2009-05-15 Kenichi Handa <handa@m17n.org>
8849
8850 * font.c (Ffont_spec): Check arguments.
8851
8852 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
8853
8854 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8855 weight when testing attributes (Bug#3282).
8856
8857 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8858
8859 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8860 what we expect to get in the next ConfigureNotify event.
8861
8862 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8863 before Xft one (Bug#1696).
8864
8865 2009-05-07 David Reitter <david.reitter@gmail.com>
8866
8867 * nsfns.m (Fx_display_planes): Compute bitplanes using
8868 NSBitsPerPixelFromDepth (Bug#3207).
8869
8870 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
8871
8872 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8873
8874 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
8875
8876 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8877
8878 2009-05-07 David Reitter <david.reitter@gmail.com>
8879
8880 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8881 Respect mouse face background.
8882
8883 2009-05-07 David Reitter <david.reitter@gmail.com>
8884
8885 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8886 Mouse movement/highlight: bracket drawing operations
8887 in ns_update_begin and ns_update_end.
8888
8889 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8890
8891 * nsfns.m (ns_get_screen): Rewrite.
8892 Don't presume selected-frame is of type `ns'.
8893
8894 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8895 all drivers.
8896
8897 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8898
8899 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8900
8901 * keyboard.h (add_user_signal): Fix typo in extern.
8902
8903 * lisp.h (add_user_signal): Remove extern.
8904
8905 * unexelf.c (unexec): Consider a section to precede the .bss section
8906 if its addresses overlap that of .bss.
8907 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8908 instead of dumping process.
8909
8910 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8911
8912 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8913
8914 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8915
8916 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8917
8918 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8919
8920 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8921 any statements.
8922
8923 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8924
8925 * process.c (read_process_output): Make sure the current buffer is
8926 always restored.
8927
8928 * coding.c (record_conversion_result): Don't modify
8929 Vlast_code_conversion_error for successful result.
8930 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8931
8932 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8933
8934 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
8935 (load_charset_map): Remove unnecessary code.
8936
8937 2009-04-30 David Reitter <david.reitter@gmail.com>
8938
8939 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
8940 through f24.
8941
8942 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
8943
8944 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8945
8946 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8947 face_at_buffer_position.
8948 (face_before_or_after_it_pos, get_next_display_element)
8949 (note_mouse_highlight): Update face_at_buffer_position call.
8950
8951 * term.c (term_mouse_highlight):
8952 * msdos.c (IT_note_mouse_highlight):
8953 * fontset.c (Finternal_char_font):
8954 * font.c (font_at, font_range): Update face_at_buffer_position call.
8955
8956 * dispextern.h (face_at_buffer_position): Update prototype.
8957
8958 2009-04-30 Kenichi Handa <handa@m17n.org>
8959
8960 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
8961
8962 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8963
8964 * callproc.c (Fcall_process): Fix GC protection. Make sure
8965 current buffer is always restored.
8966
8967 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8968
8969 * atimer.c (init_atimer): Also clear stopped_atimers.
8970
8971 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8972
8973 * process.c (create_process): Clean up merger residues of
8974 2008-07-17 change.
8975
8976 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
8977
8978 * lread.c (Vread_circle): New variable.
8979 (read1): Disable recursive read if Vread_circle is nil.
8980
8981 2009-04-29 Kenichi Handa <handa@m17n.org>
8982
8983 * fontset.h (set_default_ascii_font): Delete extern.
8984
8985 * fontset.c (set_default_ascii_font): Delete this unused function.
8986
8987 * frame.c (x_set_font): When ARG is a font-object, check if the
8988 font-object matches with the ASCII font-spec of the frame's
8989 fontset. If not, create a new fontset for the frame. (Bug #3075)
8990
8991 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8992
8993 * fns.c (Flocale_info): Protect vector from GC during decoding.
8994
8995 * process.c (Fstart_process): Protect argv strings from GC during
8996 encoding.
8997
8998 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8999
9000 * sysdep.c: Include <ctype.h>.
9001
9002 2009-04-27 David Reitter <david.reitter@gmail.com>
9003
9004 * nsfont.m (nsfont_open): Remove unused variable shrink.
9005 Remove commented-out code.
9006
9007 2009-04-26 Johan Bockgård <bojohan@gnu.org>
9008
9009 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9010
9011 2009-04-25 Jason Rumney <jasonr@gnu.org>
9012
9013 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9014
9015 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9016
9017 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9018 Swap bytes in short integer if fringe bitmap width > 8.
9019
9020 2009-04-23 Kenichi Handa <handa@m17n.org>
9021
9022 * xfaces.c (Fx_list_fonts): If a font size is specified in
9023 PATTERN, set it in returned scalable fonts.
9024
9025 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
9026
9027 * keyboard.c (Fset_input_meta_mode): Doc fix.
9028
9029 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9030
9031 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
9032
9033 * coding.c (Fterminal_coding_system): Doc fix.
9034
9035 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9036 (Fx_display_pixel_height, Fx_display_planes)
9037 (Fx_display_color_cells, Fx_server_max_request_size)
9038 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9039 (Fx_display_mm_height, Fx_display_mm_width)
9040 (Fx_display_backing_store, Fx_display_visual_class)
9041 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9042 Doc fixes, replacing "terminal id" with "terminal object".
9043 (check_x_display_info): Handle terminal objects instead of
9044 terminal ids.
9045
9046 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9047 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
9048 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9049 Doc fixes, replacing "terminal id" with "terminal object".
9050
9051 2009-04-21 Kenichi Handa <handa@m17n.org>
9052
9053 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
9054 (font_score): Check AVGWIDTH too.
9055
9056 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9057 worst case.
9058 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9059 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
9060
9061 2009-04-19 Jason Rumney <jasonr@gnu.org>
9062
9063 The following changes fix Bug#3005 for wide glyphs on each platform,
9064 without reintroducing Bug#1258 for stretch glyphs.
9065
9066 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9067 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9068 get_phys_cursor_geometry.
9069
9070 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
9071 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9072 using get_phys_cursor_geometry.
9073
9074 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9075 correctly calculated.
9076
9077 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9078
9079 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9080 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
9081 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9082 is deprecated.
9083
9084 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9085
9086 * font.c (font_put_frame_data): Use xfree instead of free.
9087
9088 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
9089
9090 * w32font.c (Qja, Qko): Remove declarations.
9091 (syms_of_w32font): Don't DEFSYM them.
9092
9093 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
9094
9095 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9096
9097 * font.h (Qja, Qko): Extern them.
9098
9099 * ftfont.c (Qja, Qko): Remove declarations.
9100
9101 * xfont.c (Qja, Qko): Remove declarations.
9102
9103 2009-04-17 Kenichi Handa <handa@m17n.org>
9104
9105 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9106 string from a vector to handle Latin-1 characters correctly.
9107
9108 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9109 entity even if the cache hits.
9110
9111 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9112
9113 * search.c (boyer_moore): Use zero as marker value for a possible
9114 match instead of depending on overflow behavior. (Bug#2844)
9115
9116 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9117 * lisp.h: Adjust prototypes.
9118
9119 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
9120
9121 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9122 change (Bug#3003).
9123
9124 2009-04-16 Kenichi Handa <handa@m17n.org>
9125
9126 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
9127
9128 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9129 adstyle.
9130
9131 * ftfont.c (Qja, Qko): Don't make them static.
9132 (enum ftfont_cache_for): New enum.
9133 (fc_charset_table): Undo the previous change.
9134 (ftfont_get_latin1_charset): Delete it.
9135 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9136 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
9137 non-scarable font, try to get AVERAGE_WIDTH.
9138 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9139 Change ft_face_cache from a list of a hash-table. Don't check
9140 `ja' and `ko' adstyle here.
9141 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9142 FTFONT_CACHE_FOR_CHARET.
9143 (ftfont_get_charset): Undo the previous change.
9144 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
9145 (ftfont_close): Likewise.
9146 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9147
9148 * font.c (font_sort_entites): Change the meaning of the arg
9149 BEST-ONLY. Don't optimize for VEC of lenght 1.
9150 (font_select_entity): Just return the value of font_sort_entites.
9151
9152 * xfaces.c (merge_face_vectors): Reflect font properties in
9153 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9154 font_clear_prop if a face attribute doesn't change.
9155
9156 * charset.h (charset_ksc5601): Extern it.
9157
9158 * charset.c (charset_ksc5601): New variable.
9159 (Fdefine_charset_internal): Set charset_ksc5601.
9160 (init_charset_once): Initialize charset_ksc5601 to -1.
9161
9162 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 * fileio.c (history_delete_duplicates): Remove unused declaration.
9165
9166 * callint.c (history_delete_duplicates): New declaration.
9167 (Fcall_interactively): Remove command history duplicates when
9168 history_delete_duplicates is true.
9169
9170 2009-04-14 Eli Zaretskii <eliz@gnu.org>
9171
9172 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9173
9174 2009-04-14 Kenichi Handa <handa@m17n.org>
9175
9176 * font.c (Ffont_info): Fix docstring. Fix the second element of
9177 the returned value (bug#2949).
9178
9179 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
9180
9181 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9182
9183 2009-04-14 Kenichi Handa <handa@m17n.org>
9184
9185 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9186 encoding charset is ascii_compatible.
9187
9188 * charset.c (Fdefine_charset_internal): Make charset
9189 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9190 code_offset is 0, and covers all ASCII characters.
9191
9192 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9193
9194 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9195 (ns_string_to_pasteboard_internal):
9196 * nsmenu.m (process_dialog):
9197 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9198 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9199 * lisp.h (Fx_load_color_file): Declare.
9200
9201 2009-04-13 Kenichi Handa <handa@m17n.org>
9202
9203 * font.c (font_delete_unmatched): Preserve the order of list elements.
9204 (font_select_entity): Suppress the code to optimize for the same
9205 kind of fonts.
9206 (font_load_for_lface): Get a font that supports at least ASCII
9207 characters.
9208
9209 * ftfont.c (Qja, Qko): New variables.
9210 (fc_charset_table): Delete uniquifier data for iso8859-1.
9211 (ftfont_get_latin1_charset): New function.
9212 (get_adstyle_property): New function.
9213 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9214 bitmap fonts.
9215 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9216 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9217 `ko' or `ja'.
9218 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
9219 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
9220 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9221 property.
9222 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9223 (syms_of_ftfont): DEFSYM Qja and Qko.
9224
9225 2009-04-09 Kenichi Handa <handa@m17n.org>
9226
9227 * charset.c (map_charset_chars): For a charset of `superset'
9228 method, fix calculation of code range.
9229
9230 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9231 from the list of extra properties.
9232 (font_clear_prop): Be sure to delete `:name' font property.
9233
9234 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9235
9236 * dispnew.c (redraw_overlapping_rows): Fix detection of
9237 overlapping for topmost and bottommost rows.
9238
9239 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
9240
9241 2009-04-06 Jason Rumney <jasonr@gnu.org>
9242
9243 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9244
9245 2009-04-06 Kenichi Handa <handa@m17n.org>
9246
9247 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9248
9249 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9250
9251 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9252
9253 * ftfont.c (ftfont_open): Fix checking of the return value of
9254 FT_Load_Char. Fix setting font->underline_thickness.
9255
9256 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
9257
9258 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9259 (Fterminal_parameters, Fterminal_parameter)
9260 (Fset_terminal_parameter): In doc string, refer to terminal
9261 objects rather than terminal ids.
9262
9263 2009-04-04 Eli Zaretskii <eliz@gnu.org>
9264
9265 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9266 ret_lim_data. (Bug#2867)
9267
9268 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
9269
9270 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9271 so they don't get wider than the window, matching 2006-01-23
9272 change to the partner function in xdisp.c (Bug#2800).
9273
9274 2009-04-03 Kenichi Handa <handa@m17n.org>
9275
9276 * print.c (print_object): Make each lowest sub_char_table start a
9277 new line (Bug#2866).
9278
9279 2009-04-02 Kenichi Handa <handa@m17n.org>
9280
9281 * fontset.c (fontset_font): Record no-font when a fontset
9282 explicitly tells not to try another font-specs.
9283
9284 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9285
9286 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9287
9288 2009-03-30 Kenichi Handa <handa@m17n.org>
9289
9290 * fontset.c (fontset_from_font): Specify only registry in a
9291 font-spec for all characters supported by that registry.
9292
9293 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9294 even if HAVE_M17N_FLT is not defined.
9295
9296 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9297
9298 * ftfont.c: Conditionalize prototyping and use of
9299 ftfont_variation_glyphs.
9300
9301 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9302
9303 * frame.c (delete_frame): Work around compiler bug.
9304
9305 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9306 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9307 Some more EMACS_INT.
9308 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9309
9310 * xdisp.c (dump_glyph): Fix typo.
9311
9312 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9313 (adjust_markers_gap_motion, adjust_markers_for_delete)
9314 (adjust_markers_for_insert, adjust_point)
9315 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9316 (make_gap, copy_text, count_size_as_multibyte, insert)
9317 (insert_and_inherit, insert_before_markers)
9318 (insert_before_markers_and_inherit, insert_1)
9319 (count_combining_before, count_combining_after, insert_1_both)
9320 (insert_from_string, insert_from_string_before_markers)
9321 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9322 (insert_from_buffer_1, adjust_after_replace)
9323 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9324 (replace_range_2, del_range, del_range_1, del_range_byte)
9325 (del_range_both, del_range_2, modify_region)
9326 (prepare_to_modify_buffer, signal_before_change)
9327 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9328 for buffer positions and sizes.
9329 * lisp.h: Adjust prototypes accordingly.
9330
9331 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9332 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9333 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9334
9335 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9336
9337 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9338
9339 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9340 lines and columns so we keep the same pixel height and width.
9341
9342 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9343 the property _NET_WM_STATE has changed.
9344 (x_handle_net_wm_state): New function to update frame parameter
9345 fullscreen.
9346 (x_term_init): Initialize atoms for _NET_WM_STATE.
9347
9348 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9349
9350 2009-03-27 Kevin Ryde <user42@zip.com.au>
9351
9352 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9353 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9354 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9355 (Fgpm_mouse_stop): Pass that new parameter.
9356 * termhooks.h (close_gpm): Adjust prototype.
9357
9358 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9359
9360 * lisp.h (Fx_focus_frame): Declare.
9361
9362 * callint.c (Fcall_interactively): For '^' just delegate the work to
9363 handle-shift-selection.
9364 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9365
9366 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
9367
9368 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9369
9370 * data.c (Qinteractive_form): New variable.
9371 (Finteractive_form): Use it.
9372
9373 * eval.c (Fcommandp): Use Qinteractive_form.
9374
9375 2009-03-24 Jason Rumney <jasonr@gnu.org>
9376
9377 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9378 Calculate total size precisely. Decode environment variables
9379 before substituting. (Bug#38)
9380
9381 2009-03-24 Kenichi Handa <handa@m17n.org>
9382
9383 * font.c (find_font_encoding): Return Qnil for unsupported
9384 encoding (Bug#2722).
9385
9386 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9387
9388 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9389 that gdpy is set.
9390
9391 2009-03-22 Alan Mackenzie <acm@muc.de>
9392
9393 * callint.c (Finteractive): Clarify the doc string - even
9394 promptless elements need \n separators.
9395
9396 2009-03-22 Jason Rumney <jasonr@gnu.org>
9397
9398 * w32term.c (syms_of_w32term): Doc fix for
9399 x-use-underline-position-properties.
9400
9401 2009-03-21 Eli Zaretskii <eliz@gnu.org>
9402
9403 * w32.c (getpwuid): Change argument type to unsigned.
9404 (struct w32_id): Change type of `rid' member to unsigned.
9405 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9406 argument ID to unsigned. All callers changed.
9407 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9408
9409 2009-03-20 Eli Zaretskii <eliz@gnu.org>
9410
9411 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9412 negative, produce a float value.
9413
9414 * dired.c (make_uid, make_gid): New functions.
9415 (Ffile_attributes): Use them to avoid negative UID and GID.
9416
9417 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
9418
9419 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9420 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9421 Fix typos in docstrings.
9422
9423 2009-03-19 Kenichi Handa <handa@m17n.org>
9424
9425 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
9426 changed, use font_load_for_lface to get a new font object.
9427 Call free_realized_fontset after handling ASCII font change.
9428
9429 * frame.c (x_set_font): Handle the case that ARG is a cons.
9430
9431 2009-03-19 Glenn Morris <rgm@gnu.org>
9432
9433 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9434
9435 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
9436
9437 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9438
9439 2009-03-19 Kenichi Handa <handa@m17n.org>
9440
9441 * charset.c (load_charset_map_from_file): When a mapfile can't be
9442 loaded, signal an error.
9443
9444 2009-03-18 Eli Zaretskii <eliz@gnu.org>
9445
9446 * dired.c (Ffile_attributes): Make sure UID and GID are always
9447 positive, even if the value is too large for a positive EMACS_INT.
9448 Doc fix.
9449
9450 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9451
9452 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9453
9454 * xmenu.c (xdialog_show): Move Fredisplay call ...
9455 (Fx_popup_dialog): ... here.
9456
9457 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9458
9459 * dired.c (file_name_completion): Disable the first optimization just
9460 installed, since it is not implemented correctly.
9461
9462 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9463
9464 * dired.c (file_name_completion): Check completion-ignored-extensions
9465 only if the entry can affect bestmatch.
9466 Stop the search early, as Ftry_completion already does.
9467
9468 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
9469
9470 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
9471
9472 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
9473
9474 * keyboard.c (parse_menu_item): Don't display remappings as menu
9475 equivalent bindings (Bug#788).
9476
9477 2009-03-15 Jason Rumney <jasonr@gnu.org>
9478
9479 * w32term.h (WM_EMACS_PAINT): New message.
9480 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9481 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9482 before passing to lisp thread. (Bug#950)
9483
9484 2009-03-14 David Reitter <david.reitter@gmail.com>
9485
9486 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9487 variable as it was never reset.
9488 (ns_term_init): Remove initialization of Lisp-settable defaults
9489 and ns_expand_space.
9490 (-setPanelFromDefaultValues): Remove ns_expand_space.
9491 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9492 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
9493 i.e. no additional spacing, similar to Carbon port.
9494
9495 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9496 * nsfns.m (ns-popup-prefs-panel): Remove.
9497
9498 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9499
9500 * sound.c (alsa_configure): Remove call to deprecated
9501 snd_pcm_sw_params_set_xfer_align.
9502
9503 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
9504
9505 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9506 after clicking in a detached tool bar.
9507 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9508
9509 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9510
9511 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9512 int/Lisp_Object mixup).
9513
9514 2009-03-13 Kenichi Handa <handa@m17n.org>
9515
9516 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
9517 Handle NAME nil and t correctly. Callers changed.
9518 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9519 (set_fontset_font): Change ARG to a vector. Handle range_list in
9520 ARG correctly.
9521 (Fset_fontset_font): Fix the case that TARGET is both a script
9522 name and charset name. Adjust the arg to set_fontset_font for
9523 the above change.
9524 (fontset_from_font): Fix previous change.
9525 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
9526 entry. If FONTSET is the default fontset, don't set the extra
9527 slot of the returning char-table.
9528
9529 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
9530
9531 * nsfns.m (Fx_close_connection): Doc fix.
9532 (Fns_do_applescript): Reflow docstring.
9533 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9534 (Fx_display_pixel_width, Fx_display_pixel_height)
9535 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9536 Fix typos in docstrings.
9537 (Fns_set_alpha): Fix typos in error messages.
9538
9539 2009-03-12 David Reitter <david.reitter@gmail.com>
9540
9541 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
9542 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9543 were used for such events.
9544
9545 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9546 (toggleToolbar, performDragOperation, runHelp): Use it.
9547
9548 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
9549 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9550
9551 2009-03-11 Kenichi Handa <handa@m17n.org>
9552
9553 * font.h (font_open_by_spec): Extern it.
9554
9555 * font.c (font_open_by_spec): New function.
9556 (font_open_by_name): Use font_open_by_spec.
9557
9558 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9559 fontset of the frame.
9560
9561 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9562 modify the default font of frames that use this fontset.
9563 (num_auto_fontsets): New variable.
9564 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9565 name. Be sure to set FONTSET_ASCII to the correct font name.
9566 (update_auto_fontset_alist): New function.
9567
9568 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
9569
9570 * makefile.w32-in: Update dependencies.
9571
9572 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9573
9574 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9575
9576 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9577
9578 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9579
9580 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
9581
9582 * lread.c (Feval_buffer): Doc fix.
9583
9584 2009-03-09 Kenichi Handa <handa@m17n.org>
9585
9586 * charset.c (Qfile_name_handler_alist): Extern it.
9587 (load_charset_map_from_file): Temporarily bind
9588 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9589
9590 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
9591
9592 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9593 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
9594
9595 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9596
9597 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9598 (x_set_window_size): Change back to calculated method of setting
9599 toolbar height under Cocoa. (Bug#2546)
9600 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9601 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9602
9603 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9604
9605 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9606 accelerator in parens under GNUstep.
9607
9608 2009-03-06 Kenichi Handa <handa@m17n.org>
9609
9610 These changes are to detect incorrect composition sequence without
9611 looking ahead the source. (Bug#2370)
9612
9613 * coding.h: Include "composite.h".
9614 (enum compisition_state): New enum.
9615 (struct compisition_status): New struct.
9616 (struct iso_2022_spec): New member cmp_status.
9617 (struct emacs_mule_spec): New struct.
9618 (struct coding_system): New members ctext_extended_segment_len and
9619 embedded_utf_8. Change the union member
9620 spec.emacs_mule_full_support to spec.emacs_mule.
9621
9622 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9623 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
9624 (MAX_ANNOTATION_LENGTH): Define to 5.
9625 (ADD_COMPOSITION_DATA): New arg nbytes.
9626 (emacs_mule_char): New arg cmp_status.
9627 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9628 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9629 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9630 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9631 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9632 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9633 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9634 (EMACS_MULE_COMPOSITION_END): New macro.
9635 (emacs_mule_finish_composition): New function.
9636 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9637 (decode_coding_emacs_mule): Avoid long looking ahead while
9638 handling composition.
9639 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9640 (ENCODE_COMPOSITION_RULE): New macro.
9641 (finish_composition): New function.
9642 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9643 (DECODE_COMPOSITION_START): New implementation.
9644 (DECODE_COMPOSITION_END): Likewise.
9645 (STORE_COMPOSITION_RULE): New macro.
9646 (decode_coding_iso_2022): Avoid long looking ahead while handling
9647 composition, CTEXT extended segment, and embedded UTF-8.
9648 (setup_coding_system): For a coding of type iso-2022, reset
9649 CODING_ISO_EXTSEGMENT_LEN (coding) and
9650 CODING_ISO_EMBEDDED_UTF_8 (coding).
9651 (get_translation): Delete arguments last_block, from_nchars,
9652 to_nchars. Callers changed.
9653 (produce_chars): Don't modify charbuf. Adjusted for the change of
9654 get_translation.
9655 (produce_composition): Adjust for the new annotation sequence.
9656 (handle_composition_annotation): Likewise.
9657 (consume_chars): Adjust for the change of get_translation.
9658
9659 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9660
9661 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
9662
9663 2009-03-05 Kenichi Handa <handa@m17n.org>
9664
9665 * font.c (font_select_entity): New function.
9666 (font_find_for_lface): Use font_select_entity to select a font.
9667
9668 * fontset.c (fontset_find_font): If a font found without
9669 restricting to the characters C doesn't support C, try to find a
9670 font with C restriction.
9671
9672 2009-03-04 Nikolaj Schumacher <me@nschum.de>
9673
9674 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
9675
9676 2009-03-04 Jason Rumney <jasonr@gnu.org>
9677
9678 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
9679 characters that have already been read. (Bug#2569)
9680
9681 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9682 Log an error message if check_image_size failed.
9683 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
9684 (gs_load): Mention max-image-size in size error message. (Bug#2560)
9685
9686 2009-03-02 Eli Zaretskii <eliz@gnu.org>
9687
9688 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9689 when decoding process output.
9690
9691 2009-03-01 Richard M Stallman <rms@gnu.org>
9692
9693 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9694
9695 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9696
9697 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9698
9699 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9700 (decode_coding_emacs_mule, decode_coding_iso_2022)
9701 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9702 (decode_coding_raw_text, decode_coding_charset)
9703 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9704 Honor inhibit-eol-conversion. (Bug #2186)
9705
9706 2009-02-28 Jason Rumney <jasonr@gnu.org>
9707
9708 * coding.c (detect_coding_charset): If not checking latin extra,
9709 fail on characters between 0x80 and 0xA0. (Bug#2354)
9710
9711 2009-02-28 Eli Zaretskii <eliz@gnu.org>
9712
9713 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
9714 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
9715
9716 2009-02-27 Glenn Morris <rgm@gnu.org>
9717
9718 * callint.c (Finteractive): Doc fix.
9719
9720 2009-02-27 Kenichi Handa <handa@m17n.org>
9721
9722 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9723
9724 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
9725
9726 * font.c (font_style_to_value): Set value for unknown symbols to
9727 100 instead of 255.
9728 (weight_table, slant_table, width_table): Treat "unspecified" as
9729 the default value.
9730
9731 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
9732
9733 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9734
9735 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9738 error as soon as a recursive load is detected.
9739
9740 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9741
9742 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9743 before caching.
9744
9745 2009-02-24 Kenichi Handa <handa@m17n.org>
9746
9747 * fontset.c (fontset_find_font): Fix the condition for checking
9748 unavailable font.
9749
9750 2009-02-24 Glenn Morris <rgm@gnu.org>
9751
9752 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9753 whitespace that confuses documentation.
9754
9755 2009-02-23 Miles Bader <miles@gnu.org>
9756
9757 * process.c (Flist_system_processes, Fprocess_attributes)
9758 (syms_of_process): Rename `system-process-attributes' to
9759 `process-attributes'.
9760
9761 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9762
9763 * coding.h (struct coding_system): Make safe_charsets a pointer to
9764 unsigned char.
9765 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9766 being 255.
9767 (SAFE_CHARSET_P): Likewise.
9768 (setup_iso_safe_charsets): Properly setup safe_charsets.
9769 (Fdefine_coding_system_internal): Likewise.
9770 (setup_coding_system): Likewise. Remove unneeded casts.
9771 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9772 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9773 unneeded casts.
9774
9775 * insdel.c (del_range_2): Don't modify gap contents when called
9776 from decode_coding_object. (Bug#1809)
9777
9778 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
9779
9780 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9781 Qfont_object.
9782 (Ftype_of): Recognize font objects.
9783
9784 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9785
9786 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9787 moved to data.c.
9788
9789 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9790
9791 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9792 async_iconified. Based on a patch by Christian Lynbech
9793 <christian.lynbech@tieto.com>.
9794 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9795
9796 2009-02-20 Glenn Morris <rgm@gnu.org>
9797
9798 * syntax.c (Fskip_chars_forward): Fix doc typo.
9799
9800 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
9801
9802 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9803
9804 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9807
9808 2009-02-19 Kenichi Handa <handa@m17n.org>
9809
9810 * coding.c (detect_coding): Preserve coding->mode.
9811 Don't overflow coding->carryover. (Bug#2370)
9812
9813 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9814
9815 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9816
9817 2009-02-18 Kenichi Handa <handa@m17n.org>
9818
9819 * font.c (font_check_otf_features): Fix handling of `nil' element.
9820 (Ffont_spec): Describe :lang and :otf in the docstring.
9821
9822 2009-02-16 Andreas Schwab <schwab@suse.de>
9823
9824 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9825 string.
9826
9827 2009-02-16 Kenichi Handa <handa@m17n.org>
9828
9829 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
9830 (Bug#1723)
9831
9832 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
9833
9834 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
9835
9836 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9837 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9838
9839 2009-02-14 Eli Zaretskii <eliz@gnu.org>
9840
9841 * msdos.c (MAX_SCREEN_BUF): New macro.
9842 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9843 Encode the entire run of glyphs sharing the same face, instead of
9844 doing that one glyph at a time (fixes a bug with displaying
9845 double-size characters).
9846
9847 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9848
9849 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9850
9851 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9852 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
9853 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
9854
9855 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
9856 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
9857
9858 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9859
9860 * keyboard.c (adjust_point_for_property): Allow stopping between two
9861 invisible areas.
9862
9863 2009-02-12 Jason Rumney <jasonr@gnu.org>
9864
9865 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9866 (add_font_entity_to_list): Call check_face_name even when family
9867 is unspecified.
9868
9869 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9870 Release DC when finished. Use NULL window to refer to desktop.
9871 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
9872
9873 * w32font.c (add_font_entity_to_list): Fix check for substituted
9874 raster fonts. (Bug#2219)
9875
9876 2009-02-12 Kenichi Handa <handa@m17n.org>
9877
9878 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9879 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9880 (autocmp_chars): Use fast_looking_at. Don't compose more
9881 characters than MAX_COMPOSITION_COMPONENTS.
9882 (find_automatic_composition): While looking forward and backward,
9883 check static composition. Fix where to stop looking forward.
9884 (composition_adjust_point): Fix checking of static composition.
9885 (Fcomposition_get_gstring): Pay attention to
9886 MAX_COMPOSITION_COMPONENTS.
9887
9888 * lisp.h (fast_looking_at): Extern it.
9889
9890 * search.c (fast_looking_at): New function.
9891
9892 * term.c (encode_terminal_code): Adjust for the change of
9893 <struct glyph>.u.cmp.to.
9894 (append_composite_glyph): Likewise.
9895
9896 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
9897 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9898 composition.
9899 (append_composite_glyph): Adjust for the change of
9900 <strcut glyph>.u.cmp.to.
9901
9902 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
9903
9904 * casetab.c (init_casetab_once):
9905 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9906 * font.c (font_update_lface):
9907 * fontset.c (Fnew_fontset):
9908 * ftfont.c (ftfont_drive_otf):
9909 * xfont.c (xfont_open):
9910 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9911
9912 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9913
9914 * fileio.c (Fwrite_region): !NILP -> CONSP.
9915
9916 2009-02-10 Andreas Schwab <schwab@suse.de>
9917
9918 * process.c (send_process): Properly relocate pointer into data
9919 when using encoded data. (Bug#2272)
9920
9921 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9922
9923 * coding.c (detect_coding_charset): Fix previous change.
9924
9925 2009-02-08 Jason Rumney <jasonr@gnu.org>
9926
9927 * w32fns.c (w32_hide_hourglass): Handle case where frame
9928 disappeared while hourglass was displayed. (Bug #2193)
9929
9930 2009-02-07 Andreas Schwab <schwab@suse.de>
9931
9932 * unexelf.c (unexec): Fix error message.
9933
9934 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9935
9936 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
9937 when modal window is active. (Bug #2152)
9938 (applicationShouldTerminate:): Remove now-unneeded while loop
9939 around NSRunAlertPanel.
9940
9941 * nsmenu.m (popupSession): New file-global variable.
9942 (pop_down_menu): End the popupSession before closing dialog.
9943 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9944 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9945 don't query NSApp for events (just sleep instead).
9946
9947 2009-02-07 Eli Zaretskii <eliz@gnu.org>
9948
9949 * coding.c (syms_of_coding) <translation-table-for-input>:
9950 Modify doc string to discourage use for character code unification.
9951
9952 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9953
9954 * atimer.c (run_timers): Update pending_atimers.
9955
9956 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
9957
9958 * image.c (svg_load_image): Fix last change.
9959
9960 * xfns.c (Fx_create_frame): Signal an error if no font is
9961 found (Bug#2147).
9962
9963 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
9964
9965 * character.c (syms_of_character) <script-representative-chars>:
9966 Fix typo in docstring.
9967
9968 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9969
9970 * nsmenu.m (pop_down_menu): New function.
9971 (ns_popup_dialog): Call it on unwind.
9972 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9973 call timer_check() (Bug#2154).
9974 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9975 handling_signal is set.
9976 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9977
9978 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
9979
9980 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9981
9982 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9983
9984 * keyboard.c (poll_for_input_1, handle_async_input):
9985 Set handling_signal under HAVE_NS.
9986
9987 2009-02-04 Glenn Morris <rgm@gnu.org>
9988
9989 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9990
9991 2009-02-04 Kenichi Handa <handa@m17n.org>
9992
9993 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9994
9995 * charset.c (Fchar_charset): New optional arg restriction.
9996
9997 * coding.h (coding_system_charset_list): Extern it.
9998
9999 * coding.c (coding_system_charset_list): New function.
10000
10001 * composite.c: Include coding.h and termhooks.h.
10002 (composition_gstring_p): Fix for the terminal case.
10003 (composition_gstring_width): Likewise.
10004 (fill_gstring_body): Likewise.
10005 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10006 the frame.
10007 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10008 is within a composition.
10009 (Fcomposition_get_gstring): Fix the terminal case.
10010
10011 * term.c (encode_terminal_code): Fix handling of composition.
10012 (produce_composite_glyph): For static composition, get pixel_width
10013 from struct composition.
10014
10015 2009-02-02 Andreas Schwab <schwab@suse.de>
10016
10017 * unexelf.c (unexec): Handle unaligned bss offset.
10018
10019 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10020
10021 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10022 XT,w32read_socket changes to ns_read_socket.
10023
10024 * keyboard.c (handle_interrupt): Don't call
10025 quit_throw_to_read_char() under NS.
10026
10027 * blockinput.h: Remove NS-specific code.
10028
10029 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10030
10031 * dispnew.c (window_change_signal): Don't try to get the size of a
10032 suspended tty frame.
10033 * term.c (Fresume_tty): Resize if the size has changed while the
10034 tty was suspended.
10035
10036 * alloc.c (mark_stack): Properly conditionalize previous change.
10037
10038 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10039
10040 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10041 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10042 Remove; this code is not used on Windows.
10043
10044 2009-01-30 Eli Zaretskii <eliz@gnu.org>
10045
10046 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10047 EOLs that also has stray ^M characters.
10048
10049 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10050
10051 * atimer.c (run_timers, alarm_signal_handler):
10052 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10053 * w32inevt.c (w32_console_read_socket):
10054 * w32term.c (w32_read_socket):
10055 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10056
10057 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10060 Initialize it as a relative filename pattern.
10061 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10062 (Fcall_process_region): Simplify temp file creation using
10063 temporary-file-directory.
10064
10065 2009-01-29 Eli Zaretskii <eliz@gnu.org>
10066
10067 * msdos.c: Rename pending_signals to msdos_pending_signals.
10068 (sig_suspender, sigprocmask): Adjust.
10069
10070 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
10071
10072 * keyboard.c (pending_signals): New var.
10073 (poll_for_input, input_available_signal, init_keyboard): Set it.
10074 (process_pending_signals): New function.
10075
10076 * lisp.h (QUIT): Check pending_signals instead of
10077 interrupt_input_pending. Use process_pending_signals.
10078
10079 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
10080
10081 * process.c (wait_reading_process_output): Use process_pending_signals.
10082
10083 * sysdep.c (emacs_write): Use process_pending_signals.
10084
10085 * xterm.c (XTread_socket): Update pending_signals.
10086
10087 * w32term.c (w32_read_socket): Update pending_signals.
10088
10089 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10090
10091 2009-01-29 Kenichi Handa <handa@m17n.org>
10092
10093 * xftfont.c (xftfont_has_char): New function.
10094 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10095
10096 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10097
10098 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10099 under GNUstep.
10100 (ns_query_color): New declaration.
10101
10102 * nsterm.m (ns_confirm_quit): New variable.
10103 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10104 (EmacsApp-applicationShouldTerminate:): Use it.
10105 (EmacsPrefsController): Let user set it.
10106 (ns_query_color): New function.
10107 (ns_defined_color): Use it.
10108 (ns_initialize): Drop.
10109 (ns_term_init): Add two lines from ns_initialize(), and set
10110 input_interrupt_mode to nil.
10111
10112 * image.c (svg_load_image): Don't right-shift background RGB when
10113 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
10114
10115 2009-01-28 Kenichi Handa <handa@m17n.org>
10116
10117 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10118 (fontset_get_font_group): Remember that no font-group is specified
10119 for C.
10120
10121 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
10122
10123 * fns.c (concat): Check for string overflow (bug#1787).
10124
10125 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10126 Quadruple undo limits (bug#1501).
10127
10128 2009-01-27 Kenichi Handa <handa@m17n.org>
10129
10130 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10131 directly use GT_Get_Char_index.
10132
10133 * xftfont.c (struct xftfont_info): New member `index'.
10134
10135 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10136 (Ffontset_font): Adjust for the change of fontset entry.
10137
10138 2009-01-26 Kenichi Handa <handa@m17n.org>
10139
10140 * fontset.c (fontset_find_font): Fix handling of non-cons return
10141 value of fontset_get_font_group.
10142 (fontset_font): Revert last change.
10143
10144 2009-01-26 Jason Rumney <jasonr@gnu.org>
10145
10146 * w32font.c (w32font_list_internal): Return quickly if registry is
10147 unknown. Simplify final return.
10148 (add_font_entity_to_list): Break complex logic down into more
10149 manageable chunks. Move unknown registry check to
10150 w32font_list_internal.
10151
10152 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10153
10154 Changes to remove Feval calls from GUI under NS.
10155
10156 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10157 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
10158 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10159
10160 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10161 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10162 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10163 instead of NON_ASCII_KEYSTROKE_EVENT.
10164 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10165 (EmacsApp-applicationShouldTerminate:): Query user.
10166 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10167 instead of Feval.
10168
10169 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10170
10171 * keyboard.c (kbd_buffer_get_event): Check for it.
10172 (keys_of_keyboard): Define lispy keys for
10173 ns-put/unput-working-text.
10174
10175 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10176 versions.
10177 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10178
10179 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
10180
10181 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
10182 setting current_buffer directly. (Bug#2044)
10183
10184 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
10185
10186 * fontset.c (fontset_font): If we know there is no font, don't do
10187 any work. (Bug#1952, bug#1990).
10188
10189 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
10190
10191 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10192
10193 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
10194 (ns_no_defaults): New declaration.
10195 (main): Use it.
10196
10197 * nsterm.h (ns_no_defaults): New declaration.
10198
10199 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
10200
10201 * nsterm.m (ns_no_defaults): New variable.
10202 (ns_initialize): Don't read defaults when ns_no_defaults.
10203 (EmacsView-readSelectionFromPasteboard:)
10204 (writeSelectionToPasteboard:types:): New stubbed-out methods for
10205 NSServicesRequests protocol. (Bug#1435)
10206 (ns_dumpglyphs_stretch): New function.
10207 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
10208 of 2008-11-15 to other terms. (Bug#615)
10209
10210 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10211
10212 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10213
10214 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10215 call for Sparc64.
10216
10217 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10218
10219 * nsfns.m:
10220 * nsgui.h:
10221 * nsmenu.m:
10222 * nsselect.m:
10223 * nsterm.h:
10224 * nsterm.m: Remove '23' comments that indicated code added during
10225 update from emacs-20 -> emacs-23.
10226
10227 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10228
10229 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
10230 ns_alternate_modifier. (Bug#1217)
10231
10232 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10233 Display all shortcuts, including those w/o super modifier.
10234
10235 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10236
10237 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
10238
10239 * fileio.c (Vwrite_region_post_annotation_function)
10240 (Vwrite_region_annotation_buffers): New vars.
10241 (build_annotations_unwind): Just reset
10242 Vwrite_region_annotation_buffers.
10243 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10244 Call write-region-post-annotation-function.
10245 (build_annotations): Add to Vwrite_region_annotation_buffers if
10246 buffer changes.
10247
10248 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10249
10250 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10251 Tiger.
10252 * nsfns.m (ns_do_applescript):
10253 Conditionalize typeUTF16ExternalRepresentation on Tiger.
10254
10255 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10256
10257 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10258
10259 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10260
10261 * nsmenu.m (NSMENUPROFILE): Change #if style.
10262
10263 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10264
10265 * nsterm.m (x_set_frame_alpha): Add prototype.
10266 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10267 handle Ctrl-tab. (Bug#1841)
10268 (ns_get_color): Use unsigned long long for scanned hex string value.
10269 (ns_term_shutdown): Abort on non SIGTERM signals.
10270 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
10271 (EmacsPrefsController-setPanelFromDefaultValues): New function.
10272 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
10273 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
10274 (ns_defined_color): Fix settings of the XColor variable fields:
10275 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
10276
10277 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
10278 DPI. (Bug#1316)
10279 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10280 values in onTiger section.
10281
10282 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
10283
10284 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10285 Check return value of font_spec_from_name.
10286 (Fx_list_fonts): Doc fix. (Bug#1951)
10287
10288 * font.c (font_spec_from_name): Return Qnil if font name could not
10289 be parsed.
10290 (font_parse_name): Treat a `?' character as part of an XLFD.
10291
10292 * fns.c (Fsubstring): Doc fix.
10293
10294 2009-01-19 Kenichi Handa <handa@m17n.org>
10295
10296 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
10297 (ftfont_list): Likewise.
10298
10299 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
10300
10301 * dbusbind.c (Fdbus_register_signal):
10302 * process.c (conv_sockaddr_to_lisp):
10303 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10304
10305 * callproc.c (Fgetenv_internal): Doc fix.
10306
10307 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
10308
10309 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10310 it is not even used.
10311
10312 2009-01-16 Glenn Morris <rgm@gnu.org>
10313
10314 * font.c (Ffont_variation_glyphs): Silence compiler.
10315
10316 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
10317
10318 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10319 Reported by David Robinow <drobinow@gmail.com>.
10320
10321 2009-01-15 Kenichi Handa <handa@m17n.org>
10322
10323 * coding.c (detect_coding_system): Fix handling of null_byte_found.
10324
10325 2009-01-14 Jason Rumney <jasonr@gnu.org>
10326
10327 * frame.c (x_set_font): Always store a font to the font parameter,
10328 never a fontset. (Bug#1562)
10329
10330 2009-01-14 Kenichi Handa <handa@m17n.org>
10331
10332 * coding.c (TWO_MORE_BYTES): New macro.
10333 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
10334
10335 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
10336
10337 * font.c (font_clear_prop): If clearing the family, clear the font
10338 width index too.
10339
10340 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
10341
10342 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
10343
10344 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10345 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10346 functions, use sizeof.
10347
10348 2009-01-12 Martin Rudalics <rudalics@gmx.at>
10349
10350 * keyboard.c (read_char): Fix case where last_nonmenu_event
10351 returned a bad value with submenus. (Bug#447)
10352
10353 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
10354
10355 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10356 family, clear the font width index too.
10357
10358 2009-01-11 Jason Rumney <jasonr@gnu.org>
10359
10360 * keyboard.c (cmd_error_internal): Exit when errors occur before
10361 frame creation and not in daemon mode. (Bug#1836)
10362
10363 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
10364
10365 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10366 of a display vector, backtrack.
10367 (try_window_reusing_current_matrix): Check glyph type before
10368 referencing charpos member.
10369
10370 2009-01-10 Eli Zaretskii <eliz@gnu.org>
10371
10372 Fix Bug #876:
10373
10374 * coding.c (inhibit_null_byte_detection): New variable.
10375 (detect_coding, detect_coding_system): Don't pay attention to null
10376 bytes if inhibit_null_byte_detection is non-zero.
10377 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
10378 <inhibit-iso-escape-detection>: Doc fix.
10379
10380 2009-01-09 Jason Rumney <jasonr@gnu.org>
10381
10382 * w32font.c (add_font_entity_to_list): Don't report unknown
10383 Windows charset as any unrecognized registry. (Bug#1548)
10384 Only report Unicode Plane 2 fonts as unicode-sip.
10385
10386 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * xfaces.c (Fx_font_family_list): Delete function.
10389 Move compatibility version to faces.el.
10390
10391 * font.c (Ffont_family_list): Return a list of strings, not symbols.
10392
10393 2009-01-09 Martin Rudalics <rudalics@gmx.at>
10394
10395 * frame.c (x_set_frame_parameters): Remember requested value for
10396 fullscreen before it's reset by the parameter handler.
10397
10398 2009-01-09 Glenn Morris <rgm@gnu.org>
10399
10400 * keyboard.c (last_command_char): For clarity, rename to...
10401 (last_command_event): ... and update all users.
10402 (last_input_char): For clarity, rename to...
10403 (last_input_event): ... and update all users.
10404 (last-command-char, last-input-char): Move to subr.el as aliases.
10405 * cmds.c, commands.h: Update for last_command_char rename.
10406
10407 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
10408
10409 * font.c (font_open_for_lface): Handle unspecified height attribute.
10410
10411 2009-01-08 Jason Rumney <jasonr@gnu.org>
10412
10413 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10414 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10415 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10416 Don't declare.
10417 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
10418 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10419
10420 2009-01-07 Kenichi Handa <handa@m17n.org>
10421
10422 * fileio.c (Finsert_file_contents): In the case of replace,
10423 remember the coding system used for decoding in
10424 coding_system (Bug#1039).
10425
10426 * coding.c (decode_coding_utf_8): Check byte_after_cr before
10427 breaking the loop. (Bug#870)
10428 (decode_coding_utf_16, decode_coding_emacs_mule)
10429 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10430 (decode_coding_charset): Likewise.
10431
10432 2009-01-05 Martin Rudalics <rudalics@gmx.at>
10433
10434 * frame.c (x_set_frame_parameters): Make sure height (width) get
10435 applied when fullwidth (fullheight) is set. (Bug#1522)
10436
10437 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
10438
10439 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10440 (utc_base): Declare as ULONGLONG, not long double.
10441 (convert_time_raw): Delete.
10442 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10443 (initialize_utc_base): New function.
10444 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10445 (convert_from_time_t): Use initialize_utc_base; compute result with
10446 64-bit arithmetic.
10447 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10448
10449 2009-01-03 Eli Zaretskii <eliz@gnu.org>
10450
10451 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
10452 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10453 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10454 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10455 [!subprocesses]: Define.
10456 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10457 (Flist_system_processes, Fsystem_process_attributes)
10458 [!subprocesses]: Call list_system_processes and
10459 system_process_attributes instead of returning Qnil.
10460
10461 * dosfns.c (system_process_attributes, list_system_processes):
10462 New functions.
10463
10464 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10465
10466 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10467 Don't use the default (no-op) implementation.
10468
10469 2009-01-03 Jason Rumney <jasonr@gnu.org>
10470
10471 * keyboard.c (parse_modifiers_uncached): Wheel events are
10472 clicks (bug#687).
10473
10474 * w32term.c (x_query_colors, x_query_color): New functions.
10475
10476 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10477 (svg_load_image): Cast returned pointers from dynamically loaded
10478 functions. Eliminate W32 specific code.
10479
10480 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10481
10482 * nsfns.m (x_set_foreground_color, x_set_background_color)
10483 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10484 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10485 x_ prefix instead of ns_. Update references.
10486 (syms_of_nsfns): Add a FIXME comment.
10487
10488 * nsterm.m (x_set_cursor_type): New prototype.
10489 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10490
10491 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10492 for Solaris instead of incorrectly providing Qutime and Qcutime.
10493
10494 2009-01-02 Eli Zaretskii <eliz@gnu.org>
10495
10496 * w32.c (process_times): Compute sum of utime and stime.
10497 (system_process_attributes): Add Qtime to the alist.
10498
10499 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10500 and add them to the alist.
10501
10502 * process.c (top level) <Qtime, Qctime>: New variables.
10503 (syms_of_process): staticpro them.
10504 (Fsystem_process_attributes): Add their documentation to the doc
10505 string.
10506
10507 * process.h: Declare Qtime and Qctime.
10508
10509 2009-01-02 Jason Rumney <jasonr@gnu.org>
10510
10511 * image.c (Qgobject): New symbol.
10512 (syms_of_image): Initialize it.
10513 (init_svg_functions): Load some functions from gobject library.
10514
10515 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10516
10517 * frame.c (make_terminal_frame): Remove redundant code and useless
10518 block.
10519
10520 2009-01-01 Andreas Schwab <schwab@suse.de>
10521
10522 * process.c (conv_sockaddr_to_lisp): Add workaround for
10523 getsockname bug on BSD.
10524
10525 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
10526
10527 * xfns.c (x_create_tip_frame): Set border width of the X window.
10528
10529 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
10530
10531 2009-01-01 Jason Rumney <jasonr@gnu.org>
10532
10533 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
10534 Don't block input, as per earlier xterm.c changes.
10535
10536 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10537
10538 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10539 (ns_appkit_version_int): New function.
10540 (x-server-version): Use ns_appkit_version_int and follow 21+
10541 convention of returning 3 integers.
10542
10543 2008-12-30 Kenichi Handa <handa@m17n.org>
10544
10545 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10546 (CHAR_SURROGATE_PAIR_P): New macro.
10547
10548 * font.h (struct font_driver): New member get_variation_glyphs.
10549
10550 * font.c (font_range): Don't require a font for a variation selector.
10551 (Ffont_variation_glyphs): New function.
10552 (syms_of_font): Defsubr it.
10553
10554 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10555 ftfont_variation_glyphs.
10556 (setup_otf_gstring): New function.
10557 (ftfont_drive_otf): Use it.
10558 (ftfont_shape_by_flt): Handle variation selector.
10559 (ftfont_variation_glyphs): New function.
10560
10561 2008-12-30 Martin Rudalics <rudalics@gmx.at>
10562
10563 * frame.c (Vemacs_iconified): Remove.
10564
10565 2008-12-30 Jason Rumney <jasonr@gnu.org>
10566
10567 * frame.c (store_frame_param, x_get_arg): Enable newer code on
10568 WINDOWSNT too, as related changes have already been synced. (Bug#117)
10569
10570 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
10571
10572 * indent.c (Fvertical_motion): Don't advance iterator if we have
10573 reseated to the desired position.
10574
10575 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10576 checking for pos match.
10577
10578 2008-12-30 Kenichi Handa <handa@m17n.org>
10579
10580 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10581 just get the low 8-bit of the code.
10582
10583 * font.c (font_intern_prop): Validate str as multibyte.
10584
10585 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10586
10587 * dispextern.h (struct face): Move lface and hash from the middle
10588 of bitfields.
10589
10590 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10591
10592 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10593
10594 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10595 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10596 instead of intervals.h.
10597
10598 2008-12-26 Andreas Schwab <schwab@suse.de>
10599
10600 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10601 cons.
10602
10603 2008-12-26 Martin Rudalics <rudalics@gmx.at>
10604
10605 * textprop.c (Qminibuffer_prompt): New variable.
10606 (syms_of_textprop): Initialize it.
10607 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10608 in minibuffer-prompt face. (Bug#1662)
10609
10610 2008-12-25 Jason Rumney <jasonr@gnu.org>
10611
10612 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10613
10614 2008-12-24 Jason Rumney <jasonr@gnu.org>
10615
10616 * ralloc.c (r_alloc_reset_variable): New function.
10617
10618 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
10619 record of what points where. (Bug#716)
10620
10621 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10622
10623 * minibuf.c (read_minibuf): Follow the non-interactive case when
10624 running as a daemon, before detaching.
10625
10626 2008-12-22 Andreas Schwab <schwab@suse.de>
10627
10628 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10629 * gtkutil.c (free_widget_value): Use xfree instead of free.
10630
10631 2008-12-22 Martin Rudalics <rudalics@gmx.at>
10632
10633 * frame.c (delete_frame): New function derived from
10634 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10635 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10636 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10637 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10638 * frame.h: Extern delete_frame.
10639 * window.c (window_loop):
10640 * terminal.c (delete_terminal):
10641 * xterm.c (x_connection_closed):
10642 * xfns.c (Fx_hide_tip):
10643 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
10644
10645 2008-12-21 Jason Rumney <jasonr@gnu.org>
10646
10647 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10648 when character maps to .notdef character.
10649
10650 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10651
10652 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10653
10654 2008-12-20 Jason Rumney <jasonr@gnu.org>
10655
10656 * frame.c (Fmake_terminal_frame): Raise an error when called from
10657 a graphical frame on Windows. (Bug#1325)
10658
10659 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10660
10661 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10662
10663 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
10664
10665 * minibuf.c (Fread_buffer): Doc fix.
10666
10667 2008-12-20 Jason Rumney <jasonr@gnu.org>
10668
10669 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
10670 server name in UNC paths. (Bug#719)
10671
10672 * coding.c (decode_coding): Clear chars_at_source flag when using
10673 charbuf. (Bug#1035)
10674
10675 2008-12-19 Daniel Engeler <engeler@gmail.com>
10676
10677 * sysdep.c (serial_configure): Fix typo.
10678
10679 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10680
10681 * sysdep.c: Include alloca.h.
10682 (system_process_attributes): Add implementation for Solaris.
10683
10684 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
10685
10686 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10687
10688 Reorganize implementation of Flist_system_processes and
10689 Fsystem_process_attributes. No functional changes.
10690 * process.c: Don't #include pwd.h, grp.h and limits.h.
10691 (Flist_system_processes): Just call list_system_processes.
10692 (Fsystem_process_attributes): Just call system_process_attributes.
10693 (procfs_list_system_processes, time_from_jiffies)
10694 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10695 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10696
10697 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10698 (list_system_processes): Rename from
10699 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10700 Provide a do nothing implementation.
10701 (system_process_attributes): Rename from
10702 procfs_list_system_processes.
10703 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10704 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
10705
10706 * w32.c (list_system_processes): Rename from
10707 w32_list_system_processes.
10708 (system_process_attributes): Rename from
10709 w32_system_process_attributes.
10710
10711 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10712
10713 * process.h (w32_list_system_processes)
10714 (w32_system_process_attributes): Remove.
10715 (list_system_processes, system_process_attributes):
10716 New prototypes.
10717
10718 2008-12-19 Kenichi Handa <handa@m17n.org>
10719
10720 * xfont.c (xfont_decode_coding_xlfd): New function.
10721 (xfont_encode_coding_xlfd): New function.
10722 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10723 (xfont_list): Decode and encode XLFD by iso-8859-1.
10724 (xfont_match): Likewise.
10725 (xfont_list_family): Likewise.
10726 (xfont_open): Likewise.
10727
10728 * ftfont.c (ftfont_open): Generate a multibyte string if given
10729 names are utf-8.
10730
10731 * xftfont.c (xftfont_open): Generate a multibyte string if given
10732 names are utf-8.
10733
10734 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10735
10736 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10737 changed.
10738 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10739 clicked on a detached tool bar button.
10740
10741 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10742
10743 * emacs.c (main): Print and error and exit when no data is read
10744 from the pipe.
10745
10746 2008-12-17 Jason Rumney <jasonr@gnu.org>
10747
10748 * w32font.c (w32font_has_char): Always return -1.
10749
10750 2008-12-16 Kenichi Handa <handa@m17n.org>
10751
10752 * font.c (font_open_entity): Fix previous change.
10753
10754 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10755
10756 * process.c: Include <limits.h>.
10757
10758 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
10759
10760 * font.c (font_update_drivers): Fix mistake in reconstructing the
10761 driver list.
10762
10763 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
10764
10765 * font.c (font_clear_cache): Fix format of font cache data.
10766
10767 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * xftfont.c (xftfont_open): Free Xft font pattern if
10770 XftFontOpenPattern fails.
10771
10772 * xterm.c (x_free_frame_resources): Remove extraneous call to
10773 free_frame_faces.
10774
10775 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10776
10777 * xterm.c (x_delete_display): Move xim_close_dpy call to
10778 x_delete_terminal.
10779 (x_delete_terminal): Call xim_close_dpy.
10780
10781 2008-12-13 Jason Rumney <jasonr@gnu.org>
10782
10783 * w32font.c (intern_font_name): New function.
10784 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10785 (w32font_open_internal, Fx_select_font): Decode font name.
10786 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10787
10788 * w32font.h (intern_font_name): Declare new function.
10789
10790 * w32uniscribe.c (add_opentype_font_name_to_list):
10791 Use intern_font_name.
10792
10793 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10794
10795 * frame.c (Fdelete_frame): Call free_font_driver_list.
10796
10797 * font.c (free_font_driver_list): Implement missing function.
10798
10799 * w32term.c (w32_term_init): Don't initialize the image cache
10800 here; it will be done in init_frame_faces.
10801
10802 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10803 (struct x_display_info): Remove unused member null_pixel. New
10804 member xim_callback_data.
10805
10806 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10807 (xim_initialize): Save pointer to callback function data.
10808 (xim_close_dpy): Free callback function data. Call XCloseIM,
10809 reverting 2008-11-04 change by David Smith.
10810 (x_term_init): Don't initialize the image cache here; it will be
10811 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10812 (x_delete_display): Free x_dnd_atoms member.
10813
10814 2008-12-13 Kenichi Handa <handa@m17n.org>
10815
10816 * font.c (font_rescale_ratio): Moved from xfaces.c.
10817 Argument type changed. Handle a font-spec too.
10818 (font_score): Check Vface_font_rescale_alist.
10819 (font_open_entity): Likewise. (Bug#1547)
10820
10821 * xfaces.c (font_rescale_ratio): Moved to font.c.
10822
10823 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
10824
10825 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10826
10827 2008-12-12 Jason Rumney <jasonr@gnu.org>
10828
10829 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10830 Vwindow_system_version to the real w32 major version.
10831
10832 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10833
10834 * term.c (init_tty): Move setting the terminal name before the
10835 potential user: maybe_fatal.
10836
10837 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
10838
10839 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10840 all callers changed. Call free_frame_faces to free the face cache.
10841
10842 2008-12-11 Jason Rumney <jasonr@gnu.org>
10843
10844 * w32font.c (fill_in_logfont): Don't assume symbol script means
10845 SYMBOL_CHARSET. (Bug#547)
10846
10847 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
10848 size for surrogates. (Bug#1096, bug#872)
10849
10850 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10851
10852 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10853
10854 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10855
10856 * process.c (Fsystem_process_attributes, syms_of_process):
10857 Fix typo in name of Ssystem_process_attributes.
10858 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10859
10860 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
10861
10862 * syntax.c (Fmodify_syntax_entry): Doc fix.
10863
10864 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10865
10866 * font.c (Ffont_spec): Move usage to end of docstring.
10867
10868 2008-12-10 Jason Rumney <jasonr@gnu.org>
10869
10870 * w32font.c (Qcham): New symbol.
10871 (font_supported_scripts): Add cham, and comments for other new
10872 scripts in bitfield from OpenType spec.
10873 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10874 contain characters beyond the bmp.
10875
10876 2008-12-10 Kenichi Handa <handa@m17n.org>
10877
10878 * ftfont.c (fc_charset_table): Add "unicode-sip".
10879 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
10880 Qunicode_sip.
10881
10882 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
10883
10884 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10885 (Fcoding_system_put): Use QCdefault_char.
10886 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10887
10888 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
10889
10890 * xftfont.c (syms_of_xftfont): Fix typo.
10891
10892 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
10893
10894 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10895
10896 * emacs.c (main): Close daemon_pipe on exec.
10897
10898 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
10899
10900 * termchar.h (struct tty): New members termcap_term_buffer and
10901 termcap_strings_buffer.
10902
10903 * term.c (encode_terminal_code): Free any previous memory blocks
10904 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
10905 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10906 All callers changed.
10907 (init_tty): Store termcap data and string buffers in new struct
10908 tty members termcap_term_buffer and termcap_strings_buffer.
10909 (delete_tty): Free them.
10910 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
10911
10912 2008-12-07 Seiji Zenitani <zenitani@mac.com>
10913
10914 * nsfns.m (ns_set_background_color): Remove code duplication.
10915 It was a substitute for face-transparency on OS X 10.3.
10916
10917 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
10918
10919 * coding.c (make_conversion_work_buffer): Disable buffer
10920 modification hooks in the work buffer.
10921
10922 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10923
10924 * process.c (procfs_system_process_attributes): If `nread' has a
10925 negative value, assign zero to it.
10926
10927 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
10928
10929 * eval.c (Vdebug_on_error): Doc fix.
10930
10931 2008-12-05 Kenichi Handa <handa@m17n.org>
10932
10933 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10934 second character is a combining character.
10935
10936 2008-12-05 Eli Zaretskii <eliz@gnu.org>
10937
10938 * process.c (procfs_system_process_attributes): Don't use cmd,
10939 cmdsize, and q without initializing them first.
10940
10941 2008-12-04 Jason Rumney <jasonr@gnu.org>
10942
10943 * w32font.c (w32font_draw): Initialize orig_clip before getting
10944 it, and delete it when finished.
10945
10946 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10947
10948 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10949 case when running as a daemon before detaching.
10950
10951 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
10952
10953 * w32.c (init_environment): Don't unload library shell32.dll.
10954
10955 2008-12-03 Kenichi Handa <handa@m17n.org>
10956
10957 * font.c (font_at): Set `multibyte' at first.
10958
10959 * coding.c (decode_coding_charset): Check type of an element of
10960 vector VALIDS.
10961 (encode_coding_emacs_mule): Be sure to set `code'.
10962
10963 * fontset.c (face_for_char): Handle invalid charset property correctly.
10964 (font_for_char): Likewise.
10965
10966 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
10967
10968 * font.c (Fopen_font): Compute pixel size correctly.
10969 (font_update_lface): Handle fonts with corrupted size specs,
10970 i.e. non-int and non-float.
10971
10972 * ftfont.c (ftfont_match): Initialize entity variable.
10973 (ftfont_resolve_generic_family): Avoid using uninitialized var.
10974 (ftfont_list_family): Initialize list var earlier.
10975
10976 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10977
10978 * xterm.c (x_draw_glyph_string): Fall back on
10979 underline_minimum_offset for underline position.
10980
10981 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10982
10983 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10984
10985 * character.c (c_string_width): Specify the type for LEN.
10986
10987 2008-12-03 Kenichi Handa <handa@m17n.org>
10988
10989 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
10990 (decode_coding_utf_8): Likewise.
10991 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
10992 (produce_chars): Initialize consumed_chars to 0.
10993
10994 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
10995
10996 * keyboard.c (make_lispy_position): Only use PT if the selected
10997 window is current.
10998
10999 2008-12-02 Andreas Schwab <schwab@suse.de>
11000
11001 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11002
11003 * doprnt.c (doprnt1): Fix size of charbuf.
11004
11005 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11006
11007 * keyboard.c (timer_check): Revert last change.
11008
11009 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
11010
11011 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11012
11013 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
11014
11015 * makefile.w32-in: Update dependencies.
11016 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11017
11018 2008-12-01 Andreas Schwab <schwab@suse.de>
11019
11020 * font.c (register_font_driver): Use xmalloc.
11021 (font_put_frame_data): Likewise.
11022
11023 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
11024
11025 * xfaces.c (realize_x_face): Make abort condition clearer.
11026
11027 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11028
11029 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
11030
11031 * keyboard.c (timer_check): After a timer runs, ensure that the
11032 selected window's buffer is current.
11033
11034 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
11035
11036 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11037 It was accidentally restored by the Unicode merge.
11038
11039 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11040
11041 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
11042
11043 * w32proc.c: Include "coding.h".
11044 (Fw32_short_file_name): Encode filename passed to Windows API.
11045 (Fw32_long_file_name): Encode filename passed to Windows API and
11046 decode back the result. (Bug#1433)
11047
11048 2008-11-29 Kenichi Handa <handa@m17n.org>
11049
11050 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11051 not before accessing it.
11052
11053 * charset.c (Fdefine_charset_internal): After calculating
11054 min_char, max_char, and fastmap, copy the charset structure again.
11055 (encode_char): Fix the previous change.
11056
11057 2008-11-28 Seiji Zenitani <zenitani@mac.com>
11058
11059 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11060
11061 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11062
11063 * nsterm.m (x_set_frame_alpha): New function.
11064
11065 2008-11-27 Eli Zaretskii <eliz@gnu.org>
11066
11067 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11068
11069 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
11070
11071 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11072 pointer to check_face_name.
11073
11074 2008-11-27 Kenichi Handa <handa@m17n.org>
11075
11076 * category.h (SET_CATEGORY_SET): Call set_category_set.
11077 (set_category_set): Extern it.
11078
11079 * category.c (hash_get_category_set): New function.
11080 (Fmodify_category_entry): Adjusted for the change of
11081 char_table_ref_and_range. Call hash_get_category_set to get a
11082 category set to store in the table.
11083
11084 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11085 Funify_charset.
11086
11087 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
11088 (DECODE_CHAR): Check if the decoder vector is ready.
11089 (ENCODE_CHAR): Check if the encoder char-table is ready.
11090 (maybe_unify_char): Extern it.
11091
11092 * charset.c (Vchar_unified_charset_table): Delete it.
11093 (inhibit_load_charset_map): New variable.
11094 (temp_charset_work): New variable.
11095 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11096 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11097 New macros.
11098 (load_charset_map): Meaning of control_flag changed. If
11099 inhibit_load_charset_map is nonzero, setup a table in
11100 temp_charset_work.
11101 (load_charset): New argument control_flag.
11102 (map_charset_for_dump): New function.
11103 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11104 map_charset_for_dump.
11105 (Fdefine_charset_internal): If the charset method is MAP, load
11106 mapping tables by calling load_charset.
11107 (Funify_charset): Don't load a mapping table but directly set
11108 Vchar_unify_table.
11109 (maybe_unify_char): New function.
11110 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11111 Handle the case of inhibit_load_charset_map being nonzero.
11112 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11113 Handle the case of inhibit_load_charset_map being nonzero.
11114 (Fclear_charset_maps): Just free temp_charset_work.
11115 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11116 variable.
11117
11118 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11119 change of char_table_ref_and_range.
11120 (char_table_ref_and_range): Change the meaning of argument FROM
11121 and TO. Now the caller must provide initial values for *FROM
11122 and *TO.
11123
11124 * fontset.c (fontset_add): Adjusted for the change of
11125 char_table_ref_and_range.
11126 (fontset_get_font_group): Likewise.
11127 (Ffontset_info): Likewise.
11128
11129 * keymap.c (describe_vector): Adjusted for the change of
11130 char_table_ref_and_range. For char-table, put boundary between
11131 non-ASCII and 8-bit characters.
11132
11133 * print.c (print_object): For bool-vector, delete unnecessary
11134 check of ASCII_BYTE_P.
11135
11136 2008-11-26 Jason Rumney <jasonr@gnu.org>
11137
11138 * w32font.c (w32font_open_internal): Don't include external
11139 leading in font height. (Bug#879)
11140
11141 2008-11-26 Glenn Morris <rgm@gnu.org>
11142
11143 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11144 redefinition with ifdef. (Bug#1383)
11145
11146 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11147
11148 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11149
11150 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11151
11152 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11153 New EmacsView methods.
11154 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11155 Fixes bug #1048,1357,1414.
11156
11157 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11158
11159 Fix bug #1362.
11160 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11161 is not an indexed color.
11162 * nsterm.m (free_indexed_color): Add argument checking.
11163 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11164
11165 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
11166
11167 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11168 Document confirm-after-completion value for
11169 minibuffer-completion-confirm.
11170
11171 2008-11-24 Jason Rumney <jasonr@gnu.org>
11172
11173 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11174 warning.
11175
11176 2008-11-23 Jason Rumney <jasonr@gnu.org>
11177
11178 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11179 restored before returning.
11180
11181 * w32font.c (check_face_name): New function.
11182 (add_font_entity_to_list): Use it to filter out common substituted
11183 fonts. (Bug#642)
11184
11185 2008-11-22 Martin Rudalics <rudalics@gmx.at>
11186
11187 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11188 confirm-nonexistent-file-or-buffer in doc-string.
11189
11190 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11191
11192 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11193 Fix copy/paste typo. Add checks.
11194
11195 2008-11-21 Kenichi Handa <handa@m17n.org>
11196
11197 * coding.c (detect_coding_iso_2022): Reject invalid composition
11198 sequence.
11199 (DECODE_COMPOSITION_START): If the current source is the last
11200 block, and the current composition doesn't end, regard this
11201 sequence as invalid.
11202 (decode_coding_iso_2022): Handle invalid composition sequence.
11203
11204 2008-11-20 Martin Rudalics <rudalics@gmx.at>
11205
11206 * window.c (coordinates_in_window): Don't return
11207 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11208 line when the window is not the rightmost one. (Bug#1372)
11209
11210 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11211
11212 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11213
11214 2008-11-15 Eli Zaretskii <eliz@gnu.org>
11215
11216 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11217 and bright_bg if noninteractive is non-zero.
11218
11219 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11220
11221 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11222 x_draw_glyph_string_background.
11223
11224 * w32term.c (x_draw_glyph_string): Likewise.
11225
11226 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
11227
11228 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11229 the next glyph string once past the overhang width.
11230
11231 * nsterm.m (ns_draw_glyph_string): Likewise.
11232
11233 * w32term.c (x_draw_glyph_string): Likewise.
11234
11235 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11236
11237 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11238 double file close.
11239
11240 2008-11-14 Martin Rudalics <rudalics@gmx.at>
11241
11242 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11243 dedicated status of window before attempting to display another
11244 buffer in it.
11245
11246 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
11247
11248 * msdos.c (Fmsdos_long_file_names):
11249 (syms_of_msdos) <dos-unsupported-char-glyph>:
11250 * dosfns.c (Fint86): Fix typos in docstrings.
11251
11252 2008-11-14 Eli Zaretskii <eliz@gnu.org>
11253
11254 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11255
11256 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11257
11258 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11259
11260 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11261
11262 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11263
11264 * frame.h: Negative alpha means "don't touch".
11265
11266 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11267
11268 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11269
11270 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11271
11272 * hftctl.c:
11273 * chpdef.h:
11274 * acldef.h: Remove files used only for systems no longer supported.
11275
11276 * Makefile.in: Fix .o alphabetical ordering.
11277 (hftctl.o): Remove dependency, file removed.
11278 (keymap.o, print.o): Depend on charset.h.
11279
11280 2008-11-10 Kenichi Handa <handa@m17n.org>
11281
11282 * character.c (Fget_byte): Fix and make it faster for unibyte target.
11283
11284 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
11285
11286 * dired.c (file_name_completion): If completion_ignore_case is
11287 enabled, ignore case when checking completion-regexp-list.
11288
11289 2008-11-08 Eli Zaretskii <eliz@gnu.org>
11290
11291 * vm-limit.c (get_lim_data): Fix last change.
11292
11293 2008-11-08 Kenichi Handa <handa@m17n.org>
11294
11295 * character.c (Fget_byte): New function.
11296 (syms_of_character): Defsubr Fget_byte.
11297
11298 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
11299
11300 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11301 cursor position is valid after scrolling.
11302
11303 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
11304
11305 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11306
11307 2008-11-06 Glenn Morris <rgm@gnu.org>
11308
11309 * xterm.c (handle_one_xevent): Don't let popup menus cause
11310 mouse-autoselect-window related window switching. (Bug#1261)
11311
11312 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11313
11314 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11315
11316 2008-11-04 Andreas Schwab <schwab@suse.de>
11317
11318 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11319
11320 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
11321
11322 * xfns.c (Fx_wm_set_size_hint): New function.
11323
11324 2008-11-03 Martin Rudalics <rudalics@gmx.at>
11325
11326 * textprop.c (Fprevious_single_char_property_change): Return 0
11327 when there's no change in a string. (Bug#1301)
11328
11329 2008-11-02 Martin Rudalics <rudalics@gmx.at>
11330
11331 * frame.c (do_switch_frame): New argument NORECORD passed to
11332 Fselect_window.
11333 (Fselect_frame): New argument NORECORD passed to
11334 do_switch_frame.
11335 (Fset_frame_selected_window): New argument NORECORD passed to
11336 Fselect_frame.
11337 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11338 in call of do_switch_frame.
11339 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11340 Handle NORECORD argument in call of Fselect_frame.
11341 * lisp.h (do_switch_frame, Fselect_frame)
11342 (Fset_frame_selected_window): Adjust declarations.
11343 * window.c (select_frame_norecord): New function.
11344 (run_window_configuration_change_hook): Use it and call
11345 Fselect_frame with NORECORD set.
11346 (Fselect_window): Pass NORECORD to Fselect_frame.
11347 (Fset_window_configuration): Handle NORECORD argument in call of
11348 do_switch_frame.
11349 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11350 Fset_frame_selected_window.
11351 * keyboard.c (command_loop_1): Handle NORECORD in call of
11352 Fselect_frame (currently ifdefd).
11353
11354 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11355
11356 * emacs.c (USAGE2): Untabify.
11357
11358 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11359
11360 * composite.c (fill_gstring_header): Fix copy/paste typo.
11361
11362 2008-10-31 Martin Rudalics <rudalics@gmx.at>
11363
11364 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11365 (Fother_window): Rename argument and rewrite doc-string.
11366 (select_window_norecord): Fix return value. (Bug#1276)
11367
11368 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
11369
11370 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11371 new frames overriding foreground for tooltips. Based on similar patch
11372 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11373
11374 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
11375
11376 * emacs.c (Fdaemon_initialized): Initialize nfd.
11377
11378 2008-10-29 Martin Rudalics <rudalics@gmx.at>
11379
11380 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11381 (Fwindow_text_height): Clarify doc-strings.
11382 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11383 doc-string of window-scroll-functions.
11384
11385 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11386
11387 * category.c (syms_of_category): Fix typo in docstring.
11388
11389 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
11390
11391 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11392 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11393 Fix typos in docstrings.
11394
11395 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11396
11397 * emacs.c (daemon_pipe): Make non-static.
11398 (IS_DAEMON): Move definition ...
11399 * lisp.h (IS_DAEMON): ... here.
11400 (daemon_pipe): Declare.
11401 (is_daemon): Remove.
11402 * dispnew.c (init_display): Use IS_DAEMON.
11403
11404 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11405
11406 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11407 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11408
11409 * emacs.c (is_daemon): Remove.
11410 (main): Don't set is_daemon.
11411 (IS_DAEMON): New macro.
11412 (Fdaemonp, Fdaemon_initialized): Use it.
11413 (Fdaemon_initialized): Write a char into the pipe to make sure the
11414 parent exits.
11415 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11416
11417 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
11418
11419 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11420 over-sized glyph, draw it with the default glyph width.
11421
11422 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11423 glyph, draw it with the default glyph width.
11424
11425 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11426 glyph, draw it with the default glyph width.
11427
11428 * xdisp.c (try_scrolling): When computing the distance from the
11429 scroll margin to PT, try moving some distance past the window
11430 bottom before giving up.
11431
11432 2008-10-27 Martin Rudalics <rudalics@gmx.at>
11433
11434 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11435 (Fset_window_buffer): Explain in doc-string that a window can be
11436 "strongly" dedicated to its buffer.
11437
11438 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11439
11440 * emacs.c (daemon_name): New variable.
11441 (main): Deal with --daemon=SERVER_NAME.
11442 (Fdaemonp): Return a name if one was passed to --daemon.
11443
11444 2008-10-26 Romain Francoise <romain@orebokech.com>
11445
11446 * emacs.c (daemon_pipe): New variable.
11447 (main): Create a pipe before forking, make the parent exit only after
11448 the child has closed its end of the pipe. Move closing the
11449 descriptors ...
11450 (Fdaemon_initialized): ... here. New function.
11451
11452 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11453
11454 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11455 the previous unoptimized table.
11456
11457 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11458 the distinction between non-nil and non-t value of `dedicated'.
11459
11460 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
11461
11462 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
11463 read_char_minibuf_menu_text is large enough to hold the menu string.
11464
11465 2008-10-25 Martin Rudalics <rudalics@gmx.at>
11466
11467 * window.c (Fget_buffer_window, Fdelete_windows_on)
11468 (Freplace_buffer_in_windows): Make buffer argument optional and
11469 rename to buffer_or_name.
11470
11471 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
11472
11473 * xdisp.c (handle_single_display_spec, handle_display_prop):
11474 Undo 2005-05-16 change.
11475 (handle_stop): Pop iterator if it's loaded with an empty string.
11476 (get_overlay_strings_1): Don't save iterator if it's loaded with
11477 an empty string (bug#1201).
11478
11479 2008-10-24 Kenichi Handa <handa@m17n.org>
11480
11481 * ftfont.c (ftfont_otf_features): Fix previous change.
11482 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11483 calling ftfont_otf_features.
11484
11485 2008-10-24 Kenichi Handa <handa@m17n.org>
11486
11487 * font.c (font_match_p): Fix for the case that a vector of
11488 characters is in script-representative-chars.
11489
11490 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
11491
11492 * dbusbind.c (xd_in_read_queued_messages): New variable.
11493 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
11494 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11495 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
11496 macro. (Bug#1186)
11497
11498 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
11499
11500 * s/sol2-10.h: New file.
11501
11502 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11503
11504 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11505 poor beast has survived 9+ years and the jump from xterm.c!).
11506
11507 2008-10-23 Martin Rudalics <rudalics@gmx.at>
11508
11509 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11510 Reword doc-string.
11511 (Fbury_buffer): In doc-string say what happens to the buffer's window.
11512
11513 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
11514
11515 * character.c (syms_of_character) <script-representative-chars>:
11516 <unicode-category-table>: Doc fixes.
11517
11518 2008-10-23 Noah Friedman <friedman@splode.com>
11519
11520 * coding.c (make_conversion_work_buffer): Check that
11521 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11522 Fget_buffer_create.
11523
11524 2008-10-23 Kenichi Handa <handa@m17n.org>
11525
11526 * font.c (font_add_log): Check the values of extra properties.
11527
11528 2008-10-22 Martin Rudalics <rudalics@gmx.at>
11529
11530 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11531 Reword doc-string.
11532 (Fset_window_parameter): Use NILP.
11533 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
11534 (Frecenter): Use "selected" instead of "current" window in doc-strings.
11535
11536 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11537
11538 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11539
11540 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11541
11542 * nsfns.m (ns_appkit_version): New function.
11543 (x-server-version): Use it.
11544 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11545 (x-server-vendor): Don't check_ns().
11546
11547 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11548
11549 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
11550
11551 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11552 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11553
11554 2008-10-22 Kenichi Handa <handa@m17n.org>
11555
11556 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11557 scripts.
11558
11559 * category.c (word_boundary_p): Check scripts instead of charset.
11560 Handle nil value in word-separating-categories and
11561 word-combining-categories.
11562 (syms_of_category): Fix docstrings of word-separating-categories
11563 and word-combining-categories.
11564
11565 2008-10-21 Eli Zaretskii <eliz@gnu.org>
11566
11567 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11568 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11569
11570 2008-10-21 Martin Rudalics <rudalics@gmx.at>
11571
11572 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11573 Rename arg "buffer" to "buffer_or_name".
11574 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11575 it optional.
11576 (no_switch_window): Remove since the return value is not used.
11577 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
11578 Consider window as dedicated when Fwindow_dedicated_p returns a
11579 non-nil value.
11580 * lisp.h: Remove prototype for no_switch_window.
11581
11582 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11583
11584 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
11585 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
11586
11587 2008-10-21 Kenichi Handa <handa@m17n.org>
11588
11589 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11590 check Vlatin_extra_code_table.
11591
11592 2008-10-20 Eli Zaretskii <eliz@gnu.org>
11593
11594 * fileio.c (Fset_file_modes): Doc fix.
11595
11596 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
11597
11598 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11599 in arrays.
11600
11601 2008-10-19 Martin Rudalics <rudalics@gmx.at>
11602
11603 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11604 Mention kill-buffer in doc-string.
11605 (Fset_window_buffer): Reinsert tem check removed in last commit.
11606 (Fenlarge_window, Fshrink_window): Have argument names and
11607 doc-string follow Elisp manual more closely.
11608
11609 2008-10-18 Eli Zaretskii <eliz@gnu.org>
11610
11611 * fileio.c (Fset_file_modes): Doc fix.
11612
11613 2008-10-18 Martin Rudalics <rudalics@gmx.at>
11614
11615 * window.c (Fwindow_width, Fset_window_start)
11616 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
11617 (Fdelete_windows_on, Freplace_buffer_in_windows):
11618 Make doc-strings follow code and Elisp manual more closely.
11619 (Fwindow_dedicated_p): Make window argument optional.
11620 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11621 (Fset_window_buffer): Respect any non-nil dedicated value for
11622 window. Rename "buffer" argument to "buffer_or_name".
11623
11624 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
11625
11626 * m/sh3.h: New file, machine description for SuperH.
11627
11628 2008-10-17 Martin Rudalics <rudalics@gmx.at>
11629
11630 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11631
11632 2008-10-17 Kenichi Handa <handa@m17n.org>
11633
11634 * ftfont.c (ftfont_otf_features): Fix indexing
11635 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11636
11637 2008-10-16 Magnus Henoch <mange@freemail.hu>
11638
11639 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11640 (Fdbus_call_method_asynchronously): Ditto.
11641 This change makes C-h f display the argument list.
11642
11643 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
11644
11645 * fileio.c (Fexpand_file_name): Doc fix.
11646
11647 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11648 of :foreground and :background equivalent to unspecified (20.x
11649 compatibility).
11650
11651 2008-10-15 Eli Zaretskii <eliz@gnu.org>
11652
11653 * buffer.c (syms_of_buffer): Doc fix.
11654
11655 2008-10-14 Kenichi Handa <handa@m17n.org>
11656
11657 * font.c (font_clear_prop): When clearing font width, clear the
11658 average width field too.
11659
11660 2008-10-12 Andreas Schwab <schwab@suse.de>
11661
11662 * ftfont.c (ftfont_shape_by_flt): Make static.
11663 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11664
11665 * font.c: Don't include <m17n-flt.h>.
11666
11667 2008-10-10 Eli Zaretskii <eliz@gnu.org>
11668
11669 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11670
11671 2008-10-09 Eli Zaretskii <eliz@gnu.org>
11672
11673 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11674 away code.
11675
11676 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
11677
11678 * dispnew.c (update_text_area): Avoid looping due to large glyph
11679 overhangs (bug#1070).
11680
11681 2008-10-09 Kenichi Handa <handa@m17n.org>
11682
11683 * fontset.c (face_for_char): If face->fontset is negative, just
11684 return ascii_face.
11685
11686 * font.c (font_delete_unmatched): Fix previous change.
11687 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
11688
11689 2008-10-09 Martin Rudalics <rudalics@gmx.at>
11690
11691 * frame.c (Fraise_frame): On text-only terminals select frame in
11692 order to make it visible. (Bug#1061)
11693
11694 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
11695
11696 * fontset.c (fontset_find_font): Check frame validity.
11697
11698 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
11699
11700 * gtkutil.c (xg_display_open): Reset default display if none exists.
11701 (xg_display_close): Allow Emacs to close all displays (bug#985).
11702
11703 2008-10-06 Andreas Schwab <schwab@suse.de>
11704
11705 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
11706
11707 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
11708
11709 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
11710
11711 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
11712
11713 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11714 during initialization.
11715
11716 2008-10-04 Eli Zaretskii <eliz@gnu.org>
11717
11718 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11719 whole thing on MSDOS frames as well as on a TTY.
11720
11721 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11722 well as for TTY.
11723 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11724 well as on a TTY.
11725
11726 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11727 as well as for TTY.
11728
11729 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11730
11731 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11732 MSDOS frames as well.
11733
11734 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11735
11736 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11737 correct arguments.
11738 * menu.c (find_and_return_menu_selection): Add cast.
11739
11740 2008-10-03 Glenn Morris <rgm@gnu.org>
11741
11742 * emacs.c (USAGE1): Add --daemon.
11743
11744 2008-10-02 Eli Zaretskii <eliz@gnu.org>
11745
11746 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11747 100, so it's in percents as advertised.
11748
11749 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11750
11751 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11752 (ns_output.current_cursor, ns_output.desired_cursor)
11753 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11754 (FRAME_NEW_CURSOR_COLOR): Remove.
11755
11756 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
11757 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
11758 enumeration (HOLLOW_BOX_CURSOR, etc.).
11759
11760 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11761 (draw_window_cursor): Simplify code.
11762 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11763 Don't change cursor type. In latter, call rehighlight instead of doing
11764 updates manually.
11765 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11766 Use core Emacs cursor types.
11767
11768 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
11769
11770 2008-10-02 Martin Rudalics <rudalics@gmx.at>
11771
11772 * process.c (Faccept_process_output): Fix doc-string.
11773
11774 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11775
11776 * gmalloc.c (__sbrk): Also define for uClibc.
11777
11778 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11779 for uClibc.
11780
11781 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11782
11783 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11784 styles.
11785 (nsfont_open): Reenable the cache.
11786
11787 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11788
11789 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11790 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11791
11792 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11793
11794 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11795 a suspended terminal.
11796
11797 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
11798
11799 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11800
11801 2008-09-30 Eli Zaretskii <eliz@gnu.org>
11802
11803 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11804
11805 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
11806
11807 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11808 in a continued line coincides with a line beginning.
11809
11810 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11811
11812 * nsfont.m (nsfont_trait_distance): Fix bug.
11813 (nsfont_list): Return a list rather than a vector (syncs with Handa
11814 changes of 2008-05-14).
11815 (nsfont_open): Improve logging.
11816
11817 2008-09-29 Andreas Schwab <schwab@suse.de>
11818
11819 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11820
11821 2008-09-28 Martin Rudalics <rudalics@gmx.at>
11822
11823 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11824 name as char-resolve-modifiers.
11825 Reported by: Markus Triska <markus.triska@gmx.at>
11826
11827 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11828
11829 * dispnew.c (init_display): Return earlier when running as a daemon.
11830
11831 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11832
11833 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11834
11835 2008-09-27 Eli Zaretskii <eliz@gnu.org>
11836
11837 * composite.c (Fcomposition_get_gstring)
11838 (Fcompose_region_internal, Fcompose_string_internal)
11839 (Ffind_composition_internal): Doc fix.
11840 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11841 (syms_of_composite) <auto-composition-function>: Doc fix.
11842 (syms_of_composite) <composition-function-table>: Doc fix.
11843
11844 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
11845
11846 * search.c (wordify): New argument for lax word-ends.
11847 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11848
11849 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11850
11851 * lisp.h (is_daemon): Declare.
11852 * dispnew.c (init_display): Do not try to initialize the terminal
11853 when running as a daemon.
11854
11855 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
11856
11857 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11858 x_display_pixel_height.
11859
11860 2008-09-22 Martin Rudalics <rudalics@gmx.at>
11861
11862 * undo.c (record_point): Don't call Fundo_boundary for first
11863 change. (Bug#731)
11864
11865 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
11866
11867 * emacs.c (Fdaemonp): Doc fix.
11868
11869 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11870
11871 * emacs.c (main): Place #ifdef in the proper place.
11872
11873 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11874
11875 * emacs.c (standard_args): Add --daemon.
11876 (main): Disconnect from the terminal when --daemon is passed.
11877 (is_daemon): New variable.
11878 (Fdaemonp): New function.
11879 (syms_of_emacs): Defsubr it.
11880
11881 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
11882
11883 * xdisp.c (get_next_display_element): Handle string display
11884 correctly when checking for the end of a box run.
11885
11886 2008-09-20 Glenn Morris <rgm@gnu.org>
11887
11888 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11889 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11890 (Frename_file): Avoid copying to trash if a rename involves
11891 a delete. (Bug#964).
11892
11893 2008-09-20 Eli Zaretskii <eliz@gnu.org>
11894
11895 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11896 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11897 frames as well as termcap frames.
11898 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11899 get_named_tty.
11900
11901 2008-09-19 Eli Zaretskii <eliz@gnu.org>
11902
11903 * process.c (procfs_system_process_attributes): Fix cmdline in
11904 case /proc/PID/cmdline is empty.
11905
11906 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11907 x_display_pixel_height.
11908
11909 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
11910
11911 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11912
11913 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11914 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11915
11916 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11917
11918 * dispextern.h (struct it): Move line_wrap away from the middle of
11919 bitfields. Move voffset in struct iterator_stack_entry after the
11920 bitfields. Move tab_width near after another short.
11921
11922 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11923
11924 * frame.h (struct frame): Move alpha from the middle of bitfields.
11925
11926 * window.h (struct window): Move frozen_window_start_p after the
11927 rest of the bitfields to reduce padding.
11928
11929 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
11930
11931 * xterm.h (x_display_info): Remove `height' and `width' members.
11932
11933 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11934
11935 * w32term.h (w32_display_info): Remove `height', `width',
11936 `height_in', and `width_in' members.
11937
11938 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11939 New functions.
11940 (x_calc_absolute_position): Use them.
11941 (x_term_init): Omit removed `height' and `width' members.
11942
11943 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11944 New functions.
11945 (w32_read_socket, x_calc_absolute_position): Use them.
11946 (w32_initialize_display_info, w32_term_init): Omit removed members
11947 of w32_display_info.
11948
11949 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11950 New functions.
11951 (ns_initialize_display_info): Omit removed members of ns_display_info.
11952
11953 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11954 New functions.
11955 (x_calc_absolute_position): Use them.
11956 (x_term_init): Omit removed `height' and `width' members.
11957
11958 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11959 (compute_tip_xy):
11960 * frame.c (x_fullscreen_adjust):
11961 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11962 x_display_pixel_width.
11963
11964 2008-09-18 Kenichi Handa <handa@m17n.org>
11965
11966 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11967 (composition_compute_stop_pos): Fix handling of static composition.
11968 (Fcomposition_get_gstring): Check FROM and TO at first.
11969
11970 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11971
11972 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
11973 mixup (YAILOM).
11974
11975 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
11976
11977 * indent.c (Fvertical_motion): Use position reported by iterator
11978 instead of PT for determining screen motion (bug#943).
11979
11980 2008-09-17 Romain Francoise <romain@orebokech.com>
11981
11982 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11983
11984 2008-09-17 Kenichi Handa <handa@m17n.org>
11985
11986 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11987
11988 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11989 if necessary.
11990
11991 2008-09-16 Kenichi Handa <handa@m17n.org>
11992
11993 * coding.c (make_conversion_work_buffer): Avoid calling
11994 Fget_buffer_create if it is not necessary.
11995
11996 2008-09-15 Martin Rudalics <rudalics@gmx.at>
11997
11998 * window.c (Fselect_window): Don't update window_select_count and
11999 use_time when norecord is not nil.
12000
12001 2008-09-14 Kenichi Handa <handa@m17n.org>
12002
12003 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12004 specpdl_ptr.
12005
12006 2008-09-12 Kenichi Handa <handa@m17n.org>
12007
12008 * indent.c (scan_for_column): Don't handle automatic composition
12009 if the current buffer is not associated with a window.
12010
12011 * composite.c (composition_reseat_it): If the current buffer is
12012 not associated with a window, ignore the automatic composition.
12013 (find_automatic_composition): Likewise.
12014
12015 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12016
12017 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12018 (Fgpm_mouse_stop): Use it.
12019 * termhooks.h (close_gpm): Declare.
12020 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12021 connection if Gpm_GetEvent fails.
12022
12023 * window.c (set_window_buffer): Always preserve current-buffer.
12024
12025 2008-09-12 Glenn Morris <rgm@gnu.org>
12026
12027 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12028
12029 2008-09-11 Glenn Morris <rgm@gnu.org>
12030
12031 * charset.c (charset-map-path): Doc fix.
12032
12033 2008-09-10 Kenichi Handa <handa@m17n.org>
12034
12035 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12036
12037 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12038 compose a grapheme cluster with the preceding base glyph.
12039
12040 * composite.c (composition_compute_stop_pos): Fix previous change.
12041 Reset cmp_it->id to -1 at first.
12042
12043 2008-09-10 Glenn Morris <rgm@gnu.org>
12044
12045 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12046
12047 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
12048
12049 * keyboard.c (read_key_sequence): Reapply translation maps when
12050 switching keyboards.
12051
12052 2008-09-09 Kenichi Handa <handa@m17n.org>
12053
12054 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12055 characters.
12056
12057 * composite.c (FORWARD_CHAR): Fix calculation
12058 of (POSITION).pos_byte.
12059 (composition_compute_stop_pos): Limit the search of composition to
12060 at most 500 characters ahead. If we reach the limit or find a
12061 newline, set cmp_it->ch to -2 and return 0.
12062 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12063
12064 2008-09-08 Kenichi Handa <handa@m17n.org>
12065
12066 * indent.c (Fvertical_motion): Be sure to set
12067 it_overshoot_expected if it.cmp_it.id is non-negative.
12068
12069 2008-09-07 Andreas Schwab <schwab@suse.de>
12070
12071 * callproc.c (Fcall_process): Don't hold references to string data
12072 across garbage collection. Move initialisation of new_argv down
12073 to avoid compiler bug.
12074
12075 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12076
12077 * process.c (Fsystem_process_attributes): Doc fix.
12078
12079 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
12080
12081 * callproc.c (Fcall_process): Canonicalize current directory name.
12082
12083 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12084 iterator advances to the next line if the current line ends in a
12085 continued tab.
12086
12087 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12088
12089 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12090 member to point to cmp_from.
12091
12092 * xdisp.c: Doc fix for references to gidx data member.
12093
12094 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12097
12098 2008-09-07 Kenichi Handa <handa@m17n.org>
12099
12100 * composite.c (FORWARD_CHAR): Check STOP after
12101 incrementing (POSITION).pos.
12102
12103 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12104
12105 * process.c (Fsystem_process_attributes): Doc fix.
12106
12107 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
12108
12109 * keyboard.c (Ftop_level): Doc fix.
12110
12111 2008-09-06 Eli Zaretskii <eliz@gnu.org>
12112
12113 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12114 minibuffer, don't let lower part of menu invade the echo area.
12115
12116 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12117 "char *q" to access menu text and advance through it. Revert the
12118 change that displayed ">" instead of ASCII character 0x10.
12119
12120 2008-09-05 Eli Zaretskii <eliz@gnu.org>
12121
12122 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12123 toggle boxes and radio buttons on MS-DOS as well.
12124
12125 2008-09-05 Kenichi Handa <handa@m17n.org>
12126
12127 * composite.c (autocmp_chars): Check lookback count.
12128 (composition_compute_stop_pos): Set cmp_it->lookback.
12129 (composition_reseat_it): Check lookback count.
12130 (struct position_record): New struct.
12131 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12132 (find_automatic_composition): New function.
12133 (composition_adjust_point): Use find_automatic_composition.
12134
12135 * dispextern.h (struct composition_it): New member lookback.
12136
12137 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
12138
12139 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12140 if moving by a single line.
12141
12142 2008-09-02 Andreas Schwab <schwab@suse.de>
12143
12144 * xterm.c (x_delete_display): Fix merge error.
12145
12146 * fileio.c (Fexpand_file_name): Remove unused variables.
12147
12148 2008-09-02 Eli Zaretskii <eliz@gnu.org>
12149
12150 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12151 storage on all platforms, not just on DOS_NT.
12152
12153 2008-09-02 Jason Rumney <jasonr@gnu.org>
12154
12155 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12156 Ensure mouse is not grabbed after menu is finished.
12157
12158 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
12159
12160 * xfaces.c (Finternal_set_alternative_font_family_alist)
12161 (Finternal_set_alternative_font_registry_alist): Properly copy
12162 entire alist structure.
12163
12164 2008-09-01 Kenichi Handa <handa@m17n.org>
12165
12166 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
12167 representative chars of the script is a vector.
12168 (ftfont_list): Handle the case where the representative chars of
12169 the script is a vector.
12170
12171 * character.c (syms_of_character): Docstring of
12172 script-representative-chars fixed.
12173
12174 2008-08-31 Eli Zaretskii <eliz@gnu.org>
12175
12176 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12177 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12178 the menu. Allocate larger buffer for `text', to account for
12179 possible ^C characters.
12180
12181 2008-08-31 Martin Rudalics <rudalics@gmx.at>
12182
12183 * xdisp.c (prepare_menu_bars): Don't call
12184 Vwindow_size_change_functions with arg Qt.
12185
12186 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12187
12188 * font.h (font_range):
12189 * fileio.c (report_file_error):
12190 * composite.c (composition_update_it): Yet another int/Lisp_Object
12191 mixup (YAILOM).
12192
12193 2008-08-30 Glenn Morris <rgm@gnu.org>
12194
12195 * data.c (Fmake_variable_frame_local): Doc fix.
12196
12197 * frame.c (Fmodify_frame_parameters): Doc fix.
12198
12199 2008-08-30 Eli Zaretskii <eliz@gnu.org>
12200
12201 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12202 needed by GetTokenInformation.
12203 (w32_system_process_attributes): Check return values of all system
12204 APIs.
12205
12206 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12207 only when the state changes.
12208 (IT_update_begin, IT_update_end): Add termscript trace.
12209
12210 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12211 clipboard is unavailable. Set dst to NULL if it doesn't point to
12212 malloc'ed data.
12213 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12214 passing random values to xfree.
12215
12216 * dispnew.c (init_display): Set `tty's association in frame's
12217 parameters alist to the name of the terminal device, if that is known.
12218
12219 2008-08-29 Jason Rumney <jasonr@gnu.org>
12220
12221 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12222
12223 2008-08-29 Eli Zaretskii <eliz@gnu.org>
12224
12225 * composite.c (fill_gstring_body): Avoid compiler warnings.
12226
12227 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12228 LGLYPH_SET_CODE to avoid compiler warnings.
12229
12230 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
12231
12232 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12233
12234 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12235 LGLYPH_SET_CODE.
12236
12237 2008-08-29 Kenichi Handa <handa@m17n.org>
12238
12239 * fileio.c (report_file_error): Don't downcase the first character
12240 of errstring if it is still unibyte.
12241
12242 2008-08-29 Kenichi Handa <handa@m17n.org>
12243
12244 These changes are to re-implement the automatic composition so
12245 that it doesn't use text properties.
12246
12247 * Makefile.in (ftfont.o): Depend on composite.h.
12248 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12249
12250 * character.h (Vunicode_category_table): Extern it.
12251
12252 * character.c (Vunicode_category_table): New variable.
12253 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12254
12255 * chartab.c (optimize_sub_char_table): Perform more greedy
12256 optimization.
12257
12258 * composite.h (enum composition_method):
12259 Delete COMPOSITION_WITH_GLYPH_STRING.
12260 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12261 (Vcomposition_function_table): Extern it.
12262 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12263 (composition_gstring_put_cache, composition_gstring_from_id)
12264 (composition_gstring_p, composition_gstring_width)
12265 (composition_compute_stop_pos, composition_reseat_it)
12266 (composition_update_it, composition_adjust_point): Extern them.
12267 (Fcomposition_get_gstring): EXFUN it.
12268
12269 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
12270 (Vcomposition_function_table)
12271 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
12272 (gstring_hash_table, gstring_work, gstring_work_headers):
12273 New variables.
12274 (gstring_lookup_cache, composition_gstring_put_cache)
12275 (composition_gstring_from_id, composition_gstring_p)
12276 (composition_gstring_width, fill_gstring_header)
12277 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12278 (composition_reseat_it, composition_update_it)
12279 (composition_adjust_point, Fcomposition_get_gstring): New functions.
12280 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12281 and gstring_work_headers. DEFVAR_LISP composition-function-table.
12282 Defsubr composition_get_gstring.
12283
12284 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12285 cmp_id.
12286 (struct glyph_string): Delete the member gidx. New members
12287 cmp_id, cmp_from, and cmp_to.
12288 (enum it_method): Delete GET_FROM_COMPOSITION.
12289 (struct composition_it): New struct.
12290 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12291 Delete c, len, cmp_id, cmp_len in u.comp.
12292
12293 * font.h (enum lgstring_indices): Delete it.
12294 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
12295 (enum lglyph_indices): Likewise.
12296 (font_range): Adjust extern.
12297 (font_fill_lglyph_metrics): Extern it.
12298
12299 * font.c (QCf): New variable.
12300 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12301 (font_prepare_composition): Delete this function.
12302 (font_range): Type and arguments changed.
12303 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12304 (font_fill_lglyph_metrics): New function.
12305 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
12306 (syms_of_font): DEFSYM QCf. Delete defsubr for
12307 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12308 Defsubr Sfont_shape_gstring.
12309
12310 * fontset.h (font_for_char): Extern it.
12311
12312 * fontset.c (font_for_char): New function.
12313
12314 * ftfont.c: Include composite.h.
12315 (ftfont_resolve_generic_family): Add langset "en" to pattern.
12316 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12317
12318 * indent.c: Include composite.h and dispextern.h.
12319 (check_composition): Delete this function.
12320 (scan_for_column): Handle composition by
12321 composition_compute_stop_pos, composition_reseat_it, and
12322 composition_update_it.
12323 (compute_motion): Likewise.
12324 (Fvertical_motion): Fix checking of composition.
12325
12326 * keyboard.c (adjust_point_for_property): Check composition by
12327 composition_adjust_point.
12328
12329 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
12330 struct glyph_string.
12331
12332 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12333 (append_composite_glyph): Adjust for the change of struct it and
12334 struct glyph.
12335 (produce_composite_glyph): Likewise.
12336
12337 * w32term.c (x_draw_composite_glyph_string_foreground):
12338 Adjust for the change of struct glyph_string.
12339 (x_draw_glyph_string): Likewise.
12340
12341 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12342 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12343
12344 * xdisp.c: Include font.h.
12345 (it_props): Delete the entry for Qauto_composed.
12346 (init_iterator): Initialize it->cmp_it.id to -1.
12347 (compute_stop_pos): Call composition_compute_stop_pos.
12348 (face_before_or_after_it_pos): Adjust for the change of struct it.
12349 (handle_auto_composed_prop): Delete it.
12350 (handle_composition_prop): Handle only static composition.
12351 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12352 from xassert. Initialize it->cmp_it.stop_pos.
12353 (push_it): Adjust for the change of struct it.
12354 (pop_it): Likewise.
12355 (get_next_element): Delete next_element_from_composition.
12356 (CHAR_COMPOSED_P): New macro.
12357 (get_next_display_element): For automatic composition, get a face
12358 from the font in the glyph-string.
12359 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
12360 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
12361 (next_element_from_string): Check if the character at the current
12362 position is composed by CHAR_COMPOSED_P.
12363 (next_element_from_buffer): Likewise.
12364 (next_element_from_composition): Adjust for the change of struct it.
12365 Update it->cmp_it.
12366 (dump_glyph): Adjust for the change of struct glyph.
12367 (fill_composite_glyph_string): Adjust for the change of struct
12368 it and struct glyph. Don't handle automatic composition here.
12369 (fill_gstring_glyph_string): New function.
12370 (x_get_glyph_overhangs): Handle automatic composition.
12371 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
12372 (BUILD_GSTRING_GLYPH_STRING): New macro.
12373 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12374 automatic composition.
12375 (append_composite_glyph): Adjust for the change of struct it and
12376 struct glyph.
12377 (x_produce_glyphs): Adjust for the change of struct it.
12378
12379 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12380 the change of struct glyph_string.
12381 (x_draw_glyph_string): Likewise.
12382
12383 2008-08-29 Glenn Morris <rgm@gnu.org>
12384
12385 * buffer.c (word-wrap): Doc fix.
12386 * xdisp.c (truncate-partial-width-windows): Doc fix.
12387 Increase default to 50.
12388
12389 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
12390
12391 * xdisp.c (update_tool_bar_unwind): New function.
12392 (update_tool_bar): Temporarily set selected frame before building
12393 tool-bar items.
12394
12395 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
12396
12397 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12398 snprintf, respectively.
12399 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12400
12401 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
12402
12403 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12404 LDFLAGS to GNUstep CC invocation.
12405
12406 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
12407
12408 * indent.c (Fvertical_motion): Revert last change. Handle the
12409 general case where we are moving forward, and PT spans multiple
12410 screen lines.
12411
12412 * eval.c (find_handler_clause): Temporarily increase
12413 max-lisp-eval-depth while printing the backtrace buffer, to
12414 guarantee that help-mode code can run.
12415
12416 2008-08-27 Eli Zaretskii <eliz@gnu.org>
12417
12418 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12419 colors under -rv.
12420 (IT_set_frame_parameters): Don't swap foreground and background
12421 colors if `(reverse . t)' is present in the frame properties.
12422 (internal_terminal_init): Call init_frame_faces only for the
12423 initial frame.
12424
12425 2008-08-27 Andreas Schwab <schwab@suse.de>
12426
12427 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12428
12429 2008-08-27 Andreas Schwab <schwab@suse.de>
12430
12431 * search.c (search_buffer): Set char_base to zero only at the end.
12432
12433 2008-08-27 Kenichi Handa <handa@m17n.org>
12434
12435 * fileio.c (report_file_error): Fix handling of multibyte error string.
12436
12437 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12438
12439 * xterm.c (x_term_init): Temporarily hide the partially
12440 initialized terminal while calling vendor-specific-keysyms.
12441
12442 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12443
12444 * msdos.c (internal_terminal_init): Most initializations done only
12445 once, especially initial_screen_colors[] and termscript open.
12446
12447 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12448
12449 * eval.c (Fcondition_case): Doc fix.
12450
12451 * widgetprv.h (EmacsFramePart): Change font member to the new font
12452 struct.
12453
12454 * widget.c: Include character.h and font.h for XSETFONT.
12455 (setup_frame_gcs): Compute X font id from font struct, just once.
12456
12457 2008-08-26 Eli Zaretskii <eliz@gnu.org>
12458
12459 * term.c (get_named_tty): Fix last change.
12460
12461 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
12462
12463 * indent.c (Fvertical_motion): If moving forward starting from a
12464 multi-line string, move the iterator to the last line of that string.
12465
12466 2008-08-25 Eli Zaretskii <eliz@gnu.org>
12467
12468 * frame.c (do_switch_frame): Mark previously displayed frame as
12469 obscured for FRAME_MSDOS_P frames as well.
12470
12471 2008-08-24 Eli Zaretskii <eliz@gnu.org>
12472
12473 * frame.c (make_terminal_frame): Initialize f->terminal,
12474 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12475 Set the top frame to newly created frame.
12476 (Fmake_terminal_frame): Reuse the_only_display_info.
12477
12478 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12479 estimating available memory.
12480
12481 2008-08-23 David Reitter <david.reitter@gmail.com>
12482
12483 * nsterm.m (ns_draw_window_cursor): Don't call
12484 NSDisableScreenUpdates and NSEnableScreenUpdates on
12485 non-NS_IMPL_COCOA systems.
12486
12487 2008-08-23 Andreas Schwab <schwab@suse.de>
12488
12489 * process.c (procfs_system_process_attributes): Fix use of
12490 uninitialized variables.
12491
12492 2008-08-23 Eli Zaretskii <eliz@gnu.org>
12493
12494 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12495
12496 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12497 calling tty-set-up-initial-frame-faces.
12498
12499 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12500 Allow MSDOS frames along with X frames.
12501
12502 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12503 addition to output_termcap.
12504
12505 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12506
12507 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12508 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12509 highlight.
12510
12511 * process.c [!subprocesses]: Define QCname.
12512 (syms_of_process): Intern and staticpro it.
12513
12514 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
12515 Adjust for changes in encoding/decoding routines.
12516 Use encode_coding_object and decode_coding_object instead of
12517 encode_coding and decode_coding.
12518
12519 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
12520
12521 * dosfns.c: Include frame.h before termhooks.h.
12522 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12523 variable termscript.
12524
12525 * s/msdos.h (USER_FULL_NAME): Define.
12526 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12527
12528 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12529 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12530 pw->pw_gecos.
12531
12532 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12533 SELECTED_FRAME as additional (1st) argument.
12534 (tty_read_avail_input): Handle output_msdos_raw in
12535 addition to output_termcap.
12536
12537 * msdos.c: Include frame.h before termhooks.h.
12538 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12539 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12540 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12541 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12542 (IT_set_terminal_modes, IT_reset_terminal_modes)
12543 (IT_set_frame_parameters): Use tty->termscript instead of a global
12544 variable termscript.
12545 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12546 global variable terminal_coding. Don't refer to
12547 Vnonascii_translation_table.
12548 (internal_terminal_init): Set Vwindow_system in current_kboard.
12549 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12550 Announce date and time of session start, if termscript is open.
12551 Don't zero out the_only_display_info (it is done in
12552 term.c:init_tty). Open termscript only of not already open.
12553 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
12554 here instead of dos_ttraw. Don't initialize display if this is an
12555 initial tty. Don't set FRAME_FONT.
12556 (Vwindow_system_version): Bump to 23.
12557 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12558 is available, set up mouse_position_hook.
12559 (dos_ttraw, IT_set_terminal_modes): If called with initial
12560 terminal, do nothing.
12561 (IT_set_frame_parameters): Handle the Qtty_type frame
12562 parameter by calling internal_terminal_init.
12563 (dos_set_window_size, show_mouse_face)
12564 (clear_mouse_face, IT_note_mode_line_highlight)
12565 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12566 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12567 (initialize_msdos_display): New function.
12568 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12569 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12570 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12571 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
12572 Accept additional argument: a pointer to a frame. Update all callers.
12573 (request_sigio, unrequest_sigio): Don't define, now defined on
12574 sysdep.c.
12575 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12576
12577 * term.c [MSDOS]: Include msdos.h.
12578 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12579 conditional to DOS_NT. Allow only one call to this function in a
12580 session. Don't allocate a new struct tty_display_info; instead,
12581 reuse the_only_display_info. Call get_tty_size to get screen
12582 dimensions. Call init_baud_rate to set bad_rate.
12583 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12584 (Fsuspend_tty) [MSDOS]: Don't close input and output.
12585 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
12586 (get_tty_terminal, get_named_tty, Ftty_type)
12587 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12588 output_termcap.
12589 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12590 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
12591 only when subprocesses are supported.
12592
12593 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12594 f->output_data.x.
12595 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12596 terminal devices.
12597
12598 * msdos.h: Remove definition of struct x_display_info and struct
12599 x_output.
12600 (FRAME_FONT): Use output_data.tty.
12601 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
12602 (struct x_display_info): Rename from display_info. Update all users in
12603 msdos.c.
12604 (struct x_output): Remove background_pixel and foreground_pixel.
12605 (the_only_display_info): Rename from the_only_x_display.
12606 (dos_ttraw): Update prototype.
12607
12608 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12609 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12610
12611 2008-08-23 Jason Rumney <jasonr@gnu.org>
12612
12613 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12614 (fn_TIFFSetDirectory): New library function used.
12615 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12616 (tiff_load): Use :index to select among multiple images. Set count
12617 property when multiple images exist.
12618 (gif_format): Use :index, not :image.
12619
12620 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
12621
12622 * xdisp.c (try_scrolling): Check INT_MAX instead of
12623 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12624 to obtain INT_MAX.
12625
12626 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12627
12628 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12629
12630 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12631
12632 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12633 GNUstep library location.
12634
12635 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
12636
12637 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12638 before using it.
12639
12640 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12641
12642 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12643
12644 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12645 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12646 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12647 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12648 (EmacsApp-cursor_blink_handler): Remove declaration.
12649 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12650 match 01 Feb 2008 changes in xterm.c.
12651 (ns_read_socket): Add cast to avoid warning.
12652 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12653 GNUstep.
12654
12655 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
12656
12657 * xselect.c (x_get_foreign_selection): Return nil if desired
12658 selection could not be obtained, instead of signalling an error.
12659
12660 2008-08-20 David Reitter <david.reitter@gmail.com>
12661
12662 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12663 * nsterm.m: Remove ns-specific code for cursor blinking.
12664 (ns_draw_window_cursor): Clear cursor properly rather than
12665 redrawing the area. Respect width of bar cursors.
12666 These changes enable the use of generic blink-cursor-mode and
12667 generic cursor types in NS and support smooth cursor movements (do
12668 not blink off after command).
12669 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12670 Nextstep, too.
12671
12672 2008-08-19 Kenichi Handa <handa@m17n.org>
12673
12674 * font.c (Vfont_log_deferred): New variable.
12675 (font_add_log): Check Vfont_log_deferred.
12676 (font_deferred_log): New function.
12677
12678 * font.h (font_deferred_log): Extern it.
12679
12680 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12681 for sorting.
12682 (face_for_char): Use deferred log.
12683
12684 2008-08-18 Kenichi Handa <handa@m17n.org>
12685
12686 * fontset.c (face_for_char): Add font log.
12687
12688 * font.c (font_add_log): Add the font properties :script, :lang,
12689 and :otf in the log.
12690
12691 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
12692
12693 * xdisp.c: Remove dead code.
12694 (handle_invisible_prop, next_overlay_string): Defer call to
12695 setup_for_ellipsis.
12696 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12697
12698 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
12699
12700 * xfaces.c (lookup_derived_face): Properly handle possible zero
12701 return value of get_lface_attributes.
12702 (merge_faces): Don't tell lookup_derived_face to signal an error
12703 if face is not found.
12704
12705 * dired.c (Fdirectory_files): Doc fix.
12706
12707 * process.c (make_process): Initialize kill_without_query struct
12708 member.
12709
12710 2008-08-15 Eli Zaretskii <eliz@gnu.org>
12711
12712 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12713 Alternative calculation of totphys for Visual Studio 6.
12714
12715 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12716
12717 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12718 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12719 All users changed.
12720 (stat): Only root directory passed to GetDriveType. Allow RAM
12721 disk as well as local fixed disk when w32-get-true-file-attributes
12722 is set to `local'.
12723 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12724 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12725 (w32_cached_id, w32_add_to_cache): New functions.
12726 (get_name_and_id): Look account names in the cache before calling
12727 lookup_account_sid.
12728 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12729 New initialization flags.
12730 (globals_of_w32): Initialize them to zero.
12731 (w32_system_process_attributes): Use w32_cached_id and
12732 w32_add_to_cache.
12733
12734 2008-08-14 Lawrence Mitchell <wence@gmx.li>
12735
12736 * lread.c (Fread_char, Fread_char_exclusive): If no character
12737 event is read before timeout is reached, return nil, rather than
12738 converting to a number.
12739
12740 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
12741
12742 * fns.c (use_dialog_box): Doc fix.
12743
12744 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12745 on OS X.
12746
12747 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
12748
12749 * frame.c (Qns_parse_geometry): New var.
12750 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12751
12752 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
12753
12754 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12755 space character in calculating tabs.
12756
12757 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12758
12759 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12760
12761 2008-08-10 Glenn Morris <rgm@gnu.org>
12762
12763 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12764 silence gcc "limited range of data type" warnings in some
12765 make_fixnum_or_float calls.
12766
12767 2008-08-09 Eli Zaretskii <eliz@gnu.org>
12768
12769 * w32.c (w32_system_process_attributes): If the process does not
12770 exist, return nil.
12771
12772 * w32.c: Include thelp32.h, psapi.h and coding.h.
12773 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12774 declarations.
12775 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12776 (Process32Next_Proc): New typedefs.
12777 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12778 (g_b_init_process32_next, g_b_init_open_thread_token)
12779 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12780 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12781 (g_b_init_get_process_working_set_size)
12782 (g_b_init_global_memory_status_ex): New static variables.
12783 (globals_of_w32): Initialize them.
12784 (create_toolhelp32_snapshot, process32_first, process32_next)
12785 (open_thread_token, impersonate_self, revert_to_self)
12786 (get_process_memory_info, get_process_working_set_size)
12787 (global_memory_status, global_memory_status_ex): New wrapper
12788 functions.
12789 (w32_list_system_processes, w32_system_process_attributes)
12790 (enable_privilege, restore_privilege, ltime, process_times):
12791 New functions.
12792 (convert_time_raw): New function.
12793 (convert_time): Remove conversion of FILETIME into time in 100
12794 nsec units, call convert_time_raw instead.
12795
12796 * process.h (w32_list_system_processes, w32_system_process_attributes):
12797 Add prototypes.
12798 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12799 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12800 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12801 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12802
12803 * process.c (Fsystem_process_attributes): Doc fix.
12804
12805 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
12806
12807 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12808 a continued multi-char glyph; if so, advance to the actual glyph.
12809
12810 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12811
12812 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12813
12814 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12815 (.m.o): Use it.
12816 * config.in: Regenerate.
12817
12818 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
12819
12820 * xdisp.c (redisplay_window): Revert last change.
12821 (try_window): Check bottom scroll margin too.
12822
12823 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12824
12825 * config.in: Regenerate.
12826
12827 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12828 -list-load-path-shadows'.
12829 (nsgui.h): Reduce number of things depending on it.
12830
12831 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
12832
12833 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12834 instead of window-end which does the wrong thing at eob.
12835 (try_cursor_movement): Minor optimization.
12836 (redisplay_window): If scroll margin is defined, don't assume
12837 window doesn't need scrolling.
12838
12839 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12840
12841 * config.in: Regenerate.
12842
12843 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12844 (mostlyclean): Don't delete *.d under NS.
12845
12846 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12847
12848 2008-08-06 Kenichi Handa <handa@m17n.org>
12849
12850 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12851
12852 2008-08-06 Andreas Schwab <schwab@suse.de>
12853
12854 * config.in: Regenerate.
12855
12856 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
12857
12858 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12859 forcing a window start.
12860
12861 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12862 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12863
12864 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12865
12866 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12867 argument.
12868
12869 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
12870
12871 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12872 <scroll-down-aggressively, before-change-functions>:
12873 <after-change-functions>: Reflow docstrings.
12874
12875 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12876 Ken Raeburn <raeburn@gnu.org>
12877
12878 Dock menu customization, based on a patch by Ken Raeburn, plus some
12879 other fixes.
12880 * nsmenu.m (dockMenu): New variable.
12881 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12882
12883 * nsterm.h (dockMenu): Declare.
12884
12885 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12886 (ns_term_init): Initialize dockMenu.
12887 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12888 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12889 left.
12890
12891 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12892
12893 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12894
12895 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12896
12897 * config.in: Regenerate.
12898
12899 2008-08-04 Seiji Zenitani <zenitani@mac.com>
12900
12901 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12902
12903 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
12904
12905 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12906
12907 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12908
12909 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12910
12911 * keyboard.h: Comment an #endif.
12912
12913 * lisp.h (have_menus_p): Adjust comment.
12914
12915 * menu.c (find_and_return_menu_selection): Fix comparison with
12916 client_data.
12917
12918 * nsmenu.m (popup_activated_flag): New variable.
12919 (popup_activated): New function.
12920 (menu-or-popup-active-p): New exported lisp definition.
12921 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12922 when popup done.
12923 (ns_popup_dialog): Set popup_activated_flag.
12924
12925 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12926 version for GNUstep (handled by conditional typedef in nsterm.m).
12927 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12928 in rgb.txt).
12929
12930 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12931
12932 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12933
12934 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12935
12936 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12937 shortcircuit if popup_activated like GTK and X toolkit.
12938
12939 * m/inter386.h: Change DARWIN to DARWIN_OS.
12940
12941 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12942 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12943 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12944 comment on NO_SOCK_SIGIO.
12945
12946 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
12947
12948 * nsterm.m (windowDidResize): Remove stopModal call.
12949
12950 2008-08-03 Andreas Schwab <schwab@suse.de>
12951
12952 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12953 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12954
12955 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
12956
12957 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12958 Don't use uninitialized pointer variable when using getrlimit.
12959
12960 2008-08-02 Jason Rumney <jasonr@gnu.org>
12961
12962 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12963
12964 2008-08-02 Eli Zaretskii <eliz@gnu.org>
12965
12966 * alloc.c (NSTATICS): Bump to 0x640.
12967
12968 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12969
12970 * lisp.h: Add prototype for directory_files_internal.
12971
12972 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12973 New functions.
12974 (syms_of_process): Defsubr them. Add initializations for various
12975 Q* symbols used in procfs_system_process_attributes.
12976 (procfs_list_system_processes, procfs_system_process_attributes)
12977 [HAVE_PROCFS]: New functions.
12978 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12979 (procfs_get_total_memory): New functions.
12980
12981 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
12982
12983 * xfaces.c (Fx_load_color_file): Fix previous change;
12984 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12985
12986 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
12987
12988 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12989
12990 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12991
12992 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12993
12994 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
12995
12996 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12997
12998 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12999 define NSApplicationDelegateReplySuccess.
13000 (EmacsView -converstationIdentifier): Use long instead of
13001 NSInteger for GNUstep, since it doesn't have NSInteger.
13002
13003 * xmenu.c: Revert last change.
13004
13005 * keyboard.h: Fix last change.
13006
13007 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13008
13009 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13010 on Windows.
13011
13012 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13013
13014 Warning clearing and clean-up in NS port.
13015 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13016 Add prototypes.
13017 * nsgui.h (FACE_DEFAULT): Remove, unused.
13018 (XGCValues): Change colors to unsigned long.
13019 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13020 nsterm.m.
13021 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13022 (ns_list_fonts): Remove, unused.
13023 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13024 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13025 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13026 (nsfont_draw): Compare face colors to 0, not nil.
13027 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13028 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13029 (-addSubmenuWithTitle:): Use NSMenuItem class.
13030 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13031 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13032 (ns_clip_to_row): Make gc arg a BOOL.
13033 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13034 ns_clip_to_row() call.
13035 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13036 used). Cast FRAME_FONT assignments.
13037 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13038 (ns_string_to_lispmod): Change arg to const char.
13039 (ns_term_init): Use NSMenuItem class.
13040 (EmacsApp -openFile:): Move to different section of file.
13041 (EmacsApp -application:openFiles:): Don't return a value, call
13042 -replyToOpenOrPrint:.
13043 (EmacsView -keyDown:): Fix up cast.
13044 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13045 (EmacsView -menuDown:): Cast tag in call to
13046 find_and_call_menu_selection().
13047 (ns_list_fonts): Remove, unused.
13048 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13049 (ns_fontname_to_xlfd): Make static.
13050 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13051 Remove prototypes (now in keyboard.h).
13052 (next_menubar_widget_id): Remove, unused.
13053 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13054 Remove prototypes (now in keyboard.h).
13055 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13056
13057 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13058
13059 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13060 (floatfns.o): Depend on syssignal.h.
13061 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13062
13063 * systty.h: Fix previous change that removed BSD_TERMIOS.
13064 Add comments to #ifdefs.
13065
13066 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13067
13068 * w32fns.c (w32-load-color-file): Remove.
13069 (x-open-connection): Use renamed Fx_load_color_file.
13070 * xfaces.c (x-load-color-file): Add.
13071 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13072 Emacs.clr.
13073 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13074
13075 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
13076
13077 * dbusbind.c (Fdbus_call_method_asynchronously)
13078 (Fdbus_method_error_internal): New defuns.
13079 (xd_read_message): Handle also reply messages.
13080 (Vdbus_registered_functions_table): Extend docstring.
13081
13082 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
13083
13084 * keyboard.c (gobble_input): Fix previous change.
13085
13086 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13087
13088 * bitmaps/README:
13089 * xfns.c:
13090 * termcap.c:
13091 * term.c:
13092 * syswait.h:
13093 * systty.h:
13094 * systime.h:
13095 * syssignal.h:
13096 * sysdep.c:
13097 * process.h:
13098 * process.c:
13099 * print.c:
13100 * ndir.h:
13101 * lread.c:
13102 * keyboard.c:
13103 * getpagesize.h:
13104 * floatfns.c:
13105 * fileio.c:
13106 * emacs.c:
13107 * doc.c:
13108 * dispnew.c:
13109 * dired.c:
13110 * data.c:
13111 * callproc.c:
13112 * buffer.c:
13113 * README:
13114 * Makefile.in:
13115 * s/template.h:
13116 * s/msdos.h:
13117 * m/vax.h: Remove VMS support.
13118 * s/vms.h:
13119 * vlimit.h:
13120 * uaf.h:
13121 * temacs.opt:
13122 * param.h:
13123 * ioctl.h: Remove file.
13124
13125 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13126
13127 * s/ms-w32.h (MULTI_KBOARD): Remove.
13128 * xterm.c:
13129 * xselect.c:
13130 * xfns.c:
13131 * window.c:
13132 * w32term.c:
13133 * w32fns.c:
13134 * terminal.c:
13135 * termhooks.h:
13136 * term.c:
13137 * sysdep.c:
13138 * keyboard.h:
13139 * keyboard.c:
13140 * frame.h:
13141 * frame.c:
13142 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13143 * config.in: Regenerate.
13144
13145 2008-07-30 Jason Rumney <jasonr@gnu.org>
13146
13147 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13148
13149 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13150 (w32font_open_internal): Get unicode version of textmetrics.
13151 Don't enable or disable glyph indices here.
13152 (w32font_open): Disable use of glyph indices.
13153
13154 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13155
13156 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
13157
13158 * minibuf.c (Vread_buffer_function): Doc fix.
13159
13160 2008-07-30 John Paul Wallington <jpw@pobox.com>
13161
13162 * minibuf.c (read_buffer_completion_ignore_case): New var.
13163 (Fread_buffer): Use it.
13164
13165 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13166
13167 * systty.h (sensemode): Remove empty #if. Remove reference to
13168 BSD_TERMIOS, unused.
13169
13170 * sysdep.c: Remove reference to DGUX.
13171 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13172
13173 * config.in: Regenerate.
13174
13175 2008-07-30 Jason Rumney <jasonr@gnu.org>
13176
13177 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13178
13179 2008-07-29 Jason Rumney <jasonr@gnu.org>
13180
13181 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13182 is populated.
13183 (uniscribe_encode_char): Always use uniscribe.
13184 Avoid using context if cache is populated.
13185
13186 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13187
13188 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13189 open menu.
13190
13191 * gtkutil.c (menu_nav_ended): Remove.
13192 (create_menus): Remove signal connect for menu_nav_ended.
13193
13194 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
13195
13196 * xdisp.c (redisplay_window): Check return value of
13197 compute_window_start_on_continuation_line before forcing a window
13198 start.
13199
13200 2008-07-28 Jason Rumney <jasonr@gnu.org>
13201
13202 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13203
13204 * w32term.c (w32_enable_unicode_output, cleartype_active):
13205 Remove obsolete display options.
13206 (x_draw_glyph_string_background): Don't use old cleartype_active
13207 workaround.
13208 (w32_initialize): Remove cleartype_active initialization.
13209 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13210
13211 2008-07-28 Andreas Schwab <schwab@suse.de>
13212
13213 * lisp.h (init_weak_hash_tables, syms_of_font)
13214 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13215 (remove_hash_entry): Don't declare.
13216 * eval.c (maybe_call_debugger): Make static and move before use.
13217 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13218 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13219 * xterm.h (x_set_frame_alpha): Declare.
13220
13221 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13222
13223 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13224 (create_menus): Connect selection-done to menu_nav_ended.
13225
13226 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13227
13228 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13229 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13230 parameter with read of 'alpha' one.
13231 (Qns_frame_parameter): Remove.
13232 * nsselect.m (selection-coding-system)
13233 (next-selection-coding-system, Vselection_coding_system)
13234 (Vnext_selection_coding_system): Drop.
13235
13236 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13237
13238 * nsfns.m (do-applescript, do_applescript): Rename to
13239 ns-do-applescript, ns_do_applescript, and move within file.
13240
13241 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13242
13243 Remove support for Mac Carbon.
13244 * mactoolbox.c:
13245 * macterm.h:
13246 * macterm.c:
13247 * macselect.c:
13248 * macmenu.c:
13249 * macgui.h:
13250 * macfns.c:
13251 * mac.c: Remove file.
13252 * s/darwin.h:
13253 * m/intel386.h:
13254 * xfaces.c:
13255 * xdisp.c:
13256 * window.c:
13257 * tparam.c:
13258 * termhooks.h:
13259 * termcap.c:
13260 * term.c:
13261 * syssignal.h:
13262 * sysselect.h:
13263 * sysdep.c:
13264 * process.c:
13265 * lread.c:
13266 * lisp.h:
13267 * keyboard.c:
13268 * image.c:
13269 * fringe.c:
13270 * frame.h:
13271 * frame.c:
13272 * fontset.c:
13273 * font.h:
13274 * font.c:
13275 * fns.c:
13276 * fileio.c:
13277 * emacs.c:
13278 * dispnew.c:
13279 * dispextern.h:
13280 * config.in:
13281 * atimer.c:
13282 * Makefile.in: Remove code for Carbon.
13283
13284 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13285
13286 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13287
13288 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13289
13290 * macterm.h (kCGBitmapByteOrder32Host): New define for
13291 non-universal SDKs.
13292
13293 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13294 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13295
13296 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13297 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13298
13299 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13300
13301 * w32inevt.c: Include dispextern.h.
13302
13303 2008-07-26 Andreas Schwab <schwab@suse.de>
13304
13305 * print.c (print_object): Fix off-by-one in last change.
13306
13307 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
13308
13309 * term.c (syms_of_term): Don't initialize default_orig_pair,
13310 default_set_foreground and default_set_background on Windows.
13311
13312 2008-07-25 Jason Rumney <jasonr@gnu.org>
13313
13314 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13315 ScriptItemize. Clean up return value checking. Remove unused
13316 variables.
13317 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13318 shaping engine.
13319
13320 * w32font.c (w32font_has_char): Handle the case where we can't
13321 determine the script for a character.
13322
13323 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13324
13325 * term.c (syms_of_term): Initialize default_orig_pair,
13326 default_set_foreground, and default_set_background.
13327
13328 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13329 clash (bug#86).
13330 (getloadavg): Callers changed.
13331
13332 * image.c (svg_load_image): Fix last change.
13333 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13334 image size is valid. Use g_object_unref instead of deprecated
13335 rsvg_handle_free to free rsvg handle.
13336 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13337
13338 2008-07-25 Jason Rumney <jasonr@gnu.org>
13339
13340 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13341 surrogates before looking up glyph index.
13342 (w32font_text_extents): Encode as surrogates if falling back to
13343 functions that need UTF-16 wide chars.
13344
13345 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13346 BMP as surrogates before looking up glyph index.
13347
13348 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
13349
13350 * image.c (svg_load_image): Check for failure in return value of
13351 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13352
13353 2008-07-25 Jason Rumney <jasonr@gnu.org>
13354
13355 * w32font.c (Fx_select_font): Reverse sense of second arg.
13356
13357 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13358
13359 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13360 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13361
13362 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13363 (PURESIZE): Use it.
13364
13365 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13366
13367 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13368 * m/alpha.h (TEXT_END):
13369 * m/ibmrs6000.h (TEXT_END):
13370 * m/macppc.h (TEXT_END):
13371 * s/darwin.h (TEXT_END):
13372 * s/msdos.h (TEXT_END): Remove, unused.
13373 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13374 * s/cygwin.h: Remove comment.
13375
13376 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13377 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13378 * m/intel386.h (DOT_GLOBAL_START):
13379 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13380 (USG): Remove, file not used on USG platforms.
13381
13382 * Makefile.in (HAVE_X11): Remove empty #else.
13383
13384 2008-07-24 Andreas Schwab <schwab@suse.de>
13385
13386 * fileio.c (Finsert_file_contents): Properly adjust undo list
13387 after format conversion.
13388
13389 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13390
13391 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13392 (menu_nav_ended): Remove.
13393 (create_menus): Remove signal connect for menu_nav_ended.
13394 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13395 create_menus.
13396 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13397
13398 2008-07-23 Jason Rumney <jasonr@gnu.org>
13399
13400 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13401 with opened font.
13402 (w32font_open): Set font type to gdi.
13403
13404 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13405
13406 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13407
13408 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13409 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13410 defines it.
13411 * unexec.c (ADDR_CORRECT): Define unconditionally.
13412
13413 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13414
13415 * unexec.c: Remove code depending on !COFF and USG, the file is
13416 not used for such systems.
13417
13418 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13419 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13420 (LD_SWITCH_SYSTEM_1): Remove, update users.
13421
13422 * s/darwin.h (DATA_END):
13423 * m/intel386.h (DATA_END):
13424 * m/ibmrs6000.h (DATA_END):
13425 * m/alpha.h (DATA_END): Remove, unused.
13426
13427 * config.in: Regenerate.
13428 * s/ms-w32.h (subprocesses): Define unconditionally.
13429 * s/template.h (subprocesses): Update comment.
13430 * s/vms.h (subprocesses):
13431 * s/usg5-4.h (subprocesses):
13432 * s/hpux10-20.h (subprocesses):
13433 * s/gnu-linux.h (subprocesses):
13434 * s/cygwin.h (subprocesses):
13435 * s/bsd-common.h (subprocesses):
13436 * s/aix4-2.h (subprocesses):
13437 * s/darwin.h (subprocesses): Do not define, defined by default now.
13438
13439 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13440 Remove all references.
13441 (temacs): Add GNUstep specific ld flags.
13442
13443 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13444 similarly to what X does.
13445
13446 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13447
13448 * nsfns.m (x-list-fonts): Remove.
13449 (syms_of_nsfns): Drop the x-list-fonts declaration.
13450 * nsterm.m: Get rid of remaining "//" comments.
13451
13452 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
13453
13454 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13455
13456 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13457 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13458 (Fns_own_selection_internal, Fx_disown_selection_internal)
13459 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13460
13461 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13462 ... */' style of docstrings. Doc fixes.
13463
13464 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13465
13466 * terminfo.c (UP, BC, PC): Undo previous change.
13467
13468 * nsfns.m: Rename ns prefixed functions/variables to the
13469 corresponding x versions. Update references.
13470
13471 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13472
13473 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13474
13475 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13476
13477 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13478 Remove forwarding functions.
13479 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13480 non-static.
13481 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13482 non-static.
13483 (ns_frame_parm_handlers): Use the new names.
13484 (syms_of_nsfns): Move to the end of file.
13485
13486 * nsterm.m (syms_of_nsterm): Move to the end of file.
13487
13488 * dispnew.c (init_display): Remove code for X10.
13489
13490 2008-07-22 Jason Rumney <jasonr@gnu.org>
13491
13492 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13493 bare drive.
13494
13495 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13496
13497 * nsterm.m (syms_of_nsterm): Remove debugging println.
13498
13499 2008-07-22 David Reitter <david.reitter@gmail.com>
13500
13501 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13502 Carbon implementation of the same functionality: execute arbitrary
13503 AppleScript code.
13504
13505 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13506
13507 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13508 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13509 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13510 (Fx_display_mm_height, Fx_display_mm_width)
13511 (Fx_display_backing_store, Fx_display_visual_class)
13512 (Fx_display_save_under, Fx_open_connection)
13513 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13514 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13515 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13516 (Fx_display_pixel_width, Fx_display_pixel_height)
13517 (Fx_display_usable_bounds, Fx_display_planes)
13518 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13519 ... */' style of docstrings.
13520
13521 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13522
13523 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13524 on this platform.
13525 (mips):
13526 * m/iris4d.h (mips): Do not define.
13527 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13528
13529 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13530
13531 * image.c:
13532 * nsfns.m:
13533 * nsselect.m:
13534 * nsterm.h:
13535 * nsterm.m: Rename ns prefixed functions/variables to the
13536 corresponding x versions. Update references.
13537
13538 * m/ibms390x.h (NO_REMAP): Do not undefine.
13539
13540 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13541
13542 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
13543
13544 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13545 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13546 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13547 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13548 (Fns_display_mm_height, Fns_display_mm_width)
13549 (Fns_display_backing_store, Fns_display_visual_class)
13550 (Fns_display_save_under, Fns_open_connection)
13551 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13552 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13553 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13554 (Fns_display_pixel_width, Fns_display_pixel_height)
13555 (Fns_display_usable_bounds, Fx_display_planes)
13556 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13557
13558 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13559
13560 * print.c (print_object): Check print_depth before searching for
13561 circularities.
13562
13563 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
13564
13565 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13566 only sprintf.
13567
13568 2008-07-21 Kenichi Handa <handa@m17n.org>
13569
13570 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13571
13572 2008-07-20 Andreas Schwab <schwab@suse.de>
13573
13574 * syntax.c (find_start_pos, find_start_value)
13575 (find_start_value_byte, find_start_begv, find_defun_start)
13576 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13577
13578 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13579
13580 * s/sol2-3.h: Insert contents of s/sol2.h.
13581 (LD_SWITCH_SYSTEM): Remove redundant definition.
13582 * s/sol2.h: Remove, unused.
13583
13584 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13585
13586 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13587
13588 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13589
13590 * Makefile.in (ns_appdir): Fix typo in find command.
13591
13592 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13593
13594 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13595
13596 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13597 added not supported anymore.
13598
13599 * s/usg5-4-2.h (LIBS_SYSTEM):
13600 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13601
13602 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13603 * s/lynxos.h (GETPGRP_NO_ARG):
13604 * s/hpux10-20.h (NO_SIOCTL_H):
13605 * s/gnu.h (GETPGRP_NO_ARG):
13606 * s/gnu-linux.h (NO_SIOCTL_H):
13607 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13608 * s/cygwin.h (GETPGRP_NO_ARG):
13609 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13610 (C_DEBUG_SWITCH): Remove duplicate definition.
13611
13612 * m/ibms390.h: Remove boilerplate comments.
13613
13614 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13615
13616 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13617 (wait_reading_process_output): Remove code for SunOS, platform not
13618 supported anymore. Use SOLARIS2 instead of sun.
13619
13620 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13621
13622 * font.c (font_open_by_name): Under NS, default lface height to zero.
13623 (font_open_for_lface): Under NS, set size based on frame fontsize.
13624 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13625 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13626
13627 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13628
13629 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13630 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13631 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13632 YES/NO.
13633 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13634 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13635 * Makefile.in (clean): Clear out build destination dir.
13636
13637 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13638
13639 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13640 xterm, xselect.
13641 * lisp.h: Remove declaration of hash_remove.
13642 * nsgui.h: Remove redefinitions of hash_remove.
13643 * fns.c (hash_remove): Rename to hash_remove_from_table.
13644
13645 2008-07-19 Seiji Zenitani <zenitani@mac.com>
13646
13647 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13648 strdup() the family UTF8String before modifying it.
13649
13650 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13651
13652 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13653 NS_FACE_BACKGROUND with 0 instead of nil.
13654 * nsfont.m (nsfont_draw): Same.
13655
13656 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
13657
13658 * nsfns.m (ns_set_background_color): Fix crash.
13659
13660 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
13661
13662 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13663
13664 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13665
13666 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13667
13668 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13669
13670 * gtkutil.c: Include <config.h> instead of "config.h".
13671
13672 * lisp.h (Foverlay_buffer): Add EXFUN.
13673
13674 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13675 child process to complete child_setup. Undo 2005-09-21 change.
13676
13677 * s/darwin.h: Mention setsid after vfork.
13678
13679 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13680
13681 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13682 Depend on macgui.h.
13683
13684 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13685 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13686
13687 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13688 and f19.
13689 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13690
13691 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13692 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13693 Remove enumerators.
13694
13695 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13696 Check if FACE_FROM_ID returns NULL.
13697
13698 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13699
13700 * w32inevt.c (change_frame_size): Remove extern declaration.
13701 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13702 change_frame_size.
13703
13704 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13705
13706 * getloadavg.c: Revert last change (2008-07-15).
13707
13708 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13709
13710 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
13711 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
13712 from configure.
13713
13714 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13715
13716 * s/sol2.h:
13717 * s/sol2-4.h: Reorganize conditionals.
13718
13719 * ecrt0.c: Remove code depending on m68000, not used anymore.
13720
13721 * fns.c (hash_remove): Make static.
13722 * lisp.h (hash_remove): Don't prototype.
13723
13724 * m/ibmrs6000.h:
13725 * m/ibms390x.h:
13726 * m/macppc.h: Remove boilerplate comments.
13727
13728 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13729 Solaris, which does not need them.
13730
13731 * m/vax.h: Remove comments about unsupported systems.
13732
13733 * s/darwin.h: Reorganize ifdefs.
13734
13735 2008-07-17 Andreas Schwab <schwab@suse.de>
13736
13737 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13738
13739 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13740
13741 Use SDATA. Follow coding convention of placing operators at
13742 beginning of next line rather than end of previous line, and placing
13743 spaces around infix operators.
13744
13745 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13746 in case it was defined already.
13747 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13748 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13749 ns_default.
13750 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13751 Lisp_Objects.
13752 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13753 (ns_defined_color, ns_color_to_lisp): Declare.
13754 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13755 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13756 it's accepted even with USE_LISP_UNION_TYPE.
13757 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13758 (update_frame_tool_bar): Remove apparently obsolete tests for
13759 non-integerness of f->tool_bar_lines.
13760 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13761 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13762 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13763 (nsfont_open): Don't confuse NULL for Qnil.
13764 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13765 * menu.h (find_and_call_menu_selection):
13766 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13767 (find_and_return_menu_selection): Always return something.
13768 * frame.h: Include dispextern.h for Display_Info.
13769 (display_x_get_resource): Declare.
13770
13771 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13772
13773 * syntax.c: Remove stdio.h include accidentally introduced in
13774 Emacs.app commit.
13775 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13776 NS_IMPL_COCOA.
13777 * keyboard.c (handle_async_input, input_available_signal): Remove
13778 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13779
13780 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13781
13782 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13783 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13784 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13785 Use SDATA.
13786
13787 * keymap.c: Remove all NS-specific code.
13788 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13789 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13790 where_is_preferred_modifier, return a different value depending on how
13791 preferred is the binding.
13792 (where_is_internal): Adjust accordingly.
13793 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13794 Adjust to new preferred_sequence_p.
13795 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13796 * keyboard.c (parse_solitary_modifier): Not static any more.
13797 * keyboard.h (parse_solitary_modifier): Declare.
13798
13799 2008-07-16 Andreas Schwab <schwab@suse.de>
13800
13801 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13802 of easymenu.
13803
13804 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
13805
13806 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13807 that we don't move off the line.
13808
13809 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13810
13811 * keyboard.c (Qsuper): Remove.
13812 (parse_menu_item): Don't call where_is_internal specially for NS.
13813
13814 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13815
13816 * s/gnu-linux.h: Remove boilerplate comments.
13817
13818 * m/alpha.h (__ELF__): Consolidate conditions.
13819
13820 * m/m68k.h (linux): Use GNU_LINUX instead.
13821 Remove boilerplate comments.
13822
13823 * m/intel386.h: Undo refactoring from previous change.
13824 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13825 too, remove dead code.
13826 (linux): Use GNU_LINUX instead.
13827
13828 2008-07-16 Jason Rumney <jasonr@gnu.org>
13829
13830 * w32gui.h: Repeat 26 June changes lost by last change.
13831
13832 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13833
13834 * systty.h: Remove code for Aix on 386, unsupported platform.
13835
13836 * s/ms-w32.h: Remove boilerplate comments.
13837 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13838
13839 * s/gnu-linux.h (TERM): Remove support.
13840 (HAVE_SYSVIPC): Remove, unused.
13841 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13842 for this system.
13843
13844 * process.c: Remove support for IRIS, unused.
13845 Remove support for TERM, not relevant anymore.
13846
13847 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13848 used with the definition.
13849
13850 * s/aix4-2.h (static): Do not undef.
13851
13852 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13853 only used on Aix.
13854 (HAVE_SYSVIPC): Remove, unused.
13855
13856 * m/hp800.h (CANNOT_DUMP): Do not undef.
13857
13858 * m/alpha.h: Fix comment.
13859
13860 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13861 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13862 used by this configuration.
13863 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13864 * unexec.c: Remove code depending on HPUX and
13865 USG_SHARED_LIBRARIES, not used with this file. Remove code
13866 depending on IRIS, unused. Remove if 0-ed code.
13867
13868 * s/template.h: Remove comments about static.
13869
13870 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13871 Remove if 0-ed code.
13872 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13873 were the same as the default.
13874 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13875 Remove boilerplate comments.
13876 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13877 (HAVE_SYSVIPC): Remove, unused.
13878 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13879
13880 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13881 Remove boilerplate comments.
13882 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13883 Remove boilerplate comments.
13884 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13885 Remove boilerplate comments.
13886 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13887
13888 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13889 USG systems which do not use DATA_SEG_BITS.
13890 Refactor code. Remove boilerplate comments.
13891
13892 * m/ibms390.h:
13893 * m/m68k.h:
13894 * s/bsd-common.h:
13895 * s/cygwin.h:
13896 * s/darwin.h:
13897 * s/freebsd.h:
13898 * s/gnu.h:
13899 * s/msdos.h: Remove boilerplate comments.
13900
13901 * m/iris4d.h: Remove boilerplate comments and code for systems that
13902 do not use this file.
13903 (IRIS_4D): Remove, unused.
13904
13905 * m/mips.h: Remove boilerplate comments and code for systems that
13906 do not use this file.
13907 (SIGN_EXTEND_CHAR):
13908 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13909 * unexmips.c: Remove file, unused.
13910
13911 * editfns.c (Fuser_full_name): Replace the only use of
13912 USER_FULL_NAME with its value.
13913 * config.in: Regenerate.
13914
13915 2008-07-16 David Reitter <david.reitter@gmail.com>
13916
13917 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13918 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13919
13920 2008-07-16 Glenn Morris <rgm@gnu.org>
13921
13922 * emacs.c (system-type): Doc fix.
13923
13924 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13925
13926 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13927 If the cache doesn't work, let's fix it, rather than work around it.
13928
13929 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13930
13931 * Makefile.in: Correct additions for nsfont.o in last commit.
13932 * nsfont.m: New file (forgot last commit).
13933
13934 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13935
13936 * callproc.c (set_initial_environment): Initialize
13937 Vprocess_environment under CANNOT_DUMP (fixes crash when
13938 batch-compiling for bootstrap).
13939
13940 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13941 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13942
13943 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13944 CANNOT_DUMP case -- fix crash due to different init order.
13945
13946 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13947
13948 Changes and additions for NeXTstep windowing system (Cocoa and
13949 GNUstep) support.
13950
13951 * Makefile.in:
13952 * config.in: Support defines and build commands for NS port.
13953 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13954 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13955 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13956 windowing.
13957 (struct face): Add synth_ital field.
13958 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13959 (init_display): Initialize Vinitial_window_system to "ns" when so
13960 compiled.
13961 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13962 (display_arg): Use under NS.
13963 (main): Under NS, allocate autorelease pool and handle command line
13964 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13965 (standard_args): Add NS-specific args.
13966 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13967 * font.c (DEFAULT_ENCODING): New variable.
13968 (font_find_for_lface): Use it.
13969 (syms_of_font): Load syms_of_nsfont under NS.
13970 * font.h: Declare nsfont_driver when compiled under NS.
13971 * fontset.c: When compiling under NS, include nsterm.h.
13972 (fontset_from_font): Autoconstruct fontset under NS.
13973 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13974 symbol, document and use it.
13975 (do_switch_frame): When for_deletion under Cocoa, add
13976 Fraise_frame(Qnil).
13977 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13978 (x_get_arg): Allow "yes" and "no" as boolean values.
13979 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13980 Qright under Cocoa.
13981 (focus-follows-mouse): Default to 0 under NS.
13982 * frame.h (enum output_method): Add output_ns.
13983 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13984 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13985 (FRAME_WINDOW_P): NS-specific definition.
13986 * fringe.c (max_used_fringe_bitmap): Make public.
13987 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13988 (getloadavg): Use NeXT code under descendant OS's.
13989 * image.c (includes and header section, x_create_bitmap_from_data)
13990 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13991 (image_background_transparent, x_clear_image_1)
13992 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13993 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13994 (x_to_xcolors, x_from_xcolors, x_disable_image)
13995 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13996 other GUIs, including XPM support using code originally written for
13997 Carbon GUI.
13998 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13999 using NS API.
14000 (image_ascent): Use font metrics macros instead of direct struct field
14001 access.
14002 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14003 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14004 Also, handle NS as GTK for menu bar purposes.
14005 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14006 toolkit where they differ.
14007 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14008 use cachelist, still needed under NS.
14009 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14010 (struct widget_value): Define it here for menu.c.
14011 * keymap.c (includes): Include modifier internals.
14012 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14013 NS.
14014 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14015 support for preferring sequences using certain modifiers, specified by
14016 the FIRSTONLY argument.
14017 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14018 under NS GNUstep implementation.
14019 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14020 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14021 * menu.c: Include nsterm.h under NS.
14022 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14023 (free_menubar_widget_tree_value, update_submenu_strings)
14024 (find_and_call_menu_selection): Treat NS as X and NT.
14025 (find_and_return_menu_selection): New function, used for popup menus.
14026 * nsgui.h:
14027 * nsterm.h:
14028 * nsfns.m:
14029 * nsimage.m:
14030 * nsmenu.m:
14031 * nsselect.m:
14032 * nsterm.m: New files.
14033 * process.c (wait_reading_process_output): Under NS, call ns_select()
14034 instead of plain select().
14035 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14036 beginning of buffer.
14037 * sysselect.h (init_process): Rename when compiling under Cocoa to
14038 avoid name conflict.
14039 * termhooks.h (display_info): Add ns_display_info to union.
14040 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14041 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14042 COCOA environment.
14043 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14044 unexec() signature. (Note, this will dump, but the resulting file
14045 crashes; unexosx is used instead; keeping around for reference and
14046 possible aid in getting dump working under GNUstep.)
14047 * w32gui.h (button_type, widget_value): Remove definitions (now in
14048 keyboard.h).
14049 * window.c: Include nsterm.h when compiling under NS.
14050 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14051 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14052 other GUI windowing systems.
14053 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14054 GTK.
14055 (x_consider_frame_title): Under NS, set icon type and frame
14056 modified-state indicator; use ns_set_name_as_filename() when using
14057 formatted title.
14058 (update_window_cursor): Make public when compiling under NS.
14059 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14060 (hourglass_atimer, Vhourglass_delay
14061 * xfaces.c (header section, init_frame_faces, clear_font_table)
14062 (defined_color, unload_color, x_face_list_fonts)
14063 (prepare_face_for_display): Add NS support parallel to other GUIs.
14064 Emulate GCs like other non-X GUIs.
14065 (split_font_name): Don't lowercase font name under NS.
14066 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14067 under NS.
14068 * s/darwin.h: Add support for compilation under NS.
14069
14070 2008-07-15 Jason Rumney <jasonr@gnu.org>
14071
14072 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14073 (w32_show_hourglass): Rename from show_hourglass.
14074 (w32_hide_hourglass): Rename from hide_hourglass.
14075 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14076 (Vhourglass_delay): Declare extern.
14077 (hourglass_started): Remove.
14078
14079 * xdisp.c (Vhourglass_delay): Remove static.
14080 (hourglass_started, start_hourglass, cancel_hourglass):
14081 Don't include these versions on WINDOWSNT.
14082
14083 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14084
14085 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14086 variables (formerly in xfns.c).
14087 (show_hourglass, hide_hourglass): New prototypes (same).
14088 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14089 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14090 in xfns.c).
14091 (syms_of_xdisp): Declare/initialize display-hourglass,
14092 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14093 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14094 formerly in xfns.c.
14095 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14096 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14097 (start_hourglass, cancel_hourglass): Remove.
14098 (show_hourglass, hide_hourglass): Remove prototypes and static
14099 modifiers.
14100 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14101 hourglass_atimer, hourglass_shown_p declaration/initialization.
14102 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14103 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14104 (start_hourglass, cancel_hourglass): Remove.
14105 (show_hourglass, hide_hourglass): Remove prototypes and static
14106 modifiers.
14107 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14108 hourglass_atimer, hourglass_shown_p declaration/initialization.
14109 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14110 (DEFAULT_HOURGLASS_DELAY): Remove.
14111 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14112 hourglass_shown_p declaration/initialization.
14113
14114 2008-07-14 Jason Rumney <jasonr@gnu.org>
14115
14116 * w32fns.c (w32_get_arg): Remove wrapper function.
14117 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14118 directly.
14119 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14120
14121 2008-07-14 Kenichi Handa <handa@m17n.org>
14122
14123 * xfont.c (xfont_open): Add workaround for X's bug.
14124
14125 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14126
14127 * fontset.c: Include <stdio.h> unconditionally.
14128
14129 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
14130
14131 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14132 for filtering.
14133
14134 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14135
14136 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14137
14138 * m/macppc.h:
14139 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14140
14141 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
14142 (SPECIAL_EMACS_INT):
14143 * m/ia64.h (SPECIAL_EMACS_INT):
14144 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14145 * s/gnu.h (NLIST_STRUCT):
14146 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14147 * s/gnu-linux.h (LINUX):
14148 * s/msdos.h (HAVE_FACES):
14149 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14150
14151 * systty.h:
14152 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14153 anymore.
14154
14155 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14156
14157 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14158 always defined as int.
14159
14160 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14161 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14162 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14163 * s/freebsd.h (HAVE_WAIT_HEADER):
14164 * s/bsd-common.h (HAVE_UNION_WAIT):
14165 * s/aix4-2.h (HAVE_WAIT_HEADER):
14166 * m/mips.h (HAVE_UNION_WAIT):
14167 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14168 (COFF, static): Do not define, they are undefined later in the file.
14169
14170 * process.c (update_status): Don't use a union.
14171 (status_convert):
14172 (sigchld_handler): Use int instead of WAITTYPE.
14173
14174 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
14175
14176 * indent.c (Fvertical_motion): Restore hscroll before moving to
14177 goal column.
14178
14179 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14180
14181 * lisp.h: Remove left over code.
14182
14183 2008-07-11 Andreas Schwab <schwab@suse.de>
14184
14185 * lisp.h: Fix logic in last change.
14186
14187 * menu.h: New file.
14188 * menu.c: Include it.
14189 * xmenu.c: Likewise.
14190 * Makefile.in: Update dependencies.
14191
14192 2008-07-11 Kenichi Handa <handa@m17n.org>
14193
14194 * fontset.c (fontset_from_font): Cancel the previous change.
14195
14196 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14197
14198 * lisp.h:
14199 * w32heap.c:
14200 * emacs.c:
14201 * alloc.c: Replace all references of NO_UNION_TYPE with
14202 USE_LISP_UNION_TYPE.
14203
14204 * m/xtensa.h (NO_UNION_TYPE):
14205 * m/vax.h (NO_UNION_TYPE):
14206 * m/template.h (NO_UNION_TYPE):
14207 * m/sparc.h (NO_UNION_TYPE):
14208 * m/mips.h (NO_UNION_TYPE):
14209 * m/macppc.h (NO_UNION_TYPE):
14210 * m/m68k.h (NO_UNION_TYPE):
14211 * m/iris4d.h (NO_UNION_TYPE):
14212 * m/intel386.h (NO_UNION_TYPE):
14213 * m/ibms390x.h (NO_UNION_TYPE):
14214 * m/ibms390.h (NO_UNION_TYPE):
14215 * m/ibmrs6000.h (NO_UNION_TYPE):
14216 * m/ia64.h (NO_UNION_TYPE):
14217 * m/hp800.h (NO_UNION_TYPE):
14218 * m/arm.h (NO_UNION_TYPE):
14219 * m/amdx86-64.h (NO_UNION_TYPE):
14220 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14221 defining it the same.
14222
14223 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
14224
14225 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14226
14227 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14228
14229 * fileio.c:
14230 * sysdep.c:
14231 * systty.h:
14232 * m/ibmrs6000.h:
14233 * m/iris4d.h:
14234 * s/aix4-2.h:
14235 * s/freebsd.h:
14236 * s/gnu-linux.h:
14237 * s/hpux10-20.h:
14238 * s/hpux11.h:
14239 * s/netbsd.h:
14240 * s/sol2-3.h:
14241 * s/sol2-4.h:
14242 * s/sol2.h:
14243 * s/usg5-4.h:
14244 * s/vms.h: Remove references to unused variables.
14245
14246 2008-07-10 Andreas Schwab <schwab@suse.de>
14247
14248 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14249 pattern before matching the generic family.
14250
14251 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14252
14253 * unexec.c:
14254 * s/vms.h:
14255 * s/usg5-4-2.h:
14256 * s/sol2-5.h:
14257 * s/freebsd.h:
14258 * s/darwin.h: Remove dead code.
14259
14260 * m/template.h:
14261 * m/sparc.h:
14262 * m/mips.h:
14263 * m/m68k.h:
14264 * m/iris4d.h:
14265 * m/intel386.h:
14266 * m/ibms390x.h:
14267 * m/ibms390.h:
14268 * m/ia64.h:
14269 * m/hp800.h:
14270 * m/arm.h:
14271 * m/amdx86-64.h: Remove dead code and references to unused
14272 and compiler defined symbols.
14273
14274 * unexmips.c:
14275 * unexelf.c: Remove references to desupported systems.
14276
14277 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14278
14279 * m/powermac.h: Remove boilerplate comments.
14280 (NO_REMAP): Remove unused definition.
14281
14282 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14283 define them.
14284
14285 2008-07-10 Kenichi Handa <handa@m17n.org>
14286
14287 * xfont.c (xfont_open): Log the reason of failure.
14288
14289 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * fontset.c (fontset_get_font_group):
14292 * font.c (font_check_otf): Specify argument types.
14293
14294 2008-07-09 Kenichi Handa <handa@m17n.org>
14295
14296 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14297 non-ASCII char is found.
14298
14299 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14300 (reorder_font_vector): Change the arg preferred_family to font.
14301 Prefer the spec matching with font.
14302 (fontset_get_font_group): New function.
14303 (fontset_find_font): Change the format of an element of a realized
14304 fontset. Use fontset_get_font_group.
14305 (fontset_font): Try the current fontset, the default fontset, the
14306 fallbacks of the current fontset, and the fallbacks of the default
14307 fontset in this order.
14308 (face_for_char): Delete the shortcut to use the current font.
14309 (fontset_from_font): Don't set fonts for Latin in the fontset.
14310
14311 * font.h (font_make_object, font_match_p): Adjust prototypes.
14312
14313 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14314
14315 * font.c (font_make_object): New arg entity and pixelsize.
14316 (font_check_otf_features, font_check_otf): New functions.
14317 (font_match_p): Check :lang, :script, and :otf properties.
14318
14319 * xfont.c (xfont_open): Adjust it for the change of
14320 font_make_object.
14321 (xfont_text_extents): Fix initial setting of metrics.
14322
14323 * ftfont.c (struct ftfont_info): New member index, delete member
14324 fc_charset_idx. Make the member order compatible with struct
14325 xftfont_info.
14326 (fc_charset_table): Change charset names to registry names.
14327 (ftfont_pattern_entity): Delete the args registry and
14328 fc_charset_idx. Change the value of :font-entity property
14329 to (FONTNAME . INDEX). Always set :registry property to
14330 `iso10646-1'.
14331 (struct ftfont_cache_data): New struct.
14332 (ftfont_lookup_cache): New arg for_face.
14333 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14334 (ftfont_driver): Set the member otf_capability.
14335 (ftfont_get_charset): Adjust it for the change of
14336 fc_charset_table.
14337 (OTF_TAG_SYM): New macro.
14338 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14339 for the change of fc_charset_table.
14340 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14341 ftfont_pattern_entity. Add FC_INDEX to objset.
14342 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14343 and ftfont_pattern_entity.
14344 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14345 font_make_object, struct ftfont_info.
14346 (ftfont_has_char): Use ftfont_get_fc_charset.
14347 (ftfont_otf_features, ftfont_otf_capability): New functions.
14348 (ftfont_shape): Use ftfont_get_otf.
14349 (ftfont_text_extents): Fix initial setting of metrics.
14350
14351 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14352 member order compatible with struct ftfont_info.
14353 (xftfont_open): Add FC_CHARSET to the pattern. Set
14354 xftfont_info->ft_size. Don't unlock the face. Check BDF
14355 properties if appropriate.
14356 (xftfont_close): Unlock the face.
14357 (xftfont_anchor_point, xftfont_shape): Deleted.
14358 (syms_of_xftfont): Don't set members anchor_point and shape of
14359 xftfont_driver.
14360
14361 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14362 font_make_object.
14363
14364 * w32font.c (w32font_open): Adjust it for the change of
14365 font_make_object.
14366 (w32font_open_internal): Don't set properties of font_object here.
14367
14368 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
14369
14370 * macfns.c (x_create_tip_frame):
14371 * w32fns.c (x_create_tip_frame):
14372 * xfns.c (x_create_tip_frame): Pass parameter argument to
14373 face-set-after-frame-default.
14374
14375 * xfaces.c (Finternal_merge_in_global_face): Save merged
14376 attributes for the default face back into the face vector.
14377
14378 2008-07-08 Andreas Schwab <schwab@suse.de>
14379
14380 * fontset.h: Declare fontset_from_font. Don't declare
14381 new_fontset_from_font and fontset_from_font_name.
14382 * xterm.c: Include "fontset.h".
14383 * Makefile.in (xterm.o): Update dependencies.
14384
14385 2008-07-08 Glenn Morris <rgm@gnu.org>
14386
14387 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14388 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14389
14390 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
14391
14392 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14393 (x_set_frame_parameters): Don't bind it.
14394
14395 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
14396
14397 * w32fns.c (map_w32_filename): Declare extern.
14398
14399 2008-07-07 Jason Rumney <jasonr@gnu.org>
14400
14401 * w32term.c (WS_EX_LAYERED): Define if not already.
14402
14403 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
14404
14405 * xfaces.c (set_font_frame_param): Don't try to set the font
14406 parameter if it is still unspecified in the lface.
14407
14408 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14409
14410 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14411 face if it didn't already exist.
14412
14413 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14414
14415 2008-07-05 Andreas Schwab <schwab@suse.de>
14416
14417 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14418
14419 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
14420
14421 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14422 word-wrapping.
14423 (IT_DISPLAYING_WHITESPACE): New macro.
14424 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14425 when word-wrapping. Simplify word-wrapping logic. Use correct
14426 pixel positions when saving copies of the iterator.
14427 (display_line): Use proper wrap point if the last character on a
14428 line was preceded by whitespace.
14429
14430 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14431
14432 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14433
14434 2008-07-04 Kenichi Handa <handa@m17n.org>
14435
14436 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14437
14438 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14439
14440 2008-07-02 Jason Rumney <jasonr@gnu.org>
14441
14442 * xfns.c (syms_of_xfns): Only define x-select-font when both
14443 HAVE_FREETYPE and USE_GTK.
14444
14445 * xdisp.c (next_element_from_display_vector): Move assignment out
14446 of if statement.
14447
14448 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14449
14450 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14451
14452 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14453 (syms_of_fileio): Initialize and export them.
14454 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14455
14456 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14457 (Fsystem_move_file_to_trash): New function.
14458 (syms_of_w32fns): Export it to lisp.
14459
14460 2008-07-01 Jason Rumney <jasonr@gnu.org>
14461
14462 * w32font.c (w32font_text_extents): Don't count overhang as part
14463 of width.
14464
14465 2008-06-30 Miles Bader <miles@gnu.org>
14466
14467 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14468 Add `avoid_cursor_p' field.
14469
14470 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14471 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14472 (append_glyph, append_composite_glyph, produce_image_glyph)
14473 (append_stretch_glyph): Initialize avoid_cursor_p.
14474 (get_it_property): Rename from `get_line_height_property'.
14475 (x_produce_glyphs): Use get_it_property.
14476 (handle_line_prefix, push_display_prop): New functions.
14477 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14478 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14479 New variables.
14480 (syms_of_xdisp): Initialize them.
14481
14482 2008-06-30 Kenichi Handa <handa@m17n.org>
14483
14484 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14485 XftDefaultSubstitute (they are called in XftFontMatch).
14486 (xftfont_open): Fix args to ftfont_font_format.
14487
14488 * ftfont.c (fc_charset_table): New member lang.
14489 (ftfont_resolve_generic_family): New arg pattern.
14490 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
14491 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14492 (ftfont_open): Fix args to ftfont_font_format.
14493 (ftfont_font_format): New arg filename.
14494
14495 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
14496
14497 * xfaces.c (Finternal_merge_in_global_face): If default face was
14498 modified, realize it again. Update the font face attribute.
14499
14500 2008-06-29 Jason Rumney <jasonr@gnu.org>
14501
14502 * w32term.c (x_set_frame_alpha): Fix logic.
14503
14504 2008-06-29 Kenichi Handa <handa@m17n.org>
14505
14506 * fontset.c (Finternal_char_font): Return font-object instead of
14507 font-name.
14508
14509 * composite.c (get_composition_id): Fix the width calculation for TAB.
14510
14511 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14512
14513 * indent.c (Fvertical_motion): Properly handle float column arg.
14514
14515 2008-06-28 Jason Rumney <jasonr@gnu.org>
14516
14517 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14518 (pfnSetLayeredWindowAttributes): New function pointer.
14519 (w32_initialize): Initialize it when supported.
14520 (x_set_frame_alpha): New function.
14521
14522 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14523 (w32_frame_parm_handlers): Set alpha handler.
14524
14525 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14526
14527 2008-06-27 Jason Rumney <jasonr@gnu.org>
14528
14529 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14530 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14531 (w32_to_x_charset, x_to_w32_charset)
14532 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14533 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14534 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14535 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14536 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14537 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14538 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14539 (Qw32_charset_unicode): Remove.
14540 (syms_of_w32fns): Update for above changes.
14541
14542 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14543 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14544 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14545 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14546 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14547 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14548 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14549 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14550 (syms_of_w32font): Update for above changes.
14551
14552 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14553
14554 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14555 removed #if.
14556 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14557
14558 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14559 Eli Zaretskii <eliz@gnu.org>
14560
14561 * makefile.w32-in (LOCAL_FLAGS):
14562 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14563
14564 * sysdep.c (_spawnlp, _getpid):
14565 Declare with explicit _cdecl instead of _CRTAPI1.
14566
14567 * editfns.c (Fget_internal_run_time):
14568 Check for WINDOWSNT with #ifdef, not #if.
14569
14570 2008-06-26 Jason Rumney <jasonr@gnu.org>
14571
14572 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14573
14574 * w32term.c (x_draw_glyph_string_foreground)
14575 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14576 Use FONT_HANDLE macro.
14577 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14578
14579 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14580 (uniscribe_encode_char): Use FONT_HANDLE macro.
14581
14582 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14583 (w32font_text_extents): Use precast w32_font.
14584 (w32font_close): Free cached metrics.
14585 (w32font_open_internal): Allocate space for name on stack.
14586
14587 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
14588
14589 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14590
14591 2008-06-26 Jason Rumney <jasonr@gnu.org>
14592
14593 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14594 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14595
14596 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
14597
14598 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14599
14600 2008-06-26 Jason Rumney <jasonr@gnu.org>
14601
14602 * w32bdf.c, w32bdf.h: Remove obsolete files.
14603
14604 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14605
14606 * w32gui.h: Don't include w32bdf.h.
14607 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14608 Remove obsolete font support.
14609
14610 * w32font.h (struct w32font_info): Remove compat_w32_font.
14611 Add hfont member.
14612 (FONT_COMPAT): Remove obsolete macro.
14613
14614 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14615 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14616 (w32font_open_internal): Remove compat code. Set new hfont member.
14617 (Fx_select_font): Use new hfont member.
14618
14619 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14620 (uniscribe_encode_char): Use new hfont member.
14621
14622 * w32term.c (x_draw_glyph_string_foreground)
14623 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14624 (x_draw_glyph_string): Use metrics in w32font_info.
14625
14626 2008-06-26 Kenichi Handa <handa@m17n.org>
14627
14628 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14629
14630 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14631
14632 * unexnext.c:
14633 * m/ews4800.h:
14634 * m/hp9000s300.h:
14635 * m/ibm370aix.h:
14636 * m/mips-siemens.h:
14637 * m/ncr386.h:
14638 * m/next.h:
14639 * m/pmax.h:
14640 * m/powerpcle.h:
14641 * m/tandem-s2.h:
14642 * s/386bsd.h:
14643 * s/bsd386.h:
14644 * s/bsd4-1.h:
14645 * s/bsd4-2.h:
14646 * s/bsdos2-1.h:
14647 * s/bsdos2.h:
14648 * s/bsdos3.h:
14649 * s/bsdos4.h:
14650 * s/nextstep.h:
14651 * s/ultrix4-3.h:
14652 * s/usg5-0.h:
14653 * s/usg5-2-2.h:
14654 * s/usg5-2.h:
14655 * s/usg5-4-3.h:
14656 * s/ux4800.h:
14657 * s/uxpds.h:
14658 * s/uxpv.h: Remove support for obsolete systems.
14659 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
14660 Remove, insert contents in s/hpux10-20.h.
14661 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14662 Remove, insert contents in s/aix4-2.h.
14663 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14664 * s/bsd4-3.h: Rename to ...
14665 * s/bsd-common.h: ... this.
14666 * data.c:
14667 * doc.c:
14668 * ecrt0.c:
14669 * emacs.c:
14670 * fileio.c:
14671 * floatfns.c:
14672 * keyboard.c:
14673 * mem-limits.h:
14674 * print.c:
14675 * process.c:
14676 * sysdep.c:
14677 * syssignal.h:
14678 * systty.h:
14679 * syswait.h:
14680 * term.c:
14681 * unexec.c:
14682 * unexelf.c:
14683 * unexhp9k800.c:
14684 * m/hp800.h:
14685 * m/ibmrs6000.h:
14686 * m/mips.h:
14687 * m/vax.h:
14688 * s/darwin.h:
14689 * s/freebsd.h:
14690 * s/gnu.h:
14691 * s/ms-w32.h:
14692 * s/msdos.h:
14693 * s/netbsd.h:
14694 * s/template.h: Remove references to obsolete variables.
14695
14696 * Makefile.in: Add dependencies for all unexec files.
14697 (admindir): Remove unused variable.
14698 (UNEXEC_SRC): Remove references.
14699
14700 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
14701
14702 * xfns.c (x_default_font_parameter): If Xft is available, first
14703 try Monospace-12 for the default font.
14704
14705 2008-06-25 Jason Rumney <jasonr@gnu.org>
14706
14707 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14708
14709 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14710
14711 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14712
14713 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14714
14715 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
14716
14717 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14718 <scroll-conservatively>: Fix typo in docstring.
14719
14720 * xselect.c (Fx_send_client_event): Doc fix.
14721
14722 2008-06-25 Kenichi Handa <handa@m17n.org>
14723
14724 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14725
14726 * font.c (font_parse_fcname): Remove unused variables.
14727 (font_sort_entites): Delete the arg SPEC. Caller changed.
14728 Fix for the case of ! best_only.
14729 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14730
14731 * lisp.h (Fstring_to_unibyte): EXFUN it.
14732
14733 * character.h (str_to_unibyte): Extern it.
14734
14735 * character.c (str_to_unibyte): New function.
14736
14737 * fns.c (Fstring_to_unibyte): New function.
14738 (syms_of_fns): Defsubr it.
14739
14740 2008-06-24 Kenichi Handa <handa@m17n.org>
14741
14742 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14743 DPI too.
14744 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14745
14746 2008-06-24 Andreas Schwab <schwab@suse.de>
14747
14748 * Makefile.in (${lispsource}loaddefs.el): Rename from
14749 ../lisp/loaddefs.el.
14750 (bootstrap-clean): Do what distclean does but don't remove
14751 Makefile.
14752 (distclean): Depend on bootstrap-clean and remove Makefile.
14753
14754 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
14755
14756 * buffer.h (struct buffer): New member word_wrap.
14757
14758 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14759 word-wrap.
14760 (init_buffer_once): Initialize them.
14761
14762 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14763 line_wrap enum possessing three possible values.
14764
14765 * termopts.h: Replace truncate_partial_width_windows with
14766 Vtruncate_partial_width_windows.
14767
14768 * dispnew.c (direct_output_for_insert): Avoid direct output when
14769 inserting a space with word wrap on.
14770
14771 * indent.c (compute_motion): Obey integer values of
14772 truncate-partial-width-windows.
14773
14774 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14775 replacing truncate_partial_width_windows.
14776 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14777 truncate only if the window width is below that integer.
14778 (start_display, resize_mini_window, produce_stretch_glyph)
14779 (display_string, move_it_in_display_line_to): Use line_wrap.
14780 (back_to_previous_visible_line_start, reseat_1): Reset
14781 string_from_display_prop_p.
14782 (display_line): Extend default face to end of line when wrapping.
14783
14784 2008-06-24 Kim F. Storm <storm@cua.dk>
14785
14786 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14787 to wrap continued lines at word boundaries.
14788
14789 2008-06-24 Jason Rumney <jasonr@gnu.org>
14790
14791 * font.c (Ffont_face_attributes): Multiply pixel size before point
14792 conversion to avoid multiplying rounding error.
14793
14794 2008-06-23 Jason Rumney <jasonr@gnu.org>
14795
14796 * w32term.c (x_draw_glyph_string_background)
14797 (x_draw_glyph_string): Remove old bdf font code.
14798
14799 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14800
14801 2008-06-22 Kenichi Handa <handa@m17n.org>
14802
14803 * font.c (font_find_for_lface): Try the adstyle specified in
14804 the property of LFACE_FONT of LFACE (if any).
14805
14806 2008-06-21 Seiji Zenitani <zenitani@mac.com>
14807 Ryo Yoshitake <ryo@shiftmode.net>
14808
14809 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14810
14811 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14812
14813 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14814 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14815 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14816 (witness-emacs): Remove.
14817 (lisp, shortlisp): Move loaddefs.el earlier.
14818 (mostlyclean): Forget about witness-emacs.
14819
14820 2008-06-22 Glenn Morris <rgm@gnu.org>
14821
14822 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14823 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14824
14825 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14826
14827 * Makefile.in (PRECOMP): Remove.
14828 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14829 (witness-emacs): Run `compile-first'.
14830 (.el.elc): Use the new compile-onefile target.
14831
14832 2008-06-21 Kenichi Handa <handa@m17n.org>
14833
14834 * xftfont.c (xftfont_open): Handle QCembolden only when
14835 FC_EMBOLDEN is defined.
14836
14837 2008-06-21 Andreas Schwab <schwab@suse.de>
14838
14839 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14840 (.el.elc): Likewise.
14841
14842 2008-06-21 Miles Bader <miles@gnu.org>
14843
14844 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14845 build dir, not the lisp source dir.
14846
14847 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14848
14849 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14850 (bootstrapclean): Remove.
14851 (.el.elc): New rule.
14852 (PRECOMP): New var.
14853 (../lisp/subdirs.el): Remove.
14854 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14855 (witness-emacs): New target.
14856 (mostlyclean): Remove witness-emacs as well.
14857 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14858 Add witness-emacs dependency.
14859
14860 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
14861
14862 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14863 defined by the font.
14864
14865 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14866
14867 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14868 (bootstrap-clean): New target that keeps TAGS around.
14869 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14870 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14871
14872 2008-06-20 Jason Rumney <jasonr@gnu.org>
14873
14874 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14875 Remove obsolete font code.
14876
14877 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14878 to determine language support.
14879
14880 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14881
14882 * sysdep.c (cfsetspeed): New fun extracted from the code.
14883 (cfmakeraw): Move before first use.
14884
14885 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14886
14887 * sysdep.c (cfmakeraw): Provide fallback implementation.
14888 (serial_configure): Provide fallback implementation of cfsetspeed.
14889
14890 2008-06-20 Kenichi Handa <handa@m17n.org>
14891
14892 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14893 the pattern.
14894
14895 * fontset.c (fontset_from_font): Copy font_spec before changing
14896 the elements.
14897
14898 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14899
14900 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14901
14902 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14903 for explicit `font' parameters.
14904
14905 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14906
14907 2008-06-19 Kenichi Handa <handa@m17n.org>
14908
14909 * frame.c: Include <ctype.h>.
14910 (x_set_font_backend): Allow spacing characters in the X resource
14911 for FontBackend.
14912
14913 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14914
14915 * w32fns.c, xfns.c (Qfont_param): New var.
14916 (syms_of_w32fns): Initialize it.
14917 (x_default_font_parameter): Record explicit `font' into
14918 `font-parameter'.
14919
14920 2008-06-18 Kenichi Handa <handa@m17n.org>
14921
14922 * font.c (font_parse_xlfd): Fix previous change.
14923 (font_parse_fcname): Don't use :fc-unknown-spec.
14924 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14925 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14926 (font_add_log): Prepend the driver name to the resulting fonts.
14927
14928 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14929 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14930 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14931
14932 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14933 (QCembolden): New variables.
14934 (syms_of_xftfont): DEFSYM them.
14935 (xftfont_open): Call XftFontMatch. Don't trust the result of
14936 XftTextExtents8 if the pixel_size is less than 5.
14937
14938 2008-06-18 Andreas Schwab <schwab@suse.de>
14939
14940 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14941 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14942
14943 2008-06-18 Jason Rumney <jasonr@gnu.org>
14944
14945 * w32font.c (w32font_list, w32font_match): Add logging.
14946
14947 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14948
14949 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
14950
14951 * font.c (font_parse_fcname): Store divider characters for
14952 unknown-spec list. For known key symbols, intern using correct
14953 symbol name.
14954
14955 2008-06-17 Kenichi Handa <handa@m17n.org>
14956
14957 * xfaces.c (realize_default_face): If the frame is not on window
14958 system, set the fontset of face to nil.
14959
14960 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14961
14962 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14963
14964 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14965
14966 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14967 (build_font_name_from_vector): Delete externs.
14968
14969 * xfaces.c (struct font_name): Don't declare.
14970
14971 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14972
14973 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14974
14975 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
14976
14977 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14978
14979 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
14980
14981 * font.c (Ffont_spec): Fix usage in docstring.
14982 (Ffont_face_attributes): Doc fix.
14983
14984 2008-06-16 Andreas Schwab <schwab@suse.de>
14985
14986 * font.c (Ffont_face_attributes): Fix definition.
14987
14988 2008-06-16 Jason Rumney <jasonr@gnu.org>
14989
14990 * font.h (font_style_symbolic_from_value): Remove.
14991
14992 * font.c (font_style_symbolic_from_value): Remove.
14993 (font_style_symbolic): Revert to pre 2008-06-13 version.
14994
14995 * w32font.c (w32_to_fc_weight): New function.
14996 (w32font_full_name, logfont_to_fcname): Use it.
14997
14998 2008-06-16 Kenichi Handa <handa@m17n.org>
14999
15000 * font.c (font_check_object): Delete it.
15001 (font_clear_cache): Check if a font-object is alive.
15002 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15003 font-object to nil.
15004 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15005 (font_at): Don't call font_check_object.
15006 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15007
15008 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15009
15010 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15011
15012 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15013
15014 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15015
15016 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
15017
15018 * font.c (font_parse_fcname): Only one decimal point.
15019 (font_unparse_fcname): Handle data in family and foundry indices
15020 as symbols, not strings.
15021 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15022
15023 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15024
15025 * font.h (font_unparse_gtkname): Add prototype.
15026
15027 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15028
15029 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15030
15031 2008-06-15 Andreas Schwab <schwab@suse.de>
15032
15033 * font.c (font_update_drivers): Fix crash when no drivers match.
15034
15035 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15036
15037 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15038 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15039
15040 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15041
15042 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15043
15044 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15045
15046 * process.c (Fserial_process_configure, Fprocess_send_eof):
15047 Use EQ to compare Lisp_Objects.
15048
15049 2008-06-13 Jason Rumney <jasonr@gnu.org>
15050
15051 * w32fns.c (Fw32_select_font): Remove old font API function.
15052
15053 * w32font.c (logfont_to_fcname): New function.
15054 (Fx_select_font): New font dialog function compatible with
15055 GTK/fontconfig version.
15056
15057 * font.c (font_style_symbolic_from_value): New function.
15058 (font_style_symbolic): Use it.
15059
15060 * font.h (font_style_symbolic_from_value): Declare new function.
15061
15062 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
15063
15064 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15065 <font-width-table>: Fix typos in docstrings.
15066
15067 2008-06-13 Daniel Engeler <engeler@gmail.com>
15068
15069 These changes add serial port access.
15070 * process.c: Add HAVE_SERIAL.
15071 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15072 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15073 (list_processes_1, select_wrapper, Fstop_process)
15074 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15075 (status_notify): Modify to handle serial processes.
15076 [HAVE_SERIAL] (Fserial_process_configure)
15077 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15078 New functions.
15079 * process.h (struct Lisp_Process): Add `type'.
15080 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15081 New functions.
15082 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15083 serial ports.
15084 (serial_open, serial_configure): New functions.
15085 * w32.h: Add FILE_SERIAL.
15086 (struct _child_process): Add ovl_read, ovl_write.
15087
15088 2008-06-13 Kenichi Handa <handa@m17n.org>
15089
15090 * dispextern.h (enum lface_attribute_index): New member
15091 LFACE_FOUNDRY_INDEX.
15092
15093 * font.c (font_score): Delete arg alternate_families. Check only
15094 weight, slant, width, and size. Ignore the difference of alias
15095 style symbols.
15096 (font_sort_entites): Adjust for the above change. Reflect the
15097 order of font-driver to scores.
15098 (font_list_entities): Don't check alternate_familes here.
15099 (font_clear_prop): Handle foundry.
15100 (font_update_lface): Don't parse "foundry-family" form here.
15101 Handle FONT_FOUNDRY_INDEX.
15102 (font_find_for_lface): Likewise. Handle alternate families here.
15103 If registry is nil, try iso8859-1 and ascii-0.
15104 (font_open_for_lface): Pay attention to size in ENTITY.
15105 (font_open_by_name): Simplify by calling font_load_for_lface.
15106 (free_font_driver_list): Delete it.
15107 (font_update_drivers): Preserve the order of backends.
15108 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15109 of font_score and font_sort_entites.
15110 (font_update_sort_order): Likewise.
15111
15112 * xfaces.c (LFACE_FOUNDRY): New macro.
15113 (check_lface_attrs): Check foundry.
15114 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15115 (merge_face_vectors): Check foundry.
15116 (merge_face_ref): Likewise.
15117 (Finternal_set_lisp_face_attribute): Likewise.
15118 (x_update_menu_appearance): Likewise.
15119 (Finternal_get_lisp_face_attribute): Likewise.
15120 (lface_hash): Likewise.
15121 (lface_same_font_attributes_p): Likewise.
15122 (x_supports_face_attributes_p): Likewise.
15123 (tty_supports_face_attributes_p): Likewise.
15124 (Finternal_set_alternative_font_family_alist): Intern strings.
15125 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15126 (realize_default_face): Set LFACE_FOUNDRY (lface).
15127
15128 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15129 font-driver at first.
15130
15131 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15132
15133 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15134
15135 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15136
15137 2008-06-12 Jim Meyering <meyering@redhat.com>
15138
15139 Make unexec_free handle NULL the same way free does.
15140 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15141
15142 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15143
15144 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15145 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15146 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15147 (WEAK_ALIAS): Simplify.
15148 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15149 when searching a unibyte buffer.
15150
15151 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
15152
15153 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15154
15155 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
15156
15157 * w32font.c: Include ctype.h.
15158
15159 2008-06-11 Jason Rumney <jasonr@gnu.org>
15160
15161 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15162 misreported as space.
15163 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15164 as aliases for registry iso10646-1.
15165
15166 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15167
15168 * buffer.c (clone_per_buffer_values): Skip `name'.
15169
15170 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
15171
15172 * font.c (font_parse_fcname): Fix last change; accept decimal
15173 points in font size.
15174
15175 2008-06-10 Jason Rumney <jasonr@gnu.org>
15176
15177 * w32uniscribe.c (add_opentype_font_name_to_list):
15178 Skip non unicode fonts.
15179
15180 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15181
15182 * xfns.c (Fx_font_dialog): New function.
15183
15184 * gtkutil.c (xg_dialog_response_cb): Rename from
15185 xg_file_response_callback.
15186 (pop_down_dialog): Rename from pop_down_file_dialog.
15187 (xg_get_file_name): Callers changed.
15188 (xg_get_font_name): New function.
15189
15190 * gtkutil.h (xg_get_font_name): Insert prototype.
15191
15192 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15193
15194 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15195 x_underline_minimum_display_offset.
15196 (syms_of_xdisp): Declare it here rather than in xterm.c.
15197 * dispextern.h (underline_minimum_offset): Declare it.
15198 * w32term.c (x_draw_glyph_string): Use it.
15199 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15200 (syms_of_xterm): Don't declare it any more.
15201 (x_draw_glyph_string): Adjust to the new name.
15202
15203 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
15204
15205 * xterm.c (x_underline_minimum_display_offset): New var.
15206 (x_draw_glyph_string): Use it.
15207 (syms_of_xterm): Declare it.
15208
15209 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15210
15211 * font.c (font_parse_fcname): Accept GTK-style font names too.
15212
15213 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15214
15215 * dired.c (file_name_completion): Don't return t if the match is exact
15216 but with different capitalization.
15217 * minibuf.c (Ftry_completion): Simplify.
15218
15219 * window.c (Vwindow_point_insertion_type): New var.
15220 (set_window_buffer): Use it.
15221 (syms_of_window): Init and export it to Lisp.
15222
15223 2008-06-10 Kenichi Handa <handa@m17n.org>
15224
15225 * font.h (font_intern_prop): Prototype adjusted.
15226
15227 * font.c (font_intern_prop): New arg force_symbol.
15228 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15229 Adjust for the change of font_intern_prop.
15230
15231 * ftfont.c (ftfont_pattern_entity):
15232 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15233 (w32_registry):
15234 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15235 the change of font_intern_prop.
15236
15237 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
15238
15239 * w32menu.c (digest_single_submenu): Declare extern.
15240
15241 2008-06-09 Jason Rumney <jasonr@gnu.org>
15242
15243 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15244
15245 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15246 (parse_single_submenu): Remove.
15247 (digest_single_submenu): Remove.
15248 (syms_of_w32menu): Don't initialise variables that have moved
15249 to menu.c.
15250 (set_frame_menubar): Sync with version in xmenu.c.
15251 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15252
15253 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15254 Make static again.
15255
15256 2008-06-09 Jason Rumney <jasonr@gnu.org>
15257
15258 Changes to w32 files related to the move of common menu code
15259 to menu.c on 2008-06-08 by Chong Yidong.
15260
15261 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15262 defs to w32gui.h.
15263 (single_keymap_panes, push_menu_item, push_menu_pane):
15264 Make globally visible.
15265
15266 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15267 (local_free, malloc_widget_value, free_widget_value)
15268 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15269 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15270 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15271 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15272 (menu_items, menu_items_allocated, menu_items_used)
15273 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15274 (init_menu_items, finish_menu_items, discard_menu_items)
15275 (grow_menu_items, push_submenu_start, push_submenu_end)
15276 (push_left_right_boundary, push_menu_pane, push_menu_item)
15277 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15278 (free_menubar_widget_tree_value, parse_single_submenu)
15279 (update_submenu_strings): Remove functions.
15280 (xmalloc_widget_value): Remove and declare extern.
15281
15282 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15283 (OBJ1): Build it.
15284
15285 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15286 (local_heap, local_alloc, local_free, malloc_widget_value)
15287 (free_widget_value): Define here.
15288
15289 2008-06-09 Kenichi Handa <handa@m17n.org>
15290
15291 * font.h (Qascii_0): Extern it.
15292
15293 * font.c (Qascii_0): New variable.
15294 (syms_of_font): DEFSYM it.
15295 (font_open_by_name): If the registry "iso8859-1" fails, try also
15296 "ascii-0".
15297
15298 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15299
15300 2008-06-08 Kenichi Handa <handa@m17n.org>
15301
15302 * .gdbinit (xfont): New command.
15303
15304 2008-06-08 Andreas Schwab <schwab@suse.de>
15305
15306 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15307 * Makefile.in (menu.o): Update dependencies.
15308
15309 * Makefile.in (obj): Always add menu.o.
15310 * emacs.c (main): Always call syms_of_menu.
15311 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15312
15313 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
15314
15315 * Makefile.in: Compile menu.c.
15316
15317 * lisp.h: Declare syms_of_menu.
15318
15319 * emacs.c (main): Call syms_of_menu.
15320
15321 * keyboard.h: Relocate platform-independent menu definitions from
15322 xmenu.c.
15323
15324 * menu.c: New file. Relocate platform-independent menu
15325 definitions from xmenu.c. Suggested by Adrian Robert.
15326
15327 * xmenu.c: Remove platform-independent menu definitions.
15328 (menu_items, menu_items_inuse, menu_items_allocated)
15329 (menu_items_used, menu_items_n_panes)
15330 (menu_items_submenu_depth): Move to keyboard.h.
15331 (init_menu_items, finish_menu_items, unuse_menu_items)
15332 (discard_menu_items, restore_menu_items, save_menu_items)
15333 (grow_menu_items, push_submenu_start, push_submenu_end)
15334 (push_left_right_boundary, push_menu_pane, push_menu_item)
15335 (keymap_panes, single_keymap_panes, single_menu_item)
15336 (list_of_panes, list_of_items, find_and_call_menu_selection)
15337 (xmalloc_widget_value, free_menubar_widget_value_tree)
15338 (parse_single_submenu, digest_single_submenu)
15339 (update_submenu_strings): Move to menu.c.
15340
15341 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15342
15343 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15344
15345 2008-06-06 Miles Bader <miles@gnu.org>
15346
15347 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15348 face, not frame default.
15349
15350 2008-06-05 Martin Rudalics <rudalics@gmx.at>
15351
15352 * window.c (pop_up_windows, pop_up_frames)
15353 (display_buffer_reuse_frames, Vpop_up_frame_function)
15354 (Vdisplay_buffer_function, Veven_window_heights)
15355 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15356 (Vspecial_display_function, Vsame_window_buffer_names)
15357 (Vsame_window_regexps, split_height_threshold)
15358 (Vsplit_window_preferred_function): Move those vars to window.el.
15359 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15360 (Fdisplay_buffer): Move those functions to window.el.
15361 (syms_of_window): Remove corresponding declarations.
15362 (display_buffer): New function.
15363 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15364 * dispnew.c (Flast_nonminibuf_frame): New function.
15365 * buffer.c (Fpop_to_buffer): Move to window.el.
15366
15367 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15368
15369 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15370
15371 2008-06-05 Kenichi Handa <handa@m17n.org>
15372
15373 * coding.c (detect_coding): Fix previous change.
15374 (detect_coding_system): Likewise.
15375
15376 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15377
15378 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15379
15380 * keymap.c (Vminibuffer_local_filename_must_match_map):
15381 Rename from Vminibuffer_local_must_match_filename_map.
15382 (syms_of_keymap):
15383 * minibuf.c (Fcompleting_read): Adjust accordingly.
15384 * commands.h: Rename declaration as well.
15385
15386 2008-06-05 Kenichi Handa <handa@m17n.org>
15387
15388 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15389 family name.
15390 (Ffont_put): Likewise.
15391
15392 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15393 current font-spec.
15394
15395 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15396 is unspecified.
15397
15398 * xfaces.c (realize_x_face): If the font-related face attributes
15399 are the same as those of default face, realize a new fontset from
15400 default->fontset.
15401 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15402
15403 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15404
15405 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15406 (move_it_in_display_line): New wrapper.
15407
15408 * window.c (window_scroll_pixel_based_preserve_x)
15409 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15410 (window_scroll_pixel_based, window_scroll_line_based):
15411 Use them to preserve column positions.
15412 (syms_of_window): Initialize them.
15413
15414 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15415 (HPOS . VPOS) pair.
15416
15417 * dispextern.h (move_it_in_display_line): Declare.
15418
15419 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
15420
15421 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15422 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15423 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15424
15425 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
15426
15427 * window.c (Fset_window_parameter): Doc fix.
15428 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15429
15430 2008-06-04 Joakim Verona <joakim@verona.se>
15431
15432 * window.h (struct window): Add new member window_parameters.
15433
15434 * window.c (Fwindow_parameters, Fwindow_parameter)
15435 (Fset_window_parameter): New defuns.
15436 (syms_of_window): Defsubr the new defuns.
15437 (make_window): Initialize window_parameters to nil.
15438
15439 2008-06-04 John Paul Wallington <jpw@pobox.com>
15440
15441 * eval.c (Fdefmacro): Doc fix.
15442
15443 2008-06-04 Kenichi Handa <handa@m17n.org>
15444
15445 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15446 Be sure to call setup_coding_system when we find a proper coding system.
15447 (detect_coding_system): Fix handling of coding->head_ascii.
15448
15449 2008-06-03 Andreas Schwab <schwab@suse.de>
15450
15451 * font.c (font_prop_validate_spacing): Fix last change.
15452
15453 2008-06-03 Kenichi Handa <handa@m17n.org>
15454
15455 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15456 (font_parse_fcname): Fix handling of unknown key.
15457
15458 * xfont.c (xfont_list): Try an alias.
15459
15460 * charset.c (char_charset): Return NULL if the arg charset_list is
15461 specified and C doesn't belong to any of them.
15462
15463 2008-06-02 Chip Coldwell <coldwell@redhat.com>
15464
15465 * font.c (font_pixel_size): Don't take cdr of an integer.
15466
15467 2008-06-02 Jim Meyering <meyering@redhat.com>
15468
15469 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15470 * alloc.c (xfree): Return right away for a NULL arg.
15471 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15472 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15473 * mac.c (create_apple_event_from_event_ref): Likewise.
15474 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15475 Likewise.
15476 * doprnt.c (doprnt1): Likewise.
15477 * frame.c (frame): Likewise.
15478 * keyboard.c (wipe_kboard): Likewise.
15479 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15480 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15481 * term.c (tty_default_color_capabilities, maybe_fatal)
15482 (delete_tty): Likewise.
15483 * w16select.c (string): Likewise.
15484 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15485 * w32bdf.c (w32_free_bdf_font): Likewise.
15486 * w32fns.c (w32_unload_font): Likewise.
15487 * w32font.c (w32font_close): Likewise.
15488 * window.c (size_window): Likewise.
15489 * xselect.c (receive_incremental_selection): Likewise.
15490 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15491 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15492 * w32.c (stat): Likewise.
15493
15494 Remove useless if-before-free tests.
15495 * editfns.c (Fset_time_zone_rule): Likewise.
15496 * lread.c (nosuffix): Likewise.
15497 * ralloc.c (get_bloc): Likewise.
15498 * regex.c (reg_free): Likewise.
15499 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15500 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15501 * xsmfns.c (smc_save_yourself_CB): Likewise.
15502
15503 2008-06-02 Kenichi Handa <handa@m17n.org>
15504
15505 * font.c (font_find_for_lface): Handle float font size.
15506 (font_open_for_lface): Likewise.
15507
15508 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15509 comparing the properties.
15510
15511 2008-06-01 Jason Rumney <jasonr@gnu.org>
15512
15513 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15514 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15515 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15516 Don't add empty script list.
15517 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15518
15519 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15520
15521 * Makefile.in (dot, dotdot): Remove, update users.
15522 ".." has been used elsewhere in the file for a long time.
15523 (LIBXT_STATIC): Remove conditional based on unused variable.
15524
15525 2008-06-01 Miles Bader <miles@gnu.org>
15526
15527 * xfaces.c (Vface_remapping_alist): New variable.
15528 (syms_of_xfaces): Initialize it.
15529 (enum named_merge_point_kind): New type.
15530 (struct named_merge_point): Add `named_merge_point_kind' field.
15531 (push_named_merge_point): Make cycle detection respect different
15532 named-merge-point kinds.
15533 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15534 Remove face-name alias resolution.
15535 (lface_from_face_name): New definition using
15536 `lface_from_face_name_no_resolve'.
15537 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15538 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15539 (get_lface_attributes): New definition that layers face-remapping on
15540 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15541 (lookup_basic_face): New function.
15542 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15543 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15544 `get_lface_attributes'.
15545 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15546 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15547 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15548
15549 * xdisp.c (init_iterator): Pass base_face_id through
15550 `lookup_basic_face' when we actually use it as a face-id.
15551 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15552 DEFAULT_FACE_ID.
15553
15554 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15555 lookup the initial face-id.
15556
15557 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15558
15559 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
15560
15561 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15562 (Fremove_text_properties): Fix typos in docstrings.
15563
15564 2008-05-31 Kenichi Handa <handa@m17n.org>
15565
15566 * font.c (font_list_entities): Fix the car part of data to be
15567 stored in the cache.
15568
15569 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15570
15571 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15572
15573 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15574 Add a `test' argument so another predicate than `equal' can be used.
15575 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15576 (map_char_table): Remove unused vars `c' and `i'.
15577 * lisp.h (Foptimize_char_table): Adjust declaration.
15578 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15579
15580 2008-05-30 Kenichi Handa <handa@m17n.org>
15581
15582 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15583 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15584 defined.
15585
15586 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15587
15588 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15589 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15590 frame-local settings for the same variable.
15591
15592 2008-05-30 Kenichi Handa <handa@m17n.org>
15593
15594 * fontset.c (Ffont_info): Move to font.c.
15595 (syms_of_fontset): Delete defsubr of Sfont_info.
15596
15597 * font.c (font_style_to_value, font_score): Delete casting of the
15598 args to xstcasecmp.
15599 (register_font_driver): Increment num_font_drivers only when
15600 registering the driver globally.
15601 (Ffont_info): Move from fontset.c. Handle a font object too.
15602 (syms_of_font): Defsubr Sfont_info.
15603
15604 2008-05-29 Kenichi Handa <handa@m17n.org>
15605
15606 * coding.h (enum define_coding_utf8_arg_index): New enum.
15607 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15608 coding_attr_utf_bom.
15609 (enum utf_bom_type): Rename from utf_16_bom_type.
15610 (struct utf_16_spec): Adjust for the above change.
15611 (struct coding_system): Add utf_8_bom in `spec' union.
15612
15613 * coding.c (CODING_UTF_8_BOM): New macro.
15614 (enum coding_category): Delete coding_category_utf_8, add
15615 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15616 coding_category_utf_8_sig.
15617 (CATEGORY_MASK_UTF_8): Delete it.
15618 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15619 (CATEGORY_MASK_UTF_8_SIG): New macros.
15620 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15621 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15622 CATEGORY_MASK_UTF_8_SIG.
15623 (CATEGORY_MASK_UTF_8): New macro.
15624 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15625 (detect_coding_utf_8): Check BOM.
15626 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15627 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15628 (encode_coding_utf_16): Likewise.
15629 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15630 (detect_coding, detect_coding_system): Handle utf-8-auto.
15631 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15632 (syms_of_coding): Fix setting up of Vcoding_category_table.
15633
15634 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15635
15636 * process.c (Faccept_process_output): If `millisec' is non-nil,
15637 `seconds' default to 0.
15638 (wait_reading_process_output): Also return non-nil if we read output
15639 from a non-running process.
15640
15641 2008-05-29 Jason Rumney <jasonr@gnu.org>
15642
15643 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15644 `raster' specified.
15645 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15646 in the uniscribe backend, but disallow any font that has no
15647 unicode subrange support.
15648
15649 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
15650
15651 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15652 Fix typos in docstrings.
15653
15654 2008-05-29 Kenichi Handa <handa@m17n.org>
15655
15656 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15657 (Fx_family_fonts): Set frame correctly.
15658
15659 2008-05-28 Jason Rumney <jasonr@gnu.org>
15660
15661 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15662
15663 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15664
15665 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15666 calling build_annotations.
15667
15668 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
15669
15670 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15671 (Fencode_coding_string):
15672 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15673 <latin-extra-code-table>: Fix typos in docstrings.
15674 (syms_of_coding) <coding-system-alist>: Doc fix.
15675 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15676
15677 2008-05-28 Kenichi Handa <handa@m17n.org>
15678
15679 * fontset.c (Ffont_info): Don't call font_close_object.
15680
15681 * font.c (font_parse_family_registry): Use Ffont_put to validate
15682 foundry and family.
15683 (font_delete_unmatched): Don't check spacing.
15684 (font_list_entities): Add spacing to the spec to list fonts.
15685
15686 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15687 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15688
15689 * coding.c (encode_coding_raw_text): Fix previous change.
15690 (encode_coding_object): When the dst_object is a buffer and is
15691 different from src_object, move gap to PT.
15692
15693 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15694
15695 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15696
15697 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15698
15699 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15700 all branches. Compute it differently.
15701
15702 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15703
15704 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
15705
15706 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15707 into "else if () ... else ...".
15708
15709 2008-05-27 Jason Rumney <jasonr@gnu.org>
15710
15711 * w32font.c (w32font_open_internal): Determine if glyph indices
15712 are likely to work here.
15713
15714 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
15715
15716 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15717 draw overlap glyphs with appropriate highlighting.
15718
15719 2008-05-27 Kenichi Handa <handa@m17n.org>
15720
15721 * xfont.c (xfont_open): Fix calculation of font->average_width.
15722
15723 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15724
15725 * casefiddle.c (casify_object): Try to guess better whether the
15726 argument is a byte or a char.
15727
15728 2008-05-26 Andreas Schwab <schwab@suse.de>
15729
15730 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15731 Always send multiples of format size.
15732
15733 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15734
15735 2008-05-26 Jason Rumney <jasonr@gnu.org>
15736
15737 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15738 (compute_metrics): Don't set failure if we just cleared the cache.
15739 (w32_weight_table): Remove unused variable.
15740 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15741 backwards compatibility.
15742
15743 2008-05-25 Kenichi Handa <handa@m17n.org>
15744
15745 * w32term.c (x_draw_glyph_string):
15746 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15747
15748 * xfaces.c: Delete unused function prototypes.
15749 (xstrlwr, font_frame): Delete them.
15750 (clear_face_cache): Delete unused variable.
15751
15752 * xftfont.c (xftfont_open): Delete unused variable.
15753 If underline_thickness is not 1, adjust underline_position.
15754
15755 * ftxfont.c (ftxfont_open): Delete unused variable.
15756
15757 * fontset.c (face_for_char): Optimize for the case of no charset
15758 property.
15759
15760 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15761 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15762 (otf_open, font_otf_capability, generate_otf_features)
15763 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15764 Comment out by surrounding "#if 0" and "#endif" for the moment.
15765 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15766 (syms_of_font): Codes for accessing above commented out.
15767
15768 2008-05-24 Eli Zaretskii <eliz@gnu.org>
15769
15770 * w32proc.c: Include dispextern.h.
15771
15772 * w32.c: Include dispextern.h.
15773
15774 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
15775
15776 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15777 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15778 Fix typos in docstrings.
15779
15780 2008-05-23 Jason Rumney <jasonr@gnu.org>
15781
15782 * xsmfns.c: Remove includes that are already included by config.h.
15783
15784 2008-05-23 Kenichi Handa <handa@m17n.org>
15785
15786 * charset.c (Qemacs, charset_emacs): New variables.
15787 (char_charset): Fix for non-Unicode characters.
15788 (syms_of_charset): Define charset_emacs.
15789
15790 * w32term.c (x_draw_glyph_string): Be sure to update
15791 s->underline_thickness and s->underline_position. Be sure to draw
15792 underline within the current line area.
15793
15794 * xterm.c (x_draw_glyph_string): Be sure to update
15795 s->underline_thickness and s->underline_position. Be sure to draw
15796 underline within the current line area.
15797
15798 * fontset.c: Delete unused variables and add casting for char *
15799 throughout the file.
15800 (fontset_font): Try the fallback fonts of the current fontset
15801 before consulting the default fontset.
15802
15803 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15804
15805 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15806
15807 2008-05-22 Jason Rumney <jasonr@gnu.org>
15808
15809 * font.c: Don't include strings.h.
15810
15811 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15812
15813 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15814 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15815 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15816 to call xstrcasecmp.
15817
15818 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15819
15820 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15821
15822 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15823
15824 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15825
15826 2008-05-22 Kenichi Handa <handa@m17n.org>
15827
15828 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15829
15830 * font.c (font_prop_validate_style): Adjust for the format
15831 change of font_style_table.
15832
15833 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15834 two args.
15835
15836 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15837 two args.
15838
15839 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15840
15841 * minibuf.c (keys_of_minibuf): Delete.
15842 * lisp.h (keys_of_minibuf): Delete.
15843 * emacs.c (main): Don't call keys_of_minibuf.
15844
15845 2008-05-22 Kenichi Handa <handa@m17n.org>
15846
15847 * ftfont.c (ftfont_resolve_generic_family): Rename from
15848 ftfont_list_generic_family. Return a single family for each
15849 generic family.
15850 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15851 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15852 Call font_add_log.
15853 (ftfont_match): Call font_add_log.
15854
15855 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15856 (FONT_DEBUG): Define it.
15857 (font_add_log): Extern it.
15858 (font_assert): Rename from xassert.
15859
15860 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15861 (xfont_list_family): Call font_add_log.
15862 (xfont_match): Likewise.
15863 (memq_no_quit): Delete.
15864
15865 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15866 call of Ffont_xlfd_name.
15867
15868 * xfaces.c (struct table_entry, slant_table, weight_table)
15869 (swidth_table): Move to font.c.
15870
15871 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15872 xassert are changed to font_assert. Delete many unused variables.
15873 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15874 New variables.
15875 (struct table_entry): Move from xfaces.c and modified.
15876 (weight_table, slant_table, width_table): Move from xfaces.c and
15877 contents adjusted for the change of struct table_entry.
15878 (font_style_to_value, font_style_symbolic): Adjust for the
15879 format change of font_style_table.
15880 (font_parse_family_registry): Don't overwrite existing foundry and
15881 family of font_spec.
15882 (font_score): Fix calculation of diff for sizes.
15883 (font_sort_entites): Call font_add_log.
15884 (font_delete_unmatched): Return a newly created list.
15885 (font_list_entities): Fix previous change. Call font_add_log.
15886 (font_matching_entity, font_open_entity, font_close_entity):
15887 Call font_add_log.
15888 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15889 (Finternal_set_font_style_table): Delete.
15890 (BUILD_STYLE_TABLE): New macro.
15891 (build_style_table): New function.
15892 (Vfont_log, font_log_env_checked): New variables.
15893 (font_add_log): New function.
15894 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15895 Declare Lisp variables "font-weight-table", "font-slant-table",
15896 "font-width-table", and "font-log". Initialize font_style_table.
15897
15898 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15899
15900 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15901
15902 2008-05-21 Seiji Zenitani <zenitani@mac.com>
15903 Ryo Yoshitake <ryo@shiftmode.net>
15904
15905 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15906 (Vframe_alpha_lower_limit): New variable.
15907 (x_set_alpha): New function.
15908
15909 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15910
15911 * xfns.c (x-create-frame, Qalpha):
15912 Initialize the frame parameter `alpha'.
15913 * xterm.c (OPAQUE, OPACITY): New.
15914 (x_set_frame_alpha): New function.
15915 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15916
15917 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15918 * w32fns.c (w32_frame_parm_handlers): Likewise.
15919
15920 2008-05-20 Jason Rumney <jasonr@gnu.org>
15921
15922 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15923 truetype fonts to opentype list.
15924
15925 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
15926
15927 * fontset.c (Ffontset_info): Doc fix.
15928 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15929 <ignore-relative-composition>: Fix typos in docstrings.
15930
15931 * font.c (syms-of-font) <font-encoding-alist>:
15932 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15933 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15934 (Ffont_otf_alternates): Doc fixes.
15935
15936 2008-05-20 Kenichi Handa <handa@m17n.org>
15937
15938 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15939 font.h through out the file.
15940 (FONT_DRIVERS): Rename from FONTOBJ.
15941 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15942 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15943
15944 * emacs.c (main): Call syms_of_font unconditionally.
15945
15946 * font.h (find_font_encoding): Extern it.
15947
15948 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15949 fontset.c.
15950 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
15951 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15952 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15953 only when HAVE_WINDOW_SYSTEM is defined.
15954 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15955 when HAVE_WINDOW_SYSTEM is defined.
15956
15957 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15958 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15959
15960 * xfaces.c: Include font.h unconditionally.
15961 (merge_face_ref, merge_face_vectors)
15962 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15963
15964 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15965
15966 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15967 indirect_variable.
15968 * eval.c (lisp_indirect_variable): New fun.
15969 (Fuser_variable_p): Use it.
15970
15971 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15972
15973 * lisp.h (indirect_variable):
15974 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15975 Use Lisp_Symbol pointers rather than Lisp_Object.
15976 Adjust callers.
15977 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15978 To this end, change calling-convention.
15979
15980 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15981 if some non-hidden buffers are selected by string&pred.
15982
15983 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
15984
15985 * process.c (wait_reading_process_output): Always check status
15986 when in batch mode.
15987
15988 2008-05-19 Kenichi Handa <handa@m17n.org>
15989
15990 * font.c (font_list_entities): Fix handling of cache.
15991 (font_matching_entity): Likewise.
15992
15993 * ftfont.c (cs_iso8859_1): Delete.
15994 (ft_face_cache): New variable.
15995 (struct ftfont_info): New member fc_charset_idx.
15996 (ftfont_build_basic_charsets): Delete.
15997 (fc_charset_table): New variable.
15998 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15999 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16000 Callers changed.
16001 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16002 (ftfont_spec_pattern): New argument fc_charset_idx.
16003 Check registry more rigidly. Change callers.
16004 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16005 change of :font-entity property of the font.
16006
16007 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16008 property of the font.
16009
16010 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
16011
16012 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16013 (Funencodable_char_position, Fcheck_coding_systems_region)
16014 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16015 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16016 (Ffind_operation_coding_system, Fset_coding_system_priority)
16017 (Fcoding_system_eol_type): Doc fixes.
16018
16019 2008-05-17 Glenn Morris <rgm@gnu.org>
16020
16021 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16022
16023 2008-05-16 Eli Zaretskii <eliz@gnu.org>
16024
16025 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16026 and st_gid.
16027
16028 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16029 HAVE_WINDOW_SYSTEM is not defined.
16030
16031 * xfaces.c (merge_face_ref, merge_face_vectors)
16032 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16033 HAVE_WINDOW_SYSTEM is defined.
16034 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16035
16036 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16037
16038 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16039
16040 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16041
16042 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16043
16044 2008-05-15 Kenichi Handa <handa@m17n.org>
16045
16046 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16047 preference.
16048
16049 2008-05-15 Glenn Morris <rgm@gnu.org>
16050
16051 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16052
16053 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
16054
16055 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16056 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16057
16058 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16059
16060 2008-05-15 Kenichi Handa <handa@m17n.org>
16061
16062 * ftfont.c (ftfont_list): Downcase family name to check generic
16063 families.
16064
16065 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16066 font-spec for QCfont value.
16067
16068 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16069 buffer. Check the return value of it.
16070
16071 2008-05-14 Jason Rumney <jasonr@gnu.org>
16072
16073 * w32term.c (w32_get_glyph_overhangs): Remove.
16074 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16075
16076 2008-05-14 Kenichi Handa <handa@m17n.org>
16077
16078 * font.c (font_prop_validate): Make nil a valid value.
16079 (font_clear_cache): Check if the cached vector of entities is nil
16080 or not.
16081
16082 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16083
16084 * emacs.c (main_thread): Conditionalize on
16085 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16086 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16087
16088 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16089 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16090 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16091
16092 2008-05-14 Kenichi Handa <handa@m17n.org>
16093
16094 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16095 has no corresponding coding system.
16096
16097 2008-05-14 Jason Rumney <jasonr@gnu.org>
16098
16099 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16100
16101 * w32font.h (w32font_open_internal): Update declaration.
16102
16103 * w32font.c (w32font_open_internal): Change last argument from
16104 w32font_info struct to font object. Fill in font object from
16105 font_entity. Get Outline metrics if possible. Use them to
16106 calculate underline position and thickness. Use xlfd name as name
16107 property. Don't set codepage.
16108 (w32font_open): Pass font_object to w32font_open_internal. Don't
16109 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16110 (w32font_draw): Use s->font.
16111 (clear_cached_metrics): Don't clear non-existent blocks.
16112
16113 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16114 font was not found.
16115 (x_draw_glyph_string): Use underline position and thickness from font.
16116
16117 * w32uniscribe.c (uniscribe_open): Pass font_object to
16118 w32font_open_internal.
16119
16120 2008-05-14 Kenichi Handa <handa@m17n.org>
16121
16122 These changes are to delete all legacy font-handling codes, and
16123 make Emacs use only font-backends.
16124
16125 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16126 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16127
16128 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16129
16130 * charset.h (Vcharset_non_preferred_head)
16131 (Vcurrent_iso639_language): Extern them.
16132
16133 * charset.c (Vcharset_non_preferred_head): New variable.
16134 (Vcurrent_iso639_language): New variable.
16135 (syms_of_charset): Declare it as a Lisp variable.
16136 (char_charset): Don't check non preferred charsets. As a last
16137 resort, return charset_unicode.
16138 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16139
16140 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16141 conditionals. Don't check enable_font_backend. Delete all codes
16142 used only when USE_FONT_BACKEND is not defined.
16143
16144 * dispextern.h (struct glyph_string): Change type of `font' to
16145 `struct font *'.
16146 (struct glyph_string): New member underline_position and
16147 underline_thickness.
16148 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16149 (struct face): Change type of `font' to `struct font *'. Remove
16150 members `font_name', `font_info_id'.
16151 (per_char_metric, encode_char): Delete externs.
16152 (calc_pixel_width_or_height): Adjust the prototype.
16153
16154 * emacs.c (enable_font_backend): Delete extern.
16155 (main): Don't set enable_font_backend. Don't check the command
16156 line argument "-disable-font-backend".
16157
16158 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16159 (enum font_property_index): New members FONT_DPI_INDEX,
16160 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16161 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16162 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16163 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16164 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16165 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16166 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16167 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16168 (struct font_spec, struct font_entity): New structs.
16169 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16170 (struct font): Many members from old "struct font_info" moved to
16171 here. Members font and entity deleted.
16172 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16173 the new font-related objects.
16174 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16175 (CHECK_FONT_GET_OBJECT): Likewise.
16176 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16177 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16178 (struct font_driver): New members case_sensitive anc check. Type
16179 of the member list and open changed.
16180 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16181 (font_symbolic_width, font_find_object, font_get_spec)
16182 (font_set_lface_from_name): Delete extern.
16183 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16184
16185 * font.c: Include <strings.h>.
16186 (enable_font_backend): Delete it.
16187 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16188 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16189 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16190 (null_string): Delete it.
16191 (null_vector): Make it static.
16192 (font_family_alist): Delete it.
16193 (Qnormal): Extern it.
16194 (QCextra, QClanguage): Delete it.
16195 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16196 (font_make_spec, font_make_entity, font_make_object)
16197 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16198 the string. Callers changed.
16199 (font_pixel_size): Adjusted for the format change of font-related
16200 objects.
16201 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16202 (font_style_to_value, font_style_symbolic): New function.
16203 (build_font_family_alist): Delete it.
16204 (font_registry_charsets): Use Fassoc_string instead of
16205 assq_no_quit.
16206 (font_prop_validate_symbol): Don't return null_string.
16207 (font_prop_validate_style): Adjusted for the change of
16208 style-related values in a font vector.
16209 (font_property_table): Delete entries for QClanguage and
16210 QCantialias, add entries for QCavgwidth.
16211 (get_font_prop_index): Delete the 2nd argument FROM.
16212 (font_prop_validate): Arguments changed.
16213 (font_put_extra): Adjusted for the change of font-related objects.
16214 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16215 (font_parse_fcname, font_unparse_fcname)
16216 (font_prepare_composition): Likewise.
16217 (font_parse_family_registry): Renamed from font_merge_old_spec.
16218 (otf_open): Delete the 1st arg entity.
16219 (font_otf_capability): Adjusted for the above change.
16220 (font_score): New arg alternate_families. Adjusted for the change
16221 of font-related objects.
16222 (font_sort_entites): New arg best_only.
16223 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16224 Delete them.
16225 (font_match_p): Check alternate families.
16226 (font_find_object): Delete it.
16227 (font_check_object): New function.
16228 (font_clear_cache): Adjusted for the change of font-related objects.
16229 (font_delete_unmatched): New arg.
16230 (font_list_entities): Call font_driver->list with a spec that
16231 doesn't specify style-related properties.
16232 (font_matching_entity): Arguments changed. Caller changed.
16233 (font_open_entity): Adjusted for the change of font-related objects.
16234 (font_close_object, font_has_char, font_encode_char)
16235 (font_get_name, font_get_spec): Likewise.
16236 (font_spec_from_name, font_clear_prop, font_update_lface):
16237 New functions.
16238 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16239 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16240 (font_at): Adjusted for the change of font-related objects.
16241 (font_range): New function.
16242 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16243 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16244 (Fcopy_font_spec, Fmerge_font_spec): New function.
16245 (Ffont_family_list): Renamed from list-families.
16246 (Finternal_set_font_style_table): Arguments changed.
16247 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16248 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16249 change of font-related objects.
16250 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16251
16252 * fontset.h (struct font_info): Delete it. Most members go to
16253 struct font.
16254 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16255 (enum FONT_SPEC_INDEX): Delete it.
16256 (font_info, list_fonts_func, load_font_func, query_font_func)
16257 (set_frame_fontset_func, find_ccl_program_func)
16258 (get_font_repertory_func, new_fontset_from_font_name): Delete
16259 externs.
16260 (fontset_from_font_name): Extern it.
16261 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16262 (FONT_INFO_FROM_FACE): Deleted.
16263 (face_for_font): Adjust prototype.
16264
16265 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16266 conditionals. Don't check enable_font_backend. Delete all codes
16267 used only when USE_FONT_BACKEND is not defined.
16268 (get_font_info_func, list_font_func, load_font_func)
16269 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16270 (get_font_repertory_func): Delete them.
16271 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16272 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16273 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16274 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16275 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16276 (fontset_compare_rfontdef): New function.
16277 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16278 rfont-defs by qsort. Adjusted for the change of font-group vector.
16279 (load_font_get_repertory): Deleted.
16280 (fontset_find_font): Use new macros to ref/set elements of
16281 font-def and rfont-def.
16282 (fontset_font): Fix the timing of remembering that no font for C.
16283 (free_face_fontset): Do nothing if the face has no fontset.
16284 (face_suitable_for_char_p): Use new macros to ref/set elements of
16285 rfont-def.
16286 (face_for_char): Likewise. Call face_for_char with font_object.
16287 (fs_load_font): Delete. Delete #pragma surrounding it.
16288 (fs_query_fontset): Use strcasecmp instead of strcmp.
16289 (generate_ascii_font_name): Adjusted for the format change of
16290 font-spec.
16291 (Fset_fontset_font): Likewise. Use new macros to set elements of
16292 font-def.
16293 (Fnew_fontset): Use font_unparse_xlfd to generate
16294 FONTSET_ASCII (fontset).
16295 (new_fontset_from_font_name): Deleted.
16296 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16297 a fontset is already created for the font. FIx updating of
16298 Vfontset_alias_alist.
16299 (fontset_ascii_font): Deleted.
16300 (Ffont_info): Adjusted for the format change of font-spec.
16301 (Finternal_char_font): Likewise.
16302 (Ffontset_info): Likewise.
16303 (syms_of_fontset): Don't check load_font_func.
16304
16305 * fns.c (internal_equal): Handle PREV_FONT.
16306
16307 * frame.h: Delete USE_FONT_BACKEND conditional.
16308
16309 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16310 conditionals. Don't check enable_font_backend. Delete all codes
16311 used only when USE_FONT_BACKEND is not defined.
16312 (x_set_font): Call x_new_font, not x_new_fontset2.
16313 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16314 already set for the frame.
16315
16316 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16317 a font-entity by font_make_entity. Use font_intern_prop instead
16318 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16319 font property. If a font is scalable, set avgwidth property to 0.
16320 Set font-entity property by font_put_extra.
16321 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16322 (ffont_driver): Adjusted for the change of struct font_driver.
16323 (ftfont_spec_pattern): New function.
16324 (ftfont_list): Return a list, not vector.
16325 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16326 (ftfont_list_family): Don't downcase names.
16327 (ftfont_free_entity): Deleted.
16328 (ftfont_open): Return a font-object. Adjusted for the change of
16329 struct font. Get underline_thickness and underline_position from
16330 font property. Don't update dpyinfo->smallest_font_height and
16331 dpyinfo->smallest_char_width.
16332 (ftfont_close): Don't free `struct font'.
16333 (ftfont_has_char): Adjusted for the format change of font-entity.
16334 (ftfont_encode_char, ftfont_text_extents): Likewise.
16335
16336 * ftxfont.c (ftxfont_list): Return a list, not vector.
16337 (ftxfont_open): Return a font-object. Adjusted for the change of
16338 struct font. Get underline_thickness and underline_position from
16339 font property. Don't update dpyinfo->smallest_font_height and
16340 dpyinfo->smallest_char_width.
16341 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16342 (ftxfont_draw): Adjusted for the change of struct font.
16343
16344 * image.c (image_ascent): Don't include "charset.h". Include
16345 "character.h" and "font.h".
16346
16347 * lisp.h (enum pvec_type): New member PREV_FONT.
16348 (Fassoc_string): EXFUN it.
16349
16350 * print.c: Include font.h.
16351 (print_object): Handle font-related objects.
16352
16353 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16354 conditionals. Don't check enable_font_backend. Delete all codes
16355 used only when USE_FONT_BACKEND is not defined.
16356 (handle_auto_composed_prop): Do nothing if it->f is not on a
16357 window system. Check how many following characters can be
16358 displayed by the same font.
16359 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16360 'struct font *'.
16361 (get_char_face_and_encoding): Assign the whole encoding task to
16362 the `encode-char' method of a font driver.
16363 (fill_composite_glyph_string): Adjusted for the change of `struct
16364 face' and `struct glyph_string'.
16365 (fill_glyph_string): Likewise.
16366 (get_per_char_metric): Arguments changed.
16367 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16368 and `struct glyph_string'.
16369 (produce_stretch_glyph, calc_line_height_property)
16370 (x_produce_glyphs): Likewise.
16371
16372 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16373 conditionals. Don't check enable_font_backend. Delete all codes
16374 used only when USE_FONT_BACKEND is not defined. Use
16375 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16376 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16377 (Qp): Extern them.
16378 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16379 Deleted.
16380 (struct font_name): Deleted.
16381 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16382 (compare_fonts_by_sort_order): New function.
16383 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16384 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16385 Deleted.
16386 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16387 compare_fonts_by_sort_order.
16388 (Fx_font_family_list): Call Ffont_family_list.
16389 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16390 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16391 (face_symbolic_slant, face_symbolic_swidth)
16392 (split_font_name_into_vector, build_font_name_from_vector)
16393 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16394 (font_rescale_ratio, split_font_name, build_font_name)
16395 (free_font_names, sort_fonts, x_face_list_fonts)
16396 (face_font_available_p, sorted_font_list, cmp_font_names)
16397 (font_list_1, concat_font_list, font_list, remove_duplicates):
16398 Deleted.
16399 (Fx_list_fonts): Use Ffont_list.
16400 (LFACE_AVGWIDTH): Deleted.
16401 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16402 by FONTP.
16403 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16404 (set_lface_from_font_name): Delete it.
16405 (set_lface_from_font): Renamed from
16406 set_lface_from_font_and_fontset. Caller changed. Don't set
16407 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16408 for face.
16409 (merge_face_vectors): Copy font-spec if necessary.
16410 Clear properties of the font-spec if necessary.
16411 (merge_face_ref): Clear properties of the font-spec if necessary.
16412 (Finternal_set_lisp_face_attribute): Likewise.
16413 (set_font_frame_param): Use font_load_for_lface to load a
16414 font-object, and call Fmodify_frame_parameters with it.
16415 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16416 font name by Ffont_xlfd_name.
16417 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16418 QCslant, and QCwidth.
16419 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16420 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16421 Compare fonts by EQ.
16422 (lookup_non_ascii_face): Deleted.
16423 (face_for_font): The 2nd argument changed.
16424 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16425 Check atomic font properties by case insensitive.
16426 (realize_non_ascii_face): Set face->overstrike correctly.
16427 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16428 (dump_realized_face): Get font name from
16429 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16430
16431 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16432 conditionals. Don't check enable_font_backend. Delete all codes
16433 used only when USE_FONT_BACKEND is not defined.
16434 (xic_create_xfontset): Original code deleted and renamed from
16435 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16436 (x_make_gc): Don't set GCFont in GCs.
16437 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16438 opened by "fixed".
16439 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16440 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16441 get_font_repertory_func.
16442
16443 * xfont.c: Include <stdlib.h> and "ccl.h".
16444 (struct xfont_info): New structure.
16445 (xfont_query_font): Deleted.
16446 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16447 moved from xterm.c.
16448 (xfont_driver): Adjusted for the change of struct font_driver.
16449 (compare_font_names): New function.
16450 (xfont_list_pattern): Sort font names case insensitively. Make
16451 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16452 (xfont_list): Return a list, not vector.
16453 (xfont_match): If the font doesn't have QCname property, generate
16454 a name from the other font properties.
16455 (xfont_open): Return a font-object. Adjusted for the change of
16456 struct font. Get underline_thickness and underline_position from
16457 font property. Don't update dpyinfo->smallest_font_height and
16458 dpyinfo->smallest_char_width.
16459 (xfont_close): Don't free struct font.
16460 (xfont_prepare_face): Adjusted for the change of struct font.
16461 (xfont_done_face): Deleted.
16462 (xfont_has_char): Adjusted for the change of struct font.
16463 (xfont_encode_char, xfont_draw): Likewise.
16464 (xfont_check): New function.
16465
16466 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16467 callback function.
16468 (xftfont_match): Adjusted for the format change of font-entity.
16469 (xftfont_open): Adjusted for the format change of font-entity and
16470 font-object. Adjusted for the change of struct font. Return a
16471 font-object. Don't update dpyinfo->smallest_font_height and
16472 dpyinfo->smallest_char_width.
16473 (xftfont_close): Block input while calling XftFontClose.
16474 (xftfont_prepare_face): Don't block input while calling
16475 xftfont_get_colors. Adjusted for the change of struct font.
16476 (xftfont_shape): Return value of error case fixed.
16477
16478 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16479
16480 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16481 conditionals.
16482 (FONT_WIDTH): Return (f)->max_width.
16483 (struct x_display_info): Delete member `font'.
16484 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16485 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16486 (struct x_output): Change type of `font' to `struct font *'.
16487
16488 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16489 conditionals. Don't check enable_font_backend. Delete all codes
16490 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16491 (x_per_char_metric, x_encode_char): Deleted.
16492 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16493 (x_compute_glyph_string_overhangs): Adjusted for the change of
16494 `struct face'.
16495 (x_draw_glyph_string_foreground)
16496 (x_draw_composite_glyph_string_foreground): Likewise.
16497 (x_draw_glyph_string): Likewise. Use font->underline_position and
16498 font->underline_thickness.
16499 (x_new_font): Renamed from x_new_fontset2.
16500 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16501 (x_check_font): Call `check' method of a font driver.
16502 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16503 (x_query_font, x_get_font_repertory): Deleted.
16504 (x_find_ccl_program): Renamed and moved to xfont.c.
16505 (x_redisplay_interface): Adjusted for the change of `struct
16506 redisplay_interface'.
16507
16508 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16509 conditionals. Don't check enable_font_backend. Delete all codes
16510 used only when USE_FONT_BACKEND is not defined. Surround non-used
16511 code by "#ifdef OLD_FONT" and "endif".
16512 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16513
16514 * w32font.h (struct w32font_info): New member.
16515 (FONT_COMPAT): New macro.
16516 (w32font_open_internal): Prototype adjusted.
16517
16518 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16519 OLD_FONT" and "endif".
16520
16521 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16522 conditionals. Don't check enable_font_backend. Delete all codes
16523 used only when USE_FONT_BACKEND is not defined.
16524 (w32font_open): Return a font-object. Make a font-object by
16525 font_make_object. Adjusted for the change of struct w32font_info.
16526 (w32font_close): Don't free struct font. Adjusted for the change
16527 of struct w32font_info.
16528 (w32font_encode_char, w32font_text_extents, w32font_draw):
16529 Adjusted for the change of struct w32font_info.
16530 (w32font_draw): Likewise.
16531 (w32font_list_internal): Return a list, not vector.
16532 (w32font_open_internal): Change the 4th arg to font-object.
16533 Adjusted for the change of struct w32font_info and font-object format.
16534 (add_font_name_to_list): Don't downcase names.
16535 (w32_enumfont_pattern_entity): Make a font-entity by
16536 font_make_entity. Adjusted for the format change of font-entity.
16537 Use FONT_SET_STYLE to set a style-related font property. If a
16538 font is scalable, set avgwidth property to 0. Set font-entity
16539 property by font_put_extra.
16540 (font_matches_spec): Adjusted for the format change of font-entity.
16541 (w32_weight_table, w32_decode_weight): New variables.
16542 (w32_encode_weight): New function.
16543 (fill_in_logfont): Adjusted for the format change of font-spec.
16544 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16545 weight value.
16546 (w32font_driver): Adjusted for the change of struct font_driver.
16547
16548 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16549 conditionals. Don't check enable_font_backend. Surround non-used
16550 code by "#ifdef OLD_FONT" and "endif".
16551 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16552 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16553
16554 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16555 conditionals. Don't check enable_font_backend. Delete all codes
16556 used only when USE_FONT_BACKEND is not defined. Surround non-used
16557 code by "#ifdef OLD_FONT" and "endif".
16558
16559 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16560 (uniscribe_open): Return value changed to font-object.
16561 Adjusted for the format change of font-object.
16562 (uniscribe_otf_capability): Adjusted for the change of struct font.
16563 (add_opentype_font_name_to_list): Don't downcase names.
16564 (uniscribe_font_driver): Adjusted for the change of struct
16565 font_driver.
16566
16567 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
16568
16569 * dispnew.c (update_frame_1): Check if tty output is still valid
16570 before flushing it.
16571
16572 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16573
16574 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16575 to Gtk+ menus.
16576
16577 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16578
16579 * dired.c (file_name_completion): Tweak the code so as to always do it
16580 in a single pass. Tighten the scope of some variables.
16581
16582 * dired.c (Qdefault_directory): New var.
16583 (file_name_completion): Use it instead of Fexpand_file_name.
16584 (syms_of_dired): Initialize it.
16585
16586 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16587
16588 * fileio.c (double_dollars): Remove dead code.
16589
16590 2008-05-10 Eli Zaretskii <eliz@gnu.org>
16591
16592 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16593 Mention w32-get-true-file-attributes in doc string.
16594
16595 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16596
16597 2008-05-09 Glenn Morris <rgm@gnu.org>
16598
16599 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16600 2008-04-23.
16601
16602 2008-05-09 Eli Zaretskii <eliz@gnu.org>
16603
16604 Support for reporting owner and group of each file on MS-Windows:
16605 * dired.c (stat_uname, stat_gname): New functions, with special
16606 implementation for w32.
16607 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16608
16609 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16610 (dflt_group_name): New static variable.
16611 (dflt_group): Rename from the_group.
16612 (init_user_info): Init dflt_group fields. Get user's group name
16613 from LookupAccountSid.
16614 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16615 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16616 New initialization states.
16617 (globals_of_w32): Initialize them to zero. Initialize the default
16618 group name to "None".
16619 (GetFileSecurity_Name): New global var, the name of the function
16620 to call for GetFileSecurity.
16621 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16622 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16623 (get_file_security, get_security_descriptor_owner)
16624 (get_security_descriptor_group, is_valid_sid)
16625 (get_file_security_desc, get_rid, get_name_and_id)
16626 (get_file_owner_and_group): New functions.
16627 (stat): Use get_file_security_desc and get_file_owner_and_group to
16628 report the owner and primary group of each file. Don't ignore the
16629 high 32 bits of file's size, now that st_size is 64-bit wide.
16630 Fix test when to get true file attributes.
16631 (init_user_info): Use get_rid instead of equivalent inline code.
16632 (fstat): Don't ignore the high 32 bits of file's size.
16633
16634 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
16635
16636 * image.c (png_load): Use correct bit-depth for setting background
16637 color.
16638
16639 2008-05-08 Eli Zaretskii <eliz@gnu.org>
16640
16641 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16642 epa-hook.elc.
16643
16644 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
16645
16646 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16647
16648 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16649
16650 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16651 because the original parameters are in pure storage now.
16652 (mac_window): Remove unused params. Update callers.
16653
16654 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16655
16656 * lread.c (substitute_object_recurse): Use lower-level primitives.
16657 Don't signal errors when traversing sub-char-tables.
16658 Don't loop over all the possible characters when traversing char-tables.
16659
16660 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16661 just like we do in print.c.
16662
16663 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16664
16665 * minibuf.c (Ftry_completion): Remove code left over from when we used
16666 scmp instead of Fcompare_strings.
16667
16668 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
16669
16670 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16671
16672 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16673
16674 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16675 Create bitmap context in native byte order.
16676
16677 * macterm.c (XDrawLine)
16678 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16679 context in native byte order.
16680
16681 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16682
16683 * config.in: Regenerate.
16684
16685 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16686 New definitions for Image I/O support.
16687 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16688 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16689 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16690 (mac_data_provider_release_data, image_load_image_io)
16691 [USE_MAC_IMAGE_IO]: New functions.
16692 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16693 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16694 (init_image_func_pointer) [MAC_OSX]: Remove function.
16695 (image_load_quartz2d) [MAC_OSX]: Check availability of
16696 CGImageCreateWithPNGDataProvider at compile time.
16697 Use lowercase `false' for boolean constant.
16698 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16699 Use image_load_image_io.
16700 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16701 Don't check MyCGImageCreateWithPNGDataProvider.
16702 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16703 Don't call init_image_func_pointer.
16704
16705 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16706
16707 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16708 Make variable non-static.
16709 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16710 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16711
16712 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16713 (RED_FROM_ULONG): Mask off higher bits.
16714 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16715
16716 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16717 Include AvailabilityMacros.h.
16718 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16719 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16720
16721 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16722
16723 * chartab.c (Fset_char_table_range): If range is t, really set all
16724 chars to that value.
16725
16726 2008-05-03 Eli Zaretskii <eliz@gnu.org>
16727
16728 * dired.c (Ffile_attributes): Don't allow the device number become
16729 negative.
16730
16731 2008-05-02 Daiki Ueno <ueno@unixuser.org>
16732
16733 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16734
16735 2008-05-02 Juri Linkov <juri@jurta.org>
16736
16737 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16738 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16739 DEFAULT argument as a list of default values in docstrings.
16740
16741 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
16742
16743 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16744
16745 2008-05-01 Martin Rudalics <rudalics@gmx.at>
16746
16747 * dispnew.c (change_frame_size_1): Preserve small windows when
16748 shrinking frames by calling set_window_height|width with third
16749 arg 2.
16750
16751 * window.h (struct window): Replace field too_small_ok by field
16752 resize_proportionally.
16753
16754 * window.c (make_window): Initialize resize_proportionally.
16755 (enlarge_window): Temporarily set resize_proportionally to make
16756 sure that shrink_windows does scale the window proportionally.
16757 (shrink_windows): When window has resize_proportionally set try
16758 to shrink it proportionally by stealing from other windows.
16759 (struct saved_window, Fset_window_configuration)
16760 (compare_window_configurations): Handle resize_proportionally.
16761 (WINDOW_TOTAL_SIZE): New macro.
16762 (window_min_size, shrink_windows, size_window): Use it.
16763 (check_min_window_sizes): Remove. Invalid values of
16764 window-min-height|width are handled by window_min_size_2 now.
16765 (size_window, Fsplit_window, enlarge_window)
16766 (adjust_window_trailing_edge, grow_mini_window): Don't call
16767 check_min_window_sizes.
16768 (window_min_size_2, window_min_size_1, window_min_size):
16769 New argument safe_p for retrieving "safe" minimum sizes.
16770 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16771 (adjust_window_trailing_edge, grow_mini_window):
16772 Adjust arguments of window_min_size... functions.
16773 (shrink_windows): Argument min_size removed. New argument
16774 safe_p allows shrinking windows to their safe minimum sizes.
16775 Calculate minimum size and decide whether a window shall be
16776 deleted for each window individually.
16777 (size_window): When nodelete_p equals 2, tell shrink_windows to
16778 delete windows only if their new minimum size is no more safe.
16779 (shrink_window_lowest_first): Call window_min_size_1 to make
16780 sure to preserve modeline of bottom-most window when resizing
16781 the minibuffer.
16782 (Fset_window_configuration, Fcurrent_window_configuration)
16783 (compare_window_configurations): Do not handle
16784 window-min-height|width any more.
16785 (syms_of_window): Clarify window-min-height|width doc-strings.
16786
16787 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16788
16789 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16790 some more. Copy some of the code from Ftry_completions.
16791 Remove special case code that dates back to initial revision when the
16792 slash was only added when necessary and that can't trigger nowadays.
16793
16794 2008-04-27 Kenichi Handa <handa@m17n.org>
16795
16796 * font.c (font_prop_validate): Signal `error' instead of `font'.
16797
16798 2008-04-29 Jason Rumney <jasonr@gnu.org>
16799
16800 * w32fns.c (Fw32_battery_status): New defun.
16801 (syms_of_w32fns): Defsubr it.
16802
16803 2008-04-28 Andreas Schwab <schwab@suse.de>
16804
16805 * dired.c (file_name_completion): Fix another mixing of encoded
16806 and decoded names.
16807
16808 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
16809
16810 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16811
16812 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
16813
16814 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16815
16816 2008-04-27 Andreas Schwab <schwab@suse.de>
16817
16818 * dired.c (file_name_completion): Fix inappropriate mixing of
16819 encoded and decoded names.
16820
16821 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16822
16823 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16824
16825 2008-04-26 Eli Zaretskii <eliz@gnu.org>
16826
16827 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16828 2008-03-31, it's not needed anymore with `struct stat' definition
16829 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16830 for the same reasons.
16831
16832 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16833
16834 * m/sparc.h: Additional redefinitions for GNU/Linux.
16835
16836 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16837
16838 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16839 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16840 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16841 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16842 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16843 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16844 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16845 Likewise.
16846
16847 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16848 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16849 (mac_ax_number_of_characters): Add externs.
16850 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16851 [USE_MAC_TSM]: Likewise.
16852 (mac_handle_text_input_event) [MAC_OSX]:
16853 Handle kEventTextInputOffsetToPos for no active input area case.
16854 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16855 (mac_handle_document_access_event)
16856 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16857 (install_application_handler) [MAC_OSX]: Register handlers for
16858 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16859 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16860 Register mac_handle_document_access_event.
16861
16862 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16863 Make functions non-static.
16864
16865 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16866
16867 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16868 (read_file_name_completion_ignore_case, insert_default_directory)
16869 (Qdefault_directory): Move to minibuffer.el.
16870 (Fread_file_name): Call the new `read-file-name' instead.
16871
16872 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16873
16874 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16875 Make function non-static.
16876 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16877 Remove function.
16878 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16879 Move to mactoolbox.c.
16880 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16881
16882 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16883 (mac_rect_make): New macro.
16884
16885 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16886 instead of float.
16887 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16888 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16889 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16890 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16891 CGRectMake.
16892 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16893 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16894 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16895 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16896 instead of WindowRef in argument type.
16897 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16898 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16899 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16900 instead of DISPLAY. All uses changed.
16901 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16902 (x_calc_absolute_position): Simplify so as not to use
16903 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16904
16905 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16906 instead of WindowRef in argument type.
16907 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16908 [TARGET_API_MAC_CARBON]: Remove externs.
16909 (create_apple_event, mac_event_parameters_to_lisp)
16910 [TARGET_API_MAC_CARBON]: Add externs.
16911
16912 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16913 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16914 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16915 is clicked.
16916 (x_activate_menubar): Remove extern for saved_menu_event_location.
16917 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16918 Move from mac.c.
16919
16920 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16921
16922 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16923 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16924
16925 2008-04-23 Jason Rumney <jasonr@gnu.org>
16926
16927 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16928 attributes only for local files.
16929
16930 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16931 default to Qlocal.
16932
16933 2008-04-22 Juri Linkov <juri@jurta.org>
16934
16935 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16936 read-buffer-to-switch instead of using the letter "B".
16937
16938 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16939
16940 * fileio.c (Qdefault_directory): New variable.
16941 (Fread_file_name): Use it to pass `dir' to the completion functions.
16942
16943 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
16944
16945 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16946
16947 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16948
16949 * keyboard.c (Vpre_help_message): Remove.
16950 (show_help_echo): Remove default C code.
16951
16952 * dired.c (directory_files_internal, file_name_completion):
16953 Only call ENCODE_FILE if the string is indeed decoded.
16954
16955 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16956
16957 * Makefile.in (TOOLKIT_DEFINES): Remove.
16958 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16959
16960 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16961
16962 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16963 (mactoolbox.o): New target.
16964
16965 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16966 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16967
16968 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16969 Use mac_set_frame_window_background instead of XSetWindowBackground.
16970 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16971 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16972 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16973 instead of SetWindowTitleWithCFString.
16974 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16975 Move function to mactoolbox.c.
16976 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16977 Use mac_set_window_modified instead of SetWindowModified.
16978 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16979 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16980 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16981 FrontNonFloatingWindow. Use mac_activate_window instead of
16982 ActivateWindow. Use mac_active_non_floating_window instead of
16983 ActiveNonFloatingWindow.
16984 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16985 Use mac_show_hourglass and mac_hide_hourglass.
16986 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16987 instead of GetGlobalMouse.
16988 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16989 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16990 Use mac_bring_window_to_front instead of BringToFront.
16991 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16992 mactoolbox.c.
16993 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16994 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16995 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16996 mactoolbox.c.
16997
16998 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16999 (XtPointer): Move typedef from macmenu.c.
17000 (enum button_type): Move enum from macmenu.c.
17001 (widget_value): Move typedef from macmenu.c.
17002 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17003 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17004 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17005 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17006 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17007 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17008 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17009 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17010 (Selection): Move typedef from macselect.c.
17011 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17012 macterm.c.
17013 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17014 (mac_is_window_collapsed, mac_bring_window_to_front)
17015 (mac_send_window_behind, mac_hide_window, mac_show_window)
17016 (mac_collapse_window, mac_front_non_floating_window)
17017 (mac_active_non_floating_window, mac_activate_window)
17018 (mac_move_window_structure, mac_move_window, mac_size_window)
17019 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17020
17021 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17022 (enum mac_menu_kind): Move enum to mactoolbox.c.
17023 (min_menu_id): Move variable to mactoolbox.c.
17024 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17025 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17026 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17027 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17028 [TARGET_API_MAC_CARBON]: Likewise.
17029 (XtPointer): Move typedef to macgui.h.
17030 (enum button_type): Move enum to macgui.h.
17031 (widget_value): Move typedef to macgui.h.
17032 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17033 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17034 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17035 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17036 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17037 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17038 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17039 (popup_activated_flag): Make variable non-static.
17040 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17041 (add_menu_item, fill_menu, dispose_menus):
17042 Move functions to mactoolbox.c.
17043 (restore_show_help_function, menu_target_item_handler)
17044 (install_menu_target_item_handler, mac_handle_dialog_event)
17045 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17046 [TARGET_API_MAC_CARBON]: Likewise.
17047 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17048 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17049 (find_and_call_menu_selection, name_is_separator): Make function
17050 non-static.
17051 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17052 to mactoolbox.c.
17053 (set_frame_menubar): Don't call install_menu_quit_handler.
17054 (menu_item_selection): New variable.
17055 (mac_menu_show): Use create_and_show_popup_menu.
17056 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17057 selection but set variable menu_item_selection. All uses changed.
17058 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17059 Call install_menu_quit_handler. Move to mactoolbox.c.
17060
17061 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17062 (Selection): Move typedef to macgui.h.
17063 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17064 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17065 Make variables non-static.
17066 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17067 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17068 Make functions non-static.
17069 (Vmac_service_selection) [MAC_OSX]: Likewise.
17070 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17071 (mac_valid_selection_target_p, mac_clear_selection)
17072 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17073 (mac_put_selection_value, mac_selection_has_target_p)
17074 (mac_get_selection_value, mac_get_selection_target_list)
17075 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17076 Move functions to mactoolbox.c.
17077 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17078 Likewise.
17079 (copy_scrap_flavor_data, mac_handle_service_event)
17080 (install_service_handler) [MAC_OSX]: Likewise.
17081 (syms_of_macselect) <Vmac_dnd_known_types>:
17082 Use mac_dnd_default_known_types.
17083
17084 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17085 Move to mactoolbox.c.
17086 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17087 (Fx_selection_owner_p): Add EXFUN.
17088 (install_window_handler, remove_window_handler, XSetWindowBackground):
17089 Remove externs.
17090 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17091 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17092 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17093 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17094 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17095 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17096 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17097 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17098 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17099 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17100 (mac_valid_selection_target_p, mac_clear_selection)
17101 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17102 (mac_put_selection_value, mac_selection_has_target_p)
17103 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17104 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17105 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17106 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17107 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17108 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17109 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17110 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17111 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17112
17113 * mactoolbox.c: New file.
17114
17115 2008-04-18 Jason Rumney <jasonr@gnu.org>
17116
17117 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17118
17119 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17120
17121 * character.c (Fmultibyte_char_to_unibyte):
17122 Return latin1 chars unchanged.
17123
17124 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17125 relocated if it points to `name'.
17126
17127 2008-04-17 Kenichi Handa <handa@m17n.org>
17128
17129 * data.c (Faset): Allow setting a multibyte character in an
17130 ASCII-only unibyte string.
17131
17132 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17133
17134 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17135
17136 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17137 done in config.h.
17138
17139 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
17140
17141 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17142 (Fchar_direction): Add usage in the docstring.
17143
17144 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
17145
17146 * keyboard.c (read_key_sequence): Remove always-true checks.
17147
17148 2008-04-14 Jason Rumney <jasonr@gnu.org>
17149
17150 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17151 compatibility struct, for better underline positioning.
17152
17153 2008-04-13 David Hansen <david.hansen@gmx.net>
17154
17155 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17156 string.
17157
17158 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17159
17160 * m/hp800.h (XUINT, XSET): Remove.
17161
17162 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
17163
17164 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17165 previous change.
17166
17167 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17168
17169 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17170 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17171
17172 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17173
17174 * keymap.h (map_keymap_canonical): Declare.
17175 * xmenu.c (single_keymap_panes): Use it.
17176
17177 2008-04-11 Glenn Morris <rgm@gnu.org>
17178
17179 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17180 set the target's value to that of the alias.
17181
17182 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17183
17184 * term.c (set_tty_color_mode): Left over typo.
17185
17186 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
17187
17188 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17189 only after check for file name handler functions. Signal, when
17190 native functionality is not supported.
17191 (syms_of_fileio): Declare it unconditionally.
17192
17193 2008-04-10 Jason Rumney <jasonr@gnu.org>
17194
17195 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17196 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17197
17198 * w32.c (logon_network_drive): Also logon to remote drives that
17199 are mapped to drive letters.
17200
17201 2008-04-10 Glenn Morris <rgm@gnu.org>
17202
17203 * xdisp.c (truncate-partial-width-windows): Doc fix.
17204
17205 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17206
17207 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17208 Move functions to minibuffer.el.
17209 (syms_of_fileio): Don't declare them.
17210
17211 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17212
17213 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17214 (syms_of_minibuf): Remove its initialization.
17215
17216 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17217
17218 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
17219
17220 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17221
17222 2008-04-09 Jason Rumney <jasonr@gnu.org>
17223
17224 * makefile.w32-in (distclean): Delete makefile too.
17225 (maintainer-clean): New target.
17226
17227 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17228
17229 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17230 for new font backend and composite cases.
17231
17232 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17233
17234 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17235 Most of the code moved to run_timers.
17236 (do_pending_atimers): Call run_timers.
17237 (run_timers): New function.
17238
17239 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17240 run atimers.
17241
17242 * process.c (wait_reading_process_output): The same as above.
17243
17244 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17245
17246 * minibuf.c (last_exact_completion): Remove variable.
17247 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17248 (complete_and_exit_1, complete_and_exit_2)
17249 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17250 (Fdisplay_completion_list, display_completion_list_1)
17251 (Fminibuffer_completion_help, Fself_insert_and_exit)
17252 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17253 minibuffer.el.
17254 (syms_of_minibuf): Remove corresponding initializations.
17255
17256 * keyboard.c (Qdeactivate_mark): New var.
17257 (command_loop_1): Use it to call `deactivate-mark'.
17258 (syms_of_keyboard): Initialize it.
17259
17260 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17261 to another frame.
17262 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17263 Don't call set_tty_color_mode.
17264 (store_frame_param): Reset previous_frame rather than call
17265 set_tty_color_mode.
17266 * term.c (set_tty_color_mode): Rewrite.
17267 * dispextern.h (set_tty_color_mode): New type.
17268 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17269
17270 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17271
17272 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17273 for generic chars, which do not exist any more in emacs-unicode.
17274
17275 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
17276
17277 * coding.c (detect_coding_emacs_mule)
17278 (Ffind_operation_coding_system): Fix typo.
17279
17280 2008-04-08 Jason Rumney <jasonr@gnu.org>
17281
17282 * w32uniscribe.c (SNAME): Extract only symbol name.
17283
17284 * w32font.h (struct w32_metric_cache): New struct.
17285 (w32font_info): Use it.
17286 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17287 (CACHE_BLOCKSIZE): New constants.
17288
17289 * w32font.c (Qja, Qko, Qzh): New symbols.
17290 (syms_of_w32font): Initialise them.
17291 (font_matches_spec): Use them to filter by language.
17292 (recompute_cached_metrics): Remove function.
17293 (compute_metrics, clear_cached_metrics): New functions.
17294 (w32font_encode_char): Use them to manage metric cache.
17295 (w32font_text_extents): Cache metrics for all glyphs on demand.
17296 Delay converting glyph indices to WORD until needed.
17297 (w32font_open_internal): Initialize metric cache to empty.
17298 (registry_to_w32_charset): Charset should always be a symbol.
17299 (fill_in_logfont, list_all_matching_fonts): Family should
17300 always be a symbol.
17301
17302 2008-04-06 Jason Rumney <jasonr@gnu.org>
17303
17304 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17305 Give up if glyph indices not supported. Use uniscribe obtained
17306 ABC widths for individual metrics. Map glyph clusters back to
17307 characters using fClusterStart flag. Return number of glyphs
17308 produced, not chars processed.
17309 (uniscribe_shape): Map char at FROM to current glyph.
17310
17311 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17312
17313 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17314 Use SetMenuItemHierarchicalMenu.
17315
17316 2008-04-05 Jason Rumney <jasonr@gnu.org>
17317
17318 * image.c (pbm_load): Allow color values up to 65535.
17319 Throw an error if max_color_idx is outside the supported range.
17320 Report an error when image size is invalid.
17321 Read two bytes at a time when raw images have max_color_idx above 255.
17322
17323 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17324
17325 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17326 append "CCL: Quitted" when the CCL program is quitted.
17327 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17328
17329 * ccl.h (struct ccl_program): New member quit_silently.
17330
17331 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
17332
17333 * search.c (compile_pattern_1): Treat non-nil and non-string of
17334 search-spaces-regexp as nil.
17335
17336 * minibuf.c (Fassoc_string): Tweak docstring.
17337
17338 2008-04-05 Eli Zaretskii <eliz@gnu.org>
17339
17340 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17341 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17342 2008-03-14 to force inode be positive.
17343
17344 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17345 _S_* ones, since we now use our own sys/stat.h.
17346 (stat, fstat): Don't mangle the inode number.
17347 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17348
17349 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17350
17351 * frame.h (struct frame): Give one more bit to `visible' since we use
17352 values larger than 1 to indicate obscured frames on ttys.
17353
17354 * keymap.c (Qkeymap_canonicalize): New var.
17355 (Fmap_keymap_internal): New fun.
17356 (describe_map): Use keymap-canonicalize.
17357
17358 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17359 (Fundo_boundary): Set them.
17360 (syms_of_undo): Initialize them.
17361 (record_point): Use them instead of last_point_position*.
17362 (last_undo_buffer): Change type.
17363
17364 2008-04-04 Jason Rumney <jasonr@gnu.org>
17365
17366 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17367 (recompute_cached_metrics): Don't set ascent and descent per char.
17368
17369 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17370 (uniscribe_check_otf): Add GC protection before consing.
17371 Rearrange loop for counting features.
17372
17373 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17374
17375 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17376 buffer with byte-size of source buffer.
17377
17378 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
17379
17380 * callint.c (Fcall_interactively): Handle temporary region even
17381 when shift-select-mode is off.
17382
17383 2008-04-03 Jason Rumney <jasonr@gnu.org>
17384
17385 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17386
17387 2008-04-03 Kenichi Handa <handa@m17n.org>
17388
17389 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17390 (CATEGORY_MASK_UTF_16): Likewise.
17391 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17392 binary file.
17393 (detect_coding): Add null-byte detection for a binary file.
17394 (detect_coding_system): Likewise.
17395
17396 2008-04-03 Jason Rumney <jasonr@gnu.org>
17397
17398 * w32uniscribe.c: New file.
17399
17400 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17401
17402 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17403
17404 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17405 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17406 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17407 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17408 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17409 (Qphonetic): New symbols.
17410 (syms_of_w32font): Initialize them.
17411 (font_supported_scripts): Use them.
17412 (w32font_list_family): List all charsets.
17413 (w32font_text_extents, recompute_cached_metrics): Fix metric
17414 calculations.
17415 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17416 Give opentype fonts their own format.
17417 (font_matches_spec): New arguments backend and logfont.
17418 Handle :otf spec for uniscribe backend.
17419 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17420 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17421
17422 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17423 font backend.
17424 (globals_of_w32fns): Initialize uniscribe font backend.
17425
17426 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17427 dependencies.
17428 (w32uniscribe.$(O)): New file to build.
17429 (FONT_OBJ): Include w32uniscribe.$(O).
17430 (LIBS): Add uniscribe libraries.
17431
17432 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17433
17434 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
17435
17436 * callint.c (Vshift_select_mode): New var.
17437 (Finteractive): Document new ^ spec.
17438 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17439 is present.
17440
17441 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17442 (command_loop_1): Avoid running the direct display versions of
17443 forward-char and backward-char if shift-selection may occur.
17444 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17445 shift-translation takes place.
17446
17447 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17448 avoid clobbering by define-minor-mode.
17449
17450 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17451 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17452
17453 * syntax.c (Fforward_word): Add ^ interactive spec.
17454
17455 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17456 (Fscroll_right): Add ^ interactive spec.
17457
17458 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17459
17460 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17461
17462 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17463
17464 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17465
17466 2008-03-31 Juri Linkov <juri@jurta.org>
17467
17468 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17469
17470 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17471
17472 * gtkutil.c (xg_set_geometry): Fix indentation.
17473 (xg_resize_outer_widget): Remove.
17474 (x_wm_size_hint_off): Fix indentation.
17475 (xg_frame_set_char_size): Call flush_and_sync after
17476 gtk_window_resize.
17477 (x_wm_set_size_hint): Pass NULL as geometry window to
17478 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17479 Add menu bar and tool bar height to base height.
17480 (xg_update_frame_menubar, free_frame_menubar)
17481 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17482 (update_frame_tool_bar, free_frame_tool_bar):
17483 Change xg_resize_outer_widget to xg_frame_set_char_size.
17484
17485 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
17486
17487 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17488 (Fdbus_call_method): New parameter TIMEOUT.
17489 (dbus-send-signal): Optimize UNGCPRO call.
17490
17491 2008-03-29 Juri Linkov <juri@jurta.org>
17492
17493 * window.c (Fdisplay_buffer): Move call to
17494 Vsplit_window_preferred_function out of conditions that check
17495 if window is eligible for vertical splitting.
17496 When Vsplit_window_preferred_function is non-nil, call it and use
17497 its non-nil return value as window. Otherwise, continue doing
17498 vertical splitting using Fsplit_window with arg horflag=nil.
17499 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17500 default value from `split-window' to nil.
17501
17502 2008-03-29 Juri Linkov <juri@jurta.org>
17503
17504 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17505 for interactive code letters 'b' and 'B'.
17506
17507 2008-03-29 Eli Zaretskii <eliz@gnu.org>
17508
17509 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17510 multibyte string.
17511
17512 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17513
17514 * keyboard.c (pending_funcalls): New var.
17515 (timer_check): Run it.
17516 (syms_of_keyboard): Initialize it.
17517 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17518 (Vdelete_terminal_functions): New vars.
17519 (syms_of_terminal): Initialize them.
17520 (Fdelete_terminal): Run delete-terminal-functions.
17521 * xdisp.c (safe_eval): Rewrite.
17522 (safe_call2): New fun.
17523 * frame.c (Qdelete_frame_functions): New var.
17524 (syms_of_frame): Initialize it.
17525 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17526 * lisp.h (safe_call2, pending_funcalls): Declare.
17527
17528 2008-03-28 Andreas Schwab <schwab@suse.de>
17529
17530 * indent.c (Fmove_to_column): Move declaration before statements.
17531
17532 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17533
17534 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17535 (struct frame): Use bit fields for boolean vars.
17536
17537 * process.c (server_accept_connection): Simplify naming.
17538 (emacs_get_tty_pgrp): Use SDATA.
17539
17540 * coding.c (decode_coding_object): Fix last change.
17541
17542 2008-03-27 Jason Rumney <jasonr@gnu.org>
17543
17544 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17545
17546 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17547
17548 * charset.c (Fdefine_charset_internal): Change the way of
17549 registering charsets in Vcharset_order_list.
17550 (syms_of_charset): Make the charset `eight-bit' supplementary.
17551
17552 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17553
17554 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17555 operations, to avoid having the difference between pointers
17556 overflow.
17557
17558 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17559
17560 * indent.c (check_display_width): New fun.
17561 (scan_for_column): Use it.
17562
17563 * data.c (syms_of_data): Mark most-positive-fixnum and
17564 most-negative-fixnum as constants.
17565
17566 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17567
17568 * indent.c (scan_for_column): Extract from current_column_1.
17569 Merge with the same code from Fmove_to_column.
17570 (current_column_1, Fmove_to_column): Use it.
17571
17572 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17573
17574 * keymap.c (map_keymap_internal): New fun.
17575 (map_keymap): Use it.
17576 (Fmap_keymap_internal): New fun.
17577 (Fmap_keymap): Remove left-out test from before make_save_value.
17578
17579 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17580
17581 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17582 Use XCAR/XCDR.
17583
17584 * process.h (struct Lisp_Process): Remove filter_multibyte.
17585 * process.c (QCfilter_multibyte): Remove.
17586 (setup_process_coding_systems): Don't use filter_multibyte.
17587 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17588 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17589 (Fset_process_filter_multibyte): Change the coding-system to
17590 approximate the previous behavior.
17591 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17592 coding-system.
17593
17594 * coding.c (decode_coding_object): When not decoding into a buffer,
17595 obey the coding system's preference of (uni|multi)byte.
17596
17597 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17598
17599 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17600 every char is changed and has a different byte-length.
17601 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17602 Fix int -> EMACS_INT.
17603
17604 2008-03-23 David Hansen <david.hansen@gmx.net>
17605
17606 * dbusbind.c (xd_read_message): Remove extra copying of message
17607 strings. Check for NULL `interface' or `member'.
17608
17609 2008-03-22 Eli Zaretskii <eliz@gnu.org>
17610
17611 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17612 cFileName a file name that includes `?' characters, use the 8+3
17613 alias in cAlternateFileName instead.
17614
17615 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17616
17617 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17618
17619 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17620
17621 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17622 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17623 work on current_buffer only instead (that was already the case
17624 for some of the code anyway).
17625 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17626 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17627 (SET_PT, SET_PT_BOTH): Adjust.
17628 * intervals.h (set_point, temp_set_point, set_point_both)
17629 (temp_set_point_both): Remove redundant declarations.
17630
17631 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17632
17633 * fileio.c (Finsert_file_contents):
17634 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17635 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17636 when buffer != current_buffer anyway.
17637
17638 2008-03-20 Andreas Schwab <schwab@suse.de>
17639
17640 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17641 as default.
17642
17643 2008-03-19 Jason Rumney <jasonr@gnu.org>
17644
17645 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17646 (syms_of_w32fns): Initialize them.
17647 (HOURGLASS_ID): New constant.
17648 (x_window_to_frame): Don't check hourglass_window.
17649 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17650 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17651 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17652 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17653 Only change the cursor if hourglass is not active.
17654 (Fx_create_frame): Initialize frame's current_cursor.
17655 (hourglass_atimer): Remove.
17656 (hourglass_started): New function.
17657 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17658 (show_hourglass): Adapt to w32, changing argument to frame.
17659
17660 * w32term.h (struct w32_output): Remove hourglass_window.
17661 Add current_cursor.
17662
17663 * eval.c (call_debugger, Fsignal):
17664 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17665 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17666 (Fexecute_extended_command, cancel_hourglass_unwind):
17667 * minibuf.c (read_minibuf):
17668 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17669
17670 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17671
17672 * window.c (run_funs): New fun.
17673 (run_window_configuration_change_hook): Use it to run the buffer-local
17674 and the global part of the hook.
17675
17676 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17677 (unwind_format_mode_line): Restore selected window.
17678 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17679
17680 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17681
17682 * editfns.c (Fchar_equal): Check they are valid characters.
17683
17684 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17685
17686 2008-03-17 Andreas Schwab <schwab@suse.de>
17687
17688 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17689 against a charset.
17690
17691 * lisp.h (Fbuffer_list): Declare.
17692
17693 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
17694
17695 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17696 handlebox_widget is != 0.
17697
17698 2008-03-16 Juri Linkov <juri@jurta.org>
17699
17700 * callint.c (Fcall_interactively): For interactive code letters
17701 'b' and 'B' put the buffer list into the list of default "future"
17702 values of the minibuffer.
17703
17704 2008-03-16 Andreas Schwab <schwab@suse.de>
17705
17706 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17707 modifiers.
17708
17709 * regex.c (re_match_2_internal): Correct matching of a charset
17710 against latin-1 characters.
17711
17712 2008-03-16 Kenichi Handa <handa@m17n.org>
17713
17714 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17715 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17716 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17717 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17718 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17719 CHAR_STRING_ADVANCE.
17720 (produce_chars): Fix for the case that the source and the
17721 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17722 instead of CHAR_STRING_ADVANCE.
17723 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17724 STRING_CHAR_ADVANCE.
17725
17726 2008-03-15 Andreas Schwab <schwab@suse.de>
17727
17728 * regex.c (re_match_2_internal): Correct matching of eight bit
17729 characters in unibyte strings.
17730
17731 2008-03-15 Martin Rudalics <rudalics@gmx.at>
17732
17733 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17734 at end of range when it coincides with the end of the buffer.
17735
17736 2008-03-14 Eli Zaretskii <eliz@gnu.org>
17737
17738 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17739
17740 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17741
17742 2008-03-14 Jason Rumney <jasonr@gnu.org>
17743
17744 * editfns.c (initial_tz): New variable.
17745 (syms_of_editfns): Initialize it.
17746 (Fset_time_zone_rule): Set it when first called.
17747 Use it when TZSTRING is nil.
17748
17749 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17750 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17751 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17752 (globals_of_w32fns): Initialize them.
17753 (compute_tip_xy): Use them to position tooltips.
17754
17755 2008-03-14 Glenn Morris <rgm@gnu.org>
17756
17757 * emacs.c (main): Revert previous change.
17758 (standard_args): Revert -internal-script back to -scriptload,
17759 and remove the long-option form.
17760
17761 2008-03-13 Glenn Morris <rgm@gnu.org>
17762
17763 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17764 Remove option -enable-font-backend.
17765
17766 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17767
17768 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17769
17770 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17771
17772 * xterm.c (x_connection_closed): For GTK: If this is the last
17773 terminal just exit without closing the display.
17774
17775 2008-03-11 Jason Rumney <jasonr@gnu.org>
17776
17777 * w32font.c (w32font_full_name): Use floor to round.
17778
17779 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17780
17781 * sound.c (alsa_configure): Declare vol at beginning of block.
17782
17783 * fontset.c (Ffontset_info): Remove extra semicolon.
17784
17785 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17786
17787 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17788 size of resulting string.
17789
17790 2008-03-10 Jason Rumney <jasonr@gnu.org>
17791
17792 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17793
17794 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17795
17796 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17797 Don't pretend as if characters with display property haven't been
17798 consumed for string-replacing-string case.
17799
17800 2008-03-08 Kim F. Storm <storm@cua.dk>
17801
17802 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17803 (get_next_display_element, next_element_from_string)
17804 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17805
17806 2008-03-08 Andreas Schwab <schwab@suse.de>
17807
17808 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17809
17810 2008-03-06 Jason Rumney <jasonr@gnu.org>
17811
17812 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17813 when charset not specified. Only translate ANSI to unicode when
17814 font_type is truetype.
17815 (w32font_coverage_ok): New function.
17816 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17817
17818 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17819
17820 * lread.c (Fread_char): Resolve modifiers.
17821 (Fread_char_exclusive): Likewise.
17822
17823 * character.c (char_resolve_modifier_mask): New function.
17824 (char_string): Use char_resolve_modifier_mask.
17825 (Fchar_resolve_modifiers): New function.
17826 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17827 function.
17828
17829 2008-03-04 Jason Rumney <jasonr@gnu.org>
17830
17831 * makefile.w32-in: Always include w32font.c in the build.
17832 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17833
17834 2008-03-04 Andreas Schwab <schwab@suse.de>
17835
17836 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17837 (versionclean): Likewise.
17838
17839 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
17840
17841 * .cvsignore: Add oo.
17842
17843 2008-03-03 Andreas Schwab <schwab@suse.de>
17844
17845 * coding.c (decode_coding_object): Inhibit gap shrinking while
17846 decoding in place.
17847
17848 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17849
17850 * w32term.c: Remove unused include "gnu.h".
17851 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17852
17853 * gnu.h: Rename to ...
17854 * emacs-icon.h: ... this.
17855 * xterm.c: Use emacs-icon.h instead of gnu.h.
17856 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17857
17858 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
17859
17860 * w32font.c: Include math.h.
17861
17862 2008-03-03 Jason Rumney <jasonr@gnu.org>
17863
17864 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17865 Compute options separately.
17866 (w32font_open_internal): Set glyph_idx before caching metrics.
17867
17868 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17869 Define if system headers don't.
17870 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17871 (w32font_encode_char): Don't declare here.
17872
17873 * w32font.c (Quniscribe, QCformat): New symbols.
17874 (syms_of_w32font): Define them.
17875 (w32font_has_char): Indicate uncertainty.
17876 (w32font_encode_char): Encode as glyph point. Make static.
17877 (recompute_cached_metrics): New function.
17878 (w32font_open_internal): Use it. Set font to use glyph points
17879 initially. Set format based on type of font.
17880 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17881 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17882 on it. Set format based on information available here.
17883 (add_font_entity_to_list): Identify backend based on opentype_only.
17884
17885 2008-03-02 Andreas Schwab <schwab@suse.de>
17886
17887 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17888
17889 * coding.c (decode_coding_big5, produce_chars):
17890 Fix typos in last change.
17891
17892 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17893
17894 * gnu.h: New icon.
17895
17896 2008-03-02 Kenichi Handa <handa@m17n.org>
17897
17898 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17899 `dos', don't decode '\r' if that is the last in the source.
17900 (decode_coding_utf_16, decode_coding_emacs_mule)
17901 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17902 (decode_coding_raw_text, decode_coding_charset): Likewise.
17903 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17904
17905 2008-03-01 Jason Rumney <jasonr@gnu.org>
17906
17907 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17908
17909 2008-03-01 Kim F. Storm <storm@cua.dk>
17910
17911 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17912
17913 2008-03-01 Jason Rumney <jasonr@gnu.org>
17914
17915 * w32font.c (w32font_full_name): New function.
17916 (w32font_open_internal): Use it.
17917
17918 2008-03-01 Kim F. Storm <storm@cua.dk>
17919
17920 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17921
17922 2008-03-01 Jason Rumney <jasonr@gnu.org>
17923
17924 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17925
17926 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17927
17928 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17929 xg_frame_resized when the event is for the edit widget.
17930
17931 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17932
17933 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17934 set_char_size.
17935 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17936 operations on widgets here. Just set frame size if needed.
17937 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17938 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17939 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17940 the whole frame.
17941 (xg_create_tool_bar): Move attachment of the tool bar to
17942 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17943 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17944
17945 2008-03-01 Jason Rumney <jasonr@gnu.org>
17946
17947 * w32fns.c (w32_msg_pump): Disable debug code.
17948
17949 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17950
17951 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17952
17953 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17954
17955 * xdisp.c (next_overlay_string): Don't set
17956 overlay_strings_at_end_processed_p if we're currently reading from
17957 a display string.
17958
17959 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17960
17961 * xdisp.c (get_overlay_strings_1): Fix typo.
17962
17963 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
17964
17965 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17966
17967 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17968
17969 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17970
17971 * xdisp.c (display_mode_element): Cancel the previous change.
17972 (decode_mode_spec): Likewise.
17973 (handle_auto_composed_prop): Don't make composition if it->string
17974 is a string.
17975
17976 2008-02-27 Kim F. Storm <storm@cua.dk>
17977
17978 * lisp.h (GLYPH): Change type from int to struct with separate char
17979 and face_id members.
17980 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17981 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17982 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17983 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17984 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17985 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17986 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17987 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17988 handle new Lisp glyph code encoding, either an integer or a cons.
17989
17990 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17991 (GLYPH_ALIAS): Delete.
17992 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17993 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17994 (GLYPH_FROM_CHAR): Replace macro by ...
17995 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17996
17997 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17998 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17999 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18000 (GLYPH_INVALID_P): New macro.
18001 (spec_glyph_lookup_face): Update prototype.
18002
18003 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18004 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18005 new glyph code encoding.
18006 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18007 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18008
18009 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18010 Adapt to new glyph type and new glyph code encoding.
18011
18012 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18013
18014 * indent.c (current_column, current_column_1, Fmove_to_column)
18015 (compute_motion): Adapt to new glyph code encoding.
18016
18017 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18018
18019 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
18020
18021 * process.c (wait_reading_process_output): Check for window
18022 changes caused by timers.
18023 Suggested by Johan Bockgård.
18024
18025 2008-02-27 Glenn Morris <rgm@gnu.org>
18026
18027 * emacs.c (USAGE1): Add `--disable-font-backend'.
18028
18029 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18030
18031 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18032 is made to the buffer.
18033
18034 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18035
18036 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18037 (face_at_string_position):
18038 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18039 (face_at_string_position):
18040 * xdisp.c (display_string, next_overlay_change):
18041 * buffer.h (overlays_at):
18042 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18043 Update callers.
18044
18045 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
18046
18047 * editfns.c (Fformat): Doc fix.
18048
18049 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
18050
18051 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18052 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18053 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18054
18055 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18056
18057 * buffer.c (Fbuffer_swap_text): New function.
18058 (syms_of_buffer): Defsubr it.
18059
18060 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
18061
18062 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18063
18064 2008-02-25 Jason Rumney <jasonr@gnu.org>
18065
18066 * w32font.c (w32font_draw): Draw one character at a time when padding.
18067
18068 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18069
18070 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18071 Handle a nil arg. Use run_window_configuration_change_hook.
18072 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18073 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18074 Use run_window_configuration_change_hook.
18075
18076 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18077
18078 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18079 1-pixel width.
18080
18081 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18082
18083 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18084 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18085 if the glyph in the font is zero pixel with.
18086
18087 * dispextern.h (struct glyph_string): New member padding_p.
18088
18089 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18090
18091 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18092
18093 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18094
18095 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18096
18097 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18098
18099 2008-02-25 Jason Rumney <jasonr@gnu.org>
18100
18101 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18102
18103 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18104
18105 Allow fine-grained image-cache flushing.
18106 * dispextern.h (struct image): Add `dependencies' field.
18107 (clear_image_caches): Change arg to Lisp_Object.
18108 * image.c (make_image): Initialize `dependencies' field.
18109 (clear_image_cache): Change arg to allow fine-grained flushing.
18110 Perform the flush even if image-cache-eviction-delay is nil.
18111 (clear_image_caches): Change arg to Lisp_Object.
18112 (Fclear_image_cache): Expand meaning of the argument.
18113 (mark_image): Mark `dependencies' field.
18114 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18115 (lface_hash): Use XHASH rather than XFASTINT.
18116 (face_at_buffer_position): Fix int -> EMACS_INT position.
18117 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18118 (select_frame_for_redisplay): Remove code duplication.
18119 (redisplay_internal): Adapt arg to call to clear_image_caches.
18120
18121 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18122
18123 * s/vms4-0.h:
18124 * s/vms4-2.h:
18125 * s/vms4-4.h:
18126 * s/vms5-5.h: Remove, unused.
18127
18128 * s/irix5-2.h:
18129 * s/irix6-0.h:
18130 * s/riscos5.h:
18131 * s/mach-bsd4-3.h:
18132 * m/mips4.h: Remove files for obsolete systems.
18133
18134 * Makefile.in:
18135 * filelock.c:
18136 * unexmips.c:
18137 * m/hp9000s300.h:
18138 * m/iris4d.h:
18139 * s/aix3-1.h:
18140 * s/hpux.h:
18141 * s/msdos.h:
18142 * s/usg5-0.h:
18143 * s/usg5-2-2.h:
18144 * s/usg5-2.h:
18145 * s/usg5-3.h: Remove references to obsolete variables.
18146
18147 * s/irix5-0.h: Remove, move all the contents ...
18148 * s/irix6-5.h: ... here. Simplify.
18149 * config.in: Regenerate.
18150
18151 2008-02-24 Jason Rumney <jasonr@gnu.org>
18152
18153 * w32term.c (x_draw_glyph_string_background): Clear the background
18154 manually when cleartype is in use.
18155 (x_draw_glyph_string_foreground): Draw text transparently when
18156 cleartype is in use.
18157
18158 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18159 a font into it unless we have to.
18160
18161 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18162
18163 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18164 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
18165
18166 2008-02-18 Jason Rumney <jasonr@gnu.org>
18167
18168 * w32fns.c (Fw32_shell_execute): Encode parameters.
18169
18170 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18171
18172 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18173
18174 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
18175
18176 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18177
18178 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18179
18180 * xterm.c (x_set_offset): Don't change the gravity if
18181 CHANGE_GRAVITY is -1.
18182
18183 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
18184
18185 * fileio.c (auto_save_error_occurred): New var.
18186 (auto_save_error): Set it.
18187 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18188 error occurred.
18189
18190 2008-02-23 Eli Zaretskii <eliz@gnu.org>
18191
18192 * w32.c (globals_of_w32): Add initializations for
18193 g_b_init_get_sid_sub_authority and
18194 g_b_init_get_sid_sub_authority_count.
18195
18196 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18197
18198 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18199 (font_parse_xlfd): Use them for sanity check.
18200 (Finternal_set_font_style_table): Make sure the table is bijective.
18201
18202 Consolidate the image_cache to the terminal struct.
18203 * termhooks.h (P_): Remove redundant def.
18204 (struct terminal): New field `image_cache'.
18205 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18206 of FRAME_X_IMAGE_CACHE.
18207 * xterm.h (struct x_display_info): Remove image_cache field.
18208 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18209 * w32term.h (struct w32_display_info): Remove image_cache field.
18210 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18211 * macterm.h (struct mac_display_info): Remove image_cache field.
18212 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18213 * xterm.c (x_term_init):
18214 * w32term.c (w32_term_init):
18215 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18216 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18217 Remove declarations.
18218 (clear_image_caches, mark_image_cache): New declarations.
18219 * xfaces.c (clear_face_cache):
18220 * xdisp.c (redisplay_internal): Use clear_image_caches.
18221 * image.c (clear_image_cache): Don't check that a frame is on
18222 a window-system before checking if it shares the same cache.
18223 (clear_image_caches): New function.
18224 (Fclear_image_cache): Use it.
18225 (mark_image): Move from allo.c.
18226 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18227 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18228 (mark_object): Don't call mark_image_cache for frames.
18229 (mark_terminals): Call mark_image_cache.
18230
18231 * lisp.h (Fdelete_terminal): Declare.
18232
18233 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18234 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18235 wrong_type_argument.
18236
18237 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18238
18239 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18240 malayalam.el, and tamil.el. Add sinhala.el.
18241
18242 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18243
18244 * xterm.c (x_connection_closed): Consolidate identical tests.
18245 (x_delete_terminal): Don't crash if called via x_connection_closed.
18246
18247 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18248
18249 * xdisp.c (decode_mode_spec): New arg string.
18250 (display_mode_element): Adjust for the above change.
18251
18252 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18253
18254 * callint.c (Fcall_interactively): Use AREF.
18255
18256 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18257
18258 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18259
18260 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18261
18262 * xfns.c (Fx_show_tip): Set string to " " if empty.
18263
18264 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18265
18266 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18267 with Qt.
18268
18269 2008-02-17 Kenichi Handa <handa@m17n.org>
18270
18271 * ftfont.c (ftfont_shape): Return Lispy number.
18272
18273 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18274 for GCs.
18275 (Finternal_set_font_selection_order): Call font_update_sort_order
18276 only when enable_font_backend is set.
18277 (realize_x_face): Set face->font_info to that of default face only
18278 when enable_font_backend is set.
18279
18280 * xdisp.c (handle_composition_prop): Set it->c to the fist
18281 character of the composed region.
18282 (fill_composite_glyph_string): Set base_face->font_info to
18283 s->font_info. Get a face for ascii from base_face->ascii_face.
18284 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18285 with a face already decided.
18286 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18287 non-negative.
18288 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18289 call font_prepare_composition unconditionally.
18290
18291 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18292
18293 * xterm.h (struct x_display_info): New member font.
18294
18295 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18296 (x_set_mouse_face_gc, x_new_font): Likewise.
18297 (x_term_init): Setup display_info->font.
18298 (x_delete_terminal): Free display_info->font.
18299
18300 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18301
18302 * ftxfont.c (ftxfont_default_fid): Delete it.
18303 (ftxfont_open): Set xfont->fid to 0.
18304 (ftxfont_end_for_frame): Clear data specific to the frame and the
18305 font-driver.
18306
18307 * xftfont.c (xftfont_default_fid): Delete it.
18308 (xftfont_open): Set xfont->fid to 0.
18309
18310 * fontset.c (FONTSET_OBJLIST): New macro.
18311 (fontset_find_font): Update font-object list of the fontset.
18312 (free_realized_fontset): New function.
18313 (free_face_fontset): Call free_realized_fontset.
18314 (Ffont_info): Call font_close_object only when enable_font_backend
18315 is set.
18316
18317 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18318 [HAVE_NTGUI]: Include w32term.h.
18319 [MAC_OS]: Include macterm.ch.
18320 (font_otf_ValueRecord): Use make_number.
18321 (font_finish_cache): Fix handling of reference count.
18322 (font_clear_cache): Update num_fonts.
18323 (font_open_entity): Update smallest_char_width and
18324 smallest_font_height of the frame.
18325 (font_close_object): Update num_fonts.
18326 (Fclear_font_cache): Fix finding the target cache data.
18327
18328 2008-02-16 Glenn Morris <rgm@gnu.org>
18329
18330 * fontset.c (Finternal_char_font): Fix compilation warning.
18331
18332 2008-02-16 Eli Zaretskii <eliz@gnu.org>
18333
18334 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18335 instead of char arrays. Enlarge the size of array passed to
18336 get_token_information.
18337
18338 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18339 warnings.
18340
18341 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18342
18343 * .gdbinit: Don't set `args', it breaks gdb --args.
18344
18345 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18346
18347 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18348 within a narrowed buffer.
18349
18350 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18351
18352 * coding.c (decode_coding_object, encode_coding_object):
18353 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18354
18355 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18356
18357 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18358 hardcoding 1.
18359 (detect_coding_system):
18360 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18361 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18362 * insdel.c (insert_from_gap):
18363 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18364 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18365 (string_to_multibyte):
18366 * character.c (chars_in_text, multibyte_chars_in_text):
18367 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18368
18369 * character.h (FETCH_STRING_CHAR_ADVANCE)
18370 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18371 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18372 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18373
18374 * casefiddle.c (casify_region): Only call after-change and composition
18375 functions on the part of the region that was changed.
18376
18377 * keyboard.c (read_avail_input):
18378 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18379
18380 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18381
18382 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18383 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18384
18385 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
18386
18387 * w32menu.c (push_submenu_start, push_submenu_end)
18388 (push_left_right_boundary, push_menu_pane, push_menu_item):
18389 * keyboard.c (read_key_sequence): Don't pass args with side effects
18390 to AREF, it fails when compiling with -DENABLE_CHECKING.
18391
18392 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18393
18394 * Makefile.in (${lispsource}international/charprop.el):
18395 Delete this target.
18396
18397 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18398 emacs-unicode-2.
18399
18400 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18401
18402 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18403
18404 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18405
18406 * frame.c (Qnoelisp): New symbol.
18407 (syms_of_frame): Initialize it.
18408 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18409 harmless Elisp code, from a strong `force' from x_connection_closed.
18410 * frame.h (Qnoelisp): Declare.
18411 * xterm.c (x_connection_closed): Pass `noelisp'.
18412
18413 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18414 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18415 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18416 rather than `int' for the type of `type'.
18417
18418 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18419
18420 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18421
18422 * Makefile.in (GNUC): Remove support for gcc-1.x.
18423
18424 2008-02-10 Richard Stallman <rms@gnu.org>
18425
18426 * lisp.h (ASET): Use AREF, not ASLOT.
18427
18428 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18429
18430 * lisp.h (ASET): Check bounds.
18431
18432 2008-02-10 Glenn Morris <rgm@gnu.org>
18433
18434 * buffer.c (mode-name): Doc fix.
18435
18436 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18437
18438 * Makefile.in:
18439 * emacs.c:
18440 * gmalloc.c:
18441 * keyboard.c:
18442 * lisp.h:
18443 * m/ibm370aix.h:
18444 * process.c:
18445 * regex.c:
18446 * s/hpux.h:
18447 * sysdep.c:
18448 * sysselect.h:
18449 * systty.h:
18450 * unexec.c:
18451 * w32term.c:
18452 * xsmfns.c:
18453 * xterm.c: Remove code that deals with obsolete variables.
18454
18455 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18456
18457 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18458 nothing else needs it anymore.
18459
18460 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18461
18462 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18463 instead of unibyte_char_to_multibyte.
18464
18465 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18466
18467 * s/gnu-linux.h: Remove commented out code.
18468
18469 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18470
18471 * Makefile.in: Update what RMS says about using autoconf.
18472 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18473 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18474 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18475 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18476
18477 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18478
18479 * keymap.c (Fkey_description): Move side effect outside of macro call.
18480
18481 * xfaces.c (Finternal_make_lisp_face):
18482 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18483
18484 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18485 (syms_of_fontset): Use ASET.
18486
18487 * fns.c (concat): Move side effect outside of macro call.
18488 (hash_clear): Use ASET.
18489
18490 2008-02-08 Richard Stallman <rms@gnu.org>
18491
18492 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18493 If FORCE, and frame has a surrogate minibuffer for another frame,
18494 delete the other frame first.
18495
18496 2008-02-07 Timo Savola <timo.savola@iki.fi>
18497
18498 * xterm.c (x_detect_focus_change): Handle embed client message.
18499 (handle_one_xevent): Ditto.
18500 (handle_one_xevent): If embedded and we get a button press/release,
18501 request focus.
18502 (xembed_set_info, xembed_send_message): New functions.
18503 (x_make_frame_visible): Call xembed_set_info if embedded.
18504 (x_make_frame_invisible): Call xembed_set_info if embedded.
18505 (x_term_init): Initialize Xatom_XEMBED.
18506 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18507 (x_iconify_frame): Ditto.
18508
18509 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18510 (enum xembed_info, enum xembed_message, enum xembed_focus)
18511 (enum xembed_modifier, enum xembed_accelerator): New.
18512 (xembed_set_info, xembed_send_message): Declare.
18513 (FRAME_X_EMBEDDED_P): New.
18514
18515 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18516 gtk_plug_new.
18517
18518 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18519 window ID of a frame.
18520 (x_window): Reparent frame if embedded.
18521 (Fx_create_frame): Don't set border width if embedded.
18522
18523 * emacs.c (USAGE3): Add --parent-id.
18524 (standard_args): Ditto.
18525
18526 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18527
18528 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18529
18530 2008-02-07 Jim Meyering <meyering@redhat.com>
18531
18532 Use "do...while (0)", not "if (1)...else" in macro definitions.
18533 The latter provokes a warning from gcc about the empty else, when
18534 followed by ";". Also, without that trailing semicolon, it would
18535 silently swallow up any following statement.
18536 * syntax.h (SETUP_SYNTAX_TABLE)
18537 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18538 * buffer.h (DECODE_POSITION): Likewise.
18539 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18540 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18541 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18542 (FETCH_CHAR_ADVANCE): Likewise.
18543 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18544
18545 2008-02-07 Jim Meyering <meyering@redhat.com>
18546
18547 * lread.c [lint]: Don't include <sys/inode.h>.
18548
18549 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18550
18551 * xselect.c (x_handle_dnd_message):
18552 * xmenu.c (digest_single_submenu, xmenu_show):
18553 * xdisp.c (with_echo_area_buffer_unwind_data)
18554 (format_mode_line_unwind_data, unwind_format_mode_line)
18555 (display_menu_bar):
18556 * eval.c (Ffetch_bytecode):
18557 * doc.c (store_function_docstring):
18558 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18559 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18560 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18561
18562 2008-02-07 Kenichi Handa <handa@m17n.org>
18563
18564 * ftxfont.c (ftxfont_open): Don't set
18565 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18566
18567 * ftfont.c (ftfont_open): Fix previous change.
18568
18569 2008-02-06 Jason Rumney <jasonr@gnu.org>
18570
18571 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18572 Use cached metrics for ASCII characters.
18573 (w32font_open_internal): Don't set font's owning_frame.
18574 Cache metrics for ASCII characters.
18575
18576 * w32font.h (struct w32font_info): Add ascii_metrics.
18577 Remove owning_frame.
18578
18579 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18580
18581 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18582 to negative value.
18583
18584 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18585
18586 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18587
18588 * charset.c (syms_of_charset): Set QCtest and Qeq.
18589
18590 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18591
18592 * process.c (Fstart_process):
18593 * callproc.c (Fcall_process): Handle the case where
18594 Funhandled_file_name_directory returns nil.
18595
18596 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18597 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18598 * font.c (check_gstring): Use them and AREF to access the vector before
18599 we know it's really a gstring.
18600 (Ffont_shape_text): Fix typo.
18601 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
18602
18603 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18604 Declare.
18605
18606 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18607
18608 2008-02-05 Jason Rumney <jasonr@gnu.org>
18609
18610 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18611 Set smallest_font_height and smallest_char_width in display info.
18612
18613 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18614
18615 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18616
18617 2008-02-05 Miles Bader <miles@gnu.org>
18618
18619 * xfaces.c (get_lface_attributes, merge_named_face)
18620 (lookup_named_face, lookup_derived_face, realize_named_face):
18621 Revert 2008-02-01 change by cyd@stupidchicken.com.
18622
18623 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18624
18625 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18626 fallback fonts.
18627 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18628
18629 2008-02-04 Jason Rumney <jasonr@gnu.org>
18630
18631 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18632 set full_name.
18633 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18634
18635 2008-02-03 Jason Rumney <jasonr@gnu.org>
18636
18637 * makefile.w32-in (OBJ1): Include font.o here.
18638 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18639
18640 2008-02-02 Jason Rumney <jasonr@gnu.org>
18641
18642 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18643
18644 2008-02-01 Jason Rumney <jasonr@gnu.org>
18645
18646 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18647
18648 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18649
18650 2008-02-01 Andreas Schwab <schwab@suse.de>
18651
18652 * Makefile.in (shortlisp, lisp): Update for rename of
18653 ../lisp/language/myanmar.el.
18654
18655 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
18656
18657 * xfaces.c (get_lface_attributes): Delete function.
18658 (merge_named_face, lookup_named_face, lookup_derived_face)
18659 (realize_named_face): Call lface_from_face_name directly, and use
18660 the fact that merge_face_vectors does not alter its FROM argument.
18661
18662 2008-02-01 Jason Rumney <jasonr@gnu.org>
18663
18664 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18665 input in the default locale. Handle non-Unicode multibyte input.
18666
18667 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18668
18669 * fontset.c (reorder_font_vector): Exclude nil elements from the
18670 font group. Don't try multiple fonts.
18671 (fontset_font): Adjust for the above change.
18672 (Finternal_char_font): Return nil if the found font doesn't
18673 contain the character ch.
18674
18675 * Makefile.in (lisp, shortlisp): Add cham.el.
18676
18677 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18678
18679 * font.h (FONTP): Make it return 1 also for a font-object.
18680
18681 * .gdbinit (xfontset): New function.
18682
18683 * font.c (font_find_for_lface): Check if the character C is
18684 supported or not only for the first font.
18685
18686 * fontset.c (reorder_font_vector): Fix typo.
18687 (fontset_find_font): Don't add a font-spec specifying a script.
18688 Use 0 (not Qt) for the indication of empty font-group. Change the
18689 format of RFONT-DEF. Return Qt if no font in the font-group
18690 support the character.
18691 (fontset_font): Adjust for the above change. If no font was
18692 found the character, remember that.
18693 (face_for_char): Adjust for the change of RFONT-DEF.
18694 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18695 no font for the target.
18696 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18697
18698 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18699
18700 * font.c (font_load_for_face): Handle the case that the font in
18701 face->lface is a string.
18702
18703 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18704
18705 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18706
18707 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18708
18709 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18710 Fix previous change. If the frame is not on a window system,
18711 signal an error.
18712
18713 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18714
18715 * coding.c (decode_coding_object, encode_coding_object): Adjust
18716 marker positions after conversion.
18717
18718 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18719
18720 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18721
18722 * font.c (font_find_for_lface): Fix the handling of the return
18723 value of font_has_char.
18724 (Ffont_shape_text): Fix previous change.
18725
18726 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18727 (fontset_ref_and_range): Delete it.
18728 (fontset_find_font): Call char_table_ref_and_range instead of
18729 FONTSET_REF_AND_RANGE.
18730 (make_fontset): Don't setup font groups of Latin here.
18731 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18732 (new_fontset_from_font): Make the specified font the default for
18733 all Latin characters.
18734
18735 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18736
18737 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18738 is on a window system before accessing the fontset of the frame.
18739
18740 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18741
18742 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18743
18744 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18745 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18746
18747 * font.c (Ffont_shape_text): If the font driver doesn't have a
18748 shaper function, make zero-width glyphs to have at least one-pixel
18749 width. Fix setting of `to' field of glyphs.
18750
18751 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18752
18753 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18754 glyphs.
18755
18756 * font.h (struct font_driver): Improve docstring of member `shape'.
18757
18758 2008-02-01 Kenichi Handa <handa@m17n.org>
18759
18760 * composite.c (syms_of_composite): Fix docstring of
18761 auto-composition-function.
18762
18763 * font.h (LGLYPH_SIZE): New macro.
18764
18765 * font.c (Ffont_fill_gstring): Stop filling when a character not
18766 supported by the font is found.
18767 (Ffont_shape_text): When a shape callback function returns nil,
18768 try at most two more times with larger gstring.
18769 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18770
18771 * xdisp.c (handle_auto_composed_prop): Change the argument to
18772 auto-composition-function.
18773
18774 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18775 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18776 Lispy glyph and store it in the lgstring.
18777
18778 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18779
18780 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18781
18782 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18783
18784 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18785
18786 * fontset.c (Vfont_encoding_charset_alist): New variable.
18787 (syms_of_fontset): DEFVAR it.
18788 (reorder_font_vector, fontset_find_font): Optimize for the case of
18789 no need of reordering.
18790 (face_for_char): Map the charset property by
18791 Vfont_encoding_charset_alist.
18792
18793 2008-02-01 Jason Rumney <jasonr@gnu.org>
18794
18795 * w32font.c (logfonts_match): Don't check adstyle here.
18796 (font_matches_spec): Check here against physical font instead.
18797 (add_font_entity_to_list): Avoid some substitutions.
18798
18799 * font.c (font_parse_fcname): Default weight and slant to normal.
18800 (font_score): Prefer normal fonts if weight or slant unspecified.
18801 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18802 match freetype scores.
18803
18804 2008-02-01 Jason Rumney <jasonr@gnu.org>
18805
18806 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18807 font, as it may have been deleted.
18808 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18809 most common hyphenless variation.
18810 (logfonts_match): Check generic family.
18811 (font_matches_spec): Don't check generic family here.
18812 (fill_in_logfont): Set generic family based on adstyle.
18813
18814 * w32font.h (w32font_get_cache): Update declaration.
18815
18816 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18817
18818 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18819
18820 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18821 If none of the new drivers are available, call font_update_drivers
18822 with the old drivers.
18823
18824 * w32font.c (w32font_get_cache): Adjust the argument type.
18825
18826 * xfont.c (xfont_get_cache): Adjust the argument type.
18827
18828 * font.h (struct font_driver): Change argument type of get_cache.
18829
18830 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18831
18832 * font.c (Ffont_get): Fix arguments to Fassoc.
18833 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18834 (font_clear_cache): New function.
18835 (font_list_entities, font_matching_entity): Use font_get_cache.
18836 (font_update_drivers): Call font_clear_cache when finishing a driver.
18837
18838 * fontset.c (fontset_find_font): Fix previous change.
18839
18840 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18841
18842 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18843 dpyinfo->font_table.
18844 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18845 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18846
18847 * font.c (font_at): Handle the case that the arg C is negative.
18848 Handle the unibyte case.
18849 (Ffont_at): Call font_at with the arg C -1.
18850
18851 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18852 the position here, and call font_at with the arg C -1.
18853 Don't check the range of the existing composition at the point.
18854
18855 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18856
18857 * fontset.c (fontset_add): New args charset_id and family.
18858 Change caller.
18859 (load_font_get_repertory, fontset_find_font): Assume that
18860 font_spec is always a font-spec object.
18861 (Fset_fontset_font): Always store a font-spec object in a fontset.
18862
18863 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18864 instead of get_property_and_range.
18865
18866 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18867
18868 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18869 (xftfont_open): Don't keep locking face.
18870 (xftfont_close): Don't unlock face.
18871 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18872
18873 * fontset.c (fontset_find_font): Don't prefer a font of
18874 supplementary charset.
18875
18876 2008-02-01 Kenichi Handa <handa@m17n.org>
18877
18878 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18879 script, langsys_tag to langsys, new member script.
18880 (OTF_TAG_STR): Terminate by '\0'.
18881 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
18882 listing to the script specified in that property. Fix arg to
18883 OTF_check_features.
18884
18885 2008-02-01 Jason Rumney <jasonr@gnu.org>
18886
18887 * w32font.h: New file.
18888
18889 * w32font.c: Include it.
18890 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18891 (w32font_open): Set owning_frame.
18892 (w32font_text_extents): Use owning_frame.
18893 (struct font_callback_data): Add opentype_only field.
18894 (add_font_entity_to_list): Use it to filter fonts.
18895 Don't check against full name.
18896 (w32font_list_internal): New function.
18897 (w32font_list): Use it.
18898 (w32font_match_internal): New function.
18899 (w32font_match): Use it.
18900 (w32font_open_internal): New function.
18901 (w32font_open): Use it.
18902 (w32font_get_cache, w32font_close, w32font_has_char)
18903 (w32font_encode_char, w32font_text_extents, w32font_draw):
18904 Make non-static.
18905
18906 * makefile.w32-in (w32font.o): Depend on w32font.h.
18907
18908 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18909
18910 * charset.c (Fdefine_charset_internal): Record a supplementary
18911 charset at the tail of Vcharset_order_list.
18912
18913 * font.c (Ffont_shape_text): Fix the return value.
18914
18915 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18916
18917 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18918
18919 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18920
18921 * ftfont.c (struct OpenTypeSpec): New struct.
18922 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18923 (ftfont_get_open_type_spec): New function.
18924 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18925
18926 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18927
18928 2008-02-01 Jason Rumney <jasonr@gnu.org>
18929
18930 * w32font.c (add_font_entity_to_list): Compare only the beginning
18931 of full name.
18932
18933 2008-02-01 Kenichi Handa <handa@m17n.org>
18934
18935 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18936 Never return HANDLED_RECOMPUTE_PROPS.
18937
18938 2008-02-01 Kenichi Handa <handa@m17n.org>
18939
18940 * font.c (font_gstring_produce): Delete it.
18941
18942 * composite.h (COMPOSITION_METHOD):
18943 Handle COMPOSITION_WITH_GLYPH_STRING.
18944
18945 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18946
18947 * xfont.c (Qx): Delete.
18948 (syms_of_xfont): Don't initialize Qx.
18949
18950 * composite.h (enum composition_method):
18951 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18952
18953 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18954
18955 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18956 (choose_face_font): Accept new form of font-spec.
18957
18958 * frame.h (font_driver_list): Declare it unconditionally.
18959 (struct frame): Define members font_driver_list and font_data_list
18960 unconditionally.
18961
18962 * fontset.c: Include "font.h" unconditionally.
18963 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18964 (Fset_fontset_font): Accept a font-spec object.
18965
18966 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18967 PIXEL_SIZE part a wild card.
18968
18969 * dispextern.h (struct glyph_string): Define members clip and
18970 num_clips unconditionally.
18971 (struct face): Define members font_info and extra unconditionally.
18972
18973 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18974 ftfont_info only when HAVE_LIBOTF is defined.
18975
18976 2008-02-01 Andreas Schwab <schwab@suse.de>
18977
18978 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18979 and end.
18980
18981 2008-02-01 Jason Rumney <jasonr@gnu.org>
18982
18983 * w32font.c (w32font_driver): Add new fields.
18984
18985 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18986
18987 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18988 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18989 (LIBES): Add @M17N_FLT_CFLAGS@.
18990
18991 * composite.c (compose_text): Don't treat the new style
18992 composition specially.
18993
18994 * emacs.c (main): Call syms_of_font unconditionally.
18995
18996 * font.h (FONT_ENTITY_NOT_LOADABLE)
18997 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18998 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18999 (struct font_driver): New member shape.
19000 (font_registry_charsets): Extern it.
19001 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19002 (font_otf_capability, font_drive_otf): Delete their externs.
19003
19004 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19005 (font_charset_alist, font_registry_charsets): Move from xfont.c
19006 and rename.
19007 (font_prop_validate_otf): New function.
19008 (font_property_table): Register it for QCotf.
19009 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19010 (font_drive_otf): Delete.
19011 (font_prepare_composition): New arg F. Adjust for the change of
19012 lispy gstring.
19013 (font_find_for_lface): New arg C.
19014 (font_load_for_face): Adjust for the change of font_find_for_lface.
19015 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19016 lispy gstring.
19017 (Ffont_shape_text): New function.
19018 (Fopen_font): If the font size is not given, use 12-pixel.
19019 (Ffont_at): New arg STRING.
19020 (syms_of_font): Initalize font_charset_alist.
19021 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19022 conditionally.
19023
19024 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19025 fonts of the same font-spec. Change the format of RFONT-DEF.
19026 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19027 Adjust for the change of RFONT-DEF.
19028 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19029
19030 * ftfont.h: New file.
19031
19032 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19033 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19034 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19035 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19036 font_otf_capability and font_drive_otf, set ftfont_shape.
19037 (ftfont_list): Adjust for the change of :otf property value.
19038 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19039 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19040 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19041 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19042 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19043 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19044
19045 * w32term.c (x_draw_composite_glyph_string_foreground):
19046 Adjust for the change of lispy gstring.
19047
19048 * xdisp.c (handle_composition_prop): Adjust for the change of
19049 lispy gstring. Call a function for auto-composition with the
19050 third arg it->window.
19051 (fill_composite_glyph_string): Adjust for the change of lispy string.
19052 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19053
19054 * xfaces.c (set_font_frame_param): Adjust for the change of
19055 font_find_for_lface.
19056
19057 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19058 (xfont_registry_charsets): Likewise. Change caller.
19059 (syms_of_xfont): Don't handle x_font_charset_alist.
19060
19061 * xftfont.c: Include "ftfont.h".
19062 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19063 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19064 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19065 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19066 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19067 Set xftfont_driver.shape to xftfont_shape.
19068
19069 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19070 the change of lispy gstring.
19071
19072 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19073
19074 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19075
19076 2008-02-01 Jason Rumney <jasonr@gnu.org>
19077
19078 * w32font.c (w32font_draw): Fill background manually.
19079
19080 2008-02-01 Jason Rumney <jasonr@gnu.org>
19081
19082 * font.c (Qfontp): Remove unused symbol.
19083 (QCantialias): New symbol.
19084 (syms_of_font): Define it.
19085 (font_property_table): Set a validator for QCantialias.
19086
19087 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19088 Define if not already.
19089 (QCfamily): Share with xfaces.c.
19090 (Qstandard, Qsubpixel, Qnatural): New symbols.
19091 (syms_of_w32font): Define them. Don't define QCfamily here.
19092 (w32_antialias_type, lispy_antialias_type): New functions.
19093 (w32_enumfont_pattern_entity): New arg requested_font.
19094 Set antialias parameter if non-default was requested.
19095 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19096
19097 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19098
19099 * lread.c (read1): Undo the previous change.
19100
19101 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19102
19103 * frame.c (Fdelete_frame): Call font_update_drivers only when
19104 USE_FONT_BACKEND is defined.
19105
19106 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19107
19108 * font.h (struct font_bitmap): New member bits_per_pixel.
19109 (struct font_driver): New members start_for_frame and end_for_frame.
19110 (struct font_data_list): New struct.
19111 (font_put_frame_data, font_get_frame_data): Extern them.
19112
19113 * frame.h (struct frame): New member font_data_list.
19114
19115 * font.c (font_update_drivers): Call driver->start_for_frame and
19116 driver->end_for_frame at proper timings.
19117 (font_put_frame_data, font_get_frame_data): New functions.
19118 (Ffont_spec): Add usage in the docstring.
19119
19120 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19121 (Fdelete_frame): Call font_update_drivers.
19122
19123 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19124 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19125 (xftfont_get_xft_draw): New function.
19126 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19127 (xftfont_end_for_frame): New function.
19128 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19129
19130 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19131 Change argument. Cache GCs in the per-frame data.
19132 (struct ftxfont_frame_data): New struct.
19133 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19134 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19135 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19136 (ftxfont_end_for_frame): New function.
19137 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19138
19139 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19140
19141 2008-02-01 Kenichi Handa <handa@m17n.org>
19142
19143 * xselect.c (Vselection_coding_system)
19144 (Vnext_selection_coding_system): Delete them.
19145 (syms_of_xselect): Don't declare selection-coding-system and
19146 next-selection-coding-system. They are declared in select.el.
19147
19148 2008-02-01 Jason Rumney <jasonr@gnu.org>
19149
19150 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19151
19152 * w32fns.c: Include imm.h.
19153 (get_composition_string_fn, get_ime_context_fn): New optional
19154 system functions.
19155 (globals_of_w32fns): Load them from imm32.dll.
19156 (ignore_ime_char): New flag.
19157 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19158 WM_IME_ENDCOMPOSITION messages.
19159
19160 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19161 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19162
19163 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19164
19165 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19166 (READCHAR_REPORT_MULTIBYTE): New macro.
19167 (readchar): New 2nd arg MULTIBYTE.
19168 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19169 Make symbol's name multibyte according to the multibyteness of the
19170 source.
19171
19172 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19173
19174 * xfaces.c (face_for_overlay_string): Call lookup_face with
19175 correct arguments (fix of synching with the trunk).
19176
19177 2008-02-01 Kenichi Handa <handa@m17n.org>
19178
19179 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19180 (font_prop_validate_non_neg, font_prop_validate_spacing):
19181 Delete argument prop_index.
19182 (font_property_table): Change arguments to validater. Change Callers.
19183 (font_lispy_object): Delete.
19184 (font_at): Use font_find_object instead fo font_lispy_object.
19185
19186 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19187
19188 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19189 and file names.
19190
19191 2008-02-01 Jason Rumney <jasonr@gnu.org>
19192
19193 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19194 (font_matches_spec): Remove debug output.
19195 (add_font_entity_to_list): Avoid using substituted fonts.
19196
19197 2008-02-01 Jason Rumney <jasonr@gnu.org>
19198
19199 * doc.c (Fsnarf_documentation):
19200 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19201
19202 2008-02-01 Miles Bader <miles@gnu.org>
19203
19204 * dispextern.h (struct glyph_row): Only define "clip" field if
19205 HAVE_WINDOW_SYSTEM is defined.
19206
19207 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19208
19209 Fix up multi-tty merge.
19210
19211 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19212 and indentation.
19213
19214 * xfaces.c (free_realized_face, clear_face_gcs):
19215 Include font_done_for_face in the input_blocked section, just in case.
19216
19217 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19218 (get_char_face_and_encoding): Undo last change and remove the *other*
19219 duplicate definition (i.e. keep the one that's better scoped and that
19220 includes code for the font-backend).
19221
19222 * terminal.c (create_terminal): Default keyboard_coding to
19223 `no-conversion' and terminal_coding to `undecided'.
19224
19225 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19226
19227 * fontset.c (free_realized_fontsets): Check that the table entry does
19228 contain a fontset before trying to compare it to `base'.
19229
19230 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19231 syms_of_charset, and syms_of_coding earlier because init_window_once
19232 now needs Vcoding_system_hash_table to be setup.
19233
19234 * coding.h (default_buffer_file_coding): Remove.
19235
19236 * coding.c (default_buffer_file_coding): Remove.
19237 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19238 than ->symbol, and use the terminal-local coding system.
19239 (syms_of_coding): Don't setup the coding-systems that are not
19240 terminal-local.
19241 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19242
19243 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19244 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19245
19246 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19247 in chartab.c and were re-added here by mistake.
19248 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19249
19250 * doc.c (Fsnarf_documentation):
19251 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19252 src to etc.
19253
19254 * ChangeLog.10: Add mistakenly removed entry.
19255
19256 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19257
19258 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19259
19260 2008-02-01 Miles Bader <miles@gnu.org>
19261
19262 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19263 Add extra args to FACE_FOR_CHAR.
19264
19265 2008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19268 in sequence.
19269
19270 * chartab.c (map_sub_char_table, map_char_table): If the range
19271 contains just one character, call the function with that character
19272 even if the depth is not 3.
19273
19274 2008-02-01 Jason Rumney <jasonr@gnu.org>
19275
19276 * w32font.c (w32font_text_extents): Calculate metrics for the
19277 whole string.
19278
19279 2008-02-01 Jason Rumney <jasonr@gnu.org>
19280
19281 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19282
19283 2008-02-01 Jason Rumney <jasonr@gnu.org>
19284
19285 * w32term.c (x_set_glyph_string_clipping): Use
19286 get_glyph_string_clip_rects.
19287 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19288 Adjust for the change of struct glyph_string.
19289
19290 * w32font.c (w32font_draw): Do clipping here.
19291
19292 2008-02-01 Kenichi Handa <handa@m17n.org>
19293
19294 * xftfont.c (xftfont_draw): Adjust for the change of struct
19295 glyph_string.
19296
19297 * xterm.c (x_set_glyph_string_clipping): Use
19298 get_glyph_string_clip_rects.
19299 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19300 Adjust for the change of struct glyph_string.
19301
19302 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19303 the resulting clip(s}.
19304 (expose_overlaps): Add arg r. Change callers. Set it to
19305 row->clip temporarily.
19306 (expose_window): Redraw rows overlapping the exposed area.
19307
19308 * dispextern.h (struct glyph_row): New member clip.
19309 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19310 clip_height, new member clip, and num_clips.
19311
19312 2008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * data.c (Fchar_or_string_p): Fix docstring.
19315
19316 2008-02-01 Kenichi Handa <handa@m17n.org>
19317
19318 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19319 create a temporary XftDraw object.
19320
19321 2008-02-01 Kenichi Handa <handa@m17n.org>
19322
19323 * font.c (Ffontp): Fix docstring.
19324
19325 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19326 strong evidence of ISO-2022.
19327
19328 2008-02-01 Kenichi Handa <handa@m17n.org>
19329
19330 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19331 SYNTAX_ENTRY_FOLLOW_PARENT.
19332
19333 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19334
19335 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19336 its type.
19337 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19338 Update to the new type of weak_hash_tables and next_weak.
19339
19340 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19341 a plain C pointer to Lisp_Hash_Table.
19342
19343 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19344 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19345 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19346 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19347 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19348 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19349 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19350 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19351 (GC_EQ): Remove since they've been identical to their non-GC_
19352 alter-egos ever since the markbit was eradicated.
19353
19354 * alloc.c:
19355 * buffer.c:
19356 * buffer.h:
19357 * data.c:
19358 * fileio.c:
19359 * filelock.c:
19360 * fns.c:
19361 * frame.h:
19362 * lisp.h:
19363 * macterm.c:
19364 * print.c:
19365 * process.c:
19366 * w32fns.c:
19367 * w32menu.c:
19368 * w32term.c:
19369 * xfns.c:
19370 * xmenu.c:
19371 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19372
19373 2008-02-01 Kenichi Handa <handa@m17n.org>
19374
19375 * chartab.c (map_sub_char_table): Make it work for the top-level
19376 char-table. Fix handling of parent char-table.
19377 (map_char_table): Adjust for the above change.
19378
19379 2008-02-01 Jason Rumney <jasonr@gnu.org>
19380
19381 * w32font.c (Qgdi): Rename from Qw32.
19382
19383 2008-02-01 Jason Rumney <jasonr@gnu.org>
19384
19385 * w32bdf.c (get_quoted_string): Make function static.
19386
19387 2008-02-01 Kenichi Handa <handa@m17n.org>
19388
19389 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19390 bigger ascent and descent than those of the font, use them as
19391 font's ascent and descent.
19392
19393 2008-02-01 Kenichi Handa <handa@m17n.org>
19394
19395 * Makefile.in (${lispsource}international/charprop.el): Move this
19396 target within "#ifdef HAVE_UNIDATA" and "#endif".
19397
19398 2008-02-01 Kenichi Handa <handa@m17n.org>
19399
19400 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19401 (shortlisp): Add ../lisp/language/tai-viet.el.
19402
19403 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
19404
19405 * Makefile.in (${lispsource}international/charprop.el): Depend on
19406 temacs${EXEEXT}.
19407
19408 2008-02-01 Jason Rumney <jasonr@gnu.org>
19409
19410 * w32font.c (w32font_close): Delete the GDI font object.
19411
19412 * w32menu.c: Include character.h.
19413
19414 * w32proc.c: Likewise.
19415
19416 * w32select.c: Likewise.
19417
19418 * makefile.w32-in (w32proc.o): Depend on character.h.
19419
19420 2008-02-01 Jason Rumney <jasonr@gnu.org>
19421
19422 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19423
19424 * w32menu.c (syms_of_w32menu): Likewise.
19425
19426 * w32proc.c (syms_of_ntproc): Likewise.
19427
19428 * w32select.c (syms_of_w32select): Likewise.
19429
19430 * w32term.c (syms_of_w32term): Likewise.
19431
19432 2008-02-01 Jason Rumney <jasonr@gnu.org>
19433
19434 * w32font.c (w32font_draw): Delete brush after using it.
19435
19436 2008-02-01 Jason Rumney <jasonr@gnu.org>
19437
19438 * w32font.c (w32font_open): Don't set font_idx.
19439 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19440 to font settings.
19441 (w32font_draw): Fill background explicitly.
19442
19443 2008-02-01 Jason Rumney <jasonr@gnu.org>
19444
19445 * w32term.c (w32_initialize): Don't call w32font_initialize.
19446
19447 * w32font.c (w32font_info): Remove subranges.
19448 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19449 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19450 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19451 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19452 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19453 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19454 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19455 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19456 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19457 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19458 New symbols.
19459 (font_callback_data): New struct.
19460 (w32font_list, w32font_match): Use it.
19461 (w32font_open): Don't populate subranges.
19462 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19463 (w32font_encode_char): Always return unicode code-point as-is.
19464 (w32font_text_extents): Supply a transformation matrix to
19465 GetGlyphOutline. Never look up by glyph index. Avoid looping
19466 twice. Use unicode version of GetTexExtentPoint32 instead of
19467 glyph index version.
19468 (set_fonts_frame): Remove.
19469 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19470 set frame parameter. Use backward compatible fake foundries.
19471 Save generic family in extra slot under QCfamily. Make width slot
19472 constant. Save QCspacing value. Save list of scripts instead of
19473 binary subranges.
19474 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19475 (add_font_entity_to_list): Use font_callback_data struct. Filter
19476 unwanted fonts.
19477 (add_one_font_entity_to_list): Use font_callback_data struct.
19478 (w32_registry): Default to iso10646_1.
19479 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19480 string font registries. Don't fill in font name if it is a generic
19481 family name, fill family instead. Use spacing, family and script
19482 extra info to fill pitch, family and charset fields.
19483 (list_all_matching_fonts): Use font_callback_data struct.
19484 (unicode_range_for_char): Remove.
19485 (font_supported_scripts): New function.
19486 (w32font_initialize): Remove.
19487 (syms_of_w32font): Update which symbols are defined.
19488
19489 2008-02-01 Jason Rumney <jasonr@gnu.org>
19490
19491 * font.c (font_pixel_size): Reverse assq_no_quit args.
19492
19493 * w32term.h (FONT_WIDTH): Report max width, not average.
19494 (FONT_MAX_WIDTH): Remove.
19495 (FONT_AVG_WIDTH): New macro.
19496
19497 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19498 redefinition of FONT_WIDTH.
19499
19500 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19501 (w32_cache_char_metrics): Use FONT_WIDTH.
19502
19503 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19504
19505 2008-02-01 Jason Rumney <jasonr@gnu.org>
19506
19507 * w32font.c (w32font_open): Make lfHeight negative.
19508
19509 * w32fns.c (x_default_font_parameter): Use new style font name.
19510 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19511
19512 2008-02-01 Jason Rumney <jasonr@gnu.org>
19513
19514 * w32font.c (QCsubranges): New symbol.
19515 (w32font_open, w32font_has_char): Get subranges from subproperty
19516 of extra.
19517 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19518 (syms_of_w32font): Define :subranges symbol.
19519
19520 * font.c (font_put_extra): Expose externally.
19521
19522 * font.h (font_put_extra): Move declaration from font.c.
19523
19524 * font.c (Ffont_get): Use font driver to determine otf capability.
19525 (adjust_anchor): Check if driver defines anchor_point before using.
19526
19527 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19528 (w32font_draw): Use options.
19529 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19530 Fix detection of truetype fonts.
19531 (registry_to_w32_charset): Handle charsets other than iso8859-1
19532 expressed as lisp symbols.
19533 (w32_registry): Express charset as lisp symbol.
19534 (fill_in_logfont): Reverse pixel and point height logic.
19535 Don't set width here. Set quality to default.
19536
19537 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19538 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19539
19540 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19541 Remove redundant loop and allocation.
19542
19543 * makefile.w32-in (font.o, w32font.o): New objects.
19544 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19545 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19546
19547 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19548 STORE_XCHARB a valid l-value.
19549
19550 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19551 calculations for non-Truetype fonts.
19552 (x_draw_glyph_string): Sync with xterm.c.
19553 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19554 Remove redundant code.
19555 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19556
19557 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19558 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19559
19560 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19561 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19562
19563 * w32font.c: New file for w32 font backend.
19564
19565 2008-02-01 Kenichi Handa <handa@m17n.org>
19566
19567 * term.c: Don't include "buffer.h" twice.
19568
19569 2008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * character.c (Funibyte_string): New function.
19572 (syms_of_character): Defsubr it.
19573
19574 2008-02-01 Jason Rumney <jasonr@gnu.org>
19575
19576 * w32term.c [USE_FONT_BACKEND]:
19577 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19578 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19579 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19580 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19581 (x_free_frame_resources): Sync with xterm.c.
19582
19583 2008-02-01 Andreas Schwab <schwab@suse.de>
19584
19585 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19586 char-table size.
19587
19588 2008-02-01 Kenichi Handa <handa@m17n.org>
19589
19590 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19591
19592 2008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19595 font_otf_gpos, add font_drive_otf.
19596
19597 * fontset.c (fontset_find_font): Pay attention to font size
19598 specified for a font.
19599 (reorder_font_vector): Check contents of font_def.
19600
19601 * font.c (struct otf_list): Delete it.
19602 (otf_list): Make it a lisp variable.
19603 (otf_open): Use lispy otf_list.
19604 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19605 (check_otf_features): New function.
19606 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19607 New functions.
19608 (font_drive_otf): New function merging font_otf_gsub and
19609 font_otf_gpos.
19610 (font_open_for_lface): New arg spec. Change argument order.
19611 (font_load_for_face): Adjust for the change of font_open_for_lface.
19612 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19613 Ffont_otf_gpos.
19614 (syms_of_font): Staticpro otf_list. Delete defsubr of
19615 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19616
19617 * xfaces.c (set_font_frame_param): Adjust for the change of
19618 font_open_for_lface.
19619
19620 * font.h (font_open_for_lface): Adjust prototype.
19621 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19622 member otf_drive.
19623 (font_otf_gsub, font_otf_gpos): Delete externs.
19624 (font_drive_otf): Extern it.
19625
19626 2008-02-01 Kenichi Handa <handa@m17n.org>
19627
19628 * font.c (font_at): If the window W is not on a window system,
19629 return Qnil.
19630
19631 * coding.c (produce_chars, encode_coding): Don't call
19632 insert_from_gap if no characters to produce.
19633
19634 2008-02-01 Kenichi Handa <handa@m17n.org>
19635
19636 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19637 Fclear_face_cache.
19638
19639 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19640
19641 2008-02-01 Miles Bader <miles@gnu.org>
19642
19643 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19644 Parse "--disable-font-backend" option.
19645 (standard_args): Add "--disable-font-backend" option.
19646
19647 2008-02-01 Kenichi Handa <handa@m17n.org>
19648
19649 * fontset.c (fontset_find_font): New function.
19650 (fontset_font): Use fontset_find_font.
19651 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19652 Register the specified font for all Latin characters.
19653 (new_fontset_from_font): Register the specified font for all Latin
19654 characters.
19655 (dump_fontset): For a realized fontset, include the base fontset
19656 name in the returned vector.
19657
19658 2008-02-01 Kenichi Handa <handa@m17n.org>
19659
19660 * character.h (CHAR_STRING): Cast C to unsigned on calling
19661 char_string.
19662
19663 * character.c (char_string): Type of arg C changed to unsigned.
19664 Signal an error if C is an invalid character code.
19665
19666 * editfns.c (general_insert_function, Fchar_to_string):
19667 Use CHARACTERP, not INTEGERP.
19668
19669 2008-02-01 Kenichi Handa <handa@m17n.org>
19670
19671 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19672 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19673
19674 * regex.c (analyse_first): Fix for multibyte characters in "case
19675 charset:" and "case categoryspec:".
19676
19677 2008-02-01 Andreas Schwab <schwab@suse.de>
19678
19679 * Makefile.in (LIBES): Move standard libraries to the end.
19680
19681 2008-02-01 Kenichi Handa <handa@m17n.org>
19682
19683 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19684 nonzero, don't shrink the buffer nextb.
19685
19686 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19687
19688 * coding.c (coding_alloc_by_making_gap): New arg offset.
19689 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19690 offset.
19691 (decode_coding_iso_2022): Update coding->safe_charsets.
19692 (decode_coding_gap): Temporarily set
19693 current_buffer->text->inhibit_shrinking to 1.
19694
19695 2008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19698 indexing into elements of s->cmp and s->char2b.
19699
19700 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
19701
19702 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19703
19704 2008-02-01 Kenichi Handa <handa@m17n.org>
19705
19706 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19707 target_multibyte instead of multibyte.
19708 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19709 (bcmp_translate): Change the argument name from multibyte to
19710 target_multibyte.
19711
19712 2008-02-01 Kenichi Handa <handa@m17n.org>
19713
19714 These changes are to compile a regexp into a pattern that can be
19715 used both for multibyte and unibyte targets.
19716
19717 * Makefile.in (search.o): Depend on charset.h.
19718
19719 * character.c (multibyte_char_to_unibyte_safe): New function.
19720
19721 * search.c: Include "charset.h".
19722 (compile_pattern_1): Delete argument multibyte. Don't set
19723 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19724 (compile_pattern): Don't compare cp->buf.target_multibyte.
19725 Compare cp->buf.charset_unibyte.
19726 (compile_pattern): Set cp->buf.target_multibyte.
19727
19728 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19729
19730 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19731
19732 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19733 multibyte. Change callers.
19734 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19735 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19736 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19737 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19738 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19739 (regex_compile): Make the compiled pattern usable both for
19740 multibyte and unibyte targets.
19741 (analyse_first): Make the fastmap usable both for multibyte and
19742 unibyte targets.
19743 (TRANSLATE_VIA_MULTIBYTE): Delete.
19744 (re_match_2_internal): Pay attention to the case that the
19745 multibyteness of bufp and target may be different.
19746
19747 2008-02-01 Kenichi Handa <handa@m17n.org>
19748
19749 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19750 empty box occupy at least one column width.
19751
19752 2008-02-01 Miles Bader <miles@gnu.org>
19753
19754 * Makefile.in: Remove redundant HAVE_XFT clause.
19755
19756 2008-02-01 Kenichi Handa <handa@m17n.org>
19757
19758 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19759
19760 2008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19763 being nil.
19764
19765 2008-02-01 Kenichi Handa <handa@m17n.org>
19766
19767 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19768
19769 2008-02-01 Kenichi Handa <handa@m17n.org>
19770
19771 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19772
19773 2008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * search.c (simple_search): Fix previous change.
19776
19777 2008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * xftfont.c (ftfont_font_format): Extern declaration.
19780
19781 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19782
19783 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19784 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19785
19786 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19787 (ftfont_font_format): Fix previous change.
19788
19789 * font.h (Ffont_xlfd_name): EXFUN it.
19790
19791 * font.c (font_parse_xlfd): Fix the array size of `f'.
19792 (register_font_driver): Use EQ to compare driver->type.
19793
19794 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19795 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19796 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19797
19798 2008-02-01 Kenichi Handa <handa@m17n.org>
19799
19800 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19801 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19802
19803 2008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * xfont.c (xfont_open): Set font->format.
19806
19807 * xftfont.c (xftfont_open): Set font->format.
19808
19809 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19810 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19811 (ftfont_open): Set font->format.
19812 (ftfont_font_format): New function.
19813
19814 * font.h (struct font): New member format.
19815
19816 * font.c (Qopentype): New variable.
19817 (syms_of_font): Defsym it.
19818 (Fquery_font): Change the format of the last element of the return
19819 value.
19820
19821 2008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19824 last resort.
19825
19826 2008-02-01 Kenichi Handa <handa@m17n.org>
19827
19828 * coding.c (detect_coding_charset): Fix detection of multi-byte
19829 charset.
19830
19831 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19832
19833 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19834
19835 2008-02-01 Kenichi Handa <handa@m17n.org>
19836
19837 * xdisp.c (get_next_display_element): Set it->face_id for the
19838 first component of a composition.
19839 (x_produce_glyphs): Check if the font is changed or not for composition.
19840
19841 2008-02-01 Kenichi Handa <handa@m17n.org>
19842
19843 * fontset.c (Qlatin): New variable.
19844 (syms_of_fontset): Define it as a lisp symbol.
19845 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19846
19847 2008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * font.c (font_unparse_fcname): Pay attention to the case that
19850 some of font property is a null string.
19851
19852 2008-02-01 Kenichi Handa <handa@m17n.org>
19853
19854 * term.c: Include "composite.h".
19855 (encode_terminal_code): Output all components of composition.
19856 Check the size of encode_terminal_src.
19857 (produce_glyphs): For composition, call produce_composite_glyph.
19858 (append_composite_glyph, produce_composite_glyph): New functions.
19859
19860 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19861 is not found, get font_info from the current ascii face.
19862
19863 2008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19866 buffer-file-name to Qnil before calling insert_from_buffer.
19867
19868 * font.c (font_unparse_fcname): Pay attention to the case that
19869 foundry is a null string.
19870
19871 2008-02-01 Kenichi Handa <handa@m17n.org>
19872
19873 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19874
19875 * font.c (Qunicode_sip): New variable.
19876 (syms_of_font): Declare it as a Lisp symbol.
19877
19878 * font.h (Qunicode_sip): Extern it.
19879
19880 2008-02-01 Kenichi Handa <handa@m17n.org>
19881
19882 * composite.c (get_composition_id): Pay attention to TAB component.
19883
19884 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19885 TAB. Adjust for the change of s->char2b which always points to
19886 the first element of allocated memory.
19887
19888 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19889
19890 * xdisp.c (handle_composition_prop): Set it->c to the first
19891 non-TAB component.
19892 (fill_composite_glyph_string): Change argument.
19893 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19894 (x_produce_glyphs): Fix handling of left/right padding.
19895
19896 2008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * coding.c (detect_coding_system): Fix for handling off
19899 inhibit_iso_escape_detection. Fix for the case that no coding
19900 system is defined for a specific coding category.
19901
19902 2008-02-01 Kenichi Handa <handa@m17n.org>
19903
19904 * font.c (font_matching_entity): Delete unused local var.
19905
19906 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19907 opening a font.
19908
19909 * fileio.c (Finsert_file_contents): On recovering a file, assume
19910 Unix-like eol.
19911 (choose_write_coding_system): On auto-saving a file, force
19912 Unix-like eol.
19913
19914 * coding.c (setup_coding_system): Fix setting of
19915 coding->common_flags based on eol_type.
19916 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19917 inherit from it.
19918
19919 2008-02-01 Kenichi Handa <handa@m17n.org>
19920
19921 * alloc.c (NSTATICS): Increas to 0x600.
19922
19923 2008-02-01 Kenichi Handa <handa@m17n.org>
19924
19925 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19926 (ftfont_list): Don't check :name property.
19927 (ftfont_match): New function.
19928 (ftfont_pattern_entity): If the pattern doesn't contain
19929 FC_SPACING, don't assume FC_MONO.
19930
19931 * font.h (struct font_driver): New member `match'.
19932 (font_update_drivers): Adjust prototype.
19933
19934 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19935 property of FONT.
19936 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19937 them unconditionally.
19938 (font_matching_entity): New function.
19939 (font_open_by_name): Try font_matching_entity if exact match is
19940 not found.
19941 (font_update_drivers): Delete the arg FONT. Return a list of
19942 actually used backends. Don't free faces, font caches here.
19943 Don't store data in frame parameters. Don't call x_set_font.
19944 (Ffont_spec): Store :name property as is.
19945 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19946 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19947 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19948 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19949 Call font->driver->otf_gsub instead of font_otf_gsub.
19950
19951 * frame.c (x_set_font_backend): Do more works that were done in
19952 font_update_drivers before.
19953
19954 * xfont.c (xfont_match): New function.
19955 (xfont_driver): Set xfont_driver.match to xfont_match.
19956 (xfont_draw): Set font in GC if necessary.
19957
19958 * ftxfont.c (ftxfont_match): New function.
19959 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19960
19961 * xftfont.c (xftfont_match): New function.
19962 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19963
19964 2008-02-01 Kenichi Handa <handa@m17n.org>
19965
19966 * font.h (struct font): New member scalable.
19967 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19968 (font_otf_gsub): Adjust prototype.
19969
19970 * font.c (font_otf_capability): Fix handling of the default langsys.
19971 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19972 Check the contents of SPEC.
19973 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19974 (check_gstring): New function.
19975 (REPLACEMENT_CHARACTER): New macro.
19976 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19977 glyph codes of GSTRING.
19978 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19979 (font_prepare_composition): Set cmp->glyph_len.
19980 (font_open_entity): Set font->scalable.
19981 (Ffont_get): Handle :otf property.
19982 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19983 functions.
19984 (Fquery_font): Use font->font.full_name.
19985 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19986 Sfont_otf_alternates.
19987
19988 * ftfont.c (ftfont_open): Set font->font.full_name and
19989 font->font.name properly. Fix calculation of font->font.height
19990 and font->min_width.
19991
19992 * ftxfont.c (ftxfont_create_gcs): New function.
19993 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19994 (ftxfont_draw_backgrond): Fix filling region.
19995 (ftxfont_default_fid): New function.
19996 (ftxfont_open): Set xfont->fid to the return value of
19997 ftxfont_default_fid.
19998 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19999 (ftxfont_done_face): Free only GCs that are created by
20000 ftxfont_create_gcs.
20001 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20002
20003 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20004 Clip to src->width, etc (not src->clip_XXX).
20005
20006 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20007 FontBackend frame parameter.
20008
20009 2008-02-01 Kenichi Handa <handa@m17n.org>
20010
20011 * font.h (struct font_driver_list): New member `on'.
20012 (Fclear_font_cache): EXFUN it.
20013 (font_update_drivers): Extern it.
20014
20015 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20016 (font_list_entities): Check driver_list->on.
20017 (register_font_driver): Initalize `on' member to 0.
20018 (font_update_drivers): New function.
20019 (Fclear_font_cache): Check driver_list->on.
20020
20021 * frame.h (Qfont_backend): Extern it.
20022 (x_set_font_backend): Extern it.
20023
20024 * frame.c (Qfont_backend): New variable.
20025 (frame_parms): New element for font-backend.
20026 (x_set_font_backend): New function.
20027
20028 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20029 FontBackend frame parameter.
20030 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20031 x_set_font_backend.
20032
20033 * xfont.c (xfont_list): Don't try listing by :name property if the
20034 name is not for XLFD.
20035
20036 2008-02-01 Kenichi Handa <handa@m17n.org>
20037
20038 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20039 (LGLYPH_SET_TO): New macros.
20040 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20041 element of G is vector or not.
20042 (font_at): Extern it.
20043
20044 * font.c: Include window.h.
20045 (font_lispy_object): New function.
20046 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20047 end of valid glyph.
20048 (font_close_object): Fix getting (struct font *).
20049 (font_at): New function.
20050 (Ffont_get): If FONT is a font-object, get entity from it.
20051 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20052 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20053 range check.
20054 (Ffont_at): New function.
20055 (syms_of_font): Defsubr Sfont_at.
20056
20057 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20058 before the entry for Qcomposition.
20059 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20060 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20061 the font in gstring.
20062 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20063 LGLYPH_FORM (g) to detect the end of valid glyph.
20064 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20065 we are composing with gstring.
20066
20067 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20068 Check if adjustment is vector or not.
20069
20070 * Makefile.in (font.o): Make it depends on window.h.
20071
20072 2008-02-01 Kenichi Handa <handa@m17n.org>
20073
20074 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20075 adjustment is vector or not.
20076
20077 2008-02-01 Miles Bader <miles@gnu.org>
20078
20079 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20080
20081 2008-02-01 Kenichi Handa <handa@m17n.org>
20082
20083 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20084 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20085 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20086
20087 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20088 (DEVICE_DELTA): Fix typo.
20089 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20090 LGLYPH format.
20091
20092 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20093 the change of LGLYPH format.
20094
20095 2008-02-01 Kenichi Handa <handa@m17n.org>
20096
20097 * ftfont.c (ftfont_list): Fix typo.
20098 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20099
20100 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20101
20102 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20103
20104 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20105 xftface_info is non-NULL.
20106
20107 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20108
20109 * ftfont.c (ftfont_list): Move misplaced #endif.
20110
20111 2008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * ftfont.c (ftfont_list): Pay attention to the case that
20114 FC_CAPABILITY is not defined.
20115
20116 2008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * xftfont.c (xftfont_open): Set charset related members to -1.
20119
20120 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20121 QCname.
20122 (ftfont_open): Set charset related members to -1.
20123
20124 * fontset.c (Votf_script_alist): New variable.
20125 (syms_of_fontset): Initialize it.
20126 (fontset_font): Delete unused variable.
20127
20128 * fontset.h (Votf_script_alist): Extern it.
20129
20130 * font.c (font_find_for_lface): Optimize code.
20131
20132 * font.h (font_close_object, font_merge_old_spec): Extern them.
20133
20134 2008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20137 (syms_of_font): Initialize them.
20138 (font_pixel_size): Allow float value in dpi.
20139 (font_prop_validate_type): Delete.
20140 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20141 Change caller.
20142 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20143 (font_prop_validate_extra): Delete.
20144 (font_prop_validate_spacing): New function.
20145 (font_property_table): Add elements for all known properties.
20146 (get_font_prop_index): Rename from check_font_prop_name. New
20147 argument FROM. Change caller.
20148 (font_prop_validate): Validate all known properties.
20149 (font_put_extra): Delete argument force. Change caller.
20150 (font_expand_wildcards): Make it static. Fix the way of shrinking
20151 the possible range.
20152 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20153 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20154 Change caller.
20155 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20156 (font_parse_fcname): Delete argument merge. Fix parsing of point
20157 size. Don't validate properties values here. Change caller.
20158 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20159 (font_open_by_name): Delete unused variable.
20160 (Ffont_spec): Likewise. Validate property values.
20161 (Ffont_match_p): New function.
20162
20163 * font.h (QCscalable): Extern it.
20164 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20165
20166 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20167
20168 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20169 (xfont_list_pattern): New function.
20170 (xfont_list): Use xfont_list_pattern.
20171
20172 2008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * font.h (Flist_fonts): EXFUN it.
20175
20176 2008-02-01 Jason Rumney <jasonr@gnu.org>
20177
20178 * w32term.c (w32_initialize): Add back smoothing_type and
20179 smoothing_enabled definitions.
20180
20181 2008-02-01 Kenichi Handa <handa@m17n.org>
20182
20183 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20184 s->face->font on determining underline position.
20185
20186 2008-02-01 Kenichi Handa <handa@m17n.org>
20187
20188 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20189 (font_has_char): Accept font-object too.
20190 (font_find_for_lface): Try at first with a size specified in face.
20191
20192 2008-02-01 Kenichi Handa <handa@m17n.org>
20193
20194 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20195 font_open_by_name.
20196
20197 2008-02-01 Kenichi Handa <handa@m17n.org>
20198
20199 * font.h (QCspacing, QCdpi): Extern them.
20200 (enum font_spacing): New enum.
20201 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20202
20203 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20204 (QCspacing, QCdpi): New variables.
20205 (syms_of_font): Initialize them.
20206 (font_pixel_size): New function.
20207 (font_put_extra): New function.
20208 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20209 in FONT_EXTRA.
20210 (font_parse_fcname): Handle enumerated values (e.g. bold).
20211 Fix handling font size. Add QCname property that contains only
20212 unknown properties.
20213 (font_score): Change argument. Change caller. Pay attention to
20214 FONT_PIXEL_SIZE_QUANTUM.
20215 (font_sort_entites, font_list_entities, font_find_for_lface)
20216 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20217 (Ffont_spec): Add QCname property that contains only unknown properties.
20218
20219 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20220 include weight in listing pattern, instead check weight of each
20221 listed font. Don't include scalable in pattern. Pay attention to
20222 FONT_PIXEL_SIZE_QUANTUM.
20223
20224 2008-02-01 Kenichi Handa <handa@m17n.org>
20225
20226 * font.c (font_parse_fcname): Fix parsing of point-size.
20227 (font_unparse_fcname): Produce symbolic names for style properties.
20228 (font_list_entities): Handle float size correctly.
20229 (font_open_by_name): Prefer `normal' property values if the name
20230 doesn't specify them.
20231
20232 * fontset.c (Finternal_char_font): Use font_get_name, not
20233 Ffont_xlfd_name.
20234
20235 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20236 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20237 pattern. Don't force scalable.
20238
20239 * xftfont.c (xftfont_open): For generating a name, start from
20240 96-byte buffer.
20241
20242 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20243
20244 * frame.h (x_new_fontset2): Fix prototype.
20245
20246 2008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * font.h (struct font_driver): Delete member parse_name.
20249 (font_match_p, font_get_spec, font_parse_fcname)
20250 (font_unparse_fcname): Extern them.
20251 (font_get_name): Adjust prototype.
20252
20253 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20254 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20255 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20256 unnecessary checks for weight, slant, and swidth.
20257 (font_parse_fcname): New function.
20258 (font_unparse_fcname): New function.
20259 (font_parse_name): New function.
20260 (font_match_p): New function.
20261 (font_get_name): Change return value to Lisp string.
20262 (font_get_spec): New function.
20263 (Qunspecified, Qignore_defface): Don't extern them.
20264 (font_find_for_lface): Assume that LFACE is fully specified.
20265 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20266 object, use it for FACE.
20267 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20268 driver->parse_name.
20269 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20270
20271 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20272 prototype.
20273
20274 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20275 argument F. Don't call Fnew_fontset. Instead, directly call
20276 make_fontset.
20277
20278 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20279
20280 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20281 of x_new_fontset2.
20282
20283 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20284 (Qsans__serif): New variables.
20285 (ftfont_generic_family_list): New variable.
20286 (syms_of_ftfont): Initialize the above variables.
20287 (ftfont_pattern_entity): Delete argument NAME.
20288 (ftfont_list_generic_family): New function.
20289 (ftfont_parse_name): Delete this function.
20290 (ftfont_list): Try generic family only when FcFontList found no font.
20291 (ftfont_list_family): Fix args to FcObjectSetBuild.
20292
20293 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20294 object in attrs[LFACE_FONT_INDEX].
20295 (set_lface_from_font_name): Cancel all changes for font-backend.
20296 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20297 function.
20298 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20299 font object in QCfont attribute.
20300 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20301 (realize_default_face) [USE_FONT_BACKEND]: Call
20302 set_lface_from_font_and_fontset.
20303
20304 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20305 "fixed", and signal error here if no suitable font was found.
20306
20307 * xfont.c (xfont_parse_name): Delete this function.
20308
20309 * xftfont.c (xftfont_open): Change coding style of error
20310 handling. Generate fontconfig's fontname pattern.
20311
20312 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20313 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20314
20315 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20316 Both args FONTSET and FONT_OBJECT must be existing ones.
20317
20318 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20319
20320 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20321
20322 2008-02-01 Kenichi Handa <handa@m17n.org>
20323
20324 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20325
20326 * font.h (struct font): Fix typo.
20327
20328 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20329 XLFD_XXX_INDEX.
20330 (enum xlfd_field_mask): New enum.
20331 (intern_font_field): Changed argument. Change caller. If digits
20332 are followed by non-digits, return a symbol.
20333 (font_expand_wildcards): New function.
20334 (font_parse_xlfd): Fix wildcard handling.
20335 (Ffont_spec): If :name is specified, reflect the info in the other
20336 properties.
20337
20338 * ftfont.c (ftfont_pattern_entity): Fix typo.
20339 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20340 locale.
20341
20342 2008-02-01 Kenichi Handa <handa@m17n.org>
20343
20344 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20345
20346 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20347 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20348 registry doesn't specify encoding part.
20349 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20350 (font_open_by_name): At first try parsing the name.
20351 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20352 as Lisp symbols.
20353
20354 * fontset.c (reorder_font_vector): Pay attention to the case that
20355 the 3rd element of font_def is nil.
20356 (fontset_font): For the default fontset, append one more fontset
20357 elements for a script-based font specification. Don't add script
20358 attribute on finding a font.
20359 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20360 font name.
20361 (fontset_ascii_font): If a font can't be opened, return nil.
20362
20363 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20364 (ftfont_pattern_entity): New function.
20365 (ftfont_get_cache): Assume that freetype_font_cache is already
20366 initialized.
20367 (ftfont_list): Handle the case that a file is specified in font
20368 name. Use ftfont_pattern_entity to generate entities.
20369 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20370 (syms_of_ftfont): Initialize freetype_font_cache.
20371
20372 * xftfont.c (xftfont_open): Make the font name fontconfig's
20373 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20374 (xftfont_close): Free font->font.name if not NULL.
20375
20376 * xfont.c (xfont_list): If script is specified for a font, return
20377 null_vector.
20378 (xfont_list_family): Declare argument type.
20379
20380 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20381 name, set LFACE_FONT (lface) to nil.
20382
20383 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20384 return Qnil.
20385
20386 2008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20389 (standard_args): Add "-enable-font-backend".
20390
20391 2008-02-01 Kenichi Handa <handa@m17n.org>
20392
20393 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20394 (struct xftdraw_list, xftdraw_list): Delete them.
20395 (register_xftdraw, check_xftdraw): Delete them.
20396 (xftfont_prepare_face): Don't call register_xftdraw.
20397 (xftfont_done_face): Don't call check_xftdraw.
20398 (xftfont_draw): Get background color only when with_background is
20399 nonzero.
20400
20401 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20402
20403 2008-02-01 Kenichi Handa <handa@m17n.org>
20404
20405 These changes are for the new font handling codes.
20406
20407 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20408 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20409 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20410 (FONTSRC, FONTOBJ): New variables.
20411 (obj): Add $(FONTOBJ).
20412 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20413 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20414 @LIBOTF_LIBS@.
20415 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20416 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20417
20418 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20419
20420 * character.h (Vscript_representative_chars): Extern it.
20421
20422 * character.c (Vscript_representative_chars): New variable.
20423 (syms_of_character): Declare it as a Lisp variable.
20424
20425 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20426 enable_font_backend is nonzero, accept the composition method
20427 COMPOSITION_WITH_GLYPH_STRING.
20428
20429 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20430 enumeration COMPOSITION_WITH_GLYPH_STRING.
20431
20432 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20433 members clip_x, clip_y, clip_width, and clip_height.
20434 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20435
20436 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20437 --enable-font-backend. Call syms_of_font.
20438
20439 * fns.c (assoc_no_quit): New function.
20440
20441 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20442 (face_for_font, new_fontset_from_font)
20443 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20444
20445 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20446 (fontset_font, fontset_ascii, face_for_char)
20447 (make_fontset_for_ascii_face, Ffont_info)
20448 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20449 is nonzero, use font-backend mechanism.
20450 (find_font_encoding): Make it non-static.
20451 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20452 New functions.
20453
20454 * frame.h (struct frame): New members resx and resy.
20455 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20456 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20457
20458 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20459 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20460
20461 * lisp.h (assoc_no_quit): Extern it.
20462
20463 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20464 Through out the file, use FONT_INFO_FROM_FACE instead of
20465 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20466 rif->per_char_metric.
20467 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20468 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20469 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20470 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20471 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20472 nonzero, use font-backend mechanism.
20473 (get_per_char_metric): New function.
20474
20475 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20476 (set_lface_from_font_name)
20477 (set_font_frame_param, free_realized_face)
20478 (prepare_face_for_display, clear_face_gcs)
20479 (Finternal_set_font_selection_order, realize_x_face)
20480 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20481 font-backend mechanism.
20482 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20483 (load_face_font) [USE_FONT_BACKEND]: Abort.
20484 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20485 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20486
20487 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20488 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20489 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20490 nonzero, register all available font drivers. Call
20491 x_default_font_parameter for deciding a font.
20492 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20493
20494 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20495 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20496 (x_set_glyph_string_clipping_exactly)
20497 (x_compute_glyph_string_overhangs)
20498 (x_draw_glyph_string_foreground)
20499 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20500 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20501 enable_font_backend is nonzero, use font-backend mechanism.
20502 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20503
20504 2008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20507 system_eol_type.
20508 (syms_of_coding): Initialize system_eol_type.
20509
20510 * process.c (Fset_process_coding_system): Inherit system's eol
20511 format if necessary.
20512
20513 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20514
20515 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20516
20517 2008-02-01 Kenichi Handa <handa@m17n.org>
20518
20519 * coding.c (decode_eol): Pay attention to buffer relocation in
20520 del_range_2.
20521 (decode_coding): Call decode_eol before restoring undo_list.
20522
20523 2008-02-01 Kenichi Handa <handa@m17n.org>
20524
20525 * charset.c (Fdefine_charset_internal): Fix setting of
20526 emacs_mule_bytes.
20527
20528 2008-02-01 Kenichi Handa <handa@m17n.org>
20529
20530 * keyboard.c (read_char): Check if C is a character or not before
20531 looking up Vkeyboard_translate_table.
20532
20533 2008-02-01 Kenichi Handa <handa@m17n.org>
20534
20535 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20536 condition to terminate the loop.
20537
20538 2008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * coding.c (produce_composition): Compare charbuf[i] instead of
20541 args[i] against 0.
20542 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20543
20544 2008-02-01 Kenichi Handa <handa@m17n.org>
20545
20546 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20547 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20548 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20549 detect_coding.
20550 (emacs_mule_char): Handle old style (Emacs 20) component character
20551 of a composition.
20552 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20553 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20554 composition rule.
20555 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20556
20557 2008-02-01 Kenichi Handa <handa@m17n.org>
20558
20559 * coding.c (encode_coding_ccl): Allocate destination dynamically
20560 when necessary.
20561
20562 2008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20565 the loop. When quitted, show a proper error message.
20566
20567 2008-02-01 Kenichi Handa <handa@m17n.org>
20568
20569 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20570 src->clip_head and src->clip_tail temporarily instead of src->hl.
20571
20572 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20573 character sequence.
20574 (Fccl_execute_on_string): Use ASET, not XSET.
20575
20576 2008-02-01 Kenichi Handa <handa@m17n.org>
20577
20578 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20579
20580 2008-02-01 Kenichi Handa <handa@m17n.org>
20581
20582 * coding.c (decode_coding): Fix the condition of terminating the
20583 decoding loop.
20584
20585 2008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * data.c (Faset): On setting a character bigger than 255 in a
20588 unibyte string, signal an error instead of make the string multibyte.
20589
20590 2008-02-01 Kenichi Handa <handa@m17n.org>
20591
20592 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20593 made by a mapping table.
20594
20595 2008-02-01 Kenichi Handa <handa@m17n.org>
20596
20597 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20598 not.
20599 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20600 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20601
20602 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20603 s->face is NULL or not.
20604
20605 2008-02-01 Kenichi Handa <handa@m17n.org>
20606
20607 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20608 (x_draw_glyph_string): Fix drawing of right_overhang and
20609 left_overhang around/on cursor.
20610
20611 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20612
20613 2008-02-01 Kenichi Handa <handa@m17n.org>
20614
20615 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20616
20617 2008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * coding.c (Fdefine_coding_system_internal)
20620 (Fdefine_coding_system_alias): Avoid a duplicated element in
20621 Vcoding_system_alist.
20622
20623 2008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20626
20627 * coding.c (Qcoding_system_define_form): New variable.
20628 (syms_of_coding): Intern and staticpro it.
20629 (Fcoding_system_p): Check Qcoding_system_define_form.
20630 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20631
20632 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20633 Fcoding_system_p.
20634 (CHECK_CODING_SYSTEM): If ID is not available, call
20635 Fcheck_coding_system.
20636 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20637 Try also Fcheck_coding_system.
20638
20639 2008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * coding.c (code_conversion_restore): GCPRO arg.
20642
20643 2008-02-01 Kenichi Handa <handa@m17n.org>
20644
20645 * character.c (lisp_string_width): Check multibyteness of STRING.
20646
20647 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20648
20649 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20650 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20651 (decode_mac_font_name): Use decode_coding_c_string instead of
20652 decode_coding.
20653 (x_load_font): Initialize fontp->fontset to -1. Set
20654 fontp->encoding_type.
20655
20656 2008-02-01 Kenichi Handa <handa@m17n.org>
20657
20658 * search.c (search_buffer): Give up BM search on case-fold-search
20659 if one of a target character has a case-equivalence of different
20660 byte length even if that target character is an ASCII.
20661 (simple_search): Fix calculation of byte length of matched text.
20662 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20663
20664 2008-02-01 Kenichi Handa <handa@m17n.org>
20665
20666 * coding.c (decode_coding): Fix handling of invalid bytes.
20667
20668 2008-02-01 Kenichi Handa <handa@m17n.org>
20669
20670 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20671 Unicode characters.
20672
20673 2008-02-01 Kenichi Handa <handa@m17n.org>
20674
20675 * coding.c (encode_coding_object): If a pre-write-conversion
20676 function makes a new buffer, kill it.
20677
20678 2008-02-01 Kenichi Handa <handa@m17n.org>
20679
20680 * coding.c (QCascii_compatible_p): New variable.
20681 (syms_of_coding): Initialize it.
20682 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20683 calling string_char.
20684 (record_conversion_result): Add `default:' case.
20685 (coding_charset_list): Delete unused variable `coding_type'.
20686 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20687 property in the plist of the coding system.
20688 (Fcoding_system_put): Check QCascii_compatible_p.
20689
20690 2008-02-01 Miles Bader <miles@gnu.org>
20691
20692 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20693 removed calculation of frame `f', as it's now used.
20694
20695 2008-02-01 Kenichi Handa <handa@m17n.org>
20696
20697 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20698 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20699 (UNIDATA): New variable.
20700 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20701 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20702 $(RUN_TEMACS) unconditionally.
20703
20704 2008-02-01 Kenichi Handa <handa@m17n.org>
20705
20706 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20707 (admindir): New variable.
20708 ($(lispsource)international/charprop.el): New target.
20709
20710 2008-02-01 Miles Bader <miles@gnu.org>
20711
20712 * character.c (chars-in-region): Remove obsolete function.
20713 (syms_of_character): Remove its initialization.
20714
20715 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20716
20717 * w32select.c (validate_coding_system)
20718 (setup_windows_coding_system): New functions.
20719 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20720 setup_windows_coding_system.
20721 (setup_config, Fw32_get_clipboard_data): Use
20722 validate_coding_system.
20723 (Fx_selection_exists): Move call to setup_config to a place
20724 where signals are allowed.
20725
20726 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20727 (Fcheck_coding_system): Add declarations.
20728
20729 2008-02-01 Kenichi Handa <handa@m17n.org>
20730
20731 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20732
20733 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20734
20735 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20736 string as the second argument for x_new_fontset.
20737
20738 2008-02-01 Kenichi Handa <handa@m17n.org>
20739
20740 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20741 (encode_coding_object): Use safe_call instead of call2.
20742
20743 2008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20746
20747 * Makefile.in (lisp): Include charprop.el.
20748
20749 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20750
20751 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20752 Not sure if it's unnecessary.
20753
20754 2008-02-01 Steven Tamm <steventamm@mac.com>
20755
20756 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20757 some possibly unnecessary fontset checking code that crashed
20758 when creating a new frame.
20759
20760 2008-02-01 Kenichi Handa <handa@m17n.org>
20761
20762 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20763 lookup_face.
20764
20765 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20766
20767 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20768
20769 2008-02-01 Kenichi Handa <handa@m17n.org>
20770
20771 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20772 (coding_charset_list): New function.
20773
20774 * coding.h (coding_charset_list): Extern it.
20775
20776 2008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20779 concatenation of family and registry.
20780
20781 2008-02-01 Kenichi Handa <handa@m17n.org>
20782
20783 * character.h (BYTE8_STRING): Fix typo.
20784
20785 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20786 string to multibyte (sync to HEAD).
20787
20788 * casefiddle.c (casify_region): Handle changes in byte-length
20789 using replace_range_2 (sync to HEAD).
20790
20791 2008-02-01 Andreas Schwab <schwab@suse.de>
20792
20793 * chartab.c (map_char_table): GCPRO table and arg.
20794
20795 2008-02-01 Kenichi Handa <handa@m17n.org>
20796
20797 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20798 already at limit.
20799
20800 2008-02-01 Kenichi Handa <handa@m17n.org>
20801
20802 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20803 instead of fast_c_string_match_ignore_case.
20804 (find_font_encoding): Change argument to Lisp_Object. Use
20805 fast_string_match_ignore_case instead of
20806 fast_c_string_match_ignore_case. Change caller.
20807
20808 2008-02-01 Kenichi Handa <handa@m17n.org>
20809
20810 * xdisp.c (get_next_display_element): In unibyte case, decide to
20811 display in octal form by checking a character by
20812 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20813
20814 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20815
20816 * character.c (unibyte_has_multibyte_table): New variable.
20817
20818 * character.h (unibyte_has_multibyte_table): Extern it.
20819 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20820
20821 2008-02-01 Kenichi Handa <handa@m17n.org>
20822
20823 * coding.c (encode_coding_iso_2022): Fix handling of charset
20824 annotation.
20825
20826 2008-02-01 Kenichi Handa <handa@m17n.org>
20827
20828 * coding.c (setup_coding_system): If coding_system is nil, use
20829 Qundecided.
20830 (Fterminal_coding_system): Return nil if terminal coding system is
20831 `undecided'.
20832 (syms_of_coding): Define coding-system `undecided' here. Setup
20833 terminal_coding as `undecided'.
20834
20835 2008-02-01 Kenichi Handa <handa@m17n.org>
20836
20837 * xdisp.c (message_dolog, set_message_1): Call
20838 unibyte_char_to_multibyte with arg type int.
20839
20840 * lread.c (read1): Fix reading of a char-table.
20841
20842 * print.c (print_object): Include sub char-table in circularities
20843 detection.
20844
20845 2008-02-01 Kenichi Handa <handa@m17n.org>
20846
20847 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20848 Append the found sequences in car of ARGS instead of prepending.
20849
20850 2008-02-01 Kenichi Handa <handa@m17n.org>
20851
20852 * fileio.c (report_file_error): Make a unibyte string from
20853 strerror (errorno).
20854 (Fsubstitute_in_file_name): Fix the arg to
20855 unibyte_char_to_multibyte. It is evaluated twice.
20856
20857 2008-02-01 Kenichi Handa <handa@m17n.org>
20858
20859 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20860
20861 2008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20864 BOM is not found.
20865 (detect_coding, detect_coding_system): Optimization for ISO-2022
20866 when no 8-bit data is found.
20867
20868 2008-02-01 Jason Rumney <jasonr@gnu.org>
20869
20870 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20871
20872 2008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20875 CHARS.
20876
20877 2008-02-01 Steven Tamm <steventamm@mac.com>
20878
20879 * macterm.c (mac_encode_char): Add charset argument and update
20880 to use encoding_type.
20881 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20882 switch to pure fontset.
20883 (decode_mac_font_name): Temporarily remove decoding.
20884 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20885 (x_load_font): Temporarily remove encoding.
20886
20887 2008-02-01 Kenichi Handa <handa@m17n.org>
20888
20889 * xfaces.c (Fface_font): If frame is not on a window system,
20890 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20891 refer to face->font.
20892 (split_font_name_into_vector, build_font_name_from_vector)
20893 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20894 when HAVE_WINDOW_SYSTEM is defined.
20895
20896 2008-02-01 Kenichi Handa <handa@m17n.org>
20897
20898 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20899 (x_produce_glyphs): Fix setting of members of cmp in case
20900 cmp->glyph_len is zero.
20901
20902 * fontset.c (Fset_fontset_font): Fix docstring.
20903 (Ffontset_info): Make it backward compatible. New arg ALL.
20904
20905 2008-02-01 Kim F. Storm <storm@cua.dk>
20906
20907 * process.c (read_process_output): Grow decoding_buf when needed;
20908 this could cause a crash in allocate_string and compact_small_strings.
20909
20910 2008-02-01 Kenichi Handa <handa@m17n.org>
20911
20912 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20913
20914 2008-02-01 Kenichi Handa <handa@m17n.org>
20915
20916 * coding.c (setup_coding_system): Set coding->common_flags
20917 correctly for raw-text.
20918 (consume_chars): On encoding unibyte text by raw-text, don't check
20919 multibyte form.
20920 (encode_coding): On encoding by raw-text, never use translation tables.
20921
20922 * fileio.c (e_write): Short cut for the case of no encoding.
20923
20924 2008-02-01 Kenichi Handa <handa@m17n.org>
20925
20926 * coding.c (detect_coding, detect_coding_system): Delete unused
20927 variables.
20928
20929 2008-02-01 Kenichi Handa <handa@m17n.org>
20930
20931 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20932 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20933
20934 2008-02-01 Kenichi Handa <handa@m17n.org>
20935
20936 * coding.c (Ffind_coding_systems_region_internal): Include
20937 raw-text and no-conversion in the result.
20938
20939 2008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20942 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20943 FONT_DEF.
20944 (font_def_arg, add_arg, from_arg, to_arg): New args.
20945 (set_fontset_font): Change argument.
20946 (Fset_fontset_font): Fix for the case that TARGET is a script
20947 name and charset name.
20948 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20949
20950 2008-02-01 Kenichi Handa <handa@m17n.org>
20951
20952 * fontset.c (fontset_font): Rename from fontset_face. Change return
20953 value.
20954 (face_suitable_for_char_p, face_for_char): Adjust for the change
20955 of fontset_font.
20956 (make_fontset_for_ascii_face): Fix setting of the fontset element
20957 for ASCII.
20958 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20959 to get a font name.
20960 (Ffontset_info): Adjust for the change of fontset_font.
20961
20962 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20963
20964 * character.h (LEADING_CODE_LATIN_1_MIN)
20965 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20966
20967 2008-02-01 Kenichi Handa <handa@m17n.org>
20968
20969 * editfns.c (check_translation): New function.
20970 (Ftranslate_region_internal): Handle M:N mapping.
20971
20972 2008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20975
20976 2008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20979 goto invalid_code.
20980 (decode_coding_iso_2022): Fix handling of invalid designation.
20981
20982 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20983 after calling code_conversion_save.
20984
20985 2008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20988
20989 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20990
20991 * fontset.c: Include "intervals.h".
20992 (fontset_face): Fix comparing of Lisp_Objects.
20993 (free_face_fontset, new_fontset_from_font_name): Fix
20994 Lisp_Object/int mixup.
20995
20996 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20997
20998 * coding.c: Add many prototypes for static functions.
20999 (get_translation_table): Allow max_lookup to be NULL.
21000 (decode_coding, Ffind_coding_systems_region_internal)
21001 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21002 get_translation_table with max_lookup NULL.
21003
21004 2008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * coding.c (get_translation_table): Declare it as Lisp_Object.
21007 (LOOKUP_TRANSLATION_TABLE): New macro.
21008 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21009 instead of CHAR_TABLE_REF.
21010
21011 2008-02-01 Kenichi Handa <handa@m17n.org>
21012
21013 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21014 annotation data format.
21015 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21016 Change arguments FROM and TO to single argument NCHARS. Change caller.
21017 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21018 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21019 (decode_coding_ccl, decode_coding_charset): Pay attention to
21020 coding->charbuf_used.
21021 (get_translation): New function.
21022 (produce_chars): New arguments translation_table and last_block.
21023 Translate characters here. Return number of carryover chars.
21024 Change caller.
21025 (produce_composition): New argument pos. Change caller.
21026 Adjust for the change of annotation data format.
21027 (produce_charset, produce_annotation): Likewise.
21028 (decode_coding, encode_coding): Don't call translate_chars.
21029 (consume_chars): New arg translation_table. Change caller.
21030 (translate_chars): Delete.
21031 (syms_of_coding): Make translation-table's number of extra slots 2.
21032
21033 2008-02-01 Kenichi Handa <handa@m17n.org>
21034
21035 * search.c (simple_search): Fix setting this_pos_byte in backward
21036 search.
21037
21038 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21039 byte sequence.
21040 (detect_coding_ccl): Fix setting of the variable valids.
21041
21042 2008-02-01 Kenichi Handa <handa@m17n.org>
21043
21044 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21045
21046 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21047
21048 * editfns.c (Ftranslate_region_internal): Rename from
21049 Ftranslate_region. Accept a char-table in TABLE.
21050 (syms_of_editfns): Defsubr Stranslate_region_internal.
21051
21052 * xfaces.c (set_lface_from_font_name): If a font is specified for
21053 a frame, generate a fontset from the font.
21054 (build_scalable_font_name): If the scalable font is requested for
21055 a specific size, don't change that size.
21056 (try_font_list): Try a scalable font also in the case that a
21057 pattern string is specified.
21058
21059 2008-02-01 Kenichi Handa <handa@m17n.org>
21060
21061 * xfaces.c (Fface_font): New optional arg CHARACTER.
21062
21063 2008-02-01 Kenichi Handa <handa@m17n.org>
21064
21065 * charset.h (CHARSET_OFFSET): New macro.
21066
21067 2008-02-01 Kenichi Handa <handa@m17n.org>
21068
21069 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21070
21071 * fontset.c (fontset_face): Handle the case that repertory is a
21072 char-table.
21073 (find_font_encoding): Return nil for unknown encoding.
21074 (Fset_fontset_font): Ignore a font of unknown encoding.
21075
21076 2008-02-01 Kenichi Handa <handa@m17n.org>
21077
21078 * keymap.c (describe_vector): Handle default value of a char table.
21079
21080 * fontset.c (fontset_face): Handle fallback fonts correctly.
21081 (Ffontset_info): Return infomation about fallback fonts.
21082
21083 2008-02-01 Kenichi Handa <handa@m17n.org>
21084
21085 * fontset.c (FONTSET_DEFAULT): New macro.
21086 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21087 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21088 the case that it is nil.
21089 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21090 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21091
21092 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21093 subset or superset.
21094
21095 2008-02-01 Kenichi Handa <handa@m17n.org>
21096
21097 * emacs.c (main): Call init_charset after syms_of_XXX.
21098
21099 * charset.c (Vcharset_map_directory): Delete.
21100 (Vcharset_map_path): New variable.
21101 (load_charset_map_from_file): Use Vcharset_map_path instead.
21102 (init_charset): Initialize Vcharset_map_path.
21103 (syms_of_charset): Delete declaration of "charset-map-directory",
21104 add declaration of "charset-map-path".
21105
21106 2008-02-01 Kenichi Handa <handa@m17n.org>
21107
21108 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21109 ASCII only string.
21110
21111 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21112
21113 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21114 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21115
21116 2008-02-01 Kenichi Handa <handa@m17n.org>
21117
21118 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21119
21120 * coding.c (QCmnemonic, QCdefalut_char)
21121 (QCdecode_translation_table, QCencode_translation_table)
21122 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21123 (get_translation_table): Return a list of translation tables if
21124 necessary.
21125 (decode_coding): Call get_translation_table with ENCODEP 0.
21126 (char_encodable_p): If translation_table is non-nil, always call
21127 translate_char.
21128 (Fdefine_coding_system_internal): Accept list of translation
21129 tables as :encode-translation-table and :decode-translation-table.
21130 (Fcoding_system_put): New function.
21131 (syms_of_coding): Declare new symbols. Defsubr
21132 Scoding_system_put.
21133 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21134 typically JISX0212.
21135
21136 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21137 when the charset is superset type.
21138
21139 * character.c (translate_char): Accept list of translation tables.
21140
21141 2008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21144 (CODING_ATTR_TRANS_TBL): New macro.
21145
21146 * coding.c (get_translation_table): New function.
21147 (translate_chars): Fix the bug of skipping annotation data.
21148 (decode_coding, encode_coding): Utilize get_translation_table.
21149 (char_encodable_p, Funencodable_char_position): Translate char if
21150 necessary.
21151 (Ffind_coding_systems_region_internal)
21152 (Fcheck_coding_systems_region): Setup translation table for encode
21153 in a coding system attribute vector in advance.
21154 (Fdefine_coding_system_internal): Allow a symbol as translation
21155 table. For shift-jis type coding system, allow 4th charset.
21156
21157 2008-02-01 Kenichi Handa <handa@m17n.org>
21158
21159 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21160
21161 * xdisp.c (get_next_display_element): Pass -1 as POS to
21162 FACE_FOR_CHAR if displaying a C-string.
21163
21164 2008-02-01 Kenichi Handa <handa@m17n.org>
21165
21166 * composite.c (get_composition_id): Handle xoff and yoff in a
21167 composition rule.
21168
21169 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21170 (struct composition): New member lbearing and rbearing.
21171
21172 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21173 (x_get_glyph_overhangs): Handle a composition glyph.
21174 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21175
21176 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21177 composition glyph.
21178
21179 2008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * print.c: Include charset.h.
21182 (Vprint_charset_text_property): New variable.
21183 (Qdefault): Extern it.
21184 (PRINT_STRING_NON_CHARSET_FOUND)
21185 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21186 (print_check_string_result): New variable.
21187 (print_check_string_charset_prop): New function.
21188 (print_prune_charset_plist): New variable.
21189 (print_prune_string_charset): New function.
21190 (print_object): Call print_prune_string_charset if
21191 Vprint_charset_text_property is not t.
21192 (print_interval): Print nothing if interval->plist is nil.
21193 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21194 variable. Init and staticpro print_prune_charset_plist.
21195
21196 2008-02-01 Kenichi Handa <handa@m17n.org>
21197
21198 * fontset.c (new_fontset_from_font_name): Use the specified font
21199 for all characters in the new fontset.
21200
21201 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21202 OBJECT args.
21203
21204 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21205 OBJECT args for composition too.
21206
21207 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21208 OBJECT args.
21209
21210 2008-02-01 Kenichi Handa <handa@m17n.org>
21211
21212 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21213
21214 * fontset.c (reorder_font_vector): Adjust for the change of
21215 FONT_DEF format.
21216 (fontset_face): New arg id. Change caller.
21217 (face_for_char): New args pos and object.
21218 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21219 (fs_query_fontset): Check NAME by Fassoc too.
21220 (Fset_fontset_font): Allow non-XLFD font name.
21221 (Ffontset_info): Adjust for the change of FONT_DEF format.
21222
21223 * fontset.h (face_for_char): Adjust prototype.
21224
21225 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21226 (append_space, extend_face_to_end_of_line)
21227 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21228 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21229
21230 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21231 POS and OBJECT args.
21232
21233 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21234 POS and OBJECT args.
21235
21236 2008-02-01 Jason Rumney <jasonr@gnu.org>
21237
21238 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21239 of GlobalAlloc'ed memory.
21240
21241 2008-02-01 Kenichi Handa <handa@m17n.org>
21242
21243 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21244
21245 * charset.h (charset_table_used): Delete extern.
21246
21247 * charset.c (charset_table_used): Make it static.
21248 (map_charset_chars): Fix args to c_function with.
21249
21250 * chartab.c (map_sub_char_table_for_charset): Fix args to
21251 c_function with.
21252
21253 * coding.h (enum coding_result_code): Delete
21254 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21255
21256 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21257 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21258 (Vlast_code_conversion_error): New variables.
21259 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21260 (ONE_MORE_BYTE): Record error if any instead of signaling an
21261 error. If non-ASCII multibyte char is found, return the negative
21262 value of the code. All callers changed to check it.
21263 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21264 (record_conversion_result): New function. Change all codes setting
21265 coding->result to call this function.
21266 (detect_coding_utf_8, decode_coding_utf_8)
21267 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21268 Don't use the local variable incomplete.
21269 (emacs_mule_char): Change the second arg to `const'.
21270 (decode_coding): Fix of flushing out unprocessed data.
21271 (make_conversion_work_buffer): Fix making of a work buffer.
21272 (decode_coding_object): Return coding->dst_object.
21273
21274 * fontset.c (set_fontset_font): Fix args.
21275
21276 * lisp.h (CHARACTERBITS): Define as 22.
21277
21278 * process.c (send_process): Be sure to set coding->src_multibyte.
21279
21280 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21281
21282 2008-02-01 Kenichi Handa <handa@m17n.org>
21283
21284 * xdisp.c (handle_auto_composed_prop): Give limit to
21285 Fnext_single_char_property_change.
21286
21287 2008-02-01 Kenichi Handa <handa@m17n.org>
21288
21289 * composite.c (syms_of_composite): Don't make the composition hash
21290 table weak.
21291
21292 * fontset.c (Fset_fontset_font): Fix docstring.
21293
21294 * lisp.h (detect_coding_system): Adjust prototype.
21295
21296 * fileio.c (kill_workbuf_unwind): Delete this function.
21297 (Finsert_file_contents): Adjust the call of detect_coding_system.
21298 Get conversion_buffer by code_conversion_save. Use the macro
21299 CODING_MAY_REQUIRE_DECODING. After decoding, update
21300 coding_system.
21301
21302 * coding.h (make_conversion_work_buffer): Delete extern.
21303 (code_conversion_save): Extern it.
21304
21305 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21306 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21307 (decode_coding_utf_8): Don't do eol converion.
21308 (detect_coding_utf_16): Check coding->src_chars, not
21309 coding->src_bytes. Add heuristics for those that have no signature.
21310 (decode_coding_emacs_mule, decode_coding_iso_2022)
21311 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21312 Don't do eol converion.
21313 (adjust_coding_eol_type): Return a new coding system.
21314 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21315 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21316 each change.
21317 (decode_coding): Pay attention to undo_list. Do eol conversion for
21318 all types of coding-systems (if necessary).
21319 (Vcode_conversion_work_buf_list): Delete it.
21320 (Vcode_conversion_reused_workbuf): Rename from
21321 Vcode_conversion_reused_work_buf.
21322 (Vcode_conversion_workbuf_name): New variable.
21323 (reused_workbuf_in_use): New variable.
21324 (make_conversion_work_buffer): Delete the arg DEPTH.
21325 (code_conversion_restore): Change argument to cons.
21326 (code_conversion_save): Delete the argument BUFFER. Change callers.
21327 (detect_coding_system): New argument src_chars. Change callers.
21328 Fix for utf-16 detection.
21329 (init_coding_once): Don't use ISO_carriage_return.
21330 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21331 reused_workbuf_in_use.
21332
21333 2008-02-01 Kenichi Handa <handa@m17n.org>
21334
21335 * keymap.c (store_in_keymap): Pay attention to the case that idx
21336 is a cons specifying a character range.
21337
21338 2008-02-01 Kenichi Handa <handa@m17n.org>
21339
21340 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21341 HANDLED_RECOMPUTE_PROPS.
21342
21343 * coding.c (Fdefine_coding_system_internal): Fix checking of
21344 ascii compatibility.
21345
21346 2008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * charset.c (find_charsets_in_text): Delete unused locale variable.
21349 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21350
21351 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21352 Resync charset_list to Vemacs_mule_charset_list.
21353
21354 * keymap.c (store_in_keymap): Pay attention to the case that idx
21355 is a cons specifying a character range.
21356
21357 2008-02-01 Kenichi Handa <handa@m17n.org>
21358
21359 * composite.c (update_compositions): Bind inhibit-read-only, etc
21360 to t before calling remove-list-of-text-properties.
21361
21362 * print.c (print_object): Always print ASCII chars as is.
21363
21364 2008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21367
21368 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21369 is a char table.
21370
21371 2008-02-01 Kenichi Handa <handa@m17n.org>
21372
21373 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21374
21375 2008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * xfaces.c (set_lface_from_font_name): Fix for the case that
21378 FONTNAME is not fontset name.
21379
21380 2008-02-01 Kenichi Handa <handa@m17n.org>
21381
21382 * fns.c (base64_encode_1): Fix previous change.
21383
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * fontset.c (set_fontset_font): New function.
21387 (Fset_fontset_font): If a font is specified for a charset, use
21388 map_charset_chars to store the font spec in a fontset.
21389
21390 2008-02-01 Kenichi Handa <handa@m17n.org>
21391
21392 * fontset.c (fontset_face): Create a fallback fontset on demand.
21393 (make_fontset): Don't create a fallback fontset here.
21394 (free_face_fontset): Free a fallback fontset (if any) too.
21395 (n_auto_fontsets): Delete this variable.
21396 (auto_fontset_alist): New variable.
21397 (new_fontset_from_font_name): Check auto_fontset_alist.
21398 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21399 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21400 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21401 Defsubr Sfontset_list_all.
21402
21403 2008-02-01 Kenichi Handa <handa@m17n.org>
21404
21405 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21406
21407 2008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21410
21411 2008-02-01 Kenichi Handa <handa@m17n.org>
21412
21413 * editfns.c (Fgoto_char): Fix docstring.
21414
21415 2008-02-01 Kenichi Handa <handa@m17n.org>
21416
21417 * insdel.c (insert_from_gap): Adjust intervals correctly.
21418
21419 2008-02-01 Jason Rumney <jasonr@gnu.org>
21420
21421 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21422 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21423 (w32_initialize): Try to load it.
21424 (x_get_font_repertory): Use it if available.
21425 (w32_encode_char): Add shortcut for unicode output.
21426
21427 * w32fns.c (w32_load_system_font): Default charset to -1.
21428 (x_to_w32_charset): Match all fonts for unicode.
21429 (w32_to_x_charset): New parameter matching. Don't return partial
21430 or wildcard charsets.
21431 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21432 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21433 (w32_to_x_font): Match charset to real charset.
21434 (enum_font_cb2): Always list unicode versions.
21435
21436 * makefile.w32-in (temacs): Increase EMHEAP.
21437
21438 2008-02-01 Jason Rumney <jasonr@gnu.org>
21439
21440 * w32term.c (w32_encode_char): New charset parameter.
21441 font_info.encoding becomes encoding_type.
21442 (x_get_font_repertory): New function. Warning: stub only!
21443 (x_new_font): Return quickly if font already set.
21444 (x_new_fontset): fontsetname parameter is Lisp_Object.
21445 Use new fs_query_fontset. Try new_fontset_from_font_name.
21446 Use fontset_name for return value.
21447
21448 * w32term.h: Declare x_get_font_repertory.
21449
21450 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21451 place of find_charset_in_text. Use encode_coding_object in place
21452 of encode_coding.
21453 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21454 decode_coding.
21455
21456 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21457 of x_new_fontset.
21458 (w32_load_system_font): Initialize charset as unicode.
21459 font_info.encoding becomes encoding_type.
21460 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21461 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21462 (syms_of_w32fns): Set get_font_repertory_func.
21463
21464 * w32console.c: Include character.h. Use terminal_encode_buffer
21465 from term.c.
21466 (write_glyphs): Use new version of encode_terminal_code. Use
21467 encode_coding_object in place of encode_coding.
21468
21469 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21470 encoding becomes encoding_type.
21471
21472 * term.c (terminal_encode_buffer): Make externally visible.
21473
21474 * makefile.w32-in: Add character.h dependancies.
21475 (character.o, chartab.o): New targets.
21476
21477 2008-02-01 Kenichi Handa <handa@m17n.org>
21478
21479 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21480 CODING_ID_EOL_TYPE.
21481
21482 2008-02-01 Andreas Schwab <schwab@suse.de>
21483
21484 * coding.c (produce_chars): Revert last change.
21485
21486 2008-02-01 Kenichi Handa <handa@m17n.org>
21487
21488 * charset.h (charset_unicode): Extern it.
21489
21490 * charset.c (string_xstring_p): Check by (C >= 0x100).
21491 (find_charsets_in_text): Change format of the arc CHARSETS. New
21492 arg MULTIBYTE.
21493 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21494 change of find_charsets_in_text.
21495 (Fsplit_char): Fix doc. Never return unknown.
21496
21497 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21498
21499 * coding.c (Fdefine_coding_system_alias): Update
21500 Vcoding_system_list.
21501
21502 * fontset.c (load_font_get_repertory): Pay attention to the case
21503 that ENCODING of a font is specified by a char-table.
21504
21505 * xterm.c (x_get_font_repertory): Handle the case that the
21506 encoding of font is other than Unicode.
21507
21508 2008-02-01 Kenichi Handa <handa@m17n.org>
21509
21510 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21511 if a character is encodable by the terminal coding system. If
21512 not, produces proper number of `?'s. Update
21513 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21514 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21515
21516 2008-02-01 Kenichi Handa <handa@m17n.org>
21517
21518 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21519 variables.
21520 (encode_terminal_code): Change argument. Encode multiple
21521 characters at once. Store the result of encoding in
21522 terminal_encode_buffer.
21523 (write_glyphs, insert_glyphs): Adjust for the change of
21524 encode_terminal_code.
21525 (term_init): Initialize terminal_encode_buffer and
21526 terminal_encode_buf_size.
21527
21528 * coding.c (consume_chars): If coding->src_object is nil, don't
21529 check annotation.
21530
21531 2008-02-01 Kenichi Handa <handa@m17n.org>
21532
21533 * character.c (char_string): Use ASCII_CHAR_P instead of
21534 SINGLE_BYTE_CHAR_P.
21535
21536 2008-02-01 Kenichi Handa <handa@m17n.org>
21537
21538 * xdisp.c (handle_auto_composed_prop): Check if the last
21539 characters of auto-composed region is newly composed with the
21540 following characters.
21541 (handle_composition_prop): Fix checking of point being inside
21542 composition.
21543
21544 2008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 * fns.c (concat): Don't change multibyteness of the result by
21547 concatenating an 8-bit character.
21548
21549 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21550 multibyteness of the result when newelt is an 8-bit character.
21551
21552 2008-02-01 Dave Love <fx@gnu.org>
21553
21554 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21555 EMACS_INT.
21556
21557 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21558
21559 * xfaces.c (face_numeric_value): Declare dim size_t.
21560 (Finternal_lisp_face_equal_p): Remove unused f.
21561
21562 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21563 (MATRIX_ROW): Remove unused vars.
21564 (draw_glyphs, x_insert_glyphs, fast_find_position)
21565 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21566 byte/char counts.
21567
21568 * regex.c (regex_compile): Remove unused var.
21569
21570 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21571
21572 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21573 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21574
21575 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21576
21577 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21578
21579 * fileio.c (Fwrite_region): Remove unused var.
21580
21581 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21582 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21583
21584 * composite.c (Fremove_list_of_text_properties): Declare.
21585
21586 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21587 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21588 (coding_inherit_eol_type): Remove unused attrs.
21589 (detect_coding): Cast arg of detect_eol.
21590
21591 * charset.c (syms_of_charset): Remove unused var p.
21592 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21593 byte/char counts.
21594
21595 * casetab.c (set_case_table): Remove unused var.
21596
21597 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21598 unused vars.
21599
21600 2008-02-01 Dave Love <fx@gnu.org>
21601
21602 * xterm.c (x_bitmap_mask): Declare.
21603
21604 2008-02-01 Dave Love <fx@gnu.org>
21605
21606 * xterm.c (x_term_init): Fix type error.
21607
21608 * lisp.h: Add Funibyte_char_to_multibyte.
21609
21610 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21611 (Fset_coding_system_priority): Doc fix.
21612
21613 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21614
21615 * indent.c (check_composition): Make start and end EMACS_INT.
21616
21617 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21618
21619 * xdisp.c (handle_composition_prop, check_point_in_composition):
21620 Make buffer positions EMACS_INT.
21621
21622 * composite.c (find_composition, run_composition_function)
21623 (update_compositions, Ffind_composition_internal): Make buffer
21624 positions EMACS_INT.
21625
21626 * composite.h (find_composition, update_compositions): Make
21627 position args EMACS_INT.
21628
21629 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21630
21631 * intervals.c (get_property_and_range):
21632 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21633
21634 * unexalpha.c: Don't include varargs.h.
21635
21636 2008-02-01 Dave Love <fx@gnu.org>
21637
21638 * coding.h (ENCODE_UTF_8): New.
21639
21640 * Makefile.in (gtkutil.o): Depend on coding.h.
21641
21642 * coding.c (Fset_coding_system_priority): Doc fix.
21643
21644 2008-02-01 Kenichi Handa <handa@m17n.org>
21645
21646 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21647 the case of auto saving.
21648
21649 2008-02-01 Andreas Schwab <schwab@suse.de>
21650
21651 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21652 `range' from GC.
21653
21654 2008-02-01 Kenichi Handa <handa@m17n.org>
21655
21656 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21657
21658 2008-02-01 Kenichi Handa <handa@m17n.org>
21659
21660 * fileio.c (choose_write_coding_system): Return a decided coding system.
21661 (Fwrite_region): Set Vlast_coding_system_used to the return value
21662 of choose_write_coding_system.
21663
21664 2008-02-01 Kenichi Handa <handa@m17n.org>
21665
21666 * charset.c (Fset_charset_priority): Pay attention to duplicated
21667 arguments.
21668
21669 * coding.c (QCcategory): New variable.
21670 (syms_of_coding): Defsym it. Set all elements of
21671 Vcoding_category_table and their symbol values.
21672 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21673 coding-category-XXX, and coding-category-list.
21674 (Fdefine_coding_system_internal): Add category in the plist.
21675
21676 2008-02-01 Kenichi Handa <handa@m17n.org>
21677
21678 * callproc.c (Fcall_process): Handle carryover correctly.
21679
21680 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21681 (raw_text_coding_system): Check NILP (coding_system).
21682 (coding_inherit_eol_type): Check NILP (coding_system) and
21683 NILP (parent).
21684 (consume_chars): Fix for the case of raw-text.
21685
21686 * process.c (read_process_output): Handle carryover correctly.
21687
21688 2008-02-01 Dave Love <fx@gnu.org>
21689
21690 * regex.c (re_search_2): Fix last change.
21691
21692 2008-02-01 Kenichi Handa <handa@m17n.org>
21693
21694 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21695 target_multibyte. Even in a unibyte case, return a converted
21696 multibyte char.
21697 (GET_CHAR_AFTER): New macro.
21698 (PATFETCH): Translate via multibyte char.
21699 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21700 (SETUP_MULTIBYTE_RANGE): New macro.
21701 (regex_compile): Setup compiled code so that its multibyteness
21702 matches that of a target. Fix the handling of "[X-YZ]" using
21703 SETUP_MULTIBYTE_RANGE.
21704 (analyse_first) <charset>: For filling fastmap for all multibyte
21705 characters, don't check by BASE_LEADING_CODE_P.
21706 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21707 the same as RE_MULTIBYTE_P (bufp) now.
21708 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21709 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21710 (TRANSLATE_VIA_MULTIBYTE): New macro.
21711 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21712 It is the same as RE_MULTIBYTE_P (bufp) now.
21713 <exactn>: Translate via multibyte.
21714 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21715 translate it.
21716 <charset, charset_not>: Fetch a character by
21717 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21718 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21719 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21720 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21721 by GET_CHAR_AFTER.
21722 (bcmp_translate): Likewise.
21723
21724 * search.c (compile_pattern): Check the member target_multibyte,
21725 not the member multibyte of buf.
21726
21727 * lread.c (read1): While reading a string, set force_singlebyte
21728 and force_multibyte correctly.
21729
21730 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21731 up of unibyte_to_multibyte_table.
21732
21733 2008-02-01 Kenichi Handa <handa@m17n.org>
21734
21735 * coding.c (setup_coding_system): If coding has
21736 post-read-conversion or pre-write-conversion, set
21737 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21738 respectively.
21739 (decode_coding_gap): Run post-read-conversion if any.
21740
21741 * fileio.c (Finsert_file_contents): Even if we read into a
21742 unibyte buffer, check if we must decode the result or not.
21743
21744 2008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * coding.c (make_conversion_work_buffer): Change the work buffer
21747 name to the same one as that of Emacs 21.
21748
21749 2008-02-01 Kenichi Handa <handa@m17n.org>
21750
21751 * coding.h (make_conversion_work_buffer): Adjust prototype.
21752 (code_conversion_restore): Don't extern it.
21753
21754 * coding.c (detected_mask): Delete unused variable.
21755 (decode_coding_iso_2022): Pay attention to the byte sequence of
21756 CTEXT extended segment, and retain those bytes as is.
21757 (decode_coding_ccl): Delete unused variable `valids'.
21758 (setup_coding_system): Delete unused variable `category'.
21759 (consume_chars): Delete unused variable `category'. Make it work
21760 for non-multibyte case.
21761 (make_conversion_work_buffer): Change argument.
21762 (saved_coding): Delete unused variable.
21763 (code_conversion_restore): Don't check saved_coding->destination.
21764 (code_conversion_save): New function.
21765 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21766 instead of record_unwind_protect.
21767 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21768 (detect_coding_system): Delete unused variable `mask'.
21769 (Fdefine_coding_system_internal): Delete unused variable id.
21770
21771 * fileio.c (kill_workbuf_unwind): New function.
21772 (Finsert_file_contents): On replacing, call
21773 make_conversion_work_buffer with correct args, and call
21774 record_unwind_protect with the first arg kill_workbuf_unwind.
21775
21776 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21777
21778 2008-02-01 Kenichi Handa <handa@m17n.org>
21779
21780 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21781 (fontset_add): Fix for the case that TO is less than TO1.
21782 (Ffontset_info): Don't use fallback fontset on checking the
21783 default fontset.
21784 (dump_fontset): New function for debugging.
21785
21786 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21787 coding_type is Qcharset.
21788
21789 2008-02-01 Kenichi Handa <handa@m17n.org>
21790
21791 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21792 (map_char_table): Don't inherit the value from the parent on
21793 initializing VAL. Adjust for the above change.
21794
21795 2008-02-01 Kenichi Handa <handa@m17n.org>
21796
21797 * coding.c (Qsignature, Qendian): Delete these variables.
21798 (syms_of_coding): Don't initialize them.
21799 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21800 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21801 detect_info->found.
21802 (decode_coding_utf_16): Don't detect BOM here.
21803 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21804 is NOT utf_16_without_bom.
21805 (setup_coding_system): For a coding system of type utf-16, check
21806 if the attribute :endian is Qbig or not (not nil or not), and set
21807 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21808 (detect_coding): If coding type is utf-16 and BOM detection is
21809 required, detect it.
21810 (Fdefine_coding_system_internal): For a coding system of type
21811 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21812
21813 2008-02-01 Kenichi Handa <handa@m17n.org>
21814
21815 * coding.c (coding_set_source): Fix for the case that the current
21816 buffer is different from coding->src_object.
21817 (decode_coding_object): Don't use the conversion work buffer if
21818 DST_OBJECT is a buffer.
21819
21820 2008-02-01 Dave Love <fx@gnu.org>
21821
21822 * lread.c (read_emacs_mule_char) [len==2]: Index
21823 emacs_mule_charset correctly.
21824
21825 2008-02-01 Dave Love <fx@gnu.org>
21826
21827 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21828 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21829 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21830 treated specially.)
21831 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21832 (detected_mask): Remove Big5 bits.
21833
21834 2008-02-01 Kenichi Handa <handa@m17n.org>
21835
21836 The following changes are to make the font rescaling facility
21837 compatible with Emacs 21.
21838
21839 * xfaces.c (Vface_font_rescale_alist): Rename from
21840 Vface_resizing_fonts.
21841 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21842 (font_rescale_ratio): Rename from font_resizing_ratio.
21843 (split_font_name): Set font->rescale_ratio.
21844 (better_font_p): Pay attention to font->rescale_ratio.
21845 (build_scalable_font_name): Likewise. Change RESX, and RESY
21846 fields.
21847 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21848
21849 2008-02-01 Kenichi Handa <handa@m17n.org>
21850
21851 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21852 (Qutf_16_le): Remove these variables.
21853 (syms_of_coding): Don't DEFSYM them.
21854 (decode_coding_utf_16): Fix handling of BOM.
21855 (encode_coding_utf_16): Fix handling of BOM.
21856
21857 2008-02-01 Kenichi Handa <handa@m17n.org>
21858
21859 * fileio.c (Finsert_file_contents): On replacing, before decoding
21860 the file into the work buffer, set point of the work buffer to the end.
21861
21862 2008-02-01 Dave Love <fx@gnu.org>
21863
21864 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21865
21866 2008-02-01 Dave Love <fx@gnu.org>
21867
21868 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21869 and fix C types.
21870
21871 2008-02-01 Kenichi Handa <handa@m17n.org>
21872
21873 * xdisp.c (SKIP_GLYPHS): New macro.
21874 (set_cursor_from_row): Pay attention to string display properties.
21875
21876 * category.c (copy_category_entry): Fix for the case that RANGE
21877 is an integer.
21878
21879 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21880
21881 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21882
21883 2008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * charset.c (Fcharset_id_internal): New function.
21886 (syms_of_charset): Defsubr it.
21887
21888 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21889 with the last arg charset_list acquired from coding.
21890 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21891 the attribute coding_attr_ccl_valids.
21892
21893 * coding.h (enum define_coding_ccl_arg_index): Set the first
21894 member coding_arg_ccl_decoder to coding_arg_max.
21895
21896 * ccl.h (ccl_driver): Adjust prototype.
21897
21898 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21899 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
21900 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
21901 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21902 last arg Qnil.
21903
21904 2008-02-01 Kenichi Handa <handa@m17n.org>
21905
21906 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21907 call encode_char.
21908
21909 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21910
21911 2008-02-01 Dave Love <fx@gnu.org>
21912
21913 * composite.c (syms_of_composite): Make composition_hash_table weak.
21914
21915 2008-02-01 Kenichi Handa <handa@m17n.org>
21916
21917 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21918 (font_name_registry): Don't extern them.
21919 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21920
21921 * fontset.h (Qfontset): Don't extern it.
21922 (new_fontset_from_font_name): Extern it.
21923
21924 * fontset.c: Give 8 extra slots to fontset objects.
21925 (Qfontset_info): New variable.
21926 (syms_of_fontset): Defsym it.
21927 (FONTSET_FALLBACK): New macro.
21928 (fontset_face): Try also the default fontset.
21929 (make_fontset): Realize a fallback fontset from the default fontset.
21930 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21931 using split_font_name_into_vector and build_font_name_from_vector.
21932 (Fset_fontset_font): Access the elements of font_spec by enum
21933 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21934 name by using split_font_name_into_vector.
21935 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21936 generate a proper font name from the fontset name. Update
21937 Vfontset_alias_alist.
21938 (n_auto_fontsets): New variable.
21939 (new_fontset_from_font_name): New function.
21940 (Ffont_info): Store the information about fonts generated from the
21941 default fontset in the first extra slot of the returned char-table.
21942
21943 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21944 (font_name_registry): Delete function.
21945 (split_font_name_into_vector): New function.
21946 (build_font_name_from_vector): New function.
21947 (font_list): The argument REGISTRY is now a list of registry names.
21948 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21949 specifies an explicit font name, return the name as is. Make a
21950 list of registy names.
21951
21952 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21953 of x_new_fontset.
21954 (Fx_create_frame): Don't call x_new_fontset here. Just use
21955 x_list_fonts to check the existence of fonts.
21956
21957 * xterm.h (x_new_fontset): Adjust prototype.
21958
21959 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21960 string. Use new_fontset_from_font_name to create a fontset from a
21961 font name.
21962
21963 2008-02-01 Kenichi Handa <handa@m17n.org>
21964
21965 * syntax.c (Vfind_word_boundary_function_table): New name for
21966 Vnext_word_boundary_function_table.
21967 (find-word-boundary-function-table): New name for
21968 next-word-boundary-function-table.
21969
21970 2008-02-01 Dave Love <fx@gnu.org>
21971
21972 * Makefile.in: Fix some dependencies.
21973
21974 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21975 set it to nil before returning.
21976
21977 * composite.c (update_compositions): Fix type error.
21978
21979 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21980
21981 2008-02-01 Kenichi Handa <handa@m17n.org>
21982
21983 * xterm.c (x_new_font): Optimize for the case that the font is
21984 already set for the frame.
21985
21986 2008-02-01 Kenichi Handa <handa@m17n.org>
21987
21988 * chartab.c (char_table_ascii): Check if the char table contents
21989 is sub-char-table or not.
21990 (char_table_set, char_table_set_range): Fix argument to
21991 char_table_ascii.
21992
21993 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21994 (detect_coding_utf_8, detect_coding_utf_16)
21995 (detect_coding_emacs_mule, detect_coding_iso_2022)
21996 (detect_coding_sjis, detect_coding_big5)
21997 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21998 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21999 sequence is valid in this coding system. Change callers.
22000 (MAX_ANNOTATION_LENGTH): New macro.
22001 (ADD_ANNOTATION_DATA): New macro.
22002 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22003 ADD_ANNOTATION_DATA. Change the format of annotation data.
22004 (ADD_CHARSET_DATA): New macro.
22005 (emacs_mule_char): New argument ID. Change callers.
22006 (decode_coding_emacs_mule, decode_coding_iso_2022)
22007 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22008 Produce charset annotation data in coding->charbuf.
22009 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22010 to charset annotation data in coding->charbuf.
22011 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22012 coding->common_flags if the coding system is iso-2022 based and
22013 uses designation.
22014 (produce_composition): Adjust for the new annotation data format.
22015 (produce_charset): New function.
22016 (produce_annotation): Handle charset annotation.
22017 (handle_composition_annotation, handle_charset_annotation): New
22018 functions.
22019 (consume_chars): Handle charset annotation. Utilize the above two
22020 functions.
22021 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22022 buffer, get the deleted text as a string and set
22023 coding->src_object to that string.
22024 (detect_coding, detect_coding_system): Use the new struct
22025 coding_detection_info.
22026
22027 * coding.h (struct coding_detection_info): New structure.
22028 (struct coding_system): Adjust prototype of the member `detector'.
22029 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22030
22031 2008-02-01 Kenichi Handa <handa@m17n.org>
22032
22033 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22034
22035 2008-02-01 Dave Love <fx@gnu.org>
22036
22037 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22038 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22039 to new local and nullify apropos_accumulate before returning.
22040 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22041
22042 2008-02-01 Kenichi Handa <handa@m17n.org>
22043
22044 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22045 correctly.
22046
22047 2008-02-01 Dave Love <fx@gnu.org>
22048
22049 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22050
22051 2008-02-01 Kenichi Handa <handa@m17n.org>
22052
22053 The following changes are to make character composition happen
22054 automatically on displaying.
22055
22056 * Makefile.in (lisp, shortlisp): Add composite.elc.
22057
22058 * composite.h (Qauto_composed, Vauto_composition_function)
22059 (Qauto_composition_function): Extern them.
22060
22061 * composite.c (Vcomposition_function_table)
22062 (Qcomposition_function_table): Delete variables.
22063 (Qauto_composed, Vauto_composition_function)
22064 (Qauto_composition_function): New variables.
22065 (run_composition_function): Don't call
22066 compose-chars-after-function.
22067 (update_compositions): Clear `auto-composed' text property.
22068 (compose_chars_in_text): Delete this function.
22069 (syms_of_composite): Staticpro Qauto_composed and
22070 Qauto_composition_function. Declare Vauto_composition_function as
22071 a Lisp variable.
22072
22073 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22074
22075 * xdisp.c (it_props): Add an entry for Qauto_composed.
22076 (handle_auto_composed_prop): New function.
22077
22078 * xselect.c (selection_data_to_lisp_data): Don't call
22079 compose_chars_in_text.
22080
22081 2008-02-01 Dave Love <fx@gnu.org>
22082
22083 * keyboard.c (read_char): Modify checking around use of
22084 Vkeyboard_translate_table.
22085
22086 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22087 and fix C types.
22088
22089 2008-02-01 Kenichi Handa <handa@m17n.org>
22090
22091 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22092 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22093 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22094 the case that the last byte is '\r' correctly.
22095 (decode_coding): Flush out the unprocessed data correctly.
22096 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22097
22098 2008-02-01 Dave Love <fx@gnu.org>
22099
22100 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22101 Add XK_ISO... case.
22102 (xaw_scroll_callback): Revert last change.
22103
22104 2008-02-01 Kenichi Handa <handa@m17n.org>
22105
22106 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22107
22108 2008-02-01 Kenichi Handa <handa@m17n.org>
22109
22110 * xfaces.c (Vface_resizing_fonts): New variable.
22111 (struct font_name): New member `resizing_ratio'.
22112 (font_resizing_ratio): New function.
22113 (split_font_name): Set font->resizing_ratio.
22114 (better_font_p): Pay attention to font->resizing_ratio.
22115 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22116 RESX, and RESY fields.
22117 (try_alternative_families): Try scalable fonts if
22118 Vscalable_fonts_allowed is not Qt.
22119 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22120
22121 2008-02-01 Dave Love <fx@gnu.org>
22122
22123 * xterm.c (xaw_scroll_callback): Cast correctly.
22124
22125 2008-02-01 Dave Love <fx@gnu.org>
22126
22127 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22128 (lispy_kana_keys): Comment out.
22129 (make_lispy_event) [XK_kana_A]: Comment out.
22130
22131 * xterm.c (xaw_scroll_callback): Cast call_data.
22132 (XTread_socket): Deal with ASCII keysyms.
22133 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22134
22135 2008-02-01 Dave Love <fx@gnu.org>
22136
22137 * xterm.c (Vx_keysym_table): New.
22138 (syms_of_xterm): Initialize it.
22139 (XTread_socket): Use it.
22140 From head: Eliminate incorrect optimization that tried to avoid
22141 decoding the output of X*LookupString.
22142 (x_get_font_repertory): Delete charset declaration.
22143
22144 2008-02-01 Kenichi Handa <handa@m17n.org>
22145
22146 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22147 return 0.
22148 (Fdefine_coding_system_internal): Setup
22149 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22150
22151 2008-02-01 Dave Love <fx@gnu.org>
22152
22153 * coding.c (Fcheck_coding_system): Doc fix.
22154
22155 * editfns.c (Finsert_byte): Return a proper value.
22156
22157 2008-02-01 Kenichi Handa <handa@m17n.org>
22158
22159 * coding.c (decode_coding): Fix args to translate_chars. Pay
22160 attention to Vstandard_translation_table_for_decode.
22161 (encode_coding): Fix args to translate_chars. Pay attention to
22162 Vstandard_translation_table_for_encode.
22163
22164 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22165 SINGLE_BYTE_CHAR_P.
22166
22167 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22168 not by SINGLE_BYTE_CHAR_P.
22169
22170 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22171 SINGLE_BYTE_CHAR_P.
22172
22173 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22174 SINGLE_BYTE_CHAR_P.
22175
22176 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22177 by SINGLE_BYTE_CHAR_P.
22178
22179 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22180 SINGLE_BYTE_CHAR_P.
22181
22182 2008-02-01 Dave Love <fx@gnu.org>
22183
22184 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22185
22186 2008-02-01 Dave Love <fx@gnu.org>
22187
22188 * fns.c (Flanginfo): Fix typo.
22189
22190 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22191
22192 2008-02-01 Kenichi Handa <handa@m17n.org>
22193
22194 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22195 (detect_coding_emacs_mule, detect_coding_iso_2022)
22196 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22197 incomplete byte sequence. Don't update *mask when correctly detected.
22198 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22199 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22200 (detect_coding, detect_coding_system): Adjust for the changes above.
22201
22202 2008-02-01 Kenichi Handa <handa@m17n.org>
22203
22204 * character.c (char_string): Rename from
22205 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22206 (string_char): Rename from string_char.
22207
22208 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22209 if C is greater than MAX_3_BYTE_CHAR.
22210 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22211 string_char instead of string_char_with_unification.
22212
22213 2008-02-01 Dave Love <fx@gnu.org>
22214
22215 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22216
22217 2008-02-01 Kenichi Handa <handa@m17n.org>
22218
22219 * keymap.c (push_key_description): Pay attention to force_multibyte.
22220
22221 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22222
22223 2008-02-01 Dave Love <fx@gnu.org>
22224
22225 * charset.c (define_charset_internal): Rename `supprementary'.
22226
22227 * Makefile.in (lisp, shortlisp): Remove latin-N.
22228
22229 2008-02-01 Dave Love <fx@gnu.org>
22230
22231 * xfns.c (x_window, x_window): Use use_xim.
22232
22233 * xterm.c (use_xim): Initialize.
22234 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22235 (x_term_init): Maybe set use_xim.
22236
22237 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22238
22239 2008-02-01 Kenichi Handa <handa@m17n.org>
22240
22241 * search.c (search_buffer): Fix case-fold-search of multibyte
22242 characters.
22243 (boyer_moore): Rename the last argument to char_high_bits.
22244
22245 2008-02-01 Kenichi Handa <handa@m17n.org>
22246
22247 * xdisp.c (display_string): Fix for the case of zero width glyph.
22248
22249 * xfns.c (x_set_font): Change the error message of the case that
22250 x_new_fontset returns Qt.
22251
22252 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22253 (Finternal_set_lisp_face_attribute): Use signal_error for the
22254 error of invalid fontset.
22255
22256 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22257 fontset, return Qt.
22258
22259 2008-02-01 Dave Love <fx@gnu.org>
22260
22261 * unexelf.c (unexec): Make .got handling not SGI-specific.
22262
22263 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22264
22265 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22266
22267 * keyboard.c (read_key_sequence): Fix type error.
22268
22269 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22270 type error.
22271
22272 * fontset.c (fontset_add): Return Lisp_Object.
22273
22274 2008-02-01 Dave Love <fx@gnu.org>
22275
22276 * charset.h (charset_ordered_list_tick): Declare extern.
22277
22278 2008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 The following changes (and some of 2008-02-01 changes of mine) are
22281 for handling syntax, category, and case conversion for unibyte
22282 characters by converting them to multibyte on the fly. With these
22283 changes, we don't have to setup syntax and case tables for unibyte
22284 characters in each language environment.
22285
22286 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22287 multibyte if necessary.
22288
22289 * bytecode.c (Fbyte_code): Likewise.
22290
22291 * character.h (LEADING_CODE_LATIN_1_MIN)
22292 (LEADING_CODE_LATIN_1_MAX): New macros.
22293 (unibyte_to_multibyte_table): Extern it.
22294 (unibyte_char_to_multibyte): New macro.
22295 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22296 (CHAR_LEADING_CODE): New macro.
22297 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22298
22299 * character.c (unibyte_to_multibyte_table): New variable.
22300 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22301 (multibyte_char_to_unibyte): If C is an eight-bit character,
22302 convert it to the corresponding byte value.
22303
22304 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22305 not 1, signals an error. Update the elements of
22306 unibyte_to_multibyte_table.
22307 (init_charset_once): Initialize unibyte_to_multibyte_table.
22308 (syms_of_charset): Define the charset `iso-8859-1'.
22309
22310 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22311 as is without converting it to unibyte. In a unibyte buffer,
22312 convert C to multibyte before checking the syntax.
22313
22314 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22315
22316 * minibuf.c (Fminibuffer_complete_word): Use the macro
22317 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22318
22319 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22320
22321 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22322 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22323 that is zero, convert an eight-bit char to multibyte.
22324 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22325 non-emacs case.
22326 (PATFETCH): Convert an eight-bit char to multibyte.
22327 (HANDLE_UNIBYTE_RANGE): New macro.
22328 (regex_compile): Setup the compiled pattern for multibyte chars
22329 even if the given regex string is unibyte. Use PATFETCH_RAW
22330 instead of PATFETCH in many places. To handle `charset'
22331 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22332 only for ASCII chars.
22333 (analyse_first) <exactn>: Simplify because the compiled pattern
22334 is multibyte.
22335 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22336 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22337 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22338 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22339 multibyte always 1.
22340 (re_search_2): In emacs, set the locale variable multibyte to 1,
22341 otherwise to 0. New local variable target_multibyte. Check it
22342 to decide the multibyteness of STR1 and STR2. If
22343 target_multibyte is zero, convert unibyte chars to multibyte
22344 before translating and checking fastmap.
22345 (TARGET_CHAR_AND_LENGTH): New macro.
22346 (re_match_2_internal): In emacs, set the locale variable multibyte
22347 to 1, otherwise to 0. New local variable target_multibyte. Check
22348 it to decide the multibyteness of STR1 and STR2. Use
22349 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22350 <charset, charset_not>: If multibyte is nonzero, check fastmap
22351 only for ASCII chars. Call bcmp_translate with
22352 target_multibyte, not with multibyte.
22353 <begline>: Declare the local variable C as `unsigned'.
22354 (bcmp_translate): Change the last arg name to target_multibyte.
22355
22356 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22357 the regexp pattern and the matching target. Set cp->buf.multibyte
22358 to the multibyteness of the regexp pattern. Set
22359 cp->but.target_multibyte to the multibyteness of the matching target.
22360 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22361 FETCH_STRING_CHAR_ADVANCE.
22362 (Freplace_match): Convert unibyte chars to multibyte.
22363
22364 * syntax.c (char_quoted, back_comment, scan_words)
22365 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22366 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22367 unibyte chars to multibyte.
22368 (skip_chars): Delete the arg syntaxp, and move the code for
22369 handling syntaxes to skip_syntaxes. Change callers.
22370 Fix the case that the multibyteness of STRING and the current
22371 buffer doesn't match.
22372 (skip_syntaxes): New function.
22373 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22374 SINGLE_BYTE_CHAR_P.
22375
22376 2008-02-01 Kenichi Handa <handa@m17n.org>
22377
22378 * xfaces.c (QCfontset): New variable.
22379 (LFACE_FONTSET): New macro.
22380 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22381 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22382 (Finternal_set_lisp_face_attribute)
22383 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22384 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22385 check also LFACE_FONTSET_INDEX.
22386 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22387 attrs[LFACE_FONT_INDEX].
22388 (syms_of_xfaces): Intern and staticpro QCfontset.
22389
22390 * dispextern.h (enum lface_attribute_index): New member
22391 LFACE_FONTSET_INDEX.
22392
22393 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22394
22395 2008-02-01 Kenichi Handa <handa@m17n.org>
22396
22397 * coding.c (coding_set_destination): Fix coding->destination for
22398 the case converting a region.
22399 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22400 (encode_coding_object): Fix coding->dst_pos and
22401 coding->dst_pos_byte for the case converting a region.
22402
22403 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22404
22405 * character.h (BYTE8_STRING): New macro.
22406
22407 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22408
22409 2008-02-01 Kenichi Handa <handa@m17n.org>
22410
22411 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22412 characters by octal form.
22413
22414 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22415
22416 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22417 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22418 _fetch_multibyte_char_len.
22419 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22420
22421 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22422
22423 * casefiddle.c (casify_object): Simplify. Handle the case that
22424 the case conversion change the byte length.
22425 (casify_region): Likewise.
22426
22427 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22428
22429 * character.c (_fetch_multibyte_char_len): Delete this variable.
22430 (syms_of_character): Setup Vprintable_chars.
22431
22432 * editfns.c (Fchar_equal): Fix for the unibyte case.
22433 (Finsert_byte): New function.
22434 (syms_of_editfns): Defsubr it.
22435
22436 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22437 of direct code 0x3ffff.
22438
22439 * search.c (Freplace_match): Fix for the unibyte case.
22440
22441 2008-02-01 Kenichi Handa <handa@m17n.org>
22442
22443 * lread.c (safe_to_load_p): Fix the logic.
22444
22445 * syntax.c (scan_words): Don't treat characters belonging to
22446 different scripts as constituting a word.
22447
22448 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22449
22450 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22451
22452 * emacs.c (main): In the case of --unibyte, instead of aborting on
22453 finding non-empty buffer, make it unibyte.
22454
22455 2008-02-01 Kenichi Handa <handa@m17n.org>
22456
22457 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22458 to create a fontset.
22459
22460 2008-02-01 Dave Love <fx@gnu.org>
22461
22462 * character.c (Funibyte_char_to_multibyte): Doc fix.
22463
22464 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22465
22466 2008-02-01 Kenichi Handa <handa@m17n.org>
22467
22468 * fontset.c (fontset_add): Make the type `int'.
22469 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22470
22471 * character.c (unibyte_char_to_multibyte)
22472 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22473 charset_unibyte, not charset_primary.
22474
22475 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22476
22477 * charset.c (charset_unibyte): Rename from charset_primary.
22478 (Funibyte_charset): Rename from Fprimary_charset.
22479 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22480 (syms_of_charset): Adjust for the above changes.
22481
22482 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22483 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22484 it->multibyte_p is zero.
22485
22486 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22487 Delete extern.
22488
22489 2008-02-01 Kenichi Handa <handa@m17n.org>
22490
22491 * coding.c (Fdefine_coding_system_internal): Fix category setting
22492 for a coding system of type iso-2022.
22493
22494 2008-02-01 Kenichi Handa <handa@m17n.org>
22495
22496 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22497
22498 2008-02-01 Kenichi Handa <handa@m17n.org>
22499
22500 * syntax.c (Vnext_word_boundary_function_table): New variable.
22501 (next-word-boundary-function-table): Declare it as a Lisp variable
22502 in syms_of_syntax.
22503 (scan_words): Call functions in Vnext_word_boundary_function_table
22504 if any.
22505
22506 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22507
22508 * fontset.c (fs_load_font): If fontp->charset is not negative,
22509 return fontp without setting its members.
22510
22511 2008-02-01 Dave Love <fx@gnu.org>
22512
22513 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22514
22515 * m/sparc.h (HAVE_ALLOCA): Delete.
22516
22517 * s/irix6-5.h: Don't include strings.h.
22518 (bcopy, bzero, bcmp): Don't undef.
22519
22520 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22521
22522 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22523 (TIOCSIGSEND): Don't test IRIX6.
22524 (bcopy, bzero, bcmp): Define conditionally.
22525
22526 2008-02-01 Kenichi Handa <handa@m17n.org>
22527
22528 * buffer.c (Qas, Qmake, Qto): New variables.
22529 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22530 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22531
22532 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22533 we are inserting a process output into a multibyte buffer.
22534
22535 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22536 multibyte_char_to_unibyte.
22537
22538 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22539 by the primary charset, make it eight-bit char.
22540 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22541
22542 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22543 (charset_8_bit__control, charset_8_bit_graphic)
22544 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22545 (define_charset_internal): New function.
22546 (syms_of_charset): Call define_charset_internal for pre-defined
22547 charsets.
22548
22549 * charset.h (charset_8_bit): Extern it.
22550
22551 * coding.c (make_conversion_work_buffer): Adjust for the change
22552 of Fset_buffer_multibyte.
22553 (encode_coding_raw_text): Increment p0 in the loop.
22554
22555 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22556
22557 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22558 for the change of Fset_buffer_multibyte.
22559
22560 * fns.c (Fstring_to_multibyte): New function.
22561 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22562
22563 2008-02-01 Dave Love <fx@gnu.org>
22564
22565 * xfns.c (x_put_x_image): Declare args.
22566
22567 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22568 (try_font_list): Declare an arg.
22569
22570 * xdisp.c (message2_nolog, set_message): Declare an arg.
22571
22572 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22573
22574 * syntax.c (scan_sexps_forward): Declare an arg.
22575
22576 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22577 Declare an arg.
22578
22579 * lisp.h (Fnew_fontset): Declare.
22580
22581 * keymap.c (push_key_description): Call CHARACTERP correctly.
22582
22583 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22584 (face_for_char): Delete unused vars.
22585 (Fset_fontset_font): Doc fix. Delete unused vars.
22586
22587 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22588
22589 * composite.c (update_compositions): Declare arg.
22590
22591 * cm.c (calccost, cmgoto): Declare args.
22592
22593 * charset.c: Remove `emacs' conditional. Doc fixes.
22594 (map_char_table_for_charset): Declare.
22595
22596 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22597
22598 * ccl.c: Remove `emacs' conditional.
22599
22600 2008-02-01 Kenichi Handa <handa@m17n.org>
22601
22602 The following changes are to allow specifying multiple font
22603 patterns for a character range (specified by script or charset).
22604
22605 * Makefile.in (abbrev.o): Depend on syntax.h.
22606 (xfaces.o): Depend on charset.h.
22607
22608 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22609 SINGLE_BYTE_CHAR_P.
22610
22611 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22612
22613 * character.h (Vchar_script_table): Extern it.
22614
22615 * character.c (Vscript_alist): Delete.
22616 (Vchar_script_table, Qchar_script_table): New variable.
22617 (syms_of_character): Declare Vchar_script_table as a lisp variable
22618 and initialize it.
22619
22620 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22621 have property char-table-extra-slots, make no extra slot.
22622
22623 * dispextern.h (struct face): Delete member `charset'.
22624 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22625 SINGLE_BYTE_CHAR_P.
22626 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22627 Add prototypes.
22628 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22629 (generate_ascii_font_name): Rename from generate_ascii_font.
22630
22631 * fontset.h (get_font_repertory_func): New prototype.
22632 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22633 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22634
22635 * fontset.c (Qprepend, Qappend): New variables.
22636 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22637 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22638 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22639 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22640 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22641 (load_font_get_repertory): New functions.
22642 (fontset_set): Delete.
22643 (fontset_face): New arg FACE. Return face ID, not face.
22644 Complete re-write to handle new fontset structure. Change caller.
22645 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22646 (face_for_char): Don't call lookup_face.
22647 (make_fontset_for_ascii_face): New arg FACE.
22648 (fs_load_font): New arg CHARSET_ID. Don't check
22649 Vfont_encoding_alist here.
22650 (find_font_encoding): New function.
22651 (list_fontsets): Use STRINGP, not ! NILP.
22652 (accumulate_script_ranges): New function.
22653 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22654 re-written to handle new fontset structure.
22655 (Ffontset_font): Return a copy of element.
22656 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22657 docstring of font-encoding-alist.
22658
22659 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22660 (Fset_fotset_font): Fix arguments to 5.
22661
22662 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22663
22664 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22665 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22666 (highlight_trailing_whitespace): Adjust for the change of
22667 lookup_named_face.
22668
22669 * xfaces.c: Include charset.h.
22670 (load_face_font): Delete argument C. Change caller.
22671 (generate_ascii_font_name): Rename from generate_ascii_font.
22672 (font_name_registry): New function.
22673 (cache_face): Store ascii faces before non-ascii faces in buckets.
22674 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22675 Lookup only ascii faces.
22676 (lookup_non_ascii_face): New function.
22677 (lookup_named_face): Delete argument C. Change caller.
22678 (lookup_derived_face): Delete argument C. Change caller.
22679 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22680 a string, just call font_list with it.
22681 (choose_face_font): Delete arguments FACE and C. New arg
22682 FONT_SPEC. Change caller.
22683 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22684 Change caller.
22685 (realize_non_ascii_face): New function.
22686 (realize_x_face): Call load_face_font here.
22687 (realize_tty_face): Delete argument C. Change caller.
22688 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22689 get a face ID.
22690 (dump_realized_face): Don't print charset of FACE.
22691
22692 * xfns.c (x_set_font): Always call x_new_fontset and
22693 store_frame_parameter.
22694 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22695 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22696
22697 * xterm.h (x_get_font_repertory): Extern it.
22698
22699 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22700 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22701 it->multibyte_p is zero.
22702 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22703 (x_new_fontset): If FONTSETNAME doesn't match any existing
22704 fontsets, create a new one.
22705 (x_get_font_repertory): New function.
22706
22707 2008-02-01 Kenichi Handa <handa@m17n.org>
22708
22709 * coding.c (Ffind_coding_systems_region_internal): Detect an
22710 ASCII only string correctly.
22711
22712 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22713 version is 0.
22714
22715 2008-02-01 Kenichi Handa <handa@m17n.org>
22716
22717 * lread.c: Include "coding.h".
22718 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22719 (load_each_byte, unread_char): New variables.
22720 (readchar_backlog): Delete.
22721 (readchar): Return a character unless load_each_byte is nonzero.
22722 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22723 cons. If unread_char is not -1, simply return it.
22724 (unreadchar): Handle the case that readcharfun is
22725 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22726 (read_multibyte): Delete.
22727 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22728 (read_emacs_mule_char): New functions.
22729 (Fload): Even if the file doesn't have the extension ".elc", if
22730 safe_to_load_p returns a positive version number, assume that the
22731 file contains bytecompiled code. If the version is less than 22,
22732 load the file while decoding multibyte sequences by emacs-mule.
22733 (readevalloop): Don't use readchar_backlog.
22734 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22735 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22736 (read_escape): Delete the arg BYTEREP.
22737 (read1): Set load_each_byte to 1 temporarily while handling
22738 #@NUMBER. Don't call read_multibyte.
22739 (read_vector): Call Fread with a cons. If readcharfun is
22740 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22741 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22742 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22743 and Qload_force_doc_strings.
22744
22745 2008-02-01 Kenichi Handa <handa@m17n.org>
22746
22747 * xdisp.c (face_before_or_after_it_pos): Call
22748 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22749
22750 2008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * character.h (TRAILING_CODE_P): New macro.
22753 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22754 (string_char_with_unification): Fix prototype.
22755 (Vscript_alist): Extern it.
22756
22757 * character.c (Vscript_alist): New variable.
22758 (string_char_with_unification, str_as_unibyte)
22759 (string_escape_byte8): Add `const' to local variables.
22760 (syms_of_character): Declare script-alist as a Lisp variable.
22761
22762 * charset.h (Vcharset_ordered_list): Extern it.
22763 (charset_ordered_list_tick): Extern it.
22764 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22765 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22766 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22767 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22768 (Funify_charset): Adjust for the change of Funify_charset.
22769
22770 * charset.c (charset_ordered_list_tick): New variable.
22771 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22772 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
22773 deunify instead of unify a charset.
22774 (string_xstring_p): Add `const' to local variables.
22775 (find_charsets_in_text): Add `const' to arguments and local variables.
22776 (encode_char): Adjust for the change of Funify_charset. Fix
22777 detecting of invalid code.
22778 (Fset_charset_priority): Increment charset_ordered_list_tick.
22779 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22780 and TO_CODE.
22781
22782 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22783 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22784 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22785 (decode_coding_ccl, consume_chars)
22786 (Ffind_coding_systems_region_internal)
22787 (Fcheck_coding_systems_region): Add `const' to local variables.
22788
22789 * print.c (print_object): Use octal form for printing the
22790 contents of a bool vector.
22791
22792 2008-02-01 Dave Love <fx@gnu.org>
22793
22794 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22795 <version == 20>: Refuse to load.
22796
22797 2008-02-01 Dave Love <fx@gnu.org>
22798
22799 * fns.c: Move coding.h.
22800 (Qcodeset, Qdays, Qmonths): New.
22801 (concat): Use CHARACTERP instead of INTEGERP.
22802 (Flocale_codeset): Delete.
22803 (Flanginfo): New function.
22804 (syms_of_fns): Change accordingly.
22805
22806 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22807
22808 2008-02-01 Dave Love <fx@gnu.org>
22809
22810 * casetab.c (init_casetab_once, init_casetab_once): Fix
22811 CHAR_TABLE_SET call.
22812
22813 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22814
22815 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22816
22817 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22818 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22819 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22820
22821 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22822
22823 * coding.c (ENCODE_DESIGNATION, decode_eol)
22824 (make_conversion_work_buffer, code_conversion_restore)
22825 (Fdefine_coding_system_internal): Convert Lisp types.
22826 (code_conversion_restore): Use EQ, not ==.
22827 (Fencode_coding_string): Fix code_convert_string call.
22828
22829 * coding.h (code_convert_region): Fix prototype.
22830
22831 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22832
22833 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22834 (Ffontset_info): Convert Lisp types.
22835
22836 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22837
22838 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22839
22840 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22841
22842 * chartab.c: Include "...h", not <...h> in some cases.
22843
22844 * callproc.c (Fcall_process): Remove unused variables.
22845
22846 2008-02-01 Dave Love <fx@gnu.org>
22847
22848 * coding.c (Fset_coding_system_priority): Allow null arg list.
22849
22850 2008-02-01 Dave Love <fx@gnu.org>
22851
22852 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22853 (Fself_insert_and_exit): Use CHARACTERP.
22854
22855 * callproc.c (Fcall_process): Remove unused vars.
22856
22857 * xterm.c (XTread_socket): Add extra dead keysyms.
22858
22859 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22860
22861 * dispextern.h: Remove prototypes for redraw_frame,
22862 redraw_garbaged_frames.
22863
22864 * cmds.c (Fself_insert_command): Use CHARACTERP.
22865
22866 * chartab.c (make_sub_char_table): Remove unused var.
22867 (Fset_char_table_default, Fmap_char_table): Doc fix.
22868
22869 * keymap.c (access_keymap): Remove generic char code.
22870 (push_key_description): Use CHARACTERP.
22871
22872 2008-02-01 Dave Love <fx@gnu.org>
22873
22874 * charset.c: Doc fixes.
22875 (Funify_charset): Extra checking.
22876
22877 2008-02-01 Dave Love <fx@gnu.org>
22878
22879 * lread.c: Remove some unused variables.
22880 (safe_to_load_p): If safe, return the magic number version byte.
22881 (Fload): Maybe use load-with-code-conversion.
22882
22883 2008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * category.c (Fmodify_category_entry): Don't modify the contents
22886 of category_set for characters out of the range. Avoid
22887 unnecessary modification.
22888
22889 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22890 Vchar_unify_table. The default value of the table is now nil.
22891
22892 * character.c (syms_of_character): Setup Vchar_width_table for
22893 eight-bit-control and raw-byte chars.
22894
22895 * charset.h (enum define_charset_arg_index): Delete
22896 charset_arg_parents and add charset_arg_subset and
22897 charset_arg_superset.
22898 (enum charset_attr_index): Delete charset_parents and add
22899 charset_subset and charset_superset.
22900 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22901 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22902 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22903 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22904 (CHARSET_SUPERSET): New macros.
22905 (charset_work): Extern it.
22906 (ENCODE_CHAR): Use charset_work.
22907 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22908 (map_charset_chars): Extern it.
22909
22910 * charset.c (load_charset_map): Set the default value of encoder
22911 and deunifier char-tables to nil.
22912 (map_charset_chars): Change argument. Change callers. Use
22913 map_char_table_for_charset instead of map_char_table.
22914 (Fmap_charset_chars): New optional args from_code and to_code.
22915 (Fdefine_charset_internal): Adjust for the change of
22916 `define-charset' (:parents -> :subset or :superset).
22917 (charset_work): New variable.
22918 (encode_char, syms_of_charset): Adjust for the change of
22919 Fdefine_charset_internal.
22920 (Ffind_charset_string): Setup the vector `charsets' correctly.
22921
22922 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22923 the previous change.
22924 (char_table_ref_and_range): Adjust for the above change.
22925 (map_sub_char_table_for_charset): New function.
22926 (map_char_table_for_charset): New function.
22927
22928 * keymap.c (describe_vector): Handle a char-table directly here.
22929 (describe_char_table): Delete.
22930
22931 * lisp.h (map_charset_chars): Delete.
22932
22933 2008-02-01 Dave Love <fx@gnu.org>
22934
22935 * fns.c (count_combining): Comment out (unused).
22936 (Flocale_codeset): New.
22937 (syms_of_fns): Defsubr it.
22938
22939 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22940 (size_t): Remove.
22941
22942 2008-02-01 Dave Love <fx@gnu.org>
22943
22944 * Makefile.in (chartab.o): Depend on charset.h.
22945
22946 2008-02-01 Kenichi Handa <handa@m17n.org>
22947
22948 * character.c (syms_of_character): Set the default value of
22949 Vprintable_chars to Qnil.
22950
22951 2008-02-01 Dave Love <fx@gnu.org>
22952
22953 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22954
22955 2008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 * charset.c (load_charset_map): Handle the case that from < to
22958 correctly.
22959
22960 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22961 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22962 Pay attention to raw-8-bit chars.
22963
22964 2008-02-01 Kenichi Handa <handa@m17n.org>
22965
22966 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22967 It is not bytecompiled now.
22968
22969 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22970 (charset_jisx0208): New variables.
22971 (Fdefine_charset_internal): Setup them if appropriate.
22972 (init_charset_once): Initialize them to -1.
22973
22974 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22975 (charset_jisx0208): Extern them.
22976
22977 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22978 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22979 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22980 (setup_iso_safe_charsets): Fix arguments to Fassq.
22981 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22982 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22983 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22984 (encode_coding_iso_2022): Change the 1st arg to
22985 ENCODE_ISO_CHARACTER to a variable.
22986
22987 2008-02-01 Kenichi Handa <handa@m17n.org>
22988
22989 * charset.h (enum define_charset_arg_index): New enums
22990 charset_arg_min_code and charset_arg_max_code.
22991 (struct charset): New member char_index_offset.
22992
22993 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22994 Take charset->char_index_offset into account.
22995 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22996 args[charset_arg_max_code]. Setup charset.char_index_offset.
22997 (syms_of_charset): Fix args to Fdefine_charset_internal.
22998
22999 2008-02-01 Dave Love <fx@gnu.org>
23000
23001 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23002
23003 2008-02-01 Dave Love <fx@gnu.org>
23004
23005 * coding.c: Doc fixes.
23006 (Fcoding_system_aliases): Fix return value.
23007 (Qmac): Remove (duplicated) definition.
23008
23009 2008-02-01 Dave Love <fx@gnu.org>
23010
23011 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23012 New functions.
23013
23014 * character.c (Fstring): Doc fix.
23015
23016 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23017
23018 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
23019 (font-encoding-alist): Doc fix.
23020
23021 2008-02-01 Dave Love <fx@gnu.org>
23022
23023 * term.c (costs_set): Declare static, non-initialized for pcc.
23024 (encode_terminal_code): Remove unused var.
23025
23026 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23027 for K&R.
23028
23029 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23030
23031 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23032 (suffixes): Move out of make_subsidiaries for K&R.
23033
23034 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23035
23036 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23037
23038 2008-02-01 Dave Love <fx@gnu.org>
23039
23040 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23041
23042 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23043
23044 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23045
23046 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23047
23048 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23049
23050 2008-02-01 Kenichi Handa <handa@m17n.org>
23051
23052 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23053 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23054
23055 2008-02-01 Kenichi Handa <handa@m17n.org>
23056
23057 * coding.c (decode_coding_charset): Adjust for the change of
23058 Fdefine_coding_system_internal.
23059 (Fdefine_coding_system_internal): For a coding system of
23060 `charset' type, store a list of charset IDs in
23061 `charset_attr_charset_valids' element of coding attributes.
23062
23063 2008-02-01 Kenichi Handa <handa@m17n.org>
23064
23065 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23066 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23067 caller. Handle 2-byte and 3-byte charsets correctly.
23068 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23069 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23070 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23071 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23072 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23073 sequence.
23074 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23075 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23076 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23077 and alt&rule composition.
23078 (decode_coding_iso_2022): Handle composition correctly.
23079 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23080
23081 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23082 re-defining a charset. If the charset has :emacs-mule-id, setup
23083 emacs_mule_bytes.
23084 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23085
23086 2008-02-01 Kenichi Handa <handa@m17n.org>
23087
23088 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23089 (encode_coding_big5, encode_coding_charset): If coding requires safe
23090 encoding, produce a character specified by
23091 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23092
23093 2008-02-01 Dave Love <fx@gnu.org>
23094
23095 * xterm.c (XSetIMValues): Declare.
23096
23097 * process.c: Conditionally include sys/wait.h, pty.h.
23098
23099 * print.c (print_object): Fix print format for 64-bit systems.
23100
23101 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23102
23103 * buffer.c (emacs_strerror): Declare.
23104
23105 * fontset.c (Fclear_face_cache): Declare.
23106 (accumulate_font_info): Comment-out (unused).
23107 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23108 variables.
23109
23110 * character.h (string_escape_byte8): Declare.
23111
23112 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23113 unused vars.
23114 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23115 (Fmap_charset_chars): Doc fix.
23116
23117 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23118 (Fset_coding_system_priority, Fset_coding_system_priority)
23119 (Fdefine_coding_system_internal): Doc fix.
23120
23121 2008-02-01 Dave Love <fx@gnu.org>
23122
23123 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23124
23125 2008-02-01 Kenichi Handa <handa@m17n.org>
23126
23127 * character.c (string_escape_byte8): Make multibyte string with
23128 correct size.
23129
23130 * charset.c (Fmake_char): Delete unnecessary code.
23131
23132 2008-02-01 Kenichi Handa <handa@m17n.org>
23133
23134 * xfns.c (x_encode_text): Allocate coding.destination here, and
23135 call encode_coding_object with dst_object Qnil.
23136
23137 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23138 multibyte form correctly.
23139
23140 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23141 against Vfont_encoding_alist.
23142
23143 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23144 handling of charset list.
23145 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23146 (decode_coding_object): Move point to coding->dst_pos before
23147 calling post-read-conversion function.
23148 (encode_coding_object): Give correct arguments to
23149 pre-write-conversion. Ignore the return value of
23150 pre-write-conversion function. Pay attention to the case that
23151 pre-write-conversion changes the current buffer. If dst_object is
23152 Qt, even if coding->src_bytes is zero, allocate at least one byte
23153 to coding->destination.
23154
23155 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23156
23157 * charset.c (Fmake_char): Make it more backward compatible.
23158 (Fmap_charset_chars): Fix docstring.
23159
23160 2008-02-01 Dave Love <fx@gnu.org>
23161
23162 * coding.c: Doc fixes.
23163 (Fdefine_coding_system_alias): Use names, not symbols, in
23164 coding-system-alist.
23165
23166 2008-02-01 Kenichi Handa <handa@m17n.org>
23167
23168 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23169 of calling free_realized_face.
23170
23171 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23172
23173 * charset.c (read_hex): Don't treat SPC as a comment starter.
23174 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23175 (Fdecode_char): Fix typo.
23176
23177 2008-02-01 Kenichi Handa <handa@m17n.org>
23178
23179 * charset.h (struct charset): New member `code_space_mask'.
23180
23181 * coding.c (coding_set_source): Delete the local variable beg_byte.
23182 (encode_coding_charset, Fdefine_coding_system_internal):
23183 Delete the local variable charset.
23184 (Fdefine_coding_system_internal): Setup
23185 attrs[coding_attr_charset_valids] correctly.
23186
23187 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23188 member to check if CODE is valid or not.
23189 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23190 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23191 is within the range of charset->min_code and carset->max_code.
23192
23193 2008-02-01 Dave Love <fx@gnu.org>
23194
23195 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23196
23197 * dispextern.h (generate_ascii_font): Fix return type.
23198
23199 * xfaces.c (generate_ascii_font): Fix arg declaration.
23200
23201 * coding.c (coding_inherit_eol_type)
23202 (Fset_terminal_coding_system_internal)
23203 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23204
23205 2008-02-01 Kenichi Handa <handa@m17n.org>
23206
23207 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23208 multiple charsets correctly.
23209
23210 2008-02-01 Kenichi Handa <handa@m17n.org>
23211
23212 * search.c (boyer_moore): Fix handling of multibyte character
23213 translation.
23214
23215 * xdisp.c (display_mode_element): When the variable `elt' is
23216 changed, update `this' and `lisp_string'.
23217
23218 2008-02-01 Kenichi Handa <handa@m17n.org>
23219
23220 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23221
23222 * callproc.c (Fcall_process): Be sure to give the current buffer
23223 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23224
23225 * charset.c (struct charset_map_entries): New struct.
23226 (load_charset_map): Rename from parse_charset_map. New args
23227 entries and n_entries. Change caller.
23228 (load_charset_map_from_file): Rename from load_charset_map.
23229 Change caller. New arg control_flag. Call load_charset_map at
23230 the tail.
23231 (load_charset_map_from_vector): New function.
23232 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23233 (encode_char): If the charset is compact, change a character index
23234 to a code point.
23235
23236 * coding.c (coding_alloc_by_making_gap): Check the case that the
23237 source and destination are the same correctly.
23238 (decode_coding_raw_text): Set coding->consumed_char and
23239 coding->consumed to 0.
23240 (produce_chars): If coding->chars_at_source is nonzero, update
23241 coding->consumed_char and coding->consumed before calling
23242 alloc_destination.
23243 (Fdefine_coding_system_alias): Register ALIAS in
23244 Vcoding_system_alist.
23245 (syms_of_coding): Define `no-conversion' coding system at the tail.
23246
23247 * fileio.c (Finsert_file_contents): Set coding_system instead of
23248 val. If the current buffer is multibyte, always call
23249 decode_coding_gap.
23250
23251 * xfaces.c (try_font_list): Give higher priority to fontset's
23252 family than face's family.
23253
23254 2008-02-01 Kenichi Handa <handa@m17n.org>
23255
23256 * callproc.c (Fcall_process): Be sure to give the current buffer
23257 to decode_coding_c_string.
23258
23259 * xfaces.c (try_font_list): Give a family specified in a fontset
23260 higher priority than a family specified in a face.
23261
23262 2008-02-01 Kenichi Handa <handa@m17n.org>
23263
23264 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23265 Fix arguments to insert_from_buffer.
23266
23267 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23268
23269 2008-02-01 Kenichi Handa <handa@m17n.org>
23270
23271 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23272 (decode_coding_gap): Set coding->dst_multibyte correctly.
23273
23274 2008-02-01 Kenichi Handa <handa@m17n.org>
23275
23276 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23277 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23278 (encode_coding_utf_16): Substitute coding->default_char for
23279 non-Unicode characters.
23280 (decode_coding): Don't call record_insert here.
23281 (setup_coding_system): Initialize `surrogate' of
23282 coding->spec.utf_16 to 0.
23283 (EMIT_ONE_BYTE): Fix for multibyte case.
23284
23285 * insdel.c (insert_from_gap): Call record_insert.
23286
23287 2008-02-01 Kenichi Handa <handa@m17n.org>
23288
23289 * casefiddle.c (casify_region): Fix multibyte case.
23290
23291 * character.c (c_string_width): Add return type `int'.
23292 (char_string_with_unification): Delete arg ADVANCED.
23293
23294 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23295 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23296 (CHAR_STRING_ADVANCE): Make it do-while statement.
23297
23298 * chartab.c (sub_char_table_set_range): Optimize for the case
23299 DEPTH == 3. Add workaround code for a GCC optimization bug.
23300
23301 * charset.c (parse_charset_map): Remove an unused variable.
23302
23303 * coding.c: Delete unused variables.
23304
23305 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23306 earlier. If inserted is zero and the coding system doesn't
23307 require flushing, don't call decode_coding_gap.
23308
23309 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23310
23311 2008-02-01 Kenichi Handa <handa@m17n.org>
23312
23313 The following changes are for using Unicode as an internal
23314 character model, and use UTF-8 format for buffer/string
23315 representation.
23316
23317 * .gdbinit (xchartable): Adjust for the change of char table structure.
23318 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23319
23320 * Makefile.in (obj): Add character.o and chartab.o.
23321 (lisp, shortlisp): Remove utf-8.elc.
23322 (*.o): For many files, change dependency on charset.h to
23323 character.h, and add dependency on character.h.
23324 (character.o, chartab.o): New targets.
23325
23326 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23327 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23328 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23329 of "charset.h".
23330
23331 * dired.c, filelock.c: Include "character.h".
23332
23333 * alloc.c: Include "character.h" instead of "charset.h".
23334 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23335 (syms_of_alloc): Remove defsubr for Smake_char_table.
23336
23337 * buffer.c: Include "character.h" instead of "charset.h", don't
23338 include "coding.h".
23339 (Fset_buffer_multibyte): Adjust for UTF-8.
23340
23341 * buffer.h: EXFUN Fbuffer_live_p.
23342
23343 * callproc.c: Include "character.h" instead of "charset.h".
23344 (Fcall_process): Big change for the new code-conversion APIs.
23345
23346 * casetab.c: Include "character.h" instead of "charset.h".
23347 (set_canon, set_identity, shuffle): Adjust for the new
23348 map_char_table spec.
23349 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23350 accessing the char table structure.
23351
23352 * chartab.c: New file that implements char table.
23353
23354 * category.c: Include "character.h".
23355 (copy_category_entry): New function.
23356 (copy_category_table): Call map_char_table and copy_category_entry.
23357 (Fmake_category_table): Initialize all top-level slots.
23358 (char_category_set): New function.
23359 (modify_lower_category_set): Delete.
23360 (Fmodify_category_entry): Call char_table_ref_and_range.
23361
23362 * category.h (CATEGORY_SET): Just call char_category_set.
23363
23364 * ccl.c: Include "character.h".
23365 (Qccl, Qcclp): New variables.
23366 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23367 it's less than 256.
23368 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23369 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23370 and DST type.
23371 (ccl_driver): Change types of argument, adjust code accordingly.
23372 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23373 ccl_driver.
23374 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23375
23376 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23377 New members src_multibyte, dst_multibyte, consumed, and produced.
23378 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23379 (CODING_SPEC_CCL_PROGRAM): New macro.
23380 (ccl_driver): Update prototype.
23381 (Qccl, Qcclp, Fccl_program_p): Extern them.
23382 (CHECK_CCL_PROGRAM): New macro.
23383
23384 * character.c, character.h, chartab.c: New files.
23385
23386 * charset.c: Mostly re-written. Move character and multibyte sequence
23387 handling codes to character.c.
23388
23389 * charset.h: Mostly re-written. Move character and multibyte sequence
23390 handling codes to character.h.
23391
23392 * coding.c, coding.h: Mostly re-written.
23393
23394 * composite.c: Include "character.h" instead of "charset.h".
23395 (CHAR_WIDTH): Move to character.h.
23396 (HASH_KEY, HASH_VALUE): Delete.
23397
23398 * composite.h (enum composition_method): Change order of enumeration
23399 symbols.
23400
23401 * data.c: Include "character.h" instead of "charset.h".
23402 (Faref): Call CHAR_TABLE_REF for a char table.
23403 (Faset): Call CHAR_TABLE_SET for a char table.
23404
23405 * dispextern.h (free_realized_face, check_face_attribytes)
23406 (generate_ascii_font): Extern them.
23407 (free_realized_multibyte_face): Delete extern.
23408
23409 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23410 table structure.
23411
23412 * editfns.c: Include "character.h" instead of "charset.h".
23413 (Fchar_to_string): Always call CHAR_STRING.
23414
23415 * emacs.c (main): Call init_charset_once, init_charset,
23416 syms_of_chartab, and syms_of_character.
23417
23418 * fileio.c: Include "character.h" instead of "charset.h".
23419 (Finsert_file_contents): Big change for the new code-conversion API.
23420 (choose_write_coding_system, Fwrite_region): Likewise.
23421 (build_annotations_2): Delete.
23422 (e_write): Big change for the new code-conversion API.
23423
23424 * fns.c: Include "character.h" instead of "charset.h".
23425 (copy_sub_char_table): Move to chartab.c.
23426 (Fcopy_sequence): Call copy_char_table for a char table.
23427 (concat): Delete codes calling count_multibyte.
23428 (string_char_to_byte, string_byte_to_char): Adjust for the new
23429 multibyte form.
23430 (internal_equal): Adjust for the change of char table structure.
23431 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23432 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23433 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23434 (char_table_translate, optimize_sub_char_table)
23435 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23436 chartab.c.
23437 (char_table_ref_and_index): Delete.
23438 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23439 (Fmd5): Call preferred_coding_system instead of accessing
23440 Vcoding_category_list. Adjust for the new code-conversion API.
23441 (syms_of_fns): Move defsubr for char table related functions to
23442 chartab.c.
23443
23444 * fontset.c: Mostly re-written.
23445
23446 * fontset.h (struct font_info): Change type of the member encoding_type.
23447 (enum FONT_SPEC_INDEX): New enum.
23448 (fontset_font_pattern, fs_load_font): Update prototype.
23449 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23450
23451 * indent.c: Include "character.h" instead of "charset.h".
23452 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23453
23454 * insdel.c: Include "character.h" instead of "charset.h".
23455 (copy_text): Don't refer to Vnonascii_translation_table.
23456 (insert_from_gap): New function.
23457
23458 * keyboard.c: Include "character.h" instead of "charset.h".
23459 (command_loop_1): Never call direct_output_forward_char before
23460 a non-ASCII character.
23461 (read_char): If Vkeyboard_translate_table is a char table, always
23462 translate a character.
23463
23464 * keymap.c: Include "character.h".
23465 (store_in_keymap): Handle the case that IDX is a cons.
23466 (Fdefine_key): Handle the case that KEY is a cons and the car part
23467 is also a cons (range).
23468 (push_key_description): Adjust for the new character code.
23469 (describe_vector): Call describe_char_table for a char table.
23470 (describe_char_table): New function.
23471
23472 * keymap.h (describe_char_table): Extern it.
23473
23474 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23475 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23476 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23477 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23478 Delete.
23479 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23480 structure.
23481 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23482 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23483 (CHARTAB_SIZE_BITS_3): New macros.
23484 (chartab_size): Extern it.
23485 (struct Lisp_Char_Table): Re-design.
23486 (struct Lisp_Sub_Char_Table): New structure.
23487 (HASH_KEY, HASH_VALUE): Move from fns.c.
23488 (CHARACTERBITS): Define as 22.
23489 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23490 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23491 (GC_SUB_CHAR_TABLE_P): New macro.
23492 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23493 (code_convert_string_norecord): Deleted extern.
23494 (init_character_once, syms_of_character, init_charset)
23495 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23496
23497 * lread.c: Include "character.h".
23498 (read_multibyte): New arg NBYTES.
23499 (read_escape): Change the meaning of returned *BYTEREP.
23500 (to_multibyte): Delete.
23501 (read1): Adjust the handling of char table and string.
23502
23503 * print.c: Include "character.h" instead of "charset.h".
23504 (print_string): Convert 8-bit raw bytes to octal form by
23505 string_escape_byte8.
23506 (print_object): Adjust for the new multibyte form. Print 8-bit
23507 raw bytes always in octal form. Handle sub char table correctly.
23508
23509 * process.c: Include "character.h" instead of "charset.h".
23510 (read_process_output, send_process): Adjust for the new
23511 code-conversion API.
23512
23513 * puresize.h (BASE_PURESIZE): Increase.
23514
23515 * regex.c: Include "character.h" instead of "charset.h".
23516 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23517 (regex_compile): Accept a range whose starting and ending
23518 character have different leading bytes.
23519 (analyse_first): Adjust for the above change.
23520
23521 * search.c: Include "character.h" instead of "charset.h".
23522 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23523 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23524
23525 * syntax.c: Include "character.h" instead of "charset.h".
23526 (syntax_parent_lookup): Delete.
23527 (Fmodify_syntax_entry): Accept a cons as CHAR.
23528 (skip_chars): Adjust for the new multibyte form.
23529 (init_syntax_once): Call char_table_set_range instead of directly
23530 accessing the structure of a char table.
23531
23532 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23533 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23534 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23535 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23536
23537 * term.c: Include "buffer.h" and "character.h".
23538 (encode_terminal_code, write_glyphs): Adjust for the new
23539 code-conversion API.
23540 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23541
23542 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23543
23544 * xdisp.c: Include "character.h".
23545 (get_next_display_element): Adjust for the new multibyte form.
23546 (disp_char_vector): Adjust for the new char table structure.
23547 (decode_mode_spec_coding): Adjust for the new structure of
23548 coding system.
23549 (decode_mode_spec): Adjust for the new code-conversion API.
23550
23551 * xfaces.c: Include "character.h" instead of "charset.h".
23552 (load_face_font): Adjust for the change of choose_face_font and
23553 FS_LOAD_FONT.
23554 (generate_ascii_font): New function.
23555 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23556 (set_font_frame_param): Adjust for the change of choose_face_font.
23557 (free_realized_face): Make it public.
23558 (free_realized_faces_for_fontset): Rename from
23559 free_realized_multibyte_face. Free also faces realized for ASCII.
23560 (choose_face_font): Change arguments. Adjust for the change of
23561 fontset_font_pattern and FS_LOAD_FONT.
23562
23563 * xfns.c: Include "character.h".
23564 (x_encode_text): Adjust for the new code-conversion API.
23565
23566 * xselect.c: Don't include "charset.h".
23567 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23568
23569 * xterm.c: Include "character.h".
23570 (x_encode_char): New argument CHARSET. Change caller.
23571 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23572 Call ENCODE_CHAR instead of SPLIT_CHAR.
23573 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23574 CHAR_WIDTH instead of CHARSET_WIDTH.
23575 (XTread_socket): Adjust for the new code-conversion API.
23576 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23577 (x_load_font): Adjust for the change of struct font.
23578
23579 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23580
23581 * xfaces.c (face_at_buffer_position): Remove unused vars.
23582
23583 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23584
23585 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23586 Fix overflow checking.
23587
23588 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23589
23590 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23591 Cancel previous change.
23592
23593 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23594
23595 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23596 ccl->eight_bit_control. Fix check for buffer overflow.
23597 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23598 (ccl_driver): Initialize extra_bytes to 0.
23599
23600 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23601
23602 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23603 return it ORed with ctrl_modifier.
23604
23605 2008-01-29 Miles Bader <miles@gnu.org>
23606
23607 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23608
23609 2008-01-28 Jason Rumney <jasonr@gnu.org>
23610
23611 * w32.c (stat): Don't double check for networked drive.
23612
23613 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23614
23615 * window.c (run_window_configuration_change_hook): New function.
23616 Code extracted from set_window_buffer. Set the selected frame.
23617 (set_window_buffer): Use it.
23618 * window.h (run_window_configuration_change_hook): Declare.
23619 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23620
23621 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23622
23623 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23624
23625 * Makefile.in: Remove references to unused macros.
23626
23627 2008-01-26 Eli Zaretskii <eliz@gnu.org>
23628
23629 * w32.c (g_b_init_get_sid_sub_authority)
23630 (g_b_init_get_sid_sub_authority_count): New static variables.
23631 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23632 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23633 (init_user_info): Use them to retrieve uid and gid.
23634 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23635 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23636 st_uid and st_gid of the file.
23637
23638 2008-01-26 Jason Rumney <jasonr@gnu.org>
23639
23640 * w32.c (logon_network_drive): New function.
23641 (stat): Use it.
23642
23643 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
23644
23645 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23646 invisible text covered with an ellipsis.
23647
23648 2008-01-25 Richard Stallman <rms@gnu.org>
23649
23650 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23651 jump back to beginning. Move some other initializations after that.
23652 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23653 New variables.
23654 (syms_of_xdisp): Init them.
23655
23656 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23657
23658 * buffer.c (reset_buffer_local_variables):
23659 Implement `permanent-local-hook'.
23660 (Qpermanent_local_hook): New variable.
23661 (syms_of_buffer): Init and staticpro it.
23662
23663 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
23664
23665 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23666
23667 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23668
23669 * fns.c (Fclrhash): Return TABLE.
23670
23671 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23672
23673 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23674 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23675 is set even without positional changes.
23676 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23677
23678 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23679
23680 2008-01-23 Jason Rumney <jasonr@gnu.org>
23681
23682 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23683
23684 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23685 the unicode range available in MULE by locale-coding-system.
23686 Improve dbcs lead byte detection. Set event timestamp and modifiers
23687 earlier.
23688
23689 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23690
23691 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23692 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23693 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23694 when used on child processes.
23695
23696 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
23697
23698 * dbusbind.c (Fdbus_method_return_internal): Rename from
23699 Fdbus_method_return.
23700 (Fdbus_unregister_object): Move to dbus.el.
23701 (Fdbus_call_method, Fdbus_method_return_internal)
23702 (Fdbus_send_signal): Improve debug messages.
23703
23704 2008-01-20 Martin Rudalics <rudalics@gmx.at>
23705
23706 * undo.c (undo_inhibit_record_point): New variable.
23707 (syms_of_undo): Initialize it.
23708 (record_point): Don't record point when undo_inhibit_record_point
23709 is set.
23710
23711 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23712
23713 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23714
23715 * xdisp.c (Qauto_hscroll_mode): New var.
23716 (syms_of_xdisp): Initialize it.
23717 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23718 window's buffer.
23719 (hscroll_windows): Don't check automatic_hscrolling_p here.
23720
23721 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23722 vscroll if we're setting window-buffer to the value it already has.
23723
23724 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23725
23726 * m/intel386.h: Remove references to XENIX.
23727
23728 2008-01-17 Andreas Schwab <schwab@suse.de>
23729
23730 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23731 instead of HAVE_X86_64_LIB64_DIR.
23732 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23733
23734 2008-01-17 Glenn Morris <rgm@gnu.org>
23735
23736 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23737 to HAVE_X86_64_LIB64_DIR.
23738
23739 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23740
23741 * s/irix3-3.h:
23742 * s/irix4-0.h:
23743 * s/386-ix.h:
23744 * s/domain.h:
23745 * s/hpux9-x11r4.h:
23746 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23747
23748 * sysdep.c: Remove code containing references to symbols defined
23749 by unsupported systems.
23750
23751 2008-01-16 Glenn Morris <rgm@gnu.org>
23752
23753 * coding.c (select-safe-coding-system-function): Doc fix.
23754
23755 2008-01-15 Glenn Morris <rgm@gnu.org>
23756
23757 * config.in: Revert 2008-01-13 change: this is a generated file.
23758
23759 2008-01-13 Tom Tromey <tromey@redhat.com>
23760
23761 * lisp.h: Fix typo.
23762
23763 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23764
23765 * m/sequent-ptx.h:
23766 * m/sequent.h:
23767 * s/ptx.h:
23768 * s/ptx4-2.h:
23769 * s/ptx4.h: Remove files for systems no longer supported.
23770
23771 * callproc.c (Fcall_process): Fix previous change.
23772
23773 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23774
23775 * unexsunos4.c: Remove file, system not supported anymore.
23776
23777 * m/mips.h:
23778 * m/intel386.h:
23779 * callproc.c:
23780 * config.in:
23781 * ecrt0.c:
23782 * emacs.c:
23783 * fileio.c:
23784 * frame.c:
23785 * getpagesize.h:
23786 * keyboard.c:
23787 * lread.c:
23788 * process.c:
23789 * puresize.h:
23790 * sysdep.c:
23791 * systty.h:
23792 * syswait.h:
23793 * unexec.c:
23794 * xdisp.c:
23795 * alloc.c: Remove code containing references to symbols defined by
23796 unsupported systems.
23797
23798 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23799
23800 * coding.c (detect_coding_mask): Fix previous change.
23801
23802 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23803
23804 * coding.c (detect_coding_iso2022): New arg
23805 latin_extra_code_state. Allow Latin extra codes only
23806 when *latin_extra_code_state is nonzero.
23807 (detect_coding_mask): If there is a NULL byte, detect the encoding
23808 as UTF-16 or binary. If Latin extra codes exist, detect the
23809 encoding as ISO-2022 only when there's no other proper encoding is
23810 found.
23811
23812 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23813
23814 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23815 #ifdef MAC_OS.
23816
23817 2008-01-08 Richard Stallman <rms@gnu.org>
23818
23819 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23820
23821 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
23822
23823 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23824 menu bar in parentheses.
23825
23826 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23827
23828 * m/7300.h:
23829 * m/acorn.h:
23830 * m/alliant-2800.h:
23831 * m/alliant.h:
23832 * m/alliant1.h:
23833 * m/alliant4.h:
23834 * m/altos.h:
23835 * m/amdahl.h:
23836 * m/apollo.h:
23837 * m/att3b.h:
23838 * m/aviion-intel.h:
23839 * m/aviion.h:
23840 * m/celerity.h:
23841 * m/clipper.h:
23842 * m/cnvrgnt.h:
23843 * m/convex.h:
23844 * m/cydra5.h:
23845 * m/delta88k.h:
23846 * m/dpx2.h:
23847 * m/dual.h:
23848 * m/elxsi.h:
23849 * m/f301.h:
23850 * m/gould-np1.h:
23851 * m/gould.h:
23852 * m/i860.h:
23853 * m/ibmps2-aix.h:
23854 * m/ibmrt-aix.h:
23855 * m/ibmrt.h:
23856 * m/irist.h:
23857 * m/is386.h:
23858 * m/isi-ov.h:
23859 * m/mega68.h:
23860 * m/mg1.h:
23861 * m/news-r6.h:
23862 * m/news-risc.h:
23863 * m/news.h:
23864 * m/nh3000.h:
23865 * m/nh4000.h:
23866 * m/ns16000.h:
23867 * m/ns32000.h:
23868 * m/nu.h:
23869 * m/orion.h:
23870 * m/orion105.h:
23871 * m/paragon.h:
23872 * m/pfa50.h:
23873 * m/plexus.h:
23874 * m/pyramid.h:
23875 * m/pyrmips.h:
23876 * m/sh3el.h:
23877 * m/sps7.h:
23878 * m/sr2k.h:
23879 * m/stride.h:
23880 * m/sun1.h:
23881 * m/sun2.h:
23882 * m/sun3-68881.h:
23883 * m/sun3-fpa.h:
23884 * m/sun3-soft.h:
23885 * m/sun3.h:
23886 * m/sun386.h:
23887 * m/symmetry.h:
23888 * m/tad68k.h:
23889 * m/tahoe.h:
23890 * m/targon31.h:
23891 * m/tek4300.h:
23892 * m/tekxd88.h:
23893 * m/tower32.h:
23894 * m/tower32v3.h:
23895 * m/ustation.h:
23896 * m/wicat.h:
23897 * m/xps100.h:
23898 * s/cxux.h:
23899 * s/cxux7.h:
23900 * s/dgux.h:
23901 * s/dgux4.h:
23902 * s/dgux5-4-3.h:
23903 * s/dgux5-4r2.h:
23904 * s/esix.h:
23905 * s/esix5r4.h:
23906 * s/hiuxmpp.h:
23907 * s/hiuxwe2.h:
23908 * s/iris3-5.h:
23909 * s/iris3-6.h:
23910 * s/isc2-2.h:
23911 * s/isc3-0.h:
23912 * s/isc4-0.h:
23913 * s/isc4-1.h:
23914 * s/newsos5.h:
23915 * s/newsos6.h:
23916 * s/osf1.h:
23917 * s/osf5-0.h:
23918 * s/riscix1-1.h:
23919 * s/riscix12.h:
23920 * s/sco4.h:
23921 * s/sco5.h:
23922 * s/sunos4-0.h:
23923 * s/sunos4-1.h:
23924 * s/sunos413.h:
23925 * s/sunos4shr.h:
23926 * s/umax.h:
23927 * s/unipl5-2.h:
23928 * s/xenix.h:
23929 * cxux-crt0.s:
23930 * unexapollo.c:
23931 * unexconvex.c:
23932 * unexenix.c:
23933 * unexsni.c: Remove files for systems no longer supported.
23934
23935 * m/intel386.h: Remove references to unsupported systems.
23936
23937 * w32.c (get_emacs_configuration): Remove reference to i860.
23938
23939 * sysdep.c: Remove dead code.
23940
23941 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23942
23943 * s/rtu.h:
23944 * m/masscomp.h: Remove files. Platform is obsolete.
23945
23946 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
23947
23948 * dbusbind.c (Fdbus_method_return): New function.
23949 (xd_read_message): Add the serial number to the event.
23950 (Fdbus_register_method): Activate the function.
23951
23952 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23953
23954 * keyboard.c (read_key_sequence): Fix typo.
23955
23956 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
23957
23958 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23959 (xd_signature, xd_append_arg): Handle element type detection for
23960 empty arrays.
23961 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23962 SDATA () calls; this must be solved more general.
23963 (Fdbus_register_signal): Use SBYTES instead of strlen.
23964
23965 2008-01-03 Magnus Henoch <magnus@zemdatav>
23966
23967 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23968 unsigned int for byte values (necessary for big-endian platform).
23969 (Fdbus_call_method): Handle the case of no returned arguments.
23970
23971 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23972
23973 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23974
23975 2007-12-31 Magnus Henoch <mange@freemail.hu>
23976
23977 * dbusbind.c (xd_signature): Signature of variant is just "v".
23978
23979 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
23980
23981 * dbusbind.c: Fix several errors and compiler warnings.
23982 Reported by Tom Tromey <tromey@redhat.com>.
23983 (XD_ERROR, XD_DEBUG_MESSAGE)
23984 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23985 (xd_append_arg): Part for basic D-Bus types rewritten.
23986 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23987 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23988 appropriate.
23989 (xd_read_message): Return Qnil. Don't signal an error; it is not
23990 useful during event reading.
23991 (Fdbus_register_signal): Signal an error if the check for
23992 FUNCTIONP fails.
23993 (Fdbus_register_method): New function. The implementation is not
23994 complete, the call of the function signals an error therefore.
23995 (Fdbus_unregister_object): New function, renamed from
23996 Fdbus_unregister_signal. The initial check signals an error, if
23997 the object is not well formed.
23998
23999 2007-12-30 Richard Stallman <rms@gnu.org>
24000
24001 * textprop.c (get_char_property_and_overlay):
24002 Signal error if POSITION is out of range in a buffer.
24003
24004 2007-12-29 Martin Rudalics <rudalics@gmx.at>
24005
24006 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24007 because the original parameters are in pure storage now.
24008
24009 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24010
24011 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24012
24013 2007-12-22 Eli Zaretskii <eliz@gnu.org>
24014
24015 * callint.c (syms_of_callint) <command-history>: Add reference to
24016 history-length in the doc string.
24017
24018 2007-12-17 Jason Rumney <jasonr@gnu.org>
24019
24020 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24021 before passing as wParam.
24022
24023 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
24024
24025 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24026 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24027 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24028 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24029 as number.
24030 (Fdbus_call_method): Fix docstring.
24031
24032 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
24033
24034 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24035 New macros.
24036 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24037 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24038 Simplify.
24039 (xd_signature): New function.
24040 (xd_append_arg): Compute also signatures. Major rewrite.
24041 (xd_retrieve_arg): Make debug messages friendly.
24042 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24043 Check for signatures of arguments.
24044
24045 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
24046
24047 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24048 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24049 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24050 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24051 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24052 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24053 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24054 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24055 (xd_retrieve_value): Remove. Functionality included in ...
24056 (xd_append_arg): New function.
24057 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24058
24059 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
24060
24061 * dbusbind.c (top): Include <stdio.h>.
24062 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24063 dbus_message_new_method_call and dbus_message_new_signal.
24064 (Fdbus_register_signal): Rename unique_name to uname.
24065 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24066 non-existing unique name. Fix typos in matching rule. Return an
24067 object which is useful in Fdbus_unregister_signal.
24068 (Fdbus_unregister_signal): Reimplementation, in order to remove
24069 only the corresponding entry.
24070 (Vdbus_registered_functions_table): Change the order of entries.
24071 Apply these changes in xd_read_message and Fdbus_register_signal.
24072
24073 2007-12-16 Andreas Schwab <schwab@suse.de>
24074
24075 * fileio.c (Finsert_file_contents): Fix overflow check to not
24076 depend on undefined integer overflow.
24077
24078 2007-12-14 Jason Rumney <jasonr@gnu.org>
24079
24080 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24081 for characters above 127.
24082
24083 2007-12-13 Jason Rumney <jasonr@gnu.org>
24084
24085 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24086 before dereferencing array.
24087 (lookup_vk_code): Remove zero comparison.
24088
24089 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
24090
24091 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24092 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24093 Use `unsigned int' instead of `uint'.
24094 (xd_read_message, Fdbus_register_signal): Split expressions into
24095 multiple lines before operators "&&" and "||", according to the
24096 GNU Coding Standards.
24097
24098 2007-12-14 Eli Zaretskii <eliz@gnu.org>
24099
24100 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24101
24102 2007-12-12 Juri Linkov <juri@jurta.org>
24103
24104 * buffer.c (Frename_buffer): In interactive spec replace
24105 `read-buffer' with `read-string' that uses `buffer-name-history'
24106 as history, and the current buffer's name as default.
24107
24108 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24109
24110 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24111 manipulating the backtrace manually.
24112 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24113 (struct backtrace, backtrace_list): Remove.
24114 (command_loop_1): Remove dead var `no_direct'.
24115
24116 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24117 preserve non-built-in buffer-local variables.
24118 (Fkill_all_local_variables): Don't re-create&re-set permanent
24119 buffer-local variables.
24120
24121 2007-12-09 Juri Linkov <juri@jurta.org>
24122
24123 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24124 Lisp code that uses `read-buffer' with current buffer as default.
24125
24126 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
24127
24128 * dbusbind.c (xd_read_message): Generate an event for every
24129 registered handler. There might be several handlers registered
24130 for the same signal.
24131 (Fdbus_register_signal): Don't overwrite a registration for the
24132 same signal. Add a new registration if handlers are different.
24133 (Vdbus_registered_functions_table): Rework doc string.
24134
24135 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
24136
24137 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24138 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24139 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24140 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24141 Unify argument lists.
24142 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24143 arguments and hash table keys. Use unique name for service.
24144 (Fdbus_unregister_signal): Remove checks.
24145 (Vdbus_registered_functions_table): Fix doc string.
24146
24147 2007-12-05 Magnus Henoch <mange@freemail.hu>
24148
24149 * process.c (make_process): Initialize pty_flag to 0.
24150
24151 2007-12-05 Jason Rumney <jasonr@gnu.org>
24152
24153 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24154 specified XBMs.
24155
24156 2007-12-05 Richard Stallman <rms@gnu.org>
24157
24158 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24159
24160 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24161
24162 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24163 New variable.
24164 (mac_try_close_socket) [MAC_OSX]: New function.
24165 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24166 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24167
24168 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24169 Use mac_try_close_socket.
24170
24171 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24172
24173 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24174 reloc_base.
24175 (copy_dysymtab): Compute relocation base here.
24176 (rebase_reloc_address) [__ppc64__]: New function.
24177 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24178 changed.
24179
24180 2007-12-05 Jason Rumney <jasonr@gnu.org>
24181
24182 * w32proc.c (sys_spawnve): Quote args with wildcards.
24183
24184 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24185
24186 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24187 __objc_* sections.
24188 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24189
24190 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
24191
24192 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24193 Move check for Vdbus_registered_functions_table to
24194 xd_read_queued_messages.
24195 (xd_read_queued_messages): Protect xd_read_message calls by
24196 internal_condition_case_1.
24197
24198 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
24199
24200 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24201 Qdbus_system_bus and Qdbus_session_bus, respectively.
24202 (Vdbus_intern_symbols): Remove.
24203 (Vdbus_registered_functions_table): New hash table.
24204 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24205 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24206 Rewrite in order to manage registered functions by hash table
24207 Vdbus_registered_functions_table.
24208
24209 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24210
24211 * xterm.c: Update URL to Window Manager Specification in comment.
24212
24213 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
24214
24215 * config.in (HAVE_DBUS): Add.
24216
24217 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24218 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24219 (obj): Add $(DBUS_OBJ).
24220 (LIBES): Add $(DBUS_LIBS).
24221 (dbusbind.o): New target.
24222
24223 * dbusbind.c: New file.
24224
24225 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24226
24227 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24228 (Qdbus_event): New Lisp symbol.
24229 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24230 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
24231 (keys_of_keyboard): Define dbus-event.
24232
24233 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24234
24235 2007-12-01 Richard Stallman <rms@gnu.org>
24236
24237 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24238
24239 2007-11-30 Jason Rumney <jasonr@gnu.org>
24240
24241 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24242 (w32con_reset_terminal_modes): Clear screen buffer.
24243 (w32_face_attributes): Don't use color indexes that are out of range.
24244 Only reverse the default colors.
24245
24246 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24247 WINDOWSNT.
24248
24249 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24250
24251 2007-11-29 Jason Rumney <jasonr@gnu.org>
24252
24253 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24254 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24255 if the terminal colors are initialized.
24256 (unspecified_fg, unspecified_bg): Remove unused declarations.
24257
24258 2007-11-29 Andreas Schwab <schwab@suse.de>
24259
24260 * keyboard.c (apply_modifiers): Fix typo.
24261
24262 2007-11-29 Richard Stallman <rms@gnu.org>
24263
24264 * keymap.c (Fcurrent_local_map): Doc fix.
24265
24266 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24267
24268 * s/gnu-kfreebsd.h: New file.
24269
24270 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24271
24272 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24273 Don't cast redundantly.
24274
24275 * keyboard.c (KEY_TO_CHAR): New macro.
24276 (parse_modifiers, apply_modifiers): Accept integer arguments.
24277 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24278 for chars and symbol keys.
24279 After doing such remapping, apply function-key-map again.
24280
24281 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24282
24283 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24284 compiled anymore.
24285
24286 2007-11-26 Andreas Schwab <schwab@suse.de>
24287
24288 * process.c (list_processes_1): Fix indentation level of the
24289 command column.
24290
24291 2007-11-23 Andreas Schwab <schwab@suse.de>
24292
24293 * editfns.c (Fformat): Handle %c specially since it requires the
24294 argument to be of type int.
24295
24296 2007-11-23 Markus Triska <markus.triska@gmx.at>
24297
24298 * emacs.c (main): Call init_editfns before init_process, since
24299 init_process sets Vprocess_connection_type depending on OS release.
24300
24301 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24302
24303 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24304 (find_symbol_value): Use do_symval_forwarding.
24305
24306 * data.c (set_internal): Set the value in the `cons-cell' (for
24307 Buffer_Local_values) not only for frame-local variables.
24308
24309 2007-11-22 Andreas Schwab <schwab@suse.de>
24310
24311 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24312 values to sprintf.
24313 * keymap.c (Fsingle_key_description): Likewise.
24314 * print.c (print_object): Likewise.
24315
24316 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24317
24318 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24319 file for image is nil.
24320
24321 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24322
24323 * term.c: Include stdarg.h.
24324 (fatal): Implement using varargs.
24325 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24326
24327 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24328
24329 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24330 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24331 Update call to buffer_slot_type_mismatch.
24332 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24333 (buffer_slot_type_mismatch): Update.
24334 * buffer.c (buffer_local_types): Remove.
24335 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24336 (defvar_per_buffer): Set the type in the buffer_objfwd.
24337
24338 2007-11-21 Jason Rumney <jasonr@gnu.org>
24339
24340 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24341 CreateFileMapping returns NULL on failure.
24342
24343 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24344
24345 * search.c (Fset_match_data): Remove the `evaporate' feature.
24346 (unwind_set_match_data): Don't use the `evaporate' feature.
24347
24348 2007-11-21 Jason Rumney <jasonr@gnu.org>
24349
24350 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24351
24352 * w32console.c (w32con_write_glyphs): Remove unused variables.
24353
24354 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24355
24356 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24357
24358 * s/darwin.h (MULTI_KBOARD): Remove.
24359
24360 * macfns.c (x_create_tip_frame, Fx_create_frame)
24361 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24362
24363 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24364
24365 * buffer.c (Fbuffer_local_value): Remove redundant test.
24366 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24367 than in `current-buffer' to match the comment.
24368 Do the swap using swap_in_global_binding.
24369
24370 * data.c (store_symval_forwarding, set_internal):
24371 * eval.c (specbind): Remove dead code.
24372
24373 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24374 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24375 Since we do not want to see internal Lisp_*fwd objects here.
24376
24377 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24378
24379 * sysdep.c (init_system_name): Use getaddrinfo if available.
24380
24381 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24382 (x_scroll_bar_note_movement): start, end, with, height in struct
24383 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24384
24385 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24386
24387 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24388
24389 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24390
24391 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24392 This undoes Richard's change of 14-Oct-2002.
24393
24394 * alloc.c (allocate_other_vector):
24395 * lisp.h (allocate_other_vector): Remove.
24396
24397 * window.c (struct save_window_data): Move non-lisp data to the end
24398 and make it `int' rather than Lisp_Object.
24399 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24400 Done wrap/unwrap integer values.
24401 (Fset_window_configuration, compare_window_configurations):
24402 Update use of fields to their new types.
24403
24404 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24405 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24406 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24407 (SET_SCROLL_BAR_X_WINDOW): Remove.
24408 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24409 Access the new x_window field directly.
24410 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24411 Don't wrap/unwrap integers into Lisp_Objects.
24412 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24413 (x_scroll_bar_report_motion):
24414 Don't wrap/unwrap integers into Lisp_Objects.
24415 (x_term_init): Use SDATA.
24416 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24417 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24418 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24419 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24420 * xfns.c (x_set_background_color):
24421 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24422 Access the new x_window field directly.
24423
24424 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24425 (allocate_pseudovector): Make non-static.
24426
24427 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24428 (allocate_pseudovector): Declare.
24429 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24430
24431 2007-11-15 Andreas Schwab <schwab@suse.de>
24432
24433 * editfns.c (Fformat): Correctly format EMACS_INT values.
24434 Also take precision into account when formatting an integer.
24435
24436 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24437
24438 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24439
24440 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24441 (syms_of_keyboard): Defsubr it.
24442
24443 * data.c (swap_in_global_binding): Fix longstanding bug where
24444 store_symval_forwarding was not called with the right second argument,
24445 thus causing objfwd-ing from being dropped.
24446
24447 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24448
24449 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24450 (Fx_display_pixel_height, Fx_display_planes)
24451 (Fx_display_color_cells, Fx_server_max_request_size)
24452 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24453 (Fx_display_visual_class, Fx_display_save_under):
24454 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24455 (Fx_display_pixel_height, Fx_display_planes)
24456 (Fx_display_color_cells, Fx_server_max_request_size)
24457 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24458 (Fx_display_mm_height, Fx_display_mm_width)
24459 (Fx_display_backing_store, Fx_display_visual_class)
24460 (Fw32_select_font, Fx_display_save_under):
24461 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24462 (Fx_display_pixel_height, Fx_display_planes)
24463 (Fx_display_color_cells, Fx_server_max_request_size)
24464 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24465 (Fx_display_save_under): Fix typos in docstrings.
24466
24467 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
24468
24469 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24470 corresponding to deleted entries; they are an implementation detail.
24471 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24472 Remove variables.
24473 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24474 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24475 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24476 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24477 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24478 (Fw32_define_rgb_color, Fw32_load_color_file)
24479 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24480 Fix typos in docstrings.
24481 (Fx_server_version): Reflow docstring.
24482 (Fw32_shell_execute): Doc fixes.
24483
24484 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
24485
24486 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24487 if w32_parse_hot_key returned nil.
24488
24489 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24490
24491 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24492
24493 2007-11-09 Jason Rumney <jasonr@gnu.org>
24494
24495 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24496
24497 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24498
24499 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24500 Remove W32_SCROLL_BAR_CLICK_EVENT.
24501
24502 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24503 Add MULTIMEDIA_KEY_EVENT.
24504
24505 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24506 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24507 (make_lispy_event) [WINDOWSNT]: Use it to translate
24508 MULTIMEDIA_KEY_EVENT.
24509
24510 * w32term.h (WM_APPCOMMAND): Define if not already.
24511 (GET_APPCOMMAND_LPARAM): Likewise.
24512
24513 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24514 WM_APPCOMMAND.
24515
24516 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24517 (syms_of_w32fns): Export and initialize it.
24518 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24519
24520 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
24521
24522 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24523 twice.
24524
24525 * xdisp.c (handle_face_prop): Fix last change.
24526
24527 2007-11-09 Richard Stallman <rms@gnu.org>
24528
24529 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24530 not just for after-strings and before-strings.
24531 Call face_for_overlay_string and pass the overlay to it.
24532 (handle_display_prop): Determine whether property came from an overlay.
24533 Pass OVERLAY arg to handle_single_display_spec.
24534 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24535 (load_overlay_strings): Fill in it->string_overlays.
24536 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24537
24538 * xfaces.c (face_for_overlay_string): Function renamed from
24539 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24540
24541 * dispextern.h (struct it): New elt string_overlays.
24542 New elt from_overlay, also in stack.
24543 Rearrange a few elements.
24544 (face_for_overlay_string): Decl renamed from
24545 face_at_buffer_position_no_overlays, and add argument.
24546
24547 2007-11-09 Richard Stallman <rms@gnu.org>
24548
24549 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24550 to get the base face for an overlay string.
24551
24552 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24553
24554 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24555
24556 * xdisp.c (handle_stop): Move some code out of loop.
24557
24558 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24559
24560 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24561 Fix conversion from Lisp object to ATSUFontID.
24562
24563 2007-11-09 Jason Rumney <jasonr@gnu.org>
24564
24565 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24566
24567 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24568
24569 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24570 Don't assume regions are aligned to page boundary.
24571 (print_load_command_name): Add LC_UUID if defined.
24572
24573 2007-11-09 Richard Stallman <rms@gnu.org>
24574
24575 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24576
24577 2007-11-07 Jason Rumney <jasonr@gnu.org>
24578
24579 * s/windows95.h: Remove.
24580
24581 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24582
24583 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24584 abort with a message on unhandled store_type values.
24585
24586 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24587
24588 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24589 Remove HAVE_X11R5 and HAVE_X11R4.
24590
24591 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24592
24593 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24594
24595 2007-11-01 Johan Bockgård <bojohan@gnu.org>
24596
24597 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24598 Don't set s->stippled_p here, since it has already been set by
24599 x_set_glyph_string_gc from x_draw_glyph_string.
24600
24601 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24602
24603 * sunfns.c: Remove file.
24604
24605 * m/sun386.h:
24606 * m/sun2.h:
24607 * m/sparc.h: Remove Sun windows code.
24608
24609 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24610
24611 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24612 (init_keyboard): Set current_kboard's window-system to nil.
24613 (tty_read_avail_input): Typo.
24614 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24615
24616 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24617
24618 * s/usg5-4.h:
24619 * s/usg5-3.h:
24620 * s/ptx.h:
24621 * m/is386.h:
24622 * m/ibmps2-aix.h:
24623 * Makefile.in: Remove all mentions of X10.
24624
24625 * dispnew.c (syms_of_display): Don't mention version 10.
24626
24627 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
24628
24629 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24630 ($(BLD)/abbrev.$(O)): Remove.
24631
24632 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24633
24634 Rewrite abbrev.c in Elisp.
24635 * image.c (Qcount): Don't declare as extern.
24636 (syms_of_image): Initialize and staticpro `Qcount'.
24637 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24638 * emacs.c (main): Don't call syms_of_abbrev.
24639 * Makefile.in (obj): Remove abbrev.o.
24640 (abbrev.o): Remove.
24641 * abbrev.c: Remove.
24642
24643 2007-10-26 Martin Rudalics <rudalics@gmx.at>
24644
24645 * window.c (window_min_size_2): Don't count header-line.
24646
24647 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24648
24649 * frame.h (struct frame): Move all bit fields after the first bit
24650 field to take advantage of the available space. Group all the
24651 chars together to reduce wasted space due to padding.
24652
24653 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
24654
24655 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24656
24657 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24658 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24659 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24660 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24661 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24662 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24663 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24664 (last_marked, mark_object_loop_halt): Make static.
24665
24666 * frame.c (syms_of_frame) <delete-frame-functions>:
24667 Fix typo in docstring.
24668
24669 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
24670
24671 * w32.c (init_environment): Fix tiny memory leak.
24672 (w32_get_resource): Remove unused variable `ok'.
24673
24674 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24675
24676 Make `window-system' into a keyboard-local variable (rather than
24677 frame-local as done originally by multi-tty).
24678
24679 * keyboard.h (struct kboard): Add Vwindow_system.
24680 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24681 (mark_kboards): Mark Vwindow_system.
24682
24683 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24684 (init_display): Don't set the obsolete `window-system' frame-param.
24685
24686 * xterm.c (x_term_init):
24687 * w32term.c (w32_create_terminal):
24688 * term.c (init_tty): Set Vwindow_system.
24689 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24690 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24691
24692 * xfns.c (Fx_create_frame, x_create_tip_frame):
24693 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24694 * macfns.c (Fx_create_frame):
24695 Don't set the obsolete `window-system' frame-param.
24696
24697 * frame.h (Qwindow_system): Remove.
24698 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24699 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24700
24701 2007-10-24 Richard Stallman <rms@gnu.org>
24702
24703 * frame.c (x_figure_window_size): For fullscreen case,
24704 set USPosition | PPosition without clobbering rest of window_prompting.
24705
24706 * keyboard.c (Fcurrent_idle_time): Doc fix.
24707
24708 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24709
24710 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24711
24712 * process.c (unwind_request_sigio): Only define if __ultrix__.
24713
24714 * callproc.c (child_setup): Remove spurious *.
24715
24716 * lisp.h (Fget_text_property): Declare.
24717 (have_menus_p): Declare it here rather than in sys-dep header files.
24718 * macterm.h (have_menus_p):
24719 * msdos.h (have_menus_p):
24720 * xterm.h (have_menus_p): Remove.
24721
24722 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24723 (Fmake_variable_frame_local): Just check the variable's const-ness
24724 rather than checking nil or t.
24725
24726 2007-10-22 Jason Rumney <jasonr@gnu.org>
24727
24728 * w32fns.c: Include math.h.
24729 (w32_abort): Declaration moved to nt/config.nt.
24730
24731 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24732 (abort): Redefinition moved to nt/config.nt.
24733
24734 * m/windowsnt.h: Remove.
24735
24736 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
24737
24738 * emacs.c (Fdump_emacs): Fix typo in message.
24739 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24740 <installation-directory>: Reflow docstring.
24741
24742 2007-10-22 Juri Linkov <juri@jurta.org>
24743
24744 * minibuf.c: Allow minibuffer default to be a list of default values.
24745 With empty input use the first element of this list as returned default.
24746 (string_to_object)
24747 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24748 (read_minibuf): If defalt is cons, set histstring to its car.
24749 (Fread_string): If default_value is cons, set val to its car.
24750 (Fread_buffer): If def is cons, use its car.
24751 (Fcompleting_read): If defalt is cons, set val to its car.
24752
24753 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
24754
24755 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24756
24757 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
24758
24759 * doc.c (Fdocumentation): Check for advice in all cases.
24760
24761 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
24762
24763 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24764
24765 2007-10-19 Richard Stallman <rms@gnu.org>
24766
24767 * doc.c (Fdocumentation): Check for and handle an advised function.
24768
24769 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
24770
24771 * process.c (Fset_process_filter): Doc fix.
24772
24773 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24774
24775 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24776 which caused key-translation-map to applied repeatedly (thus breaking
24777 double-mode).
24778
24779 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24780
24781 * xselect.c (x_own_selection, x_handle_selection_clear)
24782 (x_clear_frame_selections):
24783 * w32menu.c (list_of_panes, list_of_items):
24784 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24785 * textprop.c (validate_plist, interval_has_all_properties)
24786 (interval_has_some_properties, interval_has_some_properties_list)
24787 (add_properties, text_property_list):
24788 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24789 * minibuf.c (Fassoc_string):
24790 * macselect.c (x_own_selection, x_clear_frame_selections)
24791 (Fx_disown_selection_internal):
24792 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24793 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24794
24795 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
24796
24797 * process.c: Link to libs for calling res_init() if available.
24798 (Fmake_network_process): Call res_init() before getaddrinfo or
24799 gethostbyname, if possible.
24800
24801 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24802
24803 * lread.c (read1): Set pvectype for char_tables.
24804
24805 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24806 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24807 Add type checks.
24808 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24809
24810 * alloc.c (free_misc): Use XMISCTYPE.
24811 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24812
24813 2007-10-17 Glenn Morris <rgm@gnu.org>
24814
24815 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24816 (syms_of_minibuf): Add Qcompletion_ignore_case.
24817 * dired.c (Qcompletion_ignore_case): Change to external.
24818 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24819 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24820 (Fread_file_name): Use it rather than intern'ing.
24821
24822 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24823 (Fread_coding_system): Ignore case of user input.
24824
24825 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24826
24827 * xdisp.c (handle_display_prop): Ignore display specs after
24828 replacing one when string text is being replaced.
24829 (handle_single_display_spec): Pretend as if characters with display
24830 property haven't been consumed only when buffer text is being replaced.
24831
24832 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * xfns.c (Fx_create_frame, Fx_display_list):
24835 * window.c (window_fixed_size_p, enlarge_window)
24836 (shrink_window_lowest_first):
24837 * macterm.c (init_font_name_table):
24838 * macfns.c (Fx_create_frame, Fx_display_list):
24839 * lread.c (close_load_descs):
24840 * keyboard.c (read_char_x_menu_prompt):
24841 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24842 * coding.c (code_convert_region_unwind): Test the type of an object
24843 rather than just !NILP before extracting data from it.
24844
24845 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24846
24847 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24848 (XMISCANY): New macro.
24849 (XMISCTYPE): Use it.
24850 (struct Lisp_Misc_Any): New type.
24851 (union Lisp_Misc): Use it.
24852 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24853 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24854 (find_symbol_value, set_internal, default_value, Fset_default)
24855 (Fmake_variable_buffer_local, Fmake_local_variable)
24856 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24857 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24858 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24859 * alloc.c (allocate_buffer): Set the size and tag.
24860 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24861 Use XMISCANY.
24862 (die): Follow the GNU convention for error messages.
24863 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24864 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24865 tag any more.
24866 (set_buffer_internal_1):
24867 * frame.c (store_frame_param):
24868 * eval.c (specbind):
24869 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24870
24871 * doc.c (Fsnarf_documentation): Simplify.
24872
24873 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24874
24875 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24876 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24877
24878 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24879
24880 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24881
24882 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
24883
24884 * eval.c (do_autoload): Don't save autoloads.
24885
24886 * data.c (Ffset): Save autoload of the function being set.
24887
24888 2007-10-07 John Paul Wallington <jpw@pobox.com>
24889
24890 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24891 parameter before setting up faces.
24892
24893 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24894
24895 * ccl.c (Fregister_code_conversion_map):
24896 * keyboard.c (append_tool_bar_item): Reformat last change.
24897
24898 * lisp.h (eabs): Rename from `abs'. All callers changed.
24899
24900 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24901
24902 * buffer.c (add_overlay_mod_hooklist):
24903 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24904 * fontset.c (make_fontset):
24905 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24906 (append_tool_bar_item):
24907 * macmenu.c (grow_menu_items):
24908 * w32menu.c (grow_menu_items):
24909 * xmenu.c (grow_menu_items): Use larger_vector.
24910
24911 2007-10-13 Eli Zaretskii <eliz@gnu.org>
24912
24913 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24914 selected frame'' on MSDOS).
24915
24916 2007-10-12 Martin Rudalics <rudalics@gmx.at>
24917
24918 * frame.c (Qexplicit_name): New variable.
24919 (x_report_frame_params): Report it in parameter alist.
24920 (syms_of_frame): Intern and staticpro it.
24921
24922 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24923
24924 * macfns.c (x_create_tip_frame): Set terminal for frame.
24925
24926 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24927
24928 * frame.c (Qenvironment): Remove.
24929 (syms_of_frame) <Qenvironment>: Don't initialize.
24930 (Fdelete_frame): Don't treat the `environment' param specially.
24931 * frame.h (Qenvironment): Don't declare.
24932 * callproc.c (set_initial_environment): Don't set unused frame param.
24933
24934 * frame.c (Fframe_with_environment): Remove.
24935 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24936
24937 * lisp.h (Fframe_with_environment): Don't declare.
24938
24939 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
24940
24941 * indent.c (indent_tabs_mode, last_known_column)
24942 (last_known_column_modified): Make static.
24943 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24944
24945 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24946
24947 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24948
24949 2007-10-09 Jason Rumney <jasonr@gnu.org>
24950
24951 * w32term.c (x_set_window_size): Disable code that attempts to tell
24952 Lisp code about a size change before it actually happens.
24953
24954 2007-10-09 Richard Stallman <rms@gnu.org>
24955
24956 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24957 return HANDLED_RETURN.
24958
24959 2007-10-08 Martin Rudalics <rudalics@gmx.at>
24960
24961 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24962 when there's an unread command event.
24963
24964 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24965 window autoselection act appropriately when leaving selected frame.
24966 (syms_of_frame): Initialize focus_follows_mouse.
24967 * frame.h (focus_follows_mouse): Extern it.
24968 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24969 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24970 * msdos.c (dos_rawgetc): Likewise.
24971 * w32term.c (w32_read_socket): Likewise.
24972 * xterm.c (handle_one_xevent): Likewise.
24973 * xdisp.c (syms_of_xdisp): In doc-string of
24974 mouse-autoselect-window mention focus-follows-mouse.
24975
24976 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24977
24978 * macterm.c (mac_load_query_font): Fix missing return value.
24979 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24980 Add BLOCK_INPUT.
24981
24982 2007-10-08 Richard Stallman <rms@gnu.org>
24983
24984 * xdisp.c (get_window_cursor_type): Implement documented behavior
24985 for cursor-in-non-selected-windows = t.
24986
24987 2007-10-08 Jason Rumney <jasonr@gnu.org>
24988
24989 * w32.c (w32_get_resource): Always close registry keys.
24990
24991 2007-10-08 Jason Rumney <jasonr@gnu.org>
24992
24993 * makefile.w32-in (LIBS): Add COMCTL32.
24994
24995 * w32fns.c (globals_of_w32fns): Init common controls.
24996
24997 2007-10-08 Richard Stallman <rms@gnu.org>
24998
24999 * image.c (our_memory_buffer): Rename from omfib_buffer.
25000
25001 2007-10-08 Richard Stallman <rms@gnu.org>
25002
25003 * buffer.c (Foverlays_at): Doc fix.
25004
25005 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25006
25007 * fns.c (Fplist_put): Preserve uneven tail data.
25008
25009 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25010
25011 * termhooks.h (enum event_kind): Remove trailing comma.
25012
25013 * frame.h (enum): Remove trailing comma.
25014
25015 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25016
25017 * w32proc.c (delete_child): Don't terminate threads of zombies.
25018
25019 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25020
25021 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25022
25023 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25024 last-repeatable-command.
25025 (init_kboard): Initialize Vlast_repeatable_command.
25026 (command_loop_1): Set it to real_this_command unless that was
25027 bound to an input event.
25028 (mark_kboards): Mark it.
25029
25030 2007-10-08 Richard Stallman <rms@gnu.org>
25031
25032 * eval.c (condition-case): Doc fix.
25033
25034 2007-10-08 Masatake YAMATO <jet@gyve.org>
25035
25036 * xfaces.c (tty_supports_face_attributes_p): Fix code
25037 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25038 was copied and not edited.
25039
25040 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25041
25042 Add new `input-decode-map' keymap and use it for terminal
25043 escape sequences.
25044 * keyboard.h (struct kboard): Add Vinput_decode_map.
25045 Remove Vlocal_key_translation_map.
25046 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25047 (init_kboard): Init input-decode-map.
25048 Replace local-key-translation-map back with key-translation-map.
25049 (syms_of_keyboard): Declare input-decode-map.
25050 Remove local-key-translation-map. Update docstrings.
25051 (mark_kboards): Mark Vinput_decode_map.
25052 Don't mark Vlocal_key_translation_map.
25053 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25054 Replace local-key-translation-map back with key-translation-map.
25055 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25056 Bind in input-decode-map rather than function-key-map.
25057
25058 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25059 This was made redundant by the previous introduction of XSETPVECTYPE.
25060
25061 2007-10-09 Richard Stallman <rms@gnu.org>
25062
25063 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25064
25065 2007-09-29 Richard Stallman <rms@gnu.org>
25066
25067 * eval.c (internal_condition_case_2, internal_condition_case_1)
25068 (internal_condition_case): Reenable abort if x_catching_errors ()
25069 to see if that really happens and why.
25070
25071 2007-10-06 Andreas Schwab <schwab@suse.de>
25072
25073 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25074
25075 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
25076
25077 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25078
25079 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25080
25081 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25082
25083 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25084
25085 * window.h (struct window):
25086 * window.c (struct save_window_data, struct saved_window):
25087 * termhooks.h (struct terminal):
25088 * process.h (struct Lisp_Process):
25089 * frame.h (struct frame):
25090 * buffer.h (struct buffer):
25091 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25092 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25093 The size field of (pseudo)vectors is now unsigned.
25094 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25095
25096 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25097 Turn `count' into an integer.
25098
25099 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25100 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25101 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25102 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25103 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25104
25105 * alloc.c (allocate_pseudovector): New fun.
25106 (ALLOCATE_PSEUDOVECTOR): New macro.
25107 (allocate_window, allocate_terminal, allocate_frame)
25108 (allocate_process): Use it.
25109 (mark_vectorlike): New function.
25110 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25111 (mark_terminals): Use it.
25112 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25113 (Fmake_byte_code): Use XSETPVECTYPE.
25114
25115 * frame.c (Fframe_parameters): Minor simplification.
25116
25117 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25118
25119 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25120
25121 * buffer.c (Fget_buffer_create, init_buffer_once):
25122 * lread.c (defsubr):
25123 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25124
25125 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25126 defined differently in the m/*.h files.
25127 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25128 (XSETPVECTYPE): New macro.
25129 (XSETPSEUDOVECTOR): Use it.
25130
25131 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25132 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25133
25134 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25135 * lread.c (defvar_per_buffer):
25136 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25137
25138 * window.c (candidate_window_p): Only consider as visible frames that
25139 are on the same terminal.
25140
25141 * m/ibms390x.h (MARKBIT): Remove unused macro.
25142
25143 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
25144
25145 * lread.c (Fload): Fix typo in docstring.
25146
25147 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25148
25149 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25150 of a non-zero value can't yield zero.
25151
25152 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25153
25154 * term.c (term_clear_mouse_face, term_mouse_highlight)
25155 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25156
25157 * print.c (safe_debug_print): Use XHASH.
25158
25159 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25160 Lisp elements such as tags.
25161 (XHASH): New macro.
25162 (EQ): Use it.
25163 (SREF, SSET, STRING_COPYIN): Use SDATA.
25164 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25165
25166 * alloc.c (mark_terminal): Remove left-over declaration.
25167 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25168 (allocate_vectorlike): Remove type argument. Adjust callers.
25169 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25170 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25171
25172 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25173 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25174 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25175 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25176 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25177 Use them.
25178
25179 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25180 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25181 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25182
25183 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25184
25185 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25186 loaded by default.
25187
25188 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25189
25190 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25191 on this tty.
25192 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25193
25194 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25195 Update all users.
25196 (handle_one_term_event): Use Gpm_DrawPointer.
25197 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25198 Signal errors instead of returning nil. Always return nil.
25199 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25200 Make it a noop if gpm-mouse was not activated.
25201 (syms_of_term): Update names.
25202
25203 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25204
25205 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25206 (init_sys_modes): Check that gpm_tty is the current tty.
25207
25208 * alloc.c (allocate_terminal): Set the vector size to only count the
25209 lisp fields. Initialize those to nil.
25210 (mark_object): Don't treat terminals specially.
25211 (mark_terminal): Remove.
25212 (mark_terminals): Use mark_object instead.
25213
25214 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25215 the GC to the beginning.
25216
25217 * indent.h:
25218 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25219
25220 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25221
25222 2007-09-25 Jason Rumney <jasonr@gnu.org>
25223
25224 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25225
25226 * w32console.c (create_w32cons_output): Remove.
25227
25228 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25229
25230 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25231 (reset_sys_modes): Use reset_terminal_modes_hook.
25232
25233 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25234
25235 * eval.c (do_autoload): Don't output any message.
25236
25237 2007-09-24 Juri Linkov <juri@jurta.org>
25238
25239 * emacs.c (standard_args): Change priority of "--no-splash"
25240 from 40 to 3. Add "--no-desktop" with the same priority.
25241
25242 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25243
25244 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25245 and optimize the case where they are all 1.
25246
25247 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
25248
25249 * lisp.h (abs): Define if not defined.
25250 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25251 Don't define `abs', since it's defined in lisp.h.
25252
25253 2007-09-22 Eli Zaretskii <eliz@gnu.org>
25254
25255 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25256 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25257 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25258 (init_tty): Use DEV_TTY instead of "/dev/tty".
25259 [WINDOWSNT]: No need to protect from NAME arg being null.
25260
25261 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25262
25263 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25264 up the tty state.
25265
25266 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25267
25268 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25269 (gpm_tty): Change its type.
25270 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25271 (gpm_tty): Change its type and initialize it.
25272 (Fterm_open_connection): Check the frame is indeed a tty.
25273 Use the new gpm_tty.
25274 (Fterm_close_connection): Use the new gpm_tty.
25275 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25276 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25277
25278 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
25279
25280 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25281 underline_color, to draw strike-through.
25282
25283 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25284
25285 * lisp.h (allocate_terminal): Declare.
25286
25287 * window.c (candidate_window_p): Consider frames that are being placed
25288 by the user as somewhere between visible and iconified.
25289 (window_loop): Prefer windows on the current frame.
25290 (Fselect_window): Move the use of select-frame to the beginning so we
25291 can just delegate all the work (it'll call us back anyway).
25292
25293 * frame.c (Qdisplay_environment_variable):
25294 * frame.h (Qdisplay_environment_variable): Delete.
25295
25296 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25297 of the first arg, since that value may be a union.
25298
25299 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25300 parameter rather than Qdisplay_environment_variable. If all else
25301 fails, look for DISPLAY in initial-environment.
25302
25303 2007-09-21 Glenn Morris <rgm@gnu.org>
25304
25305 * Makefile.in (emacstool): Remove target.
25306 (lisp, shortlisp): Remove termdev.elc.
25307
25308 2007-09-21 Markus Triska <markus.triska@gmx.at>
25309
25310 * xterm.c (x_delete_display): Compile session management conditionally.
25311
25312 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25313
25314 * callproc.c (getenv_internal_1): New function.
25315 (getenv_internal): Use it.
25316 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25317
25318 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25319 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25320 (Fset_terminal_parameter): Work with dead terminals as well.
25321 (Fmodify_terminal_parameters): Remove.
25322
25323 * terminal.c (get_terminal): Handle terminals.
25324 Make sure the terminal returned is live.
25325 (create_terminal): Use allocate_terminal.
25326 (mark_terminals): Move to alloc.c.
25327 (delete_terminal): Use terminal->name as liveness status.
25328 NULL out fields after freeing their contents.
25329 Don't deallocate the object.
25330 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25331 rather than an int.
25332 (Fterminal_live_p): Accept non-integer arguments.
25333 (Fterminal_list): Return terminal objects rather than an ints.
25334
25335 * alloc.c (enum mem_type): New member for `terminal' objects.
25336 (allocate_terminal): New function.
25337 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25338 Handle terminals.
25339 (mark_terminal): New fun.
25340 (mark_terminals): Move from terminal.c.
25341
25342 * term.c (get_tty_terminal): Don't treat output_initial specially.
25343 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25344 (delete_tty): Use terminal->name as liveness status.
25345
25346 * termhooks.h (struct terminal): Make it into a pseudovector.
25347 Remove `deleted' replaced by checking `name's nullness.
25348
25349 * print.c (print_object): Handle terminals.
25350
25351 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25352 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25353
25354 * frame.c (make_terminal_frame):
25355 * keyboard.c (tty_read_avail_input):
25356 * w32term.c (x_delete_terminal):
25357 * xfns.c (Fx_create_frame, x_create_tip_frame):
25358 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25359
25360 2007-09-20 Glenn Morris <rgm@gnu.org>
25361
25362 * process.c (Fmake_network_process): Doc fix.
25363
25364 2007-09-19 Jason Rumney <jasonr@gnu.org>
25365
25366 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25367
25368 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25369
25370 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25371 Fix a C warning regarding variable constness.
25372
25373 * xterm.c (handle_one_xevent): Fix a C warning.
25374
25375 2007-09-18 Jason Rumney <jasonr@gnu.org>
25376
25377 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25378
25379 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25380
25381 * gtkutil.c (gdpy_def): New variable.
25382 (xg_initialize): Initialize gdpy_def.
25383 (xg_display_close): If no other display exists, set gdpy_def to a
25384 new connection.
25385
25386 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25387
25388 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25389 when we have no file name for the icon.
25390 (xg_tool_bar_expose_callback): Remove.
25391 (xg_create_tool_bar): Don't connect expose signal to
25392 xg_tool_bar_expose_callback.
25393 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25394
25395 2007-09-16 Andreas Schwab <schwab@suse.de>
25396
25397 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25398 values instead of zapping them.
25399
25400 2007-09-14 Glenn Morris <rgm@gnu.org>
25401
25402 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25403 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25404 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25405 scope and rename to omfib_buffer for clarity.
25406 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25407
25408 2007-09-14 Kenichi Handa <handa@m17n.org>
25409
25410 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25411
25412 2007-09-13 Jason Rumney <jasonr@gnu.org>
25413
25414 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25415
25416 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25417
25418 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25419 (mac_term_init): Call here instead, passing rif.
25420
25421 2007-09-13 Glenn Morris <rgm@gnu.org>
25422
25423 * s/hpux.h: No longer define `static' as nothing.
25424
25425 2007-09-13 Johan Bockgård <bojohan@gnu.org>
25426
25427 * callint.c (Fcall_interactively): Remove unused var `fun'.
25428
25429 2007-09-12 Romain Francoise <romain@orebokech.com>
25430
25431 * window.c (prefer_window_split_horizontally, display_buffer):
25432 Revert 2007-09-08 change.
25433
25434 2007-09-12 Glenn Morris <rgm@gnu.org>
25435
25436 * alloca.c: Remove file.
25437 * Makefile.in (alloca): Do not undef.
25438 (allocaobj, alloca.o): Remove.
25439 (otherobj): Remove allocaobj.
25440 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25441 * regex.c (C_ALLOCA): Remove all references and code that was only
25442 used when this was defined.
25443 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25444 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25445 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25446
25447 * Makefile.in (SOURCES, unlock, relock): Delete.
25448
25449 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25450 (menu_grab_callback): All uses changed.
25451
25452 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25453 (x_reply_selection_request): All uses changed.
25454
25455 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25456
25457 * lread.c (load_warn_old_style_backquotes): Change message to look
25458 better when it appears in the middle of byte-compiler messages.
25459
25460 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25461
25462 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25463
25464 * xterm.c (x_create_terminal): Add comment.
25465
25466 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25467
25468 2007-09-10 Richard Stallman <rms@gnu.org>
25469
25470 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25471
25472 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25473
25474 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25475 (DEFUN): Document `intspec', use it instead of `prompt'.
25476
25477 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25478
25479 * data.c (Finteractive_form): If the interactive specification starts
25480 with a `(', use it as a Lisp form.
25481
25482 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25483 name and file modes.
25484
25485 * callint.c (Fcall_interactively): Comment fixes.
25486
25487 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25488
25489 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25490 and compiled functions.
25491
25492 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25493
25494 * window.c (prefer_window_split_horizontally): New variable.
25495 (display_buffer): Consider splitting window horizontally depending
25496 on prefer_window_split_horizontally.
25497
25498 2007-09-08 Eli Zaretskii <eliz@gnu.org>
25499
25500 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25501
25502 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25503
25504 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25505
25506 * frame.c (x_set_frame_parameters): Check number is positive before
25507 using XFASTINT.
25508
25509 * window.c (freeze_window_start): Don't presume selected_window holds
25510 a window object.
25511 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25512
25513 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25514
25515 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25516
25517 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25518
25519 * window.c (Vsplit_window_preferred_function): New var.
25520 (Fdisplay_buffer): Use it.
25521 (syms_of_window): Export, and initialize it.
25522
25523 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25524
25525 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25526
25527 2007-09-06 Glenn Morris <rgm@gnu.org>
25528
25529 * gtkutil.c (menu_grab_callback) <cnt>:
25530 * xselect.c (x_reply_selection_request) <cnt>: Move static
25531 variable to file scope.
25532
25533 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25534
25535 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25536 consistent values of selected_frame and selected_window.
25537
25538 2007-09-04 Jason Rumney <jasonr@gnu.org>
25539
25540 * w32console.c (initialize_w32_display): Zero unused hooks.
25541
25542 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25543
25544 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25545 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25546
25547 2007-09-04 Jason Rumney <jasonr@gnu.org>
25548
25549 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25550 in w32console.c. Set up input. Remove XXX comments that have been
25551 confirmed as correct.
25552
25553 * s/ms-w32.h (MULTI_KBOARD): Define.
25554
25555 * w32console.c (one_and_only_w32cons): Remove.
25556 (initialize_w32_display): Take terminal argument.
25557
25558 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25559 initialize_w32_display.
25560 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25561
25562 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25563
25564 * keyboard.c (discard_mouse_events): Discard it.
25565 (make_lispy_event): Translate it to a lisp event.
25566 (lispy_wheel_names): Add wheel-left and right events.
25567 (syms_of_keyboard): Enlarge wheel_syms.
25568
25569 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25570 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25571
25572 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25573
25574 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25575 from WM_MOUSEHWHEEL.
25576 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25577
25578 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25579 terminal.
25580
25581 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25582 keyboard for the terminal.
25583
25584 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25585
25586 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25587 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25588 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25589 and resume-tty-function to resume-tty-hook.
25590 (Fsuspend_tty, Fresume_tty): Use new names.
25591
25592 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25593
25594 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25595 if it starts with "n:".
25596
25597 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25598
25599 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25600
25601 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25602
25603 * frame.h:
25604 * frame.c (Qterm_environment_variable): Remove.
25605 (syms_of_frame): Don't init and staticpro it.
25606
25607 * callproc.c (getenv_internal): Remove special case for $TERM.
25608
25609 * callproc.c (Vinitial_environment): New variable.
25610 (set_initial_environment): Initialize it.
25611 (syms_of_callproc): Declare it.
25612 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25613 TERM under which a process runs is never related to the TERM in which
25614 Emacs is running.
25615
25616 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25617
25618 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25619 * s/darwin.h: ... do it here.
25620
25621 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25622
25623 * lisp.h (set_initial_environment): Rename from set_global_environment.
25624
25625 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25626 removed by mistake on the multi-tty branch.
25627
25628 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25629 (Fmodify_frame_parameters): Return a value.
25630
25631 * image.c (png_load): Comment-out var only used in commented-out code.
25632
25633 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25634 before passing it to mark_object.
25635
25636 * xfaces.c (internal_resolve_face_name): Return a value.
25637 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25638
25639 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25640 (x_icon): Comment-out var only used in commented-out code.
25641
25642 2007-08-29 Romain Francoise <romain@orebokech.com>
25643
25644 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25645 QUIT hasn't been provided.
25646
25647 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25648
25649 * callproc.c (child_setup, getenv_internal): Use the
25650 display-environment-variable and term-environment-variable frame params.
25651 (set_initial_environment): Initialise Vprocess_environment.
25652
25653 * config.in: Disable multi-keyboard support on a mac.
25654
25655 * frame.c (Qterm_environment_variable)
25656 (Qdisplay_environment_variable): New variables.
25657 (syms_of_frame): Intern and staticpro them.
25658 (Fmake_terminal_frame): Disable output method test.
25659
25660 * frame.h: Declare them here.
25661
25662 * macfns.c (x_set_mouse_color): Get rif from the frame.
25663 (x_set_tool_bar_lines): Don't use updating_frame.
25664 (mac_window): Add 2 new parameters for consistency with other systems.
25665 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25666 frame parameters following what is done in X11 and w32. Don't use
25667 FRAME_MAC_DISPLAY_INFO.
25668 (Fx_open_connection, start_hourglass): Remove window-system check.
25669 (x_create_tip_frame): Get the keyboard from the terminal.
25670
25671 * macmenu.c: Reorder includes.
25672 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25673
25674 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25675 terminal parameter.
25676 (x_clear_frame): Add a frame parameter.
25677 (note_mouse_movement): Get rif from the frame.
25678 (mac_term_init): Initialize the terminal.
25679 (mac_initialize): Make static and move terminal initialization ...
25680 (mac_create_terminal): ... to this new function.
25681
25682 * macterm.h (struct mac_display_info): Add terminal.
25683 (mac_initialize): Delete declaration.
25684
25685 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25686
25687 * sysdep.c: Comment out text after #endif.
25688
25689 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25690 is defined. Better initialize ttys in windows. Use terminal
25691 specific mouse_position_hook.
25692
25693 * termhooks.h (union display_info): Add mac_display_info.
25694
25695 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25696 Set the default minibuffer frame, window_system and the rest of the
25697 frame parameters following what is done in X11.
25698
25699 * w32term.c (w32_initialize): Make static.
25700
25701 * xselect.c (x_handle_selection_clear): Only access
25702 terminal->kboard when MULTI_KBOARD is defined.
25703
25704 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25705 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25706
25707 2007-08-29 Jason Rumney <jasonr@gnu.org>
25708
25709 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25710 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25711
25712 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25713 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25714
25715 * keyboard.c (restore_kboard_configuration): Only define when
25716 MULTI_KBOARD defined.
25717
25718 * makefile.w32-in: Update dependancies from Makefile.in.
25719 (OBJ1): Add terminal.$(O)
25720
25721 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25722 Don't define function body.
25723 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25724
25725 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25726
25727 * w32.c (request_sigio, unrequest_sigio): Remove.
25728
25729 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25730 (w32con_clear_frame, w32con_clear_end_of_line)
25731 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25732 (w32con_delete_glyphs, w32con_set_terminal_window)
25733 (scroll_line, w32_sys_ring_bell): Add frame arg.
25734 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25735 Add terminal arg.
25736 (PICK_FRAME): Remove.
25737 (w32con_write_glyphs): Use frame specific terminal coding.
25738 (one_and_only_w32cons): New global variable.
25739 (initialize_w32_display): Use it for storing hooks.
25740 (create_w32cons_output): New function.
25741
25742 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25743 arg a frame.
25744
25745 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25746 Set window_system.
25747 (x_set_tool_bar_lines): Don't use updating_frame.
25748 (Fx_create_frame): Set terminal and ref count.
25749 (Fx_open_connection): Remove window-system check.
25750
25751 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25752
25753 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25754 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25755 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25756 Add frame arg.
25757 (x_delete_terminal, w32_create_terminal): New functions.
25758 (w32_term_init): Create a terminal.
25759 (w32_initialize): Move terminal specific initialization to
25760 w32_create_terminal.
25761
25762 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25763 (w32_clear_rect, w32_clear_area): Use background from frame.
25764 (w32_display_info): Add terminal.
25765 (w32_sys_ring_bell, x_delete_display): Declare here.
25766
25767 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25768
25769 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25770
25771 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25772
25773 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25774 Fix get_named_tty calls for the controlling tty.
25775
25776 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25777
25778 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
25779
25780 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25781
25782 * term.c (tty_insert_glyphs): Add missing first parameter.
25783
25784 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25785
25786 * buffer.c (Fbuffer_list, Fbury_buffer):
25787 Take frame->buried_buffer_list into account.
25788
25789 * cm.c (current_tty): New variable, for cmputc().
25790 (cmputc): Use it.
25791 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25792 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25793 (cmgoto): Add tty parameter. Pass it on to calccost().
25794 Use emacs_tputs() instead of tputs().
25795
25796 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25797 tputs().
25798 (current_tty): New variable, for cmputc().
25799 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25800
25801 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25802 (internal_condition_case, internal_condition_case_1)
25803 (internal_condition_case_2): Don't abort when x_catching_errors.
25804
25805 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25806 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25807 prevent crashes caused by bogus longjmps in read_char.
25808
25809 * keymap.h (Fset_keymap_parent): Add EXFUN.
25810
25811 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25812 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25813 Remove redundant definition.
25814
25815 * macfns.c (x_set_mouse_color, x_make_gc):
25816 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25817
25818 * w32term.c (x_free_frame_resources):
25819 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25820 (w32_initialize): Use the accessor macros for terminal characteristics.
25821
25822 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25823 Use the accessor macros for terminal characteristics.
25824 * msdos.c (internal_terminal_init): Use the accessor macros for
25825 terminal characteristics.
25826 (ScreenVisualBell, internal_terminal_init):
25827 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25828
25829 * termopts.h (no_redraw_on_reenter): Declare.
25830
25831 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25832 (mark_terminals, mark_ttys): Declare.
25833 (Fgarbage_collect): Call them.
25834 (mark_object): Mark buried_buffer_list.
25835
25836 * prefix-args.c: Include stdlib.h for exit.
25837
25838 * syssignal.h: Add comment.
25839
25840 * indent.c: Include stdio.h.
25841
25842 * window.h (Vinitial_window_system): Declare.
25843 (Vwindow_system): Delete declaration.
25844
25845 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25846
25847 * image.c (lookup_image): Don't initialize `c' until the xasserts
25848 have been run.
25849
25850 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25851 FRAME_FOREGROUND_PIXEL.
25852
25853 * print.c (print_preprocess): Don't lose print_depth levels while
25854 iterating.
25855
25856 * widget.c (update_from_various_frame_slots):
25857 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25858
25859 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25860 frames.
25861 (window_internal_height): Remove bogus make_number call.
25862 (init_window_once): Call make_terminal_frame with two zero parameters.
25863
25864 * fileio.c (Fread_file_name): Update comment.
25865
25866 * callint.c (Fcall_interactively):
25867 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25868 Make sure it is correctly unwound.
25869
25870 * xsmfns.c (x_session_close): New function.
25871
25872 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25873 Delete declarations.
25874
25875 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25876 (x_output): Remove background_pixel and foreground_pixel fields.
25877 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25878 (x_delete_device, x_session_close): Declare.
25879
25880 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25881 (read_filtered_event): Call `read_char' with a local
25882 `wrong_kboard_jmpbuf'.
25883
25884 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25885 Don't call single_kboard_state. Use FRAME_RIF.
25886
25887 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25888 systems.
25889
25890 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25891 (Fframe_with_environment, Fset_input_meta_mode)
25892 (Fset_quit_char): EXFUN.
25893 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25894 (init_sys_modes, reset_sys_modes): Update prototypes.
25895 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25896
25897 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25898 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25899 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25900 Delete declarations.
25901 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25902 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25903 New declarations.
25904
25905 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25906 already does that during init_display(). Call syms_of_keymap
25907 before syms_of_keyboard. Call `syms_of_terminal'.
25908 Call set_initial_environment, not set_process_environment.
25909 (shut_down_emacs): Call reset_all_sys_modes() instead of
25910 reset_sys_modes().
25911
25912 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25913 (internal_resolve_face_name, resolve_face_name_error): New functions.
25914 (resolve_face_name): Protect against loops and errors thrown by Fget.
25915 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25916 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25917
25918 * scroll.c: Replace CURTTY() with local variables throughout the
25919 file (where applicable).
25920 (calculate_scrolling, calculate_direct_scrolling)
25921 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25922 characteristics.
25923
25924 * keymap.c (Vfunction_key_map): Remove.
25925 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25926 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25927 (Vkey_translation_map): Remove.
25928 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25929 (Fdescribe_buffer_bindings)
25930 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25931 Update for terminal-local key-translation-map.
25932
25933 * Makefile.in (callproc.o): Update dependencies.
25934 (lisp, shortlisp): Add termdev.elc.
25935 (obj): Add terminal.o.
25936 (terminal.o): Add dependencies.
25937 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25938 (data.o, fns.o): Add termhooks.h dependency.
25939 (SOME_MACHINE_LISP): Add dnd.elc.
25940 (minibuf.o): Fix typo.
25941 Update dependencies.
25942
25943 * data.c (do_symval_forwarding, store_symval_forwarding)
25944 (find_symbol_value): Use the selected frame's keyboard, not
25945 current_kboard.
25946
25947 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25948 Vwindow_system.
25949
25950 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25951 Fmenu_bar_open.
25952 (syms_of_xmenu): Update defsubr.
25953 (mouse_position_for_popup, Fx_popup_menu)
25954 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25955 (set_frame_menubar, free_frame_menubar)
25956 (create_and_show_popup_menu, xmenu_show)
25957 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25958 an X frame.
25959
25960 * xselect.c (x_own_selection): Abort if not an X frame.
25961 (some_frame_on_display): Check if it is an X frame.
25962 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25963
25964 * coding.c: Include frame.h and termhooks.h.
25965 (terminal_coding, keyboard_coding): Delete.
25966 (Fset_terminal_coding_system_internal)
25967 (Fset_keyboard_coding_system_internal)
25968 (Fkeyboard_coding_system)
25969 (Fterminal_coding_system): Add a terminal parameter.
25970 Get terminal_coding from the terminal.
25971 (init_coding_once): Don't call setup_coding_system here.
25972
25973 * dispextern.h (set_scroll_region, turn_off_insert)
25974 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25975 (tty_clear_end_of_line, tty_setup_colors)
25976 (delete_tty, updating_frame)
25977 (produce_special_glyphs, produce_glyphs, write_glyphs)
25978 (insert_glyphs): Remove.
25979 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25980 (tty_turn_off_highlight, get_tty_size): Add declaration.
25981 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25982
25983 * frame.h (enum output_method): Add output_initial.
25984 (struct x_output): Delete.
25985 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25986 Access foreground_pixel and background_pixel directly from the frame.
25987 (tty_display): Delete.
25988 (struct frame): Add buried_buffer_list, foreground_pixel,
25989 background_pixel and terminal. Delete kboard.
25990 (union output_data): Add tty.
25991 (FRAME_KBOARD): Get the kboard from the terminal.
25992 (FRAME_INITIAL_P): New macro.
25993 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25994 (Qterm_environment_variable, Qdisplay_environment_variable)
25995 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25996 New declarations.
25997
25998 * termchar.h (tty_output, tty_display_info): New structures.
25999 (tty_list): Declare.
26000 (FRAME_TTY, CURTTY): New macros.
26001 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26002 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26003 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26004 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26005
26006 * callproc.c: Include frame.h and termhooks.h, for terminal
26007 parameters.
26008 (add_env): New function.
26009 (child_setup): Use it.
26010 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26011 (getenv_internal): Fix get_terminal_param call.
26012 (Fgetenv_internal, egetenv): Update doc.
26013 (syms_of_callproc): Initialize Vprocess_environment to nil.
26014 Register and initialize them. Remove obsolete defvars. Update doc
26015 strings.
26016 (child_setup): Handle Vlocal_environment_variables.
26017 (getenv_internal): Add terminal parameter.
26018 Handle Vlocal_environment_variables.
26019 (Fgetenv_internal): Add terminal parameter.
26020 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26021 environment in a frame (not terminal) parameter. Update doc strings.
26022 (set_initial_environment): Rename from set_global_environment.
26023 Store Emacs environment in initial frame parameter.
26024
26025 * xdisp.c (redisplay_internal): Update references to
26026 `previous_terminal_frame'.
26027 (display_mode_line, Fformat_mode_line): Replace calls to
26028 `push_frame_kboard' with `push_kboard'.
26029 (get_glyph_string_clip_rects): Add extra parentheses and
26030 braces to prevent compiler warnings.
26031 (calc_pixel_width_or_height): Add xassert to check that the
26032 frame is alive. Don't call `lookup_image' on a termcap frame.
26033 (message2_nolog, message3_nolog, redisplay_internal)
26034 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26035 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26036 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26037 (Fx_display_pixel_width, Fx_display_pixel_height)
26038 (Fx_display_planes, Fx_display_color_cells)
26039 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26040 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26041 (Fx_display_backing_store, Fx_display_visual_class)
26042 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26043 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26044
26045 * xfns.c (x_set_foreground_color x_set_background_color)
26046 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26047 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26048 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26049 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26050 terminal that is being deleted.
26051 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26052 frame parameter, and make sure it overrides any user-supplied setting.
26053 (Fx_close_connection, Fx_synchronize): Unify argument names with
26054 the rest of the DEFUNs.
26055
26056 * dispnew.c (Fsend_string_to_terminal): Update call to
26057 `get_tty_terminal'.
26058 (Fredraw_frame, Fsend_string_to_terminal)
26059 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26060 FRAME_TERMCAP_P and FRAME_TTY.
26061 (window_change_signal): Don't believe width/height values that are
26062 impossibly small.
26063 (Vinitial_window_system): Rename from Vwindow_system.
26064 (termscript, Wcm, rif): Delete.
26065
26066 * termhooks.h (struct terminal): New struct containing the
26067 previously global text display hooks and new members NAME,
26068 DELETED and PARAM_ALIST.
26069 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26070 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26071 (FRAME_RIF): New macros.
26072 (get_terminal_param, get_device): New declarations.
26073 (termscript): Delete declaration.
26074
26075 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26076 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26077 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26078 FRAME_FOREGROUND_PIXEL.
26079 (x_fully_uncatch_errors): Disable definition.
26080 (x_scroll_bar_expose): Fix reference to foreground pixel.
26081 (XTread_socket): Disable loop on all X displays.
26082 (x_delete_terminal): Don't set terminal->deleted and let
26083 delete_terminal delete the frames on the terminal.
26084 (x_delete_display): Doc update to reflect changes in
26085 delete_terminal.
26086 (x_display_info) <terminal>: Move member earlier in the struct.
26087 (deleting_tty): Remove old variable.
26088 (Fsuspend_tty): Call clear_tty_hooks.
26089 (Fresume_tty, init_tty): Call set_tty_hooks.
26090 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26091 errors on X frames.
26092 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26093 (handle_one_xevent): Initialize `f' to NULL.
26094 (x_delete_terminal, x_create_terminal): New functions.
26095 (XTset_terminal_modes, XTreset_terminal_modes)
26096 (XTread_socket, x_connection_closed, x_term_init)
26097 (x_term_init, x_delete_display): Add terminal parameter.
26098 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26099 X connections.
26100
26101 * frame.c: Include termchar.h.
26102 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26103 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26104 (Qdisplay_environment_variable): New vars.
26105 (Fframep): Deal with output_initial.
26106 (Fframe-live-p): Doc fix.
26107 (Fwindow-system): New function.
26108 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26109 (make_terminal_frame): Don't create frames on a terminal that is
26110 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26111 (store_frame_param): Check for found_for_frame before calling XFRAME.
26112 (Fmake_terminal_frame): Handle NULL tty names correctly.
26113 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26114 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26115 frames to refer to a deleted frame in their 'environment parameter.
26116 (Fframe_with_environment): New function.
26117 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26118 (get_future_frame_param): New function.
26119 (Fmake_terminal_frame): Use it.
26120 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26121
26122 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26123 * sysdep.c (reset_sys_modes): Update for renames.
26124
26125 * keyboard.c (tty_read_avail_input): New function.
26126 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26127 (syms_of_keyboard): Defsubr them.
26128 (Fset_input_meta_mode, Fset_quit_char): New functions.
26129 (Fset_input_mode): Split to above functions.
26130 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26131 parameter. Use it in call to `read_char'.
26132 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26133 Set wrong_kboard_jmpbuf correctly in recursive calls.
26134 Use current_kboard to access Vkeyboard_translate_table.
26135 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26136 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26137 Update longjmp invocations. Remember the original current_kboard,
26138 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26139 changes it. Comment out unnecessary calls to
26140 `record_single_kboard_state' and `any_kboard_state'.
26141 Update recursive calls.
26142 (wrong_kboard_jmpbuf): Remove global variable.
26143 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26144 Handle deleted interrupted_kboards correctly; that is a legal
26145 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26146 and read_char calls. Abort if interrupted_kboard died in read_char.
26147 (any_kboard_state, single_kboard_state)
26148 (push_frame_kboard): Remove function.
26149 (pop_kboard): Switch out of single_kboard mode if the kboard has
26150 been deleted. Remove unused variable. Help debugging by not
26151 changing current_kboard unnecessarily. Set current_kboard to the
26152 kboard of the selected frame when the stored kboard object has
26153 been deleted before pop_kboard.
26154 (temporarily_switch_to_single_kboard): Change first parameter to a
26155 frame pointer. Throw an error when caller wants to change kboards
26156 while in single_kboard mode. Don't push_kboard if we weren't in
26157 single kboard state. Don't pop_kboard if we popped into any
26158 kboard state.
26159 (restore_kboard_configuration): Abort if pop_kboard changed the
26160 kboard in single_kboard mode. Call pop_kboard only after setting
26161 up single_kboard mode.
26162 (Frecursive_edit): Switch to single_kboard mode only in nested
26163 command loops.
26164 (cmd_error, command_loop, command_loop_1, timer_check):
26165 Comment out unnecessary call to `any_kboard_state' and
26166 `record_single_kboard_state'.
26167 (delete_kboard): Exit single_kboard mode if we have just deleted
26168 that kboard. Use FRAME_KBOARD.
26169 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26170 `fatal_error_signal'.
26171 (record_single_kboard_state): Don't push_kboard if we weren't in
26172 single kboard state. Don't pop_kboard if we popped into any
26173 kboard state.
26174 (push_frame_kboard): Rename to push_kboard.
26175 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26176 (read_avail_input): Read input from all terminals.
26177 (mark_kboards): Also mark Vkeyboard_translate_table.
26178 (kbd_buffer_store_event_hold): Simplify condition.
26179 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26180 (Vkeyboard_translate_table): Move to struct kboard.
26181 (init_kboard): Initialize Vkeyboard_translate_table.
26182 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26183 Vkeyboard_translate_table. Update doc strings. Update docs of
26184 local-function-key-map and function-key-map.
26185
26186 * terminal.c: New file.
26187
26188 * term.c: Include errno.h.
26189 (Vring_bell_function, device_list, initial_device)
26190 (next_device_id, ring_bell, update_begin, update_end)
26191 (set_terminal_window, cursor_to, raw_cursor_to)
26192 (clear_to_end, clear_frame, clear_end_of_line)
26193 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26194 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26195 (syms_of_term): Move their initialization to terminal.c.
26196 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26197 (Ftty_display_color_cells)
26198 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26199 (clear_tty_hooks, set_tty_hooks)
26200 (init_tty, maybe_fatal): New functions.
26201 (Ftty_type): Return nil if terminal is not on a tty instead of
26202 throwing an error. Doc update.
26203 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26204 Doc update. Initialize new subrs and variables.
26205 (delete_tty): Use terminal->deleted.
26206 (tty_set_terminal_modes): Rename from set_terminal_modes.
26207 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26208 (set_scroll_region): Rename to `tty_set_scroll_region'.
26209 (turn_on_insert): Rename to `tty_turn_on_insert'.
26210 (turn_off_insert): Rename to `tty_turn_off_insert'.
26211 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26212 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26213 (toggle_highligh): Rename to `tty_toggle_highlight'.
26214 (background_highlight): Rename to `tty_background_highlight'.
26215 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26216 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26217 (tty_set_scroll_region, tty_background_highlight)
26218 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26219 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26220 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26221 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26222 Add static modifier.
26223 (tty_reset_terminal_modes, tty_set_terminal_window)
26224 (tty_set_scroll_region, tty_background_highlight)
26225 (tty_highlight_if_desired, tty_cursor_to)
26226 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26227 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26228 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26229 renames.
26230
26231 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26232
26233 * keyboard.c: Qrtl is new.
26234 (parse_tool_bar_item): Handle :rtl keyword.
26235 (syms_of_keyboard): Intern :rtl keyword.
26236
26237 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26238
26239 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26240 so no Lisp code is executed.
26241 (file_for_image, find_rtl_image): New functions.
26242 (xg_get_image_for_pixmap): Use file_for_image.
26243 (update_frame_tool_bar): If direction is RTL, use RTL image if
26244 defined. Use Gtk stock images if defined.
26245
26246 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26247
26248 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26249 for nonexistent or zero-width glyph in composition glyph.
26250
26251 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26252
26253 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26254
26255 * xdisp.c (Finvisible_p): New function.
26256 (syms_of_xdisp): defsubr it.
26257
26258 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
26259
26260 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26261 Doc fixes.
26262
26263 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26264
26265 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26266
26267 2007-08-24 Martin Rudalics <rudalics@gmx.at>
26268
26269 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26270 whether decoding has modified buffer contents.
26271
26272 2007-08-24 Jason Rumney <jasonr@gnu.org>
26273
26274 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26275 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26276 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26277 (init_svg_functions) [HAVE_NTGUI]: New function.
26278 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26279 (svg_load_image): Use them.
26280 (svg_load_image) [HAVE_NTGUI]: Implement background.
26281
26282 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26283
26284 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26285 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26286 (LIBX): Remove @RSVG_LIBS@.
26287 (LIBES): Add $(RSVG_LIBS).
26288
26289 * image.c (svg_load_image): Blend with specified background if exists.
26290 Use IMAGE_BACKGROUND. Add Mac OS Support.
26291
26292 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26293 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26294 Remove macros.
26295 [MAC_OSX] (socket_callback): Do nothing.
26296 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26297 ReceiveNextEvent.
26298 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26299 socket_callback.
26300 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26301
26302 2007-08-22 Glenn Morris <rgm@gnu.org>
26303
26304 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26305
26306 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26307
26308 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26309
26310 * image.c: Add support for SVG images. Some additional comments
26311 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26312 (svg_image_p): New function to test for SVG image.
26313 (svg_load): New function to load SVG image.
26314 (svg_load_image): New function, helper for svg_load.
26315 (Qsvg): New Lisp_object.
26316 (svg_keyword_index): New enum.
26317 (svg_format): New static `image_keyword' struct.
26318 (svg_type): New static `image_type' struct.
26319 (librsvg/rsvg.h): Include it.
26320
26321 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26322
26323 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26324
26325 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26326
26327 * lread.c (Qold_style_backquotes): New var.
26328 (syms_of_lread): Init and staticpro it.
26329 (load_warn_old_style_backquotes): New fun.
26330 (Fload): Use them to warn about old style backquotes.
26331 (end_of_file_error, Fload): Remove unused vars.
26332
26333 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26334
26335 * lread.c (Vold_style_backquotes): New var.
26336 (syms_of_lread): Init and export it to Elisp.
26337 (read1): Set it when we find an old-style (back)quote.
26338
26339 2007-08-22 Jason Rumney <jasonr@gnu.org>
26340
26341 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26342
26343 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26344
26345 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26346
26347 2007-08-19 Richard Stallman <rms@gnu.org>
26348
26349 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26350
26351 2007-08-19 Andreas Schwab <schwab@suse.de>
26352
26353 * alloc.c (pure): Round PURESIZE up.
26354
26355 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26356
26357 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26358 active frame.
26359
26360 2007-08-16 Richard Stallman <rms@gnu.org>
26361
26362 * eval.c (Fcommandp): Add parens to clarify.
26363
26364 * minibuf.c (Fall_completions): Use enum for type of table.
26365
26366 * emacs.c (USAGE2): Improve text.
26367
26368 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26369
26370 * term.c (tty_default_color_capabilities): Declare static
26371 variables in file scope, to avoid HPUX compiler problem.
26372
26373 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26374
26375 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26376 to gtk_toolbar_insert.
26377
26378 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26379
26380 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26381
26382 * insdel.c (reset_var_on_error): New fun.
26383 (signal_before_change, signal_after_change):
26384 Use it to reset (after|before)-change-functions to nil in case of error.
26385 Bind inhibit-modification-hooks to t.
26386 Don't bind (after|before)-change-functions to nil while they run.
26387
26388 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26389
26390 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26391 filling pixmap with stippled background.
26392
26393 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26394
26395 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26396 Don't use invisible frame as parent window for repositioning.
26397
26398 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26399
26400 * print.c (new_backquote_output): Rename from old_backquote_output.
26401 (print): Inverse its logic (according to its name) so as to match the
26402 behavior of new_backquote_flag in lread.c.
26403
26404 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26405
26406 * gmalloc.c (posix_memalign): New function.
26407
26408 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26409 ActivateControl/DeactivateControl here.
26410 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26411 frame-notice-user-settings is non-nil.
26412 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26413 for kEventParamFMFontStyle.
26414 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26415 mac_pass_command_to_system and mac_pass_control_to_system here.
26416 (XTread_socket): Call ActivateControl/DeactivateControl here.
26417 (XTread_socket) [TARGET_API_MAC_CARBON]:
26418 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26419 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26420 for window repositioning.
26421
26422 2007-08-08 Glenn Morris <rgm@gnu.org>
26423
26424 * Replace `iff' in doc-strings and comments.
26425
26426 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
26427
26428 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26429
26430 2007-08-07 Martin Rudalics <rudalics@gmx.at>
26431
26432 * fileio.c (Finsert_file_contents): Run format-decode and
26433 after_insert_file_functions on entire buffer when REPLACE is
26434 non-nil and inhibit modification_hooks and point_motion_hooks.
26435 For consistency, run after_insert_file_functions iff something
26436 got inserted. Move signal_after_change and update_compositions
26437 after code running after_insert_file_functions. Make sure that
26438 undo_list doesn't record intermediate steps of the decoding process.
26439
26440 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26441
26442 * emacs.c (main)
26443 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26444 Call malloc_enable_thread on interactive startup.
26445
26446 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26447 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26448 [USE_PTHREAD]: Conditionalize with it.
26449 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26450 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26451 New functions.
26452
26453 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
26454
26455 * xdisp.c (redisplay_window): When restoring original buffer
26456 position, make sure it is still valid.
26457
26458 * image.c (png_load): Ignore png-supplied background color.
26459
26460 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26461
26462 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26463 Use kCFAbsoluteTimeIntervalSince1970.
26464
26465 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26466 New variable.
26467 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26468 event loop should be quit.
26469 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26470 Quit dialog event loop if quit_dialog_event_loop is set.
26471
26472 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26473 (Selection): New typedef. Use instead of ScrapRef.
26474 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26475 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26476 (mac_clear_selection): Rename from clear_scrap.
26477 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26478 scrap_has_target_type. All uses changed.
26479 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26480 (mac_selection_has_target_p): New functions.
26481 (mac_put_selection_value): Rename from put_scrap_string.
26482 (mac_get_selection_value): Rename from get_scrap_string.
26483 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26484 (put_scrap_private_timestamp, scrap_has_target_type)
26485 (get_scrap_private_timestamp): Remove functions.
26486 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26487 (x_own_selection, x_get_local_selection):
26488 Use mac_valid_selection_value_p.
26489 (x_own_selection): Don't use put_scrap_private_timestamp.
26490 Record OWNERSHIP-INFO into Vselection_alist instead.
26491 (x_get_local_selection): Don't check type if request is local.
26492 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26493 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26494
26495 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26496
26497 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26498 add comment explaining why.
26499
26500 2007-08-03 Richard Stallman <rms@gnu.org>
26501
26502 * fileio.c (Fvisited_file_modtime): Use make_time.
26503
26504 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26505
26506 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26507 build.
26508
26509 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26510
26511 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26512
26513 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26514
26515 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26516
26517 2007-07-30 Richard Stallman <rms@gnu.org>
26518
26519 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26520
26521 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26522
26523 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26524
26525 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
26526
26527 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26528 remote default-directory.
26529
26530 * buffer.c (mode-line-format): Update doc string.
26531
26532 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26533
26534 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26535 scroll bar gap.
26536 (x_scroll_bar_create): Set bar->fringe_extended_p.
26537 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26538 on frame edge. Check fringe background extension. Don't clear
26539 extended fringe background area.
26540
26541 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26542 (w32_fill_area): Enclose multiple statements with do ... while (0).
26543
26544 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26545 Extend fringe background to scroll bar gap.
26546 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26547 Set bar->fringe_extended_p.
26548 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26549 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26550 background extension. Don't clear extended fringe background area.
26551
26552 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26553 New member fringe_extended_p.
26554
26555 2007-07-25 Glenn Morris <rgm@gnu.org>
26556
26557 * Relicense all FSF files to GPLv3 or later.
26558
26559 * COPYING: Switch to GPLv3.
26560
26561 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26562
26563 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26564
26565 * data.c (Finteractive_form): Check for the presence of an
26566 `interactive-form' symbol property more thoroughly.
26567
26568 * data.c (Finteractive_form): Use an `interactive-form' property if
26569 present, analogous to the function-documentation property.
26570
26571 2007-07-24 Jason Rumney <jasonr@gnu.org>
26572
26573 * w32fns.c (x_real_positions): Get real position from OS instead of
26574 calculating it.
26575
26576 2007-07-23 Jason Rumney <jasonr@gnu.org>
26577
26578 * filelock.c (current_lock_owner): Allow for @ sign in username.
26579
26580 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
26581
26582 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26583 remote default-directory.
26584
26585 * buffer.c (mode-line-format): Describe above case in doc string.
26586
26587 2007-07-20 Eli Zaretskii <eliz@gnu.org>
26588
26589 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26590 Define if not defined.
26591
26592 2007-07-18 Jason Rumney <jasonr@gnu.org>
26593
26594 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26595
26596 2007-07-18 Richard Stallman <rms@gnu.org>
26597
26598 * data.c (Fsetq_default): Doc fix.
26599
26600 * eval.c (Fsetq): Doc fix.
26601
26602 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
26603
26604 * coding.c (Ffind_operation_coding_system):
26605 * eval.c (For, Fand): Doc fixes.
26606 Reported by Johan Bockgård.
26607
26608 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26609
26610 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26611
26612 * xterm.h: Declare x_ewmh_activate_frame.
26613
26614 * xterm.c (x_ewmh_activate_frame): New function.
26615 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26616
26617 2007-07-17 Martin Rudalics <rudalics@gmx.at>
26618
26619 * window.c (Fdisplay_buffer): If largest or LRU window is the
26620 only window, split it even if it is not eligible for splitting.
26621 This restores the original behavior broken by the 2007-07-15
26622 change.
26623
26624 2007-07-17 Glenn Morris <rgm@gnu.org>
26625
26626 * abbrev.c (abbrev_check_chars): New function.
26627 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26628 Call abbrev_check_chars to check abbrev characters are word
26629 constituents. Doc fix.
26630
26631 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26632
26633 * process.c (Fstart_process, Fmake_network_process)
26634 (read_process_output): Fix up last changes.
26635
26636 2007-07-16 Eli Zaretskii <eliz@gnu.org>
26637
26638 * makefile.w32-in (clean): Don't delete *~.
26639
26640 2007-07-16 Andreas Schwab <schwab@suse.de>
26641
26642 * window.c (Fdisplay_buffer): Use NILP.
26643 (Fset_window_scroll_bars): Likewise.
26644
26645 2007-07-15 Martin Rudalics <rudalics@gmx.at>
26646
26647 * window.c (window_min_size_2): New function.
26648 (window_min_size_1, size_window, Fdisplay_buffer)
26649 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26650 windows without mode- or header-lines when window-min-height is
26651 too small.
26652 (size_window): Reset nodelete_p after testing it, following an
26653 earlier note by Kim F. Storm.
26654 (display_buffer): Do not set split_height_threshold to twice the
26655 value of window_min_height to avoid changing the value of a
26656 customizable variable. Rather explicitly check whether the
26657 height of the window that shall be splitted is at least as large
26658 as split_height_threshold.
26659 (Fwindow_full_width_p): New defun.
26660 (syms_of_window): Defsubr it.
26661
26662 * window.h: Add EXFUN for Fwindow_full_width_p.
26663
26664 2007-07-14 Jason Rumney <jasonr@gnu.org>
26665
26666 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26667
26668 2007-07-14 Richard Stallman <rms@gnu.org>
26669
26670 * eval.c (maybe_call_debugger): New function.
26671 (find_handler_clause): Use maybe_call_debugger.
26672 Call it when the handler says `debug'.
26673 Eliminate DEBUGGER_VALUE_PTR.
26674 (Fsignal): Eliminate debugger_value.
26675 (Qdebug): New variable.
26676 (syms_of_eval): Initialize it.
26677
26678 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
26679
26680 * eval.c (Fprogn):
26681 * keyboard.c (Ftrack_mouse):
26682 * print.c (Fwith_output_to_temp_buffer):
26683 * window.c (Fsave_window_excursion): Doc fix.
26684
26685 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26686
26687 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26688
26689 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26690
26691 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26692 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26693 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26694 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26695 Remove unused encoding_carryover.
26696 * process.c: Adjust all functions accordingly.
26697
26698 2007-07-12 Richard Stallman <rms@gnu.org>
26699
26700 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26701
26702 2007-07-11 Jason Rumney <jasonr@gnu.org>
26703
26704 * makefile.w32-in (LIBS): Include OLE32.
26705
26706 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26707 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26708
26709 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26710
26711 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26712 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26713 from a Lisp_Object into a bare pointer.
26714 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26715 Adjust the code correspondingly.
26716
26717 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26718
26719 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26720 (term_show_mouse_face): Remove unused var `j'.
26721 (handle_one_term_event): Remove unused vars `i' and `j'.
26722 Don't cast return value of ttyname since it's not necessary.
26723
26724 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26725
26726 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26727 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26728
26729 * fns.c (map_char_table): Use an array of int for `indices' rather than
26730 an array of Lisp_Objects (which are only ever integers anyway).
26731 (Fmap_char_table): Update caller.
26732 * lisp.h: Update prototype.
26733 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26734 * fontset.c (Ffontset_info):
26735 * casetab.c (set_case_table): Update callers.
26736
26737 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26738
26739 * keymap.c (struct accessible_keymaps_data)
26740 (struct where_is_internal_data): New structures.
26741 (accessible_keymaps_1, where_is_internal_1): Use them to change
26742 interface to adhere to the one used by map_keymap.
26743 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26744 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26745
26746 * keymap.h (map_keymap_function_t): More informative prototype.
26747
26748 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26749
26750 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26751 (looking_at_1): Don't change search_regs and last_thing_searched
26752 if `inhibit-changing-match-data' is non-nil.
26753 (string_match_1, search_buffer, set_search_regs): Likewise.
26754 (syms_of_search): Add Lisp level definition for
26755 `inhibit-changing-match-data' and set it to nil.
26756 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26757 start and end of the match, instead of using values in search_regs.
26758
26759 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26760
26761 * minibuf.c (Fcompleting_read): New value `confirm-only'
26762 for `require-match'.
26763
26764 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26765
26766 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26767 part of the 2007-06-27 change to syms_of_fileio.
26768
26769 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26770
26771 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26772 Check WINDOWP before using XWINDOW. Consolidate return statements.
26773
26774 2007-06-27 Richard Stallman <rms@gnu.org>
26775
26776 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26777
26778 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
26779
26780 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26781
26782 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26783
26784 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26785 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26786 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26787 (_free_internal, memalign): Use them.
26788 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26789 Initialize to PTHREAD_MUTEX_INITIALIZER.
26790 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26791 (morecore_nolock): Rename from morecore. All uses changed.
26792 Use only nolock versions of internal allocation functions.
26793 (_malloc_internal_nolock, _realloc_internal_nolock)
26794 (_free_internal_nolock): New functions created from
26795 _malloc_internal, _realloc_internal, and _free_internal.
26796 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26797 Copy hook value to automatic variable before its use.
26798 (memalign): Copy hook value to automatic variable before its use.
26799
26800 2007-06-26 Kenichi Handa <handa@m17n.org>
26801
26802 * coding.c (Ffind_operation_coding_system): Docstring improved.
26803 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26804
26805 2007-06-25 David Kastrup <dak@gnu.org>
26806
26807 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26808 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26809 cater for additional parameter.
26810
26811 * keymap.h: Adjust number of parameters to `current-active-maps'.
26812
26813 * doc.c (Fsubstitute_command_keys): Adjust call of
26814 `current-active-maps'.
26815
26816 2007-06-25 David Kastrup <dak@gnu.org>
26817
26818 * callint.c (Fcall_interactively): Make the parsing of interactive
26819 specs somewhat more readable.
26820
26821 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26822
26823 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26824 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26825 if extended background has already been filled.
26826
26827 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26828
26829 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26830 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26831
26832 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26833 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26834 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26835 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26836 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26837 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26838 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26839 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26840 Run timers during dialog popup.
26841 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26842
26843 2007-06-21 Jason Rumney <jasonr@gnu.org>
26844
26845 * image.c (convert_mono_to_color_image): Swap fore and background.
26846
26847 2007-06-20 Jason Rumney <jasonr@gnu.org>
26848
26849 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26850 (w32_free_bdf_font): Unmap memory not handle.
26851
26852 2007-06-20 Sam Steingold <sds@gnu.org>
26853
26854 * gmalloc.c (__morecore): Fix the declaration to comply with the
26855 definition.
26856
26857 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
26858
26859 * w32term.c (w32_delete_display): Remove leftover declaration.
26860 (w32_define_cursor, w32_initialize): Make static.
26861
26862 * w32.c (_wsa_errlist): Fix typo in error message.
26863 (init_environment): Ignore any environment variable from the
26864 registry having a null value.
26865
26866 2007-06-20 Glenn Morris <rgm@gnu.org>
26867
26868 * Makefile.in (LIBGIF): Default to -lgif.
26869
26870 2007-06-17 Jason Rumney <jasonr@gnu.org>
26871
26872 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26873 unicode strings.
26874
26875 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
26876
26877 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26878 Fix typo in docstring.
26879
26880 2007-06-16 Eli Zaretskii <eliz@gnu.org>
26881
26882 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26883 and their keybindings.
26884
26885 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
26886
26887 * composite.c (update_compositions): Fix last fix.
26888
26889 2007-06-14 Jason Rumney <jasonr@gnu.org>
26890
26891 * w32.c (get_process_times_fn): New function pointer.
26892 (globals_of_w32): Intialize it if present in kernel32.dll.
26893 (w32_get_internal_run_time): New function.
26894
26895 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26896
26897 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26898
26899 * composite.c (update_compositions): Check the validness of
26900 compositions.
26901
26902 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26903
26904 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26905 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26906
26907 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26908 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26909
26910 * macgui.h (USE_MAC_TOOLBAR): New define.
26911
26912 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26913 Return immediately unless popup is activated.
26914
26915 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26916 background to scroll bar gap.
26917 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26918 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26919 scroll bars on frame edge. Check fringe background extension.
26920 Don't clear extended fringe background area.
26921 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26922 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26923 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26924 [USE_MAC_TOOLBAR]: New macros.
26925 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26926 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26927 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26928 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26929 [USE_MAC_TOOLBAR]: New functions.
26930 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26931 manually if previous repositioning has failed.
26932 (mac_handle_keyboard_event): Use precomputed event kind.
26933 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26934 as tool bar item click. Handle mouse movement over tool bar items.
26935
26936 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26937 toolbar_win_gravity.
26938 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26939 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26940 Add externs.
26941
26942 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26943 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26944
26945 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
26946
26947 * image.c (search_image_cache): Remove unused variable.
26948
26949 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
26950
26951 * xfns.c, xmenu.c: Link to xaw3d if available.
26952
26953 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26954
26955 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26956 frame_foreground and frame_background.
26957
26958 * image.c (lookup_image): Save frame foreground and background colors.
26959 (search_image_cache): Check if saved and current frame colors match.
26960
26961 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26962
26963 * regex.c (regex_compile): Remove the `regnum' counter.
26964 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26965
26966 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26967
26968 * term.c: Include intervals.h to declare Fget_text_property.
26969
26970 2007-06-10 Jason Rumney <jasonr@gnu.org>
26971
26972 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26973
26974 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
26975
26976 * callint.c (Fcall_interactively):
26977 * editfns.c (Fdelete_and_extract_region):
26978 * fileio.c (Fread_file_name):
26979 * fns.c (Fmapconcat):
26980 * keyboard.c (cmd_error_internal):
26981 * keymap.c (Fkey_description):
26982 * lread.c (openp):
26983 * minibuf.c (read_minibuf):
26984 * search.c (wordify):
26985 * sunfns.c (sel_read):
26986 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26987 * xfns.c (x_default_scroll_bar_color_parameter):
26988 * xmenu.c (menu_help_callback):
26989 * xselect.c (Fx_get_atom_name):
26990 * xterm.c (x_term_init): Use empty_unibyte_string.
26991
26992 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26993
26994 * alloc.c (init_strings): Initialize canonical empty strings.
26995 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26996 canonical empty string when the requested size is 0.
26997
26998 * emacs.c (empty_unibyte_string): Rename from empty_string.
26999 (empty_multibyte_string): New canonical empty string.
27000 (syms_of_emacs): Don't initialize empty_string.
27001
27002 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27003 string, if appropriate.
27004 (empty_unibyte_string, empty_multibyte_string): New externs.
27005 (empty_string): Remove extern.
27006
27007 * lread.c (syms_of_lread): Use empty_unibyte_string.
27008
27009 2007-06-07 Jason Rumney <jasonr@gnu.org>
27010
27011 * s/ms-w32.h: Don't define HAVE_TZNAME.
27012
27013 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27014
27015 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27016
27017 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27018
27019 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27020 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27021
27022 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27023 Don't call next handler.
27024 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27025 Remove argument. Install handler to application.
27026 (set_frame_menubar): Don't change deep_p.
27027 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27028 FRAME_OUTER_TO_INNER_DIFF_Y.
27029 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27030 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27031 [HAVE_DIALOGS]: New macros.
27032 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27033 Use them.
27034 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27035
27036 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27037 init_service_handler. All callers changed. Return OSStatus value.
27038
27039 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27040 All callers changed so as not to call SetPortWindowPort.
27041 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27042 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27043 mac_draw_string_common.
27044 (mac_draw_image_string_qd): Likewise.
27045 (mac_draw_string_common): Use them. Add INLINE.
27046 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27047 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27048 GetGlobalMouse.
27049 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27050 and FRAME_OUTER_TO_INNER_DIFF_Y.
27051 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27052 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27053 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27054 repositioning window to mac_handle_window_event.
27055 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27056 saving window location to mac_handle_window_event
27057 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27058 (install_menu_target_item_handler): Remove argument in extern.
27059 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27060 Also accept command events.
27061 (do_keystroke): New function created from XTread_socket.
27062 (init_command_handler): Remove functions.
27063 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27064 and save window location by kEventWindowShowing and kEventWindowHiding
27065 handlers here. Don't call next handler for window state change and
27066 focus events.
27067 (mac_handle_application_event, mac_handle_keyboard_event)
27068 [TARGET_API_MAC_CARBON]: New functions.
27069 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27070 kEventWindowShowing and kEventWindowHiding events. Move installation
27071 of mouse, font, text input and menu target item handlers to
27072 install_application_handler.
27073 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27074 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27075 New function.
27076 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27077 Register it.
27078 (XTread_socket) [TARGET_API_MAC_CARBON]:
27079 Consolidate SendEventToEventTarget calls.
27080 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27081 Move application activation handler to mac_handle_application_event.
27082 Move keyboard handler to mac_handle_keyboard_event.
27083 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27084 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27085 init_command_handler. Call install_application_handler.
27086
27087 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27088 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27089
27090 2007-06-07 Glenn Morris <rgm@gnu.org>
27091
27092 * emacs.c (main): Use `emacs-copyright' in --version output.
27093
27094 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
27095
27096 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27097
27098 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27099
27100 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27101
27102 * macgui.h: Replace WindowPtr with WindowRef.
27103
27104 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27105 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27106 Replace ControlHandle with ControlRef.
27107 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27108
27109 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27110 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27111 Replace ControlHandle with ControlRef.
27112 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27113 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27114
27115 * macterm.h (struct scroll_bar): Rename member control_handle_low
27116 and control_handle_high to control_ref_low and control_ref_high.
27117 All uses changed.
27118 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27119 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27120 respectively. All uses changed.
27121 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27122 (install_window_handler, remove_window_handler): Replace WindowPtr
27123 with WindowRef in externs.
27124
27125 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
27126
27127 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27128
27129 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
27130
27131 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27132
27133 * frame.c (Fmouse_position, Fmouse_pixel_position):
27134 Condition on HAVE_GPM too.
27135
27136 * term.c (term_mouse_highlight): Remove unused variables.
27137 (Fterm_open_connection): Set gpm_zerobased to 1.
27138 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27139 Use zero based co-ordinates.
27140 (handle_one_term_event): Report a drag as mouse movement too.
27141
27142 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27143
27144 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
27145
27146 * image.c (search_image_cache): New function. Require background
27147 color match if background color is unspecified in the image spec.
27148 (uncache_image, lookup_image): Use it.
27149
27150 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
27151
27152 * window.c (Fshrink_window): Reflow docstring.
27153
27154 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
27155
27156 * Version 22.1 released.
27157
27158 2007-06-01 Richard Stallman <rms@gnu.org>
27159
27160 * xfns.c (x_encode_text): Add GCPRO.
27161
27162 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27163
27164 * xfns.c (x_set_name_internal): Save encoded name before
27165 x_encode_text in case string data is relocated.
27166
27167 2007-05-31 Richard Stallman <rms@gnu.org>
27168
27169 * buffer.c (syms_of_buffer): Doc fix.
27170
27171 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
27172
27173 * sysdep.c (init_sys_modes): Add rather than replace with
27174 O_NONBLOCK.
27175
27176 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27177 term_mouse_moveto.
27178
27179 * termhooks.h (term_mouse_moveto): New extern.
27180
27181 * term.c (mouse_face_window): Rename...
27182 (Qmouse_face_window): ...to this.
27183 (term_show_mouse_face, term_clear_mouse_face)
27184 (term_mouse_highlight): Use Qmouse_face_window.
27185 (term_mouse_moveto): New function.
27186 (term_mouse_position): Make it work.
27187 (syms_of_term): Uncomment assignment to mouse_position_hook.
27188 Staticpro Qmouse_face_window.
27189
27190 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27191
27192 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27193 around current_column call.
27194
27195 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27196
27197 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27198 * xdisp.c (next_element_from_buffer):
27199 * window.c (delete_window):
27200 * term.c (term_mouse_highlight):
27201 * msdos.c (getdefdir):
27202 * macterm.c (mac_create_bitmap_from_bitmap_data)
27203 (init_font_name_table):
27204 * fns.c (Fsxhash):
27205 * data.c (Fmake_local_variable):
27206 * ccl.c (ccl_driver): Likewise.
27207
27208 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27209
27210 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27211 Call mac_wakeup_from_rne on window size change.
27212
27213 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
27214
27215 * image.c (uncache_image): Fix typo.
27216
27217 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27218
27219 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27220
27221 2007-05-22 Richard Stallman <rms@gnu.org>
27222
27223 * xterm.c (x_connection_closed): Remove NO_RETURN.
27224
27225 2007-05-22 Martin Rudalics <rudalics@gmx.at>
27226
27227 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27228
27229 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
27230
27231 * image.c (uncache_image): New function.
27232 (Fimage_refresh): New function.
27233
27234 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27235
27236 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27237
27238 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27239
27240 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27241 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27242
27243 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27244
27245 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27246 conditional on [HAVE_GPM_H].
27247
27248 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27249
27250 * syntax.c (skip_chars): Update syntax-table only after we checked that
27251 the new location is valid.
27252
27253 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27254
27255 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27256 mac_get_window_bounds.
27257
27258 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
27259
27260 * Makefile.in (LIBGPM): Allow it to be set from configure.
27261 If set then link Emacs with it.
27262
27263 * config.in: Regenerate.
27264
27265 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27266 New externs.
27267
27268 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27269 Include gpm.h.
27270 (handle_one_term_event, term_gpm): New externs.
27271
27272 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27273 and allow it to be interrupted by SIGIO.
27274
27275 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27276 (wait_reading_process_output): Wait on gpm_fd too.
27277 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27278 (add_gpm_wait_descriptor_called_flag): New variable.
27279 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27280
27281 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27282 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27283 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27284 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27285 (make_lispy_event): Add case GPM_CLICK_EVENT.
27286 (read_avail_input): Handle mouse input.
27287
27288 * term.c (write_glyphs_with_face): New function.
27289 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27290 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27291 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27292 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27293 (last_mouse_x, last_mouse_y): New variables.
27294 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27295 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27296 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27297 (Fterm_close_connection): New functions.
27298 (term_init): Initialise mouse_face_window.
27299
27300 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
27301
27302 * xdisp.c (redisplay_window): If first window line is a
27303 continuation line, recompute the new window start instead of
27304 recentering.
27305
27306 2007-05-18 Glenn Morris <rgm@gnu.org>
27307
27308 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27309 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27310
27311 2007-05-17 Glenn Morris <rgm@gnu.org>
27312
27313 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27314
27315 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27316
27317 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27318 dead key repeat and up events.
27319
27320 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
27321
27322 * image.c (pbm_load): Check image size for monochrome pbm.
27323
27324 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
27325
27326 * xterm.c (XTread_socket): Revert last change.
27327
27328 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
27329
27330 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27331
27332 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27333
27334 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27335
27336 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27337 mixup (YAILOM).
27338
27339 2007-05-07 Andreas Schwab <schwab@suse.de>
27340
27341 * keymap.c (Flookup_key): Fix typo in last change.
27342
27343 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27344
27345 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27346 mapping for unibyte strings.
27347
27348 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27349
27350 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27351 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27352
27353 2007-04-29 Richard Stallman <rms@gnu.org>
27354
27355 * insdel.c (replace_range): For undo, record insertion first.
27356
27357 2007-04-29 Andreas Schwab <schwab@suse.de>
27358
27359 * lisp.h (VECSIZE): Use OFFSETOF.
27360
27361 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27362
27363 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27364 disabled lines.
27365
27366 2007-04-28 Richard Stallman <rms@gnu.org>
27367
27368 * lread.c (read_escape): In a string, \s is always space.
27369
27370 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27371
27372 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27373
27374 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27375 submenu for menu bar items.
27376
27377 See ChangeLog.10 for earlier changes.
27378
27379 ;; Local Variables:
27380 ;; coding: utf-8
27381 ;; add-log-time-zone-rule: t
27382 ;; End:
27383
27384 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
27385
27386 This file is part of GNU Emacs.
27387
27388 GNU Emacs is free software: you can redistribute it and/or modify
27389 it under the terms of the GNU General Public License as published by
27390 the Free Software Foundation, either version 3 of the License, or
27391 (at your option) any later version.
27392
27393 GNU Emacs is distributed in the hope that it will be useful,
27394 but WITHOUT ANY WARRANTY; without even the implied warranty of
27395 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27396 GNU General Public License for more details.
27397
27398 You should have received a copy of the GNU General Public License
27399 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27400
27401 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40