(Type Conversion): Don't use literal control character.
[emacs.git] / src / ChangeLog
blob9108cd39cc6e1a6488595f6a73de2a68ed4d23a9
1 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
3         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5         * frame.c: Qmaximized is new.
6         (x_set_frame_parameters): Do not handle fullscreen specially.
7         Only set width and height if explicitly set.
8         (x_set_fullscreen): Handle Qmaximized.
9         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
10         (syms_of_frame): Initialize Qmaximized.
12         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.  Declare
13         Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
15         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
16         for Expose event. Add call to x_check_fullscreen for MapNotify event.
17         Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
18         set gravity to NorthWestGravity when USE_GTK.
19         (set_wm_state): New function.
20         (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
21         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
22         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
23         or the case when no window manager is running. That means remove calls
24         to x_real_positions and x_fullscreen_adjust.
26         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
27         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
28         flush_and_sync.
29         (xg_height_changed): New function.
30         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
31         and gtk_window_set_policy.  Set frame gravity after parsing the geometry
32         string.
33         (xg_update_frame_menubar, free_frame_menubar)
34         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
35         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
36         Remove calls to xg_frame_set_char_size.
38 2009-07-01  Kenichi Handa  <handa@m17n.org>
40         * keyboard.c (decode_keyboard_code): New function.
41         (tty_read_avail_input): Decode the input bytes if necessary.
43         * coding.c (setup_coding_system): Initialize
44         coding->carryover_bytes to 0.
45         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
46         use Qno_conversion.
48 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
50         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
52 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
54         * xftfont.c (xftfont_open): Avoid passing NULL argument to
55         XftLockFace.
57 2009-06-30  Jason Rumney  <jasonr@gnu.org>
59         * w32term.c (w32_initialize): Use GetModuleHandle for library that
60         is already loaded.
61         Set user model ID if supported (bug#1849).
63 2009-06-29  Jim Meyering  <meyering@redhat.com>
65         Remove useless if-before-xfree test.
66         * nsfont.m (nsfont_close): Remove useless test.
67         * term.c (delete_tty): Likewise.
68         * w32.c (system_process_attributes): Likewise.
69         * w32font.c (w32font_close): Likewise.
70         * xfaces.c (x_free_gc): Likewise.
71         * xselect.c (buffer): Likewise.
73 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
75         * process.c (send_process): Keep decoded string in a local
76         variable and protect it from GC.  (Bug#3521)
78 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
80         * term.c (create_tty_output) [MSDOS]: #ifdef away.
81         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
83 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
85         * xdisp.c (start_display, handle_face_prop)
86         (move_it_vertically_backward, cursor_row_fully_visible_p)
87         (redisplay_window, try_window_id, produce_image_glyph): Delete
88         some #ifdef-ed out code chunks that are now obsolete.
90         * xterm.c (x_update_window_begin, x_new_focus_frame)
91         (x_scroll_bar_handle_click, handle_one_xevent)
92         (handle_one_xevent, XTread_socket, x_focus_on_frame)
93         (x_make_frame_visible, x_make_frame_invisible)
94         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
95         code chunks that are now obsolete.
97 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
99         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
100         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
101         for hours, when optimzation is enabled.
102         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
103         (xd_read_message): Make them static.
105 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
107         * term.c (turn_on_face): Allow simultaneously bold and dim
108         terminal faces (Bug#3530).
110 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
112         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
114         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
115         truncation glyphs (Bug#3686).
117 2009-06-27  Glenn Morris  <rgm@gnu.org>
119         * m/pmax.h: Restore file, with only netbsd portions.
121 2009-06-26  David Reitter <david.reitter@gmail.com>
123         * nsterm.m (keydown): Avoid infinite loop.
125 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
127         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
128         the arg FORCE_SYMBOL.
130 2009-06-25  Kenichi Handa  <handa@m17n.org>
132         * fontset.c (fontset_find_font): When a usable rfont_def is found
133         in a fallback font-group, make it the first element of the group.
135 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
137         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
139 2009-06-24  Kenichi Handa  <handa@m17n.org>
141         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
142         set for C.
143         (fontset_font): Record the availability of a font for C both in
144         the realized fontsets of the current one and the default one.
146 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
148         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
149         conditional, it is always defined on AIX.
151 2009-06-23  Miles Bader  <miles@gnu.org>
153         * window.c (Vrecenter_redisplay): New variable.
154         (syms_of_window): Initialize it.
155         (Qtty): New extern declaration.
156         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
158 2009-06-23  Jim Meyering  <meyering@redhat.com>
160         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use
161         xmalloc and xrealloc (not malloc and realloc), so subsequent heap
162         pointer dereferences are guaranteed to be valid.
164 2009-06-23  Kenichi Handa  <handa@m17n.org>
166         * emacs.c (main): Call init_font ().
168         * font.h (Vfont_log): Extern it.
169         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
171         * font.c (font_sort_entities, font_list_entities)
172         (font_matching_entity, font_open_entity)
173         (font_close_object): Change font_add_log to FONT_ADD_LOG.
174         (Vfont_log): Delete static.
175         (font_log_env_checked): Delete this variable.
176         (font_add_log): Don't check font_log_env_checked.
177         (font_deferred_log): Check Vfont_log.
178         (init_font): New function.
180         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
182         * w32font.c: Change font_add_log to FONT_ADD_LOG.
184         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
186         * xfont.c: Change font_add_log to FONT_ADD_LOG.
188         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
189         (face_for_char): Don't call font_deferred_log here.
190         (font_for_char): Likewise.
192 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
194         * w32term.c (x_draw_glyph_string): Use the glyph string's width
195         rather than its background_width for drawing the overline and
196         underline (Bug#489).
198         * xterm.c (x_draw_glyph_string): Use the glyph string's width
199         rather than its background_width for drawing the overline and
200         underline (Bug#489).
201         (xg_default_icon_file): New variable.
202         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
203         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
205         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
206         (load_overlay_strings): Remove externs.
207         (fast_find_position): Function deleted.
208         (mouse_face_from_buffer_pos): New function, based on
209         fast_find_position.  Correctly handle before-strings,
210         display-strings, and after-strings (Bug#1220).
211         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
213 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
215         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for
216         !HAVE_WINDOW_SYSTEM.
217         (move_it_in_display_line_to, move_it_in_display_line_to)
218         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
220 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
222         * Branch for 23.1.
224 2009-06-21  Jason Rumney  <jasonr@gnu.org>
226         * w32term.c (keyboard_codepage): New static variable.
227         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
228         (w32_read_socket) [WM_CHAR]: Use it to decode character
229         input (bug#3237).
230         (w32_initialize): Initialize it.
231         (codepage_for_locale): New function.
233 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
235         * process.c (status_message): Pass Faset index argument as a lisp
236         object, so as to work with USE_LISP_UNION_TYPE.
238 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
240         * coding.c (Ffind_coding_systems_region_internal):
241         Cache checked characters.
243 2009-06-18  Kenichi Handa  <handa@m17n.org>
245         * coding.c (decode_coding_iso_2022): Check MSB of bytes more
246         rigidly.
248 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
250         * xdisp.c (redisplay_internal): Check that the frame is still
251         live after redisplay of its windows.
252         (redisplay_windows): Check that the window is still live.
254 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
256         * coding.c (detect_coding_utf_16): Fix previous change.
258 2009-06-16  Kenichi Handa  <handa@m17n.org>
260         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
261         UTF-16 by checking the dispersion of Eth and Oth bytes.
263 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
265         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
267 2009-06-15  Kenichi Handa  <handa@m17n.org>
269         * process.c (status_message): Fix previous change.  Be sure to
270         decode a localized string.
272 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
274         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
275         add comment explaining why.
277 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
279         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
281 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
283         * nsfont.m (ns_attribute_value): Remove.
284         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
285         (ns_has_attribute): Shrink the normal range.
286         (ns_findfonts): Don't worry about requested spec in determining
287         need for synthItal.
288         (ns_get_covering_families): Retain scriptToFamilies.
290 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
292         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
294 2009-06-11  Kenichi Handa  <handa@m17n.org>
296         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
297         overhang for the static composition case.
299 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
301         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
302         overhang for the automatic composition case.
304         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
305         composition case.
307 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
309         * xdisp.c (get_next_display_element): When handling wrap-prefix
310         and line-prefix, treat \n as a control character (bug#3502).
312 2009-06-10  Kenichi Handa  <handa@m17n.org>
314         * font.c (font_parse_family_registry): Fix for one-char foundry.
315         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
317 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
319         * process.c (status_message): Fix handling of multibyte signal
320         string (Bug#3499).
322 2009-06-09  Jim Meyering  <meyering@redhat.com>
324         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
325         color name is missing.
327 2009-06-09  Kenichi Handa  <handa@m17n.org>
329         * charset.c (Fmap_charset_chars): In docstring, state clearly that
330         FROM-CODE and TO-CODE are codepoints of CHARSET.
332 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
334         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
336 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
338         Changes to support :script/:lang/:otf in NS font driver.
339         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
340         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
341         indicate not part of font driver interface, and change callers.
342         (ns_get_family): Remove pointless null check.
343         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
344         ns_spec_to_descriptor, ns_descriptor_to_entity.
345         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
346         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
347         (ns_spec_to_descriptor, ns_descriptor_to_entity)
348         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
349         (ns_get_req_script, ns_accumulate_script_ranges)
350         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
351         New functions.
352         (nsfont_list, nsfont_match): Use ns_findfonts.
353         (nsfont_open): Use font descriptor instead of traits.
354         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
355         (dump_glyphstring): Rename to ns_dump_glyphstring.
357         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
359         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
361         * fontset.c (fontset_from_font): Remove NS-specific code.
363 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
365         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
366         nonactive windows.
368 2009-06-08 Felix Mueller  <felix@enqueue.eu>  (tiny change)
370         * nsterm.m (ns_init_paths): Append path separator to INFOPATH
371         variable.
373 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
375         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
377 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
379         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
380         account for the overflowing of newlines into the last glyph on the
381         display line (Bug#3482).
383 2009-06-05  David Reitter  <david.reitter@gmail.com>
385         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
386         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
387         Fns_selection_exists_p, Fns_selection_owner_p.
389 2009-06-03  Jason Rumney  <jasonr@gnu.org>
391         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
392         available.  (Bug#3379)
394 2009-05-29  Kenichi Handa  <handa@m17n.org>
396         * coding.c (get_translation_table): Check
397         Venable_character_translation.
399 2009-05-26  David Reitter  <david.reitter@gmail.com>
401         * nsterm.m (ns_raise_frame): Only raise frame if visible.
402         (x_make_frame_visible): Move frame to front rather than calling
403         ns_raise_frame().
404         (keyDown:): Do not swallow events that aren't re-sent if frame
405         isn't key window.
406         (drawRect:): Do not set visibility/iconified flags because
407         drawRect may be called by NSView even if the frame is hidden.
409         * nsfns.m (Fx_create_frame): Follow other ports in
410         determining visibility; default to t.  Ensure async_visible is set.
412 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
414         * dired.c (Ffile_attributes): Doc fix.
416 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
418         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
420 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
422         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
423         and xfont_scratch_props.
424         (syms_of_xfont): Do it here instead.
425         (xfont_find_ccl_program): Delete, unused.
426         (xfont_open): Delete unused var `i'.
428 2009-05-21  Kenichi Handa  <handa@m17n.org>
430         * fontset.c (Qlatin): Don't make it static.
432         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
433         New functions.
434         (xfont_scripts_cache, xfont_scratch_props): New variables.
435         (Qlatin, Vscalable_fonts_allowed): Extern it.
436         (xfont_list_pattern): Argument changed.  Callers changed.
437         Check Vscalable_fonts_allowed.  Check the support of a script.
438         (xfont_list): Don't reject a font spec with :script property.
439         (xfont_has_char): Fix setting of encoding.
440         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
441         xfont_scratch_props.
443 2009-05-19  Kenichi Handa  <handa@m17n.org>
445         * font.c (font_sort_entities): Rename from font_sort_entites.
446         Callers changed.
448 2009-05-18  Kenichi Handa  <handa@m17n.org>
450         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
452 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
454         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
455         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
457 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
459         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
460         (x_delete_terminal): Dissociate resource database from display and
461         then call XrmDestroyDatabase before closing display.
463 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
465         * nsterm.m (ns_read_socket): Remove unused variable.
466         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
467         whether selected frame is viable before raising it (based on patch
468         by David Reitter), and improve commentary.
469         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
471 2009-05-15  Kenichi Handa  <handa@m17n.org>
473         * font.c (Ffont_spec): Check arguments.
475 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
477         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
478         weight when testing attributes (Bug#3282).
480 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
482         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
483         what we expect to get in the next ConfigureNotify event.
485         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
486         before Xft one (Bug#1696).
488 2009-05-07  David Reitter  <david.reitter@gmail.com>
490         * nsfns.m (Fx_display_planes): Compute bitplanes using
491         NSBitsPerPixelFromDepth (Bug#3207).
493 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
495         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
497 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
499         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
501 2009-05-07  David Reitter  <david.reitter@gmail.com>
503         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
504         Respect mouse face background.
506 2009-05-07  David Reitter  <david.reitter@gmail.com>
508         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
509         Mouse movement/highlight: bracket drawing operations
510         in ns_update_begin and ns_update_end.
512 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
514         * nsfns.m (ns_get_screen): Rewrite.
515         Don't presume selected-frame is of type `ns'.
517         * font.c (font_update_drivers): Sanity fallback to avoid disabling
518         all drivers.
520         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
522 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
524         * keyboard.h (add_user_signal): Fix typo in extern.
526         * lisp.h (add_user_signal): Remove extern.
528         * unexelf.c (unexec): Consider a section to precede the .bss section
529         if its addresses overlap that of .bss.
530         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
531         instead of dumping process.
533 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
535         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
537 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
539         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
541 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
543         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
544         any statements.
546 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
548         * process.c (read_process_output): Make sure the current buffer is
549         always restored.
551         * coding.c (record_conversion_result): Don't modify
552         Vlast_code_conversion_error for successful result.
553         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
555 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
557         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
558         (load_charset_map): Remove unnecessary code.
560 2009-04-30  David Reitter  <david.reitter@gmail.com>
562         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
563         through f24.
565 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
567         * xfaces.c (face_at_buffer_position): New arg base_face_id.
569         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
570         face_at_buffer_position.
571         (face_before_or_after_it_pos, get_next_display_element)
572         (note_mouse_highlight): Update face_at_buffer_position call.
574         * term.c (term_mouse_highlight):
575         * msdos.c (IT_note_mouse_highlight):
576         * fontset.c (Finternal_char_font):
577         * font.c (font_at, font_range): Update face_at_buffer_position call.
579         * dispextern.h (face_at_buffer_position): Update prototype.
581 2009-04-30  Kenichi Handa  <handa@m17n.org>
583         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
585 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
587         * callproc.c (Fcall_process): Fix GC protection.  Make sure
588         current buffer is always restored.
590 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
592         * atimer.c (init_atimer): Also clear stopped_atimers.
594         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
596         * process.c (create_process): Clean up merger residues of
597         2008-07-17 change.
599 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
601         * lread.c (Vread_circle): New variable.
602         (read1): Disable recursive read if Vread_circle is nil.
604 2009-04-29  Kenichi Handa  <handa@m17n.org>
606         * fontset.h (set_default_ascii_font): Delete extern.
608         * fontset.c (set_default_ascii_font): Delete this unused function.
610         * frame.c (x_set_font): When ARG is a font-object, check if the
611         font-object matches with the ASCII font-spec of the frame's
612         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
614 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
616         * fns.c (Flocale_info): Protect vector from GC during decoding.
618         * process.c (Fstart_process): Protect argv strings from GC during
619         encoding.
621 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
623         * sysdep.c: Include <ctype.h>.
625 2009-04-27  David Reitter  <david.reitter@gmail.com>
627         * nsfont.m (nsfont_open): Remove unused variable shrink.
628         Remove commented-out code.
630 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
632         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
634 2009-04-25  Jason Rumney  <jasonr@gnu.org>
636         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
638 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
640         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
641         Swap bytes in short integer if fringe bitmap width > 8.
643 2009-04-23  Kenichi Handa  <handa@m17n.org>
645         * xfaces.c (Fx_list_fonts): If a font size is specified in
646         PATTERN, set it in returned scalable fonts.
648 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
650         * keyboard.c (Fset_input_meta_mode): Doc fix.
652         * dispnew.c (Fsend_string_to_terminal): Doc fix.
654         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc
655         fixes.
657         * coding.c (Fterminal_coding_system): Doc fix.
659         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
660         (Fx_display_pixel_height, Fx_display_planes)
661         (Fx_display_color_cells, Fx_server_max_request_size)
662         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
663         (Fx_display_mm_height, Fx_display_mm_width)
664         (Fx_display_backing_store, Fx_display_visual_class)
665         (Fx_display_save_under, Fx_close_connection, Fx_synchronize): Doc
666         fixes, replacing "terminal id" with "terminal object".
667         (check_x_display_info): Handle terminal objects instead of
668         terminal ids.
670         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
671         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
672         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions): Doc
673         fixes, replacing "terminal id" with "terminal object".
675 2009-04-21  Kenichi Handa  <handa@m17n.org>
677         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
678         (font_score): Check AVGWIDTH too.
680         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
681         worst case.
682         (decode_coding_emacs_mule, decode_coding_iso_2022)
683         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
684         Likewise.
686 2009-04-19  Jason Rumney  <jasonr@gnu.org>
688         The following changes fix Bug#3005 for wide glyphs on each platform,
689         without reintroducing Bug#1258 for stretch glyphs.
691         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
692         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
693         get_phys_cursor_geometry.
695         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
696         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
697         using get_phys_cursor_geometry.
699         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
700         correctly calculated.
702 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
704         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
705         G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
706         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
707         is deprecated.
709 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
711         * font.c (font_put_frame_data): Use xfree instead of free.
713 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
715         * w32font.c (Qja, Qko): Remove declarations.
716         (syms_of_w32font): Don't DEFSYM them.
718 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
720         * font.c (Qja, Qko): Move definitions here from ftfont.c.
722         * font.h (Qja, Qko): Extern them.
724         * ftfont.c (Qja, Qko): Remove declarations.
726         * xfont.c (Qja, Qko): Remove declarations.
728 2009-04-17  Kenichi Handa  <handa@m17n.org>
730         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
731         string from a vector to handle Latin-1 characters correctly.
733         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
734         entity even if the cache hits.
736 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
738         * search.c (boyer_moore): Use zero as marker value for a possible
739         match instead of depending on overflow behavior.  (Bug#2844)
741         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
742         * lisp.h: Adjust prototypes.
744 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
746         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
747         change (Bug#3003).
749 2009-04-16  Kenichi Handa  <handa@m17n.org>
751         * xfont.c (xfont_has_char): Special handling of `ja' and `ko'
752         adstyle.
754         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
755         adstyle.
757         * ftfont.c (Qja, Qko): Don't make them static.
758         (enum ftfont_cache_for): New enum.
759         (fc_charset_table): Undo the previous change.
760         (ftfont_get_latin1_charset): Delete it.
761         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.  Set
762         FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
763         non-scarable font, try to get AVERAGE_WIDTH.
764         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
765         Change ft_face_cache from a list of a hash-table.  Don't check
766         `ja' and `ko' adstyle here.
767         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
768         FTFONT_CACHE_FOR_CHARET.
769         (ftfont_get_charset): Undo the previous change.
770         (ftfont_open): Call ftfont_lookup_cache with
771         FTFONT_CACHE_FOR_FACE.
772         (ftfont_close): Likewise.
773         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
775         * font.c (font_sort_entites): Change the meaning of the arg
776         BEST-ONLY.  Don't optimize for VEC of lenght 1.
777         (font_select_entity): Just return the value of font_sort_entites.
779         * xfaces.c (merge_face_vectors): Reflect font properties in
780         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
781         font_clear_prop if a face attribute doesn't change.
783         * charset.h (charset_ksc5601): Extern it.
785         * charset.c (charset_ksc5601): New variable.
786         (Fdefine_charset_internal): Set charset_ksc5601.
787         (init_charset_once): Initialize charset_ksc5601 to -1.
789 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
791         * fileio.c (history_delete_duplicates): Remove unused declaration.
793         * callint.c (history_delete_duplicates): New declaration.
794         (Fcall_interactively): Remove command history duplicates when
795         history_delete_duplicates is true.
797 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
799         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
801 2009-04-14  Kenichi Handa  <handa@m17n.org>
803         * font.c (Ffont_info): Fix docstring.  Fix the second element of
804         the returned value (bug#2949).
806 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
808         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
810 2009-04-14  Kenichi Handa  <handa@m17n.org>
812         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
813         encoding charset is ascii_compatible.
815         * charset.c (Fdefine_charset_internal): Make charset
816         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
817         code_offset is 0, and covers all ASCII characters.
819 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
821         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
822         (ns_string_to_pasteboard_internal):
823         * nsmenu.m (process_dialog):
824         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
825         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
826         * lisp.h (Fx_load_color_file): Declare.
828 2009-04-13  Kenichi Handa  <handa@m17n.org>
830         * font.c (font_delete_unmatched): Preserve the order of list
831         elements.
832         (font_select_entity): Suppress the code to optimize for the same
833         kind of fonts.
834         (font_load_for_lface): Get a font that supports at least ASCII
835         characters.
837         * ftfont.c (Qja, Qko): New variables.
838         (fc_charset_table): Delete uniquifier data for iso8859-1.
839         (ftfont_get_latin1_charset): New function.
840         (get_adstyle_property): New function.
841         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
842         bitmap fonts.
843         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
844         Delete iso-8859-1 range from the charset of fonts whose adstyle is
845         `ko' or `ja'.
846         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
847         (ftfont_get_charset): For iso8859-1, call
848         ftfont_get_latin1_charset.
849         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
850         property.
851         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
852         (syms_of_ftfont): DEFSYM Qja and Qko.
854 2009-04-09  Kenichi Handa  <handa@m17n.org>
856         * charset.c (map_charset_chars): For a charset of `superset'
857         method, fix calculation of code range.
859         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
860         from the list of extra properties.
861         (font_clear_prop): Be sure to delete `:name' font property.
863 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
865         * dispnew.c (redraw_overlapping_rows): Fix detection of
866         overlapping for topmost and bottommost rows.
868         * ftfont.c (ftfont_text_extents): Fix calculation of
869         metrics->descent.
871 2009-04-06  Jason Rumney  <jasonr@gnu.org>
873         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
875 2009-04-06  Kenichi Handa  <handa@m17n.org>
877         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
879         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
881 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
883         * ftfont.c (ftfont_open): Fix checking of the return value of
884         FT_Load_Char.  Fix setting font->underline_thickness.
886 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
888         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
889         (Fterminal_parameters, Fterminal_parameter)
890         (Fset_terminal_parameter): In doc string, refer to terminal
891         objects rather than terminal ids.
893 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
895         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
896         ret_lim_data.  (Bug#2867)
898 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
900         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
901         so they don't get wider than the window, matching 2006-01-23
902         change to the partner function in xdisp.c (Bug#2800).
904 2009-04-03  Kenichi Handa  <handa@m17n.org>
906         * print.c (print_object): Make each lowest sub_char_table start a
907         new line (Bug#2866).
909 2009-04-02  Kenichi Handa  <handa@m17n.org>
911         * fontset.c (fontset_font): Record no-font when a fontset
912         explicitly tells not to try another font-specs.
914 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
916         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
918 2009-03-30  Kenichi Handa  <handa@m17n.org>
920         * fontset.c (fontset_from_font): Specify only registry in a
921         font-spec for all characters supported by that registry.
923         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
924         even if HAVE_M17N_FLT is not defined.
926 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
928         * ftfont.c: Conditionalize prototyping and use of
929         ftfont_variation_glyphs.
931 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
933         * frame.c (delete_frame): Work around compiler bug.
935         * editfns.c (general_insert_function): Adjust to insdel.c changes.
936         * insdel.c (prepare_to_modify_buffer, signal_before_change):
937         Some more EMACS_INT.
938         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
940         * xdisp.c (dump_glyph): Fix typo.
942         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
943         (adjust_markers_gap_motion, adjust_markers_for_delete)
944         (adjust_markers_for_insert, adjust_point)
945         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
946         (make_gap, copy_text, count_size_as_multibyte, insert)
947         (insert_and_inherit, insert_before_markers)
948         (insert_before_markers_and_inherit, insert_1)
949         (count_combining_before, count_combining_after, insert_1_both)
950         (insert_from_string, insert_from_string_before_markers)
951         (insert_from_string_1, insert_from_gap, insert_from_buffer)
952         (insert_from_buffer_1, adjust_after_replace)
953         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
954         (replace_range_2, del_range, del_range_1, del_range_byte)
955         (del_range_both, del_range_2, modify_region)
956         (prepare_to_modify_buffer, signal_before_change)
957         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
958         for buffer positions and sizes.
959         * lisp.h: Adjust prototypes accordingly.
961         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
962         (non_regular_inserted, non_regular_nbytes, read_non_regular)
963         (Finsert_file_contents): Use EMACS_INT for buffer positions.
965         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
967 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
969         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
970         lines and columns so we keep the same pixel height and width.
972         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
973         the property _NET_WM_STATE has changed.
974         (x_handle_net_wm_state): New function to update frame parameter
975         fullscreen.
976         (x_term_init): Initialize atoms for _NET_WM_STATE.
978         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
980 2009-03-27  Kevin Ryde  <user42@zip.com.au>
982         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
983         Gpm_GetEvent as an error that justifies closing the filedescriptor.
984         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
985         (Fgpm_mouse_stop): Pass that new parameter.
986         * termhooks.h (close_gpm): Adjust prototype.
988 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
990         * lisp.h (Fx_focus_frame): Declare.
992         * callint.c (Fcall_interactively): For '^' just delegate the work to
993         handle-shift-selection.
994         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
996 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
998         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1000         * data.c (Qinteractive_form): New variable.
1001         (Finteractive_form): Use it.
1003         * eval.c (Fcommandp): Use Qinteractive_form.
1005 2009-03-24  Jason Rumney  <jasonr@gnu.org>
1007         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1008         Calculate total size precisely.  Decode environment variables
1009         before substituting.  (Bug#38)
1011 2009-03-24  Kenichi Handa  <handa@m17n.org>
1013         * font.c (find_font_encoding): Return Qnil for unsupported
1014         encoding (Bug#2722).
1016 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
1018         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1019         that gdpy is set.
1021 2009-03-22  Alan Mackenzie  <acm@muc.de>
1023         * callint.c (Finteractive): Clarify the doc string - even
1024         promptless elements need \n separators.
1026 2009-03-22  Jason Rumney  <jasonr@gnu.org>
1028         * w32term.c (syms_of_w32term): Doc fix for
1029         x-use-underline-position-properties.
1031 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
1033         * w32.c (getpwuid): Change argument type to unsigned.
1034         (struct w32_id): Change type of `rid' member to unsigned.
1035         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1036         argument ID to unsigned.  All callers changed.
1037         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1039 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
1041         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1042         negative, produce a float value.
1044         * dired.c (make_uid, make_gid): New functions.
1045         (Ffile_attributes): Use them to avoid negative UID and GID.
1047 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
1049         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1050         (syms_of_keyboard) <command-hook-internal, input-method-function>:
1051         Fix typos in docstrings.
1053 2009-03-19  Kenichi Handa  <handa@m17n.org>
1055         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
1056         changed, use font_load_for_lface to get a new font object.
1057         Call free_realized_fontset after handling ASCII font change.
1059         * frame.c (x_set_font): Handle the case that ARG is a cons.
1061 2009-03-19  Glenn Morris  <rgm@gnu.org>
1063         * fileio.c (Fsubstitute_in_file_name): Doc fix.
1065 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
1067         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1069 2009-03-19  Kenichi Handa  <handa@m17n.org>
1071         * charset.c (load_charset_map_from_file): When a mapfile can't be
1072         loaded, signal an error.
1074 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
1076         * dired.c (Ffile_attributes): Make sure UID and GID are always
1077         positive, even if the value is too large for a positive EMACS_INT.
1078         Doc fix.
1080         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
1082 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1084         * xmenu.c (xdialog_show): Move Fredisplay call ...
1085         (Fx_popup_dialog): ... here.
1087 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
1089         * dired.c (file_name_completion): Disable the first optimization just
1090         installed, since it is not implemented correctly.
1092 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
1094         * dired.c (file_name_completion): Check completion-ignored-extensions
1095         only if the entry can affect bestmatch.
1096         Stop the search early, as Ftry_completion already does.
1098 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
1100         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
1102 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
1104         * keyboard.c (parse_menu_item): Don't display remappings as menu
1105         equivalent bindings (Bug#788).
1107 2009-03-15  Jason Rumney  <jasonr@gnu.org>
1109         * w32term.h (WM_EMACS_PAINT): New message.
1110         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1111         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1112         before passing to lisp thread.  (Bug#950)
1114 2009-03-14  David Reitter  <david.reitter@gmail.com>
1116         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1117         variable as it was never reset.
1118         (ns_term_init): Remove initialization of Lisp-settable defaults
1119         and ns_expand_space.
1120         (-setPanelFromDefaultValues): Remove ns_expand_space.
1121         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1122         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
1123         i.e. no additional spacing, similar to Carbon port.
1125         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1126         * nsfns.m (ns-popup-prefs-panel): Remove.
1128 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
1130         * sound.c (alsa_configure): Remove call to deprecated
1131         snd_pcm_sw_params_set_xfer_align.
1133 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
1135         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1136         after clicking in a detached tool bar.
1137         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1139 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1141         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1142         int/Lisp_Object mixup).
1144 2009-03-13  Kenichi Handa  <handa@m17n.org>
1146         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
1147         Handle NAME nil and t correctly.  Callers changed.
1148         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1149         (set_fontset_font): Change ARG to a vector.  Handle range_list in
1150         ARG correctly.
1151         (Fset_fontset_font): Fix the case that TARGET is both a script
1152         name and charset name.  Adjust the arg to set_fontset_font for
1153         the above change.
1154         (fontset_from_font): Fix previous change.
1155         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
1156         entry.  If FONTSET is the default fontset, don't set the extra
1157         slot of the returning char-table.
1159 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
1161         * nsfns.m (Fx_close_connection): Doc fix.
1162         (Fns_do_applescript): Reflow docstring.
1163         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1164         (Fx_display_pixel_width, Fx_display_pixel_height)
1165         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1166         Fix typos in docstrings.
1167         (Fns_set_alpha): Fix typos in error messages.
1169 2009-03-12  David Reitter  <david.reitter@gmail.com>
1171         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
1172         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
1173         were used for such events.
1175         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1176         (toggleToolbar, performDragOperation, runHelp): Use it.
1178         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
1179         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1181 2009-03-11  Kenichi Handa  <handa@m17n.org>
1183         * font.h (font_open_by_spec): Extern it.
1185         * font.c (font_open_by_spec): New function.
1186         (font_open_by_name): Use font_open_by_spec.
1188         * frame.c (x_set_font): When ARG is a font-object, don't alter the
1189         fontset of the frame.
1191         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1192         modify the default font of frames that use this fontset.
1193         (num_auto_fontsets): New variable.
1194         (fontset_from_font): Use num_auto_fontsets to decide a fontset
1195         name.  Be sure to set FONTSET_ASCII to the correct font name.
1196         (update_auto_fontset_alist): New function.
1198 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
1200         * makefile.w32-in: Update dependencies.
1202 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
1204         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1206 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1208         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1210 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
1212         * lread.c (Feval_buffer): Doc fix.
1214 2009-03-09  Kenichi Handa  <handa@m17n.org>
1216         * charset.c (Qfile_name_handler_alist): Extern it.
1217         (load_charset_map_from_file): Temporarily bind
1218         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
1220 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
1222         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1223         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
1225 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
1227         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1228         (x_set_window_size): Change back to calculated method of setting
1229         toolbar height under Cocoa.  (Bug#2546)
1230         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1231         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1233         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1235         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1236         accelerator in parens under GNUstep.
1238 2009-03-06  Kenichi Handa  <handa@m17n.org>
1240         These changes are to detect incorrect composition sequence without
1241         looking ahead the source.  (Bug#2370)
1243         * coding.h: Include "composite.h".
1244         (enum compisition_state): New enum.
1245         (struct compisition_status): New struct.
1246         (struct iso_2022_spec): New member cmp_status.
1247         (struct emacs_mule_spec): New struct.
1248         (struct coding_system): New members ctext_extended_segment_len and
1249         embedded_utf_8.  Change the union member
1250         spec.emacs_mule_full_support to spec.emacs_mule.
1252         * coding.c (CODING_ISO_CMP_STATUS): New macro.
1253         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
1254         (MAX_ANNOTATION_LENGTH): Define to 5.
1255         (ADD_COMPOSITION_DATA): New arg nbytes.
1256         (emacs_mule_char): New arg cmp_status.
1257         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1258         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1259         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1260         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1261         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1262         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1263         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1264         (EMACS_MULE_COMPOSITION_END): New macro.
1265         (emacs_mule_finish_composition): New function.
1266         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1267         (decode_coding_emacs_mule): Avoid long looking ahead while
1268         handling composition.
1269         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1270         (ENCODE_COMPOSITION_RULE): New macro.
1271         (finish_composition): New function.
1272         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
1273         (DECODE_COMPOSITION_START): New implementation.
1274         (DECODE_COMPOSITION_END): Likewise.
1275         (STORE_COMPOSITION_RULE): New macro.
1276         (decode_coding_iso_2022): Avoid long looking ahead while handling
1277         composition, CTEXT extended segment, and embedded UTF-8.
1278         (setup_coding_system): For a coding of type iso-2022, reset
1279         CODING_ISO_EXTSEGMENT_LEN (coding) and
1280         CODING_ISO_EMBEDDED_UTF_8 (coding).
1281         (get_translation): Delete arguments last_block, from_nchars,
1282         to_nchars.  Callers changed.
1283         (produce_chars): Don't modify charbuf.  Adjusted for the change of
1284         get_translation.
1285         (produce_composition): Adjust for the new annotation sequence.
1286         (handle_composition_annotation): Likewise.
1287         (consume_chars): Adjust for the change of get_translation.
1289 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
1291         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
1293 2009-03-05  Kenichi Handa  <handa@m17n.org>
1295         * font.c (font_select_entity): New function.
1296         (font_find_for_lface): Use font_select_entity to select a font.
1298         * fontset.c (fontset_find_font): If a font found without
1299         restricting to the characters C doesn't support C, try to find a
1300         font with C restriction.
1302 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
1304         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
1306 2009-03-04  Jason Rumney  <jasonr@gnu.org>
1308         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
1309         characters that have already been read.  (Bug#2569)
1311         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
1312         Log an error message if check_image_size failed.
1313         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
1314         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
1316 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
1318         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
1319         when decoding process output.
1321 2009-03-01  Richard M Stallman  <rms@gnu.org>
1323         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
1325         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
1327 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
1329         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
1330         (decode_coding_emacs_mule, decode_coding_iso_2022)
1331         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
1332         (decode_coding_raw_text, decode_coding_charset)
1333         (setup_coding_system, decode_eol, decode_coding, consume_chars):
1334         Honor inhibit-eol-conversion.  (Bug #2186)
1336 2009-02-28  Jason Rumney  <jasonr@gnu.org>
1338         * coding.c (detect_coding_charset): If not checking latin extra,
1339         fail on characters between 0x80 and 0xA0.  (Bug#2354)
1341 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
1343         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
1344         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
1346 2009-02-27  Glenn Morris  <rgm@gnu.org>
1348         * callint.c (Finteractive): Doc fix.
1350 2009-02-27  Kenichi Handa  <handa@m17n.org>
1352         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
1354 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
1356         * font.c (font_style_to_value): Set value for unknown symbols to
1357         100 instead of 255.
1358         (weight_table, slant_table, width_table): Treat "unspecified" as
1359         the default value.
1361 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
1363         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
1365 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
1367         * lread.c (Fload): Stop checking Vloads_in_progress and signal
1368         error as soon as a recursive load is detected.
1370 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
1372         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
1373         before caching.
1375 2009-02-24  Kenichi Handa  <handa@m17n.org>
1377         * fontset.c (fontset_find_font): Fix the condition for checking
1378         unavailable font.
1380 2009-02-24  Glenn Morris  <rgm@gnu.org>
1382         * xfaces.c (Finternal_set_font_selection_order): Remove leading
1383         whitespace that confuses documentation.
1385 2009-02-23  Miles Bader  <miles@gnu.org>
1387         * process.c (Flist_system_processes, Fprocess_attributes)
1388         (syms_of_process): Rename `system-process-attributes' to
1389         `process-attributes'.
1391 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
1393         * coding.h (struct coding_system): Make safe_charsets a pointer to
1394         unsigned char.
1395         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
1396         being 255.
1397         (SAFE_CHARSET_P): Likewise.
1398         (setup_iso_safe_charsets): Properly setup safe_charsets.
1399         (Fdefine_coding_system_internal): Likewise.
1400         (setup_coding_system): Likewise.  Remove unneeded casts.
1401         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
1402         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.  Remove
1403         unneeded casts.
1405         * insdel.c (del_range_2): Don't modify gap contents when called
1406         from decode_coding_object.  (Bug#1809)
1408 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
1410         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
1411         Qfont_object.
1412         (Ftype_of): Recognize font objects.
1414         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
1416         * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
1417         moved to data.c.
1419 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
1421         * nsterm.m (x_make_frame_invisible): Unset async_visible,
1422         async_iconified.  Based on a patch by Christian Lynbech
1423         <christian.lynbech@tieto.com>.
1424         (EmacsView-windowDidMiniaturize:): Unset async_visible.
1426 2009-02-20  Glenn Morris  <rgm@gnu.org>
1428         * syntax.c (Fskip_chars_forward): Fix doc typo.
1430 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
1432         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
1434 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
1436         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
1438 2009-02-19  Kenichi Handa  <handa@m17n.org>
1440         * coding.c (detect_coding): Preserve coding->mode.
1441         Don't overflow coding->carryover.  (Bug#2370)
1443 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
1445         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
1447 2009-02-18  Kenichi Handa  <handa@m17n.org>
1449         * font.c (font_check_otf_features): Fix handling of `nil' element.
1450         (Ffont_spec): Describe :lang and :otf in the docstring.
1452 2009-02-16  Andreas Schwab  <schwab@suse.de>
1454         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
1455         string.
1457 2009-02-16  Kenichi Handa  <handa@m17n.org>
1459         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
1460         (Bug#1723)
1462 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
1464         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
1466         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
1467         (handle_line_prefix): Suppress wrapping of wrap prefixes.
1469 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
1471         * msdos.c (MAX_SCREEN_BUF): New macro.
1472         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
1473         Encode the entire run of glyphs sharing the same face, instead of
1474         doing that one glyph at a time (fixes a bug with displaying
1475         double-size characters).
1477 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
1479         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
1481         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
1482         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
1483         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
1485         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
1486         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
1488 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1490         * keyboard.c (adjust_point_for_property): Allow stopping betwen two
1491         invisible areas.
1493 2009-02-12  Jason Rumney  <jasonr@gnu.org>
1495         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
1496         (add_font_entity_to_list): Call check_face_name even when family
1497         is unspecified.
1499         * w32term.c (x_display_pixel_height, x_display_pixel_width):
1500         Release DC when finished.  Use NULL window to refer to desktop.
1501         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
1503         * w32font.c (add_font_entity_to_list): Fix check for substituted
1504         raster fonts.  (Bug#2219)
1506 2009-02-12  Kenichi Handa  <handa@m17n.org>
1508         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
1509         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
1510         (autocmp_chars): Use fast_looking_at.  Don't compose more
1511         characters than MAX_COMPOSITION_COMPONENTS.
1512         (find_automatic_composition): While looking forward and backward,
1513         check static composition.  Fix where to stop looking forward.
1514         (composition_adjust_point): Fix checking of static composition.
1515         (Fcomposition_get_gstring): Pay attention to
1516         MAX_COMPOSITION_COMPONENTS.
1518         * lisp.h (fast_looking_at): Extern it.
1520         * search.c (fast_looking_at): New function.
1522         * term.c (encode_terminal_code): Adjust for the change of
1523         <struct glyph>.u.cmp.to.
1524         (append_composite_glyph): Likewise.
1526         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
1527         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
1528         composition.
1529         (append_composite_glyph): Adjust for the change of
1530         <strcut glyph>.u.cmp.to.
1532 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
1534         * casetab.c (init_casetab_once):
1535         * coding.c (ALLOC_CONVERSION_WORK_AREA):
1536         * font.c (font_update_lface):
1537         * fontset.c (Fnew_fontset):
1538         * ftfont.c (ftfont_drive_otf):
1539         * xfont.c (xfont_open):
1540         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
1542 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1544         * fileio.c (Fwrite_region): !NILP -> CONSP.
1546 2009-02-10  Andreas Schwab  <schwab@suse.de>
1548         * process.c (send_process): Properly relocate pointer into data
1549         when using encoded data.  (Bug#2272)
1551 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
1553         * coding.c (detect_coding_charset): Fix previous change.
1555 2009-02-08  Jason Rumney  <jasonr@gnu.org>
1557         * w32fns.c (w32_hide_hourglass): Handle case where frame
1558         disappeared while hourglass was displayed.  (Bug #2193)
1560 2009-02-07  Andreas Schwab  <schwab@suse.de>
1562         * unexelf.c (unexec): Fix error message.
1564 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
1566         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
1567         when modal window is active.  (Bug #2152)
1568         (applicationShouldTerminate:): Remove now-unneeded while loop
1569         around NSRunAlertPanel.
1571         * nsmenu.m (popupSession): New file-global variable.
1572         (pop_down_menu): End the popupSession before closing dialog.
1573         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
1574         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
1575         don't query NSApp for events (just sleep instead).
1577 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
1579         * coding.c (syms_of_coding) <translation-table-for-input>:
1580         Modify doc string to discourage use for character code unification.
1582 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1584         * atimer.c (run_timers): Update pending_atimers.
1586 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
1588         * image.c (svg_load_image): Fix last change.
1590         * xfns.c (Fx_create_frame): Signal an error if no font is
1591         found (Bug#2147).
1593 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
1595         * character.c (syms_of_character) <script-representative-chars>:
1596         Fix typo in docstring.
1598 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
1600         * nsmenu.m (pop_down_menu): New function.
1601         (ns_popup_dialog): Call it on unwind.
1602         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
1603         call timer_check() (Bug#2154).
1604         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
1605         handling_signal is set.
1606         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
1608         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
1610         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
1612         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
1614         * keyboard.c (poll_for_input_1, handle_async_input):
1615         Set handling_signal under HAVE_NS.
1617 2009-02-04  Glenn Morris  <rgm@gnu.org>
1619         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
1621 2009-02-04  Kenichi Handa  <handa@m17n.org>
1623         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
1625         * charset.c (Fchar_charset): New optional arg restriction.
1627         * coding.h (coding_system_charset_list): Extern it.
1629         * coding.c (coding_system_charset_list): New function.
1631         * composite.c: Include coding.h and termhooks.h.
1632         (composition_gstring_p): Fix for the terminal case.
1633         (composition_gstring_width): Likewise.
1634         (fill_gstring_body): Likewise.
1635         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
1636         the frame.
1637         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
1638         is within a composition.
1639         (Fcomposition_get_gstring): Fix the terminal case.
1641         * term.c (encode_terminal_code): Fix handling of composition.
1642         (produce_composite_glyph): For static composition, get pixel_width
1643         from struct composition.
1645 2009-02-02  Andreas Schwab  <schwab@suse.de>
1647         * unexelf.c (unexec): Handle unaligned bss offset.
1649 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
1651         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
1652         XT,w32read_socket changes to ns_read_socket.
1654         * keyboard.c (handle_interrupt): Don't call
1655         quit_throw_to_read_char() under NS.
1657         * blockinput.h: Remove NS-specific code.
1659 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
1661         * dispnew.c (window_change_signal): Don't try to get the size of a
1662         suspended tty frame.
1663         * term.c (Fresume_tty): Resize if the size has changed while the
1664         tty was suspended.
1666         * alloc.c (mark_stack): Properly conditionalize previous change.
1668 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
1670         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
1671         * w32term.c (w32_read_socket) [SYNC_INPUT]:
1672         Remove; this code is not used on Windows.
1674 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
1676         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
1677         EOLs that also has stray ^M characters.
1679 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
1681         * atimer.c (run_timers, alarm_signal_handler):
1682         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
1683         * w32inevt.c (w32_console_read_socket):
1684         * w32term.c (w32_read_socket):
1685         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
1687 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
1689         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
1690         Initialize it as a relative filename pattern.
1691         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
1692         (Fcall_process_region): Simplify temp file creation using
1693         temporary-file-directory.
1695 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
1697         * msdos.c: Rename pending_signals to msdos_pending_signals.
1698         (sig_suspender, sigprocmask): Adjust.
1700 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
1702         * keyboard.c (pending_signals): New var.
1703         (poll_for_input, input_available_signal, init_keyboard): Set it.
1704         (process_pending_signals): New function.
1706         * lisp.h (QUIT): Check pending_signals instead of
1707         interrupt_input_pending.  Use process_pending_signals.
1709         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
1711         * process.c (wait_reading_process_output): Use process_pending_signals.
1713         * sysdep.c (emacs_write): Use process_pending_signals.
1715         * xterm.c (XTread_socket): Update pending_signals.
1717         * w32term.c (w32_read_socket): Update pending_signals.
1719         * w32inevt.c (w32_console_read_socket): Update pending_signals.
1721 2009-01-29  Kenichi Handa  <handa@m17n.org>
1723         * xftfont.c (xftfont_has_char): New function.
1724         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
1726 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
1728         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
1729         under GNUstep.
1730         (ns_query_color): New declaration.
1732         * nsterm.m (ns_confirm_quit): New variable.
1733         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
1734         (EmacsApp-applicationShouldTerminate:): Use it.
1735         (EmacsPrefsController): Let user set it.
1736         (ns_query_color): New function.
1737         (ns_defined_color): Use it.
1738         (ns_initialize): Drop.
1739         (ns_term_init): Add two lines from ns_initialize(), and set
1740         input_interrupt_mode to nil.
1742         * image.c (svg_load_image): Don't right-shift background RGB when
1743         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
1745 2009-01-28  Kenichi Handa  <handa@m17n.org>
1747         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
1748         (fontset_get_font_group): Remember that no font-group is specified
1749         for C.
1751 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
1753         * fns.c (concat): Check for string overflow (bug#1787).
1755         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
1756         Quadruple undo limits (bug#1501).
1758 2009-01-27  Kenichi Handa  <handa@m17n.org>
1760         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
1761         directly use GT_Get_Char_index.
1763         * xftfont.c (struct xftfont_info): New member `index'.
1765         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
1766         (Ffontset_font): Adjust for the change of fontset entry.
1768 2009-01-26  Kenichi Handa  <handa@m17n.org>
1770         * fontset.c (fontset_find_font): Fix handling of non-cons return
1771         value of fontset_get_font_group.
1772         (fontset_font): Revert last change.
1774 2009-01-26  Jason Rumney  <jasonr@gnu.org>
1776         * w32font.c (w32font_list_internal): Return quickly if registry is
1777         unknown.  Simplify final return.
1778         (add_font_entity_to_list): Break complex logic down into more
1779         manageable chunks.  Move unknown registry check to
1780         w32font_list_internal.
1782 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
1784         Changes to remove Feval calls from GUI under NS.
1786         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
1787         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
1788         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
1790         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
1791         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
1792         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
1793         instead of NON_ASCII_KEYSTROKE_EVENT.
1794         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
1795         (EmacsApp-applicationShouldTerminate:): Query user.
1796         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
1797         instead of Feval.
1799         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
1801         * keyboard.c (kbd_buffer_get_event): Check for it.
1802         (keys_of_keyboard): Define lispy keys for
1803         ns-put/unput-working-text.
1805         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
1806         versions.
1807         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
1809 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
1811         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
1812         setting current_buffer directly.  (Bug#2044)
1814 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
1816         * fontset.c (fontset_font): If we know there is no font, don't do
1817         any work.  (Bug#1952, bug#1990).
1819         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
1821 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
1823         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
1824         (ns_no_defaults): New declaration.
1825         (main): Use it.
1827         * nsterm.h (ns_no_defaults): New declaration.
1829         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
1831         * nsterm.m (ns_no_defaults): New variable.
1832         (ns_initialize): Don't read defaults when ns_no_defaults.
1833         (EmacsView-readSelectionFromPasteboard:)
1834         (writeSelectionToPasteboard:types:): New stubbed-out methods for
1835         NSServicesRequests protocol.  (Bug#1435)
1836         (ns_dumpglyphs_stretch): New function.
1837         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
1838         of 2008-11-15 to other terms.  (Bug#615)
1840         * nsimage.m (setPixmapData:): Set to ignore image DPI.
1842 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
1844         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
1845         call for Sparc64.
1847 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
1849         * nsfns.m:
1850         * nsgui.h:
1851         * nsmenu.m:
1852         * nsselect.m:
1853         * nsterm.h:
1854         * nsterm.m: Remove '23' comments that indicated code added during
1855         update from emacs-20 -> emacs-23.
1857 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
1859         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
1860         ns_alternate_modifier.  (Bug#1217)
1862         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
1863         Display all shortcuts, including those w/o super modifier.
1865         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
1867 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
1869         * fileio.c (Vwrite_region_post_annotation_function)
1870         (Vwrite_region_annotation_buffers): New vars.
1871         (build_annotations_unwind): Just reset
1872         Vwrite_region_annotation_buffers.
1873         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
1874         Call write-region-post-annotation-function.
1875         (build_annotations): Add to Vwrite_region_annotation_buffers if
1876         buffer changes.
1878 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
1880         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
1881         Tiger.
1882         * nsfns.m (ns_do_applescript):
1883         Conditionalize typeUTF16ExternalRepresentation on Tiger.
1885 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
1887         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
1889 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
1891         * nsmenu.m (NSMENUPROFILE): Change #if style.
1893         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
1895         * nsterm.m (x_set_frame_alpha): Add prototype.
1896         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
1897         handle Ctrl-tab.  (Bug#1841)
1898         (ns_get_color): Use unsigned long long for scanned hex string value.
1899         (ns_term_shutdown): Abort on non SIGTERM signals.
1900         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
1901         (EmacsPrefsController-setPanelFromDefaultValues): New function.
1902         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
1903         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
1904         (ns_defined_color): Fix settings of the XColor variable fields:
1905         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
1907         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
1908         DPI.  (Bug#1316)
1909         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
1910         values in onTiger section.
1912 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
1914         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
1915         Check return value of font_spec_from_name.
1916         (Fx_list_fonts): Doc fix.  (Bug#1951)
1918         * font.c (font_spec_from_name): Return Qnil if font name could not
1919         be parsed.
1920         (font_parse_name): Treat a `?' character as part of an XLFD.
1922         * fns.c (Fsubstring): Doc fix.
1924 2009-01-19  Kenichi Handa  <handa@m17n.org>
1926         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1927         (ftfont_list): Likewise.
1929 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
1931         * dbusbind.c (Fdbus_register_signal):
1932         * process.c (conv_sockaddr_to_lisp):
1933         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
1935         * callproc.c (Fgetenv_internal): Doc fix.
1937 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
1939         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
1940         it is not even used.
1942 2009-01-16  Glenn Morris  <rgm@gnu.org>
1944         * font.c (Ffont_variation_glyphs): Silence compiler.
1946 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
1948         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
1949         Reported by David Robinow <drobinow@gmail.com>.
1951 2009-01-15  Kenichi Handa  <handa@m17n.org>
1953         * coding.c (detect_coding_system): Fix handling of null_byte_found.
1955 2009-01-14  Jason Rumney  <jasonr@gnu.org>
1957         * frame.c (x_set_font): Always store a font to the font parameter,
1958         never a fontset.  (Bug#1562)
1960 2009-01-14  Kenichi Handa  <handa@m17n.org>
1962         * coding.c (TWO_MORE_BYTES): New macro.
1963         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
1965 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
1967         * font.c (font_clear_prop): If clearing the family, clear the font
1968         width index too.
1970         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
1972 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
1974         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
1975         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
1976         functions, use sizeof.
1978 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
1980         * keyboard.c (read_char): Fix case where last_nonmenu_event
1981         returned a bad value with submenus.  (Bug#447)
1983 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
1985         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
1986         family, clear the font width index too.
1988 2009-01-11  Jason Rumney  <jasonr@gnu.org>
1990         * keyboard.c (cmd_error_internal): Exit when errors occur before
1991         frame creation and not in daemon mode.  (Bug#1836)
1993 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
1995         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
1996         of a display vector, backtrack.
1997         (try_window_reusing_current_matrix): Check glyph type before
1998         referencing charpos member.
2000 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
2002         Fix Bug #876:
2004         * coding.c (inhibit_null_byte_detection): New variable.
2005         (detect_coding, detect_coding_system): Don't pay attention to null
2006         bytes if inhibit_null_byte_detection is non-zero.
2007         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
2008         <inhibit-iso-escape-detection>: Doc fix.
2010 2009-01-09  Jason Rumney  <jasonr@gnu.org>
2012         * w32font.c (add_font_entity_to_list): Don't report unknown
2013         Windows charset as any unrecognized registry.  (Bug#1548)
2014         Only report Unicode Plane 2 fonts as unicode-sip.
2016 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
2018         * xfaces.c (Fx_font_family_list): Delete function.
2019         Move compatibility version to faces.el.
2021         * font.c (Ffont_family_list): Return a list of strings, not symbols.
2023 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
2025         * frame.c (x_set_frame_parameters): Remember requested value for
2026         fullscreen before it's reset by the parameter handler.
2028 2009-01-09  Glenn Morris  <rgm@gnu.org>
2030         * keyboard.c (last_command_char): For clarity, rename to...
2031         (last_command_event): ... and update all users.
2032         (last_input_char): For clarity, rename to...
2033         (last_input_event): ... and update all users.
2034         (last-command-char, last-input-char): Move to subr.el as aliases.
2035         * cmds.c, commands.h: Update for last_command_char rename.
2037 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
2039         * font.c (font_open_for_lface): Handle unspecified height attribute.
2041 2009-01-08  Jason Rumney  <jasonr@gnu.org>
2043         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2044         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2045         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2046         Don't declare.
2047         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
2048         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2050 2009-01-07  Kenichi Handa  <handa@m17n.org>
2052         * fileio.c (Finsert_file_contents): In the case of replace,
2053         remember the coding system used for decoding in
2054         coding_system (Bug#1039).
2056         * coding.c (decode_coding_utf_8): Check byte_after_cr before
2057         breaking the loop.  (Bug#870)
2058         (decode_coding_utf_16, decode_coding_emacs_mule)
2059         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2060         (decode_coding_charset): Likewise.
2062 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
2064         * frame.c (x_set_frame_parameters): Make sure height (width) get
2065         applied when fullwidth (fullheight) is set.  (Bug#1522)
2067 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
2069         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
2070         (utc_base): Declare as ULONGLONG, not long double.
2071         (convert_time_raw): Delete.
2072         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2073         (initialize_utc_base): New function.
2074         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2075         (convert_from_time_t): Use initialize_utc_base; compute result with
2076         64-bit arithmetic.
2077         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2079 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
2081         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
2082         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2083         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2084         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2085         [!subprocesses]: Define.
2086         (syms_of_process) [!subprocesses]: Intern and staticpro them.
2087         (Flist_system_processes, Fsystem_process_attributes)
2088         [!subprocesses]: Call list_system_processes and
2089         system_process_attributes instead of returning Qnil.
2091         * dosfns.c (system_process_attributes, list_system_processes):
2092         New functions.
2094         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2096         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2097         Don't use the default (no-op) implementation.
2099 2009-01-03  Jason Rumney  <jasonr@gnu.org>
2101         * keyboard.c (parse_modifiers_uncached): Wheel events are
2102         clicks (bug#687).
2104         * w32term.c (x_query_colors, x_query_color): New functions.
2106         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2107         (svg_load_image): Cast returned pointers from dynamically loaded
2108         functions.  Eliminate W32 specific code.
2110 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
2112         * nsfns.m (x_set_foreground_color, x_set_background_color)
2113         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2114         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2115         x_ prefix instead of ns_.  Update references.
2116         (syms_of_nsfns): Add a FIXME comment.
2118         * nsterm.m (x_set_cursor_type): New prototype.
2119         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2121         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2122         for Solaris instead of incorrectly providing Qutime and Qcutime.
2124 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
2126         * w32.c (process_times): Compute sum of utime and stime.
2127         (system_process_attributes): Add Qtime to the alist.
2129         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2130         and add them to the alist.
2132         * process.c (top level) <Qtime, Qctime>: New variables.
2133         (syms_of_process): staticpro them.
2134         (Fsystem_process_attributes): Add their documentation to the doc
2135         string.
2137         * process.h: Declare Qtime and Qctime.
2139 2009-01-02  Jason Rumney  <jasonr@gnu.org>
2141         * image.c (Qgobject): New symbol.
2142         (syms_of_image): Initialize it.
2143         (init_svg_functions): Load some functions from gobject library.
2145 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
2147         * frame.c (make_terminal_frame): Remove redundant code and useless
2148         block.
2150 2009-01-01  Andreas Schwab  <schwab@suse.de>
2152         * process.c (conv_sockaddr_to_lisp): Add workaround for
2153         getsockname bug on BSD.
2155 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
2157         * xfns.c (x_create_tip_frame): Set border width of the X window.
2159         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
2161 2009-01-01  Jason Rumney  <jasonr@gnu.org>
2163         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
2164         Don't block input, as per earlier xterm.c changes.
2166 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
2168         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2169         (ns_appkit_version_int): New function.
2170         (x-server-version): Use ns_appkit_version_int and follow 21+
2171         convention of returning 3 integers.
2173 2008-12-30  Kenichi Handa  <handa@m17n.org>
2175         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2176         (CHAR_SURROGATE_PAIR_P): New macro.
2178         * font.h (struct font_driver): New member get_variation_glyphs.
2180         * font.c (font_range): Don't require a font for a variation selector.
2181         (Ffont_variation_glyphs): New function.
2182         (syms_of_font): Defsubr it.
2184         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2185         ftfont_variation_glyphs.
2186         (setup_otf_gstring): New function.
2187         (ftfont_drive_otf): Use it.
2188         (ftfont_shape_by_flt): Handle variation selector.
2189         (ftfont_variation_glyphs): New function.
2191 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
2193         * frame.c (Vemacs_iconified): Remove.
2195 2008-12-30  Jason Rumney  <jasonr@gnu.org>
2197         * frame.c (store_frame_param, x_get_arg): Enable newer code on
2198         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
2200 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
2202         * indent.c (Fvertical_motion): Don't advance iterator if we have
2203         reseated to the desired position.
2205         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2206         checking for pos match.
2208 2008-12-30  Kenichi Handa  <handa@m17n.org>
2210         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2211         just get the low 8-bit of the code.
2213         * font.c (font_intern_prop): Validate str as multibyte.
2215 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
2217         * dispextern.h (struct face): Move lface and hash from the middle
2218         of bitfields.
2220         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2222 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
2224         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2225         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2226         instead of intervals.h.
2228 2008-12-26  Andreas Schwab  <schwab@suse.de>
2230         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2231         cons.
2233 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
2235         * textprop.c (Qminibuffer_prompt): New variable.
2236         (syms_of_textprop): Initialize it.
2237         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2238         in minibuffer-prompt face.  (Bug#1662)
2240 2008-12-25  Jason Rumney  <jasonr@gnu.org>
2242         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2244 2008-12-24  Jason Rumney  <jasonr@gnu.org>
2246         * ralloc.c (r_alloc_reset_variable): New function.
2248         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
2249         record of what points where.  (Bug#716)
2251 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
2253         * minibuf.c (read_minibuf): Follow the non-interactive case when
2254         running as a daemon, before detaching.
2256 2008-12-22  Andreas Schwab  <schwab@suse.de>
2258         * buffer.c (init_buffer): Use realloc instead of xrealloc.
2259         * gtkutil.c (free_widget_value): Use xfree instead of free.
2261 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
2263         * frame.c (delete_frame): New function derived from
2264         Fdelete_frame to handle Qnoelisp value for FORCE argument.
2265         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
2266         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
2267         saying that FORCE non-nil doesn't run `delete-frame-functions'.
2268         * frame.h: Extern delete_frame.
2269         * window.c (window_loop):
2270         * terminal.c (delete_terminal):
2271         * xterm.c (x_connection_closed):
2272         * xfns.c (Fx_hide_tip):
2273         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
2275 2008-12-21  Jason Rumney  <jasonr@gnu.org>
2277         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
2278         when character maps to .notdef character.
2280 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
2282         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
2284 2008-12-20  Jason Rumney  <jasonr@gnu.org>
2286         * frame.c (Fmake_terminal_frame): Raise an error when called from
2287         a graphical frame on Windows.  (Bug#1325)
2289 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
2291         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
2293 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
2295         * minibuf.c (Fread_buffer): Doc fix.
2297 2008-12-20  Jason Rumney  <jasonr@gnu.org>
2299         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
2300         server name in UNC paths.  (Bug#719)
2302         * coding.c (decode_coding): Clear chars_at_source flag when using
2303         charbuf.  (Bug#1035)
2305 2008-12-19  Daniel Engeler  <engeler@gmail.com>
2307         * sysdep.c (serial_configure): Fix typo.
2309 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
2311         * sysdep.c: Include alloca.h.
2312         (system_process_attributes): Add implementation for Solaris.
2314         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
2316 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
2318         Reorganize implementation of Flist_system_processes and
2319         Fsystem_process_attributes.  No functional changes.
2320         * process.c: Don't #include pwd.h, grp.h and limits.h.
2321         (Flist_system_processes): Just call list_system_processes.
2322         (Fsystem_process_attributes): Just call system_process_attributes.
2323         (procfs_list_system_processes, time_from_jiffies)
2324         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2325         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
2327         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
2328         (list_system_processes): Rename from
2329         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
2330         Provide a do nothing implementation.
2331         (system_process_attributes): Rename from
2332         procfs_list_system_processes.
2333         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
2334         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
2336         * w32.c (list_system_processes): Rename from
2337         w32_list_system_processes.
2338         (system_process_attributes): Rename from
2339         w32_system_process_attributes.
2341         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
2343         * process.h (w32_list_system_processes)
2344         (w32_system_process_attributes): Remove.
2345         (list_system_processes, system_process_attributes): New
2346         prototypes.
2348 2008-12-19  Kenichi Handa  <handa@m17n.org>
2350         * xfont.c (xfont_decode_coding_xlfd): New function.
2351         (xfont_encode_coding_xlfd): New function.
2352         (xfont_list_pattern): Decode XLFD by iso-8859-1.
2353         (xfont_list): Decode and encode XLFD by iso-8859-1.
2354         (xfont_match): Likewise.
2355         (xfont_list_family): Likewise.
2356         (xfont_open): Likewise.
2358         * ftfont.c (ftfont_open): Generate a multibyte string if given
2359         names are utf-8.
2361         * xftfont.c (xftfont_open): Generate a multibyte string if given
2362         names are utf-8.
2364 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
2366         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
2367         changed.
2368         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
2369         clicked on a detached tool bar button.
2371 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
2373         * emacs.c (main): Print and error and exit when no data is read
2374         from the pipe.
2376 2008-12-17  Jason Rumney  <jasonr@gnu.org>
2378         * w32font.c (w32font_has_char): Always return -1.
2380 2008-12-16  Kenichi Handa  <handa@m17n.org>
2382         * font.c (font_open_entity): Fix previous change.
2384 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
2386         * process.c: Include <limits.h>.
2388 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
2390         * font.c (font_update_drivers): Fix mistake in reconstructing the
2391         driver list.
2393 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
2395         * font.c (font_clear_cache): Fix format of font cache data.
2397 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
2399         * xftfont.c (xftfont_open): Free Xft font pattern if
2400         XftFontOpenPattern fails.
2402         * xterm.c (x_free_frame_resources): Remove extraneous call to
2403         free_frame_faces.
2405 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
2407         * xterm.c (x_delete_display): Move xim_close_dpy call to
2408         x_delete_terminal.
2409         (x_delete_terminal): Call xim_close_dpy.
2411 2008-12-13  Jason Rumney  <jasonr@gnu.org>
2413         * w32font.c (intern_font_name): New function.
2414         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
2415         (w32font_open_internal, Fx_select_font): Decode font name.
2416         (fill_in_logfont, list_all_matching_fonts): Encode font name.
2418         * w32font.h (intern_font_name): Declare new function.
2420         * w32uniscribe.c (add_opentype_font_name_to_list):
2421         Use intern_font_name.
2423 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
2425         * frame.c (Fdelete_frame): Call free_font_driver_list.
2427         * font.c (free_font_driver_list): Implement missing function.
2429         * w32term.c (w32_term_init): Don't initialize the image cache
2430         here; it will be done in init_frame_faces.
2432         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
2433         (struct x_display_info): Remove unused member null_pixel.  New
2434         member xim_callback_data.
2436         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
2437         (xim_initialize): Save pointer to callback function data.
2438         (xim_close_dpy): Free callback function data.  Call XCloseIM,
2439         reverting 2008-11-04 change by David Smith.
2440         (x_term_init): Don't initialize the image cache here; it will be
2441         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
2442         (x_delete_display): Free x_dnd_atoms member.
2444 2008-12-13  Kenichi Handa  <handa@m17n.org>
2446         * font.c (font_rescale_ratio): Moved from xfaces.c.
2447         Argument type changed.  Handle a font-spec too.
2448         (font_score): Check Vface_font_rescale_alist.
2449         (font_open_entity): Likewise.  (Bug#1547)
2451         * xfaces.c (font_rescale_ratio): Moved to font.c.
2453 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
2455         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
2457 2008-12-12  Jason Rumney  <jasonr@gnu.org>
2459         * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
2460         Vwindow_system_version to the real w32 major version.
2462 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
2464         * term.c (init_tty): Move setting the terminal name before the
2465         potential user: maybe_fatal.
2467 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
2469         * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
2470         all callers changed.  Call free_frame_faces to free the face cache.
2472 2008-12-11  Jason Rumney  <jasonr@gnu.org>
2474         * w32font.c (fill_in_logfont): Don't assume symbol script means
2475         SYMBOL_CHARSET.  (Bug#547)
2477         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
2478         size for surrogates.  (Bug#1096, bug#872)
2480 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
2482         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
2484 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
2486         * process.c (Fsystem_process_attributes, syms_of_process):
2487         Fix typo in name of Ssystem_process_attributes.
2488         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
2490 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
2492         * syntax.c (Fmodify_syntax_entry): Doc fix.
2494 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
2496         * font.c (Ffont_spec): Move usage to end of docstring.
2498 2008-12-10  Jason Rumney  <jasonr@gnu.org>
2500         * w32font.c (Qcham): New symbol.
2501         (font_supported_scripts): Add cham, and comments for other new
2502         scripts in bitfield from OpenType spec.
2503         (add_font_entity_to_list): Limit unicode-sip fonts to those that
2504         contain characters beyond the bmp.
2506 2008-12-10  Kenichi Handa  <handa@m17n.org>
2508         * ftfont.c (fc_charset_table): Add "unicode-sip".
2509         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
2510         Qunicode_sip.
2512 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
2514         * coding.c (QCdefault_char): Rename from QCdefalut_char.
2515         (Fcoding_system_put): Use QCdefault_char.
2516         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
2518 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
2520         * xftfont.c (syms_of_xftfont): Fix typo.
2522         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
2524 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
2526         * emacs.c (main): Close daemon_pipe on exec.
2528 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
2530         * termchar.h (struct tty): New members termcap_term_buffer and
2531         termcap_strings_buffer.
2533         * term.c (encode_terminal_code): Free any previous memory blocks
2534         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
2535         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
2536         All callers changed.
2537         (init_tty): Store termcap data and string buffers in new struct
2538         tty members termcap_term_buffer and termcap_strings_buffer.
2539         (delete_tty): Free them.
2540         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
2542 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
2544         * nsfns.m (ns_set_background_color): Remove code duplication.
2545         It was a substitute for face-transparency on OS X 10.3.
2547 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
2549         * coding.c (make_conversion_work_buffer): Disable buffer
2550         modification hooks in the work buffer.
2552 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
2554         * process.c (procfs_system_process_attributes): If `nread' has a
2555         negative value, assign zero to it.
2557 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
2559         * eval.c (Vdebug_on_error): Doc fix.
2561 2008-12-05  Kenichi Handa  <handa@m17n.org>
2563         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
2564         second character is a combining character.
2566 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
2568         * process.c (procfs_system_process_attributes): Don't use cmd,
2569         cmdsize, and q without initializing them first.
2571 2008-12-04  Jason Rumney  <jasonr@gnu.org>
2573         * w32font.c (w32font_draw): Initialize orig_clip before getting
2574         it, and delete it when finished.
2576 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
2578         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
2579         case when running as a daemon before detaching.
2581 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
2583         * w32.c (init_environment): Don't unload library shell32.dll.
2585 2008-12-03  Kenichi Handa  <handa@m17n.org>
2587         * font.c (font_at): Set `multibyte' at first.
2589         * coding.c (decode_coding_charset): Check type of an element of
2590         vector VALIDS.
2591         (encode_coding_emacs_mule): Be sure to set `code'.
2593         * fontset.c (face_for_char): Handle invalid charset property correctly.
2594         (font_for_char): Likewise.
2596 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
2598         * font.c (Fopen_font): Compute pixel size correctly.
2599         (font_update_lface): Handle fonts with corrupted size specs,
2600         i.e. non-int and non-float.
2602         * ftfont.c (ftfont_match): Initialize entity variable.
2603         (ftfont_resolve_generic_family): Avoid using uninitialized var.
2604         (ftfont_list_family): Initialize list var earlier.
2606         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
2608         * xterm.c (x_draw_glyph_string): Fall back on
2609         underline_minimum_offset for underline position.
2611 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
2613         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
2615         * character.c (c_string_width): Specify the type for LEN.
2617 2008-12-03  Kenichi Handa  <handa@m17n.org>
2619         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
2620         (decode_coding_utf_8): Likewise.
2621         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
2622         (produce_chars): Initialize consumed_chars to 0.
2624 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
2626         * keyboard.c (make_lispy_position): Only use PT if the selected
2627         window is current.
2629 2008-12-02  Andreas Schwab  <schwab@suse.de>
2631         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
2633         * doprnt.c (doprnt1): Fix size of charbuf.
2635 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
2637         * keyboard.c (timer_check): Revert last change.
2639 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
2641         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
2643 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
2645         * makefile.w32-in: Update dependencies.
2646         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
2648 2008-12-01  Andreas Schwab  <schwab@suse.de>
2650         * font.c (register_font_driver): Use xmalloc.
2651         (font_put_frame_data): Likewise.
2653 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
2655         * xfaces.c (realize_x_face): Make abort condition clearer.
2657         * gtkutil.c (update_frame_tool_bar): Initialize variable.
2659 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
2661         * keyboard.c (timer_check): After a timer runs, ensure that the
2662         selected window's buffer is current.
2664 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
2666         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
2667         It was accidentally restored by the Unicode merge.
2669         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
2671 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
2673         * w32proc.c: Include "coding.h".
2674         (Fw32_short_file_name): Encode filename passed to Windows API.
2675         (Fw32_long_file_name): Encode filename passed to Windows API and
2676         decode back the result.  (Bug#1433)
2678 2008-11-29  Kenichi Handa  <handa@m17n.org>
2680         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
2681         not before accessing it.
2683         * charset.c (Fdefine_charset_internal): After calculating
2684         min_char, max_char, and fastmap, copy the charset structure again.
2685         (encode_char): Fix the previous change.
2687 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
2689         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
2691         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
2693         * nsterm.m (x_set_frame_alpha): New function.
2695 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
2697         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
2699 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
2701         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
2702         pointer to check_face_name.
2704 2008-11-27  Kenichi Handa  <handa@m17n.org>
2706         * category.h (SET_CATEGORY_SET): Call set_category_set.
2707         (set_category_set): Extern it.
2709         * category.c (hash_get_category_set): New function.
2710         (Fmodify_category_entry): Adjusted for the change of
2711         char_table_ref_and_range.  Call hash_get_category_set to get a
2712         category set to store in the table.
2714         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
2715         Funify_charset.
2717         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
2718         (DECODE_CHAR): Check if the decoder vector is ready.
2719         (ENCODE_CHAR): Check if the encoder char-table is ready.
2720         (maybe_unify_char): Extern it.
2722         * charset.c (Vchar_unified_charset_table): Delete it.
2723         (inhibit_load_charset_map): New variable.
2724         (temp_charset_work): New variable.
2725         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
2726         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
2727         New macros.
2728         (load_charset_map): Meaning of control_flag changed.  If
2729         inhibit_load_charset_map is nonzero, setup a table in
2730         temp_charset_work.
2731         (load_charset): New argument control_flag.
2732         (map_charset_for_dump): New function.
2733         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
2734         map_charset_for_dump.
2735         (Fdefine_charset_internal): If the charset method is MAP, load
2736         mapping tables by calling load_charset.
2737         (Funify_charset): Don't load a mapping table but directly set
2738         Vchar_unify_table.
2739         (maybe_unify_char): New function.
2740         (decode_char): Don't handle the deleted method MAP_DEFERRED.
2741         Handle the case of inhibit_load_charset_map being nonzero.
2742         (encode_char): Don't handle the deleted method MAP_DEFERRED.
2743         Handle the case of inhibit_load_charset_map being nonzero.
2744         (Fclear_charset_maps): Just free temp_charset_work.
2745         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
2746         variable.
2748         * chartab.c (sub_char_table_ref_and_range): Adjusted for the
2749         change of char_table_ref_and_range.
2750         (char_table_ref_and_range): Change the meaning of argument FROM
2751         and TO.  Now the caller must provide initial values for *FROM
2752         and *TO.
2754         * fontset.c (fontset_add): Adjusted for the change of
2755         char_table_ref_and_range.
2756         (fontset_get_font_group): Likewise.
2757         (Ffontset_info): Likewise.
2759         * keymap.c (describe_vector): Adjusted for the change of
2760         char_table_ref_and_range.  For char-table, put boundary between
2761         non-ASCII and 8-bit characters.
2763         * print.c (print_object): For bool-vector, delete unnecessary
2764         check of ASCII_BYTE_P.
2766 2008-11-26  Jason Rumney  <jasonr@gnu.org>
2768         * w32font.c (w32font_open_internal): Don't include external
2769         leading in font height.  (Bug#879)
2771 2008-11-26  Glenn Morris  <rgm@gnu.org>
2773         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
2774         redefinition with ifdef.  (Bug#1383)
2776 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
2778         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
2780 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
2782         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
2783         New EmacsView methods.
2784         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
2785         Fixes bug #1048,1357,1414.
2787 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
2789         Fix bug #1362.
2790         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
2791         is not an indexed color.
2792         * nsterm.m (free_indexed_color): Add argument checking.
2793         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
2795 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
2797         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
2798         Document confirm-after-completion value for
2799         minibuffer-completion-confirm.
2801 2008-11-24  Jason Rumney  <jasonr@gnu.org>
2803         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
2804         warning.
2806 2008-11-23  Jason Rumney  <jasonr@gnu.org>
2808         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
2809         restored before returning.
2811         * w32font.c (check_face_name): New function.
2812         (add_font_entity_to_list): Use it to filter out common substituted
2813         fonts.  (Bug#642)
2815 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
2817         * buffer.c (Fswitch_to_buffer): Reword and mention new option
2818         confirm-nonexistent-file-or-buffer in doc-string.
2820 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
2822         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
2823         Fix copy/paste typo.  Add checks.
2825 2008-11-21  Kenichi Handa  <handa@m17n.org>
2827         * coding.c (detect_coding_iso_2022): Reject invalid composition
2828         sequence.
2829         (DECODE_COMPOSITION_START): If the current source is the last
2830         block, and the current composition doesn't end, regard this
2831         sequence as invalid.
2832         (decode_coding_iso_2022): Handle invalid composition sequence.
2834 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
2836         * window.c (coordinates_in_window): Don't return
2837         ON_VERTICAL_BORDER for the rightmost position of a mode/header
2838         line when the window is not the rightmost one.  (Bug#1372)
2840 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
2842         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
2844 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
2846         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
2847         and bright_bg if noninteractive is non-zero.
2849 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2851         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
2852         x_draw_glyph_string_background.
2854         * w32term.c (x_draw_glyph_string): Likewise.
2856 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
2858         * xterm.c (x_draw_glyph_string): Stop drawing the background of
2859         the next glyph string once past the overhang width.
2861         * nsterm.m (ns_draw_glyph_string): Likewise.
2863         * w32term.c (x_draw_glyph_string): Likewise.
2865 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
2867         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
2868         double file close.
2870 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
2872         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
2873         dedicated status of window before attempting to display another
2874         buffer in it.
2876 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
2878         * msdos.c (Fmsdos_long_file_names):
2879         (syms_of_msdos) <dos-unsupported-char-glyph>:
2880         * dosfns.c (Fint86): Fix typos in docstrings.
2882 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
2884         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
2886 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
2888         * puresize.h (BASE_PURESIZE): Increase to 1260000.
2890 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
2892         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
2894         * frame.h: Negative alpha means "don't touch".
2896         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
2898         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
2900 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
2902         * hftctl.c:
2903         * chpdef.h:
2904         * acldef.h: Remove files used only for systems no longer supported.
2906         * Makefile.in: Fix .o alphabetical ordering.
2907         (hftctl.o): Remove dependency, file removed.
2908         (keymap.o, print.o): Depend on charset.h.
2910 2008-11-10  Kenichi Handa  <handa@m17n.org>
2912         * character.c (Fget_byte): Fix and make it faster for unibyte target.
2914 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
2916         * dired.c (file_name_completion): If completion_ignore_case is
2917         enabled, ignore case when checking completion-regexp-list.
2919 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
2921         * vm-limit.c (get_lim_data): Fix last change.
2923 2008-11-08  Kenichi Handa  <handa@m17n.org>
2925         * character.c (Fget_byte): New function.
2926         (syms_of_character): Defsubr Fget_byte.
2928 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
2930         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
2931         cursor position is valid after scrolling.
2933 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
2935         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
2937 2008-11-06  Glenn Morris  <rgm@gnu.org>
2939         * xterm.c (handle_one_xevent): Don't let popup menus cause
2940         mouse-autoselect-window related window switching.  (Bug#1261)
2942 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
2944         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
2946 2008-11-04  Andreas Schwab  <schwab@suse.de>
2948         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
2950 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
2952         * xfns.c (Fx_wm_set_size_hint): New function.
2954 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
2956         * textprop.c (Fprevious_single_char_property_change): Return 0
2957         when there's no change in a string.  (Bug#1301)
2959 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
2961         * frame.c (do_switch_frame): New argument NORECORD passed to
2962         Fselect_window.
2963         (Fselect_frame): New argument NORECORD passed to
2964         do_switch_frame.
2965         (Fset_frame_selected_window): New argument NORECORD passed to
2966         Fselect_frame.
2967         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
2968         in call of do_switch_frame.
2969         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
2970         Handle NORECORD argument in call of Fselect_frame.
2971         * lisp.h (do_switch_frame, Fselect_frame)
2972         (Fset_frame_selected_window): Adjust declarations.
2973         * window.c (select_frame_norecord): New function.
2974         (run_window_configuration_change_hook): Use it and call
2975         Fselect_frame with NORECORD set.
2976         (Fselect_window): Pass NORECORD to Fselect_frame.
2977         (Fset_window_configuration): Handle NORECORD argument in call of
2978         do_switch_frame.
2979         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
2980         Fset_frame_selected_window.
2981         * keyboard.c (command_loop_1): Handle NORECORD in call of
2982         Fselect_frame (currently ifdefd).
2984 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
2986         * emacs.c (USAGE2): Untabify.
2988 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2990         * composite.c (fill_gstring_header): Fix copy/paste typo.
2992 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
2994         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
2995         (Fother_window): Rename argument and rewrite doc-string.
2996         (select_window_norecord): Fix return value.  (Bug#1276)
2998 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
3000         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3001         new frames overriding foreground for tooltips.  Based on similar patch
3002         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
3004 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
3006         * emacs.c (Fdaemon_initialized): Initialize nfd.
3008 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
3010         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3011         (Fwindow_text_height): Clarify doc-strings.
3012         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3013         doc-string of window-scroll-functions.
3015 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
3017         * category.c (syms_of_category): Fix typo in docstring.
3019 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
3021         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3022         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3023         Fix typos in docstrings.
3025 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
3027         * emacs.c (daemon_pipe): Make non-static.
3028         (IS_DAEMON): Move definition ...
3029         * lisp.h (IS_DAEMON): ... here.
3030         (daemon_pipe): Declare.
3031         (is_daemon): Remove.
3032         * dispnew.c (init_display): Use IS_DAEMON.
3034 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3036         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3037         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3039         * emacs.c (is_daemon): Remove.
3040         (main): Don't set is_daemon.
3041         (IS_DAEMON): New macro.
3042         (Fdaemonp, Fdaemon_initialized): Use it.
3043         (Fdaemon_initialized): Write a char into the pipe to make sure the
3044         parent exits.
3045         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3047 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
3049         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3050         over-sized glyph, draw it with the default glyph width.
3052         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3053         glyph, draw it with the default glyph width.
3055         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3056         glyph, draw it with the default glyph width.
3058         * xdisp.c (try_scrolling): When computing the distance from the
3059         scroll margin to PT, try moving some distance past the window
3060         bottom before giving up.
3062 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
3064         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3065         (Fset_window_buffer): Explain in doc-string that a window can be
3066         "strongly" dedicated to its buffer.
3068 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
3070         * emacs.c (daemon_name): New variable.
3071         (main): Deal with --daemon=SERVER_NAME.
3072         (Fdaemonp): Return a name if one was passed to --daemon.
3074 2008-10-26  Romain Francoise  <romain@orebokech.com>
3076         * emacs.c (daemon_pipe): New variable.
3077         (main): Create a pipe before forking, make the parent exit only after
3078         the child has closed its end of the pipe.  Move closing the
3079         descriptors ...
3080         (Fdaemon_initialized): ... here.  New function.
3082 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
3084         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3085         the previous unoptimized table.
3087         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3088         the distinction between non-nil and non-t value of `dedicated'.
3090 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
3092         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
3093         read_char_minibuf_menu_text is large enough to hold the menu string.
3095 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
3097         * window.c (Fget_buffer_window, Fdelete_windows_on)
3098         (Freplace_buffer_in_windows): Make buffer argument optional and
3099         rename to buffer_or_name.
3101 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
3103         * xdisp.c (handle_single_display_spec, handle_display_prop):
3104         Undo 2005-05-16 change.
3105         (handle_stop): Pop iterator if it's loaded with an empty string.
3106         (get_overlay_strings_1): Don't save iterator if it's loaded with
3107         an empty string (bug#1201).
3109 2008-10-24  Kenichi Handa  <handa@m17n.org>
3111         * ftfont.c (ftfont_otf_features): Fix previous change.
3112         (ftfont_otf_capability): Check FeatureList.FeatureCount before
3113         calling ftfont_otf_features.
3115 2008-10-24  Kenichi Handa  <handa@m17n.org>
3117         * font.c (font_match_p): Fix for the case that a vector of
3118         characters is in script-representative-chars.
3120 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
3122         * dbusbind.c (xd_in_read_queued_messages): New variable.
3123         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
3124         (xd_read_queued_messages): Catch Qdbus_error from the macros.
3125         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3126         macro.  (Bug#1186).
3128 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
3130         * s/sol2-10.h: New file.
3132 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
3134         * xdisp.c (fill_glyph_string): Fix typo in source (though the
3135         poor beast has survived 9+ years and the jump from xterm.c!).
3137 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
3139         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3140         Reword doc-string.
3141         (Fbury_buffer): In doc-string say what happens to the buffer's window.
3143 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
3145         * character.c (syms_of_character) <script-representative-chars>:
3146         <unicode-category-table>: Doc fixes.
3148 2008-10-23  Noah Friedman  <friedman@splode.com>
3150         * coding.c (make_conversion_work_buffer): Check that
3151         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3152         Fget_buffer_create.
3154 2008-10-23  Kenichi Handa  <handa@m17n.org>
3156         * font.c (font_add_log): Check the values of extra properties.
3158 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
3160         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3161         Reword doc-string.
3162         (Fset_window_parameter): Use NILP.
3163         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
3164         (Frecenter): Use "selected" instead of "current" window in doc-strings.
3166 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
3168         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3170 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
3172         * nsfns.m (ns_appkit_version): New function.
3173         (x-server-version): Use it.
3174         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3175         (x-server-vendor): Don't check_ns().
3177         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3179 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
3181         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3182         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3184 2008-10-22  Kenichi Handa  <handa@m17n.org>
3186         * syntax.c (scan_words): Call word_boundary_p instead of comparing
3187         scripts.
3189         * category.c (word_boundary_p): Check scripts instead of charset.
3190         Handle nil value in word-separating-categories and
3191         word-combining-categories.
3192         (syms_of_category): Fix docstrings of word-separating-categories
3193         and word-combining-categories.
3195 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
3197         * coding.c (Fencode_coding_region, Fdecode_coding_region)
3198         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3200 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
3202         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3203         Rename arg "buffer" to "buffer_or_name".
3204         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3205         it optional.
3206         (no_switch_window): Remove since the return value is not used.
3207         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
3208         Consider window as dedicated when Fwindow_dedicated_p returns a
3209         non-nil value.
3210         * lisp.h: Remove prototype for no_switch_window.
3212 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
3214         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
3215         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
3217 2008-10-21  Kenichi Handa  <handa@m17n.org>
3219         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3220         check Vlatin_extra_code_table.
3222 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
3224         * fileio.c (Fset_file_modes): Doc fix.
3226 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
3228         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3229         in arrays.
3231 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
3233         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3234         Mention kill-buffer in doc-string.
3235         (Fset_window_buffer): Reinsert tem check removed in last commit.
3236         (Fenlarge_window, Fshrink_window): Have argument names and
3237         doc-string follow Elisp manual more closely.
3239 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
3241         * fileio.c (Fset_file_modes): Doc fix.
3243 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
3245         * window.c (Fwindow_width, Fset_window_start)
3246         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
3247         (Fdelete_windows_on, Freplace_buffer_in_windows):
3248         Make doc-strings follow code and Elisp manual more closely.
3249         (Fwindow_dedicated_p): Make window argument optional.
3250         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3251         (Fset_window_buffer): Respect any non-nil dedicated value for
3252         window.  Rename "buffer" argument to "buffer_or_name".
3254 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
3256         * m/sh3.h: New file, machine description for SuperH.
3258 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
3260         * window.c (Fsplit_window): Rename arg horflag to horizontal.
3262 2008-10-17  Kenichi Handa  <handa@m17n.org>
3264         * ftfont.c (ftfont_otf_features): Fix indexing
3265         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
3267 2008-10-16  Magnus Henoch  <mange@freemail.hu>
3269         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3270         (Fdbus_call_method_asynchronously): Ditto.
3271         This change makes C-h f display the argument list.
3273 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
3275         * fileio.c (Fexpand_file_name): Doc fix.
3277         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
3278         of :foreground and :background equivalent to unspecified (20.x
3279         compatibility).
3281 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
3283         * buffer.c (syms_of_buffer): Doc fix.
3285 2008-10-14  Kenichi Handa  <handa@m17n.org>
3287         * font.c (font_clear_prop): When clearing font width, clear the
3288         average width field too.
3290 2008-10-12  Andreas Schwab  <schwab@suse.de>
3292         * ftfont.c (ftfont_shape_by_flt): Make static.
3293         * ftfont.h (ftfont_shape_by_flt): Don't declare.
3295         * font.c: Don't include <m17n-flt.h>.
3297 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
3299         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
3301 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
3303         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
3304         away code.
3306 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
3308         * dispnew.c (update_text_area): Avoid looping due to large glyph
3309         overhangs (bug#1070).
3311 2008-10-09  Kenichi Handa  <handa@m17n.org>
3313         * fontset.c (face_for_char): If face->fontset is negative, just
3314         return ascii_face.
3316         * font.c (font_delete_unmatched): Fix previous change.
3317         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
3319 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
3321         * frame.c (Fraise_frame): On text-only terminals select frame in
3322         order to make it visible.  (Bug#1061)
3324 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
3326         * fontset.c (fontset_find_font): Check frame validity.
3328 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
3330         * gtkutil.c (xg_display_open): Reset default display if none exists.
3331         (xg_display_close): Allow Emacs to close all displays (bug#985).
3333 2008-10-06  Andreas Schwab  <schwab@suse.de>
3335         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
3337 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
3339         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
3341         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
3343         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
3344         during initialization.
3346 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
3348         * xdisp.c (redisplay_internal): If frame switched, redisplay the
3349         whole thing on MSDOS frames as well as on a TTY.
3351         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
3352         well as for TTY.
3353         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
3354         well as on a TTY.
3356         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
3357         as well as for TTY.
3359         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
3361         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
3362         MSDOS frames as well.
3364 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
3366         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
3367         correct arguments.
3368         * menu.c (find_and_return_menu_selection): Add cast.
3370 2008-10-03  Glenn Morris  <rgm@gnu.org>
3372         * emacs.c (USAGE1): Add --daemon.
3374 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
3376         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
3377         100, so it's in percents as advertised.
3379 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
3381         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
3382         (ns_output.current_cursor, ns_output.desired_cursor)
3383         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
3384         (FRAME_NEW_CURSOR_COLOR): Remove.
3386         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
3387         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
3388         enumeration (HOLLOW_BOX_CURSOR, etc.).
3390         * nsterm.m (ns_frame_rehighlight): Remove commented code.
3391         (draw_window_cursor): Simplify code.
3392         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
3393         Don't change cursor type.  In latter, call rehighlight instead of doing
3394         updates manually.
3395         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
3396         Use core Emacs cursor types.
3398         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
3400 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
3402         * process.c (Faccept_process_output): Fix doc-string.
3404 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
3406         * gmalloc.c (__sbrk): Also define for uClibc.
3408         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
3409         for uClibc.
3411 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
3413         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
3414         styles.
3415         (nsfont_open): Reenable the cache.
3417 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
3419         * font.c (font_matching_entity): Reflect ATTRS in font selection.
3420         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
3422 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
3424         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
3425         a suspended terminal.
3427 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
3429         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
3431 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
3433         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
3435 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
3437         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
3438         in a continued line coincides with a line beginning.
3440 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
3442         * nsfont.m (nsfont_trait_distance): Fix bug.
3443         (nsfont_list): Return a list rather than a vector (syncs with Handa
3444         changes of 2008-05-14).
3445         (nsfont_open): Improve logging.
3447 2008-09-29  Andreas Schwab  <schwab@suse.de>
3449         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3451 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
3453         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
3454         name as char-resolve-modifiers.
3455         Reported by: Markus Triska <markus.triska@gmx.at>
3457 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
3459         * dispnew.c (init_display): Return earlier when running as a daemon.
3461 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
3463         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
3465 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
3467         * composite.c (Fcomposition_get_gstring)
3468         (Fcompose_region_internal, Fcompose_string_internal)
3469         (Ffind_composition_internal): Doc fix.
3470         (syms_of_composite) <compose-chars-after-function>: Doc fix.
3471         (syms_of_composite) <auto-composition-function>: Doc fix.
3472         (syms_of_composite) <composition-function-table>: Doc fix.
3474 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
3476         * search.c (wordify): New argument for lax word-ends.
3477         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
3479 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
3481         * lisp.h (is_daemon): Declare.
3482         * dispnew.c (init_display): Do not try to initialize the terminal
3483         when running as a daemon.
3485 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
3487         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
3488         x_display_pixel_height.
3490 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
3492         * undo.c (record_point): Don't call Fundo_boundary for first
3493         change.  (Bug#731)
3495 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
3497         * emacs.c (Fdaemonp): Doc fix.
3499 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
3501         * emacs.c (main): Place #ifdef in the proper place.
3503 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
3505         * emacs.c (standard_args): Add --daemon.
3506         (main): Disconnect from the terminal when --daemon is passed.
3507         (is_daemon): New variable.
3508         (Fdaemonp): New function.
3509         (syms_of_emacs): Defsubr it.
3511 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
3513         * xdisp.c (get_next_display_element): Handle string display
3514         correctly when checking for the end of a box run.
3516 2008-09-20  Glenn Morris  <rgm@gnu.org>
3518         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
3519         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
3520         (Frename_file): Avoid copying to trash if a rename involves
3521         a delete.  (Bug#964).
3523 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
3525         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
3526         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
3527         frames as well as termcap frames.
3528         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
3529         get_named_tty.
3531 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
3533         * process.c (procfs_system_process_attributes): Fix cmdline in
3534         case /proc/PID/cmdline is empty.
3536         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
3537         x_display_pixel_height.
3539 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
3541         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
3543         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3544         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
3546 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
3548         * dispextern.h (struct it): Move line_wrap away from the middle of
3549         bitfields.  Move voffset in struct iterator_stack_entry after the
3550         bitfields.  Move tab_width near after another short.
3552 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
3554         * frame.h (struct frame): Move alpha from the middle of bitfields.
3556         * window.h (struct window): Move frozen_window_start_p after the
3557         rest of the bitfields to reduce padding.
3559 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
3561         * xterm.h (x_display_info): Remove `height' and `width' members.
3563         * nsterm.h (ns_display_info): Remove `height' and `width' members.
3565         * w32term.h (w32_display_info): Remove `height', `width',
3566         `height_in', and `width_in' members.
3568         * xterm.c (x_display_pixel_height, x_display_pixel_width):
3569         New functions.
3570         (x_calc_absolute_position): Use them.
3571         (x_term_init): Omit removed `height' and `width' members.
3573         * w32term.c (x_display_pixel_height, x_display_pixel_width):
3574         New functions.
3575         (w32_read_socket, x_calc_absolute_position): Use them.
3576         (w32_initialize_display_info, w32_term_init): Omit removed members
3577         of w32_display_info.
3579         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
3580         New functions.
3581         (ns_initialize_display_info): Omit removed members of ns_display_info.
3583         * xterm.c (x_display_pixel_height, x_display_pixel_width):
3584         New functions.
3585         (x_calc_absolute_position): Use them.
3586         (x_term_init): Omit removed `height' and `width' members.
3588         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
3589         (compute_tip_xy):
3590         * frame.c (x_fullscreen_adjust):
3591         * xmenu.c (menu_position_func): Use x_display_pixel_height and
3592         x_display_pixel_width.
3594 2008-09-18  Kenichi Handa  <handa@m17n.org>
3596         * composite.c (fill_gstring_header): Don't check FROM and TO here.
3597         (composition_compute_stop_pos): Fix handling of static composition.
3598         (Fcomposition_get_gstring): Check FROM and TO at first.
3600 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
3602         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
3603         mixup (YAILOM).
3605 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
3607         * indent.c (Fvertical_motion): Use position reported by iterator
3608         instead of PT for determining screen motion (bug#943).
3610 2008-09-17  Romain Francoise  <romain@orebokech.com>
3612         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
3614 2008-09-17  Kenichi Handa  <handa@m17n.org>
3616         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
3618         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
3619         if necessary.
3621 2008-09-16  Kenichi Handa  <handa@m17n.org>
3623         * coding.c (make_conversion_work_buffer): Avoid calling
3624         Fget_buffer_create if it is not necessary.
3626 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
3628         * window.c (Fselect_window): Don't update window_select_count and
3629         use_time when norecord is not nil.
3631 2008-09-14  Kenichi Handa  <handa@m17n.org>
3633         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
3634         specpdl_ptr.
3636 2008-09-12  Kenichi Handa  <handa@m17n.org>
3638         * indent.c (scan_for_column): Don't handle automatic composition
3639         if the current buffer is not associated with a window.
3641         * composite.c (composition_reseat_it): If the current buffer is
3642         not associated with a window, ignore the automatic composition.
3643         (find_automatic_composition): Likewise.
3645 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3647         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
3648         (Fgpm_mouse_stop): Use it.
3649         * termhooks.h (close_gpm): Declare.
3650         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
3651         connection if Gpm_GetEvent fails.
3653         * window.c (set_window_buffer): Always preserve current-buffer.
3655 2008-09-12  Glenn Morris  <rgm@gnu.org>
3657         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
3659 2008-09-11  Glenn Morris  <rgm@gnu.org>
3661         * charset.c (charset-map-path): Doc fix.
3663 2008-09-10  Kenichi Handa  <handa@m17n.org>
3665         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
3667         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
3668         compose a grapheme cluster with the preceding base glyph.
3670         * composite.c (composition_compute_stop_pos): Fix previous change.
3671         Reset cmp_it->id to -1 at first.
3673 2008-09-10  Glenn Morris  <rgm@gnu.org>
3675         * Makefile.in (character.o, chartab.o): Fix config.h typo.
3677 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
3679         * keyboard.c (read_key_sequence): Reapply translation maps when
3680         switching keyboards.
3682 2008-09-09  Kenichi Handa  <handa@m17n.org>
3684         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
3685         characters.
3687         * composite.c (FORWARD_CHAR): Fix calculation
3688         of (POSITION).pos_byte.
3689         (composition_compute_stop_pos): Limit the search of composition to
3690         at most 500 characters ahead.  If we reach the limit or find a
3691         newline, set cmp_it->ch to -2 and return 0.
3692         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
3694 2008-09-08  Kenichi Handa  <handa@m17n.org>
3696         * indent.c (Fvertical_motion): Be sure to set
3697         it_overshoot_expected if it.cmp_it.id is non-negative.
3699 2008-09-07  Andreas Schwab  <schwab@suse.de>
3701         * callproc.c (Fcall_process): Don't hold references to string data
3702         across garbage collection.  Move initialisation of new_argv down
3703         to avoid compiler bug.
3705 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
3707         * process.c (Fsystem_process_attributes): Doc fix.
3709 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
3711         * callproc.c (Fcall_process): Canonicalize current directory name.
3713         * xdisp.c (move_it_to): When moving by vpos, ensure that the
3714         iterator advances to the next line if the current line ends in a
3715         continued tab.
3717 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
3719         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
3720         member to point to cmp_from.
3722         * xdisp.c: Doc fix for references to gidx data member.
3724 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
3726         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
3728 2008-09-07  Kenichi Handa  <handa@m17n.org>
3730         * composite.c (FORWARD_CHAR): Check STOP after
3731         incrementing (POSITION).pos.
3733 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
3735         * process.c (Fsystem_process_attributes): Doc fix.
3737 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
3739         * keyboard.c (Ftop_level): Doc fix.
3741 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
3743         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
3744         minibuffer, don't let lower part of menu invade the echo area.
3746         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
3747         "char *q" to access menu text and advance through it.  Revert the
3748         change that displayed ">" instead of ASCII character 0x10.
3750 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
3752         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
3753         toggle boxes and radio buttons on MS-DOS as well.
3755 2008-09-05  Kenichi Handa  <handa@m17n.org>
3757         * composite.c (autocmp_chars): Check lookback count.
3758         (composition_compute_stop_pos): Set cmp_it->lookback.
3759         (composition_reseat_it): Check lookback count.
3760         (struct position_record): New struct.
3761         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
3762         (find_automatic_composition): New function.
3763         (composition_adjust_point): Use find_automatic_composition.
3765         * dispextern.h (struct composition_it): New member lookback.
3767 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
3769         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
3770         if moving by a single line.
3772 2008-09-02  Andreas Schwab  <schwab@suse.de>
3774         * xterm.c (x_delete_display): Fix merge error.
3776         * fileio.c (Fexpand_file_name): Remove unused variables.
3778 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
3780         * fileio.c (Fexpand_file_name): Copy argument `name' into local
3781         storage on all platforms, not just on DOS_NT.
3783 2008-09-02  Jason Rumney  <jasonr@gnu.org>
3785         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
3786         Ensure mouse is not grabbed after menu is finished.
3788 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
3790         * xfaces.c (Finternal_set_alternative_font_family_alist)
3791         (Finternal_set_alternative_font_registry_alist): Properly copy
3792         entire alist structure.
3794 2008-09-01  Kenichi Handa  <handa@m17n.org>
3796         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
3797         representative chars of the script is a vector.
3798         (ftfont_list): Handle the case where the representative chars of
3799         the script is a vector.
3801         * character.c (syms_of_character): Docstring of
3802         script-representative-chars fixed.
3804 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
3806         * msdos.c (BUILD_CHAR_GLYPH): New macro.
3807         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
3808         the menu.  Allocate larger buffer for `text', to account for
3809         possible ^C characters.
3811 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
3813         * xdisp.c (prepare_menu_bars): Don't call
3814         Vwindow_size_change_functions with arg Qt.
3816 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
3818         * font.h (font_range):
3819         * fileio.c (report_file_error):
3820         * composite.c (composition_update_it): Yet another int/Lisp_Object
3821         mixup (YAILOM).
3823 2008-08-30  Glenn Morris  <rgm@gnu.org>
3825         * data.c (Fmake_variable_frame_local): Doc fix.
3827         * frame.c (Fmodify_frame_parameters): Doc fix.
3829 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
3831         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
3832         needed by GetTokenInformation.
3833         (w32_system_process_attributes): Check return values of all system
3834         APIs.
3836         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
3837         only when the state changes.
3838         (IT_update_begin, IT_update_end): Add termscript trace.
3840         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
3841         clipboard is unavailable.  Set dst to NULL if it doesn't point to
3842         malloc'ed data.
3843         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
3844         passing random values to xfree.
3846         * dispnew.c (init_display): Set `tty's association in frame's
3847         parameters alist to the name of the terminal device, if that is known.
3849 2008-08-29  Jason Rumney  <jasonr@gnu.org>
3851         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
3853 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
3855         * composite.c (fill_gstring_body): Avoid compiler warnings.
3857         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
3858         LGLYPH_SET_CODE to avoid compiler warnings.
3860         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
3862         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
3864         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
3865         LGLYPH_SET_CODE.
3867 2008-08-29  Kenichi Handa  <handa@m17n.org>
3869         * fileio.c (report_file_error): Don't downcase the first character
3870         of errstring if it is still unibyte.
3872 2008-08-29  Kenichi Handa  <handa@m17n.org>
3874         These changes are to re-implement the automatic composition so
3875         that it doesn't use text properties.
3877         * Makefile.in (ftfont.o): Depend on composite.h.
3878         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
3880         * character.h (Vunicode_category_table): Extern it.
3882         * character.c (Vunicode_category_table): New variable.
3883         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
3885         * chartab.c (optimize_sub_char_table): Perform more greedy
3886         optimization.
3888         * composite.h (enum composition_method):
3889         Delete COMPOSITION_WITH_GLYPH_STRING.
3890         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
3891         (Vcomposition_function_table): Extern it.
3892         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
3893         (composition_gstring_put_cache, composition_gstring_from_id)
3894         (composition_gstring_p, composition_gstring_width)
3895         (composition_compute_stop_pos, composition_reseat_it)
3896         (composition_update_it, composition_adjust_point): Extern them.
3897         (Fcomposition_get_gstring): EXFUN it.
3899         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
3900         (Vcomposition_function_table)
3901         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
3902         (gstring_hash_table, gstring_work, gstring_work_headers):
3903         New variables.
3904         (gstring_lookup_cache, composition_gstring_put_cache)
3905         (composition_gstring_from_id, composition_gstring_p)
3906         (composition_gstring_width, fill_gstring_header)
3907         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
3908         (composition_reseat_it, composition_update_it)
3909         (composition_adjust_point, Fcomposition_get_gstring): New functions.
3910         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
3911         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
3912         Defsubr compostion_get_gstring.
3914         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
3915         cmp_id.
3916         (struct glyph_string): Delete the member gidx.  New members
3917         cmp_id, cmp_from, and cmp_to.
3918         (enum it_method): Delete GET_FROM_COMPOSITION.
3919         (struct composition_it): New struct.
3920         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
3921         Delete c, len, cmp_id, cmp_len in u.comp.
3923         * font.h (enum lgstring_indices): Delete it.
3924         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
3925         (enum lglyph_indices): Likewise.
3926         (font_range): Adjust extern.
3927         (font_fill_lglyph_metrics): Extern it.
3929         * font.c (QCf): New variable.
3930         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3931         (font_prepare_composition): Delete this function.
3932         (font_range): Type and arguments changed.
3933         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
3934         (font_fill_lglyph_metrics): New function.
3935         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
3936         (syms_of_font): DEFSYM QCf.  Delete defsubr for
3937         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
3938         Defsubr Sfont_shape_gstring.
3940         * fontset.h (font_for_char): Extern it.
3942         * fontset.c (font_for_char): New function.
3944         * ftfont.c: Include composite.h.
3945         (ftfont_resolve_generic_family): Add langset "en" to pattern.
3946         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3948         * indent.c: Include composite.h and dispextern.h.
3949         (check_composition): Delete this function.
3950         (scan_for_column): Handle composition by
3951         composition_compute_stop_pos, composition_reseat_it, and
3952         composition_update_it.
3953         (compute_motion): Likewise.
3954         (Fvertical_motion): Fix checking of composition.
3956         * keyboard.c (adjust_point_for_property): Check composition by
3957         composition_adjust_point.
3959         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
3960         struct glyph_string.
3962         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
3963         (append_composite_glyph): Adjust for the change of struct it and
3964         struct glyph.
3965         (produce_composite_glyph): Likewise.
3967         * w32term.c (x_draw_composite_glyph_string_foreground):
3968         Adjust for the change of struct glyph_string.
3969         (x_draw_glyph_string): Likewise.
3971         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
3972         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
3974         * xdisp.c: Include font.h.
3975         (it_props): Delete the entry for Qauto_composed.
3976         (init_iterator): Initialize it->cmp_it.id to -1.
3977         (compute_stop_pos): Call composition_compute_stop_pos.
3978         (face_before_or_after_it_pos): Adjust for the change of struct it.
3979         (handle_auto_composed_prop): Delete it.
3980         (handle_composition_prop): Handle only static composition.
3981         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
3982         from xassert.  Initialize it->cmp_it.stop_pos.
3983         (push_it): Adjust for the change of struct it.
3984         (pop_it): Likewise.
3985         (get_next_element): Delete next_element_from_composition.
3986         (CHAR_COMPOSED_P): New macro.
3987         (get_next_display_element): For automatic composition, get a face
3988         from the font in the glyph-string.
3989         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
3990         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
3991         (next_element_from_string): Check if the character at the current
3992         position is composed by CHAR_COMPOSED_P.
3993         (next_element_from_buffer): Likewise.
3994         (next_element_from_composition): Adjust for the change of struct it.
3995         Update it->cmp_it.
3996         (dump_glyph): Adjust for the change of struct glyph.
3997         (fill_composite_glyph_string): Adjust for the change of struct
3998         it and struct glyph.  Don't handle automatic composition here.
3999         (fill_gstring_glyph_string): New function.
4000         (x_get_glyph_overhangs): Handle automatic composition.
4001         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
4002         (BUILD_GSTRING_GLYPH_STRING): New macro.
4003         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4004         automatic composition.
4005         (append_composite_glyph): Adjust for the change of struct it and
4006         struct glyph.
4007         (x_produce_glyphs): Adjust for the change of struct it.
4009         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
4010         the change of struct glyph_string.
4011         (x_draw_glyph_string): Likewise.
4013 2008-08-29  Glenn Morris  <rgm@gnu.org>
4015         * buffer.c (word-wrap): Doc fix.
4016         * xdisp.c (truncate-partial-width-windows): Doc fix.
4017         Increase default to 50.
4019 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
4021         * xdisp.c (update_tool_bar_unwind): New function.
4022         (update_tool_bar): Temporarily set selected frame before building
4023         tool-bar items.
4025 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
4027         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4028         snprintf, respectively.
4029         (xd_append_arg): Convert strings with Fstring_make_unibyte.
4031 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
4033         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4034         LDFLAGS to GNUstep CC invocation.
4036 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
4038         * indent.c (Fvertical_motion): Revert last change.  Handle the
4039         general case where we are moving forward, and PT spans multiple
4040         screen lines.
4042         * eval.c (find_handler_clause): Temporarily increase
4043         max-lisp-eval-depth while printing the backtrace buffer, to
4044         guarantee that help-mode code can run.
4046 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
4048         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4049         colors under -rv.
4050         (IT_set_frame_parameters): Don't swap foreground and background
4051         colors if `(reverse . t)' is present in the frame properties.
4052         (internal_terminal_init): Call init_frame_faces only for the
4053         initial frame.
4055 2008-08-27  Andreas Schwab  <schwab@suse.de>
4057         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4059 2008-08-27  Andreas Schwab  <schwab@suse.de>
4061         * search.c (search_buffer): Set char_base to zero only at the end.
4063 2008-08-27  Kenichi Handa  <handa@m17n.org>
4065         * fileio.c (report_file_error): Fix handling of multibyte error string.
4067 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
4069         * xterm.c (x_term_init): Temporarily hide the partially
4070         initialized terminal while calling vendor-specific-keysyms.
4072 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
4074         * msdos.c (internal_terminal_init): Most initializations done only
4075         once, especially initial_screen_colors[] and termscript open.
4077 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
4079         * eval.c (Fcondition_case): Doc fix.
4081         * widgetprv.h (EmacsFramePart): Change font member to the new font
4082         struct.
4084         * widget.c: Include character.h and font.h for XSETFONT.
4085         (setup_frame_gcs): Compute X font id from font struct, just once.
4087 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
4089         * term.c (get_named_tty): Fix last change.
4091 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
4093         * indent.c (Fvertical_motion): If moving forward starting from a
4094         multi-line string, move the iterator to the last line of that string.
4096 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
4098         * frame.c (do_switch_frame): Mark previously displayed frame as
4099         obscured for FRAME_MSDOS_P frames as well.
4101 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
4103         * frame.c (make_terminal_frame): Initialize f->terminal,
4104         f->terminal->reference_count, and scroll bars on MS-DOS as well.
4105         Set the top frame to newly created frame.
4106         (Fmake_terminal_frame): Reuse the_only_display_info.
4108         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4109         estimating available memory.
4111 2008-08-23  David Reitter  <david.reitter@gmail.com>
4113         * nsterm.m (ns_draw_window_cursor): Don't call
4114         NSDisableScreenUpdates and NSEnableScreenUpdates on
4115         non-NS_IMPL_COCOA systems.
4117 2008-08-23  Andreas Schwab  <schwab@suse.de>
4119         * process.c (procfs_system_process_attributes): Fix use of
4120         uninitialized variables.
4122 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
4124         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4126         * dispnew.c (init_display): Remove MS-DOS specific conditions for
4127         calling tty-set-up-initial-frame-faces.
4129         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4130         Allow MSDOS frames along with X frames.
4132         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4133         addition to output_termcap.
4135         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4137         * termchar.h (FRAME_TTY): Support output_msdos_raw.
4138         (struct tty_display_info) [MSDOS]: Add fields related to mouse
4139         highlight.
4141         * process.c [!subprocesses]: Define QCname.
4142         (syms_of_process): Intern and staticpro it.
4144         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
4145         Adjust for changes in encoding/decoding routines.
4146         Use encode_coding_object and decode_coding_object instead of
4147         encode_coding and decode_coding.
4149         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
4151         * dosfns.c: Include frame.h before termhooks.h.
4152         (dos_cleanup): Use CURTTY ()->termscript instead of a global
4153         variable termscript.
4155         * s/msdos.h (USER_FULL_NAME): Define.
4156         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4158         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4159         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4160         pw->pw_gecos.
4162         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4163         SELECTED_FRAME as additional (1st) argument.
4164         (tty_read_avail_input): Handle output_msdos_raw in
4165         addition to output_termcap.
4167         * msdos.c: Include frame.h before termhooks.h.
4168         (mouse_on, mouse_off, mouse_moveto, mouse_init)
4169         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4170         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4171         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4172         (IT_set_terminal_modes, IT_reset_terminal_modes)
4173         (IT_set_frame_parameters): Use tty->termscript instead of a global
4174         variable termscript.
4175         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4176         global variable terminal_coding.  Don't refer to
4177         Vnonascii_translation_table.
4178         (internal_terminal_init): Set Vwindow_system in current_kboard.
4179         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
4180         Announce date and time of session start, if termscript is open.
4181         Don't zero out the_only_display_info (it is done in
4182         term.c:init_tty).  Open termscript only of not already open.
4183         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
4184         here instead of dos_ttraw.  Don't initialize display if this is an
4185         initial tty.  Don't set FRAME_FONT.
4186         (Vwindow_system_version): Bump to 23.
4187         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
4188         is available, set up mouse_position_hook.
4189         (dos_ttraw, IT_set_terminal_modes): If called with initial
4190         terminal, do nothing.
4191         (IT_set_frame_parameters): Handle the Qtty_type frame
4192         parameter by calling internal_terminal_init.
4193         (dos_set_window_size, show_mouse_face)
4194         (clear_mouse_face, IT_note_mode_line_highlight)
4195         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4196         (dos_rawgetc): Use tty_display_info instead of x_display_info.
4197         (initialize_msdos_display): New function.
4198         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4199         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4200         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4201         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
4202         Accept additional argument: a pointer to a frame.  Update all callers.
4203         (request_sigio, unrequest_sigio): Don't define, now defined on
4204         sysdep.c.
4205         (IT_write_glyphs): Rewrite to use encode_terminal_code.
4207         * term.c [MSDOS]: Include msdos.h.
4208         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
4209         conditional to DOS_NT.  Allow only one call to this function in a
4210         session.  Don't allocate a new struct tty_display_info; instead,
4211         reuse the_only_display_info.  Call get_tty_size to get screen
4212         dimensions.  Call init_baud_rate to set bad_rate.
4213         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4214         (Fsuspend_tty) [MSDOS]: Don't close input and output.
4215         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
4216         (get_tty_terminal, get_named_tty, Ftty_type)
4217         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4218         output_termcap.
4219         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4220         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
4221         only when subprocesses are supported.
4223         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4224         f->output_data.x.
4225         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4226         terminal devices.
4228         * msdos.h: Remove definition of struct x_display_info and struct
4229         x_output.
4230         (FRAME_FONT): Use output_data.tty.
4231         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
4232         (struct x_display_info): Rename from display_info.  Update all users in
4233         msdos.c.
4234         (struct x_output): Remove background_pixel and foreground_pixel.
4235         (the_only_display_info): Rename from the_only_x_display.
4236         (dos_ttraw): Update prototype.
4238         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4239         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4241 2008-08-23  Jason Rumney  <jasonr@gnu.org>
4243         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4244         (fn_TIFFSetDirectory): New library function used.
4245         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4246         (tiff_load): Use :index to select among multiple images.  Set count
4247         property when multiple images exist.
4248         (gif_format): Use :index, not :image.
4250 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
4252         * xdisp.c (try_scrolling): Check INT_MAX instead of
4253         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
4254         to obtain INT_MAX.
4256 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
4258         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4260 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
4262         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4263         GNUstep library location.
4265 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
4267         * xfaces.c (x_update_menu_appearance): Check validity of menu font
4268         before using it.
4270         * puresize.h (BASE_PURESIZE): Increase to 1250000.
4272 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
4274         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
4275         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
4276         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
4277         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
4278         (EmacsApp-cursor_blink_handler): Remove declaration.
4279         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
4280         match 01 Feb 2008 changes in xterm.c.
4281         (ns_read_socket): Add cast to avoid warning.
4282         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
4283         GNUstep.
4285 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
4287         * xselect.c (x_get_foreign_selection): Return nil if desired
4288         selection could not be obtained, instead of signalling an error.
4290 2008-08-20  David Reitter  <david.reitter@gmail.com>
4292         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
4293         * nsterm.m: Remove ns-specific code for cursor blinking.
4294         (ns_draw_window_cursor): Clear cursor properly rather than
4295         redrawing the area.  Respect width of bar cursors.
4296         These changes enable the use of generic blink-cursor-mode and
4297         generic cursor types in NS and support smooth cursor movements (do
4298         not blink off after command).
4299         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
4300         Nextstep, too.
4302 2008-08-19  Kenichi Handa  <handa@m17n.org>
4304         * font.c (Vfont_log_deferred): New variable.
4305         (font_add_log): Check Vfont_log_deferred.
4306         (font_deferred_log): New function.
4308         * font.h (font_deferred_log): Extern it.
4310         * fontset.c (reorder_font_vector): Use encoding charset of fonts
4311         for sorting.
4312         (face_for_char): Use deferred log.
4314 2008-08-18  Kenichi Handa  <handa@m17n.org>
4316         * fontset.c (face_for_char): Add font log.
4318         * font.c (font_add_log): Add the font properties :script, :lang,
4319         and :otf in the log.
4321 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
4323         * xdisp.c: Remove dead code.
4324         (handle_invisible_prop, next_overlay_string): Defer call to
4325         setup_for_ellipsis.
4326         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
4328 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
4330         * xfaces.c (lookup_derived_face): Properly handle possible zero
4331         return value of get_lface_attributes.
4332         (merge_faces): Don't tell lookup_derived_face to signal an error
4333         if face is not found.
4335         * dired.c (Fdirectory_files): Doc fix.
4337         * process.c (make_process): Initialize kill_without_query struct
4338         member.
4340 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
4342         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
4343         Alternative calculation of totphys for Visual Studio 6.
4345         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
4347         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
4348         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
4349         All users changed.
4350         (stat): Only root directory passed to GetDriveType.  Allow RAM
4351         disk as well as local fixed disk when w32-get-true-file-attributes
4352         is set to `local'.
4353         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
4354         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
4355         (w32_cached_id, w32_add_to_cache): New functions.
4356         (get_name_and_id): Look account names in the cache before calling
4357         lookup_account_sid.
4358         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
4359         New initialization flags.
4360         (globals_of_w32): Initialize them to zero.
4361         (w32_system_process_attributes): Use w32_cached_id and
4362         w32_add_to_cache.
4364 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
4366         * lread.c (Fread_char, Fread_char_exclusive): If no character
4367         event is read before timeout is reached, return nil, rather than
4368         converting to a number.
4370 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
4372         * fns.c (use_dialog_box): Doc fix.
4374         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
4375         on OS X.
4377 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
4379         * frame.c (Qns_parse_geometry): New var.
4380         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
4382 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
4384         * xdisp.c (x_produce_glyphs): Handle the case when font has no
4385         space character in calculating tabs.
4387 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
4389         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
4391 2008-08-10  Glenn Morris  <rgm@gnu.org>
4393         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
4394         silence gcc "limited range of data type" warnings in some
4395         make_fixnum_or_float calls.
4397 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
4399         * w32.c (w32_system_process_attributes): If the process does not
4400         exist, return nil.
4402         * w32.c: Include thelp32.h, psapi.h and coding.h.
4403         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
4404         declarations.
4405         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
4406         (Process32Next_Proc): New typedefs.
4407         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
4408         (g_b_init_process32_next, g_b_init_open_thread_token)
4409         (g_b_init_impersonate_self, g_b_init_revert_to_self)
4410         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
4411         (g_b_init_get_process_working_set_size)
4412         (g_b_init_global_memory_status_ex): New static variables.
4413         (globals_of_w32): Initialize them.
4414         (create_toolhelp32_snapshot, process32_first, process32_next)
4415         (open_thread_token, impersonate_self, revert_to_self)
4416         (get_process_memory_info, get_process_working_set_size)
4417         (global_memory_status, global_memory_status_ex): New wrapper
4418         functions.
4419         (w32_list_system_processes, w32_system_process_attributes)
4420         (enable_privilege, restore_privilege, ltime, process_times):
4421         New functions.
4422         (convert_time_raw): New function.
4423         (convert_time): Remove conversion of FILETIME into time in 100
4424         nsec units, call convert_time_raw instead.
4426         * process.h (w32_list_system_processes, w32_system_process_attributes):
4427         Add prototypes.
4428         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
4429         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
4430         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
4431         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
4433         * process.c (Fsystem_process_attributes): Doc fix.
4435 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
4437         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
4438         a continued multi-char glyph; if so, advance to the actual glyph.
4440 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
4442         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
4444         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
4445         (.m.o): Use it.
4446         * config.in: Regenerate.
4448 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
4450         * xdisp.c (redisplay_window): Revert last change.
4451         (try_window): Check bottom scroll margin too.
4453 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
4455         * config.in: Regenerate.
4457         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
4458         -list-load-path-shadows'.
4459         (nsgui.h): Reduce number of things depending on it.
4461 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
4463         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
4464         instead of window-end which does the wrong thing at eob.
4465         (try_cursor_movement): Minor optimization.
4466         (redisplay_window): If scroll margin is defined, don't assume
4467         window doesn't need scrolling.
4469 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
4471         * config.in: Regenerate.
4473         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
4474         (mostlyclean): Don't delete *.d under NS.
4476         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
4478 2008-08-06  Kenichi Handa  <handa@m17n.org>
4480         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
4482 2008-08-06  Andreas Schwab  <schwab@suse.de>
4484         * config.in: Regenerate.
4486 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
4488         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
4489         forcing a window start.
4491         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
4492         (auto_save_1): Update modtime when auto-save-list-file-name is on.
4494 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
4496         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
4497         argument.
4499 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
4501         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
4502         <scroll-down-aggressively, before-change-functions>:
4503         <after-change-functions>: Reflow docstrings.
4505 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
4506             Ken Raeburn  <raeburn@gnu.org>
4508         Dock menu customization, based on a patch by Ken Raeburn, plus some
4509         other fixes.
4510         * nsmenu.m (dockMenu): New variable.
4511         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
4513         * nsterm.h (dockMenu): Declare.
4515         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
4516         (ns_term_init): Initialize dockMenu.
4517         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
4518         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
4519         left.
4521         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
4523 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
4525         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
4527         * config.in: Regenerate.
4529 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
4531         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
4533 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
4535         * nsterm.h (find_and_call_menu_selection): Fix prototype.
4537 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
4539         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
4541         * keyboard.h: Comment an #endif.
4543         * lisp.h (have_menus_p): Adjust comment.
4545         * menu.c (find_and_return_menu_selection): Fix comparison with
4546         client_data.
4548         * nsmenu.m (popup_activated_flag): New variable.
4549         (popup_activated): New function.
4550         (menu-or-popup-active-p): New exported lisp definition.
4551         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
4552         when popup done.
4553         (ns_popup_dialog): Set popup_activated_flag.
4555         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
4556         version for GNUstep (handled by conditional typedef in nsterm.m).
4557         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
4558         in rgb.txt).
4560         * process.c (init_process): Use DARWIN_OS, not DARWIN.
4562         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
4564         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
4566         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
4567         shortcircuit if popup_activated like GTK and X toolkit.
4569         * m/inter386.h: Change DARWIN to DARWIN_OS.
4571         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
4572         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
4573         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.  Expand
4574         comment on NO_SOCK_SIGIO.
4576 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
4578         * nsterm.m (windowDidResize): Remove stopModal call.
4580 2008-08-03  Andreas Schwab  <schwab@suse.de>
4582         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
4583         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
4585 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
4587         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
4588         Don't use uninitialized pointer variable when using getrlimit.
4590 2008-08-02  Jason Rumney  <jasonr@gnu.org>
4592         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4594 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
4596         * alloc.c (NSTATICS): Bump to 0x640.
4598         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
4600         * lisp.h: Add prototype for directory_files_internal.
4602         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
4603         New functions.
4604         (syms_of_process): Defsubr them.  Add initializations for various
4605         Q* symbols used in procfs_system_process_attributes.
4606         (procfs_list_system_processes, procfs_system_process_attributes)
4607         [HAVE_PROCFS]: New functions.
4608         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
4609         (procfs_get_total_memory): New functions.
4611 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
4613         * xfaces.c (Fx_load_color_file): Fix previous change;
4614         it is #ifdef WINDOWSNT, not WINDOWS_NT.
4616 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
4618         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
4620 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
4622         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
4624 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
4626         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
4628         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
4629         define NSApplicationDelegateReplySuccess.
4630         (EmacsView -converstationIdentifier): Use long instead of
4631         NSInteger for GNUstep, since it doesn't have NSInteger.
4633         * xmenu.c: Revert last change.
4635         * keyboard.h: Fix last change.
4637 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
4639         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
4640         on Windows.
4642 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
4644         Warning clearing and clean-up in NS port.
4645         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
4646         Add prototypes.
4647         * nsgui.h (FACE_DEFAULT): Remove, unused.
4648         (XGCValues): Change colors to unsigned long.
4649         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
4650         nsterm.m.
4651         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
4652         (ns_list_fonts): Remove, unused.
4653         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
4654         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
4655         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
4656         (nsfont_draw): Compare face colors to 0, not nil.
4657         * nsmenu.m (struct widget_value): Drop unneeded declaration.
4658         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
4659         (-addSubmenuWithTitle:): Use NSMenuItem class.
4660         (ns_popup_menu): Use NO, not NULL, for enabled setting.
4661         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
4662         (ns_clip_to_row): Make gc arg a BOOL.
4663         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
4664         ns_clip_to_row() call.
4665         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
4666         used).  Cast FRAME_FONT assignments.
4667         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
4668         (ns_string_to_lispmod): Change arg to const char.
4669         (ns_term_init): Use NSMenuItem class.
4670         (EmacsApp -openFile:): Move to different section of file.
4671         (EmacsApp -application:openFiles:): Don't return a value, call
4672         -replyToOpenOrPrint:.
4673         (EmacsView -keyDown:): Fix up cast.
4674         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
4675         (EmacsView -menuDown:): Cast tag in call to
4676         find_and_call_menu_selection().
4677         (ns_list_fonts): Remove, unused.
4678         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
4679         (ns_fontname_to_xlfd): Make static.
4680         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
4681         Remove prototypes (now in keyboard.h).
4682         (next_menubar_widget_id): Remove, unused.
4683         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
4684         Remove prototypes (now in keyboard.h).
4685         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
4687 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
4689         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
4690         (floatfns.o): Depend on syssignal.h.
4691         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
4693         * systty.h: Fix previous change that removed BSD_TERMIOS.
4694         Add comments to #ifdefs.
4696 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
4698         * w32fns.c (w32-load-color-file): Remove.
4699         (x-open-connection): Use renamed Fx_load_color_file.
4700         * xfaces.c (x-load-color-file): Add.
4701         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
4702         Emacs.clr.
4703         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
4705 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
4707         * dbusbind.c (Fdbus_call_method_asynchronously)
4708         (Fdbus_method_error_internal): New defuns.
4709         (xd_read_message): Handle also reply messages.
4710         (Vdbus_registered_functions_table): Extend docstring.
4712 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
4714         * keyboard.c (gobble_input): Fix previous change.
4716 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
4718         * bitmaps/README:
4719         * xfns.c:
4720         * termcap.c:
4721         * term.c:
4722         * syswait.h:
4723         * systty.h:
4724         * systime.h:
4725         * syssignal.h:
4726         * sysdep.c:
4727         * process.h:
4728         * process.c:
4729         * print.c:
4730         * ndir.h:
4731         * lread.c:
4732         * keyboard.c:
4733         * getpagesize.h:
4734         * floatfns.c:
4735         * fileio.c:
4736         * emacs.c:
4737         * doc.c:
4738         * dispnew.c:
4739         * dired.c:
4740         * data.c:
4741         * callproc.c:
4742         * buffer.c:
4743         * README:
4744         * Makefile.in:
4745         * s/template.h:
4746         * s/msdos.h:
4747         * m/vax.h: Remove VMS support.
4748         * s/vms.h:
4749         * vlimit.h:
4750         * uaf.h:
4751         * temacs.opt:
4752         * param.h:
4753         * ioctl.h: Remove file.
4755 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
4757         * s/ms-w32.h (MULTI_KBOARD): Remove.
4758         * xterm.c:
4759         * xselect.c:
4760         * xfns.c:
4761         * window.c:
4762         * w32term.c:
4763         * w32fns.c:
4764         * terminal.c:
4765         * termhooks.h:
4766         * term.c:
4767         * sysdep.c:
4768         * keyboard.h:
4769         * keyboard.c:
4770         * frame.h:
4771         * frame.c:
4772         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
4773         * config.in: Regenerate.
4775 2008-07-30  Jason Rumney  <jasonr@gnu.org>
4777         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
4779         * w32font.c (w32font_encode_char): Leave as unicode if in range.
4780         (w32font_open_internal): Get unicode version of textmetrics.
4781         Don't enable or disable glyph indices here.
4782         (w32font_open): Disable use of glyph indices.
4784         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
4786 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
4788         * minibuf.c (Vread_buffer_function): Doc fix.
4790 2008-07-30  John Paul Wallington  <jpw@pobox.com>
4792         * minibuf.c (read_buffer_completion_ignore_case): New var.
4793         (Fread_buffer): Use it.
4795 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
4797         * systty.h (sensemode): Remove empty #if.  Remove reference to
4798         BSD_TERMIOS, unused.
4800         * sysdep.c: Remove reference to DGUX.
4801         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
4803         * config.in: Regenerate.
4805 2008-07-30  Jason Rumney  <jasonr@gnu.org>
4807         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
4809 2008-07-29  Jason Rumney  <jasonr@gnu.org>
4811         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
4812         is populated.
4813         (uniscribe_encode_char): Always use uniscribe.
4814         Avoid using context if cache is populated.
4816 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
4818         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
4819         open menu.
4821         * gtkutil.c (menu_nav_ended): Remove.
4822         (create_menus): Remove signal connect for menu_nav_ended.
4824 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
4826         * xdisp.c (redisplay_window): Check return value of
4827         compute_window_start_on_continuation_line before forcing a window
4828         start.
4830 2008-07-28  Jason Rumney  <jasonr@gnu.org>
4832         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
4834         * w32term.c (w32_enable_unicode_output, cleartype_active):
4835         Remove obsolete display options.
4836         (x_draw_glyph_string_background): Don't use old cleartype_active
4837         workaround.
4838         (w32_initialize): Remove cleartype_active initialization.
4839         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
4841 2008-07-28  Andreas Schwab  <schwab@suse.de>
4843         * lisp.h (init_weak_hash_tables, syms_of_font)
4844         (xd_read_queued_messages, syms_of_dbusbind): Declare.
4845         (remove_hash_entry): Don't declare.
4846         * eval.c (maybe_call_debugger): Make static and move before use.
4847         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
4848         * xdisp.c: Include "gtkutil.h" if USE_GTK.
4849         * xterm.h (x_set_frame_alpha): Declare.
4851 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
4853         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
4854         (create_menus): Connect selection-done to menu_nav_ended.
4856 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
4858         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
4859         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
4860         parameter with read of 'alpha' one.
4861         (Qns_frame_parameter): Remove.
4862         * nsselect.m (selection-coding-system)
4863         (next-selection-coding-system, Vselection_coding_system)
4864         (Vnext_selection_coding_system): Drop.
4866 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
4868         * nsfns.m (do-applescript, do_applescript): Rename to
4869         ns-do-applescript, ns_do_applescript, and move within file.
4871 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
4873         Remove support for Mac Carbon.
4874         * mactoolbox.c:
4875         * macterm.h:
4876         * macterm.c:
4877         * macselect.c:
4878         * macmenu.c:
4879         * macgui.h:
4880         * macfns.c:
4881         * mac.c: Remove file.
4882         * s/darwin.h:
4883         * m/intel386.h:
4884         * xfaces.c:
4885         * xdisp.c:
4886         * window.c:
4887         * tparam.c:
4888         * termhooks.h:
4889         * termcap.c:
4890         * term.c:
4891         * syssignal.h:
4892         * sysselect.h:
4893         * sysdep.c:
4894         * process.c:
4895         * lread.c:
4896         * lisp.h:
4897         * keyboard.c:
4898         * image.c:
4899         * fringe.c:
4900         * frame.h:
4901         * frame.c:
4902         * fontset.c:
4903         * font.h:
4904         * font.c:
4905         * fns.c:
4906         * fileio.c:
4907         * emacs.c:
4908         * dispnew.c:
4909         * dispextern.h:
4910         * config.in:
4911         * atimer.c:
4912         * Makefile.in: Remove code for Carbon.
4914 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4916         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
4918 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4920         * macterm.h (kCGBitmapByteOrder32Host): New define for
4921         non-universal SDKs.
4923         * image.c (mac_create_cg_image_from_image, image_load_image_io)
4924         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4926         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
4927         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
4929 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
4931         * w32inevt.c: Include dispextern.h.
4933 2008-07-26  Andreas Schwab  <schwab@suse.de>
4935         * print.c (print_object): Fix off-by-one in last change.
4937 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
4939         * term.c (syms_of_term): Don't initialize default_orig_pair,
4940         default_set_foreground and default_set_background on Windows.
4942 2008-07-25  Jason Rumney  <jasonr@gnu.org>
4944         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
4945         ScriptItemize.  Clean up return value checking.  Remove unused
4946         variables.
4947         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
4948         shaping engine.
4950         * w32font.c (w32font_has_char): Handle the case where we can't
4951         determine the script for a character.
4953 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4955         * term.c (syms_of_term): Initialize default_orig_pair,
4956         default_set_foreground, and default_set_background.
4958         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4959         clash (bug#86).
4960         (getloadavg): Callers changed.
4962         * image.c (svg_load_image): Fix last change.
4963         (svg_load_image): Use rsvg_handle_get_dimensions to check that
4964         image size is valid.  Use g_object_unref instead of deprecated
4965         rsvg_handle_free to free rsvg handle.
4966         (x_from_xcolors): Don't initialize pixmap (silence compiler).
4968 2008-07-25  Jason Rumney  <jasonr@gnu.org>
4970         * w32font.c (w32font_encode_char): Encode characters outside BMP as
4971         surrogates before looking up glyph index.
4972         (w32font_text_extents): Encode as surrogates if falling back to
4973         functions that need UTF-16 wide chars.
4975         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
4976         BMP as surrogates before looking up glyph index.
4978 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4980         * image.c (svg_load_image): Check for failure in return value of
4981         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
4983 2008-07-25  Jason Rumney  <jasonr@gnu.org>
4985         * w32font.c (Fx_select_font): Reverse sense of second arg.
4987 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
4989         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
4990         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
4992         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
4993         (PURESIZE): Use it.
4995 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
4997         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
4998         * m/alpha.h (TEXT_END):
4999         * m/ibmrs6000.h (TEXT_END):
5000         * m/macppc.h (TEXT_END):
5001         * s/darwin.h (TEXT_END):
5002         * s/msdos.h (TEXT_END): Remove, unused.
5003         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5004         * s/cygwin.h: Remove comment.
5006         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5007         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5008         * m/intel386.h (DOT_GLOBAL_START):
5009         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5010         (USG): Remove, file not used on USG platforms.
5012         * Makefile.in (HAVE_X11): Remove empty #else.
5014 2008-07-24  Andreas Schwab  <schwab@suse.de>
5016         * fileio.c (Finsert_file_contents): Properly adjust undo list
5017         after format conversion.
5019 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
5021         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5022         (menu_nav_ended): Remove.
5023         (create_menus): Remove signal connect for menu_nav_ended.
5024         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5025         create_menus.
5026         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5028 2008-07-23  Jason Rumney  <jasonr@gnu.org>
5030         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5031         with opened font.
5032         (w32font_open): Set font type to gdi.
5034         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5036 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
5038         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5039         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5040         defines it.
5041         * unexec.c (ADDR_CORRECT): Define unconditionally.
5043         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5045         * unexec.c: Remove code depending on !COFF and USG, the file is
5046         not used for such systems.
5048         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5049         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5050         (LD_SWITCH_SYSTEM_1): Remove, update users.
5052         * s/darwin.h (DATA_END):
5053         * m/intel386.h (DATA_END):
5054         * m/ibmrs6000.h (DATA_END):
5055         * m/alpha.h (DATA_END): Remove, unused.
5057         * config.in: Regenerate.
5058         * s/ms-w32.h (subprocesses): Define unconditionally.
5059         * s/template.h (subprocesses): Update comment.
5060         * s/vms.h (subprocesses):
5061         * s/usg5-4.h (subprocesses):
5062         * s/hpux10-20.h (subprocesses):
5063         * s/gnu-linux.h (subprocesses):
5064         * s/cygwin.h (subprocesses):
5065         * s/bsd-common.h (subprocesses):
5066         * s/aix4-2.h (subprocesses):
5067         * s/darwin.h (subprocesses): Do not define, defined by default now.
5069         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5070         Remove all references.
5071         (temacs): Add GNUstep specific ld flags.
5073         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5074         similarly to what X does.
5076 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
5078         * nsfns.m (x-list-fonts): Remove.
5079         (syms_of_nsfns): Drop the x-list-fonts declaration.
5080         * nsterm.m: Get rid of remaining "//" comments.
5082 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
5084         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5086         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5087         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5088         (Fns_own_selection_internal, Fx_disown_selection_internal)
5089         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5091         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5092         ... */' style of docstrings.  Doc fixes.
5094 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
5096         * terminfo.c (UP, BC, PC): Undo previous change.
5098         * nsfns.m: Rename ns prefixed functions/variables to the
5099         corresponding x versions.  Update references.
5101 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
5103         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5105 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
5107         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5108         Remove forwarding functions.
5109         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5110         non-static.
5111         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5112         non-static.
5113         (ns_frame_parm_handlers): Use the new names.
5114         (syms_of_nsfns): Move to the end of file.
5116         * nsterm.m (syms_of_nsterm): Move to the end of file.
5118         * dispnew.c (init_display): Remove code for X10.
5120 2008-07-22  Jason Rumney  <jasonr@gnu.org>
5122         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5123         bare drive.
5125 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
5127         * nsterm.m (syms_of_nsterm): Remove debugging println.
5129 2008-07-22  David Reitter  <david.reitter@gmail.com>
5131         * nsfns.m (do_applescript, F_do_applescript): NS version of the
5132         Carbon implementation of the same functionality: execute arbitrary
5133         AppleScript code.
5135 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
5137         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5138         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5139         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5140         (Fx_display_mm_height, Fx_display_mm_width)
5141         (Fx_display_backing_store, Fx_display_visual_class)
5142         (Fx_display_save_under, Fx_open_connection)
5143         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5144         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5145         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5146         (Fx_display_pixel_width, Fx_display_pixel_height)
5147         (Fx_display_usable_bounds, Fx_display_planes)
5148         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5149         ... */' style of docstrings.
5151 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
5153         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5154         on this platform.
5155         (mips):
5156         * m/iris4d.h (mips): Do not define.
5157         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5159         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5161         * image.c:
5162         * nsfns.m:
5163         * nsselect.m:
5164         * nsterm.h:
5165         * nsterm.m: Rename ns prefixed functions/variables to the
5166         corresponding x versions.  Update references.
5168         * m/ibms390x.h (NO_REMAP): Do not undefine.
5170         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5172 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
5174         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5175         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5176         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5177         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5178         (Fns_display_mm_height, Fns_display_mm_width)
5179         (Fns_display_backing_store, Fns_display_visual_class)
5180         (Fns_display_save_under, Fns_open_connection)
5181         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5182         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5183         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5184         (Fns_display_pixel_width, Fns_display_pixel_height)
5185         (Fns_display_usable_bounds, Fx_display_planes)
5186         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5188 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
5190         * print.c (print_object): Check print_depth before searching for
5191         circularities.
5193 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
5195         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5196         only sprintf.
5198 2008-07-21  Kenichi Handa  <handa@m17n.org>
5200         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5202 2008-07-20  Andreas Schwab  <schwab@suse.de>
5204         * syntax.c (find_start_pos, find_start_value)
5205         (find_start_value_byte, find_start_begv, find_defun_start)
5206         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5208 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
5210         * s/sol2-3.h: Insert contents of s/sol2.h.
5211         (LD_SWITCH_SYSTEM): Remove redundant definition.
5212         * s/sol2.h: Remove, unused.
5214 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
5216         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5218 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
5220         * Makefile.in (ns_appdir): Fix typo in find command.
5222 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
5224         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5226         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5227         added not supported anymore.
5229         * s/usg5-4-2.h (LIBS_SYSTEM):
5230         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5232         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5233         * s/lynxos.h (GETPGRP_NO_ARG):
5234         * s/hpux10-20.h (NO_SIOCTL_H):
5235         * s/gnu.h (GETPGRP_NO_ARG):
5236         * s/gnu-linux.h (NO_SIOCTL_H):
5237         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5238         * s/cygwin.h (GETPGRP_NO_ARG):
5239         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5240         (C_DEBUG_SWITCH): Remove duplicate definition.
5242         * m/ibms390.h: Remove boilerplate comments.
5244         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5246         * process.c (HAVE_SERIAL): Consolidate ifdefs.
5247         (wait_reading_process_output): Remove code for SunOS, platform not
5248         supported anymore.  Use SOLARIS2 instead of sun.
5250 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
5252         * font.c (font_open_by_name): Under NS, default lface height to zero.
5253         (font_open_for_lface): Under NS, set size based on frame fontsize.
5254         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5255         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5257 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
5259         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5260         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5261         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5262         YES/NO.
5263         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5264         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5265         * Makefile.in (clean): Clear out build destination dir.
5267 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
5269         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5270         xterm, xselect.
5271         * lisp.h: Remove declaration of hash_remove.
5272         * nsgui.h: Remove redefinitions of hash_remove.
5273         * fns.c (hash_remove): Rename to hash_remove_from_table.
5275 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
5277         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
5278         strdup() the family UTF8String before modifying it.
5280 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
5282         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
5283         NS_FACE_BACKGROUND with 0 instead of nil.
5284         * nsfont.m (nsfont_draw): Same.
5286 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
5288         * nsfns.m (ns_set_background_color): Fix crash.
5290 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
5292         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
5294 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
5296         * puresize.h (BASE_PURESIZE): Increase to 1240000.
5298 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5300         * gtkutil.c: Include <config.h> instead of "config.h".
5302         * lisp.h (Foverlay_buffer): Add EXFUN.
5304         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
5305         child process to complete child_setup.  Undo 2005-09-21 change.
5307         * s/darwin.h: Mention setsid after vfork.
5309 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5311         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
5312         Depend on macgui.h.
5314         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
5315         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
5317         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
5318         and f19.
5319         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
5321         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
5322         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
5323         Remove enumerators.
5325         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
5326         Check if FACE_FROM_ID returns NULL.
5328 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
5330         * w32inevt.c (change_frame_size): Remove extern declaration.
5331         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
5332         change_frame_size.
5334 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
5336         * getloadavg.c: Revert last change (2008-07-15).
5338 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
5340         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
5341         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
5342         from configure.
5344 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
5346         * s/sol2.h:
5347         * s/sol2-4.h: Reorganize conditionals.
5349         * ecrt0.c: Remove code depending on m68000, not used anymore.
5351         * fns.c (hash_remove): Make static.
5352         * lisp.h (hash_remove): Don't prototype.
5354         * m/ibmrs6000.h:
5355         * m/ibms390x.h:
5356         * m/macppc.h: Remove boilerplate comments.
5358         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
5359         Solaris, which does not need them.
5361         * m/vax.h: Remove comments about unsupported systems.
5363         * s/darwin.h: Reorganize ifdefs.
5365 2008-07-17  Andreas Schwab  <schwab@suse.de>
5367         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
5369 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
5371         Use SDATA.  Follow coding convention of placing operators at
5372         beginning of next line rather than end of previous line, and placing
5373         spaces around infix operators.
5375         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
5376         in case it was defined already.
5377         USE @GNUSTEP_MAKEFILES@ rather than envvars.
5378         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
5379         ns_default.
5380         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
5381         Lisp_Objects.
5382         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
5383         (ns_defined_color, ns_color_to_lisp): Declare.
5384         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
5385         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
5386         it's accepted even with USE_LISP_UNION_TYPE.
5387         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
5388         (update_frame_tool_bar): Remove apparently obsolete tests for
5389         non-integerness of f->tool_bar_lines.
5390         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
5391         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
5392         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
5393         (nsfont_open): Don't confuse NULL for Qnil.
5394         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
5395         * menu.h (find_and_call_menu_selection):
5396         * menu.c (find_and_call_menu_selection): Use just int for vector size.
5397         (find_and_return_menu_selection): Always return something.
5398         * frame.h: Include dispextern.h for Display_Info.
5399         (display_x_get_resource): Declare.
5401 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
5403         * syntax.c: Remove stdio.h include accidentally introduced in
5404         Emacs.app commit.
5405         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
5406         NS_IMPL_COCOA.
5407         * keyboard.c (handle_async_input, input_available_signal): Remove
5408         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
5410 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
5412         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
5413         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
5414         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
5415         Use SDATA.
5417         * keymap.c: Remove all NS-specific code.
5418         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
5419         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
5420         where_is_preferred_modifier, return a different value depending on how
5421         preferred is the binding.
5422         (where_is_internal): Adjust accordingly.
5423         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
5424         Adjust to new preferred_sequence_p.
5425         (syms_of_keymap): Declare `where-is-preferred-modifier'.
5426         * keyboard.c (parse_solitary_modifier): Not static any more.
5427         * keyboard.h (parse_solitary_modifier): Declare.
5429 2008-07-16  Andreas Schwab  <schwab@suse.de>
5431         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
5432         of easymenu.
5434 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
5436         * xdisp.c (move_it_in_display_line): Account for word wrap, so
5437         that we don't move off the line.
5439 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
5441         * keyboard.c (Qsuper): Remove.
5442         (parse_menu_item): Don't call where_is_internal specially for NS.
5444 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
5446         * s/gnu-linux.h: Remove boilerplate comments.
5448         * m/alpha.h (__ELF__): Consolidate conditions.
5450         * m/m68k.h (linux): Use GNU_LINUX instead.
5451         Remove boilerplate comments.
5453         * m/intel386.h: Undo refactoring from previous change.
5454         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
5455         too, remove dead code.
5456         (linux): Use GNU_LINUX instead.
5458 2008-07-16  Jason Rumney  <jasonr@gnu.org>
5460         * w32gui.h: Repeat 26 June changes lost by last change.
5462 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
5464         * systty.h: Remove code for Aix on 386, unsupported platform.
5466         * s/ms-w32.h: Remove boilerplate comments.
5467         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
5469         * s/gnu-linux.h (TERM): Remove support.
5470         (HAVE_SYSVIPC): Remove, unused.
5471         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
5472         for this system.
5474         * process.c: Remove support for IRIS, unused.
5475         Remove support for TERM, not relevant anymore.
5477         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
5478         used with the definition.
5480         * s/aix4-2.h (static): Do not undef.
5482         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
5483         only used on Aix.
5484         (HAVE_SYSVIPC): Remove, unused.
5486         * m/hp800.h (CANNOT_DUMP): Do not undef.
5488         * m/alpha.h: Fix comment.
5490         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
5491         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
5492         used by this configuration.
5493         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
5494         * unexec.c: Remove code depending on HPUX and
5495         USG_SHARED_LIBRARIES, not used with this file.  Remove code
5496         depending on IRIS, unused.  Remove if 0-ed code.
5498         * s/template.h: Remove comments about static.
5500         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
5501         Remove if 0-ed code.
5502         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
5503         were the same as the default.
5504         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
5505         Remove boilerplate comments.
5506         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
5507         (HAVE_SYSVIPC): Remove, unused.
5508         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
5510         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5511         Remove boilerplate comments.
5512         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5513         Remove boilerplate comments.
5514         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
5515         Remove boilerplate comments.
5516         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
5518         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
5519         USG systems which do not use DATA_SEG_BITS.
5520         Refactor code.  Remove boilerplate comments.
5522         * m/ibms390.h:
5523         * m/m68k.h:
5524         * s/bsd-common.h:
5525         * s/cygwin.h:
5526         * s/darwin.h:
5527         * s/freebsd.h:
5528         * s/gnu.h:
5529         * s/msdos.h: Remove boilerplate comments.
5531         * m/iris4d.h: Remove boilerplate comments and code for systems that
5532          do not use this file.
5533         (IRIS_4D): Remove, unused.
5535         * m/mips.h: Remove boilerplate comments and code for systems that
5536          do not use this file.
5537         (SIGN_EXTEND_CHAR):
5538         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
5539         * unexmips.c: Remove file, unused.
5541         * editfns.c (Fuser_full_name): Replace the only use of
5542         USER_FULL_NAME with its value.
5543         * config.in: Regenerate.
5545 2008-07-16  David Reitter  <david.reitter@gmail.com>
5547         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
5548         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
5550 2008-07-16  Glenn Morris  <rgm@gnu.org>
5552         * emacs.c (system-type): Doc fix.
5554 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
5556         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
5557         If the cache doesn't work, let's fix it, rather than work around it.
5559 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
5561         * Makefile.in: Correct additions for nsfont.o in last commit.
5562         * nsfont.m: New file (forgot last commit).
5564 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
5566         * callproc.c (set_initial_environment): Initialize
5567         Vprocess_environment under CANNOT_DUMP (fixes crash when
5568         batch-compiling for bootstrap).
5570 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
5571             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5573         (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
5574         fix crash due to different init order.
5576 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
5578         Changes and additions for NeXTstep windowing system (Cocoa and
5579         GNUstep) support.
5581         * Makefile.in:
5582         * config.in: Support defines and build commands for NS port.
5583         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
5584         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
5585         * dispextern.h: Include nsgui.h and add needed typedefs under NS
5586         windowing.
5587         (struct face): Add synth_ital field.
5588         * dispnew.c: Include nsterm.h when compiling under NS windowing.
5589         (init_display): Initialize Vinitial_window_system to "ns" when so
5590         compiled.
5591         * emacs.c: Include GSConfig.h when compiling under GNUstep.
5592         (display_arg): Use under NS.
5593         (main): Under NS, allocate autorelease pool and handle command line
5594         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
5595         (standard_args): Add NS-specific args.
5596         (shut_down_emacs): Shut down NS terminal if compiled under NS.
5597         * font.c (DEFAULT_ENCODING): New variable.
5598         (font_find_for_lface): Use it.
5599         (syms_of_font): Load syms_of_nsfont under NS.
5600         * font.h: Declare nsfont_driver when compiled under NS.
5601         * fontset.c: When compiling under NS, include nsterm.h.
5602         (fontset_from_font): Autoconstruct fontset under NS.
5603         * frame.c (various): Under NS, include nsterm.h, add Qns window system
5604         symbol, document and use it.
5605         (do_switch_frame): When for_deletion under Cocoa, add
5606         Fraise_frame(Qnil).
5607         (x_set_frame_parameters): Ensure font attribute changes are picked up.
5608         (x_get_arg): Allow "yes" and "no" as boolean values.
5609         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
5610         Qright under Cocoa.
5611         (focus-follows-mouse): Default to 0 under NS.
5612         * frame.h (enum output_method): Add output_ns.
5613         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
5614         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
5615         (FRAME_WINDOW_P): NS-specific definition.
5616         * fringe.c (max_used_fringe_bitmap): Make public.
5617         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
5618         (getloadavg): Use NeXT code under descendant OS's.
5619         * image.c (includes and header section, x_create_bitmap_from_data)
5620         (x_create_bitmap_from_file, free_bitmap_record, image_background)
5621         (image_background_transparent, x_clear_image_1)
5622         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5623         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
5624         (x_to_xcolors, x_from_xcolors, x_disable_image)
5625         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
5626         other GUIs, including XPM support using code originally written for
5627         Carbon GUI.
5628         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
5629         using NS API.
5630         (image_ascent): Use font metrics macros instead of direct struct field
5631         access.
5632         * keyboard.c (includes): Add nsterm.h when compiling under NS.
5633         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
5634         Also, handle NS as GTK for menu bar purposes.
5635         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
5636         toolkit where they differ.
5637         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
5638         use cachelist, still needed under NS.
5639         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
5640         (struct widget_value): Define it here for menu.c.
5641         * keymap.c (includes): Include modifier internals.
5642         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
5643         NS.
5644         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
5645         support for preferring sequences using certain modifiers, specified by
5646         the FIRSTONLY argument.
5647         * lisp.h (hash_remove): Rename to avoid name clash when compiling
5648         under NS GNUstep implementation.
5649         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
5650         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
5651         * menu.c: Include nsterm.h under NS.
5652         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
5653         (free_menubar_widget_tree_value, update_submenu_strings)
5654         (find_and_call_menu_selection): Treat NS as X and NT.
5655         (find_and_return_menu_selection): New function, used for popup menus.
5656         * nsgui.h:
5657         * nsterm.h:
5658         * nsfns.m:
5659         * nsimage.m:
5660         * nsmenu.m:
5661         * nsselect.m:
5662         * nsterm.m: New files.
5663         * process.c (wait_reading_process_output): Under NS, call ns_select()
5664         instead of plain select().
5665         * syntax.c (char_quoted): Under NS, avoid a crash when called near
5666         beginning of buffer.
5667         * sysselect.h (init_process): Rename when compiling under Cocoa to
5668         avoid name conflict.
5669         * termhooks.h (display_info): Add ns_display_info to union.
5670         * terminal.c (Fterminal_live_p): Add ns to terminal types.
5671         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
5672         COCOA environment.
5673         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
5674         unexec() signature.  (Note, this will dump, but the resulting file
5675         crashes; unexosx is used instead; keeping around for reference and
5676         possible aid in getting dump working under GNUstep.)
5677         * w32gui.h (button_type, widget_value): Remove definitions (now in
5678         keyboard.h).
5679         * window.c: Include nsterm.h when compiling under NS.
5680         * xdisp.c (includes): Include nsterm.h when compiling under NS.
5681         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
5682         other GUI windowing systems.
5683         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
5684         GTK.
5685         (x_consider_frame_title): Under NS, set icon type and frame
5686         modified-state indicator; use ns_set_name_as_filename() when using
5687         formatted title.
5688         (update_window_cursor): Make public when compiling under NS.
5689         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
5690         (hourglass_atimer, Vhourglass_delay
5691         * xfaces.c (header section, init_frame_faces, clear_font_table)
5692         (defined_color, unload_color, x_face_list_fonts)
5693         (prepare_face_for_display): Add NS support parallel to other GUIs.
5694         Emulate GCs like other non-X GUIs.
5695         (split_font_name): Don't lowercase font name under NS.
5696         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
5697         under NS.
5698         * s/darwin.h: Add support for compilation under NS.
5700 2008-07-15  Jason Rumney  <jasonr@gnu.org>
5702         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
5703         (w32_show_hourglass): Rename from show_hourglass.
5704         (w32_hide_hourglass): Rename from hide_hourglass.
5705         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
5706         (Vhourglass_delay): Declare extern.
5707         (hourglass_started): Remove.
5709         * xdisp.c (Vhourglass_delay): Remove static.
5710         (hourglass_started, start_hourglass, cancel_hourglass):
5711         Don't include these versions on WINDOWSNT.
5713 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
5715         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
5716         variables (formerly in xfns.c).
5717         (show_hourglass, hide_hourglass): New prototypes (same).
5718         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
5719         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
5720         in xfns.c).
5721         (syms_of_xdisp): Declare/initialize display-hourglass,
5722         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
5723         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
5724         formerly in xfns.c.
5725         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5726         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5727         (start_hourglass, cancel_hourglass): Remove.
5728         (show_hourglass, hide_hourglass): Remove prototypes and static
5729         modifiers.
5730         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
5731         hourglass_atimer, hourglass_shown_p declaration/initialization.
5732         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
5733         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
5734         (start_hourglass, cancel_hourglass): Remove.
5735         (show_hourglass, hide_hourglass): Remove prototypes and static
5736         modifiers.
5737         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
5738         hourglass_atimer, hourglass_shown_p declaration/initialization.
5739         * w32fns.c (display_hourglass_p, Vhourglass_delay)
5740         (DEFAULT_HOURGLASS_DELAY): Remove.
5741         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
5742         hourglass_shown_p declaration/initialization.
5744 2008-07-14  Jason Rumney  <jasonr@gnu.org>
5746         * w32fns.c (w32_get_arg): Remove wrapper function.
5747         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
5748         directly.
5749         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
5751 2008-07-14  Kenichi Handa  <handa@m17n.org>
5753         * xfont.c (xfont_open): Add workaround for X's bug.
5755 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
5757         * fontset.c: Include <stdio.h> unconditionally.
5759 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
5761         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
5762         for filtering.
5764 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
5766         * s/vms.h: Use __GNUC__ instead of _GNUC_.
5768         * m/macppc.h:
5769         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
5771         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
5772         (SPECIAL_EMACS_INT):
5773         * m/ia64.h (SPECIAL_EMACS_INT):
5774         * m/amdx86-64.h (SPECIAL_EMACS_INT):
5775         * s/gnu.h (NLIST_STRUCT):
5776         * s/aix4-2.h (X11R5_INHIBIT_I18N):
5777         * s/gnu-linux.h (LINUX):
5778         * s/msdos.h (HAVE_FACES):
5779         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
5781         * systty.h:
5782         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
5783         anymore.
5785 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
5787         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
5788         always defined as int.
5790         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
5791         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
5792         * s/gnu-linux.h (HAVE_WAIT_HEADER):
5793         * s/freebsd.h (HAVE_WAIT_HEADER):
5794         * s/bsd-common.h (HAVE_UNION_WAIT):
5795         * s/aix4-2.h (HAVE_WAIT_HEADER):
5796         * m/mips.h (HAVE_UNION_WAIT):
5797         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
5798         (COFF, static): Do not define, they are undefined later in the file.
5800         * process.c (update_status): Don't use a union.
5801         (status_convert):
5802         (sigchld_handler): Use int instead of WAITTYPE.
5804 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
5806         * indent.c (Fvertical_motion): Restore hscroll before moving to
5807         goal column.
5809 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
5811         * lisp.h: Remove left over code.
5813 2008-07-11  Andreas Schwab  <schwab@suse.de>
5815         * lisp.h: Fix logic in last change.
5817         * menu.h: New file.
5818         * menu.c: Include it.
5819         * xmenu.c: Likewise.
5820         * Makefile.in: Update dependencies.
5822 2008-07-11  Kenichi Handa  <handa@m17n.org>
5824         * fontset.c (fontset_from_font): Cancel the previous change.
5826 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
5828         * lisp.h:
5829         * w32heap.c:
5830         * emacs.c:
5831         * alloc.c: Replace all references of NO_UNION_TYPE with
5832         USE_LISP_UNION_TYPE.
5834         * m/xtensa.h (NO_UNION_TYPE):
5835         * m/vax.h (NO_UNION_TYPE):
5836         * m/template.h (NO_UNION_TYPE):
5837         * m/sparc.h (NO_UNION_TYPE):
5838         * m/mips.h (NO_UNION_TYPE):
5839         * m/macppc.h (NO_UNION_TYPE):
5840         * m/m68k.h (NO_UNION_TYPE):
5841         * m/iris4d.h (NO_UNION_TYPE):
5842         * m/intel386.h (NO_UNION_TYPE):
5843         * m/ibms390x.h (NO_UNION_TYPE):
5844         * m/ibms390.h (NO_UNION_TYPE):
5845         * m/ibmrs6000.h (NO_UNION_TYPE):
5846         * m/ia64.h (NO_UNION_TYPE):
5847         * m/hp800.h (NO_UNION_TYPE):
5848         * m/arm.h (NO_UNION_TYPE):
5849         * m/amdx86-64.h (NO_UNION_TYPE):
5850         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
5851         defining it the same.
5853 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
5855         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
5857 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
5859         * fileio.c:
5860         * sysdep.c
5861         * systty.h:
5862         * m/ibmrs6000.h:
5863         * m/iris4d.h:
5864         * s/aix4-2.h:
5865         * s/freebsd.h:
5866         * s/gnu-linux.h:
5867         * s/hpux10-20.h:
5868         * s/hpux11.h:
5869         * s/netbsd.h:
5870         * s/sol2-3.h:
5871         * s/sol2-4.h:
5872         * s/sol2.h:
5873         * s/usg5-4.h:
5874         * s/vms.h: Remove references to unused variables.
5876 2008-07-10  Andreas Schwab  <schwab@suse.de>
5878         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
5879         pattern before matching the generic family.
5881 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
5883         * unexec.c:
5884         * s/vms.h:
5885         * s/usg5-4-2.h:
5886         * s/sol2-5.h:
5887         * s/freebsd.h:
5888         * s/darwin.h: Remove dead code.
5890         * m/template.h:
5891         * m/sparc.h:
5892         * m/mips.h:
5893         * m/m68k.h:
5894         * m/iris4d.h:
5895         * m/intel386.h:
5896         * m/ibms390x.h:
5897         * m/ibms390.h:
5898         * m/ia64.h:
5899         * m/hp800.h:
5900         * m/arm.h:
5901         * m/amdx86-64.h: Remove dead code and references to unused
5902         and compiler defined symbols.
5904         * unexmips.c:
5905         * unexelf.c: Remove references to desupported systems.
5907         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
5909         * m/powermac.h: Remove boilerplate comments.
5910         (NO_REMAP): Remove unused definition.
5912         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
5913         define them.
5915 2008-07-10  Kenichi Handa  <handa@m17n.org>
5917         * xfont.c (xfont_open): Log the reason of failure.
5919 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
5921         * fontset.c (fontset_get_font_group):
5922         * font.c (font_check_otf): Specify argument types.
5924 2008-07-09  Kenichi Handa  <handa@m17n.org>
5926         * coding.c (detect_coding_utf_8): Set detect_info->found only when
5927         non-ASCII char is found.
5929         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
5930         (reorder_font_vector): Change the arg preferred_family to font.
5931         Prefer the spec matching with font.
5932         (fontset_get_font_group): New function.
5933         (fontset_find_font): Change the format of an element of a realized
5934         fontset.  Use fontset_get_font_group.
5935         (fontset_font): Try the current fontset, the default fontset, the
5936         fallbacks of the current fontset, and the fallbacks of the default
5937         fontset in this order.
5938         (face_for_char): Delete the shortcut to use the current font.
5939         (fontset_from_font): Don't set fonts for Latin in the fontset.
5941         * font.h (font_make_object, font_match_p): Adjust prototypes.
5943         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
5945         * font.c (font_make_object): New arg entity and pixelsize.
5946         (font_check_otf_features, font_check_otf): New functions.
5947         (font_match_p): Check :lang, :script, and :otf properties.
5949         * xfont.c (xfont_open): Adjust it for the change of
5950         font_make_object.
5951         (xfont_text_extents): Fix initial setting of metrics.
5953         * ftfont.c (struct ftfont_info): New member index, delete member
5954         fc_charset_idx.  Make the member order compatible with struct
5955         xftfont_info.
5956         (fc_charset_table): Change charset names to registry names.
5957         (ftfont_pattern_entity): Delete the args registry and
5958         fc_charset_idx.  Change the value of :font-entity property
5959         to (FONTNAME . INDEX).  Always set :registry property to
5960         `iso10646-1'.
5961         (struct ftfont_cache_data): New struct.
5962         (ftfont_lookup_cache): New arg for_face.
5963         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
5964         (ftfont_driver): Set the member otf_capability.
5965         (ftfont_get_charset): Adjust it for the change of
5966         fc_charset_table.
5967         (OTF_TAG_SYM): New macro.
5968         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
5969         for the change of fc_charset_table.
5970         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
5971         ftfont_pattern_entity.  Add FC_INDEX to objset.
5972         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
5973         and ftfont_pattern_entity.
5974         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
5975         font_make_object, struct ftfont_info.
5976         (ftfont_has_char): Use ftfont_get_fc_charset.
5977         (ftfont_otf_features, ftfont_otf_capability): New functions.
5978         (ftfont_shape): Use ftfont_get_otf.
5979         (ftfont_text_extents): Fix initial setting of metrics.
5981         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
5982         member order compatible with struct ftfont_info.
5983         (xftfont_open): Add FC_CHARSET to the pattern.  Set
5984         xftfont_info->ft_size.  Don't unlock the face.  Check BDF
5985         properties if appropriate.
5986         (xftfont_close): Unlock the face.
5987         (xftfont_anchor_point, xftfont_shape): Deleted.
5988         (syms_of_xftfont): Don't set members anchor_point and shape of
5989         xftfont_driver.
5991         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
5992         font_make_object.
5994         * w32font.c (w32font_open): Adjust it for the change of
5995         font_make_object.
5996         (w32font_open_internal): Don't set properties of font_object here.
5998 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
6000         * macfns.c (x_create_tip_frame):
6001         * w32fns.c (x_create_tip_frame):
6002         * xfns.c (x_create_tip_frame): Pass parameter argument to
6003         face-set-after-frame-default.
6005         * xfaces.c (Finternal_merge_in_global_face): Save merged
6006         attributes for the default face back into the face vector.
6008 2008-07-08  Andreas Schwab  <schwab@suse.de>
6010         * fontset.h: Declare fontset_from_font.  Don't declare
6011         new_fontset_from_font and fontset_from_font_name.
6012         * xterm.c: Include "fontset.h".
6013         * Makefile.in (xterm.o): Update dependencies.
6015 2008-07-08  Glenn Morris  <rgm@gnu.org>
6017         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
6018         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6020 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
6022         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6023         (x_set_frame_parameters): Don't bind it.
6025 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
6027         * w32fns.c (map_w32_filename): Declare extern.
6029 2008-07-07  Jason Rumney  <jasonr@gnu.org>
6031         * w32term.c (WS_EX_LAYERED): Define if not already.
6033 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
6035         * xfaces.c (set_font_frame_param): Don't try to set the font
6036         parameter if it is still unspecified in the lface.
6038 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
6040         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6041         face if it didn't already exist.
6043         * xdisp.c (try_window_id): Give up if word-wrapping is on.
6045 2008-07-05  Andreas Schwab  <schwab@suse.de>
6047         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6049 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
6051         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6052         word-wrapping.
6053         (IT_DISPLAYING_WHITESPACE): New macro.
6054         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6055         when word-wrapping.  Simplify word-wrapping logic.  Use correct
6056         pixel positions when saving copies of the iterator.
6057         (display_line): Use proper wrap point if the last character on a
6058         line was preceded by whitespace.
6060 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
6062         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6064 2008-07-04  Kenichi Handa  <handa@m17n.org>
6066         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6068         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6070 2008-07-02  Jason Rumney  <jasonr@gnu.org>
6072         * xfns.c (syms_of_xfns): Only define x-select-font when both
6073         HAVE_FREETYPE and USE_GTK.
6075         * xdisp.c (next_element_from_display_vector): Move assignment out
6076         of if statement.
6078 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
6080         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6082         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6083         (syms_of_fileio): Initialize and export them.
6084         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6086         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6087         (Fsystem_move_file_to_trash): New function.
6088         (syms_of_w32fns): Export it to lisp.
6090 2008-07-01  Jason Rumney  <jasonr@gnu.org>
6092         * w32font.c (w32font_text_extents): Don't count overhang as part
6093         of width.
6095 2008-06-30  Miles Bader  <miles@gnu.org>
6097         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6098         Add `avoid_cursor_p' field.
6100         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6101         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6102         (append_glyph, append_composite_glyph, produce_image_glyph)
6103         (append_stretch_glyph): Initialize avoid_cursor_p.
6104         (get_it_property): Rename from `get_line_height_property'.
6105         (x_produce_glyphs): Use get_it_property.
6106         (handle_line_prefix, push_display_prop): New functions.
6107         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6108         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6109         New variables.
6110         (syms_of_xdisp): Initialize them.
6112 2008-06-30  Kenichi Handa  <handa@m17n.org>
6114         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6115         XftDefaultSubstitute (they are called in XftFontMatch).
6116         (xftfont_open): Fix args to ftfont_font_format.
6118         * ftfont.c (fc_charset_table): New member lang.
6119         (ftfont_resolve_generic_family): New arg pattern.
6120         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
6121         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6122         (ftfont_open): Fix args to ftfont_font_format.
6123         (ftfont_font_format): New arg filename.
6125 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
6127         * xfaces.c (Finternal_merge_in_global_face): If default face was
6128         modified, realize it again.  Update the font face attribute.
6130 2008-06-29  Jason Rumney  <jasonr@gnu.org>
6132         * w32term.c (x_set_frame_alpha): Fix logic.
6134 2008-06-29  Kenichi Handa  <handa@m17n.org>
6136         * fontset.c (Finternal_char_font): Return font-object instead of
6137         font-name.
6139         * composite.c (get_composition_id): Fix the width calculation for TAB.
6141 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
6143         * indent.c (Fvertical_motion): Properly handle float column arg.
6145 2008-06-28  Jason Rumney  <jasonr@gnu.org>
6147         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6148         (pfnSetLayeredWindowAttributes): New function pointer.
6149         (w32_initialize): Initialize it when supported.
6150         (x_set_frame_alpha): New function.
6152         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6153         (w32_frame_parm_handlers): Set alpha handler.
6155         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6157 2008-06-27  Jason Rumney  <jasonr@gnu.org>
6159         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6160         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6161         (w32_to_x_charset, x_to_w32_charset)
6162         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6163         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6164         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6165         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6166         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6167         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6168         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6169         (Qw32_charset_unicode): Remove.
6170         (syms_of_w32fns): Update for above changes.
6172         * w32font.c (w32_to_x_charset, x_to_w32_charset)
6173         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6174         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6175         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6176         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6177         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6178         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6179         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6180         (syms_of_w32font): Update for above changes.
6182 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
6184         * s/usg5-4.h: Fix previous change: keep the correct branch of a
6185         removed #if.
6186         (USG_SHARED_LIBRARIES): Remove duplicate definition.
6188 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
6189             Eli Zaretskii  <eliz@gnu.org>
6191         * makefile.w32-in (LOCAL_FLAGS):
6192         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6194         * sysdep.c (_spawnlp, _getpid):
6195         Declare with explicit _cdecl instead of _CRTAPI1.
6197         * editfns.c (Fget_internal_run_time):
6198         Check for WINDOWSNT with #ifdef, not #if.
6200 2008-06-26  Jason Rumney  <jasonr@gnu.org>
6202         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6204         * w32term.c (x_draw_glyph_string_foreground)
6205         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6206         Use FONT_HANDLE macro.
6207         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6209         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6210         (uniscribe_encode_char): Use FONT_HANDLE macro.
6212         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6213         (w32font_text_extents): Use precast w32_font.
6214         (w32font_close): Free cached metrics.
6215         (w32font_open_internal): Allocate space for name on stack.
6217 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
6219         * xdisp.c (extend_face_to_end_of_line): Fix last change.
6221 2008-06-26  Jason Rumney  <jasonr@gnu.org>
6223         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6224         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6226 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
6228         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6230 2008-06-26  Jason Rumney  <jasonr@gnu.org>
6232         * w32bdf.c, w32bdf.h: Remove obsolete files.
6234         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6236         * w32gui.h: Don't include w32bdf.h.
6237         (XCharStruct, enum w32_char_font_type, W32FontStruct):
6238         Remove obsolete font support.
6240         * w32font.h (struct w32font_info): Remove compat_w32_font.
6241         Add hfont member.
6242         (FONT_COMPAT): Remove obsolete macro.
6244         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
6245         (w32font_encode_char, w32font_text_extents): Use new hfont member.
6246         (w32font_open_internal): Remove compat code.  Set new hfont member.
6247         (Fx_select_font): Use new hfont member.
6249         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6250         (uniscribe_encode_char): Use new hfont member.
6252         * w32term.c (x_draw_glyph_string_foreground)
6253         (x_draw_composite_glyph_string_foreground): Use new hfont member.
6254         (x_draw_glyph_string): Use metrics in w32font_info.
6256 2008-06-26  Kenichi Handa  <handa@m17n.org>
6258         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6260 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
6262         * unexnext.c:
6263         * m/ews4800.h:
6264         * m/hp9000s300.h:
6265         * m/ibm370aix.h:
6266         * m/mips-siemens.h:
6267         * m/ncr386.h:
6268         * m/next.h:
6269         * m/pmax.h:
6270         * m/powerpcle.h:
6271         * m/tandem-s2.h:
6272         * s/386bsd.h:
6273         * s/bsd386.h:
6274         * s/bsd4-1.h:
6275         * s/bsd4-2.h:
6276         * s/bsdos2-1.h:
6277         * s/bsdos2.h:
6278         * s/bsdos3.h:
6279         * s/bsdos4.h:
6280         * s/nextstep.h:
6281         * s/ultrix4-3.h:
6282         * s/usg5-0.h:
6283         * s/usg5-2-2.h:
6284         * s/usg5-2.h:
6285         * s/usg5-4-3.h:
6286         * s/ux4800.h:
6287         * s/uxpds.h:
6288         * s/uxpv.h: Remove support for obsolete systems.
6289         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
6290         Remove, insert contents in s/hpux10-20.h.
6291         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
6292         Remove, insert contents in s/aix4-2.h.
6293         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
6294         * s/bsd4-3.h: Rename to ...
6295         * s/bsd-common.h: ... this.
6296         * data.c:
6297         * doc.c:
6298         * ecrt0.c:
6299         * emacs.c:
6300         * fileio.c:
6301         * floatfns.c:
6302         * keyboard.c:
6303         * mem-limits.h:
6304         * print.c:
6305         * process.c:
6306         * sysdep.c:
6307         * syssignal.h:
6308         * systty.h:
6309         * syswait.h:
6310         * term.c:
6311         * unexec.c:
6312         * unexelf.c:
6313         * unexhp9k800.c:
6314         * m/hp800.h:
6315         * m/ibmrs6000.h:
6316         * m/mips.h:
6317         * m/vax.h:
6318         * s/darwin.h:
6319         * s/freebsd.h:
6320         * s/gnu.h:
6321         * s/ms-w32.h:
6322         * s/msdos.h:
6323         * s/netbsd.h:
6324         * s/template.h: Remove references to obsolete variables.
6326         * Makefile.in: Add dependencies for all unexec files.
6327         (admindir): Remove unused variable.
6328         (UNEXEC_SRC): Remove references.
6330 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
6332         * xfns.c (x_default_font_parameter): If Xft is available, first
6333         try Monospace-12 for the default font.
6335 2008-06-25  Jason Rumney  <jasonr@gnu.org>
6337         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
6339 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
6341         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
6343         * buffer.c (syms_of_buffer): Remove default-word-wrap.
6345 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
6347         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
6348         <scroll-conservatively>: Fix typo in docstring.
6350         * xselect.c (Fx_send_client_event): Doc fix.
6352 2008-06-25  Kenichi Handa  <handa@m17n.org>
6354         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
6356         * font.c (font_parse_fcname): Remove unused variables.
6357         (font_sort_entites): Delete the arg SPEC.  Caller changed.
6358         Fix for the case of ! best_only.
6359         (font_delete_unmatched): Check DPI and AVGWIDTH too.
6361         * lisp.h (Fstring_to_unibyte): EXFUN it.
6363         * character.h (str_to_unibyte): Extern it.
6365         * character.c (str_to_unibyte): New function.
6367         * fns.c (Fstring_to_unibyte): New function.
6368         (syms_of_fns): Defsubr it.
6370 2008-06-24  Kenichi Handa  <handa@m17n.org>
6372         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
6373         DPI too.
6374         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
6376 2008-06-24  Andreas Schwab  <schwab@suse.de>
6378         * Makefile.in (${lispsource}loaddefs.el): Rename from
6379         ../lisp/loaddefs.el.
6380         (bootstrap-clean): Do what distclean does but don't remove
6381         Makefile.
6382         (distclean): Depend on bootstrap-clean and remove Makefile.
6384 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
6386         * buffer.h (struct buffer): New member word_wrap.
6388         * buffer.c (syms_of_buffer): New variables default-word-wrap and
6389         word-wrap.
6390         (init_buffer_once): Initialize them.
6392         * dispextern.h (struct it): Replace bool truncate_lines_p with a
6393         line_wrap enum possessing three possible values.
6395         * termopts.h: Replace truncate_partial_width_windows with
6396         Vtruncate_partial_width_windows.
6398         * dispnew.c (direct_output_for_insert): Avoid direct output when
6399         inserting a space with word wrap on.
6401         * indent.c (compute_motion): Obey integer values of
6402         truncate-partial-width-windows.
6404         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
6405         replacing truncate_partial_width_windows.
6406         (init_iterator): If Vtruncate_partial_width_windows is an integer,
6407         truncate only if the window width is below that integer.
6408         (start_display, resize_mini_window, produce_stretch_glyph)
6409         (display_string, move_it_in_display_line_to): Use line_wrap.
6410         (back_to_previous_visible_line_start, reseat_1): Reset
6411         string_from_display_prop_p.
6412         (display_line): Extend default face to end of line when wrapping.
6414 2008-06-24  Kim F. Storm  <storm@cua.dk>
6416         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
6417         to wrap continued lines at word boundaries.
6419 2008-06-24  Jason Rumney  <jasonr@gnu.org>
6421         * font.c (Ffont_face_attributes): Multiply pixel size before point
6422         conversion to avoid multiplying rounding error.
6424 2008-06-23  Jason Rumney  <jasonr@gnu.org>
6426         * w32term.c (x_draw_glyph_string_background)
6427         (x_draw_glyph_string): Remove old bdf font code.
6429         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
6431 2008-06-22  Kenichi Handa  <handa@m17n.org>
6433         * font.c (font_find_for_lface): Try the adstyle specified in
6434         the property of LFACE_FONT of LFACE (if any).
6436 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
6437             Ryo Yoshitake  <ryo@shiftmode.net>
6439         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
6441 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
6443         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
6444         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
6445         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
6446         (witness-emacs): Remove.
6447         (lisp, shortlisp): Move loaddefs.el earlier.
6448         (mostlyclean): Forget about witness-emacs.
6450 2008-06-22  Glenn Morris  <rgm@gnu.org>
6452         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
6453         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
6455 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
6457         * Makefile.in (PRECOMP): Remove.
6458         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
6459         (witness-emacs): Run `compile-first'.
6460         (.el.elc): Use the new compile-onefile target.
6462 2008-06-21  Kenichi Handa  <handa@m17n.org>
6464         * xftfont.c (xftfont_open): Handle QCembolden only when
6465         FC_EMBOLDEN is defined.
6467 2008-06-21  Andreas Schwab  <schwab@suse.de>
6469         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
6470         (.el.elc): Likewise.
6472 2008-06-21  Miles Bader  <miles@gnu.org>
6474         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
6475         build dir, not the lisp source dir.
6477 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
6479         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
6480         (bootstrapclean): Remove.
6481         (.el.elc): New rule.
6482         (PRECOMP): New var.
6483         (../lisp/subdirs.el): Remove.
6484         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
6485         (witness-emacs): New target.
6486         (mostlyclean): Remove witness-emacs as well.
6487         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
6488         Add witness-emacs dependency.
6490 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
6492         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
6493         defined by the font.
6495 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
6497         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
6498         (bootstrap-clean): New target that keeps TAGS around.
6499         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
6500         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
6502 2008-06-20  Jason Rumney  <jasonr@gnu.org>
6504         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
6505         Remove obsolete font code.
6507         * w32font.c (font_matches_spec): Use csb bitfield from font signature
6508         to determine language support.
6510 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
6512         * sysdep.c (cfsetspeed): New fun extracted from the code.
6513         (cfmakeraw): Move before first use.
6515 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
6517         * sysdep.c (cfmakeraw): Provide fallback implementation.
6518         (serial_configure): Provide fallback implementation of cfsetspeed.
6520 2008-06-20  Kenichi Handa  <handa@m17n.org>
6522         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
6523         the pattern.
6525         * fontset.c (fontset_from_font): Copy font_spec before changing
6526         the elements.
6528         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
6530 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
6532         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
6533         for explicit `font' parameters.
6535         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
6537 2008-06-19  Kenichi Handa  <handa@m17n.org>
6539         * frame.c: Include <ctype.h>.
6540         (x_set_font_backend): Allow spacing characters in the X resource
6541         for FontBackend.
6543 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
6545         * w32fns.c, xfns.c (Qfont_param): New var.
6546         (syms_of_w32fns): Initialize it.
6547         (x_default_font_parameter): Record explicit `font' into
6548         `font-parameter'.
6550 2008-06-18  Kenichi Handa  <handa@m17n.org>
6552         * font.c (font_parse_xlfd): Fix previous change.
6553         (font_parse_fcname): Don't use :fc-unknown-spec.
6554         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
6555         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
6556         (font_add_log): Prepend the driver name to the resulting fonts.
6558         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
6559         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
6560         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
6562         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
6563         (QCembolden): New variables.
6564         (syms_of_xftfont): DEFSYM them.
6565         (xftfont_open): Call XftFontMatch.  Don't trust the result of
6566         XftTextExtents8 if the pixel_size is less than 5.
6568 2008-06-18  Andreas Schwab  <schwab@suse.de>
6570         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
6571         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
6573 2008-06-18  Jason Rumney  <jasonr@gnu.org>
6575         * w32font.c (w32font_list, w32font_match): Add logging.
6577         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
6579 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
6581         * font.c (font_parse_fcname): Store divider characters for
6582         unknown-spec list.  For known key symbols, intern using correct
6583         symbol name.
6585 2008-06-17  Kenichi Handa  <handa@m17n.org>
6587         * xfaces.c (realize_default_face): If the frame is not on window
6588         system, set the fontset of face to nil.
6590 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
6592         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
6594 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
6596         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
6597         (build_font_name_from_vector): Delete externs.
6599         * xfaces.c (struct font_name): Don't declare.
6601 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
6603         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
6605 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
6607         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
6609 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
6611         * font.c (Ffont_spec): Fix usage in docstring.
6612         (Ffont_face_attributes): Doc fix.
6614 2008-06-16  Andreas Schwab  <schwab@suse.de>
6616         * font.c (Ffont_face_attributes): Fix definition.
6618 2008-06-16  Jason Rumney  <jasonr@gnu.org>
6620         * font.h (font_style_symbolic_from_value): Remove.
6622         * font.c (font_style_symbolic_from_value): Remove.
6623         (font_style_symbolic): Revert to pre 2008-06-13 version.
6625         * w32font.c (w32_to_fc_weight): New function.
6626         (w32font_full_name, logfont_to_fcname): Use it.
6628 2008-06-16  Kenichi Handa  <handa@m17n.org>
6630         * font.c (font_check_object): Delete it.
6631         (font_clear_cache): Check if a font-object is alive.
6632         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
6633         font-object to nil.
6634         (font_close_object): Don't check FONT_CLOSE_OBJECT.
6635         (font_at): Don't call font_check_object.
6636         (Ffont_get): Return a symbol for :weight, :slant, and :width.
6638 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
6640         * puresize.h (BASE_PURESIZE): Increase to 1230000.
6642 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
6644         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
6646 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
6648         * font.c (font_parse_fcname): Only one decimal point.
6649         (font_unparse_fcname): Handle data in family and foundry indices
6650         as symbols, not strings.
6651         (font_unparse_gtkname, Ffont_face_attributes): New functions.
6653         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
6655         * font.h (font_unparse_gtkname): Add prototype.
6657 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
6659         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
6661 2008-06-15  Andreas Schwab  <schwab@suse.de>
6663         * font.c (font_update_drivers): Fix crash when no drivers match.
6665 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
6667         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
6668         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
6670 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
6672         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
6674 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6676         * process.c (Fserial_process_configure, Fprocess_send_eof):
6677         Use EQ to compare Lisp_Objects.
6679 2008-06-13  Jason Rumney  <jasonr@gnu.org>
6681         * w32fns.c (Fw32_select_font): Remove old font API function.
6683         * w32font.c (logfont_to_fcname): New function.
6684         (Fx_select_font): New font dialog function compatible with
6685         GTK/fontconfig version.
6687         * font.c (font_style_symbolic_from_value): New function.
6688         (font_style_symbolic): Use it.
6690         * font.h (font_style_symbolic_from_value): Declare new function.
6692 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
6694         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
6695         <font-width-table>: Fix typos in docstrings.
6697 2008-06-13  Daniel Engeler  <engeler@gmail.com>
6699         These changes add serial port access.
6700         * process.c: Add HAVE_SERIAL.
6701         (Fdelete_process, Fprocess_status, Fset_process_buffer)
6702         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
6703         (list_processes_1, select_wrapper, Fstop_process)
6704         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
6705         (status_notify): Modify to handle serial processes.
6706         [HAVE_SERIAL] (Fserial_process_configure)
6707         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
6708         New functions.
6709         * process.h (struct Lisp_Process): Add `type'.
6710         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
6711         New functions.
6712         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
6713         serial ports.
6714         (serial_open, serial_configure): New functions.
6715         * w32.h: Add FILE_SERIAL.
6716         (struct _child_process): Add ovl_read, ovl_write.
6718 2008-06-13  Kenichi Handa  <handa@m17n.org>
6720         * dispextern.h (enum lface_attribute_index): New member
6721         LFACE_FOUNDRY_INDEX.
6723         * font.c (font_score): Delete arg alternate_families.  Check only
6724         weight, slant, width, and size.  Ignore the difference of alias
6725         style symbols.
6726         (font_sort_entites): Adjust for the above change.  Reflect the
6727         order of font-driver to scores.
6728         (font_list_entities): Don't check alternate_familes here.
6729         (font_clear_prop): Handle foundry.
6730         (font_update_lface): Don't parse "foundry-family" form here.
6731         Handle FONT_FOUNDRY_INDEX.
6732         (font_find_for_lface): Likewise.  Handle alternate families here.
6733         If registry is nil, try iso8859-1 and ascii-0.
6734         (font_open_for_lface): Pay attention to size in ENTITY.
6735         (font_open_by_name): Simplify by calling font_load_for_lface.
6736         (free_font_driver_list): Delete it.
6737         (font_update_drivers): Preserve the order of backends.
6738         (syms_of_font): Setting of sort_shift_bits adjusted for the change
6739         of font_score and font_sort_entites.
6740         (font_update_sort_order): Likewise.
6742         * xfaces.c (LFACE_FOUNDRY): New macro.
6743         (check_lface_attrs): Check foundry.
6744         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
6745         (merge_face_vectors): Check foundry.
6746         (merge_face_ref): Likewise.
6747         (Finternal_set_lisp_face_attribute): Likewise.
6748         (x_update_menu_appearance): Likewise.
6749         (Finternal_get_lisp_face_attribute): Likewise.
6750         (lface_hash): Likewise.
6751         (lface_same_font_attributes_p): Likewise.
6752         (x_supports_face_attributes_p): Likewise.
6753         (tty_supports_face_attributes_p): Likewise.
6754         (Finternal_set_alternative_font_family_alist): Intern strings.
6755         (Finternal_set_alternative_font_registry_alist): Downcase strings.
6756         (realize_default_face): Set LFACE_FOUNDRY (lface).
6758         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
6759         font-driver at first.
6761         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
6763 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
6765         * lread.c (Fload): Use xfree, not free on saved_doc_string.
6767 2008-06-12  Jim Meyering  <meyering@redhat.com>
6769         Make unexec_free handle NULL the same way free does.
6770         * unexmacosx.c (unexec_free): Ignore a NULL argument.
6772 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
6774         * character.h (CHAR_TO_BYTE_SAFE): New macro.
6775         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
6776         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
6777         (WEAK_ALIAS): Simplify.
6778         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
6779         when searching a unibyte buffer.
6781 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
6783         * xfns.c (Fx_select_font): Rename from x-font-dialog.
6785 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
6787         * w32font.c: Include ctype.h.
6789 2008-06-11  Jason Rumney  <jasonr@gnu.org>
6791         * w32font.c (w32font_encode_char): Detect missing glyphs that are
6792         misreported as space.
6793         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
6794         as aliases for registry iso10646-1.
6796 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
6798         * buffer.c (clone_per_buffer_values): Skip `name'.
6800 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
6802         * font.c (font_parse_fcname): Fix last change; accept decimal
6803         points in font size.
6805 2008-06-10  Jason Rumney  <jasonr@gnu.org>
6807         * w32uniscribe.c (add_opentype_font_name_to_list):
6808         Skip non unicode fonts.
6810 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
6812         * xfns.c (Fx_font_dialog): New function.
6814         * gtkutil.c (xg_dialog_response_cb): Rename from
6815         xg_file_response_callback.
6816         (pop_down_dialog): Rename from pop_down_file_dialog.
6817         (xg_get_file_name): Callers changed.
6818         (xg_get_font_name): New function.
6820         * gtkutil.h (xg_get_font_name): Insert prototype.
6822 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
6824         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
6825         x_underline_minimum_display_offset.
6826         (syms_of_xdisp): Declare it here rather than in xterm.c.
6827         * dispextern.h (underline_minimum_offset): Declare it.
6828         * w32term.c (x_draw_glyph_string): Use it.
6829         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
6830         (syms_of_xterm): Don't declare it any more.
6831         (x_draw_glyph_string): Adjust to the new name.
6833 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>  (tiny change)
6835         * xterm.c (x_underline_minimum_display_offset): New var.
6836         (x_draw_glyph_string): Use it.
6837         (syms_of_xterm): Declare it.
6839 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
6841         * font.c (font_parse_fcname): Accept GTK-style font names too.
6843 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
6845         * dired.c (file_name_completion): Don't return t if the match is exact
6846         but with different capitalization.
6847         * minibuf.c (Ftry_completion): Simplify.
6849         * window.c (Vwindow_point_insertion_type): New var.
6850         (set_window_buffer): Use it.
6851         (syms_of_window): Init and export it to Lisp.
6853 2008-06-10  Kenichi Handa  <handa@m17n.org>
6855         * font.h (font_intern_prop): Prototype adjusted.
6857         * font.c (font_intern_prop): New arg force_symbol.
6858         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
6859         Adjust for the change of font_intern_prop.
6861         * ftfont.c (ftfont_pattern_entity):
6862         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
6863         (w32_registry):
6864         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
6865         the change of font_intern_prop.
6867 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
6869         * w32menu.c (digest_single_submenu): Declare extern.
6871 2008-06-09  Jason Rumney  <jasonr@gnu.org>
6873         * w32term.c (x_make_frame_visible): Use alternate restore flags.
6875         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
6876         (parse_single_submenu): Remove.
6877         (digest_single_submenu): Remove.
6878         (syms_of_w32menu): Don't initialise variables that have moved
6879         to menu.c.
6880         (set_frame_menubar): Sync with version in xmenu.c.
6881         (w32_menu_show): Sync with xmenu_show in xmenu.c.
6883         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
6884         Make static again.
6886 2008-06-09  Jason Rumney  <jasonr@gnu.org>
6888         Changes to w32 files related to the move of common menu code
6889         to menu.c on 2008-06-08 by Chong Yidong.
6891         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
6892         defs to w32gui.h.
6893         (single_keymap_panes, push_menu_item, push_menu_pane):
6894         Make globally visible.
6896         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
6897         (local_free, malloc_widget_value, free_widget_value)
6898         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
6899         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
6900         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
6901         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
6902         (menu_items, menu_items_allocated, menu_items_used)
6903         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
6904         (init_menu_items, finish_menu_items, discard_menu_items)
6905         (grow_menu_items, push_submenu_start, push_submenu_end)
6906         (push_left_right_boundary, push_menu_pane, push_menu_item)
6907         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
6908         (free_menubar_widget_tree_value, parse_single_submenu)
6909         (update_submenu_strings): Remove functions.
6910         (xmalloc_widget_value): Remove and declare extern.
6912         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
6913         (OBJ1): Build it.
6915         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
6916         (local_heap, local_alloc, local_free, malloc_widget_value)
6917         (free_widget_value): Define here.
6919 2008-06-09  Kenichi Handa  <handa@m17n.org>
6921         * font.h (Qascii_0): Extern it.
6923         * font.c (Qascii_0): New variable.
6924         (syms_of_font): DEFSYM it.
6925         (font_open_by_name): If the registry "iso8859-1" fails, try also
6926         "ascii-0".
6928         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
6930 2008-06-08  Kenichi Handa  <handa@m17n.org>
6932         * .gdbinit (xfont): New command.
6934 2008-06-08  Andreas Schwab  <schwab@suse.de>
6936         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
6937         * Makefile.in (menu.o): Update dependencies.
6939         * Makefile.in (obj): Always add menu.o.
6940         * emacs.c (main): Always call syms_of_menu.
6941         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
6943 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
6945         * Makefile.in: Compile menu.c.
6947         * lisp.h: Declare syms_of_menu.
6949         * emacs.c (main): Call syms_of_menu.
6951         * keyboard.h: Relocate platform-independent menu definitions from
6952         xmenu.c.
6954         * menu.c: New file.  Relocate platform-independent menu
6955         definitions from xmenu.c.  Suggested by Adrian Robert.
6957         * xmenu.c: Remove platform-independent menu definitions.
6958         (menu_items menu_items_inuse, menu_items_allocated)
6959         (menu_items_used, menu_items_n_panes)
6960         (menu_items_submenu_depth): Move to keyboard.h.
6961         (init_menu_items, finish_menu_items, unuse_menu_items)
6962         (discard_menu_items, restore_menu_items, save_menu_items)
6963         (grow_menu_items, push_submenu_start, push_submenu_end)
6964         (push_left_right_boundary, push_menu_pane, push_menu_item)
6965         (keymap_panes, single_keymap_panes, single_menu_item)
6966         (list_of_panes, list_of_items, find_and_call_menu_selection)
6967         (xmalloc_widget_value, free_menubar_widget_value_tree)
6968         (parse_single_submenu, digest_single_submenu)
6969         (update_submenu_strings): Move to menu.c.
6971 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
6973         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
6975 2008-06-06  Miles Bader  <miles@gnu.org>
6977         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
6978         face, not frame default.
6980 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
6982         * window.c (pop_up_windows, pop_up_frames)
6983         (display_buffer_reuse_frames, Vpop_up_frame_function)
6984         (Vdisplay_buffer_function, Veven_window_heights)
6985         (Vspecial_display_buffer_names, Vspecial_display_regexps)
6986         (Vspecial_display_function, Vsame_window_buffer_names)
6987         (Vsame_window_regexps, split_height_threshold)
6988         (Vsplit_window_preferred_function): Move those vars to window.el.
6989         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
6990         (Fdisplay_buffer): Move those functions to window.el.
6991         (syms_of_window): Remove corresponding declarations.
6992         (display_buffer): New function.
6993         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
6994         * dispnew.c (Flast_nonminibuf_frame): New function.
6995         * buffer.c (Fpop_to_buffer): Move to window.el.
6997 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
6999         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7001 2008-06-05  Kenichi Handa  <handa@m17n.org>
7003         * coding.c (detect_coding): Fix previous change.
7004         (detect_coding_system): Likewise.
7006 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
7008         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7010         * keymap.c (Vminibuffer_local_filename_must_match_map):
7011         Rename from Vminibuffer_local_must_match_filename_map.
7012         (syms_of_keymap):
7013         * minibuf.c (Fcompleting_read): Adjust accordingly.
7014         * commands.h: Rename declaration as well.
7016 2008-06-05  Kenichi Handa  <handa@m17n.org>
7018         * font.c (Ffont_spec): Don't use font_parse_family_registry for
7019         family name.
7020         (Ffont_put): Likewise.
7022         * fontset.c (fontset_find_font): Call font_open_for_lface with the
7023         current font-spec.
7025         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7026         is unspecified.
7028         * xfaces.c (realize_x_face): If the font-related face attributes
7029         are the same as those of default face, realize a new fontset from
7030         default->fontset.
7031         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7033 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
7035         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7036         (move_it_in_display_line): New wrapper.
7038         * window.c (window_scroll_pixel_based_preserve_x)
7039         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7040         (window_scroll_pixel_based, window_scroll_line_based):
7041         Use them to preserve column positions.
7042         (syms_of_window): Initialize them.
7044         * indent.c (Fvertical_motion): Extend first arg to allow passing an
7045         (HPOS . VPOS) pair.
7047         * dispextern.h (move_it_in_display_line): Declare.
7049 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
7051         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7052         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
7053         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
7055 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
7057         * window.c (Fset_window_parameter): Doc fix.
7058         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7060 2008-06-04  Joakim Verona  <joakim@verona.se>
7062         * window.h (struct window): Add new member window_parameters.
7064         * window.c (Fwindow_parameters, Fwindow_parameter)
7065         (Fset_window_parameter): New defuns.
7066         (syms_of_window): Defsubr the new defuns.
7067         (make_window): Initialize window_parameters to nil.
7069 2008-06-04  John Paul Wallington  <jpw@pobox.com>
7071         * eval.c (Fdefmacro): Doc fix.
7073 2008-06-04  Kenichi Handa  <handa@m17n.org>
7075         * coding.c (detect_coding): Fix handling of coding->head_ascii.
7076         Be sure to call setup_coding_system when we find a proper coding system.
7077         (detect_coding_system): Fix handling of coding->head_ascii.
7079 2008-06-03  Andreas Schwab  <schwab@suse.de>
7081         * font.c (font_prop_validate_spacing): Fix last change.
7083 2008-06-03  Kenichi Handa  <handa@m17n.org>
7085         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7086         (font_parse_fcname): Fix handling of unknown key.
7088         * xfont.c (xfont_list): Try an alias.
7090         * charset.c (char_charset): Return NULL if the arg charset_list is
7091         specified and C doesn't belong to any of them.
7093 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
7095         * font.c (font_pixel_size): Don't take cdr of an integer.
7097 2008-06-02  Jim Meyering  <meyering@redhat.com>
7099         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7100         * alloc.c (xfree): Return right away for a NULL arg.
7101         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7102         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7103         * mac.c (create_apple_event_from_event_ref): Likewise.
7104         (create_apple_event_from_drag_ref, cfstring_create_normalized):
7105         Likewise.
7106         * doprnt.c (doprnt1): Likewise.
7107         * frame.c (frame): Likewise.
7108         * keyboard.c (wipe_kboard): Likewise.
7109         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7110         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7111         * term.c (tty_default_color_capabilities, maybe_fatal)
7112         (delete_tty): Likewise.
7113         * w16select.c (string): Likewise.
7114         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7115         * w32bdf.c (w32_free_bdf_font): Likewise.
7116         * w32fns.c (w32_unload_font): Likewise.
7117         * w32font.c (w32font_close): Likewise.
7118         * window.c (size_window): Likewise.
7119         * xselect.c (receive_incremental_selection): Likewise.
7120         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7121         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7122         * w32.c (stat): Likewise.
7124         Remove useless if-before-free tests.
7125         * editfns.c (Fset_time_zone_rule): Likewise.
7126         * lread.c (nosuffix): Likewise.
7127         * ralloc.c (get_bloc): Likewise.
7128         * regex.c (reg_free): Likewise.
7129         * xftfont.c (xftfont_open, xftfont_close): Likewise.
7130         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7131         * xsmfns.c (smc_save_yourself_CB): Likewise.
7133 2008-06-02  Kenichi Handa  <handa@m17n.org>
7135         * font.c (font_find_for_lface): Handle float font size.
7136         (font_open_for_lface): Likewise.
7138         * xfaces.c (x_supports_face_attributes_p): Check face->font before
7139         comparing the properties.
7141 2008-06-01  Jason Rumney  <jasonr@gnu.org>
7143         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7144         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7145         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7146         Don't add empty script list.
7147         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7149 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
7151         * Makefile.in (dot, dotdot): Remove, update users.
7152         ".." has been used elsewhere in the file for a long time.
7153         (LIBXT_STATIC): Remove conditional based on unused variable.
7155 2008-06-01  Miles Bader  <miles@gnu.org>
7157         * xfaces.c (Vface_remapping_alist): New variable.
7158         (syms_of_xfaces): Initialize it.
7159         (enum named_merge_point_kind): New type.
7160         (struct named_merge_point): Add `named_merge_point_kind' field.
7161         (push_named_merge_point): Make cycle detection respect different
7162         named-merge-point kinds.
7163         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7164         Remove face-name alias resolution.
7165         (lface_from_face_name): New definition using
7166         `lface_from_face_name_no_resolve'.
7167         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7168         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7169         (get_lface_attributes): New definition that layers face-remapping on
7170         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
7171         (lookup_basic_face): New function.
7172         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7173         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7174         `get_lface_attributes'.
7175         (face_at_buffer_position): Use `lookup_basic_face' to lookup
7176         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
7177         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7179         * xdisp.c (init_iterator): Pass base_face_id through
7180         `lookup_basic_face' when we actually use it as a face-id.
7181         (handle_single_display_prop): Use `lookup_basic_face' to lookup
7182         DEFAULT_FACE_ID.
7184         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7185         lookup the initial face-id.
7187         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7189 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
7191         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7192         (Fremove_text_properties): Fix typos in docstrings.
7194 2008-05-31  Kenichi Handa  <handa@m17n.org>
7196         * font.c (font_list_entities): Fix the car part of data to be
7197         stored in the cache.
7199         * ftfont.c (ftfont_font_format): Don't use strcasestr.
7201 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
7203         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7204         Add a `test' argument so another predicate than `equal' can be used.
7205         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7206         (map_char_table): Remove unused vars `c' and `i'.
7207         * lisp.h (Foptimize_char_table): Adjust declaration.
7208         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7210 2008-05-30  Kenichi Handa  <handa@m17n.org>
7212         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7213         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7214         defined.
7216 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
7218         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7219         (Fmake_variable_frame_local): Disallow mixing buffer-local and
7220         frame-local settings for the same variable.
7222 2008-05-30  Kenichi Handa  <handa@m17n.org>
7224         * fontset.c (Ffont_info): Move to font.c.
7225         (syms_of_fontset): Delete defsubr of Sfont_info.
7227         * font.c (font_style_to_value, font_score): Delete casting of the
7228         args to xstcasecmp.
7229         (register_font_driver): Increment num_font_drivers only when
7230         registering the driver globally.
7231         (Ffont_info): Move from fontset.c.  Handle a font object too.
7232         (syms_of_font): Defsubr Sfont_info.
7234 2008-05-29  Kenichi Handa  <handa@m17n.org>
7236         * coding.h (enum define_coding_utf8_arg_index): New enum.
7237         (enum coding_attr_index): Change coding_attr_utf_16_bom to
7238         coding_attr_utf_bom.
7239         (enum utf_bom_type): Rename from utf_16_bom_type.
7240         (struct utf_16_spec): Adjust for the above change.
7241         (struct coding_system): Add utf_8_bom in `spec' union.
7243         * coding.c (CODING_UTF_8_BOM): New macro.
7244         (enum coding_category): Delete coding_category_utf_8, add
7245         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7246         coding_category_utf_8_sig.
7247         (CATEGORY_MASK_UTF_8): Delete it.
7248         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7249         (CATEGORY_MASK_UTF_8_SIG): New macros.
7250         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7251         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7252         CATEGORY_MASK_UTF_8_SIG.
7253         (CATEGORY_MASK_UTF_8): New macro.
7254         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7255         (detect_coding_utf_8): Check BOM.
7256         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7257         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7258         (encode_coding_utf_16): Likewise.
7259         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
7260         (detect_coding, detect_coding_system): Handle utf-8-auto.
7261         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7262         (syms_of_coding): Fix setting up of Vcoding_category_table.
7264 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
7266         * process.c (Faccept_process_output): If `millisec' is non-nil,
7267         `seconds' default to 0.
7268         (wait_reading_process_output): Also return non-nil if we read output
7269         from a non-running process.
7271 2008-05-29  Jason Rumney  <jasonr@gnu.org>
7273         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
7274         `raster' specified.
7275         (add_font_entity_to_list): Allow non-opentype truetype fonts back
7276         in the uniscribe backend, but disallow any font that has no
7277         unicode subrange support.
7279 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
7281         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
7282         Fix typos in docstrings.
7284 2008-05-29  Kenichi Handa  <handa@m17n.org>
7286         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
7287         (Fx_family_fonts): Set frame correctly.
7289 2008-05-28  Jason Rumney  <jasonr@gnu.org>
7291         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
7293 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
7295         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
7296         calling build_annotations.
7298 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
7300         * coding.c (Fdecode_coding_region, Fencode_coding_region)
7301         (Fencode_coding_string):
7302         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
7303         <latin-extra-code-table>: Fix typos in docstrings.
7304         (syms_of_coding) <coding-system-alist>: Doc fix.
7305         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
7307 2008-05-28  Kenichi Handa  <handa@m17n.org>
7309         * fontset.c (Ffont_info): Don't call font_close_object.
7311         * font.c (font_parse_family_registry): Use Ffont_put to validate
7312         foundry and family.
7313         (font_delete_unmatched): Don't check spacing.
7314         (font_list_entities): Add spacing to the spec to list fonts.
7316         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
7317         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
7319         * coding.c (encode_coding_raw_text): Fix previous change.
7320         (encode_coding_object): When the dst_object is a buffer and is
7321         different from src_object, move gap to PT.
7323 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
7325         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
7327 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
7329         * coding.c (encode_coding_raw_text): Set coding->produced_char for
7330         all branches.  Compute it differently.
7332         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
7334 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
7336         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
7337         into "else if () ... else ...".
7339 2008-05-27  Jason Rumney  <jasonr@gnu.org>
7341         * w32font.c (w32font_open_internal): Determine if glyph indices
7342         are likely to work here.
7344 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
7346         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
7347         draw overlap glyphs with appropriate highlighting.
7349 2008-05-27  Kenichi Handa  <handa@m17n.org>
7351         * xfont.c (xfont_open): Fix calculation of font->average_width.
7353 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
7355         * casefiddle.c (casify_object): Try to guess better whether the
7356         argument is a byte or a char.
7358 2008-05-26  Andreas Schwab  <schwab@suse.de>
7360         * xselect.c (x_reply_selection_request): Properly handle format == 32.
7361         Always send multiples of format size.
7363         * xterm.c (x_set_frame_alpha): Fix type mismatch.
7365 2008-05-26  Jason Rumney  <jasonr@gnu.org>
7367         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
7368         (compute_metrics): Don't set failure if we just cleared the cache.
7369         (w32_weight_table): Remove unused variable.
7370         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
7371         backwards compatibility.
7373 2008-05-25  Kenichi Handa  <handa@m17n.org>
7375         * w32term.c (x_draw_glyph_string):
7376         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
7378         * xfaces.c: Delete unused function prototypes.
7379         (xstrlwr, font_frame): Delete them.
7380         (clear_face_cache): Delete unused variable.
7382         * xftfont.c (xftfont_open): Delete unused variable.
7383         If underline_thickness is not 1, adjust underline_position.
7385         * ftxfont.c (ftxfont_open): Delete unused variable.
7387         * fontset.c (face_for_char): Optimize for the case of no charset
7388         property.
7390         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
7391         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
7392         (otf_open, font_otf_capability, generate_otf_features)
7393         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
7394         Comment out by surrounding "#if 0" and "#endif" for the moment.
7395         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
7396         (syms_of_font): Codes for accessing above commented out.
7398 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
7400         * w32proc.c: Include dispextern.h.
7402         * w32.c: Include dispextern.h.
7404 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
7406         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
7407         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
7408         Fix typos in docstrings.
7410 2008-05-23  Jason Rumney  <jasonr@gnu.org>
7412         * xsmfns.c: Remove includes that are already included by config.h.
7414 2008-05-23  Kenichi Handa  <handa@m17n.org>
7416         * charset.c (Qemacs, charset_emacs): New variables.
7417         (char_charset): Fix for non-Unicode characters.
7418         (syms_of_charset): Define charset_emacs.
7420         * w32term.c (x_draw_glyph_string): Be sure to update
7421         s->underline_thickness and s->underline_position.  Be sure to draw
7422         underline within the current line area.
7424         * xterm.c (x_draw_glyph_string): Be sure to update
7425         s->underline_thickness and s->underline_position.  Be sure to draw
7426         underline within the current line area.
7428         * fontset.c: Delete unused variables and add casting for char *
7429         throughout the file.
7430         (fontset_font): Try the fallback fonts of the current fontset
7431         before consulting the default fontset.
7433         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
7435         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
7437 2008-05-22  Jason Rumney  <jasonr@gnu.org>
7439         * font.c: Don't include strings.h.
7441         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
7443         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
7444         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
7445         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
7446         to call xstrcasecmp.
7448         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
7450         * fontset.c (fs_query_fontset): Use xstrcasecmp.
7452         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
7454         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
7456 2008-05-22  Kenichi Handa  <handa@m17n.org>
7458         * puresize.h (BASE_PURESIZE): Increase to 1220000.
7460         * font.c (font_prop_validate_style): Adjust for the format
7461         change of font_style_table.
7463         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
7464         two args.
7466         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
7467         two args.
7469 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
7471         * minibuf.c (keys_of_minibuf): Delete.
7472         * lisp.h (keys_of_minibuf): Delete.
7473         * emacs.c (main): Don't call keys_of_minibuf.
7475 2008-05-22  Kenichi Handa  <handa@m17n.org>
7477         * ftfont.c (ftfont_resolve_generic_family): Rename from
7478         ftfont_list_generic_family.  Return a single family for each
7479         generic family.
7480         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
7481         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
7482         Call font_add_log.
7483         (ftfont_match): Call font_add_log.
7485         * font.h (Ffont_xlfd_name): EXFUN adjusted.
7486         (FONT_DEBUG): Define it.
7487         (font_add_log): Extern it.
7488         (font_assert): Rename from xassert.
7490         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
7491         (xfont_list_family): Call font_add_log.
7492         (xfont_match): Likewise.
7493         (memq_no_quit): Delete.
7495         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
7496         call of Ffont_xlfd_name.
7498         * xfaces.c (struct table_entry, slant_table, weight_table)
7499         (swidth_table): Move to font.c.
7501         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
7502         xassert are changed to font_assert.  Delete many unused variables.
7503         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
7504         New variables.
7505         (struct table_entry): Move from xfaces.c and modified.
7506         (weight_table, slant_table, width_table): Move from xfaces.c and
7507         contents adjusted for the change of struct table_entry.
7508         (font_style_to_value, font_style_symbolic): Adjust for the
7509         format change of font_style_table.
7510         (font_parse_family_registry): Don't overwrite existing foundry and
7511         family of font_spec.
7512         (font_score): Fix calculation of diff for sizes.
7513         (font_sort_entites): Call font_add_log.
7514         (font_delete_unmatched): Return a newly created list.
7515         (font_list_entities): Fix previous change.  Call font_add_log.
7516         (font_matching_entity, font_open_entity, font_close_entity):
7517         Call font_add_log.
7518         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
7519         (Finternal_set_font_style_table): Delete.
7520         (BUILD_STYLE_TABLE): New macro.
7521         (build_style_table): New function.
7522         (Vfont_log, font_log_env_checked): New variables.
7523         (font_add_log): New function.
7524         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
7525         Declare Lisp variables "font-weight-table", "font-slant-table",
7526         "font-width-table", and "font-log".  Initialize font_style_table.
7528 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
7530         * xterm.c (x_set_frame_alpha): Move declarations before statements.
7532 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
7533             Ryo Yoshitake  <ryo@shiftmode.net>
7535         * frame.c (Qalpha): Add a new frame parameter `alpha'.
7536         (Vframe_alpha_lower_limit): New variable.
7537         (x_set_alpha): New function.
7539         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
7541         * xfns.c (x-create-frame, Qalpha):
7542         Initialize the frame parameter `alpha'.
7543         * xterm.c (OPAQUE, OPACITY): New.
7544         (x_set_frame_alpha): New function.
7545         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
7547         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
7548         * w32fns.c (w32_frame_parm_handlers): Likewise.
7550 2008-05-20  Jason Rumney  <jasonr@gnu.org>
7552         * w32font.c (add_font_entity_to_list): Don't add non-opentype
7553         truetype fonts to opentype list.
7555 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
7557         * fontset.c (Ffontset_info): Doc fix.
7558         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
7559         <ignore-relative-composition>: Fix typos in docstrings.
7561         * font.c (syms-of-font) <font-encoding-alist>:
7562         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
7563         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
7564         (Ffont_otf_alternates): Doc fixes.
7566 2008-05-20  Kenichi Handa  <handa@m17n.org>
7568         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
7569         font.h through out the file.
7570         (FONT_DRIVERS): Rename from FONTOBJ.
7571         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
7572         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
7574         * emacs.c (main): Call syms_of_font unconditionally.
7576         * font.h (find_font_encoding): Extern it.
7578         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
7579         fontset.c.
7580         (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
7581         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
7582         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
7583         only when HAVE_WINDOW_SYSTEM is defined.
7584         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
7585         when HAVE_WINDOW_SYSTEM is defined.
7587         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
7588         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
7590         * xfaces.c: Include font.h unconditionally.
7591         (merge_face_ref, merge_face_vectors)
7592         (Finternal_set_lisp_face_attribute): Cancel the previous change.
7594 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7596         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
7597         indirect_variable.
7598         * eval.c (lisp_indirect_variable): New fun.
7599         (Fuser_variable_p): Use it.
7601 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
7603         * lisp.h (indirect_variable):
7604         * data.c (indirect_variable, let_shadows_buffer_binding_p):
7605         Use Lisp_Symbol pointers rather than Lisp_Object.
7606         Adjust callers.
7607         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
7608         To this end, change calling-convention.
7610         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
7611         if some non-hidden buffers are selected by string&pred.
7613 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
7615         * process.c (wait_reading_process_output): Always check status
7616         when in batch mode.
7618 2008-05-19  Kenichi Handa  <handa@m17n.org>
7620         * font.c (font_list_entities): Fix handling of cache.
7621         (font_matching_entity): Likewise.
7623         * ftfont.c (cs_iso8859_1): Delete.
7624         (ft_face_cache): New variable.
7625         (struct ftfont_info): New member fc_charset_idx.
7626         (ftfont_build_basic_charsets): Delete.
7627         (fc_charset_table): New variable.
7628         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
7629         . FC_CHARSET_IDX) as :font-entity property in the font entity.
7630         Callers changed.
7631         (ftfont_lookup_cache, ftfont_get_charset): New functions.
7632         (ftfont_spec_pattern): New argument fc_charset_idx.
7633         Check registry more rigidly.  Change callers.
7634         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
7635         change of :font-entity property of the font.
7637         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
7638         property of the font.
7640 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
7642         * coding.c (Fcoding_system_p): Rename argument to match docstring.
7643         (Funencodable_char_position, Fcheck_coding_systems_region)
7644         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
7645         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
7646         (Ffind_operation_coding_system, Fset_coding_system_priority)
7647         (Fcoding_system_eol_type): Doc fixes.
7649 2008-05-17  Glenn Morris  <rgm@gnu.org>
7651         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
7653 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
7655         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
7656         and st_gid.
7658         * frame.c (Fdelete_frame): Don't call font_update_drivers if
7659         HAVE_WINDOW_SYSTEM is not defined.
7661         * xfaces.c (merge_face_ref, merge_face_vectors)
7662         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
7663         HAVE_WINDOW_SYSTEM is defined.
7664         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
7666 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
7668         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
7670 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7672         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
7674 2008-05-15  Kenichi Handa  <handa@m17n.org>
7676         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
7677         preference.
7679 2008-05-15  Glenn Morris  <rgm@gnu.org>
7681         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
7683 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
7685         * fns.c (init_fns): Don't initialize weak_hash_tables here.
7686         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
7688         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
7690 2008-05-15  Kenichi Handa  <handa@m17n.org>
7692         * ftfont.c (ftfont_list): Downcase family name to check generic
7693         families.
7695         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
7696         font-spec for QCfont value.
7698         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
7699         buffer.  Check the return value of it.
7701 2008-05-14  Jason Rumney  <jasonr@gnu.org>
7703         * w32term.c (w32_get_glyph_overhangs): Remove.
7704         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
7706 2008-05-14  Kenichi Handa  <handa@m17n.org>
7708         * font.c (font_prop_validate): Make nil a valid value.
7709         (font_clear_cache): Check if the cached vector of entities is nil
7710         or not.
7712 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7714         * emacs.c (main_thread): Conditionalize on
7715         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7716         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
7718         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
7719         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
7720         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
7722 2008-05-14  Kenichi Handa  <handa@m17n.org>
7724         * coding.c (detect_coding_iso_2022): Ignore a coding category that
7725         has no corresponding coding system.
7727 2008-05-14  Jason Rumney  <jasonr@gnu.org>
7729         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
7731         * w32font.h (w32font_open_internal): Update declaration.
7733         * w32font.c (w32font_open_internal): Change last argument from
7734         w32font_info struct to font object.  Fill in font object from
7735         font_entity.  Get Outline metrics if possible.  Use them to
7736         calculate underline position and thickness.  Use xlfd name as name
7737         property.  Don't set codepage.
7738         (w32font_open): Pass font_object to w32font_open_internal.  Don't
7739         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
7740         (w32font_draw): Use s->font.
7741         (clear_cached_metrics): Don't clear non-existent blocks.
7743         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
7744         font was not found.
7745         (x_draw_glyph_string): Use underline position and thickness from font.
7747         * w32uniscribe.c (uniscribe_open): Pass font_object to
7748         w32font_open_internal.
7750 2008-05-14  Kenichi Handa  <handa@m17n.org>
7752         These changes are to delete all legacy font-handling codes, and
7753         make Emacs use only font-backends.
7755         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
7756         (frame.o, image.o, print.o): Depend on $(FONTSRC).
7758         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
7760         * charset.h (Vcharset_non_preferred_head)
7761         (Vcurrent_iso639_language): Extern them.
7763         * charset.c (Vcharset_non_preferred_head): New variable.
7764         (Vcurrent_iso639_language): New variable.
7765         (syms_of_charset): Declare it as a Lisp variable.
7766         (char_charset): Don't check non preferred charsets.  As a last
7767         resort, return charset_unicode.
7768         (Fset_charset_priority): Update Vcharset_non_preferred_head.
7770         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
7771         conditionals.  Don't check enable_font_backend.  Delete all codes
7772         used only when USE_FONT_BACKEND is not defined.
7774         * dispextern.h (struct glyph_string): Change type of `font' to
7775         `struct font *'.
7776         (struct glyph_string): New member underline_position and
7777         underline_thickness.
7778         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
7779         (struct face): Change type of `font' to `struct font *'.  Remove
7780         members `font_name', `font_info_id'.
7781         (per_char_metric, encode_char): Delete externs.
7782         (calc_pixel_width_or_height): Adjust the prototype.
7784         * emacs.c (enable_font_backend): Delete extern.
7785         (main): Don't set enable_font_backend.  Don't check the command
7786         line argument "-disable-font-backend".
7788         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
7789         (enum font_property_index): New members FONT_DPI_INDEX,
7790         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
7791         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
7792         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
7793         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
7794         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
7795         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
7796         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
7797         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
7798         (struct font_spec, struct font_entity): New structs.
7799         (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
7800         (struct font): Many members from old "struct font_info" moved to
7801         here.  Members font and entity deleted.
7802         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
7803         the new font-related objects.
7804         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
7805         (CHECK_FONT_GET_OBJECT): Likewise.
7806         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
7807         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
7808         (struct font_driver): New members case_sensitive anc check.  Type
7809         of the member list and open changed.
7810         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
7811         (font_symbolic_width, font_find_object, font_get_spec)
7812         (font_set_lface_from_name): Delete extern.
7813         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
7815         * font.c: Include <strings.h>.
7816         (enable_font_backend): Delete it.
7817         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
7818         (CHECK_VALIDATE_FONT_SPEC): Delete it.
7819         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
7820         (null_string): Delete it.
7821         (null_vector): Make it static.
7822         (font_family_alist): Delete it.
7823         (Qnormal): Extern it.
7824         (QCextra, QClanguage): Delete it.
7825         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
7826         (font_make_spec, font_make_entity, font_make_object)
7827         (font_intern_prop): Renamed from intern_downcase.  Don't downcase
7828         the string.  Callers changed.
7829         (font_pixel_size): Adjusted for the format change of font-related
7830         objects.
7831         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
7832         (font_style_to_value, font_style_symbolic): New function.
7833         (build_font_family_alist): Delete it.
7834         (font_registry_charsets): Use Fassoc_string instead of
7835         assq_no_quit.
7836         (font_prop_validate_symbol): Don't return null_string.
7837         (font_prop_validate_style): Adjusted for the change of
7838         style-related values in a font vector.
7839         (font_property_table): Delete entries for QClanguage and
7840         QCantialias, add entries for QCavgwidth.
7841         (get_font_prop_index): Delete the 2nd argument FROM.
7842         (font_prop_validate): Arguments changed.
7843         (font_put_extra): Adjusted for the change of font-related objects.
7844         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
7845         (font_parse_fcname, font_unparse_fcname)
7846         (font_prepare_composition): Likewise.
7847         (font_parse_family_registry): Renamed from font_merge_old_spec.
7848         (otf_open): Delete the 1st arg entity.
7849         (font_otf_capability): Adjusted for the above change.
7850         (font_score): New arg alternate_families.  Adjusted for the change
7851         of font-related objects.
7852         (font_sort_entites): New arg best_only.
7853         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
7854         Delete them.
7855         (font_match_p): Check alternate families.
7856         (font_find_object): Delete it.
7857         (font_check_object): New function.
7858         (font_clear_cache): Adjusted for the change of font-related objects.
7859         (font_delete_unmatched): New arg.
7860         (font_list_entities): Call font_driver->list with a spec that
7861         doesn't specify style-related properties.
7862         (font_matching_entity): Arguments changed.  Caller changed.
7863         (font_open_entity): Adjusted for the change of font-related objects.
7864         (font_close_object, font_has_char, font_encode_char)
7865         (font_get_name, font_get_spec): Likewise.
7866         (font_spec_from_name, font_clear_prop, font_update_lface):
7867         New functions.
7868         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
7869         (font_prepare_for_face, font_done_for_face, font_open_by_name)
7870         (font_at): Adjusted for the change of font-related objects.
7871         (font_range): New function.
7872         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
7873         (Ffont_xlfd_name): Adjusted for the change of font-related objects.
7874         (Fcopy_font_spec, Fmerge_font_spec): New function.
7875         (Ffont_family_list): Renamed from list-families.
7876         (Finternal_set_font_style_table): Arguments changed.
7877         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
7878         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
7879         change of font-related objects.
7880         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
7882         * fontset.h (struct font_info): Delete it.  Most members go to
7883         struct font.
7884         (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
7885         (enum FONT_SPEC_INDEX): Delete it.
7886         (font_info, list_fonts_func, load_font_func, query_font_func)
7887         (set_frame_fontset_func, find_ccl_program_func)
7888         (get_font_repertory_func, new_fontset_from_font_name): Delete
7889         externs.
7890         (fontset_from_font_name): Extern it.
7891         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
7892         (FONT_INFO_FROM_FACE): Deleted.
7893         (face_for_font): Adjust prototype.
7895         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
7896         conditionals.  Don't check enable_font_backend.  Delete all codes
7897         used only when USE_FONT_BACKEND is not defined.
7898         (get_font_info_func, list_font_func, load_font_func)
7899         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
7900         (get_font_repertory_func): Delete them.
7901         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
7902         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
7903         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
7904         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
7905         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
7906         (fontset_compare_rfontdef): New function.
7907         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
7908         rfont-defs by qsort.  Adjusted for the change of font-group vector.
7909         (load_font_get_repertory): Deleted.
7910         (fontset_find_font): Use new macros to ref/set elements of
7911         font-def and rfont-def.
7912         (fontset_font): Fix the timing of remembering that no font for C.
7913         (free_face_fontset): Do nothing if the face has no fontset.
7914         (face_suitable_for_char_p): Use new macros to ref/set elements of
7915         rfont-def.
7916         (face_for_char): Likewise.  Call face_for_char with font_object.
7917         (fs_load_font): Delete.  Delete #pragma surrounding it.
7918         (fs_query_fontset): Use strcasecmp instead of strcmp.
7919         (generate_ascii_font_name): Adjusted for the format change of
7920         font-spec.
7921         (Fset_fontset_font): Likewise.  Use new macros to set elements of
7922         font-def.
7923         (Fnew_fontset): Use font_unparse_xlfd to generate
7924         FONTSET_ASCII (fontset).
7925         (new_fontset_from_font_name): Deleted.
7926         (fontset_from_font): Renamed from new_fontset_from_font.  Check if
7927         a fontset is already created for the font.  FIx updating of
7928         Vfontset_alias_alist.
7929         (fontset_ascii_font): Deleted.
7930         (Ffont_info): Adjusted for the format change of font-spec.
7931         (Finternal_char_font): Likewise.
7932         (Ffontset_info): Likewise.
7933         (syms_of_fontset): Don't check load_font_func.
7935         * fns.c (internal_equal): Handle PREV_FONT.
7937         * frame.h: Delete USE_FONT_BACKEND conditional.
7939         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
7940         conditionals.  Don't check enable_font_backend.  Delete all codes
7941         used only when USE_FONT_BACKEND is not defined.
7942         (x_set_font): Call x_new_font, not x_new_fontset2.
7943         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
7944         already set for the frame.
7946         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
7947         a font-entity by font_make_entity.  Use font_intern_prop instead
7948         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
7949         font property.  If a font is scalable, set avgwidth property to 0.
7950         Set font-entity property by font_put_extra.
7951         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
7952         (ffont_driver): Adjusted for the change of struct font_driver.
7953         (ftfont_spec_pattern): New function.
7954         (ftfont_list): Return a list, not vector.
7955         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
7956         (ftfont_list_family): Don't downcase names.
7957         (ftfont_free_entity): Deleted.
7958         (ftfont_open): Return a font-object.  Adjusted for the change of
7959         struct font.  Get underline_thickness and underline_position from
7960         font property.  Don't update dpyinfo->smallest_font_height and
7961         dpyinfo->smallest_char_width.
7962         (ftfont_close): Don't free `struct font'.
7963         (ftfont_has_char): Adjusted for the format change of font-entity.
7964         (ftfont_encode_char, ftfont_text_extents): Likewise.
7966         * ftxfont.c (ftxfont_list): Return a list, not vector.
7967         (ftxfont_open): Return a font-object.  Adjusted for the change of
7968         struct font.  Get underline_thickness and underline_position from
7969         font property.  Don't update dpyinfo->smallest_font_height and
7970         dpyinfo->smallest_char_width.
7971         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
7972         (ftxfont_draw): Adjusted for the change of struct font.
7974         * image.c (image_ascent): Don't include "charset.h".  Include
7975         "character.h" and "font.h".
7977         * lisp.h (enum pvec_type): New member PREV_FONT.
7978         (Fassoc_string): EXFUN it.
7980         * print.c: Include font.h.
7981         (print_object): Handle font-related objects.
7983         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
7984         conditionals.  Don't check enable_font_backend.  Delete all codes
7985         used only when USE_FONT_BACKEND is not defined.
7986         (handle_auto_composed_prop): Do nothing if it->f is not on a
7987         window system.  Check how many following characters can be
7988         displayed by the same font.
7989         (calc_pixel_width_or_height): Type of the 4th arg is changed to
7990         'struct font *'.
7991         (get_char_face_and_encoding): Assign the whole encoding task to
7992         the `encode-char' method of a font driver.
7993         (fill_composite_glyph_string): Adjusted for the change of `struct
7994         face' and `struct glyph_string'.
7995         (fill_glyph_string): Likewise.
7996         (get_per_char_metric): Arguments changed.
7997         (x_get_glyph_overhangs): Adjusted for the change of `struct face'
7998         and `struct glyph_string'.
7999         (produce_stretch_glyph, calc_line_height_property)
8000         (x_produce_glyphs): Likewise.
8002         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8003         conditionals.  Don't check enable_font_backend.  Delete all codes
8004         used only when USE_FONT_BACKEND is not defined.  Use
8005         FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8006         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8007         (Qp): Extern them.
8008         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8009         Deleted.
8010         (struct font_name): Deleted.
8011         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8012         (compare_fonts_by_sort_order): New function.
8013         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8014         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8015         Deleted.
8016         (Fx_family_fonts): Use font_list_entities, and sort fonts by
8017         compare_fonts_by_sort_order.
8018         (Fx_font_family_list): Call Ffont_family_list.
8019         (face_numeric_value, face_numeric_weight, face_numeric_slant)
8020         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8021         (face_symbolic_slant, face_symbolic_swidth)
8022         (split_font_name_into_vector, build_font_name_from_vector)
8023         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8024         (font_rescale_ratio, split_font_name, build_font_name)
8025         (free_font_names, sort_fonts, x_face_list_fonts)
8026         (face_font_available_p, sorted_font_list, cmp_font_names)
8027         (font_list_1, concat_font_list, font_list, remove_duplicates):
8028         Deleted.
8029         (Fx_list_fonts): Use Ffont_list.
8030         (LFACE_AVGWIDTH): Deleted.
8031         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
8032         by FONTP.
8033         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8034         (set_lface_from_font_name): Delete it.
8035         (set_lface_from_font): Renamed from
8036         set_lface_from_font_and_fontset.  Caller changed.  Don't set
8037         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
8038         for face.
8039         (merge_face_vectors): Copy font-spec if necessary.
8040         Clear properties of the font-spec if necessary.
8041         (merge_face_ref): Clear properties of the font-spec if necessary.
8042         (Finternal_set_lisp_face_attribute): Likewise.
8043         (set_font_frame_param): Use font_load_for_lface to load a
8044         font-object, and call Fmodify_frame_parameters with it.
8045         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
8046         font name by Ffont_xlfd_name.
8047         (Finternal_lisp_face_attribute_values): Don't check QCweight,
8048         QCslant, and QCwidth.
8049         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8050         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8051         Compare fonts by EQ.
8052         (lookup_non_ascii_face): Deleted.
8053         (face_for_font): The 2nd argument changed.
8054         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8055         Check atomic font properties by case insensitive.
8056         (realize_non_ascii_face): Set face->overstrike correctly.
8057         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
8058         (dump_realized_face): Get font name from
8059         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
8061         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8062         conditionals.  Don't check enable_font_backend.  Delete all codes
8063         used only when USE_FONT_BACKEND is not defined.
8064         (xic_create_xfontset): Original code deleted and renamed from
8065         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
8066         (x_make_gc): Don't set GCFont in GCs.
8067         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8068         opened by "fixed".
8069         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8070         find_ccl_program_func, query_font_func, set_frame_fontset_func,
8071         get_font_repertory_func.
8073         * xfont.c: Include <stdlib.h> and "ccl.h".
8074         (struct xfont_info): New structure.
8075         (xfont_query_font): Deleted.
8076         (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8077         moved from xterm.c.
8078         (xfont_driver): Adjusted for the change of struct font_driver.
8079         (compare_font_names): New function.
8080         (xfont_list_pattern): Sort font names case insensitively.  Make
8081         font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
8082         (xfont_list): Return a list, not vector.
8083         (xfont_match): If the font doesn't have QCname property, generate
8084         a name from the other font properties.
8085         (xfont_open): Return a font-object.  Adjusted for the change of
8086         struct font.  Get underline_thickness and underline_position from
8087         font property.  Don't update dpyinfo->smallest_font_height and
8088         dpyinfo->smallest_char_width.
8089         (xfont_close): Don't free struct font.
8090         (xfont_prepare_face): Adjusted for the change of struct font.
8091         (xfont_done_face): Deleted.
8092         (xfont_has_char): Adjusted for the change of struct font.
8093         (xfont_encode_char, xfont_draw): Likewise.
8094         (xfont_check): New function.
8096         * xftfont.c (xftfont_list): Adjusted for the change of `list'
8097         callback function.
8098         (xftfont_match): Adjusted for the format change of font-entity.
8099         (xftfont_open): Adjusted for the format change of font-entity and
8100         font-object.  Adjusted for the change of struct font.  Return a
8101         font-object.  Don't update dpyinfo->smallest_font_height and
8102         dpyinfo->smallest_char_width.
8103         (xftfont_close): Block input while calling XftFontClose.
8104         (xftfont_prepare_face): Don't block input while calling
8105         xftfont_get_colors.  Adjusted for the change of struct font.
8106         (xftfont_shape): Return value of error case fixed.
8108         * xrdb.c (x_load_resources): Don't setup a fontset resource.
8110         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8111         conditionals.
8112         (FONT_WIDTH): Return (f)->max_width.
8113         (struct x_display_info): Delete member `font'.
8114         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8115         (x_find_ccl_program, x_get_font_repertory): Delete externs.
8116         (struct x_output): Change type of `font' to `struct font *'.
8118         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8119         conditionals.  Don't check enable_font_backend.  Delete all codes
8120         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
8121         (x_per_char_metric, x_encode_char): Deleted.
8122         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8123         (x_compute_glyph_string_overhangs): Adjusted for the change of
8124         `struct face'.
8125         (x_draw_glyph_string_foreground)
8126         (x_draw_composite_glyph_string_foreground): Likewise.
8127         (x_draw_glyph_string): Likewise.  Use font->underline_position and
8128         font->underline_thickness.
8129         (x_new_font): Renamed from x_new_fontset2.
8130         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8131         (x_check_font): Call `check' method of a font driver.
8132         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8133         (x_query_font, x_get_font_repertory): Deleted.
8134         (x_find_ccl_program): Renamed and moved to xfont.c.
8135         (x_redisplay_interface): Adjusted for the change of `struct
8136         redisplay_interface'.
8138         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8139         conditionals.  Don't check enable_font_backend.  Delete all codes
8140         used only when USE_FONT_BACKEND is not defined.  Surround non-used
8141         code by "#ifdef OLD_FONT" and "endif".
8142         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8144         * w32font.h (struct w32font_info): New member.
8145         (FONT_COMPAT): New macro.
8146         (w32font_open_internal): Prototype adjusted.
8148         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8149         OLD_FONT" and "endif".
8151         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8152         conditionals.  Don't check enable_font_backend.  Delete all codes
8153         used only when USE_FONT_BACKEND is not defined.
8154         (w32font_open): Return a font-object.  Make a font-object by
8155         font_make_object.  Adjusted for the change of struct w32font_info.
8156         (w32font_close): Don't free struct font.  Adjusted for the change
8157         of struct w32font_info.
8158         (w32font_encode_char, w32font_text_extents, w32font_draw):
8159         Adjusted for the change of struct w32font_info.
8160         (w32font_draw): Likewise.
8161         (w32font_list_internal): Return a list, not vector.
8162         (w32font_open_internal): Change the 4th arg to font-object.
8163         Adjusted for the change of struct w32font_info and font-object format.
8164         (add_font_name_to_list): Don't downcase names.
8165         (w32_enumfont_pattern_entity): Make a font-entity by
8166         font_make_entity.  Adjusted for the format change of font-entity.
8167         Use FONT_SET_STYLE to set a style-related font property.  If a
8168         font is scalable, set avgwidth property to 0.  Set font-entity
8169         property by font_put_extra.
8170         (font_matches_spec): Adjusted for the format change of font-entity.
8171         (w32_weight_table, w32_decode_weight): New variables.
8172         (w32_encode_weight): New function.
8173         (fill_in_logfont): Adjusted for the format change of font-spec.
8174         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8175         weight value.
8176         (w32font_driver): Adjusted for the change of struct font_driver.
8178         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8179         conditionals.  Don't check enable_font_backend.  Surround non-used
8180         code by "#ifdef OLD_FONT" and "endif".
8181         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8182         (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8184         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8185         conditionals.  Don't check enable_font_backend.  Delete all codes
8186         used only when USE_FONT_BACKEND is not defined.  Surround non-used
8187         code by "#ifdef OLD_FONT" and "endif".
8189         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8190         (uniscribe_open): Return value changed to font-object.
8191         Adjusted for the format change of font-object.
8192         (uniscribe_otf_capability): Adjusted for the change of struct font.
8193         (add_opentype_font_name_to_list): Don't downcase names.
8194         (uniscribe_font_driver): Adjusted for the change of struct
8195         font_driver.
8197 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
8199         * dispnew.c (update_frame_1): Check if tty output is still valid
8200         before flushing it.
8202 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
8204         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8205         to Gtk+ menus.
8207 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
8209         * dired.c (file_name_completion): Tweak the code so as to always do it
8210         in a single pass.  Tighten the scope of some variables.
8212         * dired.c (Qdefault_directory): New var.
8213         (file_name_completion): Use it instead of Fexpand_file_name.
8214         (syms_of_dired): Initialize it.
8216 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8218         * fileio.c (double_dollars): Remove dead code.
8220 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
8222         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8223         Mention w32-get-true-file-attributes in doc string.
8225         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8227 2008-05-09  Glenn Morris  <rgm@gnu.org>
8229         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8230         2008-04-23.
8232 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
8234         Support for reporting owner and group of each file on MS-Windows:
8235         * dired.c (stat_uname, stat_gname): New functions, with special
8236         implementation for w32.
8237         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8239         * w32.c: Rename the_passwd_* to dflt_passwd_*.
8240         (dflt_group_name): New static variable.
8241         (dflt_group): Rename from the_group.
8242         (init_user_info): Init dflt_group fields.  Get user's group name
8243         from LookupAccountSid.
8244         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8245         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8246         New initialization states.
8247         (globals_of_w32): Initialize them to zero.  Initialize the default
8248         group name to "None".
8249         (GetFileSecurity_Name): New global var, the name of the function
8250         to call for GetFileSecurity.
8251         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8252         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8253         (get_file_security, get_security_descriptor_owner)
8254         (get_security_descriptor_group, is_valid_sid)
8255         (get_file_security_desc, get_rid, get_name_and_id)
8256         (get_file_owner_and_group): New functions.
8257         (stat): Use get_file_security_desc and get_file_owner_and_group to
8258         report the owner and primary group of each file.  Don't ignore the
8259         high 32 bits of file's size, now that st_size is 64-bit wide.
8260         Fix test when to get true file attributes.
8261         (init_user_info): Use get_rid instead of equivalent inline code.
8262         (fstat): Don't ignore the high 32 bits of file's size.
8264 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
8266         * image.c (png_load): Use correct bit-depth for setting background
8267         color.
8269 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
8271         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
8272         epa-hook.elc.
8274 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
8276         * font.c (Ffont_match_p): Don't use `iff' in docstring.
8278 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
8280         * macfns.c (Fx_create_frame): Make a copy of frame parameters
8281         because the original parameters are in pure storage now.
8282         (mac_window): Remove unused params.  Update callers.
8284 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
8286         * lread.c (substitute_object_recurse): Use lower-level primitives.
8287         Don't signal errors when traversing sub-char-tables.
8288         Don't loop over all the possible characters when traversing char-tables.
8290         * print.c (print_preprocess): Add sub-char-tables to the print-table,
8291         just like we do in print.c.
8293 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
8295         * minibuf.c (Ftry_completion): Remove code left over from when we used
8296         scmp instead of Fcompare_strings.
8298 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
8300         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
8302 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8304         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
8305         Create bitmap context in native byte order.
8307         * macterm.c (XDrawLine)
8308         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
8309         context in native byte order.
8311 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8313         * config.in: Regenerate.
8315         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
8316         New definitions for Image I/O support.
8317         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
8318         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
8319         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8320         (mac_data_provider_release_data, image_load_image_io)
8321         [USE_MAC_IMAGE_IO]: New functions.
8322         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
8323         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
8324         (init_image_func_pointer) [MAC_OSX]: Remove function.
8325         (image_load_quartz2d) [MAC_OSX]: Check availability of
8326         CGImageCreateWithPNGDataProvider at compile time.
8327         Use lowercase `false' for boolean constant.
8328         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
8329         Use image_load_image_io.
8330         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
8331         Don't check MyCGImageCreateWithPNGDataProvider.
8332         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
8333         Don't call init_image_func_pointer.
8335         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
8337         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
8338         Make variable non-static.
8339         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
8340         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
8342         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
8343         (RED_FROM_ULONG): Mask off higher bits.
8344         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
8346         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
8347         Include AvailabilityMacros.h.
8348         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
8349         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
8351 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8353         * chartab.c (Fset_char_table_range): If range is t, really set all
8354         chars to that value.
8356 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
8358         * dired.c (Ffile_attributes): Don't allow the device number become
8359         negative.
8361 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
8363         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
8365 2008-05-02  Juri Linkov  <juri@jurta.org>
8367         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
8368         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
8369         DEFAULT argument as a list of default values in docstrings.
8371 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
8373         * puresize.h (BASE_PURESIZE): Increase to 1210000.
8375 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
8377         * dispnew.c (change_frame_size_1): Preserve small windows when
8378         shrinking frames by calling set_window_height|width with third
8379         arg 2.
8381         * window.h (struct window): Replace field too_small_ok by field
8382         resize_proportionally.
8384         * window.c (make_window): Initialize resize_proportionally.
8385         (enlarge_window): Temporarily set resize_proportionally to make
8386         sure that shrink_windows does scale the window proportionally.
8387         (shrink_windows): When window has resize_proportionally set try
8388         to shrink it proportionally by stealing from other windows.
8389         (struct saved_window, Fset_window_configuration)
8390         (compare_window_configurations): Handle resize_proportionally.
8391         (WINDOW_TOTAL_SIZE): New macro.
8392         (window_min_size, shrink_windows, size_window): Use it.
8393         (check_min_window_sizes): Remove.  Invalid values of
8394         window-min-height|width are handled by window_min_size_2 now.
8395         (size_window, Fsplit_window, enlarge_window)
8396         (adjust_window_trailing_edge, grow_mini_window): Don't call
8397         check_min_window_sizes.
8398         (window_min_size_2, window_min_size_1, window_min_size):
8399         New argument safe_p for retrieving "safe" minimum sizes.
8400         (Fdisplay_buffer, Fsplit_window, enlarge_window)
8401         (adjust_window_trailing_edge, grow_mini_window):
8402         Adjust arguments of window_min_size... functions.
8403         (shrink_windows): Argument min_size removed.  New argument
8404         safe_p allows shrinking windows to their safe minimum sizes.
8405         Calculate minimum size and decide whether a window shall be
8406         deleted for each window individually.
8407         (size_window): When nodelete_p equals 2, tell shrink_windows to
8408         delete windows only if their new minimum size is no more safe.
8409         (shrink_window_lowest_first): Call window_min_size_1 to make
8410         sure to preserve modeline of bottom-most window when resizing
8411         the minibuffer.
8412         (Fset_window_configuration, Fcurrent_window_configuration)
8413         (compare_window_configurations): Do not handle
8414         window-min-height|width any more.
8415         (syms_of_window): Clarify window-min-height|width doc-strings.
8417 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
8419         * dired.c (file_name_completion): Fix up the encoding/decoding issue
8420         some more.  Copy some of the code from Ftry_completions.
8421         Remove special case code that dates back to initial revision when the
8422         slash was only added when necessary and that can't trigger nowadays.
8424 2008-04-27  Kenichi Handa  <handa@m17n.org>
8426         * font.c (font_prop_validate): Signal `error' instead of `font'.
8428 2008-04-29  Jason Rumney  <jasonr@gnu.org>
8430         * w32fns.c (Fw32_battery_status): New defun.
8431         (syms_of_w32fns): Defsubr it.
8433 2008-04-28  Andreas Schwab  <schwab@suse.de>
8435         * dired.c (file_name_completion): Fix another mixing of encoded
8436         and decoded names.
8438 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
8440         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
8442 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
8444         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
8446 2008-04-27  Andreas Schwab  <schwab@suse.de>
8448         * dired.c (file_name_completion): Fix inappropriate mixing of
8449         encoded and decoded names.
8451         * xterm.c (XTread_socket): Fix use of uninitialized variable.
8453         * puresize.h (BASE_PURESIZE): Increase to 1200000.
8455 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
8457         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
8458         2008-03-31, it's not needed anymore with `struct stat' definition
8459         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
8460         for the same reasons.
8462 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
8464         * m/sparc.h: Additional redefinitions for GNU/Linux.
8466 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8468         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
8469         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
8470         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
8471         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
8472         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8473         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
8474         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8475         Likewise.
8477         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
8478         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
8479         (mac_ax_number_of_characters): Add externs.
8480         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
8481         [USE_MAC_TSM]: Likewise.
8482         (mac_handle_text_input_event) [MAC_OSX]:
8483         Handle kEventTextInputOffsetToPos for no active input area case.
8484         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8485         (mac_handle_document_access_event)
8486         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
8487         (install_application_handler) [MAC_OSX]: Register handlers for
8488         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
8489         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
8490         Register mac_handle_document_access_event.
8492         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
8493         Make functions non-static.
8495 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
8497         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
8498         (read_file_name_completion_ignore_case, insert_default_directory)
8499         (Qdefault_directory): Move to minibuffer.el.
8500         (Fread_file_name): Call the new `read-file-name' instead.
8502 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8504         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
8505         Make function non-static.
8506         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
8507         Remove function.
8508         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8509         Move to mactoolbox.c.
8510         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
8512         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
8513         (mac_rect_make): New macro.
8515         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
8516         instead of float.
8517         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8518         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
8519         (XSetBackground) [USE_CG_DRAWING]: Likewise.
8520         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
8521         CGRectMake.
8522         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
8523         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
8524         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
8525         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8526         instead of WindowRef in argument type.
8527         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
8528         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
8529         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
8530         instead of DISPLAY.  All uses changed.
8531         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
8532         (x_calc_absolute_position): Simplify so as not to use
8533         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
8535         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
8536         instead of WindowRef in argument type.
8537         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
8538         [TARGET_API_MAC_CARBON]: Remove externs.
8539         (create_apple_event, mac_event_parameters_to_lisp)
8540         [TARGET_API_MAC_CARBON]: Add externs.
8542         * mactoolbox.c (Vmac_ts_script_language_on_focus)
8543         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
8544         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
8545         is clicked.
8546         (x_activate_menubar): Remove extern for saved_menu_event_location.
8547         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
8548         Move from mac.c.
8550 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8552         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
8553         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
8555 2008-04-23  Jason Rumney  <jasonr@gnu.org>
8557         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
8558         attributes only for local files.
8560         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
8561         default to Qlocal.
8563 2008-04-22  Juri Linkov  <juri@jurta.org>
8565         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
8566         read-buffer-to-switch instead of using the letter "B".
8568 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
8570         * fileio.c (Qdefault_directory): New variable.
8571         (Fread_file_name): Use it to pass `dir' to the completion functions.
8573 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
8575         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
8577 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
8579         * keyboard.c (Vpre_help_message): Remove.
8580         (show_help_echo): Remove default C code.
8582         * dired.c (directory_files_internal, file_name_completion):
8583         Only call ENCODE_FILE if the string is indeed decoded.
8585 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
8587         * Makefile.in (TOOLKIT_DEFINES): Remove.
8588         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
8590 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8592         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
8593         (mactoolbox.o): New target.
8595         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
8596         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
8598         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
8599         Use mac_set_frame_window_background instead of XSetWindowBackground.
8600         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
8601         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
8602         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
8603         instead of SetWindowTitleWithCFString.
8604         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
8605         Move function to mactoolbox.c.
8606         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
8607         Use mac_set_window_modified instead of SetWindowModified.
8608         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
8609         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
8610         (Fx_focus_frame): Use mac_front_non_floating_window instead of
8611         FrontNonFloatingWindow.  Use mac_activate_window instead of
8612         ActivateWindow.  Use mac_active_non_floating_window instead of
8613         ActiveNonFloatingWindow.
8614         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
8615         Use mac_show_hourglass and mac_hide_hourglass.
8616         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
8617         instead of GetGlobalMouse.
8618         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
8619         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
8620         Use mac_bring_window_to_front instead of BringToFront.
8621         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
8622         mactoolbox.c.
8623         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
8624         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
8625         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
8626         mactoolbox.c.
8628         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
8629         (XtPointer): Move typedef from macmenu.c.
8630         (enum button_type): Move enum from macmenu.c.
8631         (widget_value): Move typedef from macmenu.c.
8632         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
8633         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8634         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8635         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8636         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8637         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8638         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8639         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
8640         (Selection): Move typedef from macselect.c.
8641         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
8642         macterm.c.
8643         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
8644         (mac_is_window_collapsed, mac_bring_window_to_front)
8645         (mac_send_window_behind, mac_hide_window, mac_show_window)
8646         (mac_collapse_window, mac_front_non_floating_window)
8647         (mac_active_non_floating_window, mac_activate_window)
8648         (mac_move_window_structure, mac_move_window, mac_size_window)
8649         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
8651         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
8652         (enum mac_menu_kind): Move enum to mactoolbox.c.
8653         (min_menu_id): Move variable to mactoolbox.c.
8654         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
8655         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
8656         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
8657         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
8658         [TARGET_API_MAC_CARBON]: Likewise.
8659         (XtPointer): Move typedef to macgui.h.
8660         (enum button_type): Move enum to macgui.h.
8661         (widget_value): Move typedef to macgui.h.
8662         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
8663         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
8664         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
8665         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
8666         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
8667         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
8668         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
8669         (popup_activated_flag): Make variable non-static.
8670         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
8671         (add_menu_item, fill_menu, dispose_menus):
8672         Move functions to mactoolbox.c.
8673         (restore_show_help_function, menu_target_item_handler)
8674         (install_menu_target_item_handler, mac_handle_dialog_event)
8675         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
8676         [TARGET_API_MAC_CARBON]: Likewise.
8677         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
8678         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8679         (find_and_call_menu_selection, name_is_separator): Make function
8680         non-static.
8681         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
8682         to mactoolbox.c.
8683         (set_frame_menubar): Don't call install_menu_quit_handler.
8684         (menu_item_selection): New variable.
8685         (mac_menu_show): Use create_and_show_popup_menu.
8686         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
8687         selection but set variable menu_item_selection.  All uses changed.
8688         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
8689         Call install_menu_quit_handler.  Move to mactoolbox.c.
8691         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
8692         (Selection): Move typedef to macgui.h.
8693         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
8694         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
8695         Make variables non-static.
8696         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8697         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
8698         Make functions non-static.
8699         (Vmac_service_selection) [MAC_OSX]: Likewise.
8700         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
8701         (mac_valid_selection_target_p, mac_clear_selection)
8702         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8703         (mac_put_selection_value, mac_selection_has_target_p)
8704         (mac_get_selection_value, mac_get_selection_target_list)
8705         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
8706         Move functions to mactoolbox.c.
8707         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
8708         Likewise.
8709         (copy_scrap_flavor_data, mac_handle_service_event)
8710         (install_service_handler) [MAC_OSX]: Likewise.
8711         (syms_of_macselect) <Vmac_dnd_known_types>:
8712         Use mac_dnd_default_known_types.
8714         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
8715         Move to mactoolbox.c.
8716         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
8717         (Fx_selection_owner_p): Add EXFUN.
8718         (install_window_handler, remove_window_handler, XSetWindowBackground):
8719         Remove externs.
8720         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
8721         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
8722         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
8723         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
8724         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
8725         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
8726         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
8727         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
8728         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
8729         (create_and_show_popup_menu, mac_get_selection_from_symbol)
8730         (mac_valid_selection_target_p, mac_clear_selection)
8731         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
8732         (mac_put_selection_value, mac_selection_has_target_p)
8733         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
8734         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
8735         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
8736         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
8737         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
8738         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
8739         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
8740         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8741         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
8743         * mactoolbox.c: New file.
8745 2008-04-18  Jason Rumney  <jasonr@gnu.org>
8747         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
8749 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
8751         * character.c (Fmultibyte_char_to_unibyte):
8752         Return latin1 chars unchanged.
8754         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
8755         relocated if it points to `name'.
8757 2008-04-17  Kenichi Handa  <handa@m17n.org>
8759         * data.c (Faset): Allow setting a multibyte character in an
8760         ASCII-only unibyte string.
8762         * lisp.h (STRING_SET_MULTIBYTE): New macro.
8764 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8766         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
8767         done in config.h.
8769 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
8771         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
8772         (Fchar_direction): Add usage in the docstring.
8774 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
8776         * keyboard.c (read_key_sequence): Remove always-true checks.
8778 2008-04-14  Jason Rumney  <jasonr@gnu.org>
8780         * w32font.c (w32font_open_internal): Set max_bounds.descent in
8781         compatibility struct, for better underline positioning.
8783 2008-04-13  David Hansen  <david.hansen@gmx.net>
8785         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
8786         string.
8788 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
8790         * m/hp800.h (XUINT, XSET): Remove.
8792 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
8794         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
8795         previous change.
8797 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8799         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
8800         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
8802 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
8804         * keymap.h (map_keymap_canonical): Declare.
8805         * xmenu.c (single_keymap_panes): Use it.
8807 2008-04-11  Glenn Morris  <rgm@gnu.org>
8809         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
8810         set the target's value to that of the alias.
8812 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
8814         * term.c (set_tty_color_mode): Left over typo.
8816 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
8818         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
8819         only after check for file name handler functions.  Signal, when
8820         native functionality is not supported.
8821         (syms_of_fileio): Declare it unconditionally.
8823 2008-04-10  Jason Rumney  <jasonr@gnu.org>
8825         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
8826         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
8828         * w32.c (logon_network_drive): Also logon to remote drives that
8829         are mapped to drive letters.
8831 2008-04-10  Glenn Morris  <rgm@gnu.org>
8833         * xdisp.c (truncate-partial-width-windows): Doc fix.
8835 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
8837         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
8838         Move functions to minibuffer.el.
8839         (syms_of_fileio): Don't declare them.
8841 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
8843         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
8844         (syms_of_minibuf): Remove its initialization.
8846         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
8848 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
8850         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
8852 2008-04-09  Jason Rumney  <jasonr@gnu.org>
8854         * makefile.w32-in (distclean): Delete makefile too.
8855         (maintainer-clean): New target.
8857         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
8859         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
8860         for new font backend and composite cases.
8862 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
8864         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
8865         Most of the code moved to run_timers.
8866         (do_pending_atimers): Call run_timers.
8867         (run_timers): New function.
8869         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
8870         run atimers.
8872         * process.c (wait_reading_process_output): The same as above.
8874 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
8876         * minibuf.c (last_exact_completion): Remove variable.
8877         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
8878         (complete_and_exit_1, complete_and_exit_2)
8879         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
8880         (Fdisplay_completion_list, display_completion_list_1)
8881         (Fminibuffer_completion_help, Fself_insert_and_exit)
8882         (Fexit_minibuffer, Fminibuffer_message): Move functions to
8883         minibuffer.el.
8884         (syms_of_minibuf): Remove corresponding initializations.
8886         * keyboard.c (Qdeactivate_mark): New var.
8887         (command_loop_1): Use it to call `deactivate-mark'.
8888         (syms_of_keyboard): Initialize it.
8890         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
8891         to another frame.
8892         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
8893         Don't call set_tty_color_mode.
8894         (store_frame_param): Reset previous_frame rather than call
8895         set_tty_color_mode.
8896         * term.c (set_tty_color_mode): Rewrite.
8897         * dispextern.h (set_tty_color_mode): New type.
8898         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
8900 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
8902         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
8903         for generic chars, which do not exist any more in emacs-unicode.
8905 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
8907         * coding.c (detect_coding_emacs_mule)
8908         (Ffind_operation_coding_system): Fix typo.
8910 2008-04-08  Jason Rumney  <jasonr@gnu.org>
8912         * w32uniscribe.c (SNAME): Extract only symbol name.
8914         * w32font.h (struct w32_metric_cache): New struct.
8915         (w32font_info): Use it.
8916         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
8917         (CACHE_BLOCKSIZE): New constants.
8919         * w32font.c (Qja, Qko, Qzh): New symbols.
8920         (syms_of_w32font): Initialise them.
8921         (font_matches_spec): Use them to filter by language.
8922         (recompute_cached_metrics): Remove function.
8923         (compute_metrics, clear_cached_metrics): New functions.
8924         (w32font_encode_char): Use them to manage metric cache.
8925         (w32font_text_extents): Cache metrics for all glyphs on demand.
8926         Delay converting glyph indices to WORD until needed.
8927         (w32font_open_internal): Initialize metric cache to empty.
8928         (registry_to_w32_charset): Charset should always be a symbol.
8929         (fill_in_logfont, list_all_matching_fonts): Family should
8930         always be a symbol.
8932 2008-04-06  Jason Rumney  <jasonr@gnu.org>
8934         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
8935         Give up if glyph indices not supported.  Use uniscribe obtained
8936         ABC widths for individual metrics.  Map glyph clusters back to
8937         characters using fClusterStart flag.  Return number of glyphs
8938         produced, not chars processed.
8939         (uniscribe_shape): Map char at FROM to current glyph.
8941 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8943         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
8944         Use SetMenuItemHierarchicalMenu.
8946 2008-04-05  Jason Rumney  <jasonr@gnu.org>
8948         * image.c (pbm_load): Allow color values up to 65535.
8949         Throw an error if max_color_idx is outside the supported range.
8950         Report an error when image size is invalid.
8951         Read two bytes at a time when raw images have max_color_idx above 255.
8953 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
8955         * w32.c (readdir): If FindFirstFile/FindNextFile return in
8956         cFileName a file name that includes `?' characters, use the 8+3
8957         alias in cAlternateFileName instead.
8959 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
8961         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
8962         append "CCL: Quitted" when the CCL program is quitted.
8963         (setup_ccl_program): Initialize ccl->quit_silently to zero.
8965         * ccl.h (struct ccl_program): New member quit_silently.
8967 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
8969         * search.c (compile_pattern_1): Treat non-nil and non-string of
8970         search-spaces-regexp as nil.
8972         * minibuf.c (Fassoc_string): Tweak docstring.
8974 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
8976         * dired.c (Ffile_attributes): Support inode numbers wider than 32
8977         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
8978         2008-03-14 to force inode be positive.
8980         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
8981         _S_* ones, since we now use our own sys/stat.h.
8982         (stat, fstat): Don't mangle the inode number.
8983         (init_user_info): Don't restrict UID and GID to 0-60000 range.
8985 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
8987         * frame.h (struct frame): Give one more bit to `visible' since we use
8988         values larger than 1 to indicate obscured frames on ttys.
8990         * keymap.c (Qkeymap_canonicalize): New var.
8991         (Fmap_keymap_internal): New fun.
8992         (describe_map): Use keymap-canonicalize.
8994         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
8995         (Fundo_boundary): Set them.
8996         (syms_of_undo): Initialize them.
8997         (record_point): Use them instead of last_point_position*.
8998         (last_undo_buffer): Change type.
9000 2008-04-04  Jason Rumney  <jasonr@gnu.org>
9002         * w32font.c (w32font_text_extents): Use font's ascent and descent.
9003         (recompute_cached_metrics): Don't set ascent and descent per char.
9005         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9006         (uniscribe_check_otf): Add GC protection before consing.
9007         Rearrange loop for counting features.
9009 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
9011         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9012         buffer with byte-size of source buffer.
9014 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
9016         * callint.c (Fcall_interactively): Handle temporary region even
9017         when shift-select-mode is off.
9019 2008-04-03  Jason Rumney  <jasonr@gnu.org>
9021         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9023 2008-04-03  Kenichi Handa  <handa@m17n.org>
9025         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9026         (CATEGORY_MASK_UTF_16): Likewise.
9027         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9028         binary file.
9029         (detect_coding): Add null-byte detection for a binary file.
9030         (detect_coding_system): Likewise.
9032 2008-04-03  Jason Rumney  <jasonr@gnu.org>
9034         * w32uniscribe.c: New file.
9036         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9038         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9040         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9041         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9042         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9043         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9044         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9045         (Qphonetic): New symbols.
9046         (syms_of_w32font): Initialize them.
9047         (font_supported_scripts): Use them.
9048         (w32font_list_family): List all charsets.
9049         (w32font_text_extents, recompute_cached_metrics): Fix metric
9050         calculations.
9051         (w32_enumfont_pattern_entity): Make full_type a DWORD.
9052         Give opentype fonts their own format.
9053         (font_matches_spec): New arguments backend and logfont.
9054         Handle :otf spec for uniscribe backend.
9055         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9056         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9058         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9059         font backend.
9060         (globals_of_w32fns): Initialize uniscribe font backend.
9062         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
9063         dependencies.
9064         (w32uniscribe.$(O)): New file to build.
9065         (FONT_OBJ): Include w32uniscribe.$(O).
9066         (LIBS): Add uniscribe libraries.
9068         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9070 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
9072         * callint.c (Vshift_select_mode): New var.
9073         (Finteractive): Document new ^ spec.
9074         (Fcall_interactively): Call handle-shift-selection if the ^ spec
9075         is present.
9077         * keyboard.c (Vthis_command_keys_shift_translated): New var.
9078         (command_loop_1): Avoid running the direct display versions of
9079         forward-char and backward-char if shift-selection may occur.
9080         (read_key_sequence): Set Vthis_command_keys_shift_translated if
9081         shift-translation takes place.
9083         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9084         avoid clobbering by define-minor-mode.
9086         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9087         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9089         * syntax.c (Fforward_word): Add ^ interactive spec.
9091         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9092         (Fscroll_right): Add ^ interactive spec.
9094 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
9096         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9098         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9100         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9102 2008-03-31  Juri Linkov  <juri@jurta.org>
9104         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9106 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
9108         * gtkutil.c (xg_set_geometry): Fix indentation.
9109         (xg_resize_outer_widget): Remove.
9110         (x_wm_size_hint_off): Fix indentation.
9111         (xg_frame_set_char_size): Call flush_and_sync after
9112         gtk_window_resize.
9113         (x_wm_set_size_hint): Pass NULL as geometry window to
9114         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9115         Add menu bar and tool bar height to base height.
9116         (xg_update_frame_menubar, free_frame_menubar)
9117         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9118         (update_frame_tool_bar, free_frame_tool_bar):
9119         Change xg_resize_outer_widget to xg_frame_set_char_size.
9121 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
9123         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9124         (Fdbus_call_method): New parameter TIMEOUT.
9125         (dbus-send-signal): Optimize UNGCPRO call.
9127 2008-03-29  Juri Linkov  <juri@jurta.org>
9129         * window.c (Fdisplay_buffer): Move call to
9130         Vsplit_window_preferred_function out of conditions that check
9131         if window is eligible for vertical splitting.
9132         When Vsplit_window_preferred_function is non-nil, call it and use
9133         its non-nil return value as window.  Otherwise, continue doing
9134         vertical splitting using Fsplit_window with arg horflag=nil.
9135         (syms_of_window) <Vsplit_window_preferred_function>: Change the
9136         default value from `split-window' to nil.
9138 2008-03-29  Juri Linkov  <juri@jurta.org>
9140         * callint.c (Fcall_interactively): Revert 2008-03-16 change
9141         for interactive code letters 'b' and 'B'.
9143 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
9145         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9146         multibyte string.
9148 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
9150         * keyboard.c (pending_funcalls): New var.
9151         (timer_check): Run it.
9152         (syms_of_keyboard): Initialize it.
9153         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9154         (Vdelete_terminal_functions): New vars.
9155         (syms_of_terminal): Initialize them.
9156         (Fdelete_terminal): Run delete-terminal-functions.
9157         * xdisp.c (safe_eval): Rewrite.
9158         (safe_call2): New fun.
9159         * frame.c (Qdelete_frame_functions): New var.
9160         (syms_of_frame): Initialize it.
9161         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9162         * lisp.h (safe_call2, pending_funcalls): Declare.
9164 2008-03-28  Andreas Schwab  <schwab@suse.de>
9166         * indent.c (Fmove_to_column): Move declaration before statements.
9168 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
9170         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
9171         (struct frame): Use bit fields for boolean vars.
9173         * process.c (server_accept_connection): Simplify naming.
9174         (emacs_get_tty_pgrp): Use SDATA.
9176         * coding.c (decode_coding_object): Fix last change.
9178 2008-03-27  Jason Rumney  <jasonr@gnu.org>
9180         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9182 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
9184         * charset.c (Fdefine_charset_internal): Change the way of
9185         registering charsets in Vcharset_order_list.
9186         (syms_of_charset): Make the charset `eight-bit' supplementary.
9188 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
9190         * regex.c (EXTEND_BUFFER): Change order of pointer addition
9191         operations, to avoid having the difference between pointers
9192         overflow.
9194 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
9196         * indent.c (check_display_width): New fun.
9197         (scan_for_column): Use it.
9199         * data.c (syms_of_data): Mark most-positive-fixnum and
9200         most-negative-fixnum as constants.
9202         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9204         * indent.c (scan_for_column): Extract from current_column_1.
9205         Merge with the same code from Fmove_to_column.
9206         (current_column_1, Fmove_to_column): Use it.
9208 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
9210         * keymap.c (map_keymap_internal): New fun.
9211         (map_keymap): Use it.
9212         (Fmap_keymap_internal): New fun.
9213         (Fmap_keymap): Remove left-out test from before make_save_value.
9215         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9217         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9218         Use XCAR/XCDR.
9220         * process.h (struct Lisp_Process): Remove filter_multibyte.
9221         * process.c (QCfilter_multibyte): Remove.
9222         (setup_process_coding_systems): Don't use filter_multibyte.
9223         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9224         (read_process_output): Don't adjust multibyteness to filter_multibyte.
9225         (Fset_process_filter_multibyte): Change the coding-system to
9226         approximate the previous behavior.
9227         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9228         coding-system.
9230         * coding.c (decode_coding_object): When not decoding into a buffer,
9231         obey the coding system's preference of (uni|multi)byte.
9233 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
9235         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9236         every char is changed and has a different byte-length.
9237         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9238         Fix int -> EMACS_INT.
9240 2008-03-23  David Hansen  <david.hansen@gmx.net>
9242         * dbusbind.c (xd_read_message): Remove extra copying of message
9243         strings.  Check for NULL `interface' or `member'.
9245 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
9247         * w32.c (readdir): If FindFirstFile/FindNextFile return in
9248         cFileName a file name that includes `?' characters, use the 8+3
9249         alias in cAlternateFileName instead.
9251 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9253         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9255 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
9257         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9258         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
9259         work on current_buffer only instead (that was already the case
9260         for some of the code anyway).
9261         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9262         (temp_set_point, temp_set_point_both): Use EMACS_INT.
9263         (SET_PT, SET_PT_BOTH): Adjust.
9264         * intervals.h (set_point, temp_set_point, set_point_both)
9265         (temp_set_point_both): Remove redundant declarations.
9267 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
9269         * fileio.c (Finsert_file_contents):
9270         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
9271         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
9272         when buffer != current_buffer anyway.
9274 2008-03-20  Andreas Schwab  <schwab@suse.de>
9276         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
9277         as default.
9279 2008-03-19  Jason Rumney  <jasonr@gnu.org>
9281         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
9282         (syms_of_w32fns): Initialize them.
9283         (HOURGLASS_ID): New constant.
9284         (x_window_to_frame): Don't check hourglass_window.
9285         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
9286         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
9287         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
9288         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
9289         Only change the cursor if hourglass is not active.
9290         (Fx_create_frame): Initialize frame's current_cursor.
9291         (hourglass_atimer): Remove.
9292         (hourglass_started): New function.
9293         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
9294         (show_hourglass): Adapt to w32, changing argument to frame.
9296         * w32term.h (struct w32_output): Remove hourglass_window.
9297         Add current_cursor.
9299         * eval.c (call_debugger, Fsignal):
9300         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
9301         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
9302         (Fexecute_extended_command, cancel_hourglass_unwind):
9303         * minibuf.c (read_minibuf):
9304         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
9306 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9308         * window.c (run_funs): New fun.
9309         (run_window_configuration_change_hook): Use it to run the buffer-local
9310         and the global part of the hook.
9312         * xdisp.c (format_mode_line_unwind_data): Add window argument.
9313         (unwind_format_mode_line): Restore selected window.
9314         (x_consider_frame_title, Fformat_mode_line): Set selected window.
9316 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
9318         * editfns.c (Fchar_equal): Check they are valid characters.
9320         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
9322 2008-03-17  Andreas Schwab  <schwab@suse.de>
9324         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
9325         against a charset.
9327         * lisp.h (Fbuffer_list): Declare.
9329 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
9331         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
9332         handlebox_widget is != 0.
9334 2008-03-16  Juri Linkov  <juri@jurta.org>
9336         * callint.c (Fcall_interactively): For interactive code letters
9337         'b' and 'B' put the buffer list into the list of default "future"
9338         values of the minibuffer.
9340 2008-03-16  Andreas Schwab  <schwab@suse.de>
9342         * keyboard.c (read_key_sequence): Fix downcasing of letters with
9343         modifiers.
9345         * regex.c (re_match_2_internal): Correct matching of a charset
9346         against latin-1 characters.
9348 2008-03-16  Kenichi Handa  <handa@m17n.org>
9350         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
9351         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
9352         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
9353         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
9354         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
9355         CHAR_STRING_ADVANCE.
9356         (produce_chars): Fix for the case that the source and the
9357         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
9358         instead of CHAR_STRING_ADVANCE.
9359         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
9360         STRING_CHAR_ADVANCE.
9362 2008-03-15  Andreas Schwab  <schwab@suse.de>
9364         * regex.c (re_match_2_internal): Correct matching of eight bit
9365         characters in unibyte strings.
9367 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
9369         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
9370         at end of range when it coincides with the end of the buffer.
9372 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
9374         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
9376         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
9378 2008-03-14  Jason Rumney  <jasonr@gnu.org>
9380         * editfns.c (initial_tz): New variable.
9381         (syms_of_editfns): Initialize it.
9382         (Fset_time_zone_rule): Set it when first called.
9383         Use it when TZSTRING is nil.
9385         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
9386         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
9387         (monitor_from_point_fn, get_monitor_info_fn): New globals.
9388         (globals_of_w32fns): Initialize them.
9389         (compute_tip_xy): Use them to position tooltips.
9391 2008-03-14  Glenn Morris  <rgm@gnu.org>
9393         * emacs.c (main): Revert previous change.
9394         (standard_args): Revert -internal-script back to -scriptload,
9395         and remove the long-option form.
9397 2008-03-13  Glenn Morris  <rgm@gnu.org>
9399         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
9400         Remove option -enable-font-backend.
9402 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9404         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
9406 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
9408         * xterm.c (x_connection_closed): For GTK: If this is the last
9409         terminal just exit without closing the display.
9411 2008-03-11  Jason Rumney  <jasonr@gnu.org>
9413         * w32font.c (w32font_full_name): Use floor to round.
9415 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
9417         * sound.c (alsa_configure): Declare vol at beginning of block.
9419         * fontset.c (Ffontset_info): Remove extra semicolon.
9421 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
9423         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
9424         size of resulting string.
9426 2008-03-10  Jason Rumney  <jasonr@gnu.org>
9428         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9430 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9432         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
9433         Don't pretend as if characters with display property haven't been
9434         consumed for string-replacing-string case.
9436 2008-03-08  Kim F. Storm  <storm@cua.dk>
9438         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
9439         (get_next_display_element, next_element_from_string)
9440         (next_element_from_ellipsis, next_element_from_buffer): Use it.
9442 2008-03-08  Andreas Schwab  <schwab@suse.de>
9444         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
9446 2008-03-06  Jason Rumney  <jasonr@gnu.org>
9448         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
9449         when charset not specified.  Only translate ANSI to unicode when
9450         font_type is truetype.
9451         (w32font_coverage_ok): New function.
9452         (add_font_entity_to_list): Use it to filter unsuitable fonts.
9454 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
9456         * lread.c (Fread_char): Resolve modifiers.
9457         (Fread_char_exclusive): Likewise.
9459         * character.c (char_resolve_modifier_mask): New function.
9460         (char_string): Use char_resolve_modifier_mask.
9461         (Fchar_resolve_modifiers): New function.
9462         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
9463         function.
9465 2008-03-04  Jason Rumney  <jasonr@gnu.org>
9467         * makefile.w32-in: Always include w32font.c in the build.
9468         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
9470 2008-03-04  Andreas Schwab  <schwab@suse.de>
9472         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
9473         (versionclean): Likewise.
9475 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
9477         * .cvsignore: Add oo.
9479 2008-03-03  Andreas Schwab  <schwab@suse.de>
9481         * coding.c (decode_coding_object): Inhibit gap shrinking while
9482         decoding in place.
9484 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
9486         * w32term.c: Remove unused include "gnu.h".
9487         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
9489         * gnu.h: Rename to ...
9490         * emacs-icon.h: ... this.
9491         * xterm.c: Use emacs-icon.h instead of gnu.h.
9492         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
9494 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
9496         * w32font.c: Include math.h.
9498 2008-03-03  Jason Rumney  <jasonr@gnu.org>
9500         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
9501         Compute options separately.
9502         (w32font_open_internal): Set glyph_idx before caching metrics.
9504         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
9505         Define if system headers don't.
9506         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
9507         (w32font_encode_char): Don't declare here.
9509         * w32font.c (Quniscribe, QCformat): New symbols.
9510         (syms_of_w32font): Define them.
9511         (w32font_has_char): Indicate uncertainty.
9512         (w32font_encode_char): Encode as glyph point.  Make static.
9513         (recompute_cached_metrics): New function.
9514         (w32font_open_internal): Use it.  Set font to use glyph points
9515         initially.  Set format based on type of font.
9516         (w32font_text_extents, w32font_draw): Optionally use glyph points.
9517         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
9518         on it.  Set format based on information available here.
9519         (add_font_entity_to_list): Identify backend based on opentype_only.
9521 2008-03-02  Andreas Schwab  <schwab@suse.de>
9523         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
9525         * coding.c (decode_coding_big5, produce_chars):
9526         Fix typos in last change.
9528 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
9530         * gnu.h: New icon.
9532 2008-03-02  Kenichi Handa  <handa@m17n.org>
9534         * coding.c (decode_coding_utf_8): When eol-type of CODING is
9535         `dos', don't decode '\r' if that is the last in the source.
9536         (decode_coding_utf_16, decode_coding_emacs_mule)
9537         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9538         (decode_coding_raw_text, decode_coding_charset): Likewise.
9539         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
9541 2008-03-01  Jason Rumney  <jasonr@gnu.org>
9543         * w32font.c (w32font_full_name): Report point size for scalable fonts.
9545 2008-03-01  Kim F. Storm  <storm@cua.dk>
9547         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
9549 2008-03-01  Jason Rumney  <jasonr@gnu.org>
9551         * w32font.c (w32font_full_name): New function.
9552         (w32font_open_internal): Use it.
9554 2008-03-01  Kim F. Storm  <storm@cua.dk>
9556         * dispnew.c (line_draw_cost): Fix invalid glyph check.
9558 2008-03-01  Jason Rumney  <jasonr@gnu.org>
9560         * font.c (font_unparse_fcname): Increase len when style is a symbol.
9562 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
9564         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
9565         xg_frame_resized when the event is for the edit widget.
9567         * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
9569         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
9570         set_char_size.
9571         (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
9572         operations on widgets here.  Just set frame size if needed.
9573         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
9574         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
9575         (x_wm_set_size_hint): Set size hints on the edit widget only, not
9576         the whole frame.
9577         (xg_create_tool_bar): Move attachment of the tool bar to
9578         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
9579         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
9581 2008-03-01  Jason Rumney  <jasonr@gnu.org>
9583         * w32fns.c (w32_msg_pump): Disable debug code.
9585 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9587         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
9589 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
9591         * xdisp.c (next_overlay_string): Don't set
9592         overlay_strings_at_end_processed_p if we're currently reading from
9593         a display string.
9595 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
9597         * xdisp.c (get_overlay_strings_1): Fix typo.
9599 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
9601         * xdisp.c (get_overlay_strings_1): Add missing argument type.
9603 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
9605         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
9607         * xdisp.c (display_mode_element): Cancel the previous change.
9608         (decode_mode_spec): Likewise.
9609         (handle_auto_composed_prop): Don't make composition if it->string
9610         is a string.
9612 2008-02-27  Kim F. Storm  <storm@cua.dk>
9614         * lisp.h (GLYPH): Change type from int to struct with separate char
9615         and face_id members.
9616         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
9617         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
9618         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
9619         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
9620         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
9621         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
9622         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
9623         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
9624         handle new Lisp glyph code encoding, either an integer or a cons.
9626         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
9627         (GLYPH_ALIAS): Delete.
9628         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
9629         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
9630         (GLYPH_FROM_CHAR): Replace macro by ...
9631         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
9633         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
9634         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
9635         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
9636         (GLYPH_INVALID_P): New macro.
9637         (spec_glyph_lookup_face): Update prototype.
9639         * dispnew.c (line_draw_cost): Adapt to new glyph type.
9640         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
9641         new glyph code encoding.
9642         (spec_glyph_lookup_face): No return value; update passed glyph instead.
9643         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
9645         * xdisp.c (get_next_display_element, next_element_from_display_vector):
9646         Adapt to new glyph type and new glyph code encoding.
9648         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
9650         * indent.c (current_column, current_column_1, Fmove_to_column)
9651         (compute_motion): Adapt to new glyph code encoding.
9653         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
9655 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
9657         * process.c (wait_reading_process_output): Check for window
9658         changes caused by timers.
9659         Suggested by Johan Bockgård.
9661 2008-02-27  Glenn Morris  <rgm@gnu.org>
9663         * emacs.c (USAGE1): Add `--disable-font-backend'.
9665 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
9667         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
9668         is made to the buffer.
9670 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
9672         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
9673         (face_at_string_position):
9674         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
9675         (face_at_string_position):
9676         * xdisp.c (display_string, next_overlay_change):
9677         * buffer.h (overlays_at):
9678         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
9679         Update callers.
9681 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
9683         * editfns.c (Fformat): Doc fix.
9685 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
9687         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
9688         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
9689         (Ffont_otf_alternates, Fquery_font): Doc fixes.
9691 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
9693         * buffer.c (Fbuffer_swap_text): New function.
9694         (syms_of_buffer): Defsubr it.
9696 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
9698         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
9700 2008-02-25  Jason Rumney  <jasonr@gnu.org>
9702         * w32font.c (w32font_draw): Draw one character at a time when padding.
9704 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
9706         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
9707         Handle a nil arg.  Use run_window_configuration_change_hook.
9708         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
9709         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
9710         Use run_window_configuration_change_hook.
9712 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
9714         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
9715         1-pixel width.
9717 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
9719         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
9720         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
9721         if the glyph in the font is zero pixel with.
9723         * dispextern.h (struct glyph_string): New member padding_p.
9725         * w32font.c (w32font_draw): Pay attention to s->padding_p.
9727         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
9729         * xfont.c (xfont_draw): Pay attention to s->padding_p.
9731         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
9733         * font.c: If the font driver doesn't have `shape' function, return Qnil.
9735 2008-02-25  Jason Rumney  <jasonr@gnu.org>
9737         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
9739 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
9741         Allow fine-grained image-cache flushing.
9742         * dispextern.h (struct image): Add `dependencies' field.
9743         (clear_image_caches): Change arg to Lisp_Object.
9744         * image.c (make_image): Initialize `dependencies' field.
9745         (clear_image_cache): Change arg to allow fine-grained flushing.
9746         Perform the flush even if image-cache-eviction-delay is nil.
9747         (clear_image_caches): Change arg to Lisp_Object.
9748         (Fclear_image_cache): Expand meaning of the argument.
9749         (mark_image): Mark `dependencies' field.
9750         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
9751         (lface_hash): Use XHASH rather than XFASTINT.
9752         (face_at_buffer_position): Fix int -> EMACS_INT position.
9753         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
9754         (select_frame_for_redisplay): Remove code duplication.
9755         (redisplay_internal): Adapt arg to call to clear_image_caches.
9757 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
9759         * s/vms4-0.h:
9760         * s/vms4-2.h:
9761         * s/vms4-4.h:
9762         * s/vms5-5.h: Remove, unused.
9764         * s/irix5-2.h:
9765         * s/irix6-0.h:
9766         * s/riscos5.h:
9767         * s/mach-bsd4-3.h:
9768         * m/mips4.h: Remove files for obsolete systems.
9770         * Makefile.in:
9771         * filelock.c:
9772         * unexmips.c:
9773         * m/hp9000s300.h:
9774         * m/iris4d.h:
9775         * s/aix3-1.h:
9776         * s/hpux.h:
9777         * s/msdos.h:
9778         * s/usg5-0.h:
9779         * s/usg5-2-2.h:
9780         * s/usg5-2.h:
9781         * s/usg5-3.h: Remove references to obsolete variables.
9783         * s/irix5-0.h: Remove, move all the contents ...
9784         * s/irix6-5.h: ... here.  Simplify.
9785         * config.in: Regenerate.
9787 2008-02-24  Jason Rumney  <jasonr@gnu.org>
9789         * w32term.c (x_draw_glyph_string_background): Clear the background
9790         manually when cleartype is in use.
9791         (x_draw_glyph_string_foreground): Draw text transparently when
9792         cleartype is in use.
9794         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
9795         a font into it unless we have to.
9797 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9799         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
9800         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
9802 2008-02-18  Jason Rumney  <jasonr@gnu.org>
9804         * w32fns.c (Fw32_shell_execute): Encode parameters.
9806 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
9808         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
9810 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
9812         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
9814 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
9816         * xterm.c (x_set_offset): Don't change the gravity if
9817         CHANGE_GRAVITY is -1.
9819 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
9821         * fileio.c (auto_save_error_occurred): New var.
9822         (auto_save_error): Set it.
9823         (Fdo_auto_save): Don't overwrite the error message if an auto-save
9824         error occurred.
9826 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
9828         * w32.c (globals_of_w32): Add initializations for
9829         g_b_init_get_sid_sub_authority and
9830         g_b_init_get_sid_sub_authority_count.
9832 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
9834         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
9835         (font_parse_xlfd): Use them for sanity check.
9836         (Finternal_set_font_style_table): Make sure the table is bijective.
9838         Consolidate the image_cache to the terminal struct.
9839         * termhooks.h (P_): Remove redundant def.
9840         (struct terminal): New field `image_cache'.
9841         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
9842         of FRAME_X_IMAGE_CACHE.
9843         * xterm.h (struct x_display_info): Remove image_cache field.
9844         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
9845         * w32term.h (struct w32_display_info): Remove image_cache field.
9846         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
9847         * macterm.h (struct mac_display_info): Remove image_cache field.
9848         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
9849         * xterm.c (x_term_init):
9850         * w32term.c (w32_term_init):
9851         * macterm.c (mac_term_init): Set the image_cache in the terminal.
9852         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
9853         Remove declarations.
9854         (clear_image_caches, mark_image_cache): New declarations.
9855         * xfaces.c (clear_face_cache):
9856         * xdisp.c (redisplay_internal): Use clear_image_caches.
9857         * image.c (clear_image_cache): Don't check that a frame is on
9858         a window-system before checking if it shares the same cache.
9859         (clear_image_caches): New function.
9860         (Fclear_image_cache): Use it.
9861         (mark_image): Move from allo.c.
9862         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
9863         * alloc.c (mark_image, mark_image_cache): Move to image.c.
9864         (mark_object): Don't call mark_image_cache for frames.
9865         (mark_terminals): Call mark_image_cache.
9867         * lisp.h (Fdelete_terminal): Declare.
9869         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
9870         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
9871         wrong_type_argument.
9873 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
9875         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
9876         malayalam.el, and tamil.el.  Add sinhala.el.
9878 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9880         * xterm.c (x_connection_closed): Consolidate identical tests.
9881         (x_delete_terminal): Don't crash if called via x_connection_closed.
9883 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
9885         * xdisp.c (decode_mode_spec): New arg string.
9886         (display_mode_element): Adjust for the above change.
9888 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9890         * callint.c (Fcall_interactively): Use AREF.
9892 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9894         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
9896 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
9898         * xfns.c (Fx_show_tip): Set string to " " if empty.
9900 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
9902         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
9903         with Qt.
9905 2008-02-17  Kenichi Handa  <handa@m17n.org>
9907         * ftfont.c (ftfont_shape): Return Lispy number.
9909         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
9910         for GCs.
9911         (Finternal_set_font_selection_order): Call font_update_sort_order
9912         only when enable_font_backend is set.
9913         (realize_x_face): Set face->font_info to that of default face only
9914         when enable_font_backend is set.
9916         * xdisp.c (handle_composition_prop): Set it->c to the fist
9917         character of the composed region.
9918         (fill_composite_glyph_string): Set base_face->font_info to
9919         s->font_info.  Get a face for ascii from base_face->ascii_face.
9920         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
9921         with a face already decided.
9922         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
9923         non-negative.
9924         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
9925         call font_prepare_composition unconditionally.
9927         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
9929         * xterm.h (struct x_display_info): New member font.
9931         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
9932         (x_set_mouse_face_gc, x_new_font): Likewise.
9933         (x_term_init): Setup display_info->font.
9934         (x_delete_terminal): Free display_info->font.
9936         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
9938         * ftxfont.c (ftxfont_default_fid): Delete it.
9939         (ftxfont_open): Set xfont->fid to 0.
9940         (ftxfont_end_for_frame): Clear data specific to the frame and the
9941         font-driver.
9943         * xftfont.c (xftfont_default_fid): Delete it.
9944         (xftfont_open): Set xfont->fid to 0.
9946         * fontset.c (FONTSET_OBJLIST): New macro.
9947         (fontset_find_font): Update font-object list of the fontset.
9948         (free_realized_fontset): New function.
9949         (free_face_fontset): Call free_realized_fontset.
9950         (Ffont_info): Call font_close_object only when enable_font_backend
9951         is set.
9953         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
9954         [HAVE_NTGUI]: Include w32term.h.
9955         [MAC_OS]: Include macterm.ch.
9956         (font_otf_ValueRecord): Use make_number.
9957         (font_finish_cache): Fix handling of reference count.
9958         (font_clear_cache): Update num_fonts.
9959         (font_open_entity): Update smallest_char_width and
9960         smallest_font_height of the frame.
9961         (font_close_object): Update num_fonts.
9962         (Fclear_font_cache): Fix finding the target cache data.
9964 2008-02-16  Glenn Morris  <rgm@gnu.org>
9966         * fontset.c (Finternal_char_font): Fix compilation warning.
9968 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
9970         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
9971         instead of char arrays.  Enlarge the size of array passed to
9972         get_token_information.
9974         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
9975         warnings.
9977 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
9979         * .gdbinit: Don't set `args', it breaks gdb --args.
9981 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
9983         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
9984         within a narrowed buffer.
9986 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
9988         * coding.c (decode_coding_object, encode_coding_object):
9989         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
9991 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9993         * coding.c (coding_set_destination): Use BEG_BYTE rather than
9994         hardcoding 1.
9995         (detect_coding_system):
9996         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
9997         (string_char_to_byte, string_byte_to_char, insert_from_gap):
9998         * insdel.c (insert_from_gap):
9999         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10000         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10001         (string_to_multibyte):
10002         * character.c (chars_in_text, multibyte_chars_in_text):
10003         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10005         * character.h (FETCH_STRING_CHAR_ADVANCE)
10006         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10007         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10008         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10010         * casefiddle.c (casify_region): Only call after-change and composition
10011         functions on the part of the region that was changed.
10013         * keyboard.c (read_avail_input):
10014         * frame.c (Fdelete_frame): Call Fdelete_terminal.
10016 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10018         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10019         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10021 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
10023         * w32menu.c (push_submenu_start, push_submenu_end)
10024         (push_left_right_boundary, push_menu_pane, push_menu_item):
10025         * keyboard.c (read_key_sequence): Don't pass args with side effects
10026         to AREF, it fails when compiling with -DENABLE_CHECKING.
10028 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
10030         * Makefile.in (${lispsource}international/charprop.el):
10031         Delete this target.
10033         * search.c (boyer_moore): Fix incorrect synching of the trunk and
10034         emacs-unicode-2.
10036 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10038         * terminal.c (Fdelete_terminal): Clean up the `force' path.
10040 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10042         * frame.c (Qnoelisp): New symbol.
10043         (syms_of_frame): Initialize it.
10044         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10045         harmless Elisp code, from a strong `force' from x_connection_closed.
10046         * frame.h (Qnoelisp): Declare.
10047         * xterm.c (x_connection_closed): Pass `noelisp'.
10049         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10050         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10051         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10052         rather than `int' for the type of `type'.
10054 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
10056         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10058         * Makefile.in (GNUC): Remove support for gcc-1.x.
10060 2008-02-10  Richard Stallman  <rms@gnu.org>
10062         * lisp.h (ASET): Use AREF, not ASLOT.
10064 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10066         * lisp.h (ASET): Check bounds.
10068 2008-02-10  Glenn Morris  <rgm@gnu.org>
10070         * buffer.c (mode-name): Doc fix.
10072 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
10074         * Makefile.in:
10075         * emacs.c:
10076         * gmalloc.c:
10077         * keyboard.c:
10078         * lisp.h:
10079         * m/ibm370aix.h:
10080         * process.c:
10081         * regex.c:
10082         * s/hpux.h:
10083         * sysdep.c:
10084         * sysselect.h:
10085         * systty.h:
10086         * unexec.c:
10087         * w32term.c:
10088         * xsmfns.c:
10089         * xterm.c: Remove code that deals with obsolete variables.
10091         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10093         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10094         nothing else needs it anymore.
10096 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
10098         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10099         instead of unibyte_char_to_multibyte.
10101 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
10103         * s/gnu-linux.h: Remove commented out code.
10105         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10107         * Makefile.in: Update what RMS says about using autoconf.
10108         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10109         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10110         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10111         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10113 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
10115         * keymap.c (Fkey_description): Move side effect outside of macro call.
10117         * xfaces.c (Finternal_make_lisp_face):
10118         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10120         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10121         (syms_of_fontset): Use ASET.
10123         * fns.c (concat): Move side effect outside of macro call.
10124         (hash_clear): Use ASET.
10126 2008-02-08  Richard Stallman  <rms@gnu.org>
10128         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10129         If FORCE, and frame has a surrogate minibuffer for another frame,
10130         delete the other frame first.
10132 2008-02-07  Timo Savola  <timo.savola@iki.fi>
10134         * xterm.c (x_detect_focus_change): Handle embed client message.
10135         (handle_one_xevent): Ditto.
10136         (handle_one_xevent): If embedded and we get a button press/release,
10137         request focus.
10138         (xembed_set_info, xembed_send_message): New functions.
10139         (x_make_frame_visible): Call xembed_set_info if embedded.
10140         (x_make_frame_invisible): Call xembed_set_info if embedded.
10141         (x_term_init): Initialize Xatom_XEMBED.
10142         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10143         (x_iconify_frame): Ditto.
10145         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10146         (enum xembed_info, enum xembed_message, enum xembed_focus)
10147         (enum xembed_modifier, enum xembed_accelerator): New.
10148         (xembed_set_info, xembed_send_message): Declare.
10149         (FRAME_X_EMBEDDED_P): New.
10151         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10152         gtk_plug_new.
10154         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10155         window ID of a frame.
10156         (x_window): Reparent frame if embedded.
10157         (Fx_create_frame): Don't set border width if embedded.
10159         * emacs.c (USAGE3): Add --parent-id.
10160         (standard_args): Ditto.
10162 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
10164         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10166 2008-02-07  Jim Meyering  <meyering@redhat.com>
10168         Use "do...while (0)", not "if (1)...else" in macro definitions.
10169         The latter provokes a warning from gcc about the empty else, when
10170         followed by ";".  Also, without that trailing semicolon, it would
10171         silently swallow up any following statement.
10172         * syntax.h (SETUP_SYNTAX_TABLE)
10173         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10174         * buffer.h (DECODE_POSITION): Likewise.
10175         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10176         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10177         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10178         (FETCH_CHAR_ADVANCE): Likewise.
10179         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10181 2008-02-07  Jim Meyering  <meyering@redhat.com>
10183         * lread.c [lint]: Don't include <sys/inode.h>.
10185 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
10187         * xselect.c (x_handle_dnd_message):
10188         * xmenu.c (digest_single_submenu, xmenu_show):
10189         * xdisp.c (with_echo_area_buffer_unwind_data)
10190         (format_mode_line_unwind_data, unwind_format_mode_line)
10191         (display_menu_bar):
10192         * eval.c (Ffetch_bytecode):
10193         * doc.c (store_function_docstring):
10194         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10195         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10196         * buffer.c (add_overlay_mod_hooklist): Use ASET.
10198 2008-02-07  Kenichi Handa  <handa@m17n.org>
10200         * ftxfont.c (ftxfont_open): Don't set
10201         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10203         * ftfont.c (ftfont_open): Fix previous change.
10205 2008-02-06  Jason Rumney  <jasonr@gnu.org>
10207         * w32font.c (w32font_text_extents): Fill in lbearing metric.
10208         Use cached metrics for ASCII characters.
10209         (w32font_open_internal): Don't set font's owning_frame.
10210         Cache metrics for ASCII characters.
10212         * w32font.h (struct w32font_info): Add ascii_metrics.
10213         Remove owning_frame.
10215 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
10217         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10218         to negative value.
10220         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10222         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10224         * charset.c (syms_of_charset): Set QCtest and Qeq.
10226 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
10228         * process.c (Fstart_process):
10229         * callproc.c (Fcall_process): Handle the case where
10230         Funhandled_file_name_directory returns nil.
10232         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10233         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10234         * font.c (check_gstring): Use them and AREF to access the vector before
10235         we know it's really a gstring.
10236         (Ffont_shape_text): Fix typo.
10237         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
10239         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10240         Declare.
10242         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10244 2008-02-05  Jason Rumney  <jasonr@gnu.org>
10246         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10247         Set smallest_font_height and smallest_char_width in display info.
10249 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
10251         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10253 2008-02-05  Miles Bader  <miles@gnu.org>
10255         * xfaces.c (get_lface_attributes, merge_named_face)
10256         (lookup_named_face, lookup_derived_face, realize_named_face):
10257         Revert 2008-02-01 change by cyd@stupidchicken.com.
10259 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
10261         * fontset.c (Ffontset_info): Handle the case of inhibitting the
10262         fallback fonts.
10263         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10265 2008-02-04  Jason Rumney  <jasonr@gnu.org>
10267         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10268         set full_name.
10269         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10271 2008-02-03  Jason Rumney  <jasonr@gnu.org>
10273         * makefile.w32-in (OBJ1): Include font.o here.
10274         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
10276 2008-02-02  Jason Rumney  <jasonr@gnu.org>
10278         * makefile.w32-in (temacs): Bump EMHEAP to 21.
10280 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10282         * s/cygwin.h: Define VIRT_ADDR_VARIES.
10284         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
10286 2008-02-01  Andreas Schwab  <schwab@suse.de>
10288         * Makefile.in (shortlisp, lisp): Update for rename of
10289         ../lisp/language/myanmar.el.
10291 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
10293         * xfaces.c (get_lface_attributes): Delete function.
10294         (merge_named_face, lookup_named_face, lookup_derived_face)
10295         (realize_named_face): Call lface_from_face_name directly, and use
10296         the fact that merge_face_vectors does not alter its FROM argument.
10298 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10300         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
10301         input in the default locale.  Handle non-Unicode multibyte input.
10303 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10305         * fontset.c (reorder_font_vector): Exclude nil elements from the
10306         font group.  Don't try multiple fonts.
10307         (fontset_font): Adjust for the above change.
10308         (Finternal_char_font): Return nil if the found font doesn't
10309         contain the character ch.
10311         * Makefile.in (lisp, shortlisp): Add cham.el.
10313 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10315         * font.h (FONTP): Make it return 1 also for a font-object.
10317         * .gdbinit (xfontset): New function.
10319         * font.c (font_find_for_lface): Check if the character C is
10320         supported or not only for the first font.
10322         * fontset.c (reorder_font_vector): Fix typo.
10323         (fontset_find_font): Don't add a font-spec specifying a script.
10324         Use 0 (not Qt) for the indication of empty font-group.  Change the
10325         format of RFONT-DEF.  Return Qt if no font in the font-group
10326         support the character.
10327         (fontset_font): Adjust for the above change.  If no font was
10328         found the character, remember that.
10329         (face_for_char): Adjust for the change of RFONT-DEF.
10330         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
10331         no font for the target.
10332         (Finternal_char_font): Adjust for the change of RFONT-DEF.
10334 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10336         * font.c (font_load_for_face): Handle the case that the font in
10337         face->lface is a string.
10339 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10341         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
10343 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10345         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
10346         Fix previous change.  If the frame is not on a window system,
10347         signal an error.
10349 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10351         * coding.c (decode_coding_object, encode_coding_object): Adjust
10352         marker positions after conversion.
10354         * lisp.h (struct Lisp_Marker): New member need_adjustment.
10356 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10358         * font.c (font_find_for_lface): Fix the handling of the return
10359         value of font_has_char.
10360         (Ffont_shape_text): Fix previous change.
10362         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
10363         (fontset_ref_and_range): Delete it.
10364         (fontset_find_font): Call char_table_ref_and_range instead of
10365         FONTSET_REF_AND_RANGE.
10366         (make_fontset): Don't setup font groups of Latin here.
10367         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
10368         (new_fontset_from_font): Make the specified font the default for
10369         all Latin characters.
10371 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10373         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
10374         is on a window system before accessing the fontset of the frame.
10376 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10378         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
10380         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
10381         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
10383         * font.c (Ffont_shape_text): If the font driver doesn't have a
10384         shaper function, make zero-width glyphs to have at least one-pixel
10385         width.  Fix setting of `to' field of glyphs.
10387 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10389         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
10390         glyphs.
10392         * font.h (struct font_driver): Improve docstring of member `shape'.
10394 2008-02-01  Kenichi Handa  <handa@m17n.org>
10396         * composite.c (syms_of_composite): Fix docstring of
10397         auto-composition-function.
10399         * font.h (LGLYPH_SIZE): New macro.
10401         * font.c (Ffont_fill_gstring): Stop filling when a character not
10402         supported by the font is found.
10403         (Ffont_shape_text): When a shape callback function returns nil,
10404         try at most two more times with larger gstring.
10405         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
10407         * xdisp.c (handle_auto_composed_prop): Change the argument to
10408         auto-composition-function.
10410         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
10411         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
10412         Lispy glyph and store it in the lgstring.
10414         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
10416         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
10418 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10420         * font.c (Ffont_shape_text): Avoid unnecessary composition.
10422         * fontset.c (Vfont_encoding_charset_alist): New variable.
10423         (syms_of_fontset): DEFVAR it.
10424         (reorder_font_vector, fontset_find_font): Optimize for the case of
10425         no need of reordering.
10426         (face_for_char): Map the charset property by
10427         Vfont_encoding_charset_alist.
10429 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10431         * w32font.c (logfonts_match): Don't check adstyle here.
10432         (font_matches_spec): Check here against physical font instead.
10433         (add_font_entity_to_list): Avoid some substitutions.
10435         * font.c (font_parse_fcname): Default weight and slant to normal.
10436         (font_score): Prefer normal fonts if weight or slant unspecified.
10437         (font_score) [WINDOWSNT]: Scale weight difference down to closer
10438         match freetype scores.
10440 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10442         * w32font.c (w32font_text_extents): Don't use the frame stored in the
10443         font, as it may have been deleted.
10444         (w32_enumfont_pattern_entity): Map generic family to adstyle using
10445         most common hyphenless variation.
10446         (logfonts_match): Check generic family.
10447         (font_matches_spec): Don't check generic family here.
10448         (fill_in_logfont): Set generic family based on adstyle.
10450         * w32font.h (w32font_get_cache): Update declaration.
10452 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10454         * ftfont.c (ftfont_get_cache): Adjust the argument type.
10456         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
10457         If none of the new drivers are available, call font_update_drivers
10458         with the old drivers.
10460         * w32font.c (w32font_get_cache): Adjust the argument type.
10462         * xfont.c (xfont_get_cache): Adjust the argument type.
10464         * font.h (struct font_driver): Change argument type of get_cache.
10466         * xftfont.c (xftfont_start_for_frame): Delete prototype.
10468         * font.c (Ffont_get): Fix arguments to Fassoc.
10469         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
10470         (font_clear_cache): New function.
10471         (font_list_entities, font_matching_entity): Use font_get_cache.
10472         (font_update_drivers): Call font_clear_cache when finishing a driver.
10474         * fontset.c (fontset_find_font): Fix previous change.
10476 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10478         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
10479         dpyinfo->font_table.
10480         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
10481         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
10483         * font.c (font_at): Handle the case that the arg C is negative.
10484         Handle the unibyte case.
10485         (Ffont_at): Call font_at with the arg C -1.
10487         * xdisp.c (handle_auto_composed_prop): Don't get a character at
10488         the position here, and call font_at with the arg C -1.
10489         Don't check the range of the existing composition at the point.
10491 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10493         * fontset.c (fontset_add): New args charset_id and family.
10494         Change caller.
10495         (load_font_get_repertory, fontset_find_font): Assume that
10496         font_spec is always a font-spec object.
10497         (Fset_fontset_font): Always store a font-spec object in a fontset.
10499         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
10500         instead of get_property_and_range.
10502 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10504         * xftfont.c (struct xftfont_info): Delete the member ft_face.
10505         (xftfont_open): Don't keep locking face.
10506         (xftfont_close): Don't unlock face.
10507         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
10509         * fontset.c (fontset_find_font): Don't prefer a font of
10510         supplementary charset.
10512 2008-02-01  Kenichi Handa  <handa@m17n.org>
10514         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
10515         script, langsys_tag to langsys, new member script.
10516         (OTF_TAG_STR): Terminate by '\0'.
10517         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
10518         listing to the script specified in that property.  Fix arg to
10519         OTF_check_features.
10521 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10523         * w32font.h: New file.
10525         * w32font.c: Include it.
10526         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
10527         (w32font_open): Set owning_frame.
10528         (w32font_text_extents): Use owning_frame.
10529         (struct font_callback_data): Add opentype_only field.
10530         (add_font_entity_to_list): Use it to filter fonts.
10531         Don't check against full name.
10532         (w32font_list_internal): New function.
10533         (w32font_list): Use it.
10534         (w32font_match_internal): New function.
10535         (w32font_match): Use it.
10536         (w32font_open_internal): New function.
10537         (w32font_open): Use it.
10538         (w32font_get_cache, w32font_close, w32font_has_char)
10539         (w32font_encode_char, w32font_text_extents, w32font_draw):
10540         Make non-static.
10542         * makefile.w32-in (w32font.o): Depend on w32font.h.
10544 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10546         * charset.c (Fdefine_charset_internal): Record a supplementary
10547         charset at the tail of Vcharset_order_list.
10549         * font.c (Ffont_shape_text): Fix the return value.
10551         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
10553         * xdisp.c (handle_auto_composed_prop): Fix previous change.
10555 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10557         * ftfont.c (struct OpenTypeSpec): New struct.
10558         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
10559         (ftfont_get_open_type_spec): New function.
10560         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
10562         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
10564 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10566         * w32font.c (add_font_entity_to_list): Compare only the beginning
10567         of full name.
10569 2008-02-01  Kenichi Handa  <handa@m17n.org>
10571         * xdisp.c (handle_auto_composed_prop): Simplify the code.
10572         Never return HANDLED_RECOMPUTE_PROPS.
10574 2008-02-01  Kenichi Handa  <handa@m17n.org>
10576         * font.c (font_gstring_produce): Delete it.
10578         * composite.h (COMPOSITION_METHOD):
10579         Handle COMPOSITION_WITH_GLYPH_STRING.
10581 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10583         * xfont.c (Qx): Delete.
10584         (syms_of_xfont): Don't initialize Qx.
10586         * composite.h (enum composition_method):
10587         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
10589 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10591         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
10592         (choose_face_font): Accept new form of font-spec.
10594         * frame.h (font_driver_list): Declare it unconditionally.
10595         (struct frame): Define members font_driver_list and font_data_list
10596         unconditionally.
10598         * fontset.c: Include "font.h" unconditionally.
10599         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
10600         (Fset_fontset_font): Accept a font-spec object.
10602         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
10603         PIXEL_SIZE part a wild card.
10605         * dispextern.h (struct glyph_string): Define members clip and
10606         num_clips unconditionally.
10607         (struct face): Define members font_info and extra unconditionally.
10609         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
10610         ftfont_info only when HAVE_LIBOTF is defined.
10612 2008-02-01  Andreas Schwab  <schwab@suse.de>
10614         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
10615         and end.
10617 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10619         * w32font.c (w32font_driver): Add new fields.
10621 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10623         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
10624         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
10625         (LIBES): Add @M17N_FLT_CFLAGS@.
10627         * composite.c (compose_text): Don't treat the new style
10628         composition specially.
10630         * emacs.c (main): Call syms_of_font unconditionally.
10632         * font.h (FONT_ENTITY_NOT_LOADABLE)
10633         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
10634         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
10635         (struct font_driver): New member shape.
10636         (font_registry_charsets): Extern it.
10637         (font_find_for_lface, font_prepare_composition): Adjust prototype.
10638         (font_otf_capability, font_drive_otf): Delete their externs.
10640         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
10641         (font_charset_alist, font_registry_charsets): Move from xfont.c
10642         and rename.
10643         (font_prop_validate_otf): New function.
10644         (font_property_table): Register it for QCotf.
10645         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
10646         (font_drive_otf): Delete.
10647         (font_prepare_composition): New arg F.  Adjust for the change of
10648         lispy gstring.
10649         (font_find_for_lface): New arg C.
10650         (font_load_for_face): Adjust for the change of font_find_for_lface.
10651         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
10652         lispy gstring.
10653         (Ffont_shape_text): New function.
10654         (Fopen_font): If the font size is not given, use 12-pixel.
10655         (Ffont_at): New arg STRING.
10656         (syms_of_font): Initalize font_charset_alist.
10657         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
10658         conditionally.
10660         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
10661         fonts of the same font-spec.  Change the format of RFONT-DEF.
10662         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
10663         Adjust for the change of RFONT-DEF.
10664         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
10666         * ftfont.h: New file.
10668         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
10669         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10670         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10671         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
10672         font_otf_capability and font_drive_otf, set ftfont_shape.
10673         (ftfont_list): Adjust for the change of :otf property value.
10674         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
10675         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
10676         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
10677         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10678         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
10679         (otf_gstring, gstring, m17n_flt_initialized): New variables.
10681         * w32term.c (x_draw_composite_glyph_string_foreground):
10682         Adjust for the change of lispy gstring.
10684         * xdisp.c (handle_composition_prop): Adjust for the change of
10685         lispy gstring.  Call a function for auto-composition with the
10686         third arg it->window.
10687         (fill_composite_glyph_string): Adjust for the change of lispy string.
10688         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
10690         * xfaces.c (set_font_frame_param): Adjust for the change of
10691         font_find_for_lface.
10693         * xfont.c (x_font_charset_alist): Move to font.c and rename.
10694         (xfont_registry_charsets): Likewise.  Change caller.
10695         (syms_of_xfont): Don't handle x_font_charset_alist.
10697         * xftfont.c: Include "ftfont.h".
10698         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
10699         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
10700         (xftfont_close) [HAVE_LIBOTF]: Close otf.
10701         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
10702         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
10703         Set xftfont_driver.shape to xftfont_shape.
10705         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10706         the change of lispy gstring.
10708 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10710         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
10712 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10714         * w32font.c (w32font_draw): Fill background manually.
10716 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10718         * font.c (Qfontp): Remove unused symbol.
10719         (QCantialias): New symbol.
10720         (syms_of_font): Define it.
10721         (font_property_table): Set a validator for QCantialias.
10723         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
10724         Define if not already.
10725         (QCfamily): Share with xfaces.c.
10726         (Qstandard, Qsubpixel, Qnatural): New symbols.
10727         (syms_of_w32font): Define them.  Don't define QCfamily here.
10728         (w32_antialias_type, lispy_antialias_type): New functions.
10729         (w32_enumfont_pattern_entity): New arg requested_font.
10730         Set antialias parameter if non-default was requested.
10731         (fill_in_logfont): Fill in lfQuality if :antialias specified.
10733 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10735         * lread.c (read1): Undo the previous change.
10737 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
10739         * frame.c (Fdelete_frame): Call font_update_drivers only when
10740         USE_FONT_BACKEND is defined.
10742 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10744         * font.h (struct font_bitmap): New member bits_per_pixel.
10745         (struct font_driver): New members start_for_frame and end_for_frame.
10746         (struct font_data_list): New struct.
10747         (font_put_frame_data, font_get_frame_data): Extern them.
10749         * frame.h (struct frame): New member font_data_list.
10751         * font.c (font_update_drivers): Call driver->start_for_frame and
10752         driver->end_for_frame at proper timings.
10753         (font_put_frame_data, font_get_frame_data): New functions.
10754         (Ffont_spec): Add usage in the docstring.
10756         * frame.c (make_frame): Initialize f->font_data_list to NULL.
10757         (Fdelete_frame): Call font_update_drivers.
10759         * xftfont.c (struct xftface_info): Delete the member xft_draw.
10760         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
10761         (xftfont_get_xft_draw): New function.
10762         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
10763         (xftfont_end_for_frame): New function.
10764         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
10766         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
10767         Change argument.  Cache GCs in the per-frame data.
10768         (struct ftxfont_frame_data): New struct.
10769         (ftxfont_draw_bitmap): New arg gc_fore and flush.
10770         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
10771         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
10772         (ftxfont_end_for_frame): New function.
10773         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
10775         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
10777 2008-02-01  Kenichi Handa  <handa@m17n.org>
10779         * xselect.c (Vselection_coding_system)
10780         (Vnext_selection_coding_system): Delete them.
10781         (syms_of_xselect): Don't declare selection-coding-system and
10782         next-selection-coding-system.  They are declared in select.el.
10784 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10786         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
10788         * w32fns.c: Include imm.h.
10789         (get_composition_string_fn, get_ime_context_fn): New optional
10790         system functions.
10791         (globals_of_w32fns): Load them from imm32.dll.
10792         (ignore_ime_char): New flag.
10793         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
10794         WM_IME_ENDCOMPOSITION messages.
10796         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
10797         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
10799 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10801         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
10802         (READCHAR_REPORT_MULTIBYTE): New macro.
10803         (readchar): New 2nd arg MULTIBYTE.
10804         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
10805         Make symbol's name multibyte according to the multibyteness of the
10806         source.
10808 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10810         * xfaces.c (face_for_overlay_string): Call lookup_face with
10811         correct arguments (fix of synching with the trunk).
10813 2008-02-01  Kenichi Handa  <handa@m17n.org>
10815         * font.c (font_prop_validate_symbol, font_prop_validate_style)
10816         (font_prop_validate_non_neg, font_prop_validate_spacing):
10817         Delete argument prop_index.
10818         (font_property_table): Change arguments to validater.  Change Callers.
10819         (font_lispy_object): Delete.
10820         (font_at): Use font_find_object instead fo font_lispy_object.
10822 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
10824         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
10825         and file names.
10827 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10829         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
10830         (font_matches_spec): Remove debug output.
10831         (add_font_entity_to_list): Avoid using substituted fonts.
10833 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10835         * doc.c (Fsnarf_documentation):
10836         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
10838 2008-02-01  Miles Bader  <miles@gnu.org>
10840         * dispextern.h (struct glyph_row): Only define "clip" field if
10841         HAVE_WINDOW_SYSTEM is defined.
10843 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
10845         Fix up multi-tty merge.
10847         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
10848         and indentation.
10850         * xfaces.c (free_realized_face, clear_face_gcs):
10851         Include font_done_for_face in the input_blocked section, just in case.
10853         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
10854         (get_char_face_and_encoding): Undo last change and remove the *other*
10855         duplicate definition (i.e. keep the one that's better scoped and that
10856         includes code for the font-backend).
10858         * terminal.c (create_terminal): Default keyboard_coding to
10859         `no-conversion' and terminal_coding to `undecided'.
10861         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
10863         * fontset.c (free_realized_fontsets): Check that the table entry does
10864         contain a fontset before trying to compare it to `base'.
10866         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
10867         syms_of_charset, and syms_of_coding earlier because init_window_once
10868         now needs Vcoding_system_hash_table to be setup.
10870         * coding.h (default_buffer_file_coding): Remove.
10872         * coding.c (default_buffer_file_coding): Remove.
10873         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
10874         than ->symbol, and use the terminal-local coding system.
10875         (syms_of_coding): Don't setup the coding-systems that are not
10876         terminal-local.
10877         (Fdefine_coding_system_internal): Use XCAR/XCDR.
10879         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
10880         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
10882         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
10883         in chartab.c and were re-added here by mistake.
10884         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
10886         * doc.c (Fsnarf_documentation):
10887         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
10888         src to etc.
10890         * ChangeLog.10: Add mistakenly removed entry.
10892 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
10894         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
10896 2008-02-01  Miles Bader  <miles@gnu.org>
10898         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
10899         Add extra args to FACE_FOR_CHAR.
10901 2008-02-01  Kenichi Handa  <handa@m17n.org>
10903         * keymap.c (where_is_internal_1): If key is a cons, store the copy
10904         in sequence.
10906         * chartab.c (map_sub_char_table, map_char_table): If the range
10907         contains just one character, call the function with that character
10908         even if the depth is not 3.
10910 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10912         * w32font.c (w32font_text_extents): Calculate metrics for the
10913         whole string.
10915 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10917         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
10919 2008-02-01  Jason Rumney  <jasonr@gnu.org>
10921         * w32term.c (x_set_glyph_string_clipping): Use
10922         get_glyph_string_clip_rects.
10923         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10924         Adjust for the change of struct glyph_string.
10926         * w32font.c (w32font_draw): Do clipping here.
10928 2008-02-01  Kenichi Handa  <handa@m17n.org>
10930         * xftfont.c (xftfont_draw): Adjust for the change of struct
10931         glyph_string.
10933         * xterm.c (x_set_glyph_string_clipping): Use
10934         get_glyph_string_clip_rects.
10935         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
10936         Adjust for the change of struct glyph_string.
10938         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
10939         the resulting clip(s}.
10940         (expose_overlaps): Add arg r.  Change callers.  Set it to
10941         row->clip temporarily.
10942         (expose_window): Redraw rows overlapping the exposed area.
10944         * dispextern.h (struct glyph_row): New member clip.
10945         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
10946         clip_height, new member clip, and num_clips.
10948 2008-02-01  Kenichi Handa  <handa@m17n.org>
10950         * data.c (Fchar_or_string_p): Fix docstring.
10952 2008-02-01  Kenichi Handa  <handa@m17n.org>
10954         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
10955         create a temporary XftDraw object.
10957 2008-02-01  Kenichi Handa  <handa@m17n.org>
10959         * font.c (Ffontp): Fix docstring.
10961         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
10962         strong evidence of ISO-2022.
10964 2008-02-01  Kenichi Handa  <handa@m17n.org>
10966         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
10967         SYNTAX_ENTRY_FOLLOW_PARENT.
10969 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
10971         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
10972         its type.
10973         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
10974         Update to the new type of weak_hash_tables and next_weak.
10976         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
10977         a plain C pointer to Lisp_Hash_Table.
10979         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
10980         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
10981         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
10982         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
10983         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
10984         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
10985         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
10986         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
10987         (GC_EQ): Remove since they've been identical to their non-GC_
10988         alter-egos ever since the markbit was eradicated.
10990         * alloc.c:
10991         * buffer.c:
10992         * buffer.h:
10993         * data.c:
10994         * fileio.c:
10995         * filelock.c:
10996         * fns.c:
10997         * frame.h:
10998         * lisp.h:
10999         * macterm.c:
11000         * print.c:
11001         * process.c:
11002         * w32fns.c:
11003         * w32menu.c:
11004         * w32term.c:
11005         * xfns.c:
11006         * xmenu.c:
11007         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11009 2008-02-01  Kenichi Handa  <handa@m17n.org>
11011         * chartab.c (map_sub_char_table): Make it work for the top-level
11012         char-table.  Fix handling of parent char-table.
11013         (map_char_table): Adjust for the above change.
11015 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11017         * w32font.c (Qgdi): Rename from Qw32.
11019 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11021         * w32bdf.c (get_quoted_string): Make function static.
11023 2008-02-01  Kenichi Handa  <handa@m17n.org>
11025         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11026         bigger ascent and descent than those of the font, use them as
11027         font's ascent and descent.
11029 2008-02-01  Kenichi Handa  <handa@m17n.org>
11031         * Makefile.in (${lispsource}international/charprop.el): Move this
11032         target within "#ifdef HAVE_UNIDATA" and "#endif".
11034 2008-02-01  Kenichi Handa  <handa@m17n.org>
11036         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11037         (shortlisp): Add ../lisp/language/tai-viet.el.
11039 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
11041         * Makefile.in (${lispsource}international/charprop.el): Depend on
11042         temacs${EXEEXT}.
11044 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11046         * w32font.c (w32font_close): Delete the GDI font object.
11048         * w32menu.c: Include character.h.
11050         * w32proc.c: Likewise.
11052         * w32select.c: Likewise.
11054         * makefile.w32-in (w32proc.o): Depend on character.h.
11056 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11058         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11060         * w32menu.c (syms_of_w32menu): Likewise.
11062         * w32proc.c (syms_of_ntproc): Likewise.
11064         * w32select.c (syms_of_w32select): Likewise.
11066         * w32term.c (syms_of_w32term): Likewise.
11068 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11070         * w32font.c (w32font_draw): Delete brush after using it.
11072 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11074         * w32font.c (w32font_open): Don't set font_idx.
11075         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11076         to font settings.
11077         (w32font_draw): Fill background explicitly.
11079 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11081         * w32term.c (w32_initialize): Don't call w32font_initialize.
11083         * w32font.c (w32font_info): Remove subranges.
11084         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11085         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11086         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11087         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11088         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11089         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11090         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11091         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11092         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11093         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11094         New symbols.
11095         (font_callback_data): New struct.
11096         (w32font_list, w32font_match): Use it.
11097         (w32font_open): Don't populate subranges.
11098         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11099         (w32font_encode_char): Always return unicode code-point as-is.
11100         (w32font_text_extents): Supply a transformation matrix to
11101         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
11102         twice.  Use unicode version of GetTexExtentPoint32 instead of
11103         glyph index version.
11104         (set_fonts_frame): Remove.
11105         (w32_enumfont_pattern_entity): Add frame parameter, use it to
11106         set frame parameter.  Use backward compatible fake foundries.
11107         Save generic family in extra slot under QCfamily.  Make width slot
11108         constant.  Save QCspacing value.  Save list of scripts instead of
11109         binary subranges.
11110         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11111         (add_font_entity_to_list): Use font_callback_data struct.  Filter
11112         unwanted fonts.
11113         (add_one_font_entity_to_list): Use font_callback_data struct.
11114         (w32_registry): Default to iso10646_1.
11115         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
11116         string font registries.  Don't fill in font name if it is a generic
11117         family name, fill family instead.  Use spacing, family and script
11118         extra info to fill pitch, family and charset fields.
11119         (list_all_matching_fonts): Use font_callback_data struct.
11120         (unicode_range_for_char): Remove.
11121         (font_supported_scripts): New function.
11122         (w32font_initialize): Remove.
11123         (syms_of_w32font): Update which symbols are defined.
11125 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11127         * font.c (font_pixel_size): Reverse assq_no_quit args.
11129         * w32term.h (FONT_WIDTH): Report max width, not average.
11130         (FONT_MAX_WIDTH): Remove.
11131         (FONT_AVG_WIDTH): New macro.
11133         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11134         redefinition of FONT_WIDTH.
11136         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11137         (w32_cache_char_metrics): Use FONT_WIDTH.
11139         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11141 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11143         * w32font.c (w32font_open): Make lfHeight negative.
11145         * w32fns.c (x_default_font_parameter): Use new style font name.
11146         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11148 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11150         * w32font.c (QCsubranges): New symbol.
11151         (w32font_open, w32font_has_char): Get subranges from subproperty
11152         of extra.
11153         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11154         (syms_of_w32font): Define :subranges symbol.
11156         * font.c (font_put_extra): Expose externally.
11158         * font.h (font_put_extra): Move declaration from font.c.
11160         * font.c (Ffont_get): Use font driver to determine otf capability.
11161         (adjust_anchor): Check if driver defines anchor_point before using.
11163         * w32font.c (w32font_open): Handle size, height and pixel_size better.
11164         (w32font_draw): Use options.
11165         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11166         Fix detection of truetype fonts.
11167         (registry_to_w32_charset): Handle charsets other than iso8859-1
11168         expressed as lisp symbols.
11169         (w32_registry): Express charset as lisp symbol.
11170         (fill_in_logfont): Reverse pixel and point height logic.
11171         Don't set width here.  Set quality to default.
11173         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11174         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11176         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11177         Remove redundant loop and allocation.
11179         * makefile.w32-in (font.o, w32font.o): New objects.
11180         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11181         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11183         * xdisp.c (fill_composite_glyph_string): Make the first arg to
11184         STORE_XCHARB a valid l-value.
11186         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11187         calculations for non-Truetype fonts.
11188         (x_draw_glyph_string): Sync with xterm.c.
11189         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11190         Remove redundant code.
11191         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11193         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11194         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11196         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11197         (x_to_w32_charset, w32_to_x_charset): Expose externally.
11199         * w32font.c: New file for w32 font backend.
11201 2008-02-01  Kenichi Handa  <handa@m17n.org>
11203         * term.c: Don't include "buffer.h" twice.
11205 2008-02-01  Kenichi Handa  <handa@m17n.org>
11207         * character.c (Funibyte_string): New function.
11208         (syms_of_character): Defsubr it.
11210 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11212         * w32term.c [USE_FONT_BACKEND]:
11213         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11214         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11215         (x_draw_glyph_string, x_draw_glyph_string_foreground)
11216         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11217         (x_free_frame_resources): Sync with xterm.c.
11219 2008-02-01  Andreas Schwab  <schwab@suse.de>
11221         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11222         char-table size.
11224 2008-02-01  Kenichi Handa  <handa@m17n.org>
11226         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11228 2008-02-01  Kenichi Handa  <handa@m17n.org>
11230         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11231         font_otf_gpos, add font_drive_otf.
11233         * fontset.c (fontset_find_font): Pay attention to font size
11234         specified for a font.
11235         (reorder_font_vector): Check contents of font_def.
11237         * font.c (struct otf_list): Delete it.
11238         (otf_list): Make it a lisp variable.
11239         (otf_open): Use lispy otf_list.
11240         (generate_otf_features): Rename from parse_gsub_gpos_spec.
11241         (check_otf_features): New function.
11242         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11243         New functions.
11244         (font_drive_otf): New function merging font_otf_gsub and
11245         font_otf_gpos.
11246         (font_open_for_lface): New arg spec.  Change argument order.
11247         (font_load_for_face): Adjust for the change of font_open_for_lface.
11248         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11249         Ffont_otf_gpos.
11250         (syms_of_font): Staticpro otf_list.  Delete defsubr of
11251         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
11253         * xfaces.c (set_font_frame_param): Adjust for the change of
11254         font_open_for_lface.
11256         * font.h (font_open_for_lface): Adjust prototype.
11257         (struct font_driver): Delete members otf_gsub and otf_gpos, add
11258         member otf_drive.
11259         (font_otf_gsub, font_otf_gpos): Delete externs.
11260         (font_drive_otf): Extern it.
11262 2008-02-01  Kenichi Handa  <handa@m17n.org>
11264         * font.c (font_at): If the window W is not on a window system,
11265         return Qnil.
11267         * coding.c (produce_chars, encode_coding): Don't call
11268         insert_from_gap if no characters to produce.
11270 2008-02-01  Kenichi Handa  <handa@m17n.org>
11272         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
11273         Fclear_face_cache.
11275         * xfaces.c (face_for_font): Check also face->font==font->font.font.
11277 2008-02-01  Miles Bader  <miles@gnu.org>
11279         * emacs.c (main): Change default value of `enable_font_backend' to 1.
11280         Parse "--disable-font-backend" option.
11281         (standard_args): Add "--disable-font-backend" option.
11283 2008-02-01  Kenichi Handa  <handa@m17n.org>
11285         * fontset.c (fontset_find_font): New function.
11286         (fontset_font): Use fontset_find_font.
11287         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
11288         Register the specified font for all Latin characters.
11289         (new_fontset_from_font): Register the specified font for all Latin
11290         characters.
11291         (dump_fontset): For a realized fontset, include the base fontset
11292         name in the returned vector.
11294 2008-02-01  Kenichi Handa  <handa@m17n.org>
11296         * character.h (CHAR_STRING): Cast C to unsigned on calling
11297         char_string.
11299         * character.c (char_string): Type of arg C changed to unsigned.
11300         Signal an error if C is an invalid character code.
11302         * editfns.c (general_insert_function, Fchar_to_string):
11303         Use CHARACTERP, not INTEGERP.
11305 2008-02-01  Kenichi Handa  <handa@m17n.org>
11307         * character.h (MIN_MULTIBYTE_LEADING_CODE)
11308         (MAX_MULTIBYTE_LEADING_CODE): New macros.
11310         * regex.c (analyse_first): Fix for multibyte characters in "case
11311         charset:" and "case categoryspec:".
11313 2008-02-01  Andreas Schwab  <schwab@suse.de>
11315         * Makefile.in (LIBES): Move standard libraries to the end.
11317 2008-02-01  Kenichi Handa  <handa@m17n.org>
11319         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
11320         nonzero, don't shrink the buffer nextb.
11322         * buffer.h (struct buffer_text): New member inhibit_shrinking.
11324         * coding.c (coding_alloc_by_making_gap): New arg offset.
11325         (alloc_destination): Call coding_alloc_by_making_gap with the arg
11326         offset.
11327         (decode_coding_iso_2022): Update coding->safe_charsets.
11328         (decode_coding_gap): Temporarily set
11329         current_buffer->text->inhibit_shrinking to 1.
11331 2008-02-01  Kenichi Handa  <handa@m17n.org>
11333         * xterm.c (x_draw_composite_glyph_string_foreground): Fix
11334         indexing into elements of s->cmp and s->char2b.
11336 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
11338         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
11340 2008-02-01  Kenichi Handa  <handa@m17n.org>
11342         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
11343         target_multibyte instead of multibyte.
11344         (re_match_2_internal): Call bcmp_translate with target_multibyte.
11345         (bcmp_translate): Change the argument name from multibyte to
11346         target_multibyte.
11348 2008-02-01  Kenichi Handa  <handa@m17n.org>
11350         These changes are to compile a regexp into a pattern that can be
11351         used both for multibyte and unibyte targets.
11353         * Makefile.in (search.o): Depend on charset.h.
11355         * character.c (multibyte_char_to_unibyte_safe): New function.
11357         * search.c: Include "charset.h".
11358         (compile_pattern_1): Delete argument multibyte.  Don't set
11359         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
11360         (compile_pattern): Don't compare cp->buf.target_multibyte.
11361         Compare cp->buf.charset_unibyte.
11362         (compile_pattern): Set cp->buf.target_multibyte.
11364         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
11366         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
11368         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
11369         multibyte.  Change callers.
11370         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
11371         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
11372         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
11373         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
11374         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
11375         (regex_compile): Make the compiled pattern usable both for
11376         multibyte and unibyte targets.
11377         (analyse_first): Make the fastmap usable both for multibyte and
11378         unibyte targets.
11379         (TRANSLATE_VIA_MULTIBYTE): Delete.
11380         (re_match_2_internal): Pay attention to the case that the
11381         multibyteness of bufp and target may be different.
11383 2008-02-01  Kenichi Handa  <handa@m17n.org>
11385         * xdisp.c (x_produce_glyphs): When a font is not found, make the
11386         empty box occupy at least one column width.
11388 2008-02-01  Miles Bader  <miles@gnu.org>
11390         * Makefile.in: Remove redundant HAVE_XFT clause.
11392 2008-02-01  Kenichi Handa  <handa@m17n.org>
11394         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
11396 2008-02-01  Kenichi Handa  <handa@m17n.org>
11398         * fontset.c (Finternal_char_font): Fix for the case of POSITION
11399         being nil.
11401 2008-02-01  Kenichi Handa  <handa@m17n.org>
11403         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
11405 2008-02-01  Kenichi Handa  <handa@m17n.org>
11407         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
11409 2008-02-01  Kenichi Handa  <handa@m17n.org>
11411         * search.c (simple_search): Fix previous change.
11413 2008-02-01  Kenichi Handa  <handa@m17n.org>
11415         * xftfont.c (ftfont_font_format): Extern declaration.
11417         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
11419         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
11420         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
11422         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
11423         (ftfont_font_format): Fix previous change.
11425         * font.h (Ffont_xlfd_name): EXFUN it.
11427         * font.c (font_parse_xlfd): Fix the array size of `f'.
11428         (register_font_driver): Use EQ to compare driver->type.
11430         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
11431         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
11432         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
11434 2008-02-01  Kenichi Handa  <handa@m17n.org>
11436         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
11437         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
11439 2008-02-01  Kenichi Handa  <handa@m17n.org>
11441         * xfont.c (xfont_open): Set font->format.
11443         * xftfont.c (xftfont_open): Set font->format.
11445         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
11446         (ftfont_list): Include FC_FONTFORMAT in FcObject.
11447         (ftfont_open): Set font->format.
11448         (ftfont_font_format): New function.
11450         * font.h (struct font): New member format.
11452         * font.c (Qopentype): New variable.
11453         (syms_of_font): Defsym it.
11454         (Fquery_font): Change the format of the last element of the return
11455         value.
11457 2008-02-01  Kenichi Handa  <handa@m17n.org>
11459         * xfns.c (xic_create_xfontset): Try the default fontset name as a
11460         last resort.
11462 2008-02-01  Kenichi Handa  <handa@m17n.org>
11464         * coding.c (detect_coding_charset): Fix detection of multi-byte
11465         charset.
11467 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
11469         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
11471 2008-02-01  Kenichi Handa  <handa@m17n.org>
11473         * xdisp.c (get_next_display_element): Set it->face_id for the
11474         first component of a composition.
11475         (x_produce_glyphs): Check if the font is changed or not for composition.
11477 2008-02-01  Kenichi Handa  <handa@m17n.org>
11479         * fontset.c (Qlatin): New variable.
11480         (syms_of_fontset): Define it as a lisp symbol.
11481         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
11483 2008-02-01  Kenichi Handa  <handa@m17n.org>
11485         * font.c (font_unparse_fcname): Pay attention to the case that
11486         some of font property is a null string.
11488 2008-02-01  Kenichi Handa  <handa@m17n.org>
11490         * term.c: Include "composite.h".
11491         (encode_terminal_code): Output all components of composition.
11492         Check the size of encode_terminal_src.
11493         (produce_glyphs): For composition, call produce_composite_glyph.
11494         (append_composite_glyph, produce_composite_glyph): New functions.
11496         * xdisp.c (x_produce_glyphs): In handling composition, if a font
11497         is not found, get font_info from the current ascii face.
11499 2008-02-01  Kenichi Handa  <handa@m17n.org>
11501         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
11502         buffer-file-name to Qnil before calling insert_from_buffer.
11504         * font.c (font_unparse_fcname): Pay attention to the case that
11505         foundry is a null string.
11507 2008-02-01  Kenichi Handa  <handa@m17n.org>
11509         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
11511         * font.c (Qunicode_sip): New variable.
11512         (syms_of_font): Declare it as a Lisp symbol.
11514         * font.h (Qunicode_sip): Extern it.
11516 2008-02-01  Kenichi Handa  <handa@m17n.org>
11518         * composite.c (get_composition_id): Pay attention to TAB component.
11520         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
11521         TAB.  Adjust for the change of s->char2b which always points to
11522         the first element of allocated memory.
11524         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
11526         * xdisp.c (handle_composition_prop): Set it->c to the first
11527         non-TAB component.
11528         (fill_composite_glyph_string): Change argument.
11529         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
11530         (x_produce_glyphs): Fix handling of left/right padding.
11532 2008-02-01  Kenichi Handa  <handa@m17n.org>
11534         * coding.c (detect_coding_system): Fix for handling off
11535         inhibit_iso_escape_detection.  Fix for the case that no coding
11536         system is defined for a specific coding category.
11538 2008-02-01  Kenichi Handa  <handa@m17n.org>
11540         * font.c (font_matching_entity): Delete unused local var.
11542         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
11543         opening a font.
11545         * fileio.c (Finsert_file_contents): On recovering a file, assume
11546         Unix-like eol.
11547         (choose_write_coding_system): On auto-saving a file, force
11548         Unix-like eol.
11550         * coding.c (setup_coding_system): Fix setting of
11551         coding->common_flags based on eol_type.
11552         (coding_inherit_eol_type): If PARENT is not nil, be sure to
11553         inherit from it.
11555 2008-02-01  Kenichi Handa  <handa@m17n.org>
11557         * alloc.c (NSTATICS): Increas to 0x600.
11559 2008-02-01  Kenichi Handa  <handa@m17n.org>
11561         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
11562         (ftfont_list): Don't check :name property.
11563         (ftfont_match): New function.
11564         (ftfont_pattern_entity): If the pattern doesn't contain
11565         FC_SPACING, don't assume FC_MONO.
11567         * font.h (struct font_driver): New member `match'.
11568         (font_update_drivers): Adjust prototype.
11570         * font.c (font_parse_fcname, font_parse_name): Don't change :name
11571         property of FONT.
11572         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
11573         them unconditionally.
11574         (font_matching_entity): New function.
11575         (font_open_by_name): Try font_matching_entity if exact match is
11576         not found.
11577         (font_update_drivers): Delete the arg FONT.  Return a list of
11578         actually used backends.  Don't free faces, font caches here.
11579         Don't store data in frame parameters.  Don't call x_set_font.
11580         (Ffont_spec): Store :name property as is.
11581         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
11582         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
11583         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
11584         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
11585         Call font->driver->otf_gsub instead of font_otf_gsub.
11587         * frame.c (x_set_font_backend): Do more works that were done in
11588         font_update_drivers before.
11590         * xfont.c (xfont_match): New function.
11591         (xfont_driver): Set xfont_driver.match to xfont_match.
11592         (xfont_draw): Set font in GC if necessary.
11594         * ftxfont.c (ftxfont_match): New function.
11595         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
11597         * xftfont.c (xftfont_match): New function.
11598         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
11600 2008-02-01  Kenichi Handa  <handa@m17n.org>
11602         * font.h (struct font): New member scalable.
11603         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
11604         (font_otf_gsub): Adjust prototype.
11606         * font.c (font_otf_capability): Fix handling of the default langsys.
11607         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
11608         Check the contents of SPEC.
11609         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
11610         (check_gstring): New function.
11611         (REPLACEMENT_CHARACTER): New macro.
11612         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
11613         glyph codes of GSTRING.
11614         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
11615         (font_prepare_composition): Set cmp->glyph_len.
11616         (font_open_entity): Set font->scalable.
11617         (Ffont_get): Handle :otf property.
11618         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
11619         functions.
11620         (Fquery_font): Use font->font.full_name.
11621         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
11622         Sfont_otf_alternates.
11624         * ftfont.c (ftfont_open): Set font->font.full_name and
11625         font->font.name properly.  Fix calculation of font->font.height
11626         and font->min_width.
11628         * ftxfont.c (ftxfont_create_gcs): New function.
11629         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
11630         (ftxfont_draw_backgrond): Fix filling region.
11631         (ftxfont_default_fid): New function.
11632         (ftxfont_open): Set xfont->fid to the return value of
11633         ftxfont_default_fid.
11634         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
11635         (ftxfont_done_face): Free only GCs that are created by
11636         ftxfont_create_gcs.
11637         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
11639         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
11640         Clip to src->width, etc (not src->clip_XXX).
11642         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
11643         FontBackend frame parameter.
11645 2008-02-01  Kenichi Handa  <handa@m17n.org>
11647         * font.h (struct font_driver_list): New member `on'.
11648         (Fclear_font_cache): EXFUN it.
11649         (font_update_drivers): Extern it.
11651         * font.c (font_unparse_fcname): Fix typo (swidth->width).
11652         (font_list_entities): Check driver_list->on.
11653         (register_font_driver): Initalize `on' member to 0.
11654         (font_update_drivers): New function.
11655         (Fclear_font_cache): Check driver_list->on.
11657         * frame.h (Qfont_backend): Extern it.
11658         (x_set_font_backend): Extern it.
11660         * frame.c (Qfont_backend): New variable.
11661         (frame_parms): New element for font-backend.
11662         (x_set_font_backend): New function.
11664         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
11665         FontBackend frame parameter.
11666         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
11667         x_set_font_backend.
11669         * xfont.c (xfont_list): Don't try listing by :name property if the
11670         name is not for XLFD.
11672 2008-02-01  Kenichi Handa  <handa@m17n.org>
11674         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
11675         (LGLYPH_SET_TO): New macros.
11676         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
11677         element of G is vector or not.
11678         (font_at): Extern it.
11680         * font.c: Include window.h.
11681         (font_lispy_object): New function.
11682         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
11683         end of valid glyph.
11684         (font_close_object): Fix getting (struct font *).
11685         (font_at): New function.
11686         (Ffont_get): If FONT is a font-object, get entity from it.
11687         (Ffont_make_gstring): Initialize elements of glyphs with nil.
11688         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
11689         range check.
11690         (Ffont_at): New function.
11691         (syms_of_font): Defsubr Sfont_at.
11693         * xdisp.c (it_props): Move the entry for Qauto_composed to just
11694         before the entry for Qcomposition.
11695         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
11696         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
11697         the font in gstring.
11698         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
11699         LGLYPH_FORM (g) to detect the end of valid glyph.
11700         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
11701         we are composing with gstring.
11703         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
11704         Check if adjustment is vector or not.
11706         * Makefile.in (font.o): Make it depends on window.h.
11708 2008-02-01  Kenichi Handa  <handa@m17n.org>
11710         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
11711         adjustment is vector or not.
11713 2008-02-01  Miles Bader  <miles@gnu.org>
11715         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
11717 2008-02-01  Kenichi Handa  <handa@m17n.org>
11719         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
11720         (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
11721         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
11723         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
11724         (DEVICE_DELTA): Fix typo.
11725         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
11726         LGLYPH format.
11728         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11729         the change of LGLYPH format.
11731 2008-02-01  Kenichi Handa  <handa@m17n.org>
11733         * ftfont.c (ftfont_list): Fix typo.
11734         (ftfont_build_basic_charsets): Don't include letters with diacritics.
11736 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
11738         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
11740         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
11741         xftface_info is non-NULL.
11743 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
11745         * ftfont.c (ftfont_list): Move misplaced #endif.
11747 2008-02-01  Kenichi Handa  <handa@m17n.org>
11749         * ftfont.c (ftfont_list): Pay attention to the case that
11750         FC_CAPABILITY is not defined.
11752 2008-02-01  Kenichi Handa  <handa@m17n.org>
11754         * xftfont.c (xftfont_open): Set charset related members to -1.
11756         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
11757         QCname.
11758         (ftfont_open): Set charset related members to -1.
11760         * fontset.c (Votf_script_alist): New variable.
11761         (syms_of_fontset): Initialize it.
11762         (fontset_font): Delete unused variable.
11764         * fontset.h (Votf_script_alist): Extern it.
11766         * font.c (font_find_for_lface): Optimize code.
11768         * font.h (font_close_object, font_merge_old_spec): Extern them.
11770 2008-02-01  Kenichi Handa  <handa@m17n.org>
11772         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
11773         (syms_of_font): Initialize them.
11774         (font_pixel_size): Allow float value in dpi.
11775         (font_prop_validate_type): Delete.
11776         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
11777         Change caller.
11778         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
11779         (font_prop_validate_extra): Delete.
11780         (font_prop_validate_spacing): New function.
11781         (font_property_table): Add elements for all known properties.
11782         (get_font_prop_index): Rename from check_font_prop_name.  New
11783         argument FROM.  Change caller.
11784         (font_prop_validate): Validate all known properties.
11785         (font_put_extra): Delete argument force.  Change caller.
11786         (font_expand_wildcards): Make it static.  Fix the way of shrinking
11787         the possible range.
11788         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
11789         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
11790         Change caller.
11791         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
11792         (font_parse_fcname): Delete argument merge.  Fix parsing of point
11793         size.  Don't validate properties values here.  Change caller.
11794         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
11795         (font_open_by_name): Delete unused variable.
11796         (Ffont_spec): Likewise.  Validate property values.
11797         (Ffont_match_p): New function.
11799         * font.h (QCscalable): Extern it.
11800         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
11802         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
11804         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
11805         (xfont_list_pattern): New function.
11806         (xfont_list): Use xfont_list_pattern.
11808 2008-02-01  Kenichi Handa  <handa@m17n.org>
11810         * font.h (Flist_fonts): EXFUN it.
11812 2008-02-01  Jason Rumney  <jasonr@gnu.org>
11814         * w32term.c (w32_initialize): Add back smoothing_type and
11815         smoothing_enabled definitions.
11817 2008-02-01  Kenichi Handa  <handa@m17n.org>
11819         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
11820         s->face->font on determining underline position.
11822 2008-02-01  Kenichi Handa  <handa@m17n.org>
11824         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
11825         (font_has_char): Accept font-object too.
11826         (font_find_for_lface): Try at first with a size specified in face.
11828 2008-02-01  Kenichi Handa  <handa@m17n.org>
11830         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
11831         font_open_by_name.
11833 2008-02-01  Kenichi Handa  <handa@m17n.org>
11835         * font.h (QCspacing, QCdpi): Extern them.
11836         (enum font_spacing): New enum.
11837         (FONT_PIXEL_SIZE_QUANTUM): New macro.
11839         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
11840         (QCspacing, QCdpi): New variables.
11841         (syms_of_font): Initialize them.
11842         (font_pixel_size): New function.
11843         (font_put_extra): New function.
11844         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
11845         in FONT_EXTRA.
11846         (font_parse_fcname): Handle enumerated values (e.g. bold).
11847         Fix handling font size.  Add QCname property that contains only
11848         unknown properties.
11849         (font_score): Change argument.  Change caller.  Pay attention to
11850         FONT_PIXEL_SIZE_QUANTUM.
11851         (font_sort_entites, font_list_entities, font_find_for_lface)
11852         (font_open_for_lface, font_open_by_name): Fix handling of font size.
11853         (Ffont_spec): Add QCname property that contains only unknown properties.
11855         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.  Don't
11856         include weight in listing pattern, instead check weight of each
11857         listed font.  Don't include scalable in pattern.  Pay attention to
11858         FONT_PIXEL_SIZE_QUANTUM.
11860 2008-02-01  Kenichi Handa  <handa@m17n.org>
11862         * font.c (font_parse_fcname): Fix parsing of point-size.
11863         (font_unparse_fcname): Produce symbolic names for style properties.
11864         (font_list_entities): Handle float size correctly.
11865         (font_open_by_name): Prefer `normal' property values if the name
11866         doesn't specify them.
11868         * fontset.c (Finternal_char_font): Use font_get_name, not
11869         Ffont_xlfd_name.
11871         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
11872         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
11873         pattern.  Don't force scalable.
11875         * xftfont.c (xftfont_open): For generating a name, start from
11876         96-byte buffer.
11878 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
11880         * frame.h (x_new_fontset2): Fix prototype.
11882 2008-02-01  Kenichi Handa  <handa@m17n.org>
11884         * font.h (struct font_driver): Delete member parse_name.
11885         (font_match_p, font_get_spec, font_parse_fcname)
11886         (font_unparse_fcname): Extern them.
11887         (font_get_name): Adjust prototype.
11889         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
11890         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
11891         (font_expand_wildcards): Fix handling ENCODING field.  Avoid
11892         unnecessary checks for weight, slant, and swidth.
11893         (font_parse_fcname): New function.
11894         (font_unparse_fcname): New function.
11895         (font_parse_name): New function.
11896         (font_match_p): New function.
11897         (font_get_name): Change return value to Lisp string.
11898         (font_get_spec): New function.
11899         (Qunspecified, Qignore_defface): Don't extern them.
11900         (font_find_for_lface): Assume that LFACE is fully specified.
11901         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
11902         object, use it for FACE.
11903         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
11904         driver->parse_name.
11905         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
11907         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
11908         prototype.
11910         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
11911         argument F.  Don't call Fnew_fontset.  Instead, directly call
11912         make_fontset.
11914         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
11916         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
11917         of x_new_fontset2.
11919         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
11920         (Qsans__serif): New variables.
11921         (ftfont_generic_family_list): New variable.
11922         (syms_of_ftfont): Initialize the above variables.
11923         (ftfont_pattern_entity): Delete argument NAME.
11924         (ftfont_list_generic_family): New function.
11925         (ftfont_parse_name): Delete this function.
11926         (ftfont_list): Try generic family only when FcFontList found no font.
11927         (ftfont_list_family): Fix args to FcObjectSetBuild.
11929         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
11930         object in attrs[LFACE_FONT_INDEX].
11931         (set_lface_from_font_name): Cancel all changes for font-backend.
11932         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
11933         function.
11934         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
11935         font object in QCfont attribute.
11936         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
11937         (realize_default_face) [USE_FONT_BACKEND]: Call
11938         set_lface_from_font_and_fontset.
11940         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
11941         "fixed", and signal error here if no suitable font was found.
11943         * xfont.c (xfont_parse_name): Delete this function.
11945         * xftfont.c (xftfont_open): Change coding style of error
11946         handling.  Generate fontconfig's fontname pattern.
11948         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
11949         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
11951         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
11952         Both args FONTSET and FONT_OBJECT must be existing ones.
11954 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11956         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
11958 2008-02-01  Kenichi Handa  <handa@m17n.org>
11960         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
11962         * font.h (struct font): Fix typo.
11964         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
11965         XLFD_XXX_INDEX.
11966         (enum xlfd_field_mask): New enum.
11967         (intern_font_field): Changed argument.  Change caller.  If digits
11968         are followed by non-digits, return a symbol.
11969         (font_expand_wildcards): New function.
11970         (font_parse_xlfd): Fix wildcard handling.
11971         (Ffont_spec): If :name is specified, reflect the info in the other
11972         properties.
11974         * ftfont.c (ftfont_pattern_entity): Fix typo.
11975         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
11976         locale.
11978 2008-02-01  Kenichi Handa  <handa@m17n.org>
11980         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
11982         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
11983         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
11984         registry doesn't specify encoding part.
11985         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
11986         (font_open_by_name): At first try parsing the name.
11987         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
11988         as Lisp symbols.
11990         * fontset.c (reorder_font_vector): Pay attention to the case that
11991         the 3rd element of font_def is nil.
11992         (fontset_font): For the default fontset, append one more fontset
11993         elements for a script-based font specification.  Don't add script
11994         attribute on finding a font.
11995         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
11996         font name.
11997         (fontset_ascii_font): If a font can't be opened, return nil.
11999         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12000         (ftfont_pattern_entity): New function.
12001         (ftfont_get_cache): Assume that freetype_font_cache is already
12002         initialized.
12003         (ftfont_list): Handle the case that a file is specified in font
12004         name.  Use ftfont_pattern_entity to generate entities.
12005         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12006         (syms_of_ftfont): Initialize freetype_font_cache.
12008         * xftfont.c (xftfont_open): Make the font name fontconfig's
12009         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
12010         (xftfont_close): Free font->font.name if not NULL.
12012         * xfont.c (xfont_list): If script is specified for a font, return
12013         null_vector.
12014         (xfont_list_family): Declare argument type.
12016         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12017         name, set LFACE_FONT (lface) to nil.
12019         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12020         return Qnil.
12022 2008-02-01  Kenichi Handa  <handa@m17n.org>
12024         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12025         (standard_args): Add "-enable-font-backend".
12027 2008-02-01  Kenichi Handa  <handa@m17n.org>
12029         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12030         (struct xftdraw_list, xftdraw_list): Delete them.
12031         (register_xftdraw, check_xftdraw): Delete them.
12032         (xftfont_prepare_face): Don't call register_xftdraw.
12033         (xftfont_done_face): Don't call check_xftdraw.
12034         (xftfont_draw): Get background color only when with_background is
12035         nonzero.
12037         * xfont.c (xfont_encode_char): Fix calculation of char2b.
12039 2008-02-01  Kenichi Handa  <handa@m17n.org>
12041         These changes are for the new font handling codes.
12043         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12044         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12045         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12046         (FONTSRC, FONTOBJ): New variables.
12047         (obj): Add $(FONTOBJ).
12048         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12049         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12050         @LIBOTF_LIBS@.
12051         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12052         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12054         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12056         * character.h (Vscript_representative_chars): Extern it.
12058         * character.c (Vscript_representative_chars): New variable.
12059         (syms_of_character): Declare it as a Lisp variable.
12061         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12062         enable_font_backend is nonzero, accept the composition method
12063         COMPOSITION_WITH_GLYPH_STRING.
12065         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12066         enumeration COMPOSITION_WITH_GLYPH_STRING.
12068         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12069         members clip_x, clip_y, clip_width, and clip_height.
12070         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12072         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12073         --enable-font-backend.  Call syms_of_font.
12075         * fns.c (assoc_no_quit): New function.
12077         * fontset.h (FONT_INFO_FROM_FACE): New macro.
12078         (face_for_font, new_fontset_from_font)
12079         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12081         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12082         (fontset_font, fontset_ascii, face_for_char)
12083         (make_fontset_for_ascii_face, Ffont_info)
12084         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12085         is nonzero, use font-backend mechanism.
12086         (find_font_encoding): Make it non-static.
12087         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12088         New functions.
12090         * frame.h (struct frame): New members resx and resy.
12091         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12092         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12094         * frame.c [USE_FONT_BACKEND]: Include "font.h".
12095         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12097         * lisp.h (assoc_no_quit): Extern it.
12099         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12100         Through out the file, use FONT_INFO_FROM_FACE instead of
12101         FONT_INFO_FROM_ID, use get_per_char_metric instead of
12102         rif->per_char_metric.
12103         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12104         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12105         (get_glyph_face_and_encoding, fill_composite_glyph_string)
12106         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12107         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12108         nonzero, use font-backend mechanism.
12109         (get_per_char_metric): New function.
12111         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12112         (set_lface_from_font_name)
12113         (set_font_frame_param, free_realized_face)
12114         (prepare_face_for_display, clear_face_gcs)
12115         (Finternal_set_font_selection_order, realize_x_face)
12116         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12117         font-backend mechanism.
12118         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12119         (load_face_font) [USE_FONT_BACKEND]: Abort.
12120         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12121         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12123         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12124         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12125         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12126         nonzero, register all available font drivers.  Call
12127         x_default_font_parameter for deciding a font.
12128         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12130         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12131         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12132         (x_set_glyph_string_clipping_exactly)
12133         (x_compute_glyph_string_overhangs)
12134         (x_draw_glyph_string_foreground)
12135         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12136         (x_free_frame_resources) [USE_FONT_BACKEND]: If
12137         enable_font_backend is nonzero, use font-backend mechanism.
12138         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12140 2008-02-01  Kenichi Handa  <handa@m17n.org>
12142         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12143         system_eol_type.
12144         (syms_of_coding): Initialize system_eol_type.
12146         * process.c (Fset_process_coding_system): Inherit system's eol
12147         format if necessary.
12149 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12151         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12153 2008-02-01  Kenichi Handa  <handa@m17n.org>
12155         * coding.c (decode_eol): Pay attention to buffer relocation in
12156         del_range_2.
12157         (decode_coding): Call decode_eol before restoring undo_list.
12159 2008-02-01  Kenichi Handa  <handa@m17n.org>
12161         * charset.c (Fdefine_charset_internal): Fix setting of
12162         emacs_mule_bytes.
12164 2008-02-01  Kenichi Handa  <handa@m17n.org>
12166         * keyboard.c (read_char): Check if C is a character or not before
12167         looking up Vkeyboard_translate_table.
12169 2008-02-01  Kenichi Handa  <handa@m17n.org>
12171         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12172         condition to terminate the loop.
12174 2008-02-01  Kenichi Handa  <handa@m17n.org>
12176         * coding.c (produce_composition): Compare charbuf[i] instead of
12177         args[i] against 0.
12178         (Fterminal_coding_system): Use EQ to compare Lisp objects.
12180 2008-02-01  Kenichi Handa  <handa@m17n.org>
12182         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12183         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12184         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12185         detect_coding.
12186         (emacs_mule_char): Handle old style (Emacs 20) component character
12187         of a composition.
12188         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12189         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12190         composition rule.
12191         (decode_coding_emacs_mule): Handle invalid bytes correctly.
12193 2008-02-01  Kenichi Handa  <handa@m17n.org>
12195         * coding.c (encode_coding_ccl): Allocate destination dynamically
12196         when necessary.
12198 2008-02-01  Kenichi Handa  <handa@m17n.org>
12200         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12201         the loop.  When quitted, show a proper error message.
12203 2008-02-01  Kenichi Handa  <handa@m17n.org>
12205         * xterm.c (x_set_glyph_string_clipping_exactly): Set
12206         src->clip_head and src->clip_tail temporarily instead of src->hl.
12208         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12209         character sequence.
12210         (Fccl_execute_on_string): Use ASET, not XSET.
12212 2008-02-01  Kenichi Handa  <handa@m17n.org>
12214         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12216 2008-02-01  Kenichi Handa  <handa@m17n.org>
12218         * coding.c (decode_coding): Fix the condition of terminating the
12219         decoding loop.
12221 2008-02-01  Kenichi Handa  <handa@m17n.org>
12223         * data.c (Faset): On setting a character bigger than 255 in a
12224         unibyte string, signal an error instead of make the string multibyte.
12226 2008-02-01  Kenichi Handa  <handa@m17n.org>
12228         * charset.c (map_charset_chars): Fix for ascii-compatible charset
12229         made by a mapping table.
12231 2008-02-01  Kenichi Handa  <handa@m17n.org>
12233         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12234         not.
12235         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12236         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12238         * xterm.c (x_draw_composite_glyph_string_foreground): Check
12239         s->face is NULL or not.
12241 2008-02-01  Kenichi Handa  <handa@m17n.org>
12243         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12244         (x_draw_glyph_string): Fix drawing of right_overhang and
12245         left_overhang around/on cursor.
12247         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12249 2008-02-01  Kenichi Handa  <handa@m17n.org>
12251         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12253 2008-02-01  Kenichi Handa  <handa@m17n.org>
12255         * coding.c (Fdefine_coding_system_internal)
12256         (Fdefine_coding_system_alias): Avoid a duplicated element in
12257         Vcoding_system_alist.
12259 2008-02-01  Kenichi Handa  <handa@m17n.org>
12261         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12263         * coding.c (Qcoding_system_define_form): New variable.
12264         (syms_of_coding): Intern and staticpro it.
12265         (Fcoding_system_p): Check Qcoding_system_define_form.
12266         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12268         * coding.h (CODING_SYSTEM_P): If ID is not available, call
12269         Fcoding_system_p.
12270         (CHECK_CODING_SYSTEM): If ID is not available, call
12271         Fcheck_coding_system.
12272         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
12273         Try also Fcheck_coding_system.
12275 2008-02-01  Kenichi Handa  <handa@m17n.org>
12277         * coding.c (code_conversion_restore): GCPRO arg.
12279 2008-02-01  Kenichi Handa  <handa@m17n.org>
12281         * character.c (lisp_string_width): Check multibyteness of STRING.
12283 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12285         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
12286         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
12287         (decode_mac_font_name): Use decode_coding_c_string instead of
12288         decode_coding.
12289         (x_load_font): Initialize fontp->fontset to -1.  Set
12290         fontp->encoding_type.
12292 2008-02-01  Kenichi Handa  <handa@m17n.org>
12294         * search.c (search_buffer): Give up BM search on case-fold-search
12295         if one of a target character has a case-equivalence of different
12296         byte length even if that target charcter is an ASCII.
12297         (simple_search): Fix calculation of byte length of matched text.
12298         (boyer_moore): Fix handling of case-equivalent multibyte characters.
12300 2008-02-01  Kenichi Handa  <handa@m17n.org>
12302         * coding.c (decode_coding): Fix handling of invalid bytes.
12304 2008-02-01  Kenichi Handa  <handa@m17n.org>
12306         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
12307         Unicode characters.
12309 2008-02-01  Kenichi Handa  <handa@m17n.org>
12311         * coding.c (encode_coding_object): If a pre-write-conversion
12312         function makes a new buffer, kill it.
12314 2008-02-01  Kenichi Handa  <handa@m17n.org>
12316         * coding.c (QCascii_compatible_p): New variable.
12317         (syms_of_coding): Initialize it.
12318         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
12319         calling string_char.
12320         (record_conversion_result): Add `default:' case.
12321         (coding_charset_list): Delete unused variable `coding_type'.
12322         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
12323         property in the plist of the coding system.
12324         (Fcoding_system_put): Check QCascii_compatible_p.
12326 2008-02-01  Miles Bader  <miles@gnu.org>
12328         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
12329         removed calculation of frame `f', as it's now used.
12331 2008-02-01  Kenichi Handa  <handa@m17n.org>
12333         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
12334         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
12335         (UNIDATA): New variable.
12336         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
12337         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.  Run
12338         $(RUN_TEMACS) unconditionally.
12340 2008-02-01  Kenichi Handa  <handa@m17n.org>
12342         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
12343         (admindir): New variable.
12344         ($(lispsource)international/charprop.el): New target.
12346 2008-02-01  Miles Bader  <miles@gnu.org>
12348         * character.c (chars-in-region): Remove obsolete function.
12349         (syms_of_character): Remove its initialization.
12351 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
12353         * w32select.c (validate_coding_system)
12354         (setup_windows_coding_system): New functions.
12355         (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
12356         setup_windows_coding_system.
12357         (setup_config, Fw32_get_clipboard_data): Use
12358         validate_coding_system.
12359         (Fx_selection_exists): Move call to setup_config to a place
12360         where signals are allowed.
12362         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
12363         (Fcheck_coding_system): Add declarations.
12365 2008-02-01  Kenichi Handa  <handa@m17n.org>
12367         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
12369 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12371         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
12372         string as the second argument for x_new_fontset.
12374 2008-02-01  Kenichi Handa  <handa@m17n.org>
12376         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
12377         (encode_coding_object): Use safe_call instead of call2.
12379 2008-02-01  Kenichi Handa  <handa@m17n.org>
12381         * fontset.c (Fset_fontset_font): Check family element of a given vector.
12383         * Makefile.in (lisp): Include charprop.el.
12385 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12387         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
12388         Not sure if it's unnecessary.
12390 2008-02-01  Steven Tamm  <steventamm@mac.com>
12392         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
12393         some possibly unnecessary fontset checking code that crashed
12394         when creating a new frame.
12396 2008-02-01  Kenichi Handa  <handa@m17n.org>
12398         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
12399         lookup_face.
12401         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
12403         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
12405 2008-02-01  Kenichi Handa  <handa@m17n.org>
12407         * coding.c: Cancel the change done in HEAD on 2008-02-01.
12408         (coding_charset_list): New function.
12410         * coding.h (coding_charset_list): Extern it.
12412 2008-02-01  Kenichi Handa  <handa@m17n.org>
12414         * fontset.c (Fset_fontset_font): Call find_font_encoding with
12415         concatenation of family and registry.
12417 2008-02-01  Kenichi Handa  <handa@m17n.org>
12419         * character.h (BYTE8_STRING): Fix typo.
12421         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
12422         string to multibyte (sync to HEAD).
12424         * casefiddle.c (casify_region): Handle changes in byte-length
12425         using replace_range_2 (sync to HEAD).
12427 2008-02-01  Andreas Schwab  <schwab@suse.de>
12429         * chartab.c (map_char_table): GCPRO table and arg.
12431 2008-02-01  Kenichi Handa  <handa@m17n.org>
12433         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
12434         already at limit.
12436 2008-02-01  Kenichi Handa  <handa@m17n.org>
12438         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
12439         instead of fast_c_string_match_ignore_case.
12440         (find_font_encoding): Change argument to Lisp_Object.  Use
12441         fast_string_match_ignore_case instead of
12442         fast_c_string_match_ignore_case.  Change caller.
12444 2008-02-01  Kenichi Handa  <handa@m17n.org>
12446         * xdisp.c (get_next_display_element): In unibyte case, decide to
12447         display in octal form by checking a character by
12448         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
12450         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
12452         * character.c (unibyte_has_multibyte_table): New variable.
12454         * character.h (unibyte_has_multibyte_table): Extern it.
12455         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
12457 2008-02-01  Kenichi Handa  <handa@m17n.org>
12459         * coding.c (encode_coding_iso_2022): Fix handling of charset
12460         annotation.
12462 2008-02-01  Kenichi Handa  <handa@m17n.org>
12464         * coding.c (setup_coding_system): If coding_system is nil, use
12465         Qundecided.
12466         (Fterminal_coding_system): Return nil if terminal coding system is
12467         `undecided'.
12468         (syms_of_coding): Define coding-system `undecided' here.  Setup
12469         terminal_coding as `undecided'.
12471 2008-02-01  Kenichi Handa  <handa@m17n.org>
12473         * xdisp.c (message_dolog, set_message_1): Call
12474         unibyte_char_to_multibyte with arg type int.
12476         * lread.c (read1): Fix reading of a char-table.
12478         * print.c (print_object): Include sub char-table in circularities
12479         detection.
12481 2008-02-01  Kenichi Handa  <handa@m17n.org>
12483         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
12484         Append the found sequences in car of ARGS instead of prepending.
12486 2008-02-01  Kenichi Handa  <handa@m17n.org>
12488         * fileio.c (report_file_error): Make a unibyte string from
12489         strerror (errorno).
12490         (Fsubstitute_in_file_name): Fix the arg to
12491         unibyte_char_to_multibyte.  It is evaluated twice.
12493 2008-02-01  Kenichi Handa  <handa@m17n.org>
12495         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
12497 2008-02-01  Kenichi Handa  <handa@m17n.org>
12499         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
12500         BOM is not found.
12501         (detect_coding, detect_coding_system): Optimization for ISO-2022
12502         when no 8-bit data is found.
12504 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12506         * w32fns.c (x_to_w32_font): Update to use new coding struct.
12508 2008-02-01  Kenichi Handa  <handa@m17n.org>
12510         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
12511         CHARS.
12513 2008-02-01  Steven Tamm  <steventamm@mac.com>
12515         * macterm.c (mac_encode_char): Add charset argument and update
12516         to use encoding_type.
12517         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
12518         switch to pure fontset.
12519         (decode_mac_font_name): Temporarily remove decoding.
12520         (x_font_name_to_mac_font_name): Temporarily remove encoding.
12521         (x_load_font): Temporarily remove encoding.
12523 2008-02-01  Kenichi Handa  <handa@m17n.org>
12525         * xfaces.c (Fface_font): If frame is not on a window system,
12526         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
12527         refer to face->font.
12528         (split_font_name_into_vector, build_font_name_from_vector)
12529         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
12530         when HAVE_WINDOW_SYSTEM is defined.
12532 2008-02-01  Kenichi Handa  <handa@m17n.org>
12534         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
12535         (x_produce_glyphs): Fix setting of members of cmp in case
12536         cmp->glyph_len is zero.
12538         * fontset.c (Fset_fontset_font): Fix docstring.
12539         (Ffontset_info): Make it backward compatible.  New arg ALL.
12541 2008-02-01  Kim F. Storm  <storm@cua.dk>
12543         * process.c (read_process_output): Grow decoding_buf when needed;
12544         this could cause a crash in allocate_string and compact_small_strings.
12546 2008-02-01  Kenichi Handa  <handa@m17n.org>
12548         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
12550 2008-02-01  Kenichi Handa  <handa@m17n.org>
12552         * coding.c (setup_coding_system): Set coding->common_flags
12553         correctly for raw-text.
12554         (consume_chars): On encoding unibyte text by raw-text, don't check
12555         multibyte form.
12556         (encode_coding): On encoding by raw-text, never use translation tables.
12558         * fileio.c (e_write): Short cut for the case of no encoding.
12560 2008-02-01  Kenichi Handa  <handa@m17n.org>
12562         * coding.c (detect_coding, detect_coding_system): Delete unused
12563         variables.
12565 2008-02-01  Kenichi Handa  <handa@m17n.org>
12567         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
12568         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
12570 2008-02-01  Kenichi Handa  <handa@m17n.org>
12572         * coding.c (Ffind_coding_systems_region_internal): Include
12573         raw-text and no-conversion in the result.
12575 2008-02-01  Kenichi Handa  <handa@m17n.org>
12577         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
12578         (load_font_get_repertory): Delete unnecessary check of ENCODING of
12579         FONT_DEF.
12580         (font_def_arg, add_arg, from_arg, to_arg): New args.
12581         (set_fontset_font): Change argument.
12582         (Fset_fontset_font): Fix for the case that TARGET is a script
12583         name and charset name.
12584         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
12586 2008-02-01  Kenichi Handa  <handa@m17n.org>
12588         * fontset.c (fontset_font): Rename from fontset_face.  Change return
12589         value.
12590         (face_suitable_for_char_p, face_for_char): Adjust for the change
12591         of fontset_font.
12592         (make_fontset_for_ascii_face): Fix setting of the fontset element
12593         for ASCII.
12594         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
12595         to get a font name.
12596         (Ffontset_info): Adjust for the change of fontset_font.
12598         * coding.c (emacs_mule_char): Check invalid code more rigidly.
12600         * character.h (LEADING_CODE_LATIN_1_MIN)
12601         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
12603 2008-02-01  Kenichi Handa  <handa@m17n.org>
12605         * editfns.c (check_translation): New function.
12606         (Ftranslate_region_internal): Handle M:N mapping.
12608 2008-02-01  Kenichi Handa  <handa@m17n.org>
12610         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
12612 2008-02-01  Kenichi Handa  <handa@m17n.org>
12614         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
12615         goto invalid_code.
12616         (decode_coding_iso_2022): Fix handling of invalid designation.
12618         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
12619         after calling code_conversion_save.
12621 2008-02-01  Kenichi Handa  <handa@m17n.org>
12623         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
12625         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
12627         * fontset.c: Include "intervals.h".
12628         (fontset_face): Fix comparing of Lisp_Objects.
12629         (free_face_fontset, new_fontset_from_font_name): Fix
12630         Lisp_Object/int mixup.
12632         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
12634         * coding.c: Add many prototypes for static functions.
12635         (get_translation_table): Allow max_lookup to be NULL.
12636         (decode_coding, Ffind_coding_systems_region_internal)
12637         (Funencodable_char_position, Fcheck_coding_systems_region): Call
12638         get_translation_table with max_lookup NULL.
12640 2008-02-01  Kenichi Handa  <handa@m17n.org>
12642         * coding.c (get_translation_table): Declare it as Lisp_Object.
12643         (LOOKUP_TRANSLATION_TABLE): New macro.
12644         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
12645         instead of CHAR_TABLE_REF.
12647 2008-02-01  Kenichi Handa  <handa@m17n.org>
12649         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
12650         annotation data format.
12651         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
12652         Change arguments FROM and TO to single argument NCHARS.  Change caller.
12653         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
12654         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12655         (decode_coding_ccl, decode_coding_charset): Pay attention to
12656         coding->charbuf_used.
12657         (get_translation): New function.
12658         (produce_chars): New arguments translation_table and last_block.
12659         Translate characters here.  Return number of carryover chars.
12660         Change caller.
12661         (produce_composition): New argument pos.  Change caller.
12662         Adjust for the change of annotation data format.
12663         (produce_charset, produce_annotation): Likewise.
12664         (decode_coding, encode_coding): Don't call translate_chars.
12665         (consume_chars): New arg translation_table.  Change caller.
12666         (translate_chars): Delete.
12667         (syms_of_coding): Make translation-table's number of extra slots 2.
12669 2008-02-01  Kenichi Handa  <handa@m17n.org>
12671         * search.c (simple_search): Fix setting this_pos_byte in backward
12672         search.
12674         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
12675         byte sequence.
12676         (detect_coding_ccl): Fix setting of the variable valids.
12678 2008-02-01  Kenichi Handa  <handa@m17n.org>
12680         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
12682         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
12684         * editfns.c (Ftranslate_region_internal): Rename from
12685         Ftranslate_region.  Accept a char-table in TABLE.
12686         (syms_of_editfns): Defsubr Stranslate_region_internal.
12688         * xfaces.c (set_lface_from_font_name): If a font is specified for
12689         a frame, generate a fontset from the font.
12690         (build_scalable_font_name): If the scalable font is requested for
12691         a specific size, don't change that size.
12692         (try_font_list): Try a scalable font also in the case that a
12693         pattern string is specified.
12695 2008-02-01  Kenichi Handa  <handa@m17n.org>
12697         * xfaces.c (Fface_font): New optional arg CHARACTER.
12699 2008-02-01  Kenichi Handa  <handa@m17n.org>
12701         * charset.h (CHARSET_OFFSET): New macro.
12703 2008-02-01  Kenichi Handa  <handa@m17n.org>
12705         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
12707         * fontset.c (fontset_face): Handle the case that repertory is a
12708         char-table.
12709         (find_font_encoding): Return nil for unknown encoding.
12710         (Fset_fontset_font): Ignore a font of unknown encoding.
12712 2008-02-01  Kenichi Handa  <handa@m17n.org>
12714         * keymap.c (describe_vector): Handle default value of a char table.
12716         * fontset.c (fontset_face): Handle fallback fonts correctly.
12717         (Ffontset_info): Return infomation about fallback fonts.
12719 2008-02-01  Kenichi Handa  <handa@m17n.org>
12721         * fontset.c (FONTSET_DEFAULT): New macro.
12722         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
12723         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
12724         the case that it is nil.
12725         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
12726         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
12728         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
12729         subset or superset.
12731 2008-02-01  Kenichi Handa  <handa@m17n.org>
12733         * emacs.c (main): Call init_charset after syms_of_XXX.
12735         * charset.c (Vcharset_map_directory): Delete.
12736         (Vcharset_map_path): New variable.
12737         (load_charset_map_from_file): Use Vcharset_map_path instead.
12738         (init_charset): Initialize Vcharset_map_path.
12739         (syms_of_charset): Delete declaration of "charset-map-directory",
12740         add declaration of "charset-map-path".
12742 2008-02-01  Kenichi Handa  <handa@m17n.org>
12744         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
12745         ASCII only string.
12747         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
12749         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
12750         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
12752 2008-02-01  Kenichi Handa  <handa@m17n.org>
12754         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
12756         * coding.c (QCmnemonic, QCdefalut_char)
12757         (QCdecode_translation_table, QCencode_translation_table)
12758         (QCpost_read_conversion, QCpre_write_conversion): New variables.
12759         (get_translation_table): Return a list of translation tables if
12760         necessary.
12761         (decode_coding): Call get_translation_table with ENCODEP 0.
12762         (char_encodable_p): If translation_table is non-nil, always call
12763         translate_char.
12764         (Fdefine_coding_system_internal): Accept list of translation
12765         tables as :encode-translation-table and :decode-translation-table.
12766         (Fcoding_system_put): New function.
12767         (syms_of_coding): Declare new symbols.  Defsubr
12768         Scoding_system_put.
12769         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
12770         typically JISX0212.
12772         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
12773         when the charset is superset type.
12775         * character.c (translate_char): Accept list of translation tables.
12777 2008-02-01  Kenichi Handa  <handa@m17n.org>
12779         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
12780         (CODING_ATTR_TRANS_TBL): New macro.
12782         * coding.c (get_translation_table): New function.
12783         (translate_chars): Fix the bug of skipping annotation data.
12784         (decode_coding, encode_coding): Utilize get_translation_table.
12785         (char_encodable_p, Funencodable_char_position): Translate char if
12786         necessary.
12787         (Ffind_coding_systems_region_internal)
12788         (Fcheck_coding_systems_region): Setup translation table for encode
12789         in a coding system attribute vector in advance.
12790         (Fdefine_coding_system_internal): Allow a symbol as translation
12791         table.  For shift-jis type coding system, allow 4th charset.
12793 2008-02-01  Kenichi Handa  <handa@m17n.org>
12795         * coding.c (decode_coding_sjis): Check the first byte rigidly.
12797         * xdisp.c (get_next_display_element): Pass -1 as POS to
12798         FACE_FOR_CHAR if displaying a C-string.
12800 2008-02-01  Kenichi Handa  <handa@m17n.org>
12802         * composite.c (get_composition_id): Handle xoff and yoff in a
12803         composition rule.
12805         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
12806         (struct composition): New member lbearing and rbearing.
12808         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
12809         (x_get_glyph_overhangs): Handle a composition glyph.
12810         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
12812         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
12813         composition glyph.
12815 2008-02-01  Kenichi Handa  <handa@m17n.org>
12817         * print.c: Include charset.h.
12818         (Vprint_charset_text_property): New variable.
12819         (Qdefault): Extern it.
12820         (PRINT_STRING_NON_CHARSET_FOUND)
12821         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
12822         (print_check_string_result): New variable.
12823         (print_check_string_charset_prop): New function.
12824         (print_prune_charset_plist): New variable.
12825         (print_prune_string_charset): New function.
12826         (print_object): Call print_prune_string_charset if
12827         Vprint_charset_text_property is not t.
12828         (print_interval): Print nothing if interval->plist is nil.
12829         (syms_of_print): Declare Vprint_charset_text_property as a lisp
12830         variable.  Init and staticpro print_prune_charset_plist.
12832 2008-02-01  Kenichi Handa  <handa@m17n.org>
12834         * fontset.c (new_fontset_from_font_name): Use the specified font
12835         for all characters in the new fontset.
12837         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12838         OBJECT args.
12840         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
12841         OBJECT args for composition too.
12843         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
12844         OBJECT args.
12846 2008-02-01  Kenichi Handa  <handa@m17n.org>
12848         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
12850         * fontset.c (reorder_font_vector): Adjust for the change of
12851         FONT_DEF format.
12852         (fontset_face): New arg id.  Change caller.
12853         (face_for_char): New args pos and object.
12854         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
12855         (fs_query_fontset): Check NAME by Fassoc too.
12856         (Fset_fontset_font): Allow non-XLFD font name.
12857         (Ffontset_info): Adjust for the change of FONT_DEF format.
12859         * fontset.h (face_for_char): Adjust prototype.
12861         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
12862         (append_space, extend_face_to_end_of_line)
12863         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12864         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
12866         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
12867         POS and OBJECT args.
12869         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
12870         POS and OBJECT args.
12872 2008-02-01  Jason Rumney  <jasonr@gnu.org>
12874         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
12875         of GlobalAlloc'ed memory.
12877 2008-02-01  Kenichi Handa  <handa@m17n.org>
12879         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
12881         * charset.h (charset_table_used): Delete extern.
12883         * charset.c (charset_table_used): Make it static.
12884         (map_charset_chars): Fix args to c_function with.
12886         * chartab.c (map_sub_char_table_for_charset): Fix args to
12887         c_function with.
12889         * coding.h (enum coding_result_code): Delete
12890         CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
12892         * coding.c (Qinsufficient_source, Qinconsistent_eol)
12893         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
12894         (Vlast_code_conversion_error): New variables.
12895         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
12896         (ONE_MORE_BYTE): Record error if any instead of signaling an
12897         error.  If non-ASCII multibyte char is found, return the negative
12898         value of the code.  All callers changed to check it.
12899         (ONE_MORE_BYTE_NO_CHECK): Likewise.
12900         (record_conversion_result): New function.  Change all codes setting
12901         coding->result to call this function.
12902         (detect_coding_utf_8, decode_coding_utf_8)
12903         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
12904         Don't use the local variable incomplete.
12905         (emacs_mule_char): Change the second arg to `const'.
12906         (decode_coding): Fix of flushing out unprocessed data.
12907         (make_conversion_work_buffer): Fix making of a work buffer.
12908         (decode_coding_object): Return coding->dst_object.
12910         * fontset.c (set_fontset_font): Fix args.
12912         * lisp.h (CHARACTERBITS): Define as 22.
12914         * process.c (send_process): Be sure to set coding->src_multibyte.
12916         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
12918 2008-02-01  Kenichi Handa  <handa@m17n.org>
12920         * xdisp.c (handle_auto_composed_prop): Give limit to
12921         Fnext_single_char_property_change.
12923 2008-02-01  Kenichi Handa  <handa@m17n.org>
12925         * composite.c (syms_of_composite): Don't make the composition hash
12926         table weak.
12928         * fontset.c (Fset_fontset_font): Fix docstring.
12930         * lisp.h (detect_coding_system): Adjust prototype.
12932         * fileio.c (kill_workbuf_unwind): Delete this function.
12933         (Finsert_file_contents): Adjust the call of detect_coding_system.
12934         Get conversion_buffer by code_conversion_save.  Use the macro
12935         CODING_MAY_REQUIRE_DECODING.  After decoding, update
12936         coding_system.
12938         * coding.h (make_conversion_work_buffer): Delete extern.
12939         (code_conversion_save): Extern it.
12941         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
12942         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
12943         (decode_coding_utf_8): Don't do eol converion.
12944         (detect_coding_utf_16): Check coding->src_chars, not
12945         coding->src_bytes.  Add heuristics for those that have no signature.
12946         (decode_coding_emacs_mule, decode_coding_iso_2022)
12947         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12948         Don't do eol converion.
12949         (adjust_coding_eol_type): Return a new coding system.
12950         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
12951         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
12952         each change.
12953         (decode_coding): Pay attention to undo_list.  Do eol conversion for
12954         all types of coding-systems (if necessary).
12955         (Vcode_conversion_work_buf_list): Delete it.
12956         (Vcode_conversion_reused_workbuf): Rename from
12957         Vcode_conversion_reused_work_buf.
12958         (Vcode_conversion_workbuf_name): New variable.
12959         (reused_workbuf_in_use): New variable.
12960         (make_conversion_work_buffer): Delete the arg DEPTH.
12961         (code_conversion_restore): Change argument to cons.
12962         (code_conversion_save): Delete the argument BUFFER.  Change callers.
12963         (detect_coding_system): New argument src_chars.  Change callers.
12964         Fix for utf-16 detection.
12965         (init_coding_once): Don't use ISO_carriage_return.
12966         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
12967         reused_workbuf_in_use.
12969 2008-02-01  Kenichi Handa  <handa@m17n.org>
12971         * keymap.c (store_in_keymap): Pay attention to the case that idx
12972         is a cons specifying a character range.
12974 2008-02-01  Kenichi Handa  <handa@m17n.org>
12976         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
12977         HANDLED_RECOMPUTE_PROPS.
12979         * coding.c (Fdefine_coding_system_internal): Fix checking of
12980         ascii compatibility.
12982 2008-02-01  Kenichi Handa  <handa@m17n.org>
12984         * charset.c (find_charsets_in_text): Delete unused locale variable.
12985         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
12987         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
12988         Resync charset_list to Vemacs_mule_charset_list.
12990         * keymap.c (store_in_keymap): Pay attention to the case that idx
12991         is a cons specifying a character range.
12993 2008-02-01  Kenichi Handa  <handa@m17n.org>
12995         * composite.c (update_compositions): Bind inhibit-read-only, etc
12996         to t before calling remove-list-of-text-properties.
12998         * print.c (print_object): Always print ASCII chars as is.
13000 2008-02-01  Kenichi Handa  <handa@m17n.org>
13002         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13004         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13005         is a char table.
13007 2008-02-01  Kenichi Handa  <handa@m17n.org>
13009         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13011 2008-02-01  Kenichi Handa  <handa@m17n.org>
13013         * xfaces.c (set_lface_from_font_name): Fix for the case that
13014         FONTNAME is not fontset name.
13016 2008-02-01  Kenichi Handa  <handa@m17n.org>
13018         * fns.c (base64_encode_1): Fix previous change.
13020 2008-02-01  Kenichi Handa  <handa@m17n.org>
13022         * fontset.c (set_fontset_font): New function.
13023         (Fset_fontset_font): If a font is specified for a charset, use
13024         map_charset_chars to store the font spec in a fontset.
13026 2008-02-01  Kenichi Handa  <handa@m17n.org>
13028         * fontset.c (fontset_face): Create a fallback fontset on demand.
13029         (make_fontset): Don't create a fallback fontset here.
13030         (free_face_fontset): Free a fallback fontset (if any) too.
13031         (n_auto_fontsets): Delete this variable.
13032         (auto_fontset_alist): New variable.
13033         (new_fontset_from_font_name): Check auto_fontset_alist.
13034         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13035         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13036         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13037         Defsubr Sfontset_list_all.
13039 2008-02-01  Kenichi Handa  <handa@m17n.org>
13041         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13043 2008-02-01  Kenichi Handa  <handa@m17n.org>
13045         * fontset.c (Fnew_fontset): Check NAME more rigidly.
13047 2008-02-01  Kenichi Handa  <handa@m17n.org>
13049         * editfns.c (Fgoto_char): Fix docstring.
13051 2008-02-01  Kenichi Handa  <handa@m17n.org>
13053         * insdel.c (insert_from_gap): Adjust intervals correctly.
13055 2008-02-01  Jason Rumney  <jasonr@gnu.org>
13057         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13058         (pfnGetFontUnicodeRanges): New dynamically loaded function.
13059         (w32_initialize): Try to load it.
13060         (x_get_font_repertory): Use it if available.
13061         (w32_encode_char): Add shortcut for unicode output.
13063         * w32fns.c (w32_load_system_font): Default charset to -1.
13064         (x_to_w32_charset): Match all fonts for unicode.
13065         (w32_to_x_charset): New parameter matching.  Don't return partial
13066         or wildcard charsets.
13067         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13068         (w32_codepage_for_font): Return CP_UNICODE for unicode.
13069         (w32_to_x_font): Match charset to real charset.
13070         (enum_font_cb2): Always list unicode versions.
13072         * makefile.w32-in (temacs): Increase EMHEAP.
13074 2008-02-01  Jason Rumney  <jasonr@gnu.org>
13076         * w32term.c (w32_encode_char): New charset parameter.
13077         font_info.encoding becomes encoding_type.
13078         (x_get_font_repertory): New function.  Warning: stub only!
13079         (x_new_font): Return quickly if font already set.
13080         (x_new_fontset): fontsetname parameter is Lisp_Object.
13081         Use new fs_query_fontset.  Try new_fontset_from_font_name.
13082         Use fontset_name for return value.
13084         * w32term.h: Declare x_get_font_repertory.
13086         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13087         place of find_charset_in_text.  Use encode_coding_object in place
13088         of encode_coding.
13089         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13090         decode_coding.
13092         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13093         of x_new_fontset.
13094         (w32_load_system_font): Initialize charset as unicode.
13095         font_info.encoding becomes encoding_type.
13096         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13097         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13098         (syms_of_w32fns): Set get_font_repertory_func.
13100         * w32console.c: Include character.h.  Use terminal_encode_buffer
13101         from term.c.
13102         (write_glyphs): Use new version of encode_terminal_code.  Use
13103         encode_coding_object in place of encode_coding.
13105         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13106         encoding becomes encoding_type.
13108         * term.c (terminal_encode_buffer): Make externally visible.
13110         * makefile.w32-in: Add character.h dependancies.
13111         (character.o, chartab.o): New targets.
13113 2008-02-01  Kenichi Handa  <handa@m17n.org>
13115         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13116         CODING_ID_EOL_TYPE.
13118 2008-02-01  Andreas Schwab  <schwab@suse.de>
13120         * coding.c (produce_chars): Revert last change.
13122 2008-02-01  Kenichi Handa  <handa@m17n.org>
13124         * charset.h (charset_unicode): Extern it.
13126         * charset.c (string_xstring_p): Check by (C >= 0x100).
13127         (find_charsets_in_text): Change format of the arc CHARSETS.  New
13128         arg MULTIBYTE.
13129         (Ffind_charset_region, Ffind_charset_string): Adjust for the
13130         change of find_charsets_in_text.
13131         (Fsplit_char): Fix doc.  Never return unknown.
13133         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13135         * coding.c (Fdefine_coding_system_alias): Update
13136         Vcoding_system_list.
13138         * fontset.c (load_font_get_repertory): Pay attention to the case
13139         that ENCODING of a font is specified by a char-table.
13141         * xterm.c (x_get_font_repertory): Handle the case that the
13142         encoding of font is other than Unicode.
13144 2008-02-01  Kenichi Handa  <handa@m17n.org>
13146         * term.c (encode_terminal_code): Don't handle glyph-table.  Check
13147         if a character is encodable by the terminal coding system.  If
13148         not, produces proper number of `?'s.  Update
13149         terminal_encode_buffer and terminal_encode_buf_size if necessary.
13150         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13152 2008-02-01  Kenichi Handa  <handa@m17n.org>
13154         * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13155         variables.
13156         (encode_terminal_code): Change argument.  Encode multiple
13157         characters at once.  Store the result of encoding in
13158         terminal_encode_buffer.
13159         (write_glyphs, insert_glyphs): Adjust for the change of
13160         encode_terminal_code.
13161         (term_init): Initialize terminal_encode_buffer and
13162         terminal_encode_buf_size.
13164         * coding.c (consume_chars): If coding->src_object is nil, don't
13165         check annotation.
13167 2008-02-01  Kenichi Handa  <handa@m17n.org>
13169         * character.c (char_string): Use ASCII_CHAR_P instead of
13170         SINGLE_BYTE_CHAR_P.
13172 2008-02-01  Kenichi Handa  <handa@m17n.org>
13174         * xdisp.c (handle_auto_composed_prop): Check if the last
13175         characters of auto-composed region is newly composed with the
13176         following characters.
13177         (handle_composition_prop): Fix checking of point being inside
13178         composition.
13180 2008-02-01  Kenichi Handa  <handa@m17n.org>
13182         * fns.c (concat): Don't change multibyteness of the result by
13183         concatenating an 8-bit character.
13185         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
13186         multibyteness of the result when newelt is an 8-bit character.
13188 2008-02-01  Dave Love  <fx@gnu.org>
13190         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13191         EMACS_INT.
13193         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13195         * xfaces.c (face_numeric_value): Declare dim size_t.
13196         (Finternal_lisp_face_equal_p): Remove unused f.
13198         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13199         (MATRIX_ROW): Remove unused vars.
13200         (draw_glyphs, x_insert_glyphs, fast_find_position)
13201         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13202         byte/char counts.
13204         * regex.c (regex_compile): Remove unused var.
13206         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13208         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13209         (Faccessible_keymaps, where_is_internal): Remove unused vars.
13211         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13213         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13215         * fileio.c (Fwrite_region): Remove unused var.
13217         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13218         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13220         * composite.c (Fremove_list_of_text_properties): Declare.
13222         * coding.c (inhibit_pre_post_conversion): Remove (unused).
13223         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13224         (coding_inherit_eol_type): Remove unused attrs.
13225         (detect_coding): Cast arg of detect_eol.
13227         * charset.c (syms_of_charset): Remove unused var p.
13228         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13229         byte/char counts.
13231         * casetab.c (set_case_table): Remove unused var.
13233         * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13234         unused vars.
13236 2008-02-01  Dave Love  <fx@gnu.org>
13238         * xterm.c (x_bitmap_mask): Declare.
13240 2008-02-01  Dave Love  <fx@gnu.org>
13242         * xterm.c (x_term_init): Fix type error.
13244         * lisp.h: Add Funibyte_char_to_multibyte.
13246         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13247         (Fset_coding_system_priority): Doc fix.
13249         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13251         * indent.c (check_composition): Make start and end EMACS_INT.
13253         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13255         * xdisp.c (handle_composition_prop, check_point_in_composition):
13256         Make buffer positions EMACS_INT.
13258         * composite.c (find_composition, run_composition_function)
13259         (update_compositions, Ffind_composition_internal): Make buffer
13260         positions EMACS_INT.
13262         * composite.h (find_composition, update_compositions): Make
13263         position args EMACS_INT.
13265         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13267         * intervals.c (get_property_and_range):
13268         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13270         * unexalpha.c: Don't include varargs.h.
13272 2008-02-01  Dave Love  <fx@gnu.org>
13274         * coding.h (ENCODE_UTF_8): New.
13276         * Makefile.in (gtkutil.o): Depend on coding.h.
13278         * coding.c (Fset_coding_system_priority): Doc fix.
13280 2008-02-01  Kenichi Handa  <handa@m17n.org>
13282         * fileio.c (Finsert_file_contents): Call setup_coding_system in
13283         the case of auto saving.
13285 2008-02-01  Andreas Schwab  <schwab@suse.de>
13287         * chartab.c (map_char_table, map_char_table_for_charset): Protect
13288         `range' from GC.
13290 2008-02-01  Kenichi Handa  <handa@m17n.org>
13292         * coding.c (decode_coding_sjis): Check bytes more rigidly.
13294 2008-02-01  Kenichi Handa  <handa@m17n.org>
13296         * fileio.c (choose_write_coding_system): Return a decided coding system.
13297         (Fwrite_region): Set Vlast_coding_system_used to the return value
13298         of choose_write_coding_system.
13300 2008-02-01  Kenichi Handa  <handa@m17n.org>
13302         * charset.c (Fset_charset_priority): Pay attention to duplicated
13303         arguments.
13305         * coding.c (QCcategory): New variable.
13306         (syms_of_coding): Defsym it.  Set all elements of
13307         Vcoding_category_table and their symbol values.
13308         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
13309         coding-category-XXX, and coding-category-list.
13310         (Fdefine_coding_system_internal): Add category in the plist.
13312 2008-02-01  Kenichi Handa  <handa@m17n.org>
13314         * callproc.c (Fcall_process): Handle carryover correctly.
13316         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
13317         (raw_text_coding_system): Check NILP (coding_system).
13318         (coding_inherit_eol_type): Check NILP (coding_system) and
13319         NILP (parent).
13320         (consume_chars): Fix for the case of raw-text.
13322         * process.c (read_process_output): Handle carryover correctly.
13324 2008-02-01  Dave Love  <fx@gnu.org>
13326         * regex.c (re_search_2): Fix last change.
13328 2008-02-01  Kenichi Handa  <handa@m17n.org>
13330         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
13331         target_multibyte.  Even in a unibyte case, return a converted
13332         multibyte char.
13333         (GET_CHAR_AFTER): New macro.
13334         (PATFETCH): Translate via multibyte char.
13335         (HANDLE_UNIBYTE_RANGE): Delete this macro.
13336         (SETUP_MULTIBYTE_RANGE): New macro.
13337         (regex_compile): Setup compiled code so that its multibyteness
13338         matches that of a target.  Fix the handling of "[X-YZ]" using
13339         SETUP_MULTIBYTE_RANGE.
13340         (analyse_first) <charset>: For filling fastmap for all multibyte
13341         characters, don't check by BASE_LEADING_CODE_P.
13342         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
13343         the same as RE_MULTIBYTE_P (bufp) now.
13344         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
13345         (TARGET_CHAR_AND_LENGTH): Delete this macro.
13346         (TRANSLATE_VIA_MULTIBYTE): New macro.
13347         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
13348         It is the same as RE_MULTIBYTE_P (bufp) now.
13349         <exactn>: Translate via multibyte.
13350         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.  Don't
13351         translate it.
13352         <charset, charset_not>: Fetch a character by
13353         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
13354         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
13355         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
13356         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
13357         by GET_CHAR_AFTER.
13358         (bcmp_translate): Likewise.
13360         * search.c (compile_pattern): Check the member target_multibyte,
13361         not the member multibyte of buf.
13363         * lread.c (read1): While reading a string, set force_singlebyte
13364         and force_multibyte correctly.
13366         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
13367         up of unibyte_to_multibyte_table.
13369 2008-02-01  Kenichi Handa  <handa@m17n.org>
13371         * coding.c (setup_coding_system): If coding has
13372         post-read-conversion or pre-write-conversion, set
13373         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
13374         respectively.
13375         (decode_coding_gap): Run post-read-conversion if any.
13377         * fileio.c (Finsert_file_contents): Even if we read into a
13378         unibyte buffer, check if we must decode the result or not.
13380 2008-02-01  Kenichi Handa  <handa@m17n.org>
13382         * coding.c (make_conversion_work_buffer): Change the work buffer
13383         name to the same one as that of Emacs 21.
13385 2008-02-01  Kenichi Handa  <handa@m17n.org>
13387         * coding.h (make_conversion_work_buffer): Adjust prototype.
13388         (code_conversion_restore): Don't extern it.
13390         * coding.c (detected_mask): Delete unused variable.
13391         (decode_coding_iso_2022): Pay attention to the byte sequence of
13392         CTEXT extended segment, and retain those bytes as is.
13393         (decode_coding_ccl): Delete unused variable `valids'.
13394         (setup_coding_system): Delete unused variable `category'.
13395         (consume_chars): Delete unused variable `category'.  Make it work
13396         for non-multibyte case.
13397         (make_conversion_work_buffer): Change argument.
13398         (saved_coding): Delete unused variable.
13399         (code_conversion_restore): Don't check saved_coding->destination.
13400         (code_conversion_save): New function.
13401         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
13402         instead of record_unwind_protect.
13403         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
13404         (detect_coding_system): Delete unused variable `mask'.
13405         (Fdefine_coding_system_internal): Delete unused variable id.
13407         * fileio.c (kill_workbuf_unwind): New function.
13408         (Finsert_file_contents): On replacing, call
13409         make_conversion_work_buffer with correct args, and call
13410         record_unwind_protect with the first arg kill_workbuf_unwind.
13412         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
13414 2008-02-01  Kenichi Handa  <handa@m17n.org>
13416         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
13417         (fontset_add): Fix for the case that TO is less than TO1.
13418         (Ffontset_info): Don't use fallback fontset on checking the
13419         default fontset.
13420         (dump_fontset): New function for debugging.
13422         * coding.c (Fdefine_coding_system_internal): Fix for the case that
13423         coding_type is Qcharset.
13425 2008-02-01  Kenichi Handa  <handa@m17n.org>
13427         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
13428         (map_char_table): Don't inherit the value from the parent on
13429         initializing VAL.  Adjust for the above change.
13431 2008-02-01  Kenichi Handa  <handa@m17n.org>
13433         * coding.c (Qsignature, Qendian): Delete these variables.
13434         (syms_of_coding): Don't initialize them.
13435         (CATEGORY_MASK_UTF_16_AUTO): New macro.
13436         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
13437         detect_info->found.
13438         (decode_coding_utf_16): Don't detect BOM here.
13439         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
13440         is NOT utf_16_without_bom.
13441         (setup_coding_system): For a coding system of type utf-16, check
13442         if the attribute :endian is Qbig or not (not nil or not), and set
13443         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
13444         (detect_coding): If coding type is utf-16 and BOM detection is
13445         required, detect it.
13446         (Fdefine_coding_system_internal): For a coding system of type
13447         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
13449 2008-02-01  Kenichi Handa  <handa@m17n.org>
13451         * coding.c (coding_set_source): Fix for the case that the current
13452         buffer is different from coding->src_object.
13453         (decode_coding_object): Don't use the conversion work buffer if
13454         DST_OBJECT is a buffer.
13456 2008-02-01  Dave Love  <fx@gnu.org>
13458         * lread.c (read_emacs_mule_char) [len==2]: Index
13459         emacs_mule_charset correctly.
13461 2008-02-01  Dave Love  <fx@gnu.org>
13463         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
13464         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
13465         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
13466         treated specially.)
13467         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
13468         (detected_mask): Remove Big5 bits.
13470 2008-02-01  Kenichi Handa  <handa@m17n.org>
13472         The following changes are to make the font rescaling facility
13473         compatible with Emacs 21.
13475         * xfaces.c (Vface_font_rescale_alist): Rename from
13476         Vface_resizing_fonts.
13477         (struct font_name): Rename member resizing_ratio to rescale_ratio.
13478         (font_rescale_ratio): Rename from font_resizing_ratio.
13479         (split_font_name): Set font->rescale_ratio.
13480         (better_font_p): Pay attention to font->rescale_ratio.
13481         (build_scalable_font_name): Likewise.  Change RESX, and RESY
13482         fields.
13483         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13485 2008-02-01  Kenichi Handa  <handa@m17n.org>
13487         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
13488         (Qutf_16_le): Remove these variables.
13489         (syms_of_coding): Don't DEFSYM them.
13490         (decode_coding_utf_16): Fix handling of BOM.
13491         (encode_coding_utf_16): Fix handling of BOM.
13493 2008-02-01  Kenichi Handa  <handa@m17n.org>
13495         * fileio.c (Finsert_file_contents): On replacing, before decoding
13496         the file into the work buffer, set point of the work buffer to the end.
13498 2008-02-01  Dave Love  <fx@gnu.org>
13500         * coding.c (Fcheck_coding_systems_region): Fix type errors.
13502 2008-02-01  Dave Love  <fx@gnu.org>
13504         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13505         and fix C types.
13507 2008-02-01  Kenichi Handa  <handa@m17n.org>
13509         * xdisp.c (SKIP_GLYPHS): New macro.
13510         (set_cursor_from_row): Pay attention to string display properties.
13512         * category.c (copy_category_entry): Fix for the case that RANGE
13513         is an integer.
13515         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
13517         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
13519 2008-02-01  Kenichi Handa  <handa@m17n.org>
13521         * charset.c (Fcharset_id_internal): New function.
13522         (syms_of_charset): Defsubr it.
13524         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
13525         with the last arg charset_list acquired from coding.
13526         (Fdefine_coding_system_internal): For ccl-based coding system, fix
13527         the attribute coding_attr_ccl_valids.
13529         * coding.h (enum define_coding_ccl_arg_index): Set the first
13530         member coding_arg_ccl_decoder to coding_arg_max.
13532         * ccl.h (ccl_driver): Adjust prototype.
13534         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
13535         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
13536         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
13537         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
13538         last arg Qnil.
13540 2008-02-01  Kenichi Handa  <handa@m17n.org>
13542         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
13543         call encode_char.
13545         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
13547 2008-02-01  Dave Love  <fx@gnu.org>
13549         * composite.c (syms_of_composite): Make composition_hash_table weak.
13551 2008-02-01  Kenichi Handa  <handa@m17n.org>
13553         * dispextern.h (check_face_attributes, generate_ascii_font_name)
13554         (font_name_registry): Don't extern them.
13555         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
13557         * fontset.h (Qfontset): Don't extern it.
13558         (new_fontset_from_font_name): Extern it.
13560         * fontset.c: Give 8 extra slots to fontset objects.
13561         (Qfontset_info): New variable.
13562         (syms_of_fontset): Defsym it.
13563         (FONTSET_FALLBACK): New macro.
13564         (fontset_face): Try also the default fontset.
13565         (make_fontset): Realize a fallback fontset from the default fontset.
13566         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
13567         using split_font_name_into_vector and build_font_name_from_vector.
13568         (Fset_fontset_font): Access the elements of font_spec by enum
13569         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
13570         name by using split_font_name_into_vector.
13571         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
13572         generate a proper font name from the fontset name.  Update
13573         Vfontset_alias_alist.
13574         (n_auto_fontsets): New variable.
13575         (new_fontset_from_font_name): New function.
13576         (Ffont_info): Store the information about fonts generated from the
13577         default fontset in the first extra slot of the returned char-table.
13579         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
13580         (font_name_registry): Delete function.
13581         (split_font_name_into_vector): New function.
13582         (build_font_name_from_vector): New function.
13583         (font_list): The argument REGISTRY is now a list of registry names.
13584         (choose_face_font): If we are choosing an ASCII font, and ATTRS
13585         specifies an explicit font name, return the name as is.  Make a
13586         list of registy names.
13588         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
13589         of x_new_fontset.
13590         (Fx_create_frame): Don't call x_new_fontset here.  Just use
13591         x_list_fonts to check the existence of fonts.
13593         * xterm.h (x_new_fontset): Adjust prototype.
13595         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
13596         string.  Use new_fontset_from_font_name to create a fontset from a
13597         font name.
13599 2008-02-01  Kenichi Handa  <handa@m17n.org>
13601         * syntax.c (Vfind_word_boundary_function_table): New name for
13602         Vnext_word_boundary_function_table.
13603         (find-word-boundary-function-table): New name for
13604         next-word-boundary-function-table.
13606 2008-02-01  Dave Love  <fx@gnu.org>
13608         * Makefile.in: Fix some dependencies.
13610         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
13611         set it to nil before returning.
13613         * composite.c (update_compositions): Fix type error.
13615         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
13617 2008-02-01  Kenichi Handa  <handa@m17n.org>
13619         * xterm.c (x_new_font): Optimize for the case that the font is
13620         already set for the frame.
13622 2008-02-01  Kenichi Handa  <handa@m17n.org>
13624         * chartab.c (char_table_ascii): Check if the char table contents
13625         is sub-char-table or not.
13626         (char_table_set, char_table_set_range): Fix argument to
13627         char_table_ascii.
13629         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
13630         (detect_coding_utf_8, detect_coding_utf_16)
13631         (detect_coding_emacs_mule, detect_coding_iso_2022)
13632         (detect_coding_sjis, detect_coding_big5)
13633         (detect_coding_ccl, detect_coding_charset): Change argument MASK
13634         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
13635         sequence is valid in this coding system.  Change callers.
13636         (MAX_ANNOTATION_LENGTH): New macro.
13637         (ADD_ANNOTATION_DATA): New macro.
13638         (ADD_COMPOSITION_DATA): Change argument.  Change callers.  Call
13639         ADD_ANNOTATION_DATA.  Change the format of annotation data.
13640         (ADD_CHARSET_DATA): New macro.
13641         (emacs_mule_char): New argument ID.  Change callers.
13642         (decode_coding_emacs_mule, decode_coding_iso_2022)
13643         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13644         Produce charset annotation data in coding->charbuf.
13645         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
13646         to charset annotation data in coding->charbuf.
13647         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
13648         coding->common_flags if the coding system is iso-2022 based and
13649         uses designation.
13650         (produce_composition): Adjust for the new annotation data format.
13651         (produce_charset): New function.
13652         (produce_annotation): Handle charset annotation.
13653         (handle_composition_annotation, handle_charset_annotation): New
13654         functions.
13655         (consume_chars): Handle charset annotation.  Utilize the above two
13656         functions.
13657         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
13658         buffer, get the deleted text as a string and set
13659         coding->src_object to that string.
13660         (detect_coding, detect_coding_system): Use the new struct
13661         coding_detection_info.
13663         * coding.h (struct coding_detection_info): New structure.
13664         (struct coding_system): Adjust prototype of the member `detector'.
13665         (CODING_ANNOTATE_CHARSET_MASK): New macro.
13667 2008-02-01  Kenichi Handa  <handa@m17n.org>
13669         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
13671 2008-02-01  Dave Love  <fx@gnu.org>
13673         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
13674         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
13675         to new local and nullify apropos_accumulate before returning.
13676         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
13678 2008-02-01  Kenichi Handa  <handa@m17n.org>
13680         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
13681         correctly.
13683 2008-02-01  Dave Love  <fx@gnu.org>
13685         * fns.c (Flanginfo): Call synchronize_system_time_locale.
13687 2008-02-01  Kenichi Handa  <handa@m17n.org>
13689         The following changes are to make character composition happen
13690         automatically on displaying.
13692         * Makefile.in (lisp, shortlisp): Add composite.elc.
13694         * composite.h (Qauto_composed, Vauto_composition_function)
13695         (Qauto_composition_function): Extern them.
13697         * composite.c (Vcomposition_function_table)
13698         (Qcomposition_function_table): Delete variables.
13699         (Qauto_composed, Vauto_composition_function)
13700         (Qauto_composition_function): New variables.
13701         (run_composition_function): Don't call
13702         compose-chars-after-function.
13703         (update_compositions): Clear `auto-composed' text property.
13704         (compose_chars_in_text): Delete this function.
13705         (syms_of_composite): Staticpro Qauto_composed and
13706         Qauto_composition_function.  Declare Vauto_composition_function as
13707         a Lisp variable.
13709         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
13711         * xdisp.c (it_props): Add an entry for Qauto_composed.
13712         (handle_auto_composed_prop): New function.
13714         * xselect.c (selection_data_to_lisp_data): Don't call
13715         compose_chars_in_text.
13717 2008-02-01  Dave Love  <fx@gnu.org>
13719         * keyboard.c (read_char): Modify checking around use of
13720         Vkeyboard_translate_table.
13722         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
13723         and fix C types.
13725 2008-02-01  Kenichi Handa  <handa@m17n.org>
13727         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
13728         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13729         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
13730         the case that the last byte is '\r' correctly.
13731         (decode_coding): Flush out the unprocessed data correctly.
13732         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
13734 2008-02-01  Dave Love  <fx@gnu.org>
13736         * xterm.c (XTread_socket): Fix changes for defined keysyms.
13737         Add XK_ISO... case.
13738         (xaw_scroll_callback): Revert last change.
13740 2008-02-01  Kenichi Handa  <handa@m17n.org>
13742         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
13744 2008-02-01  Kenichi Handa  <handa@m17n.org>
13746         * xfaces.c (Vface_resizing_fonts): New variable.
13747         (struct font_name): New member `resizing_ratio'.
13748         (font_resizing_ratio): New function.
13749         (split_font_name): Set font->resizing_ratio.
13750         (better_font_p): Pay attention to font->resizing_ratio.
13751         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
13752         RESX, and RESY fields.
13753         (try_alternative_families): Try scalable fonts if
13754         Vscalable_fonts_allowed is not Qt.
13755         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
13757 2008-02-01  Dave Love  <fx@gnu.org>
13759         * xterm.c (xaw_scroll_callback): Cast correctly.
13761 2008-02-01  Dave Love  <fx@gnu.org>
13763         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
13764         (lispy_kana_keys): Comment out.
13765         (make_lispy_event) [XK_kana_A]: Comment out.
13767         * xterm.c (xaw_scroll_callback): Cast call_data.
13768         (XTread_socket): Deal with ASCII keysyms.
13769         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
13771 2008-02-01  Dave Love  <fx@gnu.org>
13773         * xterm.c (Vx_keysym_table): New.
13774         (syms_of_xterm): Initialize it.
13775         (XTread_socket): Use it.
13776         From head: Eliminate incorrect optimization that tried to avoid
13777         decoding the output of X*LookupString.
13778         (x_get_font_repertory): Delete charset declaration.
13780 2008-02-01  Kenichi Handa  <handa@m17n.org>
13782         * coding.c (detect_coding_charset): If only ASCII bytes are found,
13783         return 0.
13784         (Fdefine_coding_system_internal): Setup
13785         CODING_ATTR_ASCII_COMPAT (attrs) correctly.
13787 2008-02-01  Dave Love  <fx@gnu.org>
13789         * coding.c (Fcheck_coding_system): Doc fix.
13791         * editfns.c (Finsert_byte): Return a proper value.
13793 2008-02-01  Kenichi Handa  <handa@m17n.org>
13795         * coding.c (decode_coding): Fix args to translate_chars.  Pay
13796         attention to Vstandard_translation_table_for_decode.
13797         (encode_coding): Fix args to translate_chars.  Pay attention to
13798         Vstandard_translation_table_for_encode.
13800         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
13801         SINGLE_BYTE_CHAR_P.
13803         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
13804         not by SINGLE_BYTE_CHAR_P.
13806         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
13807         SINGLE_BYTE_CHAR_P.
13809         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
13810         SINGLE_BYTE_CHAR_P.
13812         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
13813         by SINGLE_BYTE_CHAR_P.
13815         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
13816         SINGLE_BYTE_CHAR_P.
13818 2008-02-01  Dave Love  <fx@gnu.org>
13820         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
13822 2008-02-01  Dave Love  <fx@gnu.org>
13824         * fns.c (Flanginfo): Fix typo.
13826         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
13828 2008-02-01  Kenichi Handa  <handa@m17n.org>
13830         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
13831         (detect_coding_emacs_mule, detect_coding_iso_2022)
13832         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
13833         incomplete byte sequence.  Don't update *mask when correctly detected.
13834         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
13835         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
13836         (detect_coding, detect_coding_system): Adjust for the changes above.
13838 2008-02-01  Kenichi Handa  <handa@m17n.org>
13840         * character.c (char_string): Rename from
13841         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
13842         (string_char): Rename from string_char.
13844         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
13845         if C is greater than MAX_3_BYTE_CHAR.
13846         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
13847         string_char instead of string_char_with_unification.
13849 2008-02-01  Dave Love  <fx@gnu.org>
13851         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
13853 2008-02-01  Kenichi Handa  <handa@m17n.org>
13855         * keymap.c (push_key_description): Pay attention to force_multibyte.
13857         * regex.c (re_search_2): Fix for the case of unibyte buffer.
13859 2008-02-01  Dave Love  <fx@gnu.org>
13861         * charset.c (define_charset_internal): Rename `supprementary'.
13863         * Makefile.in (lisp, shortlisp): Remove latin-N.
13865 2008-02-01  Dave Love  <fx@gnu.org>
13867         * xfns.c (x_window, x_window): Use use_xim.
13869         * xterm.c (use_xim): Initialize.
13870         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13871         (x_term_init): Maybe set use_xim.
13873         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13875 2008-02-01  Kenichi Handa  <handa@m17n.org>
13877         * search.c (search_buffer): Fix case-fold-search of multibyte
13878         characters.
13879         (boyer_moore): Rename the last argument to char_high_bits.
13881 2008-02-01  Kenichi Handa  <handa@m17n.org>
13883         * xdisp.c (display_string): Fix for the case of zero width glyph.
13885         * xfns.c (x_set_font): Change the error message of the case that
13886         x_new_fontset returns Qt.
13888         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
13889         (Finternal_set_lisp_face_attribute): Use signal_error for the
13890         error of invalid fontset.
13892         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
13893         fontset, return Qt.
13895 2008-02-01  Dave Love  <fx@gnu.org>
13897         * unexelf.c (unexec): Make .got handling not SGI-specific.
13899         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
13901         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
13903         * keyboard.c (read_key_sequence): Fix type error.
13905         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
13906         type error.
13908         * fontset.c (fontset_add): Return Lisp_Object.
13910 2008-02-01  Dave Love  <fx@gnu.org>
13912         * charset.h (charset_ordered_list_tick): Declare extern.
13914 2008-02-01  Kenichi Handa  <handa@m17n.org>
13916         The following changes (and some of 2008-02-01 changes of mine) are
13917         for handling syntax, category, and case conversion for unibyte
13918         characters by converting them to multibyte on the fly.  With these
13919         changes, we don't have to setup syntax and case tables for unibyte
13920         characters in each language environment.
13922         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
13923         multibyte if necessary.
13925         * bytecode.c (Fbyte_code): Likewise.
13927         * character.h (LEADING_CODE_LATIN_1_MIN)
13928         (LEADING_CODE_LATIN_1_MAX): New macros.
13929         (unibyte_to_multibyte_table): Extern it.
13930         (unibyte_char_to_multibyte): New macro.
13931         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
13932         (CHAR_LEADING_CODE): New macro.
13933         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
13935         * character.c (unibyte_to_multibyte_table): New variable.
13936         (unibyte_char_to_multibyte): Move to character.h and define as macro.
13937         (multibyte_char_to_unibyte): If C is an eight-bit character,
13938         convert it to the corresponding byte value.
13940         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
13941         not 1, signals an error.  Update the elements of
13942         unibyte_to_multibyte_table.
13943         (init_charset_once): Initialize unibyte_to_multibyte_table.
13944         (syms_of_charset): Define the charset `iso-8859-1'.
13946         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
13947         as is without converting it to unibyte.  In a unibyte buffer,
13948         convert C to multibyte before checking the syntax.
13950         * lisp.h (unibyte_char_to_multibyte): Delete extern.
13952         * minibuf.c (Fminibuffer_complete_word): Use the macro
13953         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
13955         * regex.h (struct re_pattern_buffer): New member target_multibyte.
13957         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
13958         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
13959         that is zero, convert an eight-bit char to multibyte.
13960         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
13961         non-emacs case.
13962         (PATFETCH): Convert an eight-bit char to multibyte.
13963         (HANDLE_UNIBYTE_RANGE): New macro.
13964         (regex_compile): Setup the compiled pattern for multibyte chars
13965         even if the given regex string is unibyte.  Use PATFETCH_RAW
13966         instead of PATFETCH in many places.  To handle `charset'
13967         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
13968         only for ASCII chars.
13969         (analyse_first) <exactn>: Simplify because the compiled pattern
13970         is multibyte.
13971         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
13972         <charset>: Use CHAR_LEADING_CODE to get leading codes.
13973         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
13974         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
13975         multibyte always 1.
13976         (re_search_2): In emacs, set the locale variable multibyte to 1,
13977         otherwise to 0.  New local variable target_multibyte.  Check it
13978         to decide the multibyteness of STR1 and STR2.  If
13979         target_multibyte is zero, convert unibyte chars to multibyte
13980         before translating and checking fastmap.
13981         (TARGET_CHAR_AND_LENGTH): New macro.
13982         (re_match_2_internal): In emacs, set the locale variable multibyte
13983         to 1, otherwise to 0.  New local variable target_multibyte.  Check
13984         it to decide the multibyteness of STR1 and STR2.  Use
13985         TARGET_CHAR_AND_LENGTH to fetch a character from D.
13986         <charset, charset_not>: If multibyte is nonzero, check fastmap
13987         only for ASCII chars.  Call bcmp_translate with
13988         target_multibyte, not with multibyte.
13989         <begline>: Declare the local variable C as `unsigned'.
13990         (bcmp_translate): Change the last arg name to target_multibyte.
13992         * search.c (compile_pattern_1): Don't adjust the multibyteness of
13993         the regexp pattern and the matching target.  Set cp->buf.multibyte
13994         to the multibyteness of the regexp pattern.  Set
13995         cp->but.target_multibyte to the multibyteness of the matching target.
13996         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
13997         FETCH_STRING_CHAR_ADVANCE.
13998         (Freplace_match): Convert unibyte chars to multibyte.
14000         * syntax.c (char_quoted, back_comment, scan_words)
14001         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14002         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14003         unibyte chars to multibyte.
14004         (skip_chars): Delete the arg syntaxp, and move the code for
14005         handling syntaxes to skip_syntaxes.  Change callers.
14006         Fix the case that the multibyteness of STRING and the current
14007         buffer doesn't match.
14008         (skip_syntaxes): New function.
14009         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14010         SINGLE_BYTE_CHAR_P.
14012 2008-02-01  Kenichi Handa  <handa@m17n.org>
14014         * xfaces.c (QCfontset): New variable.
14015         (LFACE_FONTSET): New macro.
14016         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14017         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14018         (Finternal_set_lisp_face_attribute)
14019         (Finternal_get_lisp_face_attribute): Handle QCfontset.
14020         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14021         check also LFACE_FONTSET_INDEX.
14022         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14023         attrs[LFACE_FONT_INDEX].
14024         (syms_of_xfaces): Intern and staticpro QCfontset.
14026         * dispextern.h (enum lface_attribute_index): New member
14027         LFACE_FONTSET_INDEX.
14029         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14031 2008-02-01  Kenichi Handa  <handa@m17n.org>
14033         * coding.c (coding_set_destination): Fix coding->destination for
14034         the case converting a region.
14035         (encode_coding_utf_8): Encode eight-bit chars as single byte.
14036         (encode_coding_object): Fix coding->dst_pos and
14037         coding->dst_pos_byte for the case converting a region.
14039         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14041         * character.h (BYTE8_STRING): New macro.
14043         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14045 2008-02-01  Kenichi Handa  <handa@m17n.org>
14047         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14048         characters by octal form.
14050         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14052         * buffer.h (_fetch_multibyte_char_len): Delete extern.
14053         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14054         _fetch_multibyte_char_len.
14055         (FETCH_CHAR_AS_MULTIBYTE): New macro.
14057         * casetab.c (set_canon, set_identity, shuffle): Simplify.
14059         * casefiddle.c (casify_object): Simplify.  Handle the case that
14060         the case conversion change the byte length.
14061         (casify_region): Likewise.
14063         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14065         * character.c (_fetch_multibyte_char_len): Delete this variable.
14066         (syms_of_character): Setup Vprintable_chars.
14068         * editfns.c (Fchar_equal): Fix for the unibyte case.
14069         (Finsert_byte): New function.
14070         (syms_of_editfns): Defsubr it.
14072         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14073         of direct code 0x3ffff.
14075         * search.c (Freplace_match): Fix for the unibyte case.
14077 2008-02-01  Kenichi Handa  <handa@m17n.org>
14079         * lread.c (safe_to_load_p): Fix the logic.
14081         * syntax.c (scan_words): Don't treat characters belonging to
14082         different scripts as constituting a word.
14084         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14086         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14088         * emacs.c (main): In the case of --unibyte, instead of aborting on
14089         finding non-empty buffer, make it unibyte.
14091 2008-02-01  Kenichi Handa  <handa@m17n.org>
14093         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14094         to create a fontset.
14096 2008-02-01  Dave Love  <fx@gnu.org>
14098         * character.c (Funibyte_char_to_multibyte): Doc fix.
14100         * xfns.c [HAVE_STDLIB_H]: Fix last change.
14102 2008-02-01  Kenichi Handa  <handa@m17n.org>
14104         * fontset.c (fontset_add): Make the type `int'.
14105         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14107         * character.c (unibyte_char_to_multibyte)
14108         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14109         charset_unibyte, not charset_primary.
14111         * charset.h (charset_unibyte): Extern it instead of charset_primary.
14113         * charset.c (charset_unibyte): Rename from charset_primary.
14114         (Funibyte_charset): Rename from Fprimary_charset.
14115         (Fset_unibyte_charset): Rename from Fset_primary_charset.
14116         (syms_of_charset): Adjust for the above changes.
14118         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14119         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
14120         it->multibyte_p is zero.
14122         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14123         Delete extern.
14125 2008-02-01  Kenichi Handa  <handa@m17n.org>
14127         * coding.c (Fdefine_coding_system_internal): Fix category setting
14128         for a coding system of type iso-2022.
14130 2008-02-01  Kenichi Handa  <handa@m17n.org>
14132         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14134 2008-02-01  Kenichi Handa  <handa@m17n.org>
14136         * syntax.c (Vnext_word_boundary_function_table): New variable.
14137         (next-word-boundary-function-table): Declare it as a Lisp variable
14138         in syms_of_syntax.
14139         (scan_words): Call functions in Vnext_word_boundary_function_table
14140         if any.
14142         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14144         * fontset.c (fs_load_font): If fontp->charset is not negative,
14145         return fontp without setting its members.
14147 2008-02-01  Dave Love  <fx@gnu.org>
14149         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14151         * m/sparc.h (HAVE_ALLOCA): Delete.
14153         * s/irix6-5.h: Don't include strings.h.
14154         (bcopy, bzero, bcmp): Don't undef.
14156         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14158         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14159         (TIOCSIGSEND): Don't test IRIX6.
14160         (bcopy, bzero, bcmp): Define conditionally.
14162 2008-02-01  Kenichi Handa  <handa@m17n.org>
14164         * buffer.c (Qas, Qmake, Qto): New variables.
14165         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
14166         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14168         * callproc.c (Fcall_process): Don't call insert_1_both directly if
14169         we are inserting a process output into a multibyte buffer.
14171         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14172         multibyte_char_to_unibyte.
14174         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14175         by the primary charset, make it eight-bit char.
14176         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14178         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14179         (charset_8_bit__control, charset_8_bit_graphic)
14180         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14181         (define_charset_internal): New function.
14182         (syms_of_charset): Call define_charset_internal for pre-defined
14183         charsets.
14185         * charset.h (charset_8_bit): Extern it.
14187         * coding.c (make_conversion_work_buffer): Adjust for the change
14188         of Fset_buffer_multibyte.
14189         (encode_coding_raw_text): Increment p0 in the loop.
14191         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14193         * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14194         for the change of Fset_buffer_multibyte.
14196         * fns.c (Fstring_to_multibyte): New function.
14197         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14199 2008-02-01  Dave Love  <fx@gnu.org>
14201         * xfns.c (x_put_x_image): Declare args.
14203         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14204         (try_font_list): Declare an arg.
14206         * xdisp.c (message2_nolog, set_message): Declare an arg.
14208         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
14210         * syntax.c (scan_sexps_forward): Declare an arg.
14212         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14213         Declare an arg.
14215         * lisp.h (Fnew_fontset): Declare.
14217         * keymap.c (push_key_description): Call CHARACTERP correctly.
14219         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
14220         (face_for_char): Delete unused vars.
14221         (Fset_fontset_font): Doc fix.  Delete unused vars.
14223         * doc.c (Fsubstitute_command_keys): Delete unused vars.
14225         * composite.c (update_compositions): Declare arg.
14227         * cm.c (calccost, cmgoto): Declare args.
14229         * charset.c: Remove `emacs' conditional.  Doc fixes.
14230         (map_char_table_for_charset): Declare.
14232         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14234         * ccl.c: Remove `emacs' conditional.
14236 2008-02-01  Kenichi Handa  <handa@m17n.org>
14238         The following changes are to allow specifying multiple font
14239         patterns for a character range (specified by script or charset).
14241         * Makefile.in (abbrev.o): Depend on syntax.h.
14242         (xfaces.o): Depend on charset.h.
14244         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14245         SINGLE_BYTE_CHAR_P.
14247         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14249         * character.h (Vchar_script_table): Extern it.
14251         * character.c (Vscript_alist): Delete.
14252         (Vchar_script_table, Qchar_script_table): New variable.
14253         (syms_of_character): Declare Vchar_script_table as a lisp variable
14254         and initialize it.
14256         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
14257         have property char-table-extra-slots, make no extra slot.
14259         * dispextern.h (struct face): Delete member `charset'.
14260         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14261         SINGLE_BYTE_CHAR_P.
14262         (choose_face_font, lookup_non_ascii_face, font_name_registry):
14263         Add prototypes.
14264         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14265         (generate_ascii_font_name): Rename from generate_ascii_font.
14267         * fontset.h (get_font_repertory_func): New prototype.
14268         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14269         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14271         * fontset.c (Qprepend, Qappend): New variables.
14272         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
14273         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
14274         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
14275         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
14276         (fontset_ref_and_range, fontset_add, reorder_font_vector)
14277         (load_font_get_repertory): New functions.
14278         (fontset_set): Delete.
14279         (fontset_face): New arg FACE.  Return face ID, not face.
14280         Complete re-write to handle new fontset structure.  Change caller.
14281         (free_face_fontset): Use ASET istead of AREF (X) = Y.
14282         (face_for_char): Don't call lookup_face.
14283         (make_fontset_for_ascii_face): New arg FACE.
14284         (fs_load_font): New arg CHARSET_ID.  Don't check
14285         Vfont_encoding_alist here.
14286         (find_font_encoding): New function.
14287         (list_fontsets): Use STRINGP, not ! NILP.
14288         (accumulate_script_ranges): New function.
14289         (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
14290         re-written to handle new fontset structure.
14291         (Ffontset_font): Return a copy of element.
14292         (syms_of_fontset): Define symbols Qprepend and Qappend.  Fix
14293         docstring of font-encoding-alist.
14295         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
14296         (Fset_fotset_font): Fix arguments to 5.
14298         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
14300         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
14301         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14302         (highlight_trailing_whitespace): Adjust for the change of
14303         lookup_named_face.
14305         * xfaces.c: Include charset.h.
14306         (load_face_font): Delete argument C.  Change caller.
14307         (generate_ascii_font_name): Rename from generate_ascii_font.
14308         (font_name_registry): New function.
14309         (cache_face): Store ascii faces before non-ascii faces in buckets.
14310         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
14311         Lookup only ascii faces.
14312         (lookup_non_ascii_face): New function.
14313         (lookup_named_face): Delete argument C.  Change caller.
14314         (lookup_derived_face): Delete argument C.  Change caller.
14315         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
14316         a string, just call font_list with it.
14317         (choose_face_font): Delete arguments FACE and C.  New arg
14318         FONT_SPEC.  Change caller.
14319         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
14320         Change caller.
14321         (realize_non_ascii_face): New function.
14322         (realize_x_face): Call load_face_font here.
14323         (realize_tty_face): Delete argument C.  Change caller.
14324         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
14325         get a face ID.
14326         (dump_realized_face): Don't print charset of FACE.
14328         * xfns.c (x_set_font): Always call x_new_fontset and
14329         store_frame_parameter.
14330         (Fx_create_frame): Call x_new_fontset, not x_new_font.
14331         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
14333         * xterm.h (x_get_font_repertory): Extern it.
14335         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14336         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
14337         it->multibyte_p is zero.
14338         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14339         (x_new_fontset): If FONTSETNAME doesn't match any existing
14340         fontsets, create a new one.
14341         (x_get_font_repertory): New function.
14343 2008-02-01  Kenichi Handa  <handa@m17n.org>
14345         * coding.c (Ffind_coding_systems_region_internal): Detect an
14346         ASCII only string correctly.
14348         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
14349         version is 0.
14351 2008-02-01  Kenichi Handa  <handa@m17n.org>
14353         * lread.c: Include "coding.h".
14354         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
14355         (load_each_byte, unread_char): New variables.
14356         (readchar_backlog): Delete.
14357         (readchar): Return a character unless load_each_byte is nonzero.
14358         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
14359         cons.  If unread_char is not -1, simply return it.
14360         (unreadchar): Handle the case that readcharfun is
14361         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
14362         (read_multibyte): Delete.
14363         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
14364         (read_emacs_mule_char): New functions.
14365         (Fload): Even if the file doesn't have the extension ".elc", if
14366         safe_to_load_p returns a positive version number, assume that the
14367         file contains bytecompiled code.  If the version is less than 22,
14368         load the file while decoding multibyte sequences by emacs-mule.
14369         (readevalloop): Don't use readchar_backlog.
14370         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
14371         (Fread_from_string): Pay attention to the case that STREAM is a cons.
14372         (read_escape): Delete the arg BYTEREP.
14373         (read1): Set load_each_byte to 1 temporarily while handling
14374         #@NUMBER.  Don't call read_multibyte.
14375         (read_vector): Call Fread with a cons.  If readcharfun is
14376         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
14377         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
14378         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
14379         and Qload_force_doc_strings.
14381 2008-02-01  Kenichi Handa  <handa@m17n.org>
14383         * xdisp.c (face_before_or_after_it_pos): Call
14384         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
14386 2008-02-01  Kenichi Handa  <handa@m17n.org>
14388         * character.h (TRAILING_CODE_P): New macro.
14389         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
14390         (string_char_with_unification): Fix prototype.
14391         (Vscript_alist): Extern it.
14393         * character.c (Vscript_alist): New variable.
14394         (string_char_with_unification, str_as_unibyte)
14395         (string_escape_byte8): Add `const' to local variables.
14396         (syms_of_character): Declare script-alist as a Lisp variable.
14398         * charset.h (Vcharset_ordered_list): Extern it.
14399         (charset_ordered_list_tick): Extern it.
14400         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
14401         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
14402         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
14403         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
14404         (Funify_charset): Adjust for the change of Funify_charset.
14406         * charset.c (charset_ordered_list_tick): New variable.
14407         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
14408         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
14409         deunify intead of unify a charset.
14410         (string_xstring_p): Add `const' to local variables.
14411         (find_charsets_in_text): Add `const' to arguments and local variables.
14412         (encode_char): Adjust for the change of Funify_charset.  Fix
14413         detecting of invalid code.
14414         (Fset_charset_priority): Increment charset_ordered_list_tick.
14415         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
14416         and TO_CODE.
14418         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
14419         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
14420         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
14421         (decode_coding_ccl, consume_chars)
14422         (Ffind_coding_systems_region_internal)
14423         (Fcheck_coding_systems_region): Add `const' to local variables.
14425         * print.c (print_object): Use octal form for printing the
14426         contents of a bool vector.
14428 2008-02-01  Dave Love  <fx@gnu.org>
14430         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
14431         <version == 20>: Refuse to load.
14433 2008-02-01  Dave Love  <fx@gnu.org>
14435         * fns.c: Move coding.h.
14436         (Qcodeset, Qdays, Qmonths): New.
14437         (concat): Use CHARACTERP instead of INTEGERP.
14438         (Flocale_codeset): Delete.
14439         (Flanginfo): New function.
14440         (syms_of_fns): Change accordingly.
14442         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
14444 2008-02-01  Dave Love  <fx@gnu.org>
14446         * casetab.c (init_casetab_once, init_casetab_once): Fix
14447         CHAR_TABLE_SET call.
14449         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
14451         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
14453         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
14454         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
14455         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
14457         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
14459         * coding.c (ENCODE_DESIGNATION, decode_eol)
14460         (make_conversion_work_buffer, code_conversion_restore)
14461         (Fdefine_coding_system_internal): Convert Lisp types.
14462         (code_conversion_restore): Use EQ, not ==.
14463         (Fencode_coding_string): Fix code_convert_string call.
14465         * coding.h (code_convert_region): Fix prototype.
14467         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
14469         * fontset.c (fontset_ref, fontset_set, fs_load_font)
14470         (Ffontset_info): Convert Lisp types.
14472         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
14474         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
14476         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
14478         * chartab.c: Include "...h", not <...h> in some cases.
14480         * callproc.c (Fcall_process): Remove unused variables.
14482 2008-02-01  Dave Love  <fx@gnu.org>
14484         * coding.c (Fset_coding_system_priority): Allow null arg list.
14486 2008-02-01  Dave Love  <fx@gnu.org>
14488         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14489         (Fself_insert_and_exit): Use CHARACTERP.
14491         * callproc.c (Fcall_process): Remove unused vars.
14493         * xterm.c (XTread_socket): Add extra dead keysyms.
14495         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
14497         * dispextern.h: Remove prototypes for redraw_frame,
14498         redraw_garbaged_frames.
14500         * cmds.c (Fself_insert_command): Use CHARACTERP.
14502         * chartab.c (make_sub_char_table): Remove unused var.
14503         (Fset_char_table_default, Fmap_char_table): Doc fix.
14505         * keymap.c (access_keymap): Remove generic char code.
14506         (push_key_description): Use CHARACTERP.
14508 2008-02-01  Dave Love  <fx@gnu.org>
14510         * charset.c: Doc fixes.
14511         (Funify_charset): Extra checking.
14513 2008-02-01  Dave Love  <fx@gnu.org>
14515         * lread.c: Remove some unused variables.
14516         (safe_to_load_p): If safe, return the magic number version byte.
14517         (Fload): Maybe use load-with-code-conversion.
14519 2008-02-01  Kenichi Handa  <handa@m17n.org>
14521         * category.c (Fmodify_category_entry): Don't modify the contents
14522         of category_set for characters out of the range.  Avoid
14523         unnecessary modification.
14525         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
14526         Vchar_unify_table.  The default value of the table is now nil.
14528         * character.c (syms_of_character): Setup Vchar_width_table for
14529         eight-bit-control and raw-byte chars.
14531         * charset.h (enum define_charset_arg_index): Delete
14532         charset_arg_parents and add charset_arg_subset and
14533         charset_arg_superset.
14534         (enum charset_attr_index): Delete charset_parents and add
14535         charset_subset and charset_superset.
14536         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
14537         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
14538         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
14539         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
14540         (CHARSET_SUPERSET): New macros.
14541         (charset_work): Extern it.
14542         (ENCODE_CHAR): Use charset_work.
14543         (CHAR_CHARSET_P): Adjust for the change of encoder format.
14544         (map_charset_chars): Extern it.
14546         * charset.c (load_charset_map): Set the default value of encoder
14547         and deunifier char-tables to nil.
14548         (map_charset_chars): Change argument.  Change callers.  Use
14549         map_char_table_for_charset instead of map_char_table.
14550         (Fmap_charset_chars): New optional args from_code and to_code.
14551         (Fdefine_charset_internal): Adjust for the change of
14552         `define-charset' (:parents -> :subset or :superset).
14553         (charset_work): New variable.
14554         (encode_char, syms_of_charset): Adjust for the change of
14555         Fdefine_charset_internal.
14556         (Ffind_charset_string): Setup the vector `charsets' correctly.
14558         * chartab.c (sub_char_table_ref_and_range): New arg default.  Fix
14559         the previous change.
14560         (char_table_ref_and_range): Adjust for the above change.
14561         (map_sub_char_table_for_charset): New function.
14562         (map_char_table_for_charset): New function.
14564         * keymap.c (describe_vector): Handle a char-table directly here.
14565         (describe_char_table): Delete.
14567         * lisp.h (map_charset_chars): Delete.
14569 2008-02-01  Dave Love  <fx@gnu.org>
14571         * fns.c (count_combining): Comment out (unused).
14572         (Flocale_codeset): New.
14573         (syms_of_fns): Defsubr it.
14575         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
14576         (size_t): Remove.
14578 2008-02-01  Dave Love  <fx@gnu.org>
14580         * Makefile.in (chartab.o): Depend on charset.h.
14582 2008-02-01  Kenichi Handa  <handa@m17n.org>
14584         * character.c (syms_of_character): Set the default value of
14585         Vprintable_chars to Qnil.
14587 2008-02-01  Dave Love  <fx@gnu.org>
14589         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
14591 2008-02-01  Kenichi Handa  <handa@m17n.org>
14593         * charset.c (load_charset_map): Handle the case that from < to
14594         correctly.
14596         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
14597         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
14598         Pay attention to raw-8-bit chars.
14600 2008-02-01  Kenichi Handa  <handa@m17n.org>
14602         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
14603         It is not bytecompiled now.
14605         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
14606         (charset_jisx0208): New variables.
14607         (Fdefine_charset_internal): Setup them if appropriate.
14608         (init_charset_once): Initialize them to -1.
14610         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
14611         (charset_jisx0208): Extern them.
14613         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
14614         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
14615         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
14616         (setup_iso_safe_charsets): Fix arguments to Fassq.
14617         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
14618         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
14619         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
14620         (encode_coding_iso_2022): Change the 1st arg to
14621         ENCODE_ISO_CHARACTER to a variable.
14623 2008-02-01  Kenichi Handa  <handa@m17n.org>
14625         * charset.h (enum define_charset_arg_index): New enums
14626         charset_arg_min_code and charset_arg_max_code.
14627         (struct charset): New member char_index_offset.
14629         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
14630         Take charset->char_index_offset into account.
14631         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
14632         args[charset_arg_max_code].  Setup charset.char_index_offset.
14633         (syms_of_charset): Fix args to Fdefine_charset_internal.
14635 2008-02-01  Dave Love  <fx@gnu.org>
14637         * coding.c (decode_coding_utf_8): Reject overlong sequences.
14639 2008-02-01  Dave Love  <fx@gnu.org>
14641         * coding.c: Doc fixes.
14642         (Fcoding_system_aliases): Fix return value.
14643         (Qmac): Remove (duplicated) definition.
14645 2008-02-01  Dave Love  <fx@gnu.org>
14647         * charset.c (Fcharset_priority_list, Fset_charset_priority): New
14648         functions.
14650         * character.c (Fstring): Doc fix.
14652         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
14654         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not
14655         ids.
14656         (font-encoding-alist): Doc fix.
14658 2008-02-01  Dave Love  <fx@gnu.org>
14660         * term.c (costs_set): Declare static, non-initialized for pcc.
14661         (encode_terminal_code): Remove unused var.
14663         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
14664         for K&R.
14666         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
14668         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
14669         (suffixes): Move out of make_subsidiaries for K&R.
14671         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
14673         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
14675 2008-02-01  Dave Love  <fx@gnu.org>
14677         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
14679         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
14681 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
14683         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
14685         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
14687 2008-02-01  Kenichi Handa  <handa@m17n.org>
14689         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
14690         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
14692 2008-02-01  Kenichi Handa  <handa@m17n.org>
14694         * coding.c (decode_coding_charset): Adjust for the change of
14695         Fdefine_coding_system_internal.
14696         (Fdefine_coding_system_internal): For a coding system of
14697         `charset' type, store a list of charset IDs in
14698         `charset_attr_charset_valids' element of coding attributes.
14700 2008-02-01  Kenichi Handa  <handa@m17n.org>
14702         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
14703         (emacs_mule_char): New arg src.  Delete arg `composition'.  Change
14704         caller.  Handle 2-byte and 3-byte charsets correctly.
14705         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
14706         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
14707         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
14708         (DECODE_EMACS_MULE_21_COMPOSITION): Call
14709         DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
14710         sequence.
14711         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
14712         `src' and `consumed_chars' correctly before calling emacs_mule_char.
14713         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
14714         and alt&rule composition.
14715         (decode_coding_iso_2022): Handle composition correctly.
14716         (init_coding_once): Setup emacs_mule_bytes for private charsets.
14718         * charset.c (Fdefine_charset_internal): Fix bug for the case of
14719         re-defining a charset.  If the charset has :emacs-mule-id, setup
14720         emacs_mule_bytes.
14721         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
14723 2008-02-01  Kenichi Handa  <handa@m17n.org>
14725         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
14726         (encode_coding_big5, encode_coding_charset): If coding requires safe
14727         encoding, produce a character specified by
14728         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
14730 2008-02-01  Dave Love  <fx@gnu.org>
14732         * xterm.c (XSetIMValues): Declare.
14734         * process.c: Conditionally include sys/wait.h, pty.h.
14736         * print.c (print_object): Fix print format for 64-bit systems.
14738         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
14740         * buffer.c (emacs_strerror): Declare.
14742         * fontset.c (Fclear_face_cache): Declare.
14743         (accumulate_font_info): Comment-out (unused).
14744         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
14745         variables.
14747         * character.h (string_escape_byte8): Declare.
14749         * charset.c (load_charset_map, load_charset_map_from_file): Remove
14750         unused vars.
14751         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
14752         (Fmap_charset_chars): Doc fix.
14754         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
14755         (Fset_coding_system_priority, Fset_coding_system_priority)
14756         (Fdefine_coding_system_internal): Doc fix.
14758 2008-02-01  Dave Love  <fx@gnu.org>
14760         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
14762 2008-02-01  Kenichi Handa  <handa@m17n.org>
14764         * character.c (string_escape_byte8): Make multibyte string with
14765         correct size.
14767         * charset.c (Fmake_char): Delete unnecessary code.
14769 2008-02-01  Kenichi Handa  <handa@m17n.org>
14771         * xfns.c (x_encode_text): Allocate coding.destination here, and
14772         call encode_coding_object with dst_object Qnil.
14774         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
14775         multibyte form correctly.
14777         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
14778         against Vfont_encoding_alist.
14780         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
14781         handling of charset list.
14782         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
14783         (decode_coding_object): Move point to coding->dst_pos before
14784         calling post-read-conversion function.
14785         (encode_coding_object): Give correct arguments to
14786         pre-write-conversion.  Ignore the return value of
14787         pre-write-conversion function.  Pay attention to the case that
14788         pre-write-conversion changes the current buffer.  If dst_object is
14789         Qt, even if coding->src_bytes is zero, allocate at least one byte
14790         to coding->destination.
14792         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
14794         * charset.c (Fmake_char): Make it more backward compatible.
14795         (Fmap_charset_chars): Fix docstring.
14797 2008-02-01  Dave Love  <fx@gnu.org>
14799         * coding.c: Doc fixes.
14800         (Fdefine_coding_system_alias): Use names, not symbols, in
14801         coding-system-alist.
14803 2008-02-01  Kenichi Handa  <handa@m17n.org>
14805         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
14806         of calling free_realized_face.
14808 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
14810         * charset.c (read_hex): Don't treat SPC as a comment starter.
14811         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
14812         (Fdecode_char): Fix typo.
14814 2008-02-01  Kenichi Handa  <handa@m17n.org>
14816         * charset.h (struct charset): New member `code_space_mask'.
14818         * coding.c (coding_set_source): Delete the local variable beg_byte.
14819         (encode_coding_charset, Fdefine_coding_system_internal):
14820         Delete the local variable charset.
14821         (Fdefine_coding_system_internal): Setup
14822         attrs[coding_attr_charset_valids] correctly.
14824         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
14825         member to check if CODE is valid or not.
14826         (Fdefine_charset_internal): Initialize `code_space_mask' member.
14827         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
14828         is within the range of charset->min_code and carset->max_code.
14830 2008-02-01  Dave Love  <fx@gnu.org>
14832         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
14834         * dispextern.h (generate_ascii_font): Fix return type.
14836         * xfaces.c (generate_ascii_font): Fix arg declaration.
14838         * coding.c (coding_inherit_eol_type)
14839         (Fset_terminal_coding_system_internal)
14840         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
14842 2008-02-01  Kenichi Handa  <handa@m17n.org>
14844         * coding.c (decode_coding_charset, encode_coding_charset): Handle
14845         multiple charsets correctly.
14847 2008-02-01  Kenichi Handa  <handa@m17n.org>
14849         * search.c (boyer_moore): Fix handling of multibyte character
14850         translation.
14852         * xdisp.c (display_mode_element): When the variable `elt' is
14853         changed, update `this' and `lisp_string'.
14855 2008-02-01  Kenichi Handa  <handa@m17n.org>
14857         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
14859         * callproc.c (Fcall_process): Be sure to give the current buffer
14860         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
14862         * charset.c (struct charset_map_entries): New struct.
14863         (load_charset_map): Rename from parse_charset_map.  New args
14864         entries and n_entries.  Change caller.
14865         (load_charset_map_from_file): Rename from load_charset_map.
14866         Change caller.  New arg control_flag.  Call load_charset_map at
14867         the tail.
14868         (load_charset_map_from_vector): New function.
14869         (Fdefine_charset_internal): Setup charset.compact_codes_p.
14870         (encode_char): If the charset is compact, change a character index
14871         to a code point.
14873         * coding.c (coding_alloc_by_making_gap): Check the case that the
14874         source and destination are the same correctly.
14875         (decode_coding_raw_text): Set coding->consumed_char and
14876         coding->consumed to 0.
14877         (produce_chars): If coding->chars_at_source is nonzero, update
14878         coding->consumed_char and coding->consumed before calling
14879         alloc_destination.
14880         (Fdefine_coding_system_alias): Register ALIAS in
14881         Vcoding_system_alist.
14882         (syms_of_coding): Define `no-conversion' coding system at the tail.
14884         * fileio.c (Finsert_file_contents): Set coding_system instead of
14885         val.  If the current buffer is multibyte, always call
14886         decode_coding_gap.
14888         * xfaces.c (try_font_list): Give higher priority to fontset's
14889         family than face's family.
14891 2008-02-01  Kenichi Handa  <handa@m17n.org>
14893         * callproc.c (Fcall_process): Be sure to give the current buffer
14894         to decode_coding_c_string.
14896         * xfaces.c (try_font_list): Give a family specified in a fontset
14897         higher priority than a family specified in a face.
14899 2008-02-01  Kenichi Handa  <handa@m17n.org>
14901         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
14902         Fix arguments to insert_from_buffer.
14904         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
14906 2008-02-01  Kenichi Handa  <handa@m17n.org>
14908         * coding.c (produce_chars): Set the variable `multibytep' correctly.
14909         (decode_coding_gap): Set coding->dst_multibyte correctly.
14911 2008-02-01  Kenichi Handa  <handa@m17n.org>
14913         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
14914         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
14915         (encode_coding_utf_16): Substitute coding->default_char for
14916         non-Unicode characters.
14917         (decode_coding): Don't call record_insert here.
14918         (setup_coding_system): Initialize `surrogate' of
14919         coding->spec.utf_16 to 0.
14920         (EMIT_ONE_BYTE): Fix for multibyte case.
14922         * insdel.c (insert_from_gap): Call record_insert.
14924 2008-02-01  Kenichi Handa  <handa@m17n.org>
14926         * casefiddle.c (casify_region): Fix multibyte case.
14928         * character.c (c_string_width): Add return type `int'.
14929         (char_string_with_unification): Delete arg ADVANCED.
14931         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
14932         (CHAR_STRING): Adjust for the change of char_string_with_unification.
14933         (CHAR_STRING_ADVANCE): Make it do-while statement.
14935         * chartab.c (sub_char_table_set_range): Optimize for the case
14936         DEPTH == 3.  Add workaround code for a GCC optimization bug.
14938         * charset.c (parse_charset_map): Remove an unused variable.
14940         * coding.c: Delete unused variables.
14942         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
14943         earlier.  If inserted is zero and the coding system doesn't
14944         require flushing, don't call decode_coding_gap.
14946         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
14948 2008-02-01  Kenichi Handa  <handa@m17n.org>
14950         The following changes are for using Unicode as an internal
14951         character model, and use UTF-8 format for buffer/string
14952         representation.
14954         * .gdbinit (xchartable): Adjust for the change of char table structure.
14955         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
14957         * Makefile.in (obj): Add character.o and chartab.o.
14958         (lisp, shortlisp): Remove utf-8.elc.
14959         (*.o): For many files, change dependency on charset.h to
14960         character.h, and add dependency on character.h.
14961         (character.o, chartab.o): New targets.
14963         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
14964         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
14965         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
14966         of "charset.h".
14968         * dired.c, filelock.c: Include "character.h".
14970         * alloc.c: Include "character.h" instead of "charset.h".
14971         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
14972         (syms_of_alloc): Remove defsubr for Smake_char_table.
14974         * buffer.c: Include "character.h" instead of "charset.h", don't
14975         include "coding.h".
14976         (Fset_buffer_multibyte): Adjust for UTF-8.
14978         * buffer.h: EXFUN Fbuffer_live_p.
14980         * callproc.c: Include "character.h" instead of "charset.h".
14981         (Fcall_process): Big change for the new code-conversion APIs.
14983         * casetab.c: Include "character.h" instead of "charset.h".
14984         (set_canon, set_identity, shuffle): Adjust for the new
14985         map_char_table spec.
14986         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
14987         accessing the char table structure.
14989         * chartab.c: New file that implements char table.
14991         * category.c: Include "character.h".
14992         (copy_category_entry): New function.
14993         (copy_category_table): Call map_char_table and copy_category_entry.
14994         (Fmake_category_table): Initialize all top-level slots.
14995         (char_category_set): New function.
14996         (modify_lower_category_set): Delete.
14997         (Fmodify_category_entry): Call char_table_ref_and_range.
14999         * category.h (CATEGORY_SET): Just call char_category_set.
15001         * ccl.c: Include "character.h".
15002         (Qccl, Qcclp): New variables.
15003         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15004         it's less than 256.
15005         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15006         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15007         and DST type.
15008         (ccl_driver): Change types of argument, adjust code accordingly.
15009         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15010         ccl_driver.
15011         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15013         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15014         New members src_multibyte, dst_multibyte, consumed, and produced.
15015         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
15016         (CODING_SPEC_CCL_PROGRAM): New macro.
15017         (ccl_driver): Update prototype.
15018         (Qccl, Qcclp, Fccl_program_p): Extern them.
15019         (CHECK_CCL_PROGRAM): New macro.
15021         * character.c, character.h, chartab.c: New files.
15023         * charset.c: Mostly re-written.  Move character and multibyte sequence
15024         handling codes to character.c.
15026         * charset.h: Mostly re-written.  Move character and multibyte sequence
15027         handling codes to character.h.
15029         * coding.c, coding.h: Mostly re-written.
15031         * composite.c: Include "character.h" instead of "charset.h".
15032         (CHAR_WIDTH): Move to character.h.
15033         (HASH_KEY, HASH_VALUE): Delete.
15035         * composite.h (enum composition_method): Change order of enumeration
15036         symbols.
15038         * data.c: Include "character.h" instead of "charset.h".
15039         (Faref): Call CHAR_TABLE_REF for a char table.
15040         (Faset): Call CHAR_TABLE_SET for a char table.
15042         * dispextern.h (free_realized_face, check_face_attribytes)
15043         (generate_ascii_font): Extern them.
15044         (free_realized_multibyte_face): Delete extern.
15046         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15047         table structure.
15049         * editfns.c: Include "character.h" instead of "charset.h".
15050         (Fchar_to_string): Always call CHAR_STRING.
15052         * emacs.c (main): Call init_charset_once, init_charset,
15053         syms_of_chartab, and syms_of_character.
15055         * fileio.c: Include "character.h" instead of "charset.h".
15056         (Finsert_file_contents): Big change for the new code-conversion API.
15057         (choose_write_coding_system, Fwrite_region): Likewise.
15058         (build_annotations_2): Delete.
15059         (e_write): Big change for the new code-conversion API.
15061         * fns.c: Include "character.h" instead of "charset.h".
15062         (copy_sub_char_table): Move to chartab.c.
15063         (Fcopy_sequence): Call copy_char_table for a char table.
15064         (concat): Delete codes calling count_multibyte.
15065         (string_char_to_byte, string_byte_to_char): Adjust for the new
15066         multibyte form.
15067         (internal_equal): Adjust for the change of char table structure.
15068         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15069         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15070         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15071         (char_table_translate, optimize_sub_char_table)
15072         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15073         chartab.c.
15074         (char_table_ref_and_index): Delete.
15075         (HASH_KEY, HASH_VALUE): Move to lisp.h.
15076         (Fmd5): Call preferred_coding_system instead of accessing
15077         Vcoding_category_list.  Adjust for the new code-conversion API.
15078         (syms_of_fns): Move defsubr for char table related functions to
15079         chartab.c.
15081         * fontset.c: Mostly re-written.
15083         * fontset.h (struct font_info): Change type of the member encoding_type.
15084         (enum FONT_SPEC_INDEX): New enum.
15085         (fontset_font_pattern, fs_load_font): Update prototype.
15086         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15088         * indent.c: Include "character.h" instead of "charset.h".
15089         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15091         * insdel.c: Include "character.h" instead of "charset.h".
15092         (copy_text): Don't refer to Vnonascii_translation_table.
15093         (insert_from_gap): New function.
15095         * keyboard.c: Include "character.h" instead of "charset.h".
15096         (command_loop_1): Never call direct_output_forward_char before
15097         a non-ASCII character.
15098         (read_char): If Vkeyboard_translate_table is a char table, always
15099         translate a character.
15101         * keymap.c: Include "character.h".
15102         (store_in_keymap): Handle the case that IDX is a cons.
15103         (Fdefine_key): Handle the case that KEY is a cons and the car part
15104         is also a cons (range).
15105         (push_key_description): Adjust for the new character code.
15106         (describe_vector): Call describe_char_table for a char table.
15107         (describe_char_table): New function.
15109         * keymap.h (describe_char_table): Extern it.
15111         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15112         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15113         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15114         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15115         Delete.
15116         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15117         structure.
15118         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15119         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15120         (CHARTAB_SIZE_BITS_3): New macros.
15121         (chartab_size): Extern it.
15122         (struct Lisp_Char_Table): Re-design.
15123         (struct Lisp_Sub_Char_Table): New structure.
15124         (HASH_KEY, HASH_VALUE): Move from fns.c.
15125         (CHARACTERBITS): Define as 22.
15126         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15127         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15128         (GC_SUB_CHAR_TABLE_P): New macro.
15129         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15130         (code_convert_string_norecord): Deleted extern.
15131         (init_character_once, syms_of_character, init_charset)
15132         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15134         * lread.c: Include "character.h".
15135         (read_multibyte): New arg NBYTES.
15136         (read_escape): Change the meaning of returned *BYTEREP.
15137         (to_multibyte): Delete.
15138         (read1): Adjust the handling of char table and string.
15140         * print.c: Include "character.h" instead of "charset.h".
15141         (print_string): Convert 8-bit raw bytes to octal form by
15142         string_escape_byte8.
15143         (print_object): Adjust for the new multibyte form.  Print 8-bit
15144         raw bytes always in octal form.  Handle sub char table correctly.
15146         * process.c: Include "character.h" instead of "charset.h".
15147         (read_process_output, send_process): Adjust for the new
15148         code-conversion API.
15150         * puresize.h (BASE_PURESIZE): Increase.
15152         * regex.c: Include "character.h" instead of "charset.h".
15153         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15154         (regex_compile): Accept a range whose starting and ending
15155         character have different leading bytes.
15156         (analyse_first): Adjust for the above change.
15158         * search.c: Include "character.h" instead of "charset.h".
15159         (search_buffer, boyer_moore): Adjust for the new multibyte form.
15160         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15162         * syntax.c: Include "character.h" instead of "charset.h".
15163         (syntax_parent_lookup): Delete.
15164         (Fmodify_syntax_entry): Accept a cons as CHAR.
15165         (skip_chars): Adjust for the new multibyte form.
15166         (init_syntax_once): Call char_table_set_range instead of directly
15167         accessing the structure of a char table.
15169         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15170         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15171         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15172         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15174         * term.c: Include "buffer.h" and "character.h".
15175         (encode_terminal_code, write_glyphs): Adjust for the new
15176         code-conversion API.
15177         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15179         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15181         * xdisp.c: Include "character.h".
15182         (get_next_display_element): Adjust for the new multibyte form.
15183         (disp_char_vector): Adjust for the new char table structure.
15184         (decode_mode_spec_coding): Adjust for the new structure of
15185         coding system.
15186         (decode_mode_spec): Adjust for the new code-conversion API.
15188         * xfaces.c: Include "character.h" instead of "charset.h".
15189         (load_face_font): Adjust for the change of choose_face_font and
15190         FS_LOAD_FONT.
15191         (generate_ascii_font): New function.
15192         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15193         (set_font_frame_param): Adjust for the change of choose_face_font.
15194         (free_realized_face): Make it public.
15195         (free_realized_faces_for_fontset): Rename from
15196         free_realized_multibyte_face.  Free also faces realized for ASCII.
15197         (choose_face_font): Change arguments.  Adjust for the change of
15198         fontset_font_pattern and FS_LOAD_FONT.
15200         * xfns.c: Include "character.h".
15201         (x_encode_text): Adjust for the new code-conversion API.
15203         * xselect.c: Don't include "charset.h".
15204         (selection_data_to_lisp_data): Adjust for the new code conversion API.
15206         * xterm.c: Include "character.h".
15207         (x_encode_char): New argument CHARSET.  Change caller.
15208         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15209         Call ENCODE_CHAR instead of SPLIT_CHAR.
15210         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15211         CHAR_WIDTH instead of CHARSET_WIDTH.
15212         (XTread_socket): Adjust for the new code-conversion API.
15213         (x_new_font): Adjust for the change of FS_LOAD_FONT.
15214         (x_load_font): Adjust for the change of struct font.
15216 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
15218         * xfaces.c (face_at_buffer_position): Remove unused vars.
15220 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
15222         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15223         Fix overflow checking.
15225 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
15227         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15228         Cancel previous change.
15230 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
15232         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15233         ccl->eight_bit_control.  Fix check for buffer overflow.
15234         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15235         (ccl_driver): Initialize extra_bytes to 0.
15237 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
15239         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15240         return it ORed with ctrl_modifier.
15242 2008-01-29  Miles Bader  <miles@gnu.org>
15244         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15246 2008-01-28  Jason Rumney  <jasonr@gnu.org>
15248         * w32.c (stat): Don't double check for networked drive.
15250 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
15252         * window.c (run_window_configuration_change_hook): New function.
15253         Code extracted from set_window_buffer.  Set the selected frame.
15254         (set_window_buffer): Use it.
15255         * window.h (run_window_configuration_change_hook): Declare.
15256         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15258         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15260 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
15262         * Makefile.in: Remove references to unused macros.
15264 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
15266         * w32.c (g_b_init_get_sid_sub_authority)
15267         (g_b_init_get_sid_sub_authority_count): New static variables.
15268         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15269         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15270         (init_user_info): Use them to retrieve uid and gid.
15271         Use 500/513, the Windows defaults, as Administrator's uid/gid.
15272         (fstat): Use pw_uid and pw_gid from the_passwd structure for
15273         st_uid and st_gid of the file.
15275 2008-01-26  Jason Rumney  <jasonr@gnu.org>
15277         * w32.c (logon_network_drive): New function.
15278         (stat): Use it.
15280 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
15282         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
15283         invisible text covered with an ellipsis.
15285 2008-01-25  Richard Stallman  <rms@gnu.org>
15287         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
15288         jump back to beginning.  Move some other initializations after that.
15289         (Qwindow_text_change_functions, Vwindow_text_change_functions):
15290         New variables.
15291         (syms_of_xdisp): Init them.
15293         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
15295         * buffer.c (reset_buffer_local_variables):
15296         Implement `permanent-local-hook'.
15297         (Qpermanent_local_hook): New variable.
15298         (syms_of_buffer): Init and staticpro it.
15300 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
15302         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
15304 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
15306         * fns.c (Fclrhash): Return TABLE.
15308 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15310         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
15311         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
15312         is set even without positional changes.
15313         (x_scroll_bar_clear): Set bar->redraw_needed_p.
15315         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
15317 2008-01-23  Jason Rumney  <jasonr@gnu.org>
15319         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
15321         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
15322         the unicode range available in MULE by locale-coding-system.
15323         Improve dbcs lead byte detection.  Set event timestamp and modifiers
15324         earlier.
15326 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15328         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
15329         [MAC_OSX] (init_mac_osx_environment): Initialize it.
15330         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
15331         when used on child processes.
15333 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
15335         * dbusbind.c (Fdbus_method_return_internal): Rename from
15336         Fdbus_method_return.
15337         (Fdbus_unregister_object): Move to dbus.el.
15338         (Fdbus_call_method, Fdbus_method_return_internal)
15339         (Fdbus_send_signal): Improve debug messages.
15341 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
15343         * undo.c (undo_inhibit_record_point): New variable.
15344         (syms_of_undo): Initialize it.
15345         (record_point): Don't record point when undo_inhibit_record_point
15346         is set.
15348 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
15350         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
15352         * xdisp.c (Qauto_hscroll_mode): New var.
15353         (syms_of_xdisp): Initialize it.
15354         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
15355         window's buffer.
15356         (hscroll_windows): Don't check automatic_hscrolling_p here.
15358         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
15359         vscroll if we're setting window-buffer to the value it already has.
15361 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
15363         * m/intel386.h: Remove references to XENIX.
15365 2008-01-17  Andreas Schwab  <schwab@suse.de>
15367         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
15368         instead of HAVE_X86_64_LIB64_DIR.
15369         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
15371 2008-01-17  Glenn Morris  <rgm@gnu.org>
15373         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
15374         to HAVE_X86_64_LIB64_DIR.
15376 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
15378         * s/irix3-3.h:
15379         * s/irix4-0.h:
15380         * s/386-ix.h:
15381         * s/domain.h:
15382         * s/hpux9-x11r4.h:
15383         * s/hpux9shxr4.h: Remove files for systems no longer supported.
15385         * sysdep.c: Remove code containing references to symbols defined
15386         by unsupported systems.
15388 2008-01-16  Glenn Morris  <rgm@gnu.org>
15390         * coding.c (select-safe-coding-system-function): Doc fix.
15392 2008-01-15  Glenn Morris  <rgm@gnu.org>
15394         * config.in: Revert 2008-01-13 change: this is a generated file.
15396 2008-01-13  Tom Tromey  <tromey@redhat.com>
15398         * lisp.h: Fix typo.
15400 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
15402         * m/sequent-ptx.h:
15403         * m/sequent.h:
15404         * s/ptx.h:
15405         * s/ptx4-2.h:
15406         * s/ptx4.h: Remove files for systems no longer supported.
15408         * callproc.c (Fcall_process): Fix previous change.
15410 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
15412         * unexsunos4.c: Remove file, system not supported anymore.
15414         * m/mips.h:
15415         * m/intel386.h:
15416         * callproc.c:
15417         * config.in:
15418         * ecrt0.c:
15419         * emacs.c:
15420         * fileio.c:
15421         * frame.c:
15422         * getpagesize.h:
15423         * keyboard.c:
15424         * lread.c:
15425         * process.c:
15426         * puresize.h:
15427         * sysdep.c:
15428         * systty.h:
15429         * syswait.h:
15430         * unexec.c:
15431         * xdisp.c:
15432         * alloc.c: Remove code containing references to symbols defined by
15433         unsupported systems.
15435 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
15437         * coding.c (detect_coding_mask): Fix previous change.
15439 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
15441         * coding.c (detect_coding_iso2022): New arg
15442         latin_extra_code_state.  Allow Latin extra codes only
15443         when *latin_extra_code_state is nonzero.
15444         (detect_coding_mask): If there is a NULL byte, detect the encoding
15445         as UTF-16 or binary.  If Latin extra codes exist, detect the
15446         encoding as ISO-2022 only when there's no other proper encoding is
15447         found.
15449 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15451         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
15452         #ifdef MAC_OS.
15454 2008-01-08  Richard Stallman  <rms@gnu.org>
15456         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
15458 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
15460         * keyboard.c (parse_menu_item): Don't enclose key bindings on
15461         menu bar in parentheses.
15463 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
15465         * m/7300.h:
15466         * m/acorn.h:
15467         * m/alliant-2800.h:
15468         * m/alliant.h:
15469         * m/alliant1.h:
15470         * m/alliant4.h:
15471         * m/altos.h:
15472         * m/amdahl.h:
15473         * m/apollo.h:
15474         * m/att3b.h:
15475         * m/aviion-intel.h:
15476         * m/aviion.h:
15477         * m/celerity.h:
15478         * m/clipper.h:
15479         * m/cnvrgnt.h:
15480         * m/convex.h:
15481         * m/cydra5.h:
15482         * m/delta88k.h:
15483         * m/dpx2.h:
15484         * m/dual.h:
15485         * m/elxsi.h:
15486         * m/f301.h:
15487         * m/gould-np1.h:
15488         * m/gould.h:
15489         * m/i860.h:
15490         * m/ibmps2-aix.h:
15491         * m/ibmrt-aix.h:
15492         * m/ibmrt.h:
15493         * m/irist.h:
15494         * m/is386.h:
15495         * m/isi-ov.h:
15496         * m/mega68.h:
15497         * m/mg1.h:
15498         * m/news-r6.h:
15499         * m/news-risc.h:
15500         * m/news.h:
15501         * m/nh3000.h:
15502         * m/nh4000.h:
15503         * m/ns16000.h:
15504         * m/ns32000.h:
15505         * m/nu.h:
15506         * m/orion.h:
15507         * m/orion105.h:
15508         * m/paragon.h:
15509         * m/pfa50.h:
15510         * m/plexus.h:
15511         * m/pyramid.h:
15512         * m/pyrmips.h:
15513         * m/sh3el.h:
15514         * m/sps7.h:
15515         * m/sr2k.h:
15516         * m/stride.h:
15517         * m/sun1.h:
15518         * m/sun2.h:
15519         * m/sun3-68881.h:
15520         * m/sun3-fpa.h:
15521         * m/sun3-soft.h:
15522         * m/sun3.h:
15523         * m/sun386.h:
15524         * m/symmetry.h:
15525         * m/tad68k.h:
15526         * m/tahoe.h:
15527         * m/targon31.h:
15528         * m/tek4300.h:
15529         * m/tekxd88.h:
15530         * m/tower32.h:
15531         * m/tower32v3.h:
15532         * m/ustation.h:
15533         * m/wicat.h:
15534         * m/xps100.h:
15535         * s/cxux.h:
15536         * s/cxux7.h:
15537         * s/dgux.h:
15538         * s/dgux4.h:
15539         * s/dgux5-4-3.h:
15540         * s/dgux5-4r2.h:
15541         * s/esix.h:
15542         * s/esix5r4.h:
15543         * s/hiuxmpp.h:
15544         * s/hiuxwe2.h:
15545         * s/iris3-5.h:
15546         * s/iris3-6.h:
15547         * s/isc2-2.h:
15548         * s/isc3-0.h:
15549         * s/isc4-0.h:
15550         * s/isc4-1.h:
15551         * s/newsos5.h:
15552         * s/newsos6.h:
15553         * s/osf1.h:
15554         * s/osf5-0.h:
15555         * s/riscix1-1.h:
15556         * s/riscix12.h:
15557         * s/sco4.h:
15558         * s/sco5.h:
15559         * s/sunos4-0.h:
15560         * s/sunos4-1.h:
15561         * s/sunos413.h:
15562         * s/sunos4shr.h:
15563         * s/umax.h:
15564         * s/unipl5-2.h:
15565         * s/xenix.h:
15566         * cxux-crt0.s:
15567         * unexapollo.c:
15568         * unexconvex.c:
15569         * unexenix.c:
15570         * unexsni.c: Remove files for systems no longer supported.
15572         * m/intel386.h: Remove references to unsupported systems.
15574         * w32.c (get_emacs_configuration): Remove reference to i860.
15576         * sysdep.c: Remove dead code.
15578 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
15580         * s/rtu.h:
15581         * m/masscomp.h: Remove files.  Platform is obsolete.
15583 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
15585         * dbusbind.c (Fdbus_method_return): New function.
15586         (xd_read_message): Add the serial number to the event.
15587         (Fdbus_register_method): Activate the function.
15589 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
15591         * keyboard.c (read_key_sequence): Fix typo.
15593 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
15595         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
15596         (xd_signature, xd_append_arg): Handle element type detection for
15597         empty arrays.
15598         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
15599         SDATA () calls; this must be solved more general.
15600         (Fdbus_register_signal): Use SBYTES instead of strlen.
15602 2008-01-03  Magnus Henoch  <magnus@zemdatav>
15604         * dbusbind.c (xd_append_arg): Use unsigned char instead of
15605         unsigned int for byte values (necessary for big-endian platform).
15606         (Fdbus_call_method): Handle the case of no returned arguments.
15608 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
15610         * dbusbind.c (xd_read_message): Use non-static input_event struct.
15612 2007-12-31  Magnus Henoch  <mange@freemail.hu>
15614         * dbusbind.c (xd_signature): Signature of variant is just "v".
15616 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
15618         * dbusbind.c: Fix several errors and compiler warnings.
15619         Reported by Tom Tromey <tromey@redhat.com>.
15620         (XD_ERROR, XD_DEBUG_MESSAGE)
15621         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
15622         (xd_append_arg): Part for basic D-Bus types rewritten.
15623         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
15624         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
15625         appropriate.
15626         (xd_read_message): Return Qnil.  Don't signal an error; it is not
15627         useful during event reading.
15628         (Fdbus_register_signal): Signal an error if the check for
15629         FUNCTIONP fails.
15630         (Fdbus_register_method): New function.  The implementation is not
15631         complete, the call of the function signals an error therefore.
15632         (Fdbus_unregister_object): New function, renamed from
15633         Fdbus_unregister_signal.  The initial check signals an error, if
15634         the object is not well formed.
15636 2007-12-30  Richard Stallman  <rms@gnu.org>
15638         * textprop.c (get_char_property_and_overlay):
15639         Signal error if POSITION is out of range in a buffer.
15641 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
15643         * w32fns.c (Fx_create_frame): Make copy of frame parameters
15644         because the original parameters are in pure storage now.
15646 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15648         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
15650 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
15652         * callint.c (syms_of_callint) <command-history>: Add reference to
15653         history-length in the doc string.
15655 2007-12-17  Jason Rumney  <jasonr@gnu.org>
15657         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
15658         before passing as wParam.
15660 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
15662         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
15663         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
15664         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
15665         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
15666         as number.
15667         (Fdbus_call_method): Fix docstring.
15669 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
15671         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
15672         New macros.
15673         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
15674         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
15675         Simplify.
15676         (xd_signature): New function.
15677         (xd_append_arg): Compute also signatures.  Major rewrite.
15678         (xd_retrieve_arg): Make debug messages friendly.
15679         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
15680         Check for signatures of arguments.
15682 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
15684         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
15685         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
15686         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
15687         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
15688         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
15689         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
15690         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
15691         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
15692         (xd_retrieve_value): Remove.  Functionality included in ...
15693         (xd_append_arg): New function.
15694         (Fdbus_call_method, Fdbus_send_signal): Apply it.
15696 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
15698         * dbusbind.c (top): Include <stdio.h>.
15699         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
15700         dbus_message_new_method_call and dbus_message_new_signal.
15701         (Fdbus_register_signal): Rename unique_name to uname.
15702         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
15703         non-existing unique name.  Fix typos in matching rule.  Return an
15704         object which is useful in Fdbus_unregister_signal.
15705         (Fdbus_unregister_signal): Reimplementation, in order to remove
15706         only the corresponding entry.
15707         (Vdbus_registered_functions_table): Change the order of entries.
15708         Apply these changes in xd_read_message and Fdbus_register_signal.
15710 2007-12-16  Andreas Schwab  <schwab@suse.de>
15712         * fileio.c (Finsert_file_contents): Fix overflow check to not
15713         depend on undefined integer overflow.
15715 2007-12-14  Jason Rumney  <jasonr@gnu.org>
15717         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
15718         for characters above 127.
15720 2007-12-13  Jason Rumney  <jasonr@gnu.org>
15722         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
15723         before dereferencing array.
15724         (lookup_vk_code): Remove zero comparison.
15726 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
15728         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
15729         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
15730         Use `unsigned int' instead of `uint'.
15731         (xd_read_message, Fdbus_register_signal): Split expressions into
15732         multiple lines before operators "&&" and "||", according to the
15733         GNU Coding Standards.
15735 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
15737         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
15739 2007-12-12  Juri Linkov  <juri@jurta.org>
15741         * buffer.c (Frename_buffer): In interactive spec replace
15742         `read-buffer' with `read-string' that uses `buffer-name-history'
15743         as history, and the current buffer's name as default.
15745 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
15747         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
15748         manipulating the backtrace manually.
15749         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
15750         (struct backtrace, backtrace_list): Remove.
15751         (command_loop_1): Remove dead var `no_direct'.
15753         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
15754         preserve non-built-in buffer-local variables.
15755         (Fkill_all_local_variables): Don't re-create&re-set permanent
15756         buffer-local variables.
15758 2007-12-09  Juri Linkov  <juri@jurta.org>
15760         * buffer.c (Frename_buffer): Change interactive spec from "s" to
15761         Lisp code that uses `read-buffer' with current buffer as default.
15763 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
15765         * dbusbind.c (xd_read_message): Generate an event for every
15766         registered handler.  There might be several handlers registered
15767         for the same signal.
15768         (Fdbus_register_signal): Don't overwrite a registration for the
15769         same signal.  Add a new registration if handlers are different.
15770         (Vdbus_registered_functions_table): Rework doc string.
15772 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
15774         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
15775         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
15776         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
15777         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
15778         Unify argument lists.
15779         (xd_read_message, Fdbus_register_signal): Reorder and extend event
15780         arguments and hash table keys.  Use unique name for service.
15781         (Fdbus_unregister_signal): Remove checks.
15782         (Vdbus_registered_functions_table): Fix doc string.
15784 2007-12-05  Magnus Henoch  <mange@freemail.hu>
15786         * process.c (make_process): Initialize pty_flag to 0.
15788 2007-12-05  Jason Rumney  <jasonr@gnu.org>
15790         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
15791         specified XBMs.
15793 2007-12-05  Richard Stallman  <rms@gnu.org>
15795         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
15797 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15799         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
15800         New variable.
15801         (mac_try_close_socket) [MAC_OSX]: New function.
15802         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
15803         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
15805         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
15806         Use mac_try_close_socket.
15808 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15810         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
15811         reloc_base.
15812         (copy_dysymtab): Compute relocation base here.
15813         (rebase_reloc_address) [__ppc64__]: New function.
15814         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
15815         changed.
15817 2007-12-05  Jason Rumney  <jasonr@gnu.org>
15819         * w32proc.c (sys_spawnve): Quote args with wildcards.
15821 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15823         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
15824         __objc_* sections.
15825         (unrelocate) [_LP64]: Set relocation base to address of data segment.
15827 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
15829         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
15830         Move check for Vdbus_registered_functions_table to
15831         xd_read_queued_messages.
15832         (xd_read_queued_messages): Protect xd_read_message calls by
15833         internal_condition_case_1.
15835 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
15837         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
15838         Qdbus_system_bus and Qdbus_session_bus, respectively.
15839         (Vdbus_intern_symbols): Remove.
15840         (Vdbus_registered_functions_table): New hash table.
15841         (XD_SYMBOL_INTERN_SYMBOL): Remove.
15842         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
15843         Rewrite in order to manage registered functions by hash table
15844         Vdbus_registered_functions_table.
15846 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
15848         * xterm.c: Update URL to Window Manager Specification in comment.
15850 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
15852         * config.in (HAVE_DBUS): Add.
15854         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
15855         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
15856         (obj): Add $(DBUS_OBJ).
15857         (LIBES): Add $(DBUS_LIBS).
15858         (dbusbind.o): New target.
15860         * dbusbind.c: New file.
15862         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
15864         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
15865         (Qdbus_event): New Lisp symbol.
15866         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
15867         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
15868         (keys_of_keyboard): Define dbus-event.
15870         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
15872 2007-12-01  Richard Stallman  <rms@gnu.org>
15874         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
15876 2007-11-30  Jason Rumney  <jasonr@gnu.org>
15878         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
15879         (w32con_reset_terminal_modes): Clear screen buffer.
15880         (w32_face_attributes): Don't use color indexes that are out of range.
15881         Only reverse the default colors.
15883         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
15884         WINDOWSNT.
15886         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
15888 2007-11-29  Jason Rumney  <jasonr@gnu.org>
15890         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
15891         (w32_face_attributes): Use Vtty_defined_color_alist to determine
15892         if the terminal colors are initialized.
15893         (unspecified_fg, unspecified_bg): Remove unused declarations.
15895 2007-11-29  Andreas Schwab  <schwab@suse.de>
15897         * keyboard.c (apply_modifiers): Fix typo.
15899 2007-11-29  Richard Stallman  <rms@gnu.org>
15901         * keymap.c (Fcurrent_local_map): Doc fix.
15903 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
15905         * s/gnu-kfreebsd.h: New file.
15907 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
15909         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
15910         Don't cast redundantly.
15912         * keyboard.c (KEY_TO_CHAR): New macro.
15913         (parse_modifiers, apply_modifiers): Accept integer arguments.
15914         (read_key_sequence): Use them to unify the "shift->unshift" mapping
15915         for chars and symbol keys.
15916         After doing such remapping, apply function-key-map again.
15918 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
15920         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
15921         compiled anymore.
15923 2007-11-26  Andreas Schwab  <schwab@suse.de>
15925         * process.c (list_processes_1): Fix indentation level of the
15926         command column.
15928 2007-11-23  Andreas Schwab  <schwab@suse.de>
15930         * editfns.c (Fformat): Handle %c specially since it requires the
15931         argument to be of type int.
15933 2007-11-23  Markus Triska  <markus.triska@gmx.at>
15935         * emacs.c (main): Call init_editfns before init_process, since
15936         init_process sets Vprocess_connection_type depending on OS release.
15938 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
15940         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
15941         (find_symbol_value): Use do_symval_forwarding.
15943         * data.c (set_internal): Set the value in the `cons-cell' (for
15944         Buffer_Local_values) not only for frame-local variables.
15946 2007-11-22  Andreas Schwab  <schwab@suse.de>
15948         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
15949         values to sprintf.
15950         * keymap.c (Fsingle_key_description): Likewise.
15951         * print.c (print_object): Likewise.
15953 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
15955         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
15956         file for image is nil.
15958 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
15960         * term.c: Include stdarg.h.
15961         (fatal): Implement using varargs.
15962         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
15964 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15966         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
15967         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
15968         Update call to buffer_slot_type_mismatch.
15969         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
15970         (buffer_slot_type_mismatch): Update.
15971         * buffer.c (buffer_local_types): Remove.
15972         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
15973         (defvar_per_buffer): Set the type in the buffer_objfwd.
15975 2007-11-21  Jason Rumney  <jasonr@gnu.org>
15977         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
15978         CreateFileMapping returns NULL on failure.
15980 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15982         * search.c (Fset_match_data): Remove the `evaporate' feature.
15983         (unwind_set_match_data): Don't use the `evaporate' feature.
15985 2007-11-21  Jason Rumney  <jasonr@gnu.org>
15987         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
15989         * w32console.c (w32con_write_glyphs): Remove unused variables.
15991 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
15993         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
15995         * s/darwin.h (MULTI_KBOARD): Remove.
15997         * macfns.c (x_create_tip_frame, Fx_create_frame)
15998         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16000 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
16002         * buffer.c (Fbuffer_local_value): Remove redundant test.
16003         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16004         than in `current-buffer' to match the comment.
16005         Do the swap using swap_in_global_binding.
16007         * data.c (store_symval_forwarding, set_internal):
16008         * eval.c (specbind): Remove dead code.
16010         * coding.c (detect_coding, Fupdate_coding_systems_internal):
16011         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16012         Since we do not want to see internal Lisp_*fwd objects here.
16014 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
16016         * sysdep.c (init_system_name): Use getaddrinfo if available.
16018         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16019         (x_scroll_bar_note_movement): start, end, with, height in struct
16020         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16022 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
16024         * puresize.h (BASE_PURESIZE): Increase to 1190000.
16026 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
16028         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16029         This undoes Richard's change of 14-Oct-2002.
16031         * alloc.c (allocate_other_vector):
16032         * lisp.h (allocate_other_vector): Remove.
16034         * window.c (struct save_window_data): Move non-lisp data to the end
16035         and make it `int' rather than Lisp_Object.
16036         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16037         Done wrap/unwrap integer values.
16038         (Fset_window_configuration, compare_window_configurations):
16039         Update use of fields to their new types.
16041         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16042         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
16043         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16044         (SET_SCROLL_BAR_X_WINDOW): Remove.
16045         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16046         Access the new x_window field directly.
16047         * xterm.c (x_scroll_bar_create): Use a pseudovector.
16048         Don't wrap/unwrap integers into Lisp_Objects.
16049         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16050         (x_scroll_bar_report_motion):
16051         Don't wrap/unwrap integers into Lisp_Objects.
16052         (x_term_init): Use SDATA.
16053         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16054         (x_scroll_bar_set_handle, x_scroll_bar_remove)
16055         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16056         (x_scroll_bar_report_motion, x_scroll_bar_clear):
16057         * xfns.c (x_set_background_color):
16058         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16059         Access the new x_window field directly.
16061         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16062         (allocate_pseudovector): Make non-static.
16064         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16065         (allocate_pseudovector): Declare.
16066         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16068 2007-11-15  Andreas Schwab  <schwab@suse.de>
16070         * editfns.c (Fformat): Correctly format EMACS_INT values.
16071         Also take precision into account when formatting an integer.
16073         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16075 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
16077         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16078         (syms_of_keyboard): Defsubr it.
16080         * data.c (swap_in_global_binding): Fix longstanding bug where
16081         store_symval_forwarding was not called with the right second argument,
16082         thus causing objfwd-ing from being dropped.
16084 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
16086         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16087         (Fx_display_pixel_height, Fx_display_planes)
16088         (Fx_display_color_cells, Fx_server_max_request_size)
16089         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16090         (Fx_display_visual_class, Fx_display_save_under):
16091         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16092         (Fx_display_pixel_height, Fx_display_planes)
16093         (Fx_display_color_cells, Fx_server_max_request_size)
16094         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16095         (Fx_display_mm_height, Fx_display_mm_width)
16096         (Fx_display_backing_store, Fx_display_visual_class)
16097         (Fw32_select_font, Fx_display_save_under):
16098         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16099         (Fx_display_pixel_height, Fx_display_planes)
16100         (Fx_display_color_cells, Fx_server_max_request_size)
16101         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16102         (Fx_display_save_under): Fix typos in docstrings.
16104 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
16106         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16107         corresponding to deleted entries; they are an implementation detail.
16108         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16109         Remove variables.
16110         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16111         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16112         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16113         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16114         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16115         (Fw32_define_rgb_color, Fw32_load_color_file)
16116         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16117         Fix typos in docstrings.
16118         (Fx_server_version): Reflow docstring.
16119         (Fw32_shell_execute): Doc fixes.
16121 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
16123         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16124         if w32_parse_hot_key returned nil.
16126 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16128         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16130 2007-11-09  Jason Rumney  <jasonr@gnu.org>
16132         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16134         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16136         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16137         Remove W32_SCROLL_BAR_CLICK_EVENT.
16139         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16140         Add MULTIMEDIA_KEY_EVENT.
16142         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16143         (lispy_multimedia_keys) [WINDOWSNT]: New array.
16144         (make_lispy_event) [WINDOWSNT]: Use it to translate
16145         MULTIMEDIA_KEY_EVENT.
16147         * w32term.h (WM_APPCOMMAND): Define if not already.
16148         (GET_APPCOMMAND_LPARAM): Likewise.
16150         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16151         WM_APPCOMMAND.
16153         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16154         (syms_of_w32fns): Export and initialize it.
16155         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16157 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
16159         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16160         twice.
16162         * xdisp.c (handle_face_prop): Fix last change.
16164 2007-11-09  Richard Stallman  <rms@gnu.org>
16166         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16167         not just for after-strings and before-strings.
16168         Call face_for_overlay_string and pass the overlay to it.
16169         (handle_display_prop): Determine whether property came from an overlay.
16170         Pass OVERLAY arg to handle_single_display_spec.
16171         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16172         (load_overlay_strings): Fill in it->string_overlays.
16173         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16175         * xfaces.c (face_for_overlay_string): Function renamed from
16176         face_at_buffer_position_no_overlays, and add arg OVERLAY.
16178         * dispextern.h (struct it): New elt string_overlays.
16179         New elt from_overlay, also in stack.
16180         Rearrange a few elements.
16181         (face_for_overlay_string): Decl renamed from
16182         face_at_buffer_position_no_overlays, and add argument.
16184 2007-11-09  Richard Stallman  <rms@gnu.org>
16186         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16187         to get the base face for an overlay string.
16189         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16191         * xfaces.c (face_at_buffer_position_no_overlays): New function.
16193         * xdisp.c (handle_stop): Move some code out of loop.
16195 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16197         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16198         Fix conversion from Lisp object to ATSUFontID.
16200 2007-11-09  Jason Rumney  <jasonr@gnu.org>
16202         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16204 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16206         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16207         Don't assume regions are aligned to page boundary.
16208         (print_load_command_name): Add LC_UUID if defined.
16210 2007-11-09  Richard Stallman  <rms@gnu.org>
16212         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16214 2007-11-07  Jason Rumney  <jasonr@gnu.org>
16216         * s/windows95.h: Remove.
16218 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
16220         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16221         abort with a message on unhandled store_type values.
16223 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
16225         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16226         Remove HAVE_X11R5 and HAVE_X11R4.
16228 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
16230         * Makefile.in: Remove references to sunfns.c and sunfns.o.
16232 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
16234         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16235         Don't set s->stippled_p here, since it has already been set by
16236         x_set_glyph_string_gc from x_draw_glyph_string.
16238 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
16240         * sunfns.c: Remove file.
16242         * m/sun386.h:
16243         * m/sun2.h:
16244         * m/sparc.h: Remove Sun windows code.
16246 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
16248         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16249         (init_keyboard): Set current_kboard's window-system to nil.
16250         (tty_read_avail_input): Typo.
16251         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16253 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
16255         * s/usg5-4.h:
16256         * s/usg5-3.h:
16257         * s/ptx.h:
16258         * m/is386.h:
16259         * m/ibmps2-aix.h:
16260         * Makefile.in: Remove all mentions of X10.
16262         * dispnew.c (syms_of_display): Don't mention version 10.
16264 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
16266         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16267         ($(BLD)/abbrev.$(O)): Remove.
16269 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
16271         Rewrite abbrev.c in Elisp.
16272         * image.c (Qcount): Don't declare as extern.
16273         (syms_of_image): Initialize and staticpro `Qcount'.
16274         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
16275         * emacs.c (main): Don't call syms_of_abbrev.
16276         * Makefile.in (obj): Remove abbrev.o.
16277         (abbrev.o): Remove.
16278         * abbrev.c: Remove.
16280 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
16282         * window.c (window_min_size_2): Don't count header-line.
16284 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
16286         * frame.h (struct frame): Move all bit fields after the first bit
16287         field to take advantage of the available space.  Group all the
16288         chars together to reduce wasted space due to padding.
16290 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
16292         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
16294         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
16295         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
16296         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
16297         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
16298         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
16299         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
16300         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
16301         (last_marked, mark_object_loop_halt): Make static.
16303         * frame.c (syms_of_frame) <delete-frame-functions>:
16304         Fix typo in docstring.
16306 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
16308         * w32.c (init_environment): Fix tiny memory leak.
16309         (w32_get_resource): Remove unused variable `ok'.
16311 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
16313         Make `window-system' into a keyboard-local variable (rather than
16314         frame-local as done originally by multi-tty).
16316         * keyboard.h (struct kboard): Add Vwindow_system.
16317         * keyboard.c (init_kboard): Set a default for Vwindow_system.
16318         (mark_kboards): Mark Vwindow_system.
16320         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
16321         (init_display): Don't set the obsolete `window-system' frame-param.
16323         * xterm.c (x_term_init):
16324         * w32term.c (w32_create_terminal):
16325         * term.c (init_tty): Set Vwindow_system.
16326         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
16327         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
16329         * xfns.c (Fx_create_frame, x_create_tip_frame):
16330         * w32fns.c (Fx_create_frame, x_create_tip_frame):
16331         * macfns.c (Fx_create_frame):
16332         Don't set the obsolete `window-system' frame-param.
16334         * frame.h (Qwindow_system): Remove.
16335         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
16336         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
16338 2007-10-24  Richard Stallman  <rms@gnu.org>
16340         * frame.c (x_figure_window_size): For fullscreen case,
16341         set USPosition | PPosition without clobbering rest of window_prompting.
16343         * keyboard.c (Fcurrent_idle_time): Doc fix.
16345         * print.c (Fwith_output_to_temp_buffer): Doc fix.
16347 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
16349         * process.c (unwind_request_sigio): Only define if __ultrix__.
16351         * callproc.c (child_setup): Remove spurious *.
16353         * lisp.h (Fget_text_property): Declare.
16354         (have_menus_p): Declare it here rather than in sys-dep header files.
16355         * macterm.h (have_menus_p):
16356         * msdos.h (have_menus_p):
16357         * xterm.h (have_menus_p): Remove.
16359         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16360         (Fmake_variable_frame_local): Just check the variable's const-ness
16361         rather than checking nil or t.
16363 2007-10-22  Jason Rumney  <jasonr@gnu.org>
16365         * w32fns.c: Include math.h.
16366         (w32_abort): Declaration moved to nt/config.nt.
16368         * s/ms-w32.h (HAVE_STDLIB_H): Define.
16369         (abort): Redefinition moved to nt/config.nt.
16371         * m/windowsnt.h: Remove.
16373 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
16375         * emacs.c (Fdump_emacs): Fix typo in message.
16376         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
16377         <installation-directory>: Reflow docstring.
16379 2007-10-22  Juri Linkov  <juri@jurta.org>
16381         * minibuf.c: Allow minibuffer default to be a list of default values.
16382         With empty input use the first element of this list as returned default.
16383         (string_to_object)
16384         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
16385         (read_minibuf): If defalt is cons, set histstring to its car.
16386         (Fread_string): If default_value is cons, set val to its car.
16387         (Fread_buffer): If def is cons, use its car.
16388         (Fcompleting_read): If defalt is cons, set val to its car.
16390 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
16392         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
16394 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
16396         * doc.c (Fdocumentation): Check for advice in all cases.
16398 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
16400         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
16402 2007-10-19  Richard Stallman  <rms@gnu.org>
16404         * doc.c (Fdocumentation): Check for and handle an advised function.
16406 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
16408         * process.c (Fset_process_filter): Doc fix.
16410 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
16412         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
16413         which caused key-translation-map to applied repeatedly (thus breaking
16414         double-mode).
16416 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
16418         * xselect.c (x_own_selection, x_handle_selection_clear)
16419         (x_clear_frame_selections):
16420         * w32menu.c (list_of_panes, list_of_items):
16421         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
16422         * textprop.c (validate_plist, interval_has_all_properties)
16423         (interval_has_some_properties, interval_has_some_properties_list)
16424         (add_properties, text_property_list):
16425         * process.c (Fget_buffer_process, list_processes_1, status_notify):
16426         * minibuf.c (Fassoc_string):
16427         * macselect.c (x_own_selection, x_clear_frame_selections)
16428         (Fx_disown_selection_internal):
16429         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
16430         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
16432 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
16434         * process.c: Link to libs for calling res_init() if available.
16435         (Fmake_network_process): Call res_init() before getaddrinfo or
16436         gethostbyname, if possible.
16438 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
16440         * lread.c (read1): Set pvectype for char_tables.
16442         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
16443         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
16444         Add type checks.
16445         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
16447         * alloc.c (free_misc): Use XMISCTYPE.
16448         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
16450 2007-10-17  Glenn Morris  <rgm@gnu.org>
16452         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
16453         (syms_of_minibuf): Add Qcompletion_ignore_case.
16454         * dired.c (Qcompletion_ignore_case): Change to external.
16455         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
16456         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
16457         (Fread_file_name): Use it rather than intern'ing.
16459         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
16460         (Fread_coding_system): Ignore case of user input.
16462 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16464         * xdisp.c (handle_display_prop): Ignore display specs after
16465         replacing one when string text is being replaced.
16466         (handle_single_display_spec): Pretend as if characters with display
16467         property haven't been consumed only when buffer text is being replaced.
16469 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
16471         * xfns.c (Fx_create_frame, Fx_display_list):
16472         * window.c (window_fixed_size_p, enlarge_window)
16473         (shrink_window_lowest_first):
16474         * macterm.c (init_font_name_table):
16475         * macfns.c (Fx_create_frame, Fx_display_list):
16476         * lread.c (close_load_descs):
16477         * keyboard.c (read_char_x_menu_prompt):
16478         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
16479         * coding.c (code_convert_region_unwind): Test the type of an object
16480         rather than just !NILP before extracting data from it.
16482         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
16484         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
16485         (XMISCANY): New macro.
16486         (XMISCTYPE): Use it.
16487         (struct Lisp_Misc_Any): New type.
16488         (union Lisp_Misc): Use it.
16489         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
16490         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
16491         (find_symbol_value, set_internal, default_value, Fset_default)
16492         (Fmake_variable_buffer_local, Fmake_local_variable)
16493         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
16494         (Flocal_variable_if_set_p, Fvariable_binding_locus):
16495         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
16496         * alloc.c (allocate_buffer): Set the size and tag.
16497         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
16498         Use XMISCANY.
16499         (die): Follow the GNU convention for error messages.
16500         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
16501         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
16502         tag any more.
16503         (set_buffer_internal_1):
16504         * frame.c (store_frame_param):
16505         * eval.c (specbind):
16506         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
16508         * doc.c (Fsnarf_documentation): Simplify.
16510 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
16512         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
16513         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
16515 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
16517         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
16519 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
16521         * eval.c (do_autoload): Don't save autoloads.
16523         * data.c (Ffset): Save autoload of the function being set.
16525 2007-10-07  John Paul Wallington  <jpw@pobox.com>
16527         * xfns.c (x_create_tip_frame): Set the `display-type' frame
16528         parameter before setting up faces.
16530 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
16532         * ccl.c (Fregister_code_conversion_map):
16533         * keyboard.c (append_tool_bar_item): Reformat last change.
16535         * lisp.h (eabs): Rename from `abs'.  All callers changed.
16537 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
16539         * buffer.c (add_overlay_mod_hooklist):
16540         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
16541         * fontset.c (make_fontset):
16542         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
16543         (append_tool_bar_item):
16544         * macmenu.c (grow_menu_items):
16545         * w32menu.c (grow_menu_items):
16546         * xmenu.c (grow_menu_items): Use larger_vector.
16548 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
16550         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
16551         selected frame'' on MSDOS).
16553 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
16555         * frame.c (Qexplicit_name): New variable.
16556         (x_report_frame_params): Report it in parameter alist.
16557         (syms_of_frame): Intern and staticpro it.
16559 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
16561         * macfns.c (x_create_tip_frame): Set terminal for frame.
16563 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
16565         * frame.c (Qenvironment): Remove.
16566         (syms_of_frame) <Qenvironment>: Don't initialize.
16567         (Fdelete_frame): Don't treat the `environment' param specially.
16568         * frame.h (Qenvironment): Don't declare.
16569         * callproc.c (set_initial_environment): Don't set unused frame param.
16571         * frame.c (Fframe_with_environment): Remove.
16572         (syms_of_frame) <Sframe_with_environment>: Don't declare.
16574         * lisp.h (Fframe_with_environment): Don't declare.
16576 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
16578         * indent.c (indent_tabs_mode, last_known_column)
16579         (last_known_column_modified): Make static.
16580         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
16582 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
16584         * puresize.h (BASE_PURESIZE): Increase to 1170000.
16586 2007-10-09  Jason Rumney  <jasonr@gnu.org>
16588         * w32term.c (x_set_window_size): Disable code that attempts to tell
16589         Lisp code about a size change before it actually happens.
16591 2007-10-09  Richard Stallman  <rms@gnu.org>
16593         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
16594         return HANDLED_RETURN.
16596 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
16598         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
16599         when there's an unread command event.
16601         * frame.c (focus_follows_mouse): Move here from frame.el to allow
16602         window autoselection act appropriately when leaving selected frame.
16603         (syms_of_frame): Initialize focus_follows_mouse.
16604         * frame.h (focus_follows_mouse): Extern it.
16605         * macterm.c (XTread_socket): When focus_follows_mouse is nil
16606         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
16607         * msdos.c (dos_rawgetc): Likewise.
16608         * w32term.c (w32_read_socket): Likewise.
16609         * xterm.c (handle_one_xevent): Likewise.
16610         * xdisp.c (syms_of_xdisp): In doc-string of
16611         mouse-autoselect-window mention focus-follows-mouse.
16613 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16615         * macterm.c (mac_load_query_font): Fix missing return value.
16616         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
16617         Add BLOCK_INPUT.
16619 2007-10-08  Richard Stallman  <rms@gnu.org>
16621         * xdisp.c (get_window_cursor_type): Implement documented behavior
16622         for cursor-in-non-selected-windows = t.
16624 2007-10-08  Jason Rumney  <jasonr@gnu.org>
16626         * w32.c (w32_get_resource): Always close registry keys.
16628 2007-10-08  Jason Rumney  <jasonr@gnu.org>
16630         * makefile.w32-in (LIBS): Add COMCTL32.
16632         * w32fns.c (globals_of_w32fns): Init common controls.
16634 2007-10-08  Richard Stallman  <rms@gnu.org>
16636         * image.c (our_memory_buffer): Rename from omfib_buffer.
16638 2007-10-08  Richard Stallman  <rms@gnu.org>
16640         * buffer.c (Foverlays_at): Doc fix.
16642 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
16644         * fns.c (Fplist_put): Preserve uneven tail data.
16646 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
16648         * termhooks.h (enum event_kind): Remove trailing comma.
16650         * frame.h (enum): Remove trailing comma.
16652 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
16654         * w32proc.c (delete_child): Don't terminate threads of zombies.
16656 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
16658         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
16660         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
16661         last-repeatable-command.
16662         (init_kboard): Initialize Vlast_repeatable_command.
16663         (command_loop_1): Set it to real_this_command unless that was
16664         bound to an input event.
16665         (mark_kboards): Mark it.
16667 2007-10-08  Richard Stallman  <rms@gnu.org>
16669         * eval.c (condition-case): Doc fix.
16671 2007-10-08  Masatake YAMATO  <jet@gyve.org>
16673         * xfaces.c (tty_supports_face_attributes_p): Fix code
16674         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
16675         was copied and not edited.
16677 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
16679         Add new `input-decode-map' keymap and use it for terminal
16680         escape sequences.
16681         * keyboard.h (struct kboard): Add Vinput_decode_map.
16682         Remove Vlocal_key_translation_map.
16683         * keyboard.c (read_key_sequence): Add support for input-decode-map.
16684         (init_kboard): Init input-decode-map.
16685         Replace local-key-translation-map back with key-translation-map.
16686         (syms_of_keyboard): Declare input-decode-map.
16687         Remove local-key-translation-map.  Update docstrings.
16688         (mark_kboards): Mark Vinput_decode_map.
16689         Don't mark Vlocal_key_translation_map.
16690         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
16691         Replace local-key-translation-map back with key-translation-map.
16692         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
16693         Bind in input-decode-map rather than function-key-map.
16695         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
16696         This was made redundant by the previous introduction of XSETPVECTYPE.
16698 2007-10-09  Richard Stallman  <rms@gnu.org>
16700         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
16702 2007-09-29  Richard Stallman  <rms@gnu.org>
16704         * eval.c (internal_condition_case_2, internal_condition_case_1)
16705         (internal_condition_case): Reenable abort if x_catching_errors ()
16706         to see if that really happens and why.
16708 2007-10-06  Andreas Schwab  <schwab@suse.de>
16710         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
16712 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
16714         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
16716 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
16718         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
16720 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
16722         * window.h (struct window):
16723         * window.c (struct save_window_data, struct saved_window):
16724         * termhooks.h (struct terminal):
16725         * process.h (struct Lisp_Process):
16726         * frame.h (struct frame):
16727         * buffer.h (struct buffer):
16728         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
16729         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
16730         The size field of (pseudo)vectors is now unsigned.
16731         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
16733         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
16734         Turn `count' into an integer.
16736         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
16737         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
16738         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
16739         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
16740         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
16742         * alloc.c (allocate_pseudovector): New fun.
16743         (ALLOCATE_PSEUDOVECTOR): New macro.
16744         (allocate_window, allocate_terminal, allocate_frame)
16745         (allocate_process): Use it.
16746         (mark_vectorlike): New function.
16747         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
16748         (mark_terminals): Use it.
16749         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
16750         (Fmake_byte_code): Use XSETPVECTYPE.
16752         * frame.c (Fframe_parameters): Minor simplification.
16754         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
16756         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
16758         * buffer.c (Fget_buffer_create, init_buffer_once):
16759         * lread.c (defsubr):
16760         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
16762         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
16763         defined differently in the m/*.h files.
16764         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
16765         (XSETPVECTYPE): New macro.
16766         (XSETPSEUDOVECTOR): Use it.
16768         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
16769         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
16771         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
16772         * lread.c (defvar_per_buffer):
16773         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
16775         * window.c (candidate_window_p): Only consider as visible frames that
16776         are on the same terminal.
16778         * m/ibms390x.h (MARKBIT): Remove unused macro.
16780 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
16782         * lread.c (Fload): Fix typo in docstring.
16784 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
16786         * floatfns.c (Fexpt): Manually check for overflows, so that a power
16787         of a non-zero value can't yield zero.
16789 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
16791         * term.c (term_clear_mouse_face, term_mouse_highlight)
16792         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
16794         * print.c (safe_debug_print): Use XHASH.
16796         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
16797         Lisp elements such as tags.
16798         (XHASH): New macro.
16799         (EQ): Use it.
16800         (SREF, SSET, STRING_COPYIN): Use SDATA.
16801         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
16803         * alloc.c (mark_terminal): Remove left-over declaration.
16804         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
16805         (allocate_vectorlike): Remove type argument.  Adjust callers.
16806         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
16807         Only handle the one remaining MEM_TYPE_VECTORLIKE.
16809         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
16810         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
16811         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
16812         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
16813         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
16814         Use them.
16816         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
16817         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
16818         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
16820 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
16822         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
16823         loaded by default.
16825 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
16827         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
16828         on this tty.
16829         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
16831         * term.c (mouse_face_window): Rename from Qmouse_face_window.
16832         Update all users.
16833         (handle_one_term_event): Use Gpm_DrawPointer.
16834         (Fgpm_mouse_start): Rename from Fterm_open_connection.
16835         Signal errors instead of returning nil.  Always return nil.
16836         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
16837         Make it a noop if gpm-mouse was not activated.
16838         (syms_of_term): Update names.
16840 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
16842         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
16843         (init_sys_modes): Check that gpm_tty is the current tty.
16845         * alloc.c (allocate_terminal): Set the vector size to only count the
16846         lisp fields.  Initialize those to nil.
16847         (mark_object): Don't treat terminals specially.
16848         (mark_terminal): Remove.
16849         (mark_terminals): Use mark_object instead.
16851         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
16852         the GC to the beginning.
16854         * indent.h:
16855         * indent.c: Use EMACS_INT for ints coming from Elisp data.
16857         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
16859 2007-09-25  Jason Rumney  <jasonr@gnu.org>
16861         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
16863         * w32console.c (create_w32cons_output): Remove.
16865         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
16867         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
16868         (reset_sys_modes): Use reset_terminal_modes_hook.
16870 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
16872         * eval.c (do_autoload): Don't output any message.
16874 2007-09-24  Juri Linkov  <juri@jurta.org>
16876         * emacs.c (standard_args): Change priority of "--no-splash"
16877         from 40 to 3.  Add "--no-desktop" with the same priority.
16879 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
16881         * alloc.c (gc_sweep): Check cons cell mark bits word by word
16882         and optimize the case where they are all 1.
16884 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
16886         * lisp.h (abs): Define if not defined.
16887         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
16888         Don't define `abs', since it's defined in lisp.h.
16890 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
16892         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
16893         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
16894         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
16895         (init_tty): Use DEV_TTY instead of "/dev/tty".
16896         [WINDOWSNT]: No need to protect from NAME arg being null.
16898 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
16900         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
16901         up the tty state.
16903 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
16905         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
16906         (gpm_tty): Change its type.
16907         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
16908         (gpm_tty): Change its type and initialize it.
16909         (Fterm_open_connection): Check the frame is indeed a tty.
16910         Use the new gpm_tty.
16911         (Fterm_close_connection): Use the new gpm_tty.
16912         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
16913         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
16915 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
16917         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
16918         underline_color, to draw strike-through.
16920 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
16922         * lisp.h (allocate_terminal): Declare.
16924         * window.c (candidate_window_p): Consider frames that are being placed
16925         by the user as somewhere between visible and iconified.
16926         (window_loop): Prefer windows on the current frame.
16927         (Fselect_window): Move the use of select-frame to the beginning so we
16928         can just delegate all the work (it'll call us back anyway).
16930         * frame.c (Qdisplay_environment_variable):
16931         * frame.h (Qdisplay_environment_variable): Delete.
16933         * .gdbinit (xbacktrace): Print the arg's address rather than the value
16934         of the first arg, since that value may be a union.
16936         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
16937         parameter rather than Qdisplay_environment_variable.  If all else
16938         fails, look for DISPLAY in initial-environment.
16940 2007-09-21  Glenn Morris  <rgm@gnu.org>
16942         * Makefile.in (emacstool): Remove target.
16943         (lisp, shortlisp): Remove termdev.elc.
16945 2007-09-21  Markus Triska  <markus.triska@gmx.at>
16947         * xterm.c (x_delete_display): Compile session management conditionally.
16949 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
16951         * callproc.c (getenv_internal_1): New function.
16952         (getenv_internal): Use it.
16953         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
16955         * terminal.c (get_terminal): Don't accept ints to represent terminals.
16956         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
16957         (Fset_terminal_parameter): Work with dead terminals as well.
16958         (Fmodify_terminal_parameters): Remove.
16960         * terminal.c (get_terminal): Handle terminals.
16961         Make sure the terminal returned is live.
16962         (create_terminal): Use allocate_terminal.
16963         (mark_terminals): Move to alloc.c.
16964         (delete_terminal): Use terminal->name as liveness status.
16965         NULL out fields after freeing their contents.
16966         Don't deallocate the object.
16967         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
16968         rather than an int.
16969         (Fterminal_live_p): Accept non-integer arguments.
16970         (Fterminal_list): Return terminal objects rather than an ints.
16972         * alloc.c (enum mem_type): New member for `terminal' objects.
16973         (allocate_terminal): New function.
16974         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
16975         Handle terminals.
16976         (mark_terminal): New fun.
16977         (mark_terminals): Move from terminal.c.
16979         * term.c (get_tty_terminal): Don't treat output_initial specially.
16980         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
16981         (delete_tty): Use terminal->name as liveness status.
16983         * termhooks.h (struct terminal): Make it into a pseudovector.
16984         Remove `deleted' replaced by checking `name's nullness.
16986         * print.c (print_object): Handle terminals.
16988         * lisp.h (enum pvec_type): New `terminal' pseudovector.
16989         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
16991         * frame.c (make_terminal_frame):
16992         * keyboard.c (tty_read_avail_input):
16993         * w32term.c (x_delete_terminal):
16994         * xfns.c (Fx_create_frame, x_create_tip_frame):
16995         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
16997 2007-09-20  Glenn Morris  <rgm@gnu.org>
16999         * process.c (Fmake_network_process): Doc fix.
17001 2007-09-19  Jason Rumney  <jasonr@gnu.org>
17003         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17005 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
17007         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17008         Fix a C warning regarding variable constness.
17010         * xterm.c (handle_one_xevent): Fix a C warning.
17012 2007-09-18  Jason Rumney  <jasonr@gnu.org>
17014         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17016 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
17018         * gtkutil.c (gdpy_def): New variable.
17019         (xg_initialize): Initialize gdpy_def.
17020         (xg_display_close): If no other display exists, set gdpy_def to a
17021         new connection.
17023 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
17025         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17026         when we have no file name for the icon.
17027         (xg_tool_bar_expose_callback): Remove.
17028         (xg_create_tool_bar): Don't connect expose signal to
17029         xg_tool_bar_expose_callback.
17030         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17032 2007-09-16  Andreas Schwab  <schwab@suse.de>
17034         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17035         values instead of zapping them.
17037 2007-09-14  Glenn Morris  <rgm@gnu.org>
17039         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17040         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17041         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17042         scope and rename to omfib_buffer for clarity.
17043         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17045 2007-09-14  Kenichi Handa  <handa@m17n.org>
17047         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17049 2007-09-13  Jason Rumney  <jasonr@gnu.org>
17051         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17053         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17055         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17056         (mac_term_init): Call here instead, passing rif.
17058 2007-09-13  Glenn Morris  <rgm@gnu.org>
17060         * s/hpux.h: No longer define `static' as nothing.
17062 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
17064         * callint.c (Fcall_interactively): Remove unused var `fun'.
17066 2007-09-12  Romain Francoise  <romain@orebokech.com>
17068         * window.c (prefer_window_split_horizontally, display_buffer):
17069         Revert 2007-09-08 change.
17071 2007-09-12  Glenn Morris  <rgm@gnu.org>
17073         * alloca.c: Remove file.
17074         * Makefile.in (alloca): Do not undef.
17075         (allocaobj, alloca.o): Remove.
17076         (otherobj): Remove allocaobj.
17077         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17078         * regex.c (C_ALLOCA): Remove all references and code that was only
17079         used when this was defined.
17080         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17081         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17082         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17084         * Makefile.in (SOURCES, unlock, relock): Delete.
17086         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17087         (menu_grab_callback): All uses changed.
17089         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17090         (x_reply_selection_request): All uses changed.
17092 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
17094         * lread.c (load_warn_old_style_backquotes): Change message to look
17095         better when it appears in the middle of byte-compiler messages.
17097 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
17099         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17101         * xterm.c (x_create_terminal): Add comment.
17103         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17105 2007-09-10  Richard Stallman  <rms@gnu.org>
17107         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17109 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
17111         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17112         (DEFUN): Document `intspec', use it instead of `prompt'.
17114         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17116         * data.c (Finteractive_form): If the interactive specification starts
17117         with a `(', use it as a Lisp form.
17119         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17120         name and file modes.
17122         * callint.c (Fcall_interactively): Comment fixes.
17124 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
17126         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17127         and compiled functions.
17129 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
17131         * window.c (prefer_window_split_horizontally): New variable.
17132         (display_buffer): Consider splitting window horizontally depending
17133         on prefer_window_split_horizontally.
17135 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
17137         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17139 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
17141         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17143         * frame.c (x_set_frame_parameters): Check number is positive before
17144         using XFASTINT.
17146         * window.c (freeze_window_start): Don't presume selected_window holds
17147         a window object.
17148         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17150 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
17152         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17154 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
17156         * window.c (Vsplit_window_preferred_function): New var.
17157         (Fdisplay_buffer): Use it.
17158         (syms_of_window): Export, and initialize it.
17160 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
17162         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17164 2007-09-06  Glenn Morris  <rgm@gnu.org>
17166         * gtkutil.c (menu_grab_callback) <cnt>:
17167         * xselect.c (x_reply_selection_request) <cnt>: Move static
17168         variable to file scope.
17170 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
17172         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17173         consistent values of selected_frame and selected_window.
17175 2007-09-04  Jason Rumney  <jasonr@gnu.org>
17177         * w32console.c (initialize_w32_display): Zero unused hooks.
17179 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
17181         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17182         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17184 2007-09-04  Jason Rumney  <jasonr@gnu.org>
17186         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17187         in w32console.c.  Set up input.  Remove XXX comments that have been
17188         confirmed as correct.
17190         * s/ms-w32.h (MULTI_KBOARD): Define.
17192         * w32console.c (one_and_only_w32cons): Remove.
17193         (initialize_w32_display): Take terminal argument.
17195         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17196         initialize_w32_display.
17197         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17199         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17201         * keyboard.c (discard_mouse_events): Discard it.
17202         (make_lispy_event): Translate it to a lisp event.
17203         (lispy_wheel_names): Add wheel-left and right events.
17204         (syms_of_keyboard): Enlarge wheel_syms.
17206         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17207         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17209         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17211         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17212         from WM_MOUSEHWHEEL.
17213         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17215         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17216         terminal.
17218         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17219         keyboard for the terminal.
17221 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
17223         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17224         (Vresume_tty_hook): Rename from Vresume_tty_functions.
17225         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17226         and resume-tty-function to resume-tty-hook.
17227         (Fsuspend_tty, Fresume_tty): Use new names.
17229 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
17231         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17232         if it starts with "n:".
17234 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
17236         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17238 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
17240         * frame.h:
17241         * frame.c (Qterm_environment_variable): Remove.
17242         (syms_of_frame): Don't init and staticpro it.
17244         * callproc.c (getenv_internal): Remove special case for $TERM.
17246         * callproc.c (Vinitial_environment): New variable.
17247         (set_initial_environment): Initialize it.
17248         (syms_of_callproc): Declare it.
17249         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17250         TERM under which a process runs is never related to the TERM in which
17251         Emacs is running.
17253 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
17255         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17256         * s/darwin.h: ... do it here.
17258 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
17260         * lisp.h (set_initial_environment): Rename from set_global_environment.
17262         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17263         removed by mistake on the multi-tty branch.
17265         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17266         (Fmodify_frame_parameters): Return a value.
17268         * image.c (png_load): Comment-out var only used in commented-out code.
17270         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
17271         before passing it to mark_object.
17273         * xfaces.c (internal_resolve_face_name): Return a value.
17274         (internal_resolve_face_name, resolve_face_name_error): Comment out.
17276         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
17277         (x_icon): Comment-out var only used in commented-out code.
17279 2007-08-29  Romain Francoise  <romain@orebokech.com>
17281         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
17282         QUIT hasn't been provided.
17284 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
17286         * callproc.c (child_setup, getenv_internal): Use the
17287         display-environment-variable and term-environment-variable frame params.
17288         (set_initial_environment): Initialise Vprocess_environment.
17290         * config.in: Disable multi-keyboard support on a mac.
17292         * frame.c (Qterm_environment_variable)
17293         (Qdisplay_environment_variable): New variables.
17294         (syms_of_frame): Intern and staticpro them.
17295         (Fmake_terminal_frame): Disable output method test.
17297         * frame.h: Declare them here.
17299         * macfns.c (x_set_mouse_color): Get rif from the frame.
17300         (x_set_tool_bar_lines): Don't use updating_frame.
17301         (mac_window): Add 2 new parameters for consistency with other systems.
17302         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
17303         frame parameters following what is done in X11 and w32.  Don't use
17304         FRAME_MAC_DISPLAY_INFO.
17305         (Fx_open_connection, start_hourglass): Remove window-system check.
17306         (x_create_tip_frame): Get the keyboard from the terminal.
17308         * macmenu.c: Reorder includes.
17309         (Fx_popup_menu): Use terminal specific mouse_position_hook.
17311         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
17312         terminal parameter.
17313         (x_clear_frame): Add a frame parameter.
17314         (note_mouse_movement): Get rif from the frame.
17315         (mac_term_init): Initialize the terminal.
17316         (mac_initialize): Make static and move terminal initialization ...
17317         (mac_create_terminal): ... to this new function.
17319         * macterm.h (struct mac_display_info): Add terminal.
17320         (mac_initialize): Delete declaration.
17322         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
17324         * sysdep.c: Comment out text after #endif.
17326         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
17327         is defined.  Better initialize ttys in windows.  Use terminal
17328         specific mouse_position_hook.
17330         * termhooks.h (union display_info): Add mac_display_info.
17332         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
17333         Set the default minibuffer frame, window_system and the rest of the
17334         frame parameters following what is done in X11.
17336         * w32term.c (w32_initialize): Make static.
17338         * xselect.c (x_handle_selection_clear): Only access
17339         terminal->kboard when MULTI_KBOARD is defined.
17341         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
17342         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
17344 2007-08-29  Jason Rumney  <jasonr@gnu.org>
17346         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
17347         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
17349         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
17350         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
17352         * keyboard.c (restore_kboard_configuration): Only define when
17353         MULTI_KBOARD defined.
17355         * makefile.w32-in: Update dependancies from Makefile.in.
17356         (OBJ1): Add terminal.$(O)
17358         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
17359         Don't define function body.
17360         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
17362         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
17364         * w32.c (request_sigio, unrequest_sigio): Remove.
17366         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
17367         (w32con_clear_frame, w32con_clear_end_of_line)
17368         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
17369         (w32con_delete_glyphs, w32con_set_terminal_window)
17370         (scroll_line, w32_sys_ring_bell): Add frame arg.
17371         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
17372         Add terminal arg.
17373         (PICK_FRAME): Remove.
17374         (w32con_write_glyphs): Use frame specific terminal coding.
17375         (one_and_only_w32cons): New global variable.
17376         (initialize_w32_display): Use it for storing hooks.
17377         (create_w32cons_output): New function.
17379         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
17380         arg a frame.
17382         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
17383         Set window_system.
17384         (x_set_tool_bar_lines): Don't use updating_frame.
17385         (Fx_create_frame): Set terminal and ref count.
17386         (Fx_open_connection): Remove window-system check.
17388         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
17390         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
17391         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
17392         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
17393         Add frame arg.
17394         (x_delete_terminal, w32_create_terminal): New functions.
17395         (w32_term_init): Create a terminal.
17396         (w32_initialize): Move terminal specific initialization to
17397         w32_create_terminal.
17399         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
17400         (w32_clear_rect, w32_clear_area): Use background from frame.
17401         (w32_display_info): Add terminal.
17402         (w32_sys_ring_bell, x_delete_display): Declare here.
17404         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
17406         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
17408 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
17410         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
17411         Fix get_named_tty calls for the controlling tty.
17413 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
17415         * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
17417 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
17419         * term.c (tty_insert_glyphs): Add missing first parameter.
17421 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
17423         * buffer.c (Fbuffer_list, Fbury_buffer):
17424         Take frame->buried_buffer_list into account.
17426         * cm.c (current_tty): New variable, for cmputc().
17427         (cmputc): Use it.
17428         (cmcheckmagic): Add tty parameter, look up terminal streams there.
17429         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
17430         (cmgoto): Add tty parameter.  Pass it on to calccost().
17431         Use emacs_tputs() instead of tputs().
17433         * cm.h (emacs_tputs): New macro to set current_tty, and then call
17434         tputs().
17435         (current_tty): New variable, for cmputc().
17436         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
17438         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
17439         (internal_condition_case, internal_condition_case_1)
17440         (internal_condition_case_2): Don't abort when x_catching_errors.
17442         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
17443         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
17444         prevent crashes caused by bogus longjmps in read_char.
17446         * keymap.h (Fset_keymap_parent): Add EXFUN.
17448         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
17449         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17450         Remove redundant definition.
17452         * macfns.c (x_set_mouse_color, x_make_gc):
17453         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17455         * w32term.c (x_free_frame_resources):
17456         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17457         (w32_initialize): Use the accessor macros for terminal characteristics.
17459         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
17460         Use the accessor macros for terminal characteristics.
17461         * msdos.c (internal_terminal_init): Use the accessor macros for
17462         terminal characteristics.
17463         (ScreenVisualBell, internal_terminal_init):
17464         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17466         * termopts.h (no_redraw_on_reenter): Declare.
17468         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
17469         (mark_terminals, mark_ttys): Declare.
17470         (Fgarbage_collect): Call them.
17471         (mark_object): Mark buried_buffer_list.
17473         * prefix-args.c: Include stdlib.h for exit.
17475         * syssignal.h: Add comment.
17477         * indent.c: Include stdio.h.
17479         * window.h (Vinitial_window_system): Declare.
17480         (Vwindow_system): Delete declaration.
17482         * fontset.c (Finternal_char_font): Use FRAME_RIF.
17484         * image.c (lookup_image): Don't initialize `c' until the xasserts
17485         have been run.
17487         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
17488         FRAME_FOREGROUND_PIXEL.
17490         * print.c (print_preprocess): Don't lose print_depth levels while
17491         iterating.
17493         * widget.c (update_from_various_frame_slots):
17494         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17496         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
17497         frames.
17498         (window_internal_height): Remove bogus make_number call.
17499         (init_window_once): Call make_terminal_frame with two zero parameters.
17501         * fileio.c (Fread_file_name): Update comment.
17503         * callint.c (Fcall_interactively):
17504         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
17505         Make sure it is correctly unwound.
17507         * xsmfns.c (x_session_close): New function.
17509         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
17510         Delete declarations.
17512         * xterm.h: Remove declaration for x_fully_uncatch_errors.
17513         (x_output): Remove background_pixel and foreground_pixel fields.
17514         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
17515         (x_delete_device, x_session_close): Declare.
17517         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
17518         (read_filtered_event): Call `read_char' with a local
17519         `wrong_kboard_jmpbuf'.
17521         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
17522         Don't call single_kboard_state.  Use FRAME_RIF.
17524         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
17525         systems.
17527         * lisp.h (set_process_environment): Rename to `set_global_environment'.
17528         (Fframe_with_environment, Fset_input_meta_mode)
17529         (Fset_quit_char): EXFUN.
17530         (x_create_device, tty_output, terminal, tty_display_info): Declare.
17531         (init_sys_modes, reset_sys_modes): Update prototypes.
17532         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
17534         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
17535         Vlocal_key_translation_map, and Vkeyboard_translate_table.
17536         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
17537         Delete declarations.
17538         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
17539         (temporarily_switch_to_single_kboard, tty_read_avail_input):
17540         New declarations.
17542         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
17543         already does that during init_display().  Call syms_of_keymap
17544         before syms_of_keyboard.  Call `syms_of_terminal'.
17545         Call set_initial_environment, not set_process_environment.
17546         (shut_down_emacs): Call reset_all_sys_modes() instead of
17547         reset_sys_modes().
17549         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
17550         (internal_resolve_face_name, resolve_face_name_error): New functions.
17551         (resolve_face_name): Protect against loops and errors thrown by Fget.
17552         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
17553         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
17555         * scroll.c: Replace CURTTY() with local variables throughout the
17556         file (where applicable).
17557         (calculate_scrolling, calculate_direct_scrolling)
17558         (scrolling_1, scroll_cost): Use the accessor macros for terminal
17559         characteristics.
17561         * keymap.c (Vfunction_key_map): Remove.
17562         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
17563         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
17564         (Vkey_translation_map): Remove.
17565         (syms_of_keymap): Remove DEFVAR for key-translation-map.
17566         (Fdescribe_buffer_bindings)
17567         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
17568         Update for terminal-local key-translation-map.
17570         * Makefile.in (callproc.o): Update dependencies.
17571         (lisp, shortlisp): Add termdev.elc.
17572         (obj): Add terminal.o.
17573         (terminal.o): Add dependencies.
17574         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
17575         (data.o, fns.o): Add termhooks.h dependency.
17576         (SOME_MACHINE_LISP): Add dnd.elc.
17577         (minibuf.o): Fix typo.
17578         Update dependencies.
17580         * data.c (do_symval_forwarding, store_symval_forwarding)
17581         (find_symbol_value): Use the selected frame's keyboard, not
17582         current_kboard.
17584         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
17585         Vwindow_system.
17587         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
17588         Fmenu_bar_open.
17589         (syms_of_xmenu): Update defsubr.
17590         (mouse_position_for_popup, Fx_popup_menu)
17591         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
17592         (set_frame_menubar, free_frame_menubar)
17593         (create_and_show_popup_menu, xmenu_show)
17594         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
17595         an X frame.
17597         * xselect.c (x_own_selection): Abort if not an X frame.
17598         (some_frame_on_display): Check if it is an X frame.
17599         (x_handle_selection_clear): Deal with MULTI_KBOARD.
17601         * coding.c: Include frame.h and termhooks.h.
17602         (terminal_coding, keyboard_coding): Delete.
17603         (Fset_terminal_coding_system_internal)
17604         (Fset_keyboard_coding_system_internal)
17605         (Fkeyboard_coding_system)
17606         (Fterminal_coding_system): Add a terminal parameter.
17607         Get terminal_coding from the terminal.
17608         (init_coding_once): Don't call setup_coding_system here.
17610         * dispextern.h (set_scroll_region, turn_off_insert)
17611         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
17612         (tty_clear_end_of_line, tty_setup_colors)
17613         (delete_tty, updating_frame)
17614         (produce_special_glyphs, produce_glyphs, write_glyphs)
17615         (insert_glyphs): Remove.
17616         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
17617         (tty_turn_off_highlight, get_tty_size): Add declaration.
17618         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
17620         * frame.h (enum output_method): Add output_initial.
17621         (struct x_output): Delete.
17622         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
17623         Access foreground_pixel and background_pixel directly from the frame.
17624         (tty_display): Delete.
17625         (struct frame): Add buried_buffer_list, foreground_pixel,
17626         background_pixel and terminal.  Delete kboard.
17627         (union output_data): Add tty.
17628         (FRAME_KBOARD): Get the kboard from the terminal.
17629         (FRAME_INITIAL_P): New macro.
17630         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
17631         (Qterm_environment_variable, Qdisplay_environment_variable)
17632         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
17633         New declarations.
17635         * termchar.h (tty_output, tty_display_info): New structures.
17636         (tty_list): Declare.
17637         (FRAME_TTY, CURTTY): New macros.
17638         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
17639         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
17640         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
17641         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
17643         * callproc.c: Include frame.h and termhooks.h, for terminal
17644         parameters.
17645         (add_env): New function.
17646         (child_setup): Use it.
17647         (child_setup, getenv_internal): Handle the new Vprocess_environment.
17648         (getenv_internal): Fix get_terminal_param call.
17649         (Fgetenv_internal, egetenv): Update doc.
17650         (syms_of_callproc): Initialize Vprocess_environment to nil.
17651         Register and initialize them.  Remove obsolete defvars.  Update doc
17652         strings.
17653         (child_setup): Handle Vlocal_environment_variables.
17654         (getenv_internal): Add terminal parameter.
17655         Handle Vlocal_environment_variables.
17656         (Fgetenv_internal): Add terminal parameter.
17657         (child_setup, getenv_internal, Fgetenv_internal): Store the local
17658         environment in a frame (not terminal) parameter.  Update doc strings.
17659         (set_initial_environment): Rename from set_global_environment.
17660         Store Emacs environment in initial frame parameter.
17662         * xdisp.c (redisplay_internal): Update references to
17663         `previous_terminal_frame'.
17664         (display_mode_line, Fformat_mode_line): Replace calls to
17665         `push_frame_kboard' with `push_kboard'.
17666         (get_glyph_string_clip_rects): Add extra parentheses and
17667         braces to prevent compiler warnings.
17668         (calc_pixel_width_or_height): Add xassert to check that the
17669         frame is alive.  Don't call `lookup_image' on a termcap frame.
17670         (message2_nolog, message3_nolog, redisplay_internal)
17671         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
17672         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
17673         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
17674         (Fx_display_pixel_width, Fx_display_pixel_height)
17675         (Fx_display_planes, Fx_display_color_cells)
17676         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
17677         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
17678         (Fx_display_backing_store, Fx_display_visual_class)
17679         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
17680         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
17682         * xfns.c (x_set_foreground_color x_set_background_color)
17683         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
17684         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17685         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
17686         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
17687         terminal that is being deleted.
17688         (Fx_create_frame): Use `store_frame_param' to set `window-system'
17689         frame parameter, and make sure it overrides any user-supplied setting.
17690         (Fx_close_connection, Fx_synchronize): Unify argument names with
17691         the rest of the DEFUNs.
17693         * dispnew.c (Fsend_string_to_terminal): Update call to
17694         `get_tty_terminal'.
17695         (Fredraw_frame, Fsend_string_to_terminal)
17696         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
17697         FRAME_TERMCAP_P and FRAME_TTY.
17698         (window_change_signal): Don't believe width/height values that are
17699         impossibly small.
17700         (Vinitial_window_system): Rename from Vwindow_system.
17701         (termscript, Wcm, rif): Delete.
17703         * termhooks.h (struct terminal): New struct containing the
17704         previously global text display hooks and new members NAME,
17705         DELETED and PARAM_ALIST.
17706         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
17707         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
17708         (FRAME_RIF): New macros.
17709         (get_terminal_param, get_device): New declarations.
17710         (termscript): Delete declaration.
17712         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
17713         (XTflash, x_free_frame_resources, x_scroll_bar_create)
17714         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
17715         FRAME_FOREGROUND_PIXEL.
17716         (x_fully_uncatch_errors): Disable definition.
17717         (x_scroll_bar_expose): Fix reference to foreground pixel.
17718         (XTread_socket): Disable loop on all X displays.
17719         (x_delete_terminal): Don't set terminal->deleted and let
17720         delete_terminal delete the frames on the terminal.
17721         (x_delete_display): Doc update to reflect changes in
17722         delete_terminal.
17723         (x_display_info) <terminal>: Move member earlier in the struct.
17724         (deleting_tty): Remove old variable.
17725         (Fsuspend_tty): Call clear_tty_hooks.
17726         (Fresume_tty, init_tty): Call set_tty_hooks.
17727         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
17728         errors on X frames.
17729         (x_catch_errors_unwind): Abort if x_error_message is NULL.
17730         (handle_one_xevent): Initialize `f' to NULL.
17731         (x_delete_terminal, x_create_terminal): New functions.
17732         (XTset_terminal_modes, XTreset_terminal_modes)
17733         (XTread_socket, x_connection_closed, x_term_init)
17734         (x_term_init, x_delete_display): Add terminal parameter.
17735         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
17736         X connections.
17738         * frame.c: Include termchar.h.
17739         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
17740         (Qwindow_system, Qenvironment, Qterm_environment_variable)
17741         (Qdisplay_environment_variable): New vars.
17742         (Fframep): Deal with output_initial.
17743         (Fframe-live-p): Doc fix.
17744         (Fwindow-system): New function.
17745         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
17746         (make_terminal_frame): Don't create frames on a terminal that is
17747         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
17748         (store_frame_param): Check for found_for_frame before calling XFRAME.
17749         (Fmake_terminal_frame): Handle NULL tty names correctly.
17750         (syms_of_frame): Enhance doc string of `default-frame-alist'.
17751         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
17752         frames to refer to a deleted frame in their 'environment parameter.
17753         (Fframe_with_environment): New function.
17754         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
17755         (get_future_frame_param): New function.
17756         (Fmake_terminal_frame): Use it.
17757         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
17759         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
17760         * sysdep.c (reset_sys_modes): Update for renames.
17762         * keyboard.c (tty_read_avail_input): New function.
17763         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
17764         (syms_of_keyboard): Defsubr them.
17765         (Fset_input_meta_mode, Fset_quit_char): New functions.
17766         (Fset_input_mode): Split to above functions.
17767         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
17768         parameter.  Use it in call to `read_char'.
17769         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
17770         Set wrong_kboard_jmpbuf correctly in recursive calls.
17771         Use current_kboard to access Vkeyboard_translate_table.
17772         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
17773         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
17774         Update longjmp invocations.  Remember the original current_kboard,
17775         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
17776         changes it.  Comment out unnecessary calls to
17777         `record_single_kboard_state' and `any_kboard_state'.
17778         Update recursive calls.
17779         (wrong_kboard_jmpbuf): Remove global variable.
17780         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
17781         Handle deleted interrupted_kboards correctly; that is a legal
17782         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
17783         and read_char calls.  Abort if interrupted_kboard died in read_char.
17784         (any_kboard_state, single_kboard_state)
17785         (push_frame_kboard): Remove function.
17786         (pop_kboard): Switch out of single_kboard mode if the kboard has
17787         been deleted.  Remove unused variable.  Help debugging by not
17788         changing current_kboard unnecessarily.  Set current_kboard to the
17789         kboard of the selected frame when the stored kboard object has
17790         been deleted before pop_kboard.
17791         (temporarily_switch_to_single_kboard): Change first parameter to a
17792         frame pointer.  Throw an error when caller wants to change kboards
17793         while in single_kboard mode.  Don't push_kboard if we weren't in
17794         single kboard state.  Don't pop_kboard if we popped into any
17795         kboard state.
17796         (restore_kboard_configuration): Abort if pop_kboard changed the
17797         kboard in single_kboard mode.  Call pop_kboard only after setting
17798         up single_kboard mode.
17799         (Frecursive_edit): Switch to single_kboard mode only in nested
17800         command loops.
17801         (cmd_error, command_loop, command_loop_1, timer_check):
17802         Comment out unnecessary call to `any_kboard_state' and
17803         `record_single_kboard_state'.
17804         (delete_kboard): Exit single_kboard mode if we have just deleted
17805         that kboard.  Use FRAME_KBOARD.
17806         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
17807         `fatal_error_signal'.
17808         (record_single_kboard_state): Don't push_kboard if we weren't in
17809         single kboard state.  Don't pop_kboard if we popped into any
17810         kboard state.
17811         (push_frame_kboard): Rename to push_kboard.
17812         (kbd_buffer_get_event): Use FRAME_TERMINAL.
17813         (read_avail_input): Read input from all terminals.
17814         (mark_kboards): Also mark Vkeyboard_translate_table.
17815         (kbd_buffer_store_event_hold): Simplify condition.
17816         (read_key_sequence): Reinitialize fkey and keytran at each replay.
17817         (Vkeyboard_translate_table): Move to struct kboard.
17818         (init_kboard): Initialize Vkeyboard_translate_table.
17819         (syms_of_keyboard): Use DEFVAR_KBOARD to define
17820         Vkeyboard_translate_table.  Update doc strings.  Update docs of
17821         local-function-key-map and function-key-map.
17823         * terminal.c: New file.
17825         * term.c: Include errno.h.
17826         (Vring_bell_function, device_list, initial_device)
17827         (next_device_id, ring_bell, update_begin, update_end)
17828         (set_terminal_window, cursor_to, raw_cursor_to)
17829         (clear_to_end, clear_frame, clear_end_of_line)
17830         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
17831         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
17832         (syms_of_term): Move their initialization to terminal.c.
17833         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
17834         (Ftty_display_color_cells)
17835         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
17836         (clear_tty_hooks, set_tty_hooks)
17837         (init_tty, maybe_fatal): New functions.
17838         (Ftty_type): Return nil if terminal is not on a tty instead of
17839         throwing an error.  Doc update.
17840         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
17841         Doc update.  Initialize new subrs and variables.
17842         (delete_tty): Use terminal->deleted.
17843         (tty_set_terminal_modes): Rename from set_terminal_modes.
17844         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
17845         (set_scroll_region): Rename to `tty_set_scroll_region'.
17846         (turn_on_insert): Rename to `tty_turn_on_insert'.
17847         (turn_off_insert): Rename to `tty_turn_off_insert'.
17848         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
17849         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
17850         (toggle_highligh): Rename to `tty_toggle_highlight'.
17851         (background_highlight): Rename to `tty_background_highlight'.
17852         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
17853         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
17854         (tty_set_scroll_region, tty_background_highlight)
17855         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
17856         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
17857         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
17858         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
17859         Add static modifier.
17860         (tty_reset_terminal_modes, tty_set_terminal_window)
17861         (tty_set_scroll_region, tty_background_highlight)
17862         (tty_highlight_if_desired, tty_cursor_to)
17863         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
17864         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
17865         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
17866         renames.
17868 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
17870         * keyboard.c: Qrtl is new.
17871         (parse_tool_bar_item): Handle :rtl keyword.
17872         (syms_of_keyboard): Intern :rtl keyword.
17874         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
17876         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
17877         so no Lisp code is executed.
17878         (file_for_image, find_rtl_image): New functions.
17879         (xg_get_image_for_pixmap): Use file_for_image.
17880         (update_frame_tool_bar): If direction is RTL, use RTL image if
17881         defined.  Use Gtk stock images if defined.
17883 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17885         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
17886         for nonexistent or zero-width glyph in composition glyph.
17888 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
17890         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
17892         * xdisp.c (Finvisible_p): New function.
17893         (syms_of_xdisp): defsubr it.
17895 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
17897         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
17898         Doc fixes.
17900 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17902         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
17904 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
17906         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
17907         whether decoding has modified buffer contents.
17909 2007-08-24  Jason Rumney  <jasonr@gnu.org>
17911         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
17912         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
17913         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
17914         (init_svg_functions) [HAVE_NTGUI]: New function.
17915         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
17916         (svg_load_image): Use them.
17917         (svg_load_image) [HAVE_NTGUI]: Implement background.
17919 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
17921         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
17922         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
17923         (LIBX): Remove @RSVG_LIBS@.
17924         (LIBES): Add $(RSVG_LIBS).
17926         * image.c (svg_load_image): Blend with specified background if exists.
17927         Use IMAGE_BACKGROUND.  Add Mac OS Support.
17929         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
17930         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
17931         Remove macros.
17932         [MAC_OSX] (socket_callback): Do nothing.
17933         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
17934         ReceiveNextEvent.
17935         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
17936         socket_callback.
17937         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
17939 2007-08-22  Glenn Morris  <rgm@gnu.org>
17941         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
17943 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
17945         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
17947         * image.c: Add support for SVG images.  Some additional comments
17948         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
17949         (svg_image_p): New function to test for SVG image.
17950         (svg_load): New function to load SVG image.
17951         (svg_load_image): New function, helper for svg_load.
17952         (Qsvg): New Lisp_object.
17953         (svg_keyword_index): New enum.
17954         (svg_format): New static `image_keyword' struct.
17955         (svg_type): New static `image_type' struct.
17956         (librsvg/rsvg.h): Include it.
17958 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
17960         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
17962 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
17964         * lread.c (Qold_style_backquotes): New var.
17965         (syms_of_lread): Init and staticpro it.
17966         (load_warn_old_style_backquotes): New fun.
17967         (Fload): Use them to warn about old style backquotes.
17968         (end_of_file_error, Fload): Remove unused vars.
17970         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
17972         * lread.c (Vold_style_backquotes): New var.
17973         (syms_of_lread): Init and export it to Elisp.
17974         (read1): Set it when we find an old-style (back)quote.
17976 2007-08-22  Jason Rumney  <jasonr@gnu.org>
17978         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
17980 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
17982         * puresize.h (BASE_PURESIZE): Increase to 1140000.
17984 2007-08-19  Richard Stallman  <rms@gnu.org>
17986         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
17988 2007-08-19  Andreas Schwab  <schwab@suse.de>
17990         * alloc.c (pure): Round PURESIZE up.
17992 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
17994         * xterm.c (handle_one_xevent): Remove check that mouse click is in
17995         active frame.
17997 2007-08-16  Richard Stallman  <rms@gnu.org>
17999         * eval.c (Fcommandp): Add parens to clarify.
18001         * minibuf.c (Fall_completions): Use enum for type of table.
18003         * emacs.c (USAGE2): Improve text.
18005 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
18007         * term.c (tty_default_color_capabilities): Declare static
18008         variables in file scope, to avoid HPUX compiler problem.
18010 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
18012         * gtkutil.c (update_frame_tool_bar): Use -1 as index
18013         to gtk_toolbar_insert.
18015 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
18017         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18019         * insdel.c (reset_var_on_error): New fun.
18020         (signal_before_change, signal_after_change):
18021         Use it to reset (after|before)-change-functions to nil in case of error.
18022         Bind inhibit-modification-hooks to t.
18023         Don't bind (after|before)-change-functions to nil while they run.
18025 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18027         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18028         filling pixmap with stippled background.
18030 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18032         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18033         Don't use invisible frame as parent window for repositioning.
18035 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
18037         * print.c (new_backquote_output): Rename from old_backquote_output.
18038         (print): Inverse its logic (according to its name) so as to match the
18039         behavior of new_backquote_flag in lread.c.
18041 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18043         * gmalloc.c (posix_memalign): New function.
18045         * macterm.c (frame_highlight, frame_unhighlight): Don't call
18046         ActivateControl/DeactivateControl here.
18047         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18048         frame-notice-user-settings is non-nil.
18049         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18050         for kEventParamFMFontStyle.
18051         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18052         mac_pass_command_to_system and mac_pass_control_to_system here.
18053         (XTread_socket): Call ActivateControl/DeactivateControl here.
18054         (XTread_socket) [TARGET_API_MAC_CARBON]:
18055         Check mac_pass_command_to_system and mac_pass_control_to_system here.
18056         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18057         for window repositioning.
18059 2007-08-08  Glenn Morris  <rgm@gnu.org>
18061         * Replace `iff' in doc-strings and comments.
18063 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
18065         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18067 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
18069         * fileio.c (Finsert_file_contents): Run format-decode and
18070         after_insert_file_functions on entire buffer when REPLACE is
18071         non-nil and inhibit modification_hooks and point_motion_hooks.
18072         For consistency, run after_insert_file_functions iff something
18073         got inserted.  Move signal_after_change and update_compositions
18074         after code running after_insert_file_functions.  Make sure that
18075         undo_list doesn't record intermediate steps of the decoding process.
18077 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18079         * emacs.c (main)
18080         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18081         Call malloc_enable_thread on interactive startup.
18083         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18084         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18085         [USE_PTHREAD]: Conditionalize with it.
18086         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18087         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18088         New functions.
18090 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
18092         * xdisp.c (redisplay_window): When restoring original buffer
18093         position, make sure it is still valid.
18095         * image.c (png_load): Ignore png-supplied background color.
18097 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18099         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18100         Use kCFAbsoluteTimeIntervalSince1970.
18102         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18103         New variable.
18104         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18105         event loop should be quit.
18106         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18107         Quit dialog event loop if quit_dialog_event_loop is set.
18109         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18110         (Selection): New typedef.  Use instead of ScrapRef.
18111         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18112         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18113         (mac_clear_selection): Rename from clear_scrap.
18114         (get_flavor_type_from_symbol): New argument SEL and subsume function of
18115         scrap_has_target_type.  All uses changed.
18116         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18117         (mac_selection_has_target_p): New functions.
18118         (mac_put_selection_value): Rename from put_scrap_string.
18119         (mac_get_selection_value): Rename from get_scrap_string.
18120         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18121         (put_scrap_private_timestamp, scrap_has_target_type)
18122         (get_scrap_private_timestamp): Remove functions.
18123         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18124         (x_own_selection, x_get_local_selection):
18125         Use mac_valid_selection_value_p.
18126         (x_own_selection): Don't use put_scrap_private_timestamp.
18127         Record OWNERSHIP-INFO into Vselection_alist instead.
18128         (x_get_local_selection): Don't check type if request is local.
18129         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18130         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18132 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
18134         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18135         add comment explaining why.
18137 2007-08-03  Richard Stallman  <rms@gnu.org>
18139         * fileio.c (Fvisited_file_modtime): Use make_time.
18141 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
18143         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18144         build.
18146 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
18148         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18150 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
18152         * puresize.h (BASE_PURESIZE): Increase to 1130000.
18154 2007-07-30  Richard Stallman  <rms@gnu.org>
18156         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18158 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
18160         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
18162 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
18164         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18165         remote default-directory.
18167         * buffer.c (mode-line-format): Update doc string.
18169 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18171         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18172         scroll bar gap.
18173         (x_scroll_bar_create): Set bar->fringe_extended_p.
18174         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18175         on frame edge.  Check fringe background extension.  Don't clear
18176         extended fringe background area.
18178         * w32term.h (struct scroll_bar): New member fringe_extended_p.
18179         (w32_fill_area): Enclose multiple statements with do ... while (0).
18181         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18182         Extend fringe background to scroll bar gap.
18183         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18184         Set bar->fringe_extended_p.
18185         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18186         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
18187         background extension.  Don't clear extended fringe background area.
18189         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18190         New member fringe_extended_p.
18192 2007-07-25  Glenn Morris  <rgm@gnu.org>
18194         * Relicense all FSF files to GPLv3 or later.
18196         * COPYING: Switch to GPLv3.
18198 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
18200         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18202         * data.c (Finteractive_form): Check for the presence of an
18203         `interactive-form' symbol property more thoroughly.
18205         * data.c (Finteractive_form): Use an `interactive-form' property if
18206         present, analogous to the function-documentation property.
18208 2007-07-24  Jason Rumney  <jasonr@gnu.org>
18210         * w32fns.c (x_real_positions): Get real position from OS instead of
18211         calculating it.
18213 2007-07-23  Jason Rumney  <jasonr@gnu.org>
18215         * filelock.c (current_lock_owner): Allow for @ sign in username.
18217 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
18219         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18220         remote default-directory.
18222         * buffer.c (mode-line-format): Describe above case in doc string.
18224 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
18226         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18227         Define if not defined.
18229 2007-07-18  Jason Rumney  <jasonr@gnu.org>
18231         * w32proc.c (w32_executable_type): Handle 64 bit executables.
18233 2007-07-18  Richard Stallman  <rms@gnu.org>
18235         * data.c (Fsetq_default): Doc fix.
18237         * eval.c (Fsetq): Doc fix.
18239 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
18241         * coding.c (Ffind_operation_coding_system):
18242         * eval.c (For, Fand): Doc fixes.
18243         Reported by Johan Bockgård.
18245 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
18247         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18249         * xterm.h: Declare x_ewmh_activate_frame.
18251         * xterm.c (x_ewmh_activate_frame): New function.
18252         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18254 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
18256         * window.c (Fdisplay_buffer): If largest or LRU window is the
18257         only window, split it even if it is not eligible for splitting.
18258         This restores the original behavior broken by the 2007-07-15
18259         change.
18261 2007-07-17  Glenn Morris  <rgm@gnu.org>
18263         * abbrev.c (abbrev_check_chars): New function.
18264         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18265         Call abbrev_check_chars to check abbrev characters are word
18266         constituents.  Doc fix.
18268 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
18270         * process.c (Fstart_process, Fmake_network_process)
18271         (read_process_output): Fix up last changes.
18273 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
18275         * makefile.w32-in (clean): Don't delete *~.
18277 2007-07-16  Andreas Schwab  <schwab@suse.de>
18279         * window.c (Fdisplay_buffer): Use NILP.
18280         (Fset_window_scroll_bars): Likewise.
18282 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
18284         * window.c (window_min_size_2): New function.
18285         (window_min_size_1, size_window, Fdisplay_buffer)
18286         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
18287         windows without mode- or header-lines when window-min-height is
18288         too small.
18289         (size_window): Reset nodelete_p after testing it, following an
18290         earlier note by Kim F. Storm.
18291         (display_buffer): Do not set split_height_threshold to twice the
18292         value of window_min_height to avoid changing the value of a
18293         customizable variable.  Rather explicitly check whether the
18294         height of the window that shall be splitted is at least as large
18295         as split_height_threshold.
18296         (Fwindow_full_width_p): New defun.
18297         (syms_of_window): Defsubr it.
18299         * window.h: Add EXFUN for Fwindow_full_width_p.
18301 2007-07-14  Jason Rumney  <jasonr@gnu.org>
18303         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
18305 2007-07-14  Richard Stallman  <rms@gnu.org>
18307         * eval.c (maybe_call_debugger): New function.
18308         (find_handler_clause): Use maybe_call_debugger.
18309         Call it when the handler says `debug'.
18310         Eliminate DEBUGGER_VALUE_PTR.
18311         (Fsignal): Eliminate debugger_value.
18312         (Qdebug): New variable.
18313         (syms_of_eval): Initialize it.
18315 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
18317         * eval.c (Fprogn):
18318         * keyboard.c (Ftrack_mouse):
18319         * print.c (Fwith_output_to_temp_buffer):
18320         * window.c (Fsave_window_excursion): Doc fix.
18322 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
18324         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
18326 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
18328         * process.h (struct Lisp_Process): Turn slots infd, outfd,
18329         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
18330         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
18331         read_output_delay, and read_output_skip from Lisp_Objects to ints.
18332         Remove unused encoding_carryover.
18333         * process.c: Adjust all functions accordingly.
18335 2007-07-12  Richard Stallman  <rms@gnu.org>
18337         * term.c: Include unistd.h only if HAVE_UNISTD_H.
18339 2007-07-11  Jason Rumney  <jasonr@gnu.org>
18341         * makefile.w32-in (LIBS): Include OLE32.
18343         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
18344         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
18346 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
18348         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
18349         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
18350         from a Lisp_Object into a bare pointer.
18351         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
18352         Adjust the code correspondingly.
18354         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
18356         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
18357         (term_show_mouse_face): Remove unused var `j'.
18358         (handle_one_term_event): Remove unused vars `i' and `j'.
18359         Don't cast return value of ttyname since it's not necessary.
18361 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
18363         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
18364         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
18366         * fns.c (map_char_table): Use an array of int for `indices' rather than
18367         an array of Lisp_Objects (which are only ever integers anyway).
18368         (Fmap_char_table): Update caller.
18369         * lisp.h: Update prototype.
18370         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
18371         * fontset.c (Ffontset_info):
18372         * casetab.c (set_case_table): Update callers.
18374         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
18376         * keymap.c (struct accessible_keymaps_data)
18377         (struct where_is_internal_data): New structures.
18378         (accessible_keymaps_1, where_is_internal_1): Use them to change
18379         interface to adhere to the one used by map_keymap.
18380         (Faccessible_keymaps, where_is_internal): Use map_keymap.
18381         (accessible_keymaps_char_table, where_is_internal_2): Remove.
18383         * keymap.h (map_keymap_function_t): More informative prototype.
18385 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
18387         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
18388         (looking_at_1): Don't change search_regs and last_thing_searched
18389         if `inhibit-changing-match-data' is non-nil.
18390         (string_match_1, search_buffer, set_search_regs): Likewise.
18391         (syms_of_search): Add Lisp level definition for
18392         `inhibit-changing-match-data' and set it to nil.
18393         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
18394         start and end of the match, instead of using values in search_regs.
18396 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
18398         * minibuf.c (Fcompleting_read): New value `confirm-only'
18399         for `require-match'.
18401 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
18403         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
18404         part of the 2007-06-27 change to syms_of_fileio.
18406 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18408         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
18409         Check WINDOWP before using XWINDOW.  Consolidate return statements.
18411 2007-06-27  Richard Stallman  <rms@gnu.org>
18413         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18415 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
18417         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
18419 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18421         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
18422         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
18423         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
18424         (_free_internal, memalign): Use them.
18425         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
18426         Initialize to PTHREAD_MUTEX_INITIALIZER.
18427         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
18428         (morecore_nolock): Rename from morecore.  All uses changed.
18429         Use only nolock versions of internal allocation functions.
18430         (_malloc_internal_nolock, _realloc_internal_nolock)
18431         (_free_internal_nolock): New functions created from
18432         _malloc_internal, _realloc_internal, and _free_internal.
18433         (_malloc_internal, _realloc_internal, _free_internal): Use them.
18434         Copy hook value to automatic variable before its use.
18435         (memalign): Copy hook value to automatic variable before its use.
18437 2007-06-26  Kenichi Handa  <handa@m17n.org>
18439         * coding.c (Ffind_operation_coding_system): Docstring improved.
18440         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
18442 2007-06-25  David Kastrup  <dak@gnu.org>
18444         * keymap.c (Fcurrent_active_maps): Add `position' argument.
18445         (Fwhere_is_internal): Adjust call to `current-active-maps' to
18446         cater for additional parameter.
18448         * keymap.h: Adjust number of parameters to `current-active-maps'.
18450         * doc.c (Fsubstitute_command_keys): Adjust call of
18451         `current-active-maps'.
18453 2007-06-25  David Kastrup  <dak@gnu.org>
18455         * callint.c (Fcall_interactively): Make the parsing of interactive
18456         specs somewhat more readable.
18458 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18460         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
18461         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
18462         if extended background has already been filled.
18464 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18466         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
18467         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
18469         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
18470         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
18471         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
18472         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
18473         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
18474         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
18475         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
18476         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
18477         Run timers during dialog popup.
18478         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
18480 2007-06-21  Jason Rumney  <jasonr@gnu.org>
18482         * image.c (convert_mono_to_color_image): Swap fore and background.
18484 2007-06-20  Jason Rumney  <jasonr@gnu.org>
18486         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
18487         (w32_free_bdf_font): Unmap memory not handle.
18489 2007-06-20  Sam Steingold  <sds@gnu.org>
18491         * gmalloc.c (__morecore): Fix the declaration to comply with the
18492         definition.
18494 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
18496         * w32term.c (w32_delete_display): Remove leftover declaration.
18497         (w32_define_cursor, w32_initialize): Make static.
18499         * w32.c (_wsa_errlist): Fix typo in error message.
18500         (init_environment): Ignore any environment variable from the
18501         registry having a null value.
18503 2007-06-20  Glenn Morris  <rgm@gnu.org>
18505         * Makefile.in (LIBGIF): Default to -lgif.
18507 2007-06-17  Jason Rumney  <jasonr@gnu.org>
18509         * w32menu.c (add_menu_item): Don't use multibyte string functions on
18510         unicode strings.
18512 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
18514         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
18515         Fix typo in docstring.
18517 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
18519         * w32menu.c (add_menu_item): Escape `&' characters in menu items
18520         and their keybindings.
18522 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
18524         * composite.c (update_compositions): Fix last fix.
18526 2007-06-14  Jason Rumney  <jasonr@gnu.org>
18528         * w32.c (get_process_times_fn): New function pointer.
18529         (globals_of_w32): Intialize it if present in kernel32.dll.
18530         (w32_get_internal_run_time): New function.
18532         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
18534 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
18536         * composite.c (update_compositions): Check the validness of
18537         compositions.
18539 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18541         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
18542         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
18544         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
18545         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
18547         * macgui.h (USE_MAC_TOOLBAR): New define.
18549         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18550         Return immediately unless popup is activated.
18552         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
18553         background to scroll bar gap.
18554         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
18555         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
18556         scroll bars on frame edge.  Check fringe background extension.
18557         Don't clear extended fringe background area.
18558         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
18559         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
18560         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
18561         [USE_MAC_TOOLBAR]: New macros.
18562         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
18563         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
18564         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
18565         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
18566         [USE_MAC_TOOLBAR]: New functions.
18567         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
18568         manually if previous repositioning has failed.
18569         (mac_handle_keyboard_event): Use precomputed event kind.
18570         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
18571         as tool bar item click.  Handle mouse movement over tool bar items.
18573         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
18574         toolbar_win_gravity.
18575         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
18576         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
18577         Add externs.
18579         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
18580         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
18582 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
18584         * image.c (search_image_cache): Remove unused variable.
18586 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
18588         * xfns.c, xmenu.c: Link to xaw3d if available.
18590 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18592         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
18593         frame_foreground and frame_background.
18595         * image.c (lookup_image): Save frame foreground and background colors.
18596         (search_image_cache): Check if saved and current frame colors match.
18598 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
18600         * regex.c (regex_compile): Remove the `regnum' counter.
18601         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
18603 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
18605         * term.c: Include intervals.h to declare Fget_text_property.
18607 2007-06-10  Jason Rumney  <jasonr@gnu.org>
18609         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
18611 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
18613         * callint.c (Fcall_interactively):
18614         * editfns.c (Fdelete_and_extract_region):
18615         * fileio.c (Fread_file_name):
18616         * fns.c (Fmapconcat):
18617         * keyboard.c (cmd_error_internal):
18618         * keymap.c (Fkey_description):
18619         * lread.c (openp):
18620         * minibuf.c (read_minibuf):
18621         * search.c (wordify):
18622         * sunfns.c (sel_read):
18623         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
18624         * xfns.c (x_default_scroll_bar_color_parameter):
18625         * xmenu.c (menu_help_callback):
18626         * xselect.c (Fx_get_atom_name):
18627         * xterm.c (x_term_init): Use empty_unibyte_string.
18629 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
18631         * alloc.c (init_strings): Initialize canonical empty strings.
18632         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
18633         canonical empty string when the requested size is 0.
18635         * emacs.c (empty_unibyte_string): Rename from empty_string.
18636         (empty_multibyte_string): New canonical empty string.
18637         (syms_of_emacs): Don't initialize empty_string.
18639         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
18640         string, if appropriate.
18641         (empty_unibyte_string, empty_multibyte_string): New externs.
18642         (empty_string): Remove extern.
18644         * lread.c (syms_of_lread): Use empty_unibyte_string.
18646 2007-06-07  Jason Rumney  <jasonr@gnu.org>
18648         * s/ms-w32.h: Don't define HAVE_TZNAME.
18650         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
18652 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18654         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
18656         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
18657         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
18659         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
18660         Don't call next handler.
18661         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
18662         Remove argument.  Install handler to application.
18663         (set_frame_menubar): Don't change deep_p.
18664         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
18665         FRAME_OUTER_TO_INNER_DIFF_Y.
18666         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18667         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18668         [HAVE_DIALOGS]: New macros.
18669         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
18670         Use them.
18671         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
18673         * macselect.c [MAC_OSX] (install_service_handler): Rename from
18674         init_service_handler.  All callers changed.  Return OSStatus value.
18676         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
18677         All callers changed so as not to call SetPortWindowPort.
18678         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
18679         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
18680         mac_draw_string_common.
18681         (mac_draw_image_string_qd): Likewise.
18682         (mac_draw_string_common): Use them.  Add INLINE.
18683         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
18684         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
18685         GetGlobalMouse.
18686         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
18687         and FRAME_OUTER_TO_INNER_DIFF_Y.
18688         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
18689         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
18690         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
18691         repositioning window to mac_handle_window_event.
18692         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
18693         saving window location to mac_handle_window_event
18694         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
18695         (install_menu_target_item_handler): Remove argument in extern.
18696         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
18697         Also accept command events.
18698         (do_keystroke): New function created from XTread_socket.
18699         (init_command_handler): Remove functions.
18700         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
18701         and save window location by kEventWindowShowing and kEventWindowHiding
18702         handlers here.  Don't call next handler for window state change and
18703         focus events.
18704         (mac_handle_application_event, mac_handle_keyboard_event)
18705         [TARGET_API_MAC_CARBON]: New functions.
18706         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
18707         kEventWindowShowing and kEventWindowHiding events.  Move installation
18708         of mouse, font, text input and menu target item handlers to
18709         install_application_handler.
18710         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
18711         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18712         New function.
18713         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18714         Register it.
18715         (XTread_socket) [TARGET_API_MAC_CARBON]:
18716         Consolidate SendEventToEventTarget calls.
18717         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
18718         Move application activation handler to mac_handle_application_event.
18719         Move keyboard handler to mac_handle_keyboard_event.
18720         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
18721         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
18722         init_command_handler.  Call install_application_handler.
18724         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
18725         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
18727 2007-06-07  Glenn Morris  <rgm@gnu.org>
18729         * emacs.c (main): Use `emacs-copyright' in --version output.
18731 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
18733         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
18735 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18737         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
18739         * macgui.h: Replace WindowPtr with WindowRef.
18741         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18742         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
18743         Replace ControlHandle with ControlRef.
18744         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
18746         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
18747         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
18748         Replace ControlHandle with ControlRef.
18749         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
18750         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
18752         * macterm.h (struct scroll_bar): Rename member control_handle_low
18753         and control_handle_high to control_ref_low and control_ref_high.
18754         All uses changed.
18755         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
18756         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
18757         respectively.  All uses changed.
18758         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
18759         (install_window_handler, remove_window_handler): Replace WindowPtr
18760         with WindowRef in externs.
18762 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
18764         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
18766 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
18768         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
18770         * frame.c (Fmouse_position, Fmouse_pixel_position):
18771         Condition on HAVE_GPM too.
18773         * term.c (term_mouse_highlight): Remove unused variables.
18774         (Fterm_open_connection): Set gpm_zerobased to 1.
18775         (term_mouse_movement, term_mouse_click, handle_one_term_event):
18776         Use zero based co-ordinates.
18777         (handle_one_term_event): Report a drag as mouse movement too.
18779         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
18781 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
18783         * image.c (search_image_cache): New function.  Require background
18784         color match if background color is unspecified in the image spec.
18785         (uncache_image, lookup_image): Use it.
18787 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
18789         * window.c (Fshrink_window): Reflow docstring.
18791 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
18793         * Version 22.1 released.
18795 2007-06-01  Richard Stallman  <rms@gnu.org>
18797         * xfns.c (x_encode_text): Add GCPRO.
18799 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18801         * xfns.c (x_set_name_internal): Save encoded name before
18802         x_encode_text in case string data is relocated.
18804 2007-05-31  Richard Stallman  <rms@gnu.org>
18806         * buffer.c (syms_of_buffer): Doc fix.
18808 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
18810         * sysdep.c (init_sys_modes): Add rather than replace with
18811         O_NONBLOCK.
18813         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
18814         term_mouse_moveto.
18816         * termhooks.h (term_mouse_moveto): New extern.
18818         * term.c (mouse_face_window): Rename...
18819         (Qmouse_face_window): ...to this.
18820         (term_show_mouse_face, term_clear_mouse_face)
18821         (term_mouse_highlight): Use Qmouse_face_window.
18822         (term_mouse_moveto): New function.
18823         (term_mouse_position): Make it work.
18824         (syms_of_term): Uncomment assignment to mouse_position_hook.
18825         Staticpro Qmouse_face_window.
18827 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18829         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
18830         around current_column call.
18832 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
18834         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
18835         * xdisp.c (next_element_from_buffer):
18836         * window.c (delete_window):
18837         * term.c (term_mouse_highlight):
18838         * msdos.c (getdefdir):
18839         * macterm.c (mac_create_bitmap_from_bitmap_data)
18840         (init_font_name_table):
18841         * fns.c (Fsxhash):
18842         * data.c (Fmake_local_variable):
18843         * ccl.c (ccl_driver): Likewise.
18845 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18847         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
18848         Call mac_wakeup_from_rne on window size change.
18850 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
18852         * image.c (uncache_image): Fix typo.
18854 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
18856         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
18858 2007-05-22  Richard Stallman  <rms@gnu.org>
18860         * xterm.c (x_connection_closed): Remove NO_RETURN.
18862 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
18864         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
18866 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
18868         * image.c (uncache_image): New function.
18869         (Fimage_refresh): New function.
18871 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
18873         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
18875 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
18877         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
18878         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
18880 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
18882         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
18883         conditional on [HAVE_GPM_H].
18885 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
18887         * syntax.c (skip_chars): Update syntax-table only after we checked that
18888         the new location is valid.
18890 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18892         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
18893         mac_get_window_bounds.
18895 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
18897         * Makefile.in (LIBGPM): Allow it to be set from configure.
18898         If set then link Emacs with it.
18900         * config.in: Regenerate.
18902         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
18903         New externs.
18905         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
18906         Include gpm.h.
18907         (handle_one_term_event, term_gpm): New externs.
18909         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
18910         and allow it to be interrupted by SIGIO.
18912         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
18913         (wait_reading_process_output): Wait on gpm_fd too.
18914         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
18915         (add_gpm_wait_descriptor_called_flag): New variable.
18916         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
18918         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
18919         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
18920         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
18921         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
18922         (make_lispy_event): Add case GPM_CLICK_EVENT.
18923         (read_avail_input): Handle mouse input.
18925         * term.c (write_glyphs_with_face): New function.
18926         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
18927         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
18928         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
18929         (mouse_face_face_id, term_gpm, pos_x, pos_y)
18930         (last_mouse_x, last_mouse_y): New variables.
18931         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
18932         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
18933         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
18934         (Fterm_close_connection): New functions.
18935         (term_init): Initialise mouse_face_window.
18937 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
18939         * xdisp.c (redisplay_window): If first window line is a
18940         continuation line, recompute the new window start instead of
18941         recentering.
18943 2007-05-18  Glenn Morris  <rgm@gnu.org>
18945         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
18946         Suggested by Alfred M. Szmidt <ams@gnu.org>.
18948 2007-05-17  Glenn Morris  <rgm@gnu.org>
18950         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
18952 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18954         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
18955         dead key repeat and up events.
18957 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
18959         * image.c (pbm_load): Check image size for monochrome pbm.
18961 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
18963         * xterm.c (XTread_socket): Revert last change.
18965 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
18967         * image.c (pbm_load): Correctly check image size for greyscale pbm.
18969         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
18971 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
18973         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
18974         mixup (YAILOM).
18976 2007-05-07  Andreas Schwab  <schwab@suse.de>
18978         * keymap.c (Flookup_key): Fix typo in last change.
18980 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
18982         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
18983         mapping for unibyte strings.
18985 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18987         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
18988         (Fx_popup_dialog) [MAC_OSX]: Likewise.
18990 2007-04-29  Richard Stallman  <rms@gnu.org>
18992         * insdel.c (replace_range): For undo, record insertion first.
18994 2007-04-29  Andreas Schwab  <schwab@suse.de>
18996         * lisp.h (VECSIZE): Use OFFSETOF.
18998 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19000         * xdisp.c (try_window_reusing_current_matrix): Fix number of
19001         disabled lines.
19003 2007-04-28  Richard Stallman  <rms@gnu.org>
19005         * lread.c (read_escape): In a string, \s is always space.
19007 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
19009         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19011         * gtkutil.c (xg_update_menubar, create_menus): Create empty
19012         submenu for menu bar items.
19014 See ChangeLog.10 for earlier changes.
19016 ;; Local Variables:
19017 ;; coding: utf-8
19018 ;; add-log-time-zone-rule: t
19019 ;; End:
19021     Copyright (C) 2007, 2008, 2009  Free Software Foundation, Inc.
19023   This file is part of GNU Emacs.
19025   GNU Emacs is free software: you can redistribute it and/or modify
19026   it under the terms of the GNU General Public License as published by
19027   the Free Software Foundation, either version 3 of the License, or
19028   (at your option) any later version.
19030   GNU Emacs is distributed in the hope that it will be useful,
19031   but WITHOUT ANY WARRANTY; without even the implied warranty of
19032   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19033   GNU General Public License for more details.
19035   You should have received a copy of the GNU General Public License
19036   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
19038 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40