Merge from trunk
[emacs.git] / src / ChangeLog
blob0383e629a25b11c041adb904648ead36cea745cf
1 2011-01-11  Tassilo Horn  <tassilo@member.fsf.org>
3         * image.c (imagemagick_load_image, Finit_image_library): Free
4         intermediate image after creating a MagickWand from it.  Terminate
5         MagickWand environment after image loading.
7 2011-01-10  Michael Albinus  <michael.albinus@gmx.de>
9         * dbusbind.c (Fdbus_register_service): Raise an error in case of
10         unexpected return values.
11         (Fdbus_register_method): Remove connection initialization.
13 2011-01-10  Jan Moringen  <jan.moringen@uni-bielefeld.de>
15         * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
16         used by Fdbus_register_service.
17         (QCdbus_request_name_replace_existing): Likewise.
18         (QCdbus_request_name_do_not_queue): Likewise.
19         (QCdbus_request_name_reply_primary_owner): Likewise.
20         (QCdbus_request_name_reply_in_queue): Likewise.
21         (QCdbus_request_name_reply_exists): Likewise.
22         (QCdbus_request_name_reply_already_owner): Likewise.
23         (Fdbus_register_service): New function.
24         (Fdbus_register_method): Use Fdbus_register_service to do the name
25         registration.
26         (syms_of_dbusbind): Add symbols dbus-register-service,
27         :allow-replacement, :replace-existing, :do-not-queue,
28         :primary-owner, :existing, :in-queue and :already-owner.
30 2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
32         * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
33         when removing extra buttons.
35 2011-01-08  Chong Yidong  <cyd@stupidchicken.com>
37         * fns.c (Fyes_or_no_p): Doc fix.
39 2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
41         * fns.c (Fyes_or_no_p): Add usage.
43 2011-01-08  Glenn Morris  <rgm@gnu.org>
45         * makefile.w32-in ($(EMACS)):
46         * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
48         * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
49         * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
51 2011-01-07  Andreas Schwab  <schwab@linux-m68k.org>
53         * image.c (imagemagick_load_image): Fix some resource leaks and
54         error handling.
56 2011-01-07  Chong Yidong  <cyd@stupidchicken.com>
58         * fns.c (Fyes_or_no_p): Accept format string args.
60 2011-01-07  Glenn Morris  <rgm@gnu.org>
62         * emacs.c (no_site_lisp): New int.
63         (USAGE1): Add --no-site-lisp, mention -Q uses it.
64         (main): Set no_site_lisp.
65         (standard_args): Add --no-site-lisp.
66         * lisp.h (no_site_lisp): New int.
67         * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
68         directories to Vload_path.
70 2011-01-05  Andreas Schwab  <schwab@linux-m68k.org>
72         * alloc.c (mark_stack): Use __builtin_unwind_init if available.
74 2011-01-04  Jan Moringen  <jan.moringen@uni-bielefeld.de>
76         * dbusbind.c (Fdbus_register_method): Added optional parameter
77         dont_register_service.  Updated docstring accordingly.
79 2011-01-04  Glenn Morris  <rgm@gnu.org>
81         * emacs.c (emacs_copyright): Update short copyright year to 2011.
83 2011-01-03  Eli Zaretskii  <eliz@gnu.org>
85         * image.c (png_jmpbuf): Remove definition.
86         (my_png_error, png_load): Don't use png_jmpbuf.
88 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
90         * keyboard.c (Vselect_active_regions): Doc fix.  (Bug#7702)
92 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
94         * image.c <Qlibpng_version>: New variable.
95         (syms_of_image): Intern and staticpro it.  Set its value to the
96         version of PNG library we were compiled with.
97         (my_png_error, png_load): Avoid GCC warnings about direct access
98         to png_ptr->jmpbuf.  (Bug#7716)
99         (png_jmpbuf): New macro.
100         (my_png_error, png_load): Use it instead of #ifdef'ing according
101         to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
103 2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
105         * .gdbinit (xgetptr): Fix the union+lsb case.
106         (xbacktrace): Fix the union case.
108 2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
110         * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
111         different from selected-window's.
113 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
115         * keyboard.c (parse_menu_item): Prepend "  " to the key sequence
116         equivalent of a menu item when the key sequence is given by the
117         `:keys' attribute.  (Bug#7662)
119         * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
120         the basic faces are supported.
122 2011-01-02  Jan Djärv  <jan.h.d@swipnet.se>
124         * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
126 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
128         * xdisp.c (Fformat_mode_line): Fix last change.
130 2011-01-02  Chong Yidong  <cyd@stupidchicken.com>
132         * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
133         faces (Bug#7587).
135 2011-01-02  Eli Zaretskii  <eliz@gnu.org>
137         * fileio.c (Fexpand_file_name): One more doc fix.
139 2011-01-01  Chong Yidong  <cyd@stupidchicken.com>
141         * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
142         image or label in the container.
143         (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
144         (xg_show_toolbar_item): Function deleted.
145         (xg_tool_item_stale_p): New function.
146         (update_frame_tool_bar): Calculate tool-bar style once per call.
147         Instead of hiding text labels, omit them.  Don't use
148         xg_show_toolbar_item; create new GtkToolItems from scratch if
149         necessary, instead of trying to re-use them.  This avoids an
150         annoying animation when changing tool-bars.
152 2010-12-31  Jan Djärv  <jan.h.d@swipnet.se>
154         * nsfns.m (ns_set_name_as_filename): Always use buffer name for
155         title and buffer filename only for RepresentedFilename.
156         Handle bad UTF-8 in buffer name (Bug#7517).
158 2010-12-30  Jan Djärv  <jan.h.d@swipnet.se>
160         * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
162         * nsfns.m (ns_set_name_iconic): Remove.
163         (ns_set_name_internal): New function (Bug#7517).
164         (Vicon_title_format): Extern declare.
165         (ns_set_name): Call ns_set_name_internal.
166         (x_explicitly_set_name): Remove call to ns_set_name_iconic.
167         (x_implicitly_set_name): Ditto.
168         (x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
169         (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
171 2010-12-29  Štěpán Němec  <stepnem@gmail.com>  (tiny change)
173         * window.c (syms_of_window): Add missing defsubr for
174         window-use-time.
176 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
178         * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
179         * xterm.c (x_alloc_lighter_color_for_widget): Restore.
181 2010-12-27  Andreas Schwab  <schwab@linux-m68k.org>
183         * buffer.c: Remove unused declarations.
184         * buffer.h: Likewise.
185         * charset.h: Likewise.
186         * composite.h: Likewise.
187         * dispextern.h: Likewise.
188         * dispnew.c: Likewise.
189         * font.h: Likewise.
190         * fontset.c: Likewise.
191         * fontset.h: Likewise.
192         * intervals.h: Likewise.
193         * keymap.h: Likewise.
194         * lisp.h: Likewise.
195         * syntax.c: Likewise.
196         * syntax.h: Likewise.
197         * termhooks.h: Likewise.
198         * window.h: Likewise.
199         * xsettings.h: Likewise.
200         * xterm.c: Likewise.
201         * xterm.h: Likewise.
203         * chartab.c (sub_char_table_ref): Make static.
204         * dispnew.c (line_hash_code, required_matrix_height)
205         (required_matrix_width): Likewise.
206         * eval.c (interactive_p, apply_lambda): Likewise.
207         * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
208         Likewise.
209         * font.c (QCadstyle, QCregistry, font_make_spec)
210         (font_parse_fcname, font_encode_char, font_at): Likewise.
211         * frame.c (x_frame_get_arg): Likewise.
212         * keymap.c (get_keyelt): Likewise.
213         * lread.c (read_filtered_event): Likewise.
214         * print.c (write_string_1): Likewise.
215         * window.c (delete_window, window_height, window_width)
216         (foreach_window): Likewise.
217         * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
218         * xterm.c (x_scroll_bar_clear, xembed_set_info)
219         (xembed_send_message): Likewise.
221         * eval.c (run_hook_list_with_args): Delete.
222         * font.c (font_unparse_gtkname, font_update_lface): Likewise.
223         * terminal.c (get_terminal_param): Likewise.
224         * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
226         * scroll.c: Fix comment.
228         * dispnew.c (add_window_display_history)
229         (add_frame_display_history, glyph_row_slice_p)
230         (find_glyph_row_slice, flush_stdout)
231         (check_matrix_pointer_lossage, matrix_row)
232         (check_matrix_invariants, check_window_matrix_pointers)
233         (check_matrix_pointers, window_to_frame_vpos)
234         (window_to_frame_hpos): Prototize.
235         * textprop.c (erase_properties): Likewise.
237 2010-12-22  Stefan Monnier  <monnier@iro.umontreal.ca>
239         * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
240         (print_preprocess): Fix handling of uninterned symbols in last change.
242         * print.c (print, print_preprocess, print_object): Use a hash table
243         rather than a linear table for Vprint_number_table.
245 2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
247         * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
249 2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
251         * keyboard.c (Vtool_bar_separator_image_expression): New variable.
252         (parse_tool_bar_item): Use it to obtain image separators for
253         displays not using native tool-bar separators.
255         * xdisp.c (build_desired_tool_bar_string): Don't handle separators
256         specially, since this is now done in parse_tool_bar_item.
258 2010-12-19  Stefan Monnier  <monnier@iro.umontreal.ca>
260         Minor clean up to silence some gcc warnings.
261         * window.c (Fset_window_buffer):
262         * xterm.c (x_set_frame_alpha): Restructure code to silence
263         compiler warning.
264         (handle_one_xevent): Remove unused var `p'.
265         (do_ewmh_fullscreen): Remove unused var `lval'.
266         (xembed_set_info): Remove unused var `atom'.
267         * textprop.c (Fremove_list_of_text_properties): Add braces to silence
268         compiler warning.
269         * fontset.c (fontset_id_valid_p, dump_fontset):
270         * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
271         * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
272         * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
273         label only when it's used.
274         * image.c (x_create_bitmap_from_xpm_data):
275         * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
276         its callers.
277         * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
278         `consumed_chars'.
279         (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
280         (decode_coding_emacs_mule): Remove unused label `retry'.
281         (detect_eol): Add parens to silence compiler warning.
282         * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
283         it's used to silence the compiler.
284         (make_number): Modernize k&r declaration.
285         (mark_char_table): Add parens to silence compiler warning.
287 2010-12-17  Chong Yidong  <cyd@stupidchicken.com>
289         * keyboard.c (parse_tool_bar_item): Allow menu separators in
290         tool-bar maps.
291         (menu_separator_name_p): New function, from gtkutil.c.
292         (separator_names): Move from gtkutil.c.
294         * keyboard.h (menu_separator_name_p): Add prototype.
296         * gtkutil.c (XG_BIN_CHILD): New macro.
297         (xg_get_menu_item_label, xg_update_menubar)
298         (xg_update_menu_item, xg_tool_bar_menu_proxy)
299         (xg_show_toolbar_item, update_frame_tool_bar): Use it.
300         (separator_names, xg_separator_p): Move to keyboard.c.
301         (create_menus, xg_update_submenu, update_frame_tool_bar):
302         Use menu_separator_name_p.
304         * nsmenu.m (name_is_separator): Function deleted.
305         (addItemWithWidgetValue): Use menu_separator_name_p.
307         * w32menu.c (name_is_separator): Function deleted.
308         (add_menu_item): Use menu_separator_name_p.
310 2010-12-16  Jan Djärv  <jan.h.d@swipnet.se>
312         * nsterm.m (ns_draw_window_cursor): If the cursor color is the
313         same as the background, use the face forground as cursor.
315 2010-12-13  Eli Zaretskii  <eliz@gnu.org>
317         * fileio.c (Fexpand_file_name): Doc fix.  (Bug#7617)
319 2010-12-13  Eli Zaretskii  <eliz@gnu.org>
321         * xdisp.c (string_pos_nchars_ahead, c_string_pos)
322         (face_before_or_after_it_pos, next_element_from_string)
323         (next_element_from_c_string, produce_stretch_glyph): Remove unused
324         calculations of maximum string length before calling
325         string_char_and_length and STRING_CHAR_AND_LENGTH.
326         (string_char_and_length): Update commentary: MAXLEN is no longer
327         needed.
329 2010-12-13  Jan Djärv  <jan.h.d@swipnet.se>
331         * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
332         as (Qsave_session arg).
334         * xsmfns.c (smc_interact_CB): Set arg to Qnil.
335         (smc_die_CB): Make an event with arg Qt.
336         (Fhandle_save_session): If event has Qt as argument,
337         call Fkill_emacs (Bug#7552).
339 2010-12-13  Chong Yidong  <cyd@stupidchicken.com>
341         * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
343 2010-12-13  Jan Djärv  <jan.h.d@swipnet.se>
345         * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
347 2010-12-13  Chong Yidong  <cyd@stupidchicken.com>
349         * dispextern.h (struct it): New member overlay_strings_charpos.
351         * xdisp.c (next_overlay_string, load_overlay_strings): Record the
352         charpos where we computed n_overlay_strings.
353         (next_overlay_string): Load overlay strings at recorded position,
354         which may not be the same as the iterator's charpos (Bug#7016).
356 2010-12-13  Chong Yidong  <cyd@stupidchicken.com>
358         * xdisp.c (try_scrolling): Avoid infloop if the first line is
359         obscured due to a vscroll (Bug#7537).
361 2010-12-13  Jan Djärv  <jhd@zeplinf.localdomain>
363         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
365         * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
366         Use FRAME_TOOLBAR_HEIGHT.
367         (x_set_offset): Handle XNegative and YNegative in
368         f->size_hint_flags (Bug#7510).
370 2010-12-11  Eli Zaretskii  <eliz@gnu.org>
372         * w32fns.c (Fx_show_tip): Call try_window with last argument
373         TRY_WINDOW_IGNORE_FONTS_CHANGE.  Delete the TODO ifdef: problem
374         solved.  Round up the tip height to an integral multiple of the
375         frame's line height.  Add FRAME_COLUMN_WIDTH to the tip width.
376         (Bug#7398)
378 2010-12-08  Glenn Morris  <rgm@gnu.org>
380         * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
382 2010-12-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
384         * xml.c (parse_region): Ignore blank HTML nodes.
385         (make_dom): Return CDATA sections (like <style>foo</style>) as
386         text nodes.
388 2010-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
390         * lread.c (read1): Allow newstyle unquote outside of backquote.
391         Disallow old-style backquotes inside new-style backquotes.
392         Don't count unquotes to figure out when we're "syntactically inside
393         but semantically outside of a backquote" any more.
394         Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
395         to all contexts.
397 2010-12-05  Chong Yidong  <cyd@stupidchicken.com>
399         * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
401 2010-12-04  Andreas Schwab  <schwab@linux-m68k.org>
403         * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
404         (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
405         * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
407 2010-12-03  Andreas Schwab  <schwab@linux-m68k.org>
409         * lisp.h (union Lisp_Object): Explicitly declare signedness of
410         bit-field.
411         (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
412         * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
413         * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
414         * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
415         * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
416         * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
417         * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
418         * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
419         * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
420         * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
421         * m/hp800.h: Remove file.
422         * m/mips.h: Remove file.
424 2010-12-03  Jan Djärv  <jan.h.d@swipnet.se>
426         * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
427         with cursor color and draw a rectangle around the image (Bug#7412).
429 2010-12-03  Andreas Schwab  <schwab@linux-m68k.org>
431         * frame.c (x_set_font): Remove unused variable.
433 2010-12-02  Jan Djärv  <jan.h.d@swipnet.se>
435         * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
437         * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
438         drawing text under filled box cursor (Bug#7479).
440 2010-11-27  Kenichi Handa  <handa@m17n.org>
442         * charset.c (emacs_mule_charset): Make it an array of charset ID;
443         i.e. integer.
444         (Fdefine_charset_internal): Adjust for the above change.
445         (init_charset_once): Likewise.
447         * charset.h (emacs_mule_charset): Adjust the prototype.
448         Delete duplicated extern.
450         * coding.c (emacs_mule_char): Adjust for the change of
451         emacs_mule_charset.
453         * lread.c (read_emacs_mule_char): Adjust for the change of
454         emacs_mule_charset.
456 2010-11-27  Eli Zaretskii  <eliz@gnu.org>
458         * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
459         of w32api >= 3.15.  (Bug#6989)  (Bug#7452)
461 2010-11-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
463         * alloc.c (mark_terminals): Ensure that the image cache is marked
464         even if the terminal object was marked earlier (Bug#6301).
466 2010-11-21  Chong Yidong  <cyd@stupidchicken.com>
468         * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
470 2010-11-27  Jan Djärv  <jan.h.d@swipnet.se>
472         * gtkutil.c (menubar_map_cb): New function (Bug#7425).
473         (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
474         Use 23 as menubar height if 0. (Bug#7425).
476 2010-11-26  Eli Zaretskii  <eliz@gnu.org>
478         * xdisp.c (set_message_1): Force paragraph direction in echo area
479         be left-to-right.
481         * keyboard.c (make_lispy_position): Put a meaningful value in yret
482         when the click is on the header or mode line.
484 2010-11-25  Eli Zaretskii  <eliz@gnu.org>
486         * xdisp.c (set_cursor_from_row): Don't forget to consider the
487         `cursor' property of the first character in overlay strings.
488         (Bug#7474)  (Bug#7481)
490 2010-11-24  Jan Djärv  <jan.h.d@swipnet.se>
492         * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
493         (NSLeftAlternateKeyMask): New defines.
494         (keyDown): Parse left and right keys separately (Bug#7458).
495         Compare Left key masks exactly (Bug#7458).
497 2010-11-23  Eli Zaretskii  <eliz@gnu.org>
499         * intervals.c (temp_set_point_both): Define before calling, to
500         avoid GCC warnings.
502 2010-11-23  Dan Nicolaescu  <dann@ics.uci.edu>
504         * nsmenu.m: Use #include <config.h> instead of "config.h".
506         * term.c (Qglyphless_char,last_glyphless_glyph_frame)
507         (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
508         Move declarations ...
509         * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
510         (last_glyphless_glyph_face_id. last_glyphless_glyph_merged_face_id):
511         ... here.
513         * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
514         (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
515         (gdb_pvec_type):
516         * print.c (print_output_debug_flag):
517         * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
518         (safe_debug_print): New declaration.
520         * xterm.c:
521         * systty.h:
522         * sound.c: Include <sys/ioctl.h> unconditionally.
524 2010-11-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
526         * alloc.c (mark_maybe_object): Return early if given a Lisp
527         integer (Bug#6301).
529 2010-11-21  Ken Brown  <kbrown@cornell.edu>
531         * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
533 2010-11-21  Jan Djärv  <jan.h.d@swipnet.se>
535         * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
536         Define (Bug#7458).
537         (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
538         (EV_MODIFIERS): Check for NSRightCommandKeyMask and
539         NSRightControlKeyMask also (Bug#7458).
540         (keyDown): Ditto (Bug#7458).
541         (syms_of_nsterm): Defvar ns-right-command-modifier and
542         ns-right-control-modifier (Bug#7458).
544 2010-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
546         * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
547         * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
549         * intervals.h (temp_set_point, temp_set_point_both):
550         * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
552 2010-11-20  Ken Brown  <kbrown@cornell.edu>
554         * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
556 2010-11-20  Eli Zaretskii  <eliz@gnu.org>
558         * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
559         \xNNNNNN for hex-code display of glyphless characters.
561 2010-11-20  Jan Djärv  <jan.h.d@swipnet.se>
563         * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
564         Set important to ! vert_only.
565         (xg_show_toolbar_item): Don't show label horizontally if
566         tool item isn't important.
567         (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
568         xg_make_tool_item, or update important on existing tool item.
570         * keyboard.c (QCvert_only): New variable.
571         (parse_tool_bar_item): Check for QCvert_only.
572         (syms_of_keyboard): Initialize QCvert_only.
574         * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
576 2010-11-20  Eli Zaretskii  <eliz@gnu.org>
578         * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
579         same in-line.
581 2010-11-20  Andreas Schwab  <schwab@linux-m68k.org>
583         * xfaces.c (lookup_face): Make static.
584         * dispnew.c (copy_row_except_pointers): Likewise.
585         * syntax.c (dec_bytepos): Likewise.
586         (inc_bytepos): Remove.
587         * dispextern.h (lookup_face): Remove declaration.
589 2010-11-19  Eli Zaretskii  <eliz@gnu.org>
591         * xdisp.c (set_cursor_from_row): Display cursor after all the
592         glyphs that come from an overlay.  Don't overstep the last glyph
593         when skipping glyphs from an overlay.  (Bug#6687)
595 2010-11-18  Dan Nicolaescu  <dann@ics.uci.edu>
597         * alloc.c (refill_memory_reserve): Move declaration ...
598         * lisp.h (refill_memory_reserve): ... here.
600         * strftime.c (_strftime_copytm): Add declaration.
602         * callproc.c (syms_of_callproc): Use intern_c_string.
604         Move declarations from .c files to .h files.
605         * process.c (timers_run):
606         * minibuf.c (quit_char):
607         * lread.c (read_emacs_mule_char):
608         * keyboard.c (minibuf_level, message_enable_multibyte)
609         (pending_malloc_warning):
610         * insdel.c (Vselect_active_regions, Vsaved_region_selection)
611         (Qonly): Remove declarations.
612         * lisp.h (pending_malloc_warning, Vsaved_region_selection)
613         (Vselect_active_regions):
614         * keyboard.h (timers_run):  Add declarations.
616         * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
617         (tm_diff): Convert definitions to standard C.
618         (extra_args_spec_iso): Remove, unused.
620 2010-11-18  Jan Djärv  <jan.h.d@swipnet.se>
622         * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
624         * config.in (HAVE_G_TYPE_INIT): New symbol.
626 2010-11-18  Eli Zaretskii  <eliz@gnu.org>
628         * lread.c (Fload): Mention `load-in-progress' and
629         `load-file-name'.  (Bug#7346)
631         * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
632         (kbd_buffer_store_event_hold, kbd_buffer_get_event)
633         (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
634         subprocesses.  Use buffer_free only ifdef subprocesses.
636         * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
637         the subprocesses version, not in the non-subprocesses one.
639         * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
641 2010-11-17  Eli Zaretskii  <eliz@gnu.org>
643         * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
644         lines on text-mode terminals.  (bug#7417)
646 2010-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
648         * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
649         (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
651 2010-11-17  Kenichi Handa  <handa@m17n.org>
653         * coding.c (Fset_terminal_coding_system_internal): Fix previous
654         change (set charset-ID list instead of charset-symbol list).
656 2010-11-16  Chong Yidong  <cyd@stupidchicken.com>
658         * keyboard.c (make_lispy_position): For text area clicks, record Y
659         pixel position relative to the text area, excluding header line.
660         Also change X and Y to Lisp_Objects, not pointers; don't return
661         coordinate values via pointers.  Pass ON_TEXT_AREA coordinate to
662         buffer_posn_from_coords counting from the start of the text area.
663         (Fposn_at_x_y, make_lispy_event): Callers changed.
665         * window.c (coordinates_in_window): Change X and Y to ints rather
666         than pointers; don't return coordinates via pointers.
667         (struct check_window_data): Change X and Y from pointers to ints.
668         (window_from_coordinates): Remove args WX and WY; don't return
669         coordinates via pointers.
670         (Fcoordinates_in_window_p, window_from_coordinates):
671         (check_window_containing, Fwindow_at): Callers changed.
672         (window_relative_x_coord): New function.
674         * window.h (window_from_coordinates, window_relative_x_coord):
675         Update prototypes.
677         * dispnew.c (buffer_posn_from_coords): Assume that X counts from
678         the start of the text area.
680         * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
681         call.  Use window_relative_x_coord.
682         (note_mouse_highlight): Change window_from_coordinates call.
684         * w32term.c (w32_read_socket):
685         * msdos.c (dos_rawgetc):
686         * xterm.c (handle_one_xevent): Likewise.
688 2010-11-16  Dan Nicolaescu  <dann@ics.uci.edu>
690         * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
691         (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
692         (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
693         Convert definitions to standard C.
694         * regex.c: Do not include <stdlib.h>, config.h does it.
695         Include unistd.h.
696         (xrealloc, init_syntax_once, re_match, regcomp, regexec)
697         (regerror, regfree): Convert definitions to standard C.
698         * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
699         (__mktime_internal): Convert definitions to standard C.
701 2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>
703         * w32proc.c:
704         * w32inevt.c:
705         * w32heap.c:
706         * w32.c: Remove config.h include guards.
708         * callproc.c (child_setup): Reorder code to simplify #ifdefs.
709         No code changes.
711         * process.c: Include <sys/ioctl.h> unconditionally,
712         keyboard.c already does it.
714         * keyboard.c (pending_malloc_warning): Add const to match
715         definition in alloc.c.
716         (Fset_input_interrupt_mode): Simplify #ifdefs.
718 2010-11-15  Dan Nicolaescu  <dann@ics.uci.edu>
720         Clean up systty.h macros.
721         * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
722         (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
723         definition in all uses.
724         (EMACS_TTY_TABS_OK): Remove, it has a single user.
725         * sysdep.c (discard_tty_input, child_setup_tty)
726         (init_sys_modes, tabs_safe_p, reset_sys_modes):
727         * emacs.c (shut_down_emacs):
728         * callproc.c (child_setup):
729         * term.c (dissociate_if_controlling_tty): Inline removed macros.
731         * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
733 2010-11-14  Chong Yidong  <cyd@stupidchicken.com>
735         * w32fns.c (Fx_create_frame):
736         * nsfns.m (Fx_create_frame): Don't check for the cursorColor
737         resource here; it's now done at startup.
739 2010-11-14  Jan Djärv  <jan.h.d@swipnet.se>
741         * xterm.c (set_wm_state): Add Qnil to final cons.
743         * xselect.c (x_send_client_event): Remove unused variables cons and
744         size.
746 2010-11-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
748         * keyboard.c (modify_event_symbol) : Add const to array elements of
749         arg NAME_TABLE.
750         (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
751         (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
752         (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
753         Add const to array elements.
754         (scroll_bar_parts): Make static.  Fix position of const.
756         * w32fns.c (lispy_function_keys): Add const to extern.
758         * w32inevt.c (lispy_function_keys): Likewise.
760 2010-11-14  Chong Yidong  <cyd@stupidchicken.com>
762         * xfns.c (Fx_create_frame): Don't check for the cursorColor
763         resource here; it's now done at startup.
765 2010-11-13  Dan Nicolaescu  <dann@ics.uci.edu>
767         * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
769         Fix compilation on Solaris.
770         * sysdep.c: Do not #include <term.h>.
771         (tputs): Add declaration, similar to what cm.c does.  (Bug#7178)
773         * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
775 2010-11-13  Jan Djärv  <jan.h.d@swipnet.se>
777         * xterm.c (set_wm_state): Don't put Atom in cons, call
778         make_fixnum_or_float on them first.
779         (x_term_init): Initialize Xatom_net_supporting_wm_check and
780         Xatom_net_supported correctly.
782         * xselect.c (x_send_client_event): Move CHECK_STRING ...
783         (Fx_send_client_event): to here.
785 2010-11-13  Martin Rudalics  <rudalics@gmx.at>
787         * window.c (Fwindow_use_time): New function.
789 2010-11-13  Eli Zaretskii  <eliz@gnu.org>
791         * xdisp.c (set_cursor_from_row): Fix cursor positioning on
792         zero-width characters.
794         * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
796         * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
797         box before drawing the glyphs inside it.
799         * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
801         * dispextern.h (enum glyphless_display_method):
802         Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
803         All users changed.
805         * term.c (append_glyphless_glyph, produce_glyphless_glyph):
806         Fix comments.
807         (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
808         whitespace in "[]", to simulate a box.  Don't use uninitialized
809         variable `width'.
811 2010-11-11  Martin Rudalics  <rudalics@gmx.at>
813         * window.c (syms_of_window): Add Qsafe and intern it.
814         (resize_frame_windows): Check whether the actual new size of the
815         root window matches the requested size.  Also try one more round
816         with safe minimum sizes.  Simplify code.
818 2010-11-11  Julien Danjou  <julien@danjou.info>
820         * xsettings.c (init_xsettings): Use already fetch atoms.
822         * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
823         from dpyinfo.
825         * xselect.c (Fx_send_client_event): Split and create
826         x_send_client_event.
828         * lisp.h: Do not EXFUN Fx_send_client_event.
830         * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
831         from dpyinfo.
832         (wm_supports): Use atoms from dpyinfo.
833         (do_ewmh_fullscreen): Use atoms from dpyinfo.
834         (x_ewmh_activate_frame): Use atoms from dpyinfo.
835         (xembed_set_info): Use atoms from dpyinfo.
836         (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
837         _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
838         _NET_ACTIVE_WINDOW, XSETTINGS  atoms.
839         Get all atoms in one round-trip.
840         (set_wm_state): Use x_send_client_event rather than
841         Fx_send_client_event, using Atom directly.
842         (x_ewmh_activate_frame): Ditto.
843         (x_set_sticky): Pass atoms to set_wm_state.
844         (do_ewmh_fullscreen): Ditto.
847         * xterm.h (x_display_info): Add Xatom_net_supported,
848         Xatom_net_supporting_wm_check, Xatom_net_active_window,
849         Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
851         * xfns.c (Fx_show_tip): Fix typo in docstring.
853 2010-11-11  Stefan Monnier  <monnier@iro.umontreal.ca>
855         * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
856         it's not negative.
858 2010-11-10  Martin Rudalics  <rudalics@gmx.at>
860         * window.c (syms_of_window): New variable
861         temp-buffer-show-specifiers.
862         (temp_output_buffer_show): Call display-buffer with second
863         argument set to temp-buffer-show-specifiers and reset the latter
864         after the call.
866         * print.c (Fwith_output_to_temp_buffer): In doc-string explain how
867         to set up temp-buffer-show-specifiers.
869 2010-11-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
871         * font.c (font_filter_properties): Add const to array elements of
872         properties args.
874         * font.h (font_filter_properties): Likewise.
876         * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
877         elements.
879         * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
881 2010-11-10  Michael Albinus  <michael.albinus@gmx.de>
883         * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
884         (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
885         (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
886         (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
887         (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
889 2010-11-10  Glenn Morris  <rgm@gnu.org>
891         * emacs.c (syms_of_emacs) <system-type>: Doc fix.
893 2010-11-09  Eli Zaretskii  <eliz@gnu.org>
895         * xfns.c (x_real_positions): Fix declaration-after-statement problem.
897 2010-11-09  Chong Yidong  <cyd@stupidchicken.com>
899         * image.c (free_image): Don't garbage the frame here, since this
900         function can be called while redisplaying (Bug#7210).
901         (uncache_image): Garbage the frame here (Bug#6426).
903 2010-11-09  Jan Djärv  <jan.h.d@swipnet.se>
905         * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
906         parent is the root window.  Check this after traversing window tree.
908         * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
910         * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
912         * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
913         before traversing window tree (Bug#5721).
915 2010-11-07  Jan Djärv  <jan.h.d@swipnet.se>
917         * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
919         * xdisp.c (note_mode_line_or_margin_highlight):
920         Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
922 2010-11-06  Eli Zaretskii  <eliz@gnu.org>
924         * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
925         adjust width of tool-tip frame to the width of text, excluding the
926         stretch glyph at the beginning of R2L glyph rows.
928         * w32fns.c (Fx_show_tip): Likewise.
930 2010-11-06  Jan Djärv  <jan.h.d@swipnet.se>
932         * nsfont.m: Include termchar for new mouse-highlight.
933         (nsfont_draw): Use MOUSE_HL_INFO.
935 2010-11-05  Eli Zaretskii  <eliz@gnu.org>
937         Unify mouse-highlight code for all GUI and TTY sessions.
939         * term.c: Remove static mouse_face_* variables.  All users
940         changed.
941         (term_show_mouse_face, term_clear_mouse_face)
942         (fast_find_position, term_mouse_highlight): Functions deleted.
943         (tty_draw_row_with_mouse_face): New function.
944         (term_mouse_movement): Call note_mouse_highlight instead of
945         term_mouse_highlight.
947         * nsterm.m (ns_update_window_begin, ns_update_window_end)
948         (ns_update_end, x_destroy_window, ns_frame_up_to_date)
949         (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
950         (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
951         (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
952         Replace Display_Info with Mouse_HLInfo everywhere where
953         mouse_face_* members were accessed for mouse highlight purposes.
955         * xterm.c (x_update_window_begin, x_update_window_end)
956         (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
957         (handle_one_xevent, x_free_frame_resources, x_term_init):
958         Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
959         members were accessed for mouse highlight purposes.
961         * w32term.c (x_update_window_begin, x_update_window_end)
962         (x_update_end, w32_read_socket, x_free_frame_resources)
963         (w32_initialize_display_info): Replace Display_Info with
964         Mouse_HLInfo everywhere where mouse_face_* members were accessed
965         for mouse highlight purposes.
967         * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
968         (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
969         unless the frame is on a window-system.
970         (get_tool_bar_item, handle_tool_bar_click)
971         (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
972         (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
973         (note_mode_line_or_margin_highlight, note_mouse_highlight)
974         (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
975         Replace Display_Info with Mouse_HLInfo everywhere where
976         mouse_face_* members were accessed for mouse highlight purposes.
977         (coords_in_mouse_face_p): Move prototype out of the
978         HAVE_WINDOW_SYSTEM conditional.
979         (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
980         HAVE_WINDOW_SYSTEM block.
981         (try_window_id) [HAVE_GPM || MSDOS]:
982         Call x_clear_window_mouse_face.
983         (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
984         systems.  Call tty_draw_row_with_mouse_face for TTY systems.
985         (show_mouse_face): Call draw_row_with_mouse_face, instead of
986         calling draw_glyphs directly.
987         (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
988         (cursor_in_mouse_face_p, rows_from_pos_range)
989         (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
990         (note_mode_line_or_margin_highlight, note_mouse_highlight)
991         (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
992         HAVE_WINDOW_SYSTEM block.  Ifdef away window-system specific
993         fragments.
994         (note_mouse_highlight): Call popup_activated for MSDOS as well.
995         Clear mouse highlight if pointer is over glyphs whose OBJECT is an
996         integer.
997         (mouse_face_from_buffer_pos): Add parentheses around && within ||.
998         (x_consider_frame_title, tool_bar_lines_needed):
999         Move prototypes to HAVE_WINDOW_SYSTEM-only part.
1000         (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
1001         part.  Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
1002         (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
1003         part.
1005         * dispnew.c (mirror_make_current): Set Y coordinate of the
1006         mode-line and header-line rows.
1007         (init_display): Setup initial frame's output_data for text
1008         terminal frames.
1010         * xmenu.c (popup_activated): Don't define on MSDOS, which now has
1011         its own definition on msdos.c.
1013         * msdos.c (show_mouse_face, clear_mouse_face)
1014         (fast_find_position, IT_note_mode_line_highlight)
1015         (IT_note_mouse_highlight): Functions deleted.
1016         (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
1017         instead of IT_note_mouse_highlight.
1018         (draw_row_with_mouse_face, popup_activated): New functions.
1019         (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
1020         (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
1021         (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
1022         where mouse_face_* members were accessed for mouse highlight
1023         purposes.
1025         * msdos.h (initialize_msdos_display): Add prototype.
1027         * frame.h (MOUSE_HL_INFO): New macro.
1029         * lisp.h (Mouse_HLInfo): New data type.
1031         * xterm.h (struct x_display_info):
1032         * w32term.h (struct w32_display_info):
1033         * nsterm.h (struct ns_display_info):
1034         * termchar.h (struct tty_display_info): Use it instead of
1035         mouse_face_* members.
1037         * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
1038         1st argument.
1039         (frame_to_window_pixel_xy, note_mouse_highlight)
1040         (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
1041         (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
1042         HAVE_WINDOW_SYSTEM conditional.
1043         (draw_row_with_mouse_face): Declare prototype.
1044         (tty_draw_row_with_mouse_face): Declare prototype.
1046 2010-11-05  Eli Zaretskii  <eliz@gnu.org>
1048         * term.c (append_glyphless_glyph, produce_glyphless_glyph):
1049         Remove unused variables.
1051 2010-11-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
1053         * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
1054         logic pointed out by Eli Zaretskii.
1056 2010-11-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1058         * coding.c (coding-category-list): Refer to set-coding-system-priority
1059         instead of the obsolete set-coding-priority in the doc string.
1062 2010-11-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
1064         * nsfont.m (nsfont_draw):  Correct previous patch to return
1065         correct value.
1066         * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
1067         don't change the method signature, change the return.
1069 2010-11-04  Ismail Donmez  <ismail@namtrac.org>  (tiny change)
1071         * nsfont.m (nsfont_draw)
1072         * nsimage.m (EmacsImage-setXBMColor:)
1073         * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
1075 2010-11-03  Julien Danjou  <julien@danjou.info>
1077         * image.c (gif_load): Add support for transparency and specified
1078         :background.
1080 2010-11-01  Kenichi Handa  <handa@m17n.org>
1082         * dispextern.h (lookup_glyphless_char_display): Extern it.
1084         * termhooks.h (struct terminal): New member charset_list.
1086         * coding.c (Fset_terminal_coding_system_internal): Set the
1087         `charset_list' member of struct terminal.
1089         * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
1090         (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1092         * xdisp.c (lookup_glyphless_char_display): Make it non-static.
1093         (lookup_glyphless_char_display): Set it->what at the end.
1094         (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1095         (last_glyphless_glyph_merged_face_id): Make them non-static.
1097         * w32term.c (x_draw_glyphless_glyph_string_foreground):
1098         Fix the arg with_background for font->driver->draw.
1100 2010-11-01  Kenichi Handa  <handa@m17n.org>
1102         * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
1103         Surround chp by parentheses.
1105 2010-11-01  Kenichi Handa  <handa@m17n.org>
1107         Implement various display methods for glyphless characters.
1109         * xdisp.c (Qglyphless_char, Vglyphless_char_display)
1110         (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
1111         (Qzero_width): New variables.
1112         (THIN_SPACE_WIDTH): New macro.
1113         (lookup_glyphless_char_display): New funciton.
1114         (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
1115         (last_glyphless_glyph_merged_face_id): New variables.
1116         (get_next_display_element): Check glyphless characters.
1117         (redisplay_internal): Initialize last_glyphless_glyph_frame and
1118         last_glyphless_glyph_face_id.
1119         (fill_glyphless_glyph_string): New function.
1120         (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
1121         (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
1122         (append_glyphless_glyph, produce_glyphless_glyph): New functions.
1123         (x_produce_glyphs): If a suitable font is not found, produce a
1124         glyphless glyph.  Handle the case it->what == IT_GLYPHLESS.
1125         (syms_of_xdisp): Intern and staticpro Qglyphless_char,
1126         Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
1127         Qzero_width.
1128         (Vglyphless_char_display): Declare it as a Lisp variable.
1130         * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
1131         (struct glyph): Change the size of the member "type" to 3.
1132         Add glyphless to the union slice and u.
1133         (enum display_element_type): Add IT_GLYPHLESS.
1134         (enum glyphless_display_method): New enum.
1135         (struct it): New member glyphless_method.
1136         (Vglyphless_char_display): Extern it.
1138         * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
1139         (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1141         * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
1142         (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
1144         * nsterm.m (ns_draw_glyph_string): Handle the case
1145         GLYPHLESS_GLYPH (the detail is not yet implemented).
1147 2010-10-31  Glenn Morris  <rgm@gnu.org>
1149         * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
1151         * frame.c (syms_of_frame) <tool-bar-mode>:
1152         Default to nil if !HAVE_WINDOW_SYSTEM.  (Bug#7299)
1154 2010-10-31  Chong Yidong  <cyd@stupidchicken.com>
1156         * xterm.c (x_connection_closed): Print informative error message
1157         when aborting on GTK.  This requires using shut_down_emacs
1158         directly instead of Fkill_emacs.
1160 2010-10-30  Andreas Schwab  <schwab@linux-m68k.org>
1162         * window.c (Fresize_window_apply): Use EQ to compare Lisp_Object
1163         values.
1164         (Fdelete_window_internal): Likewise.
1165         (shrink_mini_window): Declare size as EMACS_INT.
1167 2010-10-29  Eli Zaretskii  <eliz@gnu.org>
1169         * emacs.c (main): Call syms_of_filelock unconditionally.
1171         * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
1172         clause, but keep part of it conditioned on CLASH_DETECTION.
1174 2010-10-29  Glenn Morris  <rgm@gnu.org>
1176         * nsfns.m (Fx-display-save-under, Fx-open-connection)
1177         (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
1178         * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
1179         * xfns.c (Fxw_color_defined_p, Fx_open_connection):
1180         Sync docs between X, W32, NS.
1182         * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
1183         * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
1185 2010-10-26  Juanma Barranquero  <lekktu@gmail.com>
1187         * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
1188         otherwise, bootstrapping on Windows fails to compile macroexp.el.
1190 2010-10-26  Eli Zaretskii  <eliz@gnu.org>
1192         * cmds.c (internal_self_insert): Don't insert if argument N is
1193         zero or negative.  (Bug#7281)
1195 2010-10-26  Jan Djärv  <jan.h.d@swipnet.se>
1197         * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
1199 2010-10-25  Glenn Morris  <rgm@gnu.org>
1201         * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
1203 2010-10-24  Glenn Morris  <rgm@gnu.org>
1205         * w32fns.c (Fx_synchronize, Fx_change_window_property)
1206         (Fx_window_property, Fx_file_dialog):
1207         * xfns.c (Fx_synchronize, Fx_change_window_property)
1208         (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
1210 2010-10-24  Chong Yidong  <cyd@stupidchicken.com>
1212         * xterm.c (x_connection_closed): Kill Emacs unconditionally.
1214 2010-10-24  Eli Zaretskii  <eliz@gnu.org>
1216         * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
1218         * dispnew.c (syms_of_display) <initial-window-system, window-system>:
1219         Deprecate use as a boolean flag.
1221 2010-10-24  Jim Meyering  <jim@meyering.net>
1223         * emacs.c (argmatch): Don't treat "--" as "--chdir".
1225 2010-10-24  Glenn Morris  <rgm@gnu.org>
1227         * w16select.c (syms_of_win16select) <selection-coding-system>:
1228         <next-selection-coding-system>:
1229         * w32select.c (syms_of_w32select) <selection-coding-system>:
1230         <next-selection-coding-system>:
1231         Sync docs with select.el.
1233         * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
1234         Lisp version.
1236         * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
1237         Sync doc with the xterm.c version.
1239         * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
1240         * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
1242 2010-10-23  Glenn Morris  <rgm@gnu.org>
1244         * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
1245         * frame.c (syms_of_frame) <menu-bar-mode>:
1246         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
1247         <hourglass-delay>: Sync docs with Lisp.
1249 2010-10-23  Eli Zaretskii  <eliz@gnu.org>
1251         Implement mouse highlight for bidi-reordered lines.
1253         * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
1254         (mouse_face_from_string_pos): New function, replaces
1255         fast_find_string_pos.
1256         (note_mouse_highlight): Call it instead of fast_find_string_pos.
1257         (note_mode_line_or_margin_highlight): Support bidi-reordered
1258         strings and R2L glyph rows.  Fix comments.
1259         (note_mouse_highlight): When bidi reordering is turned on in a
1260         buffer, call next-single-property-change and
1261         previous-single-property-change with last argument nil.
1262         Clear mouse highlight when mouse pointer is in a R2L row on the stretch
1263         glyph that stands for no text beyond the line end.
1264         (row_containing_pos): Don't return too early when CHARPOS is in a
1265         bidi-reordered continued line.  Return immediately when the first
1266         hit is found in a line that is not continued, or when an exact
1267         match for CHARPOS is found.
1268         (rows_from_pos_range): New function.
1269         (mouse_face_from_buffer_pos): Use it instead of calling
1270         row_containing_pos for START_CHARPOS and END_CHARPOS.  Rewrite the
1271         function to support mouse highlight in bidi-reordered lines and
1272         not to assume that START_CHARPOS is always in mouse_face_beg_row.
1273         If necessary, swap mouse_face_beg_row and mouse_face_end_row so
1274         that the former is always above the latter or identical to it.
1275         (show_mouse_face): Support drawing highlighted R2L lines.
1276         (coords_in_mouse_face_p): New function, bidi-aware.
1277         (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
1278         Call it instead of comparing with mouse-face members of dpyinfo.
1279         (note_mode_line_or_margin_highlight): Fix confusingly swapped
1280         usage of hpos and vpos.
1282 2010-10-22  Jan Djärv  <jan.h.d@swipnet.se>
1284         * xrdb.c: Include keyboard.h for MOTIF.
1286         * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
1287         MOTIF (Bug#7263).
1289         * xfns.c: Include Xm/TextF and Xm/List.
1290         (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
1291         Make ANSI prototypes.
1293 2010-10-22  Glenn Morris  <rgm@gnu.org>
1295         * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
1296         Remove ccl and duplicate mouse.
1298 2010-10-21  Chong Yidong  <cyd@stupidchicken.com>
1300         * insdel.c (prepare_to_modify_buffer): Don't set
1301         saved-region-selection if modification hooks are disabled.
1303 2010-10-19  Chong Yidong  <cyd@stupidchicken.com>
1305         * cmds.c (Fdelete_char): Doc fix.
1307 2010-10-19  Ken Brown  <kbrown@cornell.edu>
1309         * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
1311 2010-10-19  Kenichi Handa  <handa@m17n.org>
1313         Fix incorrect font metrics when the same font is opened with
1314         different pixelsizes.
1316         * xftfont.c: Include composite.h.
1317         (xftfont_shape): New function.
1318         (syms_of_xftfont): Set xftfont_driver.shape.
1320 2010-10-18  Julien Danjou  <julien@danjou.info>
1322         * frame.c (Fframe_pointer_visible_p):
1323         Add `frame-pointer-visible-p' to get the pointer visibility.
1325 2010-10-18  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1327         * gnutls.c (emacs_gnutls_read): Return 0 if we get a
1328         non-"EAGAIN"-like error to signal to Emacs that the socket should
1329         be closed.
1331 2010-10-15  Eli Zaretskii  <eliz@gnu.org>
1333         * unexcoff.c (make_hdr): Fix prototype according to changes in
1334         2010-10-03T13:59:56Z!dann@ics.uci.edu.
1336         * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
1338 2010-10-15  Tassilo Horn  <tassilo@member.fsf.org>
1340         * Makefile.in (really-oldXMenu): Fix typo in variable name that
1341         made building the X menu fail.
1342         (really-oldXMenu): Fix my previous fix.
1344 2010-10-14  Damyan Pepper  <damyanp@gmail.com>
1346         Fix handling of font properties on Windows (bug#6303).
1347         * font.c (font_filter_properties): New function, refactored from
1348         ftfont_filter_properties.
1349         * font.h (font_filter_properties): Declare.
1350         * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
1351         * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
1352         (w32font_filter_properties): New function.
1353         (w32font_driver): Add w32font_filter_properties.
1355 2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
1357         * font.c (Ffont_variation_glyphs):
1358         * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
1360 2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
1362         * w32fns.c (w32_wnd_proc, file_dialog_callback):
1363         * w32font.c (w32_generic_family):
1364         * w32inevt.c (key_event):
1365         * w32menu.c (fill_in_menu):
1366         * w32proc.c (reader_thread, w32_executable_type, compare_env)
1367         (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
1368         * w32term.c (w32_read_socket): Make static.
1370 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
1372         * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
1373         prototypes; all callers changed.
1375 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
1377         * makefile.w32-in (TLIB2): Rename from TLIBW32.
1378         (OBJ2): New macro.
1379         (WIN32OBJ, FONTOBJ): Remove.
1380         (OBJ1): Redistribute object files with OBJ2.
1381         (LIBS, $(TEMACS)): Use TLIB2.
1382         (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
1383         ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
1385 2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
1387         * emacs.c (Vdynamic_library_alist)
1388         (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
1389         Doc fix.
1391         * lisp.h (Vdynamic_library_alist): Declare extern.
1393         * image.c (Vimage_library_alist)
1394         (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
1395         (lookup_image_type): Use Vdynamic_library_alist.
1396         (Finit_image_library): Doc fix.
1398 2010-10-12  Dan Nicolaescu  <dann@ics.uci.edu>
1400         * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
1401         (lispdir): Remove trailing /, update all uses.
1403 2010-10-12  Jan Djärv  <jan.h.d@swipnet.se>
1405         * nsterm.m (Qleft): Declare.
1406         (ns_right_alternate_modifier): New variable
1407         (NSRightAlternateKeyMask): New define.
1408         (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
1409         ns_right_alternate_modifier isn't Qleft.
1410         (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
1411         as emacs modifier for NSRightAlternateKeyMask.
1412         (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
1414 2010-10-10  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1416         * gnutls.c (emacs_gnutls_write): If we're trying to write before
1417         gnutls is ready, return EAGAIN as the errno.
1419 2010-10-10  Dan Nicolaescu  <dann@ics.uci.edu>
1421         * vm-limit.c:
1422         * unexhp9k800.c:
1423         * unexelf.c:
1424         * unexaix.c:
1425         * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
1427         * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
1428         (PROFILING_LDFLAGS): Remove, not needed anymore.
1430         * Makefile.in: Use $(...) everywhere instead of ${...}
1431         (CRT_DIR): Move near potential user.
1432         (START_FILE): Move near CRT_DIR, it might use it.
1434         * sysdep.c (LPASS8): Remove, unused.
1435         (emacs_ospeed): Change from being a global to a local in the only
1436         user: init_baud_rate.
1438 2010-10-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1440         * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
1441         (emacs_gnutls_write): Remove the debuggin fsync call.
1442         (emacs_gnutls_read): Return -1 if we got an error from
1443         gnutls_read.  This allows us to actually read lots of data from
1444         the GnuTLS stream.
1445         (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
1446         According to the documentation, this is correct, and it seems to
1447         make things work.
1449 2010-10-09  Chong Yidong  <cyd@stupidchicken.com>
1451         * xterm.c (x_draw_relief_rect): Clear corner pixels.
1453 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
1455         * keyboard.c: Revert last change; it was not intended to be
1456         synchronized with the trunk.
1458 2010-10-08  Kenichi Handa  <handa@m17n.org>
1460         * coding.c (complement_process_encoding_system): Fix previous change.
1462 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
1464         * dbusbind.c (syms_of_dbusbind): Move putenv call ...
1465         (Fdbus_init_bus): ... here.  (Bug#7113)
1467 2010-10-08  Glenn Morris  <rgm@gnu.org>
1469         * buffer.c (before-change-functions, after-change-functions):
1470         Three-year overdue doc fix following 2007-08-13 change.
1472 2010-10-08  Kenichi Handa  <handa@m17n.org>
1474         * coding.c (coding_inherit_eol_type): If parent doesn't specify
1475         eol-format, inherit from the system's default.
1476         (complement_process_encoding_system): Make a new coding system
1477         inherit the original eol-format.
1479 2010-10-08  Kenichi Handa  <handa@m17n.org>
1481         * coding.c (complement_process_encoding_system): New function.
1483         * coding.h (complement_process_encoding_system): Extern it.
1485         * callproc.c (Fcall_process): Complement the coding system for
1486         encoding arguments.
1487         (Fcall_process_region): Complement the coding system for encoding
1488         the input to the process.
1490         * process.c (Fstart_process): Complement the coding system for
1491         encoding arguments.
1492         (send_process): Complement the coding system for encoding what
1493         sent to the process.
1495 2010-10-08  Kenichi Handa  <handa@m17n.org>
1497         * xfont.c (xfont_open): Fix setting of font->average_width from
1498         :avgwidth property (Bug#7123).
1500 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
1502         * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
1503         is more portable.
1505         * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
1506         (kbd_buffer_get_event): ... here. This is needed for cygwin, which
1507         has not defined SIGIO.
1509 2010-10-08  Chong Yidong  <cyd@stupidchicken.com>
1511         * xterm.c (x_draw_relief_rect): If box width is larger than 1,
1512         draw the outermost line using the black relief, for legibility.
1513         Omit drawing the four corner pixels.
1515 2010-10-04  Chong Yidong  <cyd@stupidchicken.com>
1517         * keyboard.c (echo_prompt): Function moved into read_key_sequence.
1518         (read_key_sequence): Inline echo_prompt.
1519         (echo_dash): Add a dash only if key is continued (Bug#7137).
1521 2010-10-04  Dan Nicolaescu  <dann@ics.uci.edu>
1523         Remove O_RDONLY, O_WRONLY definitions, not needed.
1524         * unexcoff.c:
1525         * lread.c:
1526         * fileio.c:
1527         * doc.c:
1528         * callproc.c:
1529         * alloc.c:
1530         * termcap.c: Remove O_RDONLY O_WRONLY definitions.
1532 2010-10-03  Teodor Zlatanov  <tzz@lifelogs.com>
1534         * gnutls.h (GNUTLS_LOG2): Convenience macro.
1536         * gnutls.c: Add property list symbol holders.
1537         (emacs_gnutls_handshake): Clarify how sockets are passed to
1538         GnuTLS.
1539         (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
1540         (Fgnutls_boot): Get all parameters from a plist.  Require trustfiles
1541         and keyfiles to be a list of file names.  Default to "NORMAL" for
1542         the priority string.  Improve logging.
1544 2010-10-03  Glenn Morris  <rgm@gnu.org>
1546         * fileio.c (Vdirectory_sep_char): Remove.
1548 2010-10-03  Dan Nicolaescu  <dann@ics.uci.edu>
1550         * termhooks.h: Remove #ifdef CONSP.
1552         * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
1554         Include <fcntl.h> unconditionally.
1555         * termcap.c:
1556         * sysdep.c:
1557         * lread.c:
1558         * keyboard.c:
1559         * filelock.c:
1560         * fileio.c:
1561         * doc.c:
1562         * callproc.c:
1563         * alloc.c: Remove include guards for <fcntl.h>, process.c already
1564         does it.
1566         * process.c: Do not include <sys/wait.h>, syswait.h does it.
1568         * sysdep.c (flush_pending_output): Remove code, does not do
1569         anything on any platform.
1571         Remove unused code.
1572         * sysdep.c (select_alarm, sys_select, read_input_waiting):
1573         Remove select emulation, all systems support select.
1574         (set_exclusive_use): Remove, the only user is in an #if 0 block.
1575         * process.c (create_process): Remove #if 0 code.
1577         Remove unused arguments for unexec.
1578         The third one is never used, and the last two are always passed as zero.
1579         * emacs.c (unexec): Add declaration.
1580         (Fdump_emacs): Only pass the first two arguments to unexec.
1581         Simplify #ifdef.
1582         * unexw32.c (unexec):
1583         * unexsol.c (unexec):
1584         * unexhp9k800.c (unexec):
1585         * unexcw.c (unexec): Remove the last 3 arguments, unused.
1586         * unexelf.c (unexec): Remove the last 3 arguments, unused.
1587         (find_section): Use const.
1588         * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
1589         (unexec_error): Declare it NO_RETURN.
1590         * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
1591         it as an argument, remove data_start and entry_address arguments, unused.
1592         (unexec): Remove bss_start, data_start and
1593         entry_address arguments.
1594         * unexaix.c (make_hdr): Assume bss_start is always zero, remove
1595         it as an argument, remove data_start and entry_address arguments, unused.
1596         (unexec): Remove bss_start, data_start and
1597         entry_address arguments.
1599 2010-10-03  Juanma Barranquero  <lekktu@gmail.com>
1601         * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
1603         * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
1604         (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
1605         (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
1606         Fix typos in docstrings.
1607         (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
1608         (Fgnutls_errorp): Doc fix; use ERR for the argument name.
1610 2010-10-03  Chong Yidong  <cyd@stupidchicken.com>
1612         * keyboard.c (command_loop_1): Make sure the mark is really alive
1613         before using it (Bug#7044).
1615 2010-10-02  Juanma Barranquero  <lekktu@gmail.com>
1617         * makefile.w32-in (tags): Rename target to full-tags.
1619 2010-10-02  Eli Zaretskii  <eliz@gnu.org>
1621         * emacs.c (main): Remove !WINDOWSNT conditional.
1622         (Fkill_emacs): Don't mention exemption on MS-Windows.
1624 2010-10-02  Glenn Morris  <rgm@gnu.org>
1626         * character.c (Fchar_bytes): Remove obsolete function.
1627         (syms_of_character): Remove Schar_bytes.
1629         * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
1630         (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
1631         in batch-mode.
1632         (Fkill_emacs): Doc fix.  Also run the hook in batch mode.
1633         (kill-emacs-hook): Doc fix.
1635 2010-10-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1637         * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
1638         (parse_region): Rework to take regions instead of strings, and
1639         renamed to reflect that these are the libxml functions.
1641 2010-10-01  Eli Zaretskii  <eliz@gnu.org>
1643         * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
1644         screen dimensions in tty->Wcm.
1646         * xdisp.c (set_cursor_from_row): When the row is truncated and
1647         point is outside the range of displayed characters, position the
1648         cursor inside the scroll margin.  (Bug#6349)
1650 2010-10-01  Dan Nicolaescu  <dann@ics.uci.edu>
1652         Do not include stdlib.h and string.h, config.h does it.
1653         * xfont.c:
1654         * w32term.c:
1655         * w32reg.c:
1656         * w32inevt.c:
1657         * w32heap.c:
1658         * w32console.c:
1659         * w16select.c:
1660         * unexsol.c:
1661         * term.c:
1662         * sound.c:
1663         * scroll.c (m):
1664         * gtkutil.c:
1665         * font.c:
1666         * filelock.c:
1667         * fileio.c:
1668         * dosfns.c:
1669         * dbusbind.c:
1670         * bidi.c:
1671         * callproc.c:
1672         * process.c:
1673         * msdos.c:
1674         * charset.c: Do not include stdlib.h and string.h, config.h does it.
1676         * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
1677         defines it.
1679         * process.c: Move #include <pty.h> earlier.
1680         (SIGCHLD): Remove conditional definition, syssignal.h defines it.
1681         (pty_name): Move definition later.
1683         * nsselect.m (syms_of_nsselect):
1684         * nsmenu.m (syms_of_nsmenu):
1685         * nsfns.m (syms_of_nsfns):
1686         * msdos.c (syms_of_msdos):
1688         * image.c (syms_of_image):
1689         * charset.c (syms_of_charset): Use intern_c_string instead of intern.
1691         * point.h: Remove, unused.
1693 2010-10-01  Eli Zaretskii  <eliz@gnu.org>
1695         * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
1696         (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
1697         (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
1699 2010-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
1701         * xml.c (parse_string): Use const.
1703 2010-09-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1705         * eval.c (Fbacktrace): Don't overwrite print-level on exit.
1706         Also only override Vprint_level if it isn't already bound, and increase
1707         the level to 8 to produce more useful backtraces for bug reports.
1709 2010-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
1711         * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
1713 2010-09-30  Juanma Barranquero  <lekktu@gmail.com>
1715         * w32console.c (vga_stdcolor_name): Remove unused function;
1716         presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
1718 2010-09-29  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1720         * gnutls.c (emacs_gnutls_handshake): Made into internal function.
1721         (Fgnutls_boot): Start the handshake.
1722         (emacs_gnutls_read): Perform the handshake from the reader loop.
1723         (Fgnutls_boot): Remove some debugging messages.
1724         Change indentation throughout to use the Emacs style.
1725         (emacs_gnutls_handshake): Cast the fds to something that's
1726         possibly the expected length.
1727         (emacs_gnutls_write): Return -1 if we try to write before handshake.
1729         * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
1731         * process.c (make_process): Set the gnutls_p field to zero by
1732         default.
1733         (read_process_output): Always call the gnutls_read function if the
1734         stream is a gnutls stream.
1735         (send_process): Ditto for writes.
1737         * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
1738         or write anything until the state is GNUTLS_STAGE_READY.
1739         (Fgnutls_boot): Mark the stream as being a gnutls stream.
1741 2010-09-29  Eli Zaretskii  <eliz@gnu.org>
1743         * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
1744         NEUTRAL_DIR.
1745         (handle_invisible_prop, iterate_out_of_display_property)
1746         (next_element_from_buffer): If bidi_it.first_elt is set, call
1747         bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
1748         (Bug#7128)
1750         * print.c (print_object): Fix format string and argument types for
1751         printing a Lisp_Misc_Marker.
1753         * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
1754         (load_overlay_strings, get_overlay_strings_1)
1755         (get_overlay_strings, forward_to_next_line_start)
1756         (back_to_previous_visible_line_start, reseat, reseat_to_string)
1757         (get_next_display_element, next_element_from_string)
1758         (next_element_from_c_string, next_element_from_buffer)
1759         (move_it_vertically_backward, move_it_by_lines, add_to_log)
1760         (message_dolog, message_log_check_duplicate, message2_nolog)
1761         (message3, message3_nolog, vmessage, set_message, set_message_1)
1762         (hscroll_window_tree, text_outside_line_unchanged_p)
1763         (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
1764         (find_last_unchanged_at_beg_row)
1765         (find_first_unchanged_at_end_row, row_containing_pos)
1766         (trailing_whitespace_p, display_mode_element, decode_mode_spec)
1767         (display_count_lines, x_produce_glyphs, note_mouse_highlight):
1768         Use EMACS_INT for buffer and string positions.
1770         * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
1771         (row_containing_pos): Adjust prototype.
1773         * lisp.h (pos_visible_p, message2, message2_nolog, message3)
1774         (message2_nolog, set_message): Adjust prototypes.
1776 2010-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
1778         * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
1779         (Fgnutls_boot): Use SDATA.
1780         (Fgnutls_handshake): Remove unused var `max_log_level'.
1782 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
1784         * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
1785         (Bug#7113)
1787 2010-09-27  Jan Djärv  <jan.h.d@swipnet.se>
1789         * xgselect.c (xg_select): Clear file descriptors not set from
1790         rfds and wfds.
1792         * process.c (wait_reading_process_output): Add missing FD_CLR
1793         for write_mask (must mirror connect_wait_mask).
1795 2010-09-27  Teodor Zlatanov  <tzz@lifelogs.com>
1797         * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
1798         prefix.
1799         (Fgnutls_boot): Use changed process members.  Use log level with a
1800         function parameter to set it.  Bring back Emacs-level debugging
1801         messages at log level 1 and 2.
1803         * process.c (make_process): Initialize gnutls_log_level.
1805         * process.h: Add gnutls_log_level and rename x509_cred and
1806         anon_cred to have the gnutls_ prefix for consistency.
1808         * gnutls.h (GNUTLS_LOG): Add convenience macro.
1810 2010-09-27  Juanma Barranquero  <lekktu@gmail.com>
1812         * w32.c (g_b_init_get_sid_identifier_authority)
1813         (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
1814         Remove, not used.
1815         (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
1816         (init_winsock): Remove useless assignment.
1817         (open_process_token, get_token_information, lookup_account_sid)
1818         (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
1819         (get_security_descriptor_owner, get_security_descriptor_group)
1820         (is_valid_sid, equal_sid, get_length_sid, copy_sid)
1821         (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
1822         (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
1823         (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
1824         (unc_volume_file_attributes, convert_from_time_t)
1825         (create_toolhelp32_snapshot, process32_first, process32_next)
1826         (open_thread_token, impersonate_self, revert_to_self)
1827         (get_process_memory_info, get_process_working_set_size)
1828         (global_memory_status, global_memory_status_ex, socket_to_fd)
1829         (shutdown_handler): Make static.
1831 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
1833         * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
1834         (xd_pending_messages): Functions removed.
1835         (xd_read_queued_messages): Add parameters fd, *data, for_read in
1836         order to be compatible with add_read_fd.  Determine bus from data,
1837         and call xd_read_message just for this bus.
1838         (xd_add_watch): Use xd_read_queued_messages as callback function.
1839         Add data.
1841         * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
1843 2010-09-27  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1845         * gnutls.c (gnutls_log_function): Add more debugging.
1846         (emacs_gnutls_read): Don't infloop while reading.
1848 2010-09-27  Kenichi Handa  <handa@m17n.org>
1850         These changes are to remove restriction on the number of glyphs in
1851         one composition.
1853         * dispextern.h (struct glyph): Change the member "slice" to union.
1854         Remove u.cmp.from and u.cmp.to.  Give more bits to u.cmp.id.
1855         (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
1857         * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
1858         instead of glyph->slice.
1859         (marginal_area_string): Likewise.
1861         * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
1862         glyph->u.cmp.
1863         (append_composite_glyph): Likewise.
1865         * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
1866         glyph->u.cmp.
1867         (fill_gstring_glyph_string, x_get_glyph_overhangs)
1868         (append_composite_glyph): Likewise.
1869         (fill_image_glyph_string): Use glyph->slice.img instead of
1870         glyph->slice.
1871         (append_glyph, produce_image_glyph, append_stretch_glyph)
1872         (note_mouse_highlight): Likewise.
1874 2010-09-26  Jan Djärv  <jan.h.d@swipnet.se>
1876         * process.c (add_keyboard_wait_descriptor)
1877         (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
1878         (wait_reading_process_output): Don't pass write_mask to select
1879         if SELECT_CANT_DO_WRITE_MASK is defined.
1880         (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
1882         * process.h (add_read_fd, delete_read_fd, add_write_fd)
1883         (delete_write_fd): Declare.
1885         * process.c (gpm_wait_mask, max_gpm_desc): Remove.
1886         (write_mask): New variable.
1887         (max_input_desc): Rename from max_keyboard_desc.
1888         (fd_callback_info): New variable.
1889         (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
1890         New functions.
1891         (Fmake_network_process): FD_SET write_mask.
1892         (deactivate_process): FD_CLR write_mask.
1893         (wait_reading_process_output): Connecting renamed to Writeok.
1894         check_connect removed.  check_write is new.  Remove references to gpm.
1895         Use Writeok/check_write unconditionally (i.e. no #ifdef
1896         NON_BLOCKING_CONNECT) instead of Connecting.
1897         Loop over file descriptors and call callbacks in fd_callback_info
1898         if file descriptor is ready for I/O.
1899         (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
1900         (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
1901         (keyboard_bit_set): Use max_input_desc.
1902         (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
1903         Remove #ifdef subprocesses.  Use max_input_desc.
1904         (init_process): Initialize write_mask and fd_callback_info.
1906         * keyboard.c (readable_events, gobble_input): Remove DBUS code.
1908         * dbusbind.c: Include process.h.
1909         (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
1910         (xd_read_message_1): New functions.
1911         (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
1912         Handle watch for both read and write.
1913         (Fdbus_init_bus): Also register xd_toggle_watch.
1914         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1915         (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
1916         to dbus_connection_flush.
1917         (xd_read_message): Move most of the code to xd_read_message_1.
1918         Call xd_read_message_1 until status is COMPLETE.
1920 2010-09-26  Dan Nicolaescu  <dann@ics.uci.edu>
1922         * term.c: Do not include sys/ioctl.h, not needed.
1923         (init_tty): Reorder code to reduce the number of #ifdefs.
1924         No code changes.
1926 2010-09-26  Teodor Zlatanov  <tzz@lifelogs.com>
1928         * process.h: Set up GnuTLS support.
1930         * process.c (make_process, Fstart_process)
1931         (read_process_output, send_process): Set up GnuTLS support for
1932         process input/output file descriptors.
1934         * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1936         * gnutls.c: The source code for GnuTLS support in Emacs.
1938         * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1940         * config.in: Set up GnuTLS support.
1942         * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1943         (obj, LIBES): Set up GnuTLS support.
1945 2010-09-26  Juanma Barranquero  <lekktu@gmail.com>
1947         * w32.c (get_emacs_configuration_options): Fix previous change.
1949 2010-09-25  Chong Yidong  <cyd@stupidchicken.com>
1951         * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1952         alive before using it (Bug#6977).
1954 2010-09-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
1956         * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1958         * dispextern.h: EMACS_INT/int fixup.
1960         * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1961         fixup.
1963         * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1965 2010-09-25  Eli Zaretskii  <eliz@gnu.org>
1967         * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1968         (Fselect_window, window_scroll_pixel_based)
1969         (window_scroll_line_based, Frecenter, Fset_window_configuration):
1970         Use EMACS_INT for buffer positions.
1972         * textprop.c (validate_interval_range, interval_of)
1973         (property_change_between_p, Fadd_text_properties)
1974         (set_text_properties_1, Fremove_text_properties)
1975         (Fremove_list_of_text_properties, Ftext_property_any)
1976         (Ftext_property_not_all, copy_text_properties)
1977         (text_property_list, extend_property_ranges)
1978         (verify_interval_modification): Use EMACS_INT for buffer
1979         positions.
1981         * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1982         for buffer positions.
1984         * process.c (read_process_output, send_process)
1985         (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1986         and string positions and size.
1988         * print.c (print_object, print_string, strout): Use EMACS_INT for
1989         string indices.
1991         * minibuf.c (string_to_object): Use EMACS_INT for string position
1992         and size.
1994         * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1996         * lread.c <read_from_string_index, read_from_string_index_byte>
1997         <read_from_string_limit, readchar_count>: Define EMACS_INT.
1998         (readchar, unreadchar, read_internal_start): Use EMACS_INT for
1999         buffer positions and string length.
2001         * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
2002         EMACS_INT.
2003         (echo_truncate, adjust_point_for_property, read_char)
2004         (gen_help_event, make_lispy_event, modify_event_symbol)
2005         (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
2006         for buffer positions and string length.
2008         * keyboard.h (gen_help_event): Adjust prototype.
2010         * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
2012         * commands.h <last_point_position>: Declare EMACS_INT.
2014         * xdisp.c <help_echo_pos>: Define as EMACS_INT.
2015         (truncate_echo_area): Accept EMACS_INT argument.
2017         * dispextern.h <help_echo_pos>: Declare EMACS_INT.
2019         * lisp.h (truncate_echo_area): Adjust prototype.
2021         * composite.c (composition_adjust_point): Return EMACS_INT.
2023         * composite.h (composition_adjust_point): Adjust prototype.
2025 2010-09-25  Juanma Barranquero  <lekktu@gmail.com>
2027         * process.c (Fmake_network_process): When arg :host is 'local,
2028         use address 127.0.0.1, not name "localhost".  (Bug#6781)
2030 2010-09-24  Eli Zaretskii  <eliz@gnu.org>
2032         * indent.c (Fcurrent_indentation, indented_beyond_p)
2033         (compute_motion): Use EMACS_INT for buffer position variables.
2035         * lisp.h (indented_beyond_p): Adjust prototype.
2037         * buffer.c (overlay_strings): Return EMACS_INT.
2039         * buffer.h (overlay_strings): Adjust prototype.
2041         * region-cache.c (pp_cache): Adjust format to arguments.
2043         * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
2044         (call_debugger): Use EMACS_INT for specpdl_size related variables.
2045         (verror): Use EMACS_INT for size of allocated buffer.
2047         * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
2048         positions.
2050         * xdisp.c (redisplay_internal, try_window_id)
2051         (set_cursor_from_row, find_first_unchanged_at_end_row):
2052         Use EMACS_INT for buffer positions.
2054         * dispextern.h (set_cursor_from_row): Adjust prototype.
2056         * dispnew.c (increment_matrix_positions)
2057         (increment_row_positions, copy_glyph_row_contents)
2058         (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
2059         positions.
2061         * dispextern.h (mode_line_string, marginal_area_string)
2062         (increment_matrix_positions, increment_row_positions):
2063         Adjust prototypes.
2065         * data.c (Faref, Faset): Use EMACS_INT for string length and
2066         positions.
2068         * cmds.c (internal_self_insert): Use EMACS_INT for the count of
2069         characters to insert.
2071         * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
2072         position and size.
2074         * syntax.c (scan_words, update_syntax_table)
2075         (prev_char_comend_first, back_comment, skip_chars)
2076         (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
2077         Use EMACS_INT for buffer and string positions.
2079         * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
2081         * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
2082         positions.
2084 2010-09-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2086         * scroll.c (calculate_scrolling, line_ins_del)
2087         (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
2088         conversion.
2090         * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
2091         (region_cache_backward, region_cache_forward)
2092         (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
2093         conversion.
2095         * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2097         * eval.c (verror): Fix EMACS_INT/int conversion.
2099         * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
2100         (print_preprocess, print_check_string_charset_prop)
2101         (print_object): Fix EMACS_INT/int conversion.
2103         * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
2105 2010-09-24  Eli Zaretskii  <eliz@gnu.org>
2107         * callproc.c (Fcall_process): Use EMACS_INT for count of
2108         characters read from the subprocess.
2110         * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
2111         positions.
2112         (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
2113         positions.
2115         * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
2116         (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
2117         length.
2118         (advance_to_char_boundary, Fset_buffer_multibyte)
2119         (overlays_at, overlays_in, mouse_face_overlay_overlaps)
2120         (overlay_touches_p, record_overlay_string, overlay_strings)
2121         (recenter_overlay_lists, fix_start_end_in_overlays)
2122         (modify_overlay, Fmove_overlay, report_overlay_modification)
2123         (evaporate_overlays): Use EMACS_INT for buffer positions.
2125         * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
2126         Adjust prototypes.
2128         * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
2129         positions.
2131         * fns.c (Fcompare_strings, Fstring_lessp, concat)
2132         (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
2133         (Fsubstring_no_properties, substring_both, Ffillarray)
2134         (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
2135         (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
2136         (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
2137         (Fmd5): Use EMACS_INT for buffer and string positions and length
2138         variables and arguments.
2140         * lisp.h (substring_both): Adjust prototype.
2142 2010-09-24  Juanma Barranquero  <lekktu@gmail.com>
2144         Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
2145         * w32fns.c (clipboard_sequence_fn): Don't declare.
2146         (globals_of_w32fns): Don't initialize it.
2148 2010-09-23  Stefan Monnier  <monnier@iro.umontreal.ca>
2150         * syntax.c (back_comment): Detect the case where a 1-char comment
2151         starter is also the 2nd char of a 2-char comment ender.
2153 2010-09-23  Jan Djärv  <jan.h.d@swipnet.se>
2155         * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
2157 2010-09-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2159         * eval.c (verror): EMACS_INT/int cleanup.
2161         * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
2162         unwind_protect more than 2GB worth of functions.
2164         * editfns.c (Finsert_char): EMACS_INT/int cleanup.
2166         * lisp.h: Have oblookup take EMACS_INT to allow interning big
2167         string and avoid compiler warnings.
2168         (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
2169         all users.
2171         * lread.c (oblookup): EMACS_INT/int cleanup.
2173         * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
2175 2010-09-23  Eli Zaretskii  <eliz@gnu.org>
2177         * editfns.c (clip_to_bounds): Return an EMACS_INT value.
2179         * lisp.h (clip_to_bounds): Adjust prototype.
2181         * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
2183 2010-09-23  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2185         * lisp.h: doprnt.c EMACS_INT/int cleanup.
2187         * doprnt.c (doprnt): EMACS_INT/int cleanup.
2189         * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
2190         cleanup.
2192         * lisp.h: Change the definition of all marker.c functions that
2193         take and return buffer stuff to be EMACS_INT instead of int.
2195         * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
2196         (buf_charpos_to_bytepos, bytepos_to_charpos)
2197         (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
2198         (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
2199         for all buffer positions.
2201 2010-09-23  Chong Yidong  <cyd@stupidchicken.com>
2203         * intervals.c (traverse_intervals, rotate_right, rotate_left)
2204         (split_interval_right, find_interval, next_interval)
2205         (delete_node, delete_interval, interval_deletion_adjustment)
2206         (adjust_intervals_for_deletion, merge_interval_right)
2207         (merge_interval_left, graft_intervals_into_buffer)
2208         (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
2210         * intervals.h (traverse_intervals): Update prototype.
2212 2010-09-23  Eli Zaretskii  <eliz@gnu.org>
2214         * indent.c (compute_motion): Use EMACS_INT for arguments to
2215         region_cache_forward.
2217         * region-cache.c (struct boundary, struct region_cache):
2218         Use EMACS_INT for positions.
2219         (find_cache_boundary, move_cache_gap, insert_cache_boundary)
2220         (delete_cache_boundaries, set_cache_region)
2221         (invalidate_region_cache, know_region_cache)
2222         (region_cache_forward, region_cache_backward, pp_cache):
2223         Use EMACS_INT for buffer positions.
2225         * region-cache.h (know_region_cache, invalidate_region_cache)
2226         (region_cache_forward, region_cache_backward): Adjust prototypes.
2228         * search.c (string_match_1, fast_c_string_match_ignore_case)
2229         (looking_at_1, scan_buffer, scan_newline)
2230         (find_next_newline_no_quit, find_before_next_newline)
2231         (search_command, trivial_regexp_p, search_buffer, simple_search)
2232         (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
2233         and string positions and length.
2235         * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
2236         (find_before_next_newline): Adjust prototypes.
2238         * editfns.c (transpose_markers, update_buffer_properties)
2239         (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
2240         (get_pos_property, Fconstrain_to_field)
2241         (Fline_beginning_position, Fline_end_position, Fprevious_char)
2242         (Fchar_after, Fchar_before, Finsert_char)
2243         (Finsert_buffer_substring, Fcompare_buffer_substrings)
2244         (Fsubst_char_in_region, Fformat, Ftranspose_regions):
2245         Use EMACS_INT for buffer and string position variables.
2246         (Finsert_char): Protect against too large insertions.
2248         * lisp.h (clip_to_bounds): Adjust prototype.
2250         * intervals.c (traverse_intervals, rotate_right, rotate_left)
2251         (balance_an_interval, split_interval_right, split_interval_left)
2252         (find_interval, next_interval, update_interval)
2253         (adjust_intervals_for_insertion, delete_node, delete_interval)
2254         (interval_deletion_adjustment, adjust_intervals_for_deletion)
2255         (offset_intervals, merge_interval_right, merge_interval_left)
2256         (graft_intervals_into_buffer, adjust_for_invis_intang)
2257         (move_if_not_intangible, get_local_map, copy_intervals)
2258         (copy_intervals_to_string, compare_string_intervals)
2259         (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
2260         and for interval tree size.
2262         * intervals.h (traverse_intervals, split_interval_right)
2263         (split_interval_left, find_interval, offset_intervals)
2264         (graft_intervals_into_buffer, copy_intervals)
2265         (copy_intervals_to_string, move_if_not_intangible, get_local_map)
2266         (update_interval): Adjust prototypes.
2268         * xdisp.c (check_point_in_composition, reconsider_clip_changes):
2269         Use EMACS_INT for buffer position variables and arguments.
2271         * composite.c (get_composition_id, find_composition)
2272         (run_composition_function, compose_text)
2273         (composition_gstring_width, autocmp_chars)
2274         (composition_update_it, Ffind_composition_internal): Use EMACS_INT
2275         for buffer positions and string length variables and arguments.
2277         * composite.h (get_composition_id, find_composition, compose_text)
2278         (composition_gstring_width): Adjust prototypes.
2280         * editfns.c (Fformat): Use EMACS_INT for string size variables.
2282         * xdisp.c (store_mode_line_noprop, display_mode_element):
2283         Use EMACS_INT for string positions.
2285         * intervals.c (get_property_and_range): Use EMACS_INT for buffer
2286         position arguments.
2288         * intervals.h (get_property_and_range): Adjust prototype.
2290         * character.c (parse_str_as_multibyte, str_as_multibyte)
2291         (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
2292         (string_count_byte8, string_escape_byte8, c_string_width)
2293         (strwidth, lisp_string_width, multibyte_chars_in_text):
2294         Use EMACS_INT for string length variables and arguments.
2296         * character.h (parse_str_as_multibyte, str_as_multibyte)
2297         (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
2298         (c_string_width, strwidth, lisp_string_width):
2299         Adjust prototypes.
2301         * font.c (font_intern_prop): Use EMACS_INT for string length
2302         variables.
2304         * font.c (font_intern_prop): Use EMACS_INT for string length
2305         variables.
2307         * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
2308         variables.
2310         * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
2311         (Fmake_string): Protect against too large strings.
2312         (live_string_p, live_cons_p, live_symbol_p, live_float_p)
2313         (live_misc_p): Use ptrdiff_t instead of int for pointer
2314         differences.
2315         (string_bytes, check_sblock, check_string_free_list)
2316         (allocate_string_data, compact_small_strings, Fmake_string)
2317         (Fmake_bool_vector, make_string, make_unibyte_string)
2318         (make_multibyte_string, make_string_from_bytes)
2319         (make_specified_string_string, Fmake_list, Fmake_vector):
2320         Use EMACS_INT for string length variables and arguments.
2321         (find_string_data_in_pure, make_pure_string, make_pure_c_string)
2322         (Fpurecopy): Use EMACS_INT for string size.
2323         (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
2324         for vector size.
2326         * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
2327         (make_string_from_bytes, make_specified_string_string)
2328         (make_pure_string, string_bytes, check_point_in_composition):
2329         Adjust prototypes.
2331 2010-09-22  Eli Zaretskii  <eliz@gnu.org>
2333         * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
2334         (check_translation): Use EMACS_INT for buffer positions and
2335         length.
2337         * undo.c (record_marker_adjustment, record_delete)
2338         (record_change, record_point, record_insert)
2339         (record_property_change, Fprimitive_undo): Use EMACS_INT for
2340         buffer positions.
2342         * lisp.h (record_marker_adjustment, record_delete)
2343         (record_change, record_point, record_insert)
2344         (record_property_change, Fprimitive_undo): Adjust prototypes.
2346 2010-09-22  Juanma Barranquero  <lekktu@gmail.com>
2347             Eli Zaretskii  <eliz@gnu.org>
2349         * w32.c (get_emacs_configuration_options): Fix buffer overrun.
2351 2010-09-22  Eli Zaretskii  <eliz@gnu.org>
2353         * minibuf.c (Fminibuffer_contents)
2354         (Fminibuffer_contents_no_properties)
2355         (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
2356         positions.
2358         * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
2359         mark.
2361         * alloc.c (make_uninit_string, make_uninit_multibyte_string)
2362         (allocate_string_data): Accept EMACS_INT for string length.
2364         * editfns.c (Ffield_string, Ffield_string_no_properties)
2365         (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
2366         (Fbuffer_substring_no_properties, find_field, Fdelete_field)
2367         (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
2368         (Ffield_end): Use EMACS_INT for buffer positions.
2370         * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
2371         point with mark.
2373         * lisp.h (allocate_string_data, make_uninit_string)
2374         (make_uninit_multibyte_string, make_buffer_string)
2375         (make_buffer_string_both): Adjust prototypes.
2377 2010-09-22  Chong Yidong  <cyd@stupidchicken.com>
2379         * xml.c: Switch to GNU indentation.
2380         (make_dom): Change parse tree format to match xml.el.
2381         (Fxml_parse_html_string_internal): Rename from html-parse-string.
2382         (Fxml_parse_string_internal): Rename from xml-parse-string.
2384 2010-09-22  Kenichi Handa  <handa@m17n.org>
2386         * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
2387         only if we are not at a composition.
2388         (set_iterator_to_next): Give it->end_charpos to
2389         composition_compute_stop_pos.
2390         (set_iterator_to_next, next_element_from_buffer): Likewise.
2392         * dispnew.c (buffer_posn_from_coords): Fix position when the
2393         current display element is a grapheme cluster in bidi-reordered
2394         region.
2396 2010-09-21  Ari Roponen  <ari.roponen@gmail.com>  (tiny change)
2398         * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
2399         the regions may overlap.
2401 2010-09-21  Juanma Barranquero  <lekktu@gmail.com>
2403         * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
2405 2010-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
2407         * emacs.c: Do not include sys/ioctl.h, not needed.
2409         * doprnt.c: Do not include stdlib.h, config.h does it.
2410         Move #include before macro definition.
2412 2010-09-20  Dan Nicolaescu  <dann@ics.uci.edu>
2414         * Makefile.in (temacs): Link using $(CC) not $(LD).
2415         (LD_FIRSTFLAG): Define using autoconf.
2416         (LD): Remove.
2418         Remove HAVE_TERMIOS definitions.
2419         * s/usg5-4-common.h (HAVE_TERMIOS):
2420         * s/template.h (HAVE_TERMIOS):
2421         * s/gnu-linux.h (HAVE_TERMIOS):
2422         * s/darwin.h (HAVE_TERMIOS):
2423         * s/cygwin.h (HAVE_TERMIOS):
2424         * s/bsd-common.h (HAVE_TERMIOS):
2425         * s/aix4-2.h (HAVE_TERMIOS):
2426         * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
2427         defined on all non-MS platforms.
2428         (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
2430         * xterm.c (xt_action_hook): Use const.
2432 2010-09-20  Juanma Barranquero  <lekktu@gmail.com>
2434         Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
2435         * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
2436         (gethostname) [!HAVE_SOCKETS]: Remove.
2437         (SOCK_REPLACE_HANDLE): Remove macro.
2438         (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
2439         (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
2440         * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
2441         (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
2443 2010-09-18  Eli Zaretskii  <eliz@gnu.org>
2445         * deps.mk (xml.o): Add dependencies.
2447         * xdisp.c (Fcurrent_bidi_paragraph_direction):
2448         Call bidi_paragraph_init with NO_DEFAULT_P non-zero.  (Bug#7038)
2450         * bidi.c (bidi_paragraph_init): Accept an additional argument
2451         NO_DEFAULT_P; all callers changed.  If NO_DEFAULT_P is non-zero,
2452         search back until a paragraph with a strong directional character
2453         is found, and use that to determine paragraph's base direction.
2455         * dispextern.h (bidi_paragraph_init): Update prototype.
2457 2010-09-17  Eli Zaretskii  <eliz@gnu.org>
2459         * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
2460         of w32api >= 3.15.  (Bug#6989)
2462 2010-09-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2464         * process.c (wait_reading_process_output): Don't message about
2465         accept-process-output unless the time limit really is zero.
2467 2010-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
2469         * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
2470         int/Lisp_Object mixup).
2472 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
2474         * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
2475         not HELP.
2477 2010-09-17  Stephen Berman  <stephen.berman@gmx.net>
2479         * frame.c (Ftool_bar_pixel_width): New function to expose tool
2480         bar's pixel width to Lisp (Bug#7048).
2482 2010-09-14  Juanma Barranquero  <lekktu@gmail.com>
2484         * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
2486 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
2488         * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
2489         with argument top/left if tool bar is vertical/horizontal (Bug#7051).
2491 2010-09-17  Kenichi Handa  <handa@m17n.org>
2493         * ftfont.c (ftfont_check_otf): Fix previous change.
2495 2010-09-14  Kenichi Handa  <handa@m17n.org>
2497         * ftfont.c (ftfont_check_otf): Fix the case of checking just
2498         existence of GSUB or GPOS.
2500 2010-09-14  Juanma Barranquero  <lekktu@gmail.com>
2502         * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
2504 2010-09-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2506         * xml.c (parse_buffer): Rename to parse_string(), since that's
2507         what it does.
2508         (parse_string): Return nil when the document can't be parsed.
2510 2010-09-14  Jan Djärv  <jan.h.d@swipnet.se>
2512         * xterm.c (get_current_vm_state): New function.
2513         (do_ewmh_fullscreen): Call get_current_vm_state and compare with
2514         want_fullscreen so set_wm_state calls are few (Bug#7013).
2515         (x_handle_net_wm_state): Move code to get_current_vm_state and
2516         call that function.
2518 2010-09-14  Courtney Bane  <emacs-bugs-7626@cbane.org>  (tiny change)
2520         * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
2522 2010-09-14  Kenichi Handa  <handa@m17n.org>
2524         * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
2525         we may use designation or locking-shift.
2527 2010-09-14  Kenichi Handa  <handa@m17n.org>
2529         * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
2530         sequence when the source is multibyte.
2532 2010-09-14  Andreas Schwab  <schwab@linux-m68k.org>
2534         * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
2535         Don't make first argument optional.  Doc fix.
2537 2010-09-14  Leo  <sdl.web@gmail.com>  (tiny change)
2539         * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
2540         parameters for the doc string.
2542 2010-09-12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2544         * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
2546 2010-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2548         * fns.c (Fy_or_n_p): Move to lisp/subr.el.
2549         (syms_of_fns): Don't defsubr Sy_or_n_p.
2550         * lisp.h: Don't declare Fy_or_n_p.
2551         * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
2553 2010-09-09  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2555         * xml.c (Fxml_parse_buffer): New function to parse XML files.
2557 2010-09-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
2559         * xml.c: New file.
2560         (Fhtml_parse_buffer): New function to interface to the libxml2
2561         html parsing function.
2563 2010-09-05  Juanma Barranquero  <lekktu@gmail.com>
2565         * biditype.h: Regenerate.
2567 2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
2569         * nsimage.m (ns_load_image): Check argument types.
2571         * image.c: Remove all uses of gcpro.
2572         (xpm_load): Check all lisp types.
2573         (pbm_load): Likewise.
2574         (png_load): Likewise.
2575         (jpeg_load): Likewise.
2576         (tiff_load): Likewise.
2577         (gif_load): Likewise.
2578         (imagemagick_load_image): Likewise.
2579         (imagemagick_load): Likewise.
2580         (svg_load): Likewise.
2581         (gs_load): Likewise.
2583 2010-09-04  Eli Zaretskii  <eliz@gnu.org>
2585         * w32uniscribe.c (uniscribe_shape): Update commentary.
2586         Don't try to reorder grapheme clusters, since LGSTRING should always
2587         hold them in the logical order.
2588         (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
2589         return glyph codes in the logical order.
2591 2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
2593         * image.c (imagemagick_image_p): Replace bcopy by memcpy.
2594         (imagemagick_load_image): Fix type mismatch.
2595         (Fimagemagick_types): Likewise.  Doc fix.
2597 2010-09-02  Jan Djärv  <jan.h.d@swipnet.se>
2599         * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
2601         * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
2603         * xselect.c: Remove declaration of cut-buffer objects and functions.
2604         (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
2605         (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
2606         (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
2607         (Fx_rotate_cut_buffers_internal): Remove.
2608         (syms_of_xselect): Remove defsubr of above.
2609         Remove intern of QCUT_BUFFERn.
2611 2010-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2613         * cmds.c (Vblink_paren_function): Remove.
2614         (internal_self_insert): Make it insert N chars at a time.
2615         Don't call blink-paren-function.
2616         (Fself_insert_command): Adjust accordingly.
2617         (syms_of_cmds): Don't declare blink-paren-function.
2619 2010-08-31  Kenichi Handa  <handa@m17n.org>
2621         * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
2622         characters.
2624         * term.c (encode_terminal_code): Fix the previous change.
2625         (produce_glyphs): Don't set it->char_to_display here.
2626         Don't handle unibyte-display-via-language-environment here.
2627         (produce_special_glyphs): Set temp_it.char_to_display before
2628         calling produce_glyphs.
2630         * xdisp.c (get_next_display_element): Set it->char_to_display
2631         here.  Convert all 8-bit bytes from unibyte buffer/string to 8-bit
2632         characters.
2633         (get_overlay_arrow_glyph_row): Set it.char_to_display too before
2634         calling PRODUCE_GLYPHS.
2635         (append_space_for_newline): Save and store it->char_to_display.
2636         Set it->char_to_display before calling PRODUCE_GLYPHS.
2637         (extend_face_to_end_of_line): Set it->char_to_display before
2638         calling PRODUCE_GLYPHS.
2639         (get_glyph_face_and_encoding): Set the glyph code an 8-bit
2640         character to its byte value.
2641         (get_char_glyph_code): New function.
2642         (produce_stretch_glyph): Set it2.char_to_display too before
2643         calling x_produce_glyphs.
2644         (x_produce_glyphs): Simplify by using the same code for ASCII and
2645         non-ASCII characters.  Don't set it->char_to_display here.
2646         Don't handle unibyte-display-via-language-environment here.  For a
2647         character of no glyph, use font->space_width instead of FONT_WIDTH.
2649 2010-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
2651         * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
2653 2010-08-31  Chong Yidong  <cyd@stupidchicken.com>
2655         * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
2657 2010-08-30  Stefan Monnier  <monnier@iro.umontreal.ca>
2659         * marker.c (Fcopy_marker): Make the first arg optional.
2661 2010-08-30  Kenichi Handa  <handa@m17n.org>
2663         * composite.c (composition_update_it): Fix computing of
2664         cmp_it->width.
2666 2010-08-29  Kenichi Handa  <handa@m17n.org>
2668         * term.c (encode_terminal_code): Encode byte chars to the
2669         corresponding bytes.
2671 2010-08-29  Jan Djärv  <jan.h.d@swipnet.se>
2673         * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
2675 2010-08-26  Kenichi Handa  <handa@m17n.org>
2677         * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
2678         on calling composition_compute_stop_pos.
2680 2010-08-25  Kenichi Handa  <handa@m17n.org>
2682         * fontset.c (reorder_font_vector): Prefer a font-spec specifying
2683         :otf.
2685         * composite.c (composition_compute_stop_pos): Don't break
2686         composition at PT.
2687         (composition_reseat_it): Likewise.  Fix calculation of character
2688         position starting a composition.
2689         (Fcomposition_get_gstring): Don't limit the number of components
2690         for automatic composition.
2692 2010-08-25  Kenichi Handa  <handa@m17n.org>
2694         * composite.c (composition_compute_stop_pos): In forward search,
2695         pay attention to the possibility that some character after ENDPOS
2696         will be composed with charactrs before ENDPOS.
2698 2010-08-24  Chong Yidong  <cyd@stupidchicken.com>
2700         * keyboard.c (command_loop_1): Don't clobber primary selection
2701         during handle-switch-frame (Bug#6872).
2703 2010-08-23  Michael Albinus  <michael.albinus@gmx.de>
2705         * dbusbind.c: Accept UNIX domain sockets as bus address.
2706         (Fdbus_close_bus): New function.
2707         (Vdbus_registered_buses): New variable.
2708         (xd_initialize): Implement string as bus address.
2709         (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
2710         (Fdbus_get_unique_name, Fdbus_call_method)
2711         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2712         (Fdbus_method_error_internal, Fdbus_send_signal)
2713         (Fdbus_register_signal, Fdbus_register_method): Remove bus type
2714         check.  This is done in xd_initialize_bus.  Adapt doc string, if
2715         necessary.
2716         (xd_pending_messages, xd_read_queued_messages): Loop over buses in
2717         Vdbus_registered_buses.
2718         (Vdbus_registered_objects_table): Create hash.
2720 2010-08-22  Juri Linkov  <juri@jurta.org>
2722         * keyboard.c (Fexecute_extended_command): Move reading a command name
2723         with `completing-read' to a new Elisp function `read-extended-command'.
2724         Call it to read a command to `function'  (bug#5364, bug#5214).
2726 2010-08-22  Chong Yidong  <cyd@stupidchicken.com>
2728         * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
2730 2010-08-22  Andreas Schwab  <schwab@linux-m68k.org>
2732         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
2733         instead of SAFE_ALLOCA.
2735 2010-08-22  Chong Yidong  <cyd@stupidchicken.com>
2737         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
2738         (Bug#6214).
2740 2010-08-22  Jan Djärv  <jan.h.d@swipnet.se>
2742         * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
2744 2010-08-22  Jan Djärv  <jan.h.d@swipnet.se>
2746         * doc.c (Fsnarf_documentation): Initialize skip_file before
2747         build-files test.
2749 2010-08-22  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2751         * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
2752         New definitions.
2753         (HAVE_TERMIO): Remove.
2755 2010-08-22  Eli Zaretskii  <eliz@gnu.org>
2757         * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
2759         * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
2760         for w32.
2762         * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
2763         it's done in nt/config.nt.
2765         * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
2767         * unexcoff.c (report_error, make_hdr, write_segment)
2768         (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
2769         Convert argument lists and prototypes to ANSI C.
2770         (make_hdr, write_segment): Remove unused variables.
2771         (unexec): Remove commented-out line.  Initialize `new' to shut up
2772         compiler warnings.
2774 2010-08-22  Dan Nicolaescu  <dann@ics.uci.edu>
2776         Simplify termio code.
2777         All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
2778         HAVE_TERMIO code is obsolete.
2779         Replace HAVE_TERMIOS conditionals with !DOS_NT.
2780         * systty.h: Do not define HAVE_TCATTR.
2781         Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
2782         Do not define EMACS_HAVE_TTY_PGRP.  Only define
2783         EMACS_GET_TTY_PGRP for !DOS_NT.
2784         * sysdep.c: Include sysselect.h unconditionally.  Do not include
2785         sys/ioctl.h and termios.h, systty.h does it.
2786         Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
2787         (init_baud_rate): Remove HAVE_TERMIO code.
2788         (child_setup_tty): Remove HAVE_TERMIO code.
2789         (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
2790         and HAVE_LTCHARS code.  Use !DOS_NT instead of HAVE_TCATTR.
2791         (new_ltchars, new_tchars): Remove, unused.
2792         (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
2793         code.  Remove special casing for __mips__, it was a no-op.
2794         Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
2795         (init_sys_modes): Remove HPUX special case.
2796         * process.c: Include stdlib.h unconditionally.  Do not include
2797         fcntl.h, systty.h does it.  Remove conditional code for
2798         HAVE_SERIAL, it is always true.
2799         (process_send_signal): Remove HAVE_TERMIOS conditional, it's
2800         always true when SIGNALS_VIA_CHARACTERS is true.
2801         (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
2802         !WINDOWSNT means HAVE_TERMIOS.
2803         (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
2804         conditional, which is true for all HAVE_TERMIOS systems.
2805         * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
2806         instead of HAVE_TERMIOS.
2807         * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
2808         EMACS_HAVE_TTY_PGRP.
2809         * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
2810         non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
2811         anyway.
2813 2010-08-21  Eli Zaretskii  <eliz@gnu.org>
2815         * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
2816         mirroring pixel positions.
2818 2010-08-20  Dan Nicolaescu  <dann@ics.uci.edu>
2820         * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
2821         write only.
2822         (init_alloc_once): Remove writes to malloc_sbrk_unused, and
2823         malloc_sbrk_used, nothing uses them.
2825         * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
2826         defined, unconditionally defined in lisp.h.
2828         * term.c: Do not include <termios.h>, systty.h does it.
2830         * s/unixware.h (HAVE_TCATTR):
2831         * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
2832         systty.h defines it when HAVE_TERMIOS is defined.
2834 2010-08-20  Eli Zaretskii  <eliz@gnu.org>
2836         * dispnew.c (buffer_posn_from_coords): Fix last change for text
2837         terminals: add one-character offset for R2L lines.
2839         * emacs.c <emacs_version>: Add a comment regarding
2840         msdos/mainmake.v2's dependency on the syntax of this declaration.
2842 2010-08-20  Eli Zaretskii  <eliz@gnu.org>
2844         * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
2845         position for R2L lines by mirroring the pixel position wrt the
2846         text are box.  Improve commentary.
2848 2010-08-20  Andreas Schwab  <schwab@linux-m68k.org>
2850         * image.c (imagemagick_clear_image): Remove debugging output.
2852 2010-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
2854         * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
2855         (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
2856         (internal_self_insert): Run Qpost_self_insert_hook rather than handle
2857         self-insert-face.
2858         (syms_of_cmds): Initialize the new vars.
2860 2010-08-19  Jason Rumney  <jasonr@gnu.org>
2862         * w32menu.c (set_frame_menubar): Remove call to undefined function.
2864         * w32fns.c (w32_wnd_proc): Don't check context before initializing.
2866 2010-08-19  Jan Djärv  <jan.h.d@swipnet.se>
2868         * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
2870 2010-08-18  Eli Zaretskii  <eliz@gnu.org>
2872         * xterm.c (x_draw_bar_cursor):
2873         * w32term.c (x_draw_bar_cursor): If the character under cursor is
2874         R2L, draw the bar cursor on its right rather than on its left.
2876 2010-08-18  Stefan Monnier  <monnier@iro.umontreal.ca>
2878         * eval.c (Fdefmacro): Only obey one declaration.
2880         * casefiddle.c (casify_region): Setup gl_state.
2882 2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
2884         * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
2886 2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
2888         * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
2890 2010-08-18  David De La Harpe Golden  <david@harpegolden.net>
2892         * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
2893         (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
2894         QPRIMARY => NXPrimaryPboard.
2895         (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
2896         NXPrimaryPboard => QPRIMARY.
2897         (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
2898         NXSecondaryPboard = SecondarySelection.
2899         (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2901 2010-08-18  Joakim Verona  <joakim@verona.se>
2903         * image.c: Add support for ImageMagick.  When HAVE_IMAGEMAGICK is
2904         defined:
2905         (imagemagick_image_p): New function to test for ImageMagic image.
2906         (imagemagick_load): New function to load ImageMagick image.
2907         (imagemagick_load_image): New function, helper for imagemagick_load.
2908         (imagemagick-types): New function.
2909         (Qimagemagick): New Lisp_object.
2910         (imagemagick-render-type): New variable, decides which renderer to use.
2912 2010-08-17  Stefan Monnier  <monnier@iro.umontreal.ca>
2914         * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
2915         is a string.
2917 2010-08-17  Jan Djärv  <jan.h.d@swipnet.se>
2919         * nsfns.m (ns_frame_parm_handlers): Add a slot for the
2920         x_set_tool_bar_position handler.
2922 2010-08-17  Eli Zaretskii  <eliz@gnu.org>
2924         * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
2925         x_set_tool_bar_position handler, needed to support changes from
2926         2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar.  (Bug#6796)
2928 2010-08-16  Jan Djärv  <jan.h.d@swipnet.se>
2930         * nsselect.m: include keyboard.h for QPRIMARY, remove its
2931         declaration (Bug#6863).
2932         (syms_of_nsselect): Don't intern QPRIMARY.
2934         * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2936         * keyboard.h (QPRIMARY): Declare (Bug#6864).
2938 2010-08-16  Chong Yidong  <cyd@stupidchicken.com>
2940         * keyboard.c (command_loop_1): Avoid setting selection twice,
2941         since it's done in deactivate-mark as well.
2942         (Vselect_active_regions): Change default to t.  Replace `lazy'
2943         with non-default value `only', meaning only set PRIMARY for
2944         temporarily active regions.
2946         * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2947         select-active-regions.
2949 2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
2951         * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2952         isn't a string.
2954 2010-08-15  Andreas Schwab  <schwab@linux-m68k.org>
2956         * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2958 2010-08-15  Jan Djärv  <jan.h.d@swipnet.se>
2960         * keyboard.c (parse_tool_bar_item): malloc buf.
2961         Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2962         new_lbl (Bug#6855).
2964 2010-08-14  Eli Zaretskii  <eliz@gnu.org>
2966         * xterm.c (x_draw_stretch_glyph_string):
2967         * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2968         the cursor on the right edge of the stretch glyph.
2970         * xdisp.c (window_box_right_offset, window_box_right):
2971         Fix commentary.
2973         * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2974         direction when point is inside a run of whitespace characters.
2976         * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2978 2010-08-14  Jason Rumney  <jasonr@gnu.org>
2980         * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2982 2010-08-14  Chong Yidong  <cyd@stupidchicken.com>
2984         * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2986 2010-08-13  Jason Rumney  <jasonr@gnu.org>
2988         * w32menu.c (simple_dialog_show): Use unicode message box if available.
2989         (MessageBoxW_Proc): New function typedef.
2990         (unicode-message-box): New function pointer.
2991         (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2993 2010-08-13  Jan Djärv  <jan.h.d@swipnet.se>
2995         * frame.h (Qtool_bar_position): Declare.
2997         * xfns.c (Fx_create_frame): Call x_default_parameter for
2998         Qtool_bar_position.
3000 2010-08-13  Eli Zaretskii  <eliz@gnu.org>
3002         * unexcoff.c: Remove the parts used when "emacs" is not defined.
3003         (report_error, report_error_1): Ditto.
3004         (write_segment): Remove "#if 0" unused code.
3005         (make_hdr): Remove code that was "#ifndef NO_REMAP" before
3006         NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
3007         (start_of_text): Remove unused function (was used only if NO_REMAP
3008         was NOT defined).
3010         * msdos.c (IT_set_face): Fix format string to match argument
3011         types.
3012         (IT_write_glyphs, IT_note_mode_line_highlight)
3013         (IT_set_frame_parameters): Remove unused variables.
3014         (x_set_menu_bar_lines): Declare set_menu_bar_lines.
3015         (IT_set_terminal_modes): Disambiguate expression in if clause.
3016         (Fmsdos_remember_default_colors): Return Qnil.
3017         (IT_set_frame_parameters): Add parens to disambiguate boolean
3018         expression for logging the cursor type to termscript.
3019         (keyboard_layout_list, keypad_translate_map)
3020         (grey_key_translate_map): Add braces in inner initializers.
3021         (dos_rawgetc): Add parens in condition for mouse-3 button-press.
3022         (dos_rawgetc): Remove unused label.
3023         (XMenuActivate): Add braces to remove ambiguous `else'.
3024         (dos_ttraw): Always return a value.
3025         (spawnve): Declare.
3026         (run_msdos_command): Cast 3rd arg of spawnve to "char **".
3028         * dosfns.h (x_set_title): Declare.
3030         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
3031         Remove unused variables.
3033         * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
3034         variables.
3035         (init_dosfns): Declare get_lim_data.
3036         (system_process_attributes): Declare Fget_internal_run_time.
3038         * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
3039         list to be consistent with menu.h.
3041         * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
3042         warnings due to mixing of "char *" and "const char *".
3044 2010-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3046         Introduce a new comment style "c" flag.
3047         * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
3048         (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
3049         (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
3050         (syntax_prefix_flag_p): New function.
3051         (Fstring_to_syntax): Understand new "c" flag.
3052         (Finternal_describe_syntax_value): Recognize new flag; use the
3053         SYNTAX_FLAGS_* macros.
3054         (scan_sexps_forward, Fparse_partial_sexp): Change representation of
3055         comment style to accomodate the new styles.
3056         (back_comment, forw_comment, Fforward_comment, scan_lists)
3057         (scan_sexps_forward): Update code to obey the new comment style flag.
3059         * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
3061         * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
3063 2010-08-11  Jan Djärv  <jan.h.d@swipnet.se>
3065         * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
3066         first.
3067         (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3069         * gtkutil.h (xg_check_special_colors): Declare.
3071         * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
3072         (xg_create_frame_widgets): Connect theme name changes to
3073         style_changed_cb.
3075         * xterm.c (emacs_class): New char[] for EMACS_CLASS.
3076         (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
3077         (x_term_init): Use char[] display_opt and name_opt instead of
3078         string literal.  file is const char*.
3080         * xsmfns.c (NOSPLASH_OPT): Change to char[].
3081         (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
3082         props.  Free them at the end.
3084         * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
3086         * xrdb.c (get_system_app): Make path const and use char *p for
3087         non-const char.
3089         * xmenu.c (Fx_popup_dialog): error_name is const char*.
3090         (xmenu_show): error parameter is const char **.  pane_string is const
3091         char *.
3092         (button_names): Is const char *.
3093         (xdialog_show): error_name and pane_string is const.
3095         * process.h (synch_process_death): Is const char*.
3097         * w32menu.c (w32_menu_show):
3098         * nsmenu.m (ns_menu_show): error parameter is const char **.
3100         * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
3101         is const char **.
3103         * menu.c (Fx_popup_menu): error_name is const.
3105         * keyboard.h (_widget_value): Add defined USE_GTK.  Replace Boolean
3106         with unsigned char and XtPointer with void *.
3108         * gtkutil.h: Replace widget_value with struct _widget_value.
3109         (enum button_type, struct _widget_value): Remove and use the one from
3110         keyboard.h.
3112         * gtkutil.c (get_utf8_string): Always return an allocated string.
3113         Parameter is const.
3114         (create_dialog, xg_create_one_menuitem, create_menus)
3115         (xg_item_label_same_p, xg_update_menu_item): Free result from
3116         get_utf8_string.
3117         (xg_separator_p, xg_item_label_same_p): label is const.
3119         * font.h (font_open_by_name): Make name const.
3121         * font.c (font_open_by_name): Make name const.
3123         * floatfns.c (matherr): Use a const char* variable for x->name.
3125         * emacs.c (main): Pass char[] to putenv instead of literal.
3127         * callproc.c (synch_process_death): Make const.
3128         (Fcall_process): Make signame const.
3130         * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
3131         (addDisplayItemWithImage): Use const char*.
3133         * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
3134         (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
3136         * nsfont.m (ns_descriptor_to_entity): Use const char*.
3138         * keyboard.h (_widget_value): name, value and key are const char*.
3140         * unexmacosx.c (unexec_error): Use const char *.
3142 2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
3144         * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
3145         (font_parse_name, font_open_by_name):
3146         * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
3147         (font_parse_name, font_open_by_name): Remove const.
3149 2010-08-09  Andreas Schwab  <schwab@linux-m68k.org>
3151         Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
3152         definition.
3154         * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
3155         * m/amdx86-64.h: Likewise.
3156         * m/arm.h: Likewise.
3157         * m/hp800.h: Likewise.
3158         * m/ia64.h: Likewise.
3159         * m/ibmrs6000.h: Likewise.
3160         * m/ibms390.h: Likewise.
3161         * m/intel386.h: Likewise.
3162         * m/iris4d.h: Likewise.
3163         * m/m68k.h: Likewise.
3164         * m/macppc.h: Likewise.
3165         * m/mips.h: Likewise.
3166         * m/sh3.h: Likewise.
3167         * m/sparc.h: Likewise.
3168         * m/template.h: Likewise.
3169         * m/vax.h: Likewise.
3170         * m/xtensa.h: Likewise.
3171         * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
3172         WORDS_BIG_ENDIAN.
3173         * lisp.h: Likewise.
3174         * md5.c: Likewise.
3175         * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
3177 2010-08-09  Dan Nicolaescu  <dann@ics.uci.edu>
3179         Use const char* instead of char*.
3180         Reduce the number of warnings with -Wwrite-strings.
3181         * xrdb.c (get_environ_db, get_system_name):
3182         * unexelf.c (find_section):
3183         * term.c (string_cost, string_cost_one_line, per_line_cost)
3184         (get_named_tty, init_tty):
3185         * sysdep.c (sys_subshell):
3186         * sound.c (sound_perror, sound_warning, vox_open, vox_init)
3187         (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
3188         * search.c (Freplace_match):
3189         * process.c (Fmake_network_process, send_process, init_process):
3190         * lread.c (Fload, init_lread):
3191         * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
3192         * keyboard.c (parse_tool_bar_item, struct event_head):
3193         * gtkutil.h (xg_get_font_name):
3194         * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
3195         (make_widget_for_menu_item, make_menu_item, create_menus)
3196         (xg_make_tool_item):
3197         * font.c (parse_matrix, font_parse_name):
3198         * floatfns.c (rounding_driver, float_error_fn_name):
3199         * filelock.c (get_boot_time_1, lock_file_1):
3200         * fileio.c (barf_or_query_if_file_exists, check_writable):
3201         * editfns.c (get_system_name, get_operating_system_release)
3202         (Fencode_time, Fset_time_zone_rule):
3203         * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
3204         * buffer.c (defvar_per_buffer): Use const.
3206 2010-08-08  Kenichi Handa  <handa@m17n.org>
3208         * charset.c: Include <stdlib.h>.
3209         (struct charset_sort_data): New struct.
3210         (charset_compare): New function.
3211         (Fsort_charsets): New function.
3212         (syms_of_charset): Declare Fsort_charsets as a Lisp function.
3214         * coding.c (decode_coding_iso_2022): Fix checking of dimension
3215         number in CTEXT extended segment.
3217 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
3219         * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
3220         * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
3222 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
3224         * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
3225         (Fhash_table_size): Fix typos in docstrings.
3226         (Fmake_hash_table): Doc fix.
3228 2010-08-08  Juanma Barranquero  <lekktu@gmail.com>
3230         * minibuf.c (syms_of_minibuf) <read-buffer-function>:
3231         Doc fix (bug#5625).
3233 2010-08-08  Ken Brown  <kbrown@cornell.edu>
3235         * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
3236         the MSDOS definition.
3238 2010-08-08  Dan Nicolaescu  <dann@ics.uci.edu>
3240         Use const char* instead of char*.
3241         * xterm.c (x_create_toolkit_scroll_bar):
3242         * xfont.c (xfont_list_pattern):
3243         * xfns.c (x_default_scroll_bar_color_parameter)
3244         (xic_create_fontsetname, x_default_font_parameter)
3245         (x_screen_planes):
3246         * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
3247         (store_mode_line_string, decode_mode_spec, display_string):
3248         * menu.c (digest_single_submenu):
3249         * keymap.h (initial_define_key, initial_define_lispy_key):
3250         * keymap.c (initial_define_key, initial_define_lispy_key):
3251         * image.c (image_error, image_keyword):
3252         * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
3253         * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
3254         * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
3255         (ftfont_list, ftfont_match):
3256         * frame.c (frame_parm_table):
3257         * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3258         (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3259         (font_add_log, font_deferred_log):
3260         * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
3261         (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
3262         (font_add_log, font_deferred_log):
3263         * emacs.c (argmatch):
3264         * dispextern.h (struct it):
3265         * coding.c (ENCODE_DESIGNATION):
3266         * charset.c (define_charset_internal): Use const.
3268         * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
3270         * xrdb.c: Remove include guard.
3271         Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
3272         Remove #if 0 code.  Replace malloc->xmalloc, free->xfree,
3273         realloc->xrealloc instead of using #defines.
3275 2010-08-08  Eli Zaretskii  <eliz@gnu.org>
3277         * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
3278         * editfns.c (Fline_beginning_position, Fline_end_position):
3279         State in the doc strings that start and end of line are in the
3280         logical order.
3282         * xdisp.c (display_line): Move the handling of overlay arrow after
3283         the call to find_row_edges.  (Bug#6699)
3285 2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
3287         * keyboard.c (command_loop_1):
3288         * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
3290 2010-08-07  Chong Yidong  <cyd@stupidchicken.com>
3292         * insdel.c (prepare_to_modify_buffer): Save active region text to
3293         Vsaved_region_selection.
3295         * xselect.c (QPRIMARY): Move to keyboard.c.
3297         * keyboard.c (Vselect_active_regions): Move from simple.el.
3298         (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
3299         (command_loop_1): Set window selection prior to deactivating the mark.
3301 2010-08-07  Juanma Barranquero  <lekktu@gmail.com>
3303         * alloc.c (lisp_malloc):
3304         * buffer.c (set_buffer_internal, set_buffer_internal_1):
3305         * charset.h (emacs_mule_charset):
3306         * dispextern.h (inhibit_free_realized_faces, redraw_frame)
3307         (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
3308         (bitch_at_user):
3309         * lisp.h (Fcheck_coding_system, Fget_text_property)
3310         (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
3311         Remove duplicate declarations.
3313 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
3315         * process.c: Simplify include logic.
3317         * keyboard.h (quit_char): Add declaration.
3318         * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
3319         (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
3320         Add declarations.
3321         * sysdep.c:
3322         * w32.c: Remove the above declarations.
3324         Remove extern declarations in .c files, .h files have them.
3325         * xterm.c:
3326         * xdisp.c:
3327         * msdos.c:
3328         * image.c:
3329         * gtkutil.c:
3330         * fileio.c:
3331         * eval.c: Remove declarations.
3333         * frame.c (frame_params): Make const.
3335         * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
3337         * emacs.c (emacs_copyright, emacs_version): Make static.
3338         (Vinitial_window_system, Vauto_save_list_file_name)
3339         (Vinhibit_redisplay): Remove declarations.
3340         (main): Remove HAVE_SHM code, unused.  Remove _I386 conditional
3341         for AIX.
3343         Use const for some arrays and functions.
3344         * xterm.h (xg_set_icon_from_xpm_data):
3345         * xfns.c (xg_set_icon_from_xpm_data):
3346         * term.c (fkeys):
3347         * keyboard.c (lispy_accent_keys, lispy_function_keys)
3348         (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
3349         (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
3350         (frame.c frame_parms):
3351         * emacs-icon.h (gnu_xpm_bits):
3352         * callint.c (callint_argfuns): Use const.
3354 2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
3356         * sysdep.c: Move include term.h last of includes (Bug#6812).
3358 2010-08-06  Eli Zaretskii  <eliz@gnu.org>
3360         * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
3362         * msdos.c (IT_display_cursor): Log cursor position on termscript.
3364         * .gdbinit (pgx): Display the avoid_cursor_p flag.
3366 2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
3368         * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
3370 2010-08-06  Jan Djärv  <jan.h.d@swipnet.se>
3372         * xterm.h (x_get_focus_frame): Declare.
3374         * keyboard.h (poll_for_input_1): Unconditionally declare.
3376         * nsterm.h (x_set_menu_bar_lines): Declare.
3378         * window.c: Don't include menu.h, it depends on lots of other .h-files.
3380         * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
3382         * window.c: Include menu.h.
3384         * unexmacosx.c (print_region_list, print_regions)
3385         (build_region_list, find_emacs_zone_regions)
3386         (unexec_regions_merge, read_load_commands, dump_it)
3387         (unexec_init_emacs_zone): Convert to ANSI C prototypes.
3389         * term.c: Check HAVE_SYS_IOCTL_H.
3391         * sysdep.c: Check HAVE_TERM_H.
3393         * process.c: Check HAVE_UTIL_H.  Include nsterm.h if HAVE_NS.
3395         * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
3396         (ns_ring_bell, ns_defined_color, hide_hourglass)
3397         (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
3398         Convert to ANSI C prototypes.
3399         (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
3400         before code.
3402         * nsterm.h : Include sysselect.h.
3403         (x_sync, x_get_focus_frame, x_set_mouse_position)
3404         (x_set_mouse_pixel_position, x_make_frame_visible)
3405         (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
3406         (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
3407         (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
3408         (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
3409         Declare.
3411         * nsmenu.m (popup_activated, name_is_separator)
3412         (syms_of_nsmenu): Convert to ANSI C prototypes.
3413         (runMenuAt): Prototypes and move declarations before code.
3415         * nsimage.m (ns_load_image): Move NSTRACE after declarations.
3417         * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
3418         prototypes.
3420         * nsfns.m (have_menus_p, ns_display_info_for_name)
3421         (x_set_cursor_type, ns_appkit_version_str)
3422         (ns_appkit_version_int, ns_do_applescript)
3423         (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
3424         (syms_of_nsfns): Convert to ANSI C prototypes.
3426         * menu.h (x_set_menu_bar_line): Declare.
3427         (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
3429         * lisp.h (fmod_float): Declare.
3431         * image.c (xpm_scan, xpm_make_color_table_v)
3432         (xpm_put_color_table_v, xpm_get_color_table_v)
3433         (xpm_make_color_table_h, xpm_put_color_table_h)
3434         (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
3435         (xpm_load): Convert to ANSI C prototypes.
3437         * emacs.c: Include nsterm.h if HAVE_NS.
3439         * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
3441 2010-08-06  Dan Nicolaescu  <dann@ics.uci.edu>
3443         * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
3444         subprocesses, only MSDOS does not define HAVE_SOCKETS.
3445         (socket_options): Use const char* for name.
3447 2010-08-06  Juanma Barranquero  <lekktu@gmail.com>
3449         Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
3451         * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
3452         Don't declare xmalloc_widget_value and digest_single_submenu.
3454         * w32font.c (Qlatin): Remove declaration.
3456         * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
3458         * dired.c (compile_pattern): Restore declaration.
3460 2010-08-05  Dan Nicolaescu  <dann@ics.uci.edu>
3462         Remove extern declarations in .c files, .h files have them.
3463         * data.c:
3464         * dired.c:
3465         * editfns.c:
3466         * filelock.c:
3467         * fns.c:
3468         * font.c:
3469         * fontset.c:
3470         * frame.c:
3471         * fringe.c:
3472         * ftfont.c:
3473         * gtkutil.c:
3474         * indent.c:
3475         * keyboard.c:
3476         * keymap.c:
3477         * lread.c:
3478         * menu.c:
3479         * print.c:
3480         * search.c:
3481         * sound.c:
3482         * window.c:
3483         * xdisp.c:
3484         * xfaces.c:
3485         * xfns.c:
3486         * xfont.c:
3487         * xftfont.c:
3488         * xmenu.c:
3489         * xterm.c: Remove declarations.
3491         Cleanup syssignal.h.
3492         * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
3493         (main_thread): Move down to remove #ifdef.
3494         (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
3495         Remove conditional definition following unconditional ones.
3497         * lisp.h: Remove HAVE_SHM code, unused.
3498         (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
3499         (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
3500         (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
3501         (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
3502         (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
3503         (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
3504         (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
3505         (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
3506         (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
3507         (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
3508         (Qwindow_scroll_functions, Vafter_load_alist)
3509         (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
3510         (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
3511         (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
3512         (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
3513         (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
3514         (Vwindow_system_version, Vx_no_window_manager, initial_argc)
3515         (initial_argv, last_nonmenu_event, load_in_progress)
3516         (noninteractive_need_newline, scroll_margin): Add declarations.
3518         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3519         Remove declarations, menu.h has them.
3520         (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
3521         (Vinput_method_function, Qinput_method_function)
3522         (Qevent_symbol_element_mask, last_event_timestamp):
3523         * dispextern.h (Voverflow_newline_into_fringe):
3524         * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
3525         (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
3526         (syms_of_w32font, syms_of_nsfont):
3527         * fontset.h (find_font_encoding, Qlatin):
3528         * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
3529         (Vtool_bar_mode, set_frame_menubar):
3530         * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
3531         * xterm.h (Qx_gtk_map_stock):
3532         * keymap.h (meta_prefix_char): Add declarations.
3534         * term.c: Remove dead code.
3536         Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
3537         * term.c (dissociate_if_controlling_tty): Use USG5 instead of
3538         USG.  This is equivalent to defined (USG) && !defined (BSD_PGRPS),
3539         which is what was there before BSD_PGRPS was removed.
3541 2010-08-05  Eli Zaretskii  <eliz@gnu.org>
3543         * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
3545         * unexcoff.c: Renamed from unexec.c.
3547 2010-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
3549         * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
3551 2010-08-03  Johan Bockgård  <bojohan@gnu.org>
3553         * data.c (Flocal_variable_p): Handle variable aliases correctly.
3554         (Bug#6744)
3556 2010-08-02  Jan Djärv  <jan.h.d@swipnet.se>
3558         * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
3559         to TRUE if depth of screen is < 16.
3561         * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
3562         USE_GTK_TOOLTIP.
3563         (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
3564         (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
3565         (xg_create_frame_widgets): Surround tooltip-related code with ifdef
3566         USE_GTK_TOOLTIP.
3567         (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
3569         * xterm.h (USE_GTK_TOOLTIP): New define.
3570         (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
3572         * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
3573         to Control-D (Bug#6771).
3575 2010-08-02  Juanma Barranquero  <lekktu@gmail.com>
3577         * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
3578         Wording by Drew Adams <drew.adams@oracle.com>.
3580 2010-08-01  Jan Djärv  <jan.h.d@swipnet.se>
3582         * xterm.h (struct x_output): Add ttip_widget, ttip_window and
3583         ttip_lbl.
3585         * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
3586         calling gtk_widget_queue_draw.
3587         (x_free_frame_resources): Call xg_free_frame_widgets.
3589         * xfns.c (x_gtk_use_system_tooltips): New variable.
3590         (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
3591         new gtkutil tooltip functions to show the tooltip.
3592         (Fx_hide_tip): Call xg_hide_tooltip.
3593         (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
3595         * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
3596         (xg_show_tooltip, xg_hide_tooltip): Declare.
3598         * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
3599         (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
3600         New functions.
3601         (xg_create_frame_widgets): Set ttip_* to 0.  Set a dummy tooltip
3602         text so qttip_cb is called.  Connect query-tooltip to qttip_cb.
3603         Remove code that is commented out.
3605 2010-08-01  Stefan Monnier  <monnier@iro.umontreal.ca>
3607         * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
3609 2010-07-31  Chong Yidong  <cyd@stupidchicken.com>
3611         * xselect.c (x_own_selection): Use list4.
3613 2010-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
3615         * buffer.c (Qwindow): Do not define, already defined in data.c.
3616         (syms_of_buffer): Do not intern and staticpro Qwindow.  (Bug#6760)
3618 2010-07-29  Martin Rudalics  <rudalics@gmx.at>
3620         * buffer.c (Fbuffer_list): Rewrite doc-string, reformat.
3621         (Fother_buffer): Rewrite doc-string, restructure.
3622         (Fkill_buffer): Call replace_buffer_in_windows and
3623         replace_buffer_in_windows_safely.
3624         (record_buffer): Inhibit quitting and rewrite using quittable
3625         functions.
3626         (Funrecord_buffer): Inhibit quitting around buffer list
3627         manipulations.
3629         * window.h (struct window): Add new members prev_buffers and
3630         next_buffers.
3631         (replace_buffer_in_all_windows): Remove extern.
3632         (replace_buffer_in_windows_safely): Add extern.
3634         * window.c (Fwindow_prev_buffers, Fset_window_prev_buffers)
3635         (Fwindow_next_buffers, Fset_window_next_buffers): New functions.
3636         (windw_loop): Replace UNSHOW_BUFFER by
3637         REPLACE_BUFFER_IN_WINDOWS_SAFELY.
3638         (window_show_other_buffer): Remove.
3639         (window_loop): Replace UNSHOW_BUFFER case by
3640         REPLACE_BUFFER_IN_WINDOWS_SAFELY - the real work is done in
3641         replace-buffer-in-windows which is in window.el.
3642         (Freplace_buffer_in_windows): Move to window.el.
3643         (replace_buffer_in_all_windows): Remove.
3644         (replace_buffer_in_windows, replace_buffer_in_windows_safely):
3645         New functions.
3646         (Fset_window_buffer): Restructure and call
3647         Qrecord_window_buffer.
3648         (make_window): Initialize missing and new Lisp slots.
3649         (syms_of_window): Add Qreplace_buffer_in_windows and
3650         Qrecord_window_buffer.
3652 2010-07-29  Chad Brown  <yandros@mit.edu>
3654         Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
3655         * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
3656         * config.in: Undef HAVE_DIRENT_H.
3657         * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
3658         * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
3660 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
3662         Rename s/usg5-4.h -> s/usg5-4-common.h.
3663         * s/usg5-4.h: Rename file to ...
3664         * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
3665         * s/unixware.h:
3666         * s/sol2-6.h:
3667         * s/irix6-5.h: Update includes accordingly.
3669 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
3671         * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
3673         * xterm.h (struct x_output): Add toolbar_top_height,
3674         toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
3675         Remove toolbar_height.
3676         If USE_GTK: Add hbox_widget and toolbar_in_hbox.
3677         (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
3678         (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
3679         (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
3681         * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3683         * xfns.c (x_set_tool_bar_position): New function.
3684         (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
3685         (x_frame_parm_handlers): Add x_set_tool_bar_position.
3686         (syms_of_xfns): If USE_GTK, provide move-toolbar.
3688         * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
3689         and FRAME_TOOLBAR_LEFT_WIDTH.
3691         * gtkutil.h (xg_change_toolbar_position): Declare.
3693         * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
3694         (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
3695         (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
3696         (xg_create_frame_widgets): Create a hobox for placing widgets
3697         vertically.  Use gtk_box_pack_start.
3698         (xg_height_or_width_changed): Rename from xg_height_changed.
3699         (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
3700         (xg_update_frame_menubar, free_frame_menubar): Change to
3701         xg_height_or_width_changed.
3702         (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
3703         size correctly.  Remove hardcoded 4, instead use handlebox size -
3704         toolbar size.
3705         (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
3706         size correctly.  Use handlebox size + toolbar size as additional size.
3707         (xg_pack_tool_bar): POS is a new parameter.
3708         Set orientation of tool bar based on pos.
3709         Only make handlebox_widget if NULL.
3710         Check if tool bar goes to vbox or hbox depending on pos.
3711         (xg_update_tool_bar_sizes): New function.
3712         (update_frame_tool_bar): Remove old_req, new_req.  Do not get tool bar
3713         height, call xg_update_tool_bar_sizes instead.
3714         (free_frame_tool_bar): Remove from hbox or vbox depending on
3715         toolbar_in_hbox,  Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
3716         (xg_change_toolbar_position): New function.
3718         * frame.h (struct frame): Add tool_bar_position.
3719         (Qbottom): Declare.
3721         * frame.c (Qtool_bar_position): New variable.
3722         (make_frame): Set tool_bar_position to Qtop.
3723         (frame_parms): Add tool-bar-position.
3724         (x_report_frame_params): Store tool_bar_position.
3725         (x_set_fringe_width): Reset wm size hint after fringe changes.
3727 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
3729         Make lisp_time_argument declaration work on all systems.
3730         * lisp.h (lisp_time_argument): Move declaration ...
3731         * systime.h (lisp_time_argument): ... here
3732         * editfns.c (lisp_time_argument): Remove declaration.  (Bug#6751)
3734 2010-07-29  Jan Djärv  <jan.h.d@swipnet.se>
3736         * vm-limit.c (POINTER): Add typedef for it.
3737         (start_of_data): Change return type from POINTER to char *.
3739         * frame.h (Qtty_color_mode): Move declaration out of ifdef
3740         HAVE_WINDOW_SYSTEM.
3742 2010-07-29  Dan Nicolaescu  <dann@ics.uci.edu>
3744         * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
3745         Remove reference to __osf__, unused.
3747         * mem-limits.h: Remove duplicated includes.
3748         (NULL): Remove definition, unused.
3749         (POINTER): Remove definition.
3750         (start_of_data): Use char* in prototype, as the function
3751         definition does.
3753         Remove extern declarations from .c files, and them to .h files.
3754         * keyboard.h (Qhelp_echo, waiting_for_input)
3755         (input_available_clear_time, ignore_mouse_drag_p)
3756         (Vdouble_click_time, real_this_command, Vthis_original_command):
3757         * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
3758         (Voverriding_local_map_menu_flag):
3759         * lisp.h (Qinteractive_form, use_file_dialog)
3760         (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
3761         (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
3762         (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
3763         (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
3764         (Qfunction, debug_on_next_call, Qfield)
3765         (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
3766         (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
3767         (Qfile_directory_p, Qinsert_file_contents)
3768         (Qcompletion_ignore_case, Qcompletion_ignore_case)
3769         (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
3770         (history_delete_duplicates, minibuffer_auto_raise, Qonly)
3771         (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
3772         (Qminibuffer_prompt)
3773         (Vtemporary_file_directory,char_ins_del_vector, Qface):
3774         * xterm.h (gray_bitmap_width, gray_bitmap_height)
3775         (gray_bitmap_bits, xic_create_fontsetname):
3776         * coding.h (Vtranslation_table_for_input): Add extern declarations.
3778         * xsmfns.c (Vuser_login_name):
3779         * xrdb.c (Vdouble_click_time):
3780         * xfaces.c (xic_create_fontsetname):
3781         * w32select.c (waiting_for_input):
3782         * print.c (minibuffer_auto_raise):
3783         * msdos.c (Qhelp_echo):
3784         * macros.c (real_this_command):
3785         * keymap.c (Voverriding_local_map):
3786         * xterm.c (poll_for_input_1, gray_bitmap_width)
3787         (gray_bitmap_height, gray_bitmap_bits;
3788         * xmenu.c ( Voverriding_local_map)
3789         (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
3790         (use_file_dialog, Xt_app_con):
3791         * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
3792         (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
3793         (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
3794         (Qtool_bar_lines, ignore_mouse_drag_p):
3795         * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
3796         (Qrear_nonsticky, nconc2):
3797         * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
3798         (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
3799         (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
3800         * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
3801         (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
3802         * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
3803         (gc_in_progress):
3804         * doc.c (Voverriding_local_map, Qremap):
3805         * dired.c (completion_ignore_case, Qcompletion_ignore_case)
3806         (Vcompletion_regexp_list):
3807         * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
3808         (Qcompletion_ignore_case):
3809         * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
3810         (Vhistory_length, Vthis_original_command, real_this_command)
3811         (Qface, Qminibuffer_prompt, history_delete_duplicates):
3812         * image.c (Qrisky_local_variable):
3813         * fontset.c (QCname):
3814         * fns.c (minibuffer_auto_raise, QCname):
3815         * dispnew.c (char_ins_del_cost):
3816         * composite.c (font_fill_lglyph_metrics):
3817         * cmds.c (Qface, Vtranslation_table_for_input):
3818         * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
3819         * ccl.c (charset_unicode):
3820         * callproc.c (Vtemporary_file_directory):
3821         * buffer.c (emacs_strerror): Remove extern declarations.
3823         * data.c (Qwindow): Make non-static, used from other files too.
3824         * frame.c (validate_x_resource_name): Remove shadow definition for i.
3826         * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
3827         SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
3828         * s/usg5-4.h (COFF):
3829         * s/template.h:
3830         * s/msdos.h (COFF, NO_REMAP):
3831         * s/ms-w32.h (NO_REMAP):
3832         * s/hpux10-20.h (NO_REMAP):
3833         * m/sparc.h (SEGMENT_MASK):
3834         * m/m68k.h (NO_REMAP):
3835         * m/intel386.h (SEGMENT_MASK):
3836         * m/arm.h (NO_REMAP):
3837         * m/alpha.h (COFF):
3838         * m/template.h: Remove references to unused defines.
3840 2010-07-28  Jan Djärv  <jan.h.d@swipnet.se>
3842         * xsettings.c (Ftool_bar_get_system_style): Also check for
3843         Qtext_image_horiz.
3845         * xdisp.c (Qtext_image_horiz): Define.
3846         (syms_of_xdisp): Initialize Qtext_image_horiz.  Add text-image-horiz
3847         to documentation of tool-bar-style.
3849         * lisp.h (Qtext_image_horiz): Declare.
3851         * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
3852         style text_image_horiz.
3854 2010-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
3856         * emacs.c (Fkill_emacs): Remove return statement.
3858         * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
3859         (encode_terminal_code, produce_composite_glyph): Remove unused variables.
3860         (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
3861         Remove local extern declarations.
3863         * xmenu.c: Do not included lwlib.h, not needed.
3865         * m/iris4d.h (XUINT, XSET): Remove, not needed.
3867         * process.c: Move definitions earlier to minimize #ifdefs.
3869         * xterm.h (x_get_customization_string, x_load_resources)
3870         (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
3871         (x_check_errors, x_property_data_to_lisp, defined_color)
3872         (xic_set_xfontset, x_defined_color): Use const.
3874         * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
3875         (x_text_icon, x_check_errors, x_connection_closed): Use const.
3877         * xselect.c (selection_data_to_lisp_data)
3878         (x_property_data_to_lisp):
3879         * xrdb.c (x_get_string_resource, file_p)
3880         (x_get_customization_string, magic_file_p, search_magic_path)
3881         (get_system_app, get_user_app, x_load_resources, x_get_resource)
3882         (x_get_string_resource): Use const.
3884         * xfns.c: Include xlwmenu.h when USE_LUCID.
3885         (x_defined_color, xic_set_xfontset): Use const.
3886         (Fx_hide_tip): Remove local extern declaration.
3888         * xfaces.c (Qmouse_face): Remove declaration.
3889         (face_color_gray_p, tty_defined_color, defined_color)
3890         (face_color_gray_p, face_color_supported_p): Add const.
3892         * xdisp.c (do_mouse_tracking): Remove declaration.
3893         (add_to_log): Use const.
3895         * minibuf.c (Qmouse_face): Remove declaration.
3897         * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
3899         * keyboard.h (do_mouse_tracking): Add declaration.
3901         * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
3902         (QCdata, QCtype, Qcenter): Remove declarations.
3904         * frame.c (x_get_resource_string, x_get_string_resource)
3905         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3906         (x_default_parameter): Use const.
3908         * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
3909         (QCheight, QCsize, QCname): Remove declarations.
3911         * emacs.c (main): Remove local extern declaration.
3913         * editfns.c (region_limit, syms_of_editfns): Remove local extern
3914         declarations.
3916         * dispnew.c: Remove duplicate #include <unistd.h>.
3917         (update_window, update_frame_1, init_display): Remove local extern
3918         declarations.
3920         * dispextern.h (add_to_log): Remove declaration.
3921         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3922         (x_frame_get_and_record_arg, x_default_parameter): Add const.
3924         * dired.c (scmp): Add const.
3925         (directory_files_internal): Remove local extern declaration.
3927         * data.c (Finteractive_form): Use const.
3929         * composite.c (syms_of_composite): Remove local extern declarations.
3931         * charset.c (add_to_log): Remove declaration.
3933         * character.c (strwidth, parse_str_to_multibyte): Add const.
3935         * character.h (strwidth, parse_str_to_multibyte): Likewise.
3937         * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
3939         * lisp.h (Fkill_emacs): Mark as NO_RETURN.
3940         (Lisp_Subr): Make doc and intspec constant.
3941         (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
3942         (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
3943         (QCheight, QCsize, QCname, QCwidth, QCforeground)
3944         (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
3945         (display_arg): Add declarations.
3947 2010-07-27  Christoph Scholtes  <cschol2112@gmail.com>
3949         * minibuf.c (Fread_buffer): Doc fix (bug#6528).
3951         * window.c (Fwindow_height): Doc fix (bug#6518).
3953 2010-07-27  Juanma Barranquero  <lekktu@gmail.com>
3955         * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
3957 2010-07-26  Dan Nicolaescu  <dann@ics.uci.edu>
3959         * keyboard.c (Ftop_level, Fexit_recursive_edit)
3960         (Fabort_recursive_edit): Remove return statements in NO_RETURN
3961         functions.
3963         * frame.h (Qtty_color_mode): Add declaration.
3965         * lisp.h (Ftop_level, Fexit_recursive_edit)
3966         (Fabort_recursive_edit): Mark as NO_RETURN.
3968 2010-07-26  Kenichi Handa  <handa@m17n.org>
3970         * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
3971         number of glyphs gets smaller than the original length.  (Bug#6621)
3973 2010-07-26  Juanma Barranquero  <lekktu@gmail.com>
3975         * lread.c (unreadpure, mapatoms_1): Make static.
3977 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
3979         * terminfo.c (tparam): Fix prototype of tparm.
3981 2010-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3983         * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3984         find start of text segment.
3985         * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3986         is defined.
3988         * callproc.c (set_initial_environment): Avoid unbalanced braces.
3990 2010-07-25  Ken Brown  <kbrown@cornell.edu>
3992         * vm-limit.c (check_memory_limits): Fix previous change;
3993         accidentally reverted an earlier change.
3995 2010-07-25  Ken Brown  <kbrown@cornell.edu>
3997         * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3998         * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
4000 2010-07-25  Juanma Barranquero  <lekktu@gmail.com>
4002         * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
4003         * dired.c (opendir, readdir): Fix prototypes.
4004         * editfns.c (w32_get_internal_run_time): Fix prototypes.
4005         * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
4006         * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
4007         (telldir): Remove declaration.
4008         * ralloc.c (real_morecore, __morecore): Fix prototypes.
4009         * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
4010         * syssignal.h (strsignal): Fix prototype.
4011         * term.c (tparam): Fix prototype.
4012         (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
4013         (term_get_fkeys): Set inside "#ifndef DOS_NT".
4014         * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
4015         and __morecore.
4016         * w32gui.h (XParseGeometry): Fix prototype.
4017         * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
4018         * w32term.c (my_set_focus): Declare inside #if 0.
4019         * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
4020         (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
4021         (drain_message_queue, get_next_msg, post_msg, parse_button)
4022         (ClipboardSequence_Proc): Fix prototypes.
4023         (wait_for_sync): Remove declaration.
4025 2010-07-24  Juanma Barranquero  <lekktu@gmail.com>
4027         * w32fns.c (w32_to_x_color): Remove, unused.
4029 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
4031         * lisp.h: Remove leftover P_.
4033 2010-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
4035         * ecrt0.c, unexalpha.c: Remove files, unused.
4037 2010-07-24  Andreas Schwab  <schwab@linux-m68k.org>
4039         * cmds.c (internal_self_insert): Make static.
4040         * lisp.h (internal_self_insert): Remove declaration.
4042 2010-07-23  Juanma Barranquero  <lekktu@gmail.com>
4044         * alloc.c (free_float):
4045         * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
4046         * frame.c (delete_frame_handler):
4047         * ralloc.c (reorder_bloc):
4048         * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
4049         Remove unused static functions.
4051         * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
4052         it is called only from NS code.
4054         * w32term.c (my_set_focus): #ifdef away; it is called only from
4055         "#ifdef 0" code.
4057         * w32fns.c (x_edge_detection):
4058         * xfaces.c (may_use_scalable_font_p):
4059         Remove obsolete static declarations.
4061 2010-07-20  Juanma Barranquero  <lekktu@gmail.com>
4063         * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
4064         (emacs_blocked_realloc, uninterrupt_malloc):
4065         * fringe.c (w32_reset_fringes):
4066         * image.c (convert_mono_to_color_image, lookup_rgb_color)
4067         (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
4068         * sound.c (be2hs, do_play_sound):
4069         * vm-limit.c (get_lim_data, ret_lim_data):
4070         * w32term.c (x_free_frame_resources):
4071         * xfaces.c (x_create_gc, x_free_gc):
4072         Convert definitions to standard C.
4074 2010-07-20  Stefan Monnier  <monnier@iro.umontreal.ca>
4076         * eval.c (Feval, Ffuncall): Use the new names.
4078         * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
4079         (DEFUN): Add braces around the union initialisation and use ## to
4080         specify the right union alternative and avoid a cast.
4082 2010-07-18  Juanma Barranquero  <lekktu@gmail.com>
4084         * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
4086 2010-07-17  Chong Yidong  <cyd@stupidchicken.com>
4088         * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
4090 2010-07-17  Jan Djärv  <jan.h.d@swipnet.se>
4092         * gtkutil.c (xg_event_is_for_menubar): Also check that event window
4093         is related to the menu bar (Bug#6499).
4094         (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
4096 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
4098         * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
4100         * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
4102         * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
4103         i.e. don't put back ButtonRelease (Bug#6608).
4105         * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
4106         instead of Window.  Call xg_event_is_for_menubar when
4107         USE_GTK (Bug#6499).
4109         * gtkutil.h (xg_event_is_for_menubar): Declare.
4111         * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
4113 2010-07-16  Eli Zaretskii  <eliz@gnu.org>
4115         * w32fns.c (x_set_foreground_color): Fix setting the cursor color
4116         when it's the same as the old foreground.  (Bug#6609)
4118 2010-07-16  Jan Djärv  <jan.h.d@swipnet.se>
4120         * xmenu.c (free_frame_menubar): Only call x_set_window_size if
4121         widget is non-null (Bug#6645).
4123 2010-07-15  Andreas Schwab  <schwab@linux-m68k.org>
4125         * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
4126         Convert old-style definition.
4128         * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
4129         timestamp argument.
4131 2010-07-15  Eli Zaretskii  <eliz@gnu.org>
4133         * fringe.c (update_window_fringes): Restore mistakenly reverted
4134         code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
4136 2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
4138         * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
4139         (SET_SAVED_KEY_EVENT): Remove (not used).
4140         (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
4141         remove size parameter.
4142         (handle_one_xevent): Check popup_activated () for menu for Xt also.
4143         Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
4144         Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
4145         ButtonRelease.
4146         (x_set_window_size_1): scroll_bar_actual_width is always
4147         SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
4149         * xdisp.c (pending_menu_activation): Remove extern declaration.
4150         (prepare_menu_bars): Remove setting of pending_menu_activation.
4152         * xmenu.c (pending_menu_activation): Remove.
4153         (x_activate_menubar): Set popup_activated_flag for Xt also.
4154         Remove setting of pending_menu_activation.
4155         (set_frame_menubar): Remove check of pending_menu_activation.
4156         Declare menubar_size before code.  Correct spelling in comment.
4158 2010-07-14  Kenichi Handa  <handa@m17n.org>
4160         * font.c (font_open_entity): Cancel previous change.
4161         (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
4163 2010-07-13  Eli Zaretskii  <eliz@gnu.org>
4165         Remove subprocesses #ifdefs.
4166         * process.c <inhibit_sentinels>: Move to the common part.
4167         (Fwaiting_for_user_input_p): Move to the common part; return nil
4168         if async subprocesses aren't supported.
4169         * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
4170         MS-DOS.  Remove "#ifdef subprocesses".
4171         (sys_subshell, sys_select): Remove "#ifdef subprocesses".
4172         (gettimeofday): Remove "#ifdef subprocesses".
4173         (wait_without_blocking): Remove function.
4174         (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
4175         Remove "#ifdef subprocesses".
4176         (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
4177         compiled on MS-DOS.
4178         * callproc.c (Fcall_process) [!MSDOS]: Don't call
4179         wait_for_termination on MS-DOS.
4180         * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
4181         initialization of inhibit_sentinels.
4182         * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
4183         subprocesses" conditional.
4184         * callproc.c (Fcall_process) [!subprocesses]: Don't call
4185         wait_for_termination, since `buffer' cannot be an integer when
4186         async subprocesses are not supported
4187         * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
4188         for ifdefing away the call to Fprocess_status.
4190         * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
4191         away the entire body of the function.
4193 2010-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
4195         Remove subprocesses #ifdefs from term.c.
4196         * process.c (add_keyboard_wait_descriptor)
4197         (delete_keyboard_wait_descriptor): Move to common section, do
4198         nothing when subprocesses is not defined.
4199         * term.c (Fsuspend_tty, Fresume_tty, init_tty):
4200         Remove subprocesses #ifdefs.
4202         Convert maybe_fatal to standard C.
4203         * lisp.h (verror): Declare.
4204         * eval.c (verror): New function containing the code from ...
4205         (error): ... this.  Call verror.
4206         * term.c (vfatal): New function containing the code from ...
4207         (fatal): ... this.  Call vfatal.
4208         (maybe_fatal): Convert to standard C, use variable number of
4209         arguments.  Declare as non-return.
4210         (init_tty): Fix maybe_fatal call.
4212 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
4214         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
4215         (_scroll_bar_note_movement): Convert definitions to standard C.
4216         * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
4217         * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
4219 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
4221         * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
4222         (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
4223         (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
4224         (xaw_jump_callback, xaw_scroll_callback)
4225         (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
4226         (x_wm_set_size_hint, x_activate_timeout_atimer):
4227         Convert definitions to standard C.
4228         * xmenu.c (menubar_id_to_frame, popup_get_selection)
4229         (popup_activate_callback, popup_deactivate_callback)
4230         (menu_highlight_callback, menubar_selection_callback)
4231         (apply_systemfont_to_dialog, apply_systemfont_to_menu)
4232         (free_frame_menubar, popup_selection_callback, as)
4233         (create_and_show_popup_menu, dialog_selection_callback)
4234         (create_and_show_dialog):
4235         * xfns.c (hack_wm_protocols, x_window):
4236         * xfaces.c (x_update_menu_appearance):
4237         * widget.c (get_default_char_pixel_size, pixel_to_char_size)
4238         (char_to_pixel_size, round_size_to_char, get_wm_shell)
4239         (set_frame_size, update_wm_hints, setup_frame_gcs)
4240         (update_various_frame_slots, update_from_various_frame_slots)
4241         (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
4242         (EmacsFrameSetValues, EmacsFrameQueryGeometry)
4243         (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
4245 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
4247         * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
4249 2010-07-12  Eli Zaretskii  <eliz@gnu.org>
4251         * process.c (setup_process_coding_systems): Move to the part
4252         shared by non-subprocesses systems, and make its body empty when
4253         subprocesses is not defined.
4254         (close_process_descs): Move to the part shared by non-subprocesses
4255         systems.
4256         (wait_reading_process_output) [!subprocesses]: Convert arg list to
4257         ANSI C.
4259 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
4261         * editfns.c (transpose_markers): Convert old-style definition.
4262         * emacs.c (abort, shut_down_emacs, fixup_locale)
4263         (synchronize_system_time_locale)
4264         (synchronize_system_messages_locale, syms_of_emacs): Likewise.
4265         * floatfns.c (extract_float, matherr, init_floatfns)
4266         (syms_of_floatfns): Likewise.
4267         * fns.c (make_hash_table): Likewise.
4268         * ftfont.c (ftfont_get_otf, ftfont_otf_features)
4269         (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
4270         (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
4271         (ftfont_variation_glyphs): Likewise.
4272         * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
4273         * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
4274         * lread.c (read_filtered_event): Likewise.
4275         * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
4276         * process.c (wait_reading_process_output): Likewise.
4277         * scroll.c (do_line_insertion_deletion_costs): Likewise.
4278         * search.c (search_buffer, boyer_moore): Likewise.
4279         * syntax.c (scan_sexps_forward): Likewise.
4280         * xdisp.c (try_scrolling): Likewise.
4281         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
4282         (face_at_string_position): Likewise.
4283         * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
4284         * xselect.c (x_get_window_property, receive_incremental_selection)
4285         (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
4286         Likewise.
4287         * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
4289 2010-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
4291         * callproc.c (child_setup): Remove subprocesses conditional.
4292         Remove code dealing with SET_EMACS_PRIORITY, unused.
4294         * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
4295         * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
4297         * emacs.c (__do_global_ctors, __do_global_ctors_aux)
4298         (__do_global_dtors, __main): Use void in definition.
4299         (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
4300         Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
4301         the only users from ...
4302         * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
4303         * s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
4304         (HAVE_VOLATILE): Remove, unused.
4306         Convert more function definitions to standard C.
4307         * xdisp.c (window_box_edges, handle_single_display_spec)
4308         (display_string): Convert definition to standard C.
4309         * scroll.c (do_direct_scrolling, scrolling_1):
4310         * dispnew.c (allocate_matrices_for_frame_redisplay)
4311         (mirrored_line_dance):
4312         * coding.c (code_convert_string):
4313         * charset.c (map_charset_chars):
4314         * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
4315         (Fregister_ccl_program, Fregister_code_conversion_map):
4316         * keyboard.c (kbd_buffer_nr_stored): Likewise.
4317         (head_table): Make static and const.
4319 2010-07-12  Andreas Schwab  <schwab@linux-m68k.org>
4321         * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
4322         (PROFILING_LDFLAGS): Set from substitution.
4323         (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
4324         CFLAGS last.
4326 2010-07-12  Kenichi Handa  <handa@m17n.org>
4328         * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
4329         (shortlisp): Likewise.
4331         * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
4333         * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
4334         of FONT_ENTITY_INDEX.
4335         (Ffont_get): If KEY is :otf and the font-object doesn't have the
4336         property, get the property value dynamically.
4337         (Ffont_put): Accept font-entity and font-object too.
4338         (Ffont_get_glyhphs): Rename from Fget_font_glyphs.  Arguments and
4339         return value changed.
4340         (syms_of_font): Adjust for the above change.
4342 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
4344         * blockinput.h: Remove obsolete comment.
4346         * lisp.h: Include <stddef.h>.
4347         (OFFSETOF): Don't define.
4348         (VECSIZE): Use offsetof instead of OFFSETOF.
4349         (PSEUDOVECSIZE): Likewise.
4350         * process.c (conv_sockaddr_to_lisp): Likewise.
4351         * alloc.c: Don't include <stddef.h>.
4352         * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
4354         * process.c: Remove obsolete comment.
4356 2010-07-11  Chong Yidong  <cyd@stupidchicken.com>
4358         * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
4360 2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
4362         * callint.c (Fcall_interactively): Use strchr, strrchr instead of
4363         index, rindex.
4364         * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
4365         * editfns.c (Fuser_full_name, Fformat): Likewise.
4366         * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
4367         * fileio.c (Ffile_symlink_p): Likewise.
4368         * filelock.c (current_lock_owner): Likewise.
4369         * font.c (font_parse_name, font_parse_family_registry): Likewise.
4370         * fontset.c (fontset_pattern_regexp): Likewise.
4371         * lread.c (read1): Likewise.
4372         * sysdep.c (init_system_name): Likewise.
4373         * xfns.c (select_visual): Likewise.
4374         * s/hpux10-20.h (index, rindex): Don't define.
4375         * s/ms-w32.h (index): Likewise.
4376         * s/usg5-4.h: Likewise.
4378         * callproc.c (relocate_fd): Use F_DUPFD if defined.
4380         * alloc.c (pending_malloc_warning, malloc_warning): Add const.
4381         * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
4382         (egetenv): Likewise.
4383         * doprnt.c (doprnt): Likewise.
4384         * editfns.c (set_time_zone_rule, format2): Likewise.
4385         * emacs.c (decode_env_path): Likewise.
4386         * eval.c (signal_error, error): Likewise.
4387         * insdel.c (replace_range_2): Likewise.
4388         * keyboard.c (cmd_error_internal): Likewise.
4389         * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
4390         * print.c (write_string, write_string_1, print_error_message):
4391         Likewise.
4392         * vm-limit.c (warn_function, memory_warnings): Likewise.
4393         * xdisp.c (message1, message1_nolog, message_with_string)
4394         (vmessage, message, message_nolog): Likewise.
4395         * emacs.c: Remove duplicate declaration.
4396         * keyboard.h: Likewise.
4397         * lisp.h: Update prototypes.
4399         * eval.c: Fix indentation problem.
4401         * keyboard.c: Include "process.h"
4403         * eval.c: Remove obsolete noinline declaration.
4404         * fns.c: Likewise.
4406 2010-07-11  Ken Raeburn  <raeburn@raeburn.org>
4408         * doprnt.c (doprnt): Take a va_list argument instead of count and
4409         pointer.
4410         * eval.c (error): Change to a standard-C variadic function.
4411         * xdisp.c (vmessage): Rename from message, made static, and
4412         changed to take a va_list argument.
4413         (message): New variadic wrapper.
4414         (message_nolog): Now a variadic function, calling vmessage.
4415         * lisp.h: Include stdarg.h for va_list.
4416         (doprnt, error, message, message_nolog): Decls updated.
4418 2010-07-11  Eli Zaretskii  <eliz@gnu.org>
4420         * process.c (syms_of_process) <delete-exited-processes>: Define
4421         even if !subprocesses.
4422         (delete_exited_processes): Ditto.
4424         * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
4425         (delete_exited_processes): Don't define.
4427 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
4429         * frame.c (make_frame): Initialize menu_bar_lines and
4430         tool_bar_lines members.
4431         (make_initial_frame, make_terminal_frame):
4432         Initialize menu_bar_lines using value of menu-bar-mode.
4434         * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
4436 2010-07-10  Eli Zaretskii  <eliz@gnu.org>
4438         * process.c: Reshuffle #include's.  Condition some of the global
4439         and static variables on `subprocesses'.
4440         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4441         Leave only one implementation.
4442         (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
4443         (kill_buffer_processes, Flist_system_processes)
4444         (Fprocess_attributes, init_process, syms_of_process): Unify the
4445         implementations for with subprocesses and without them.
4447 2010-07-09  Jan Djärv  <jan.h.d@swipnet.se>
4449         * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
4450         correct size for Motif.
4451         (free_frame_menubar): Call x_set_window_size to update frame size.
4453         * xfns.c (x_window): Set borderWidth to 0 for pane and
4454         EmacsFrame.  Frame size calculation is wrong otherwise.
4456 2010-07-09  Michael Albinus  <michael.albinus@gmx.de>
4458         * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
4459         allows to suppress errors when polling in Emacs' main loop.
4460         (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
4461         (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4462         (Fdbus_method_error_internal, Fdbus_send_signal)
4463         (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
4464         (Fdbus_register_method): Use it.  (Bug#6579)
4466 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
4468         * alloc.c: Convert DEFUNs to standard C.
4469         * buffer.c:
4470         * bytecode.c:
4471         * callint.c:
4472         * callproc.c:
4473         * casefiddle.c:
4474         * casetab.c:
4475         * category.c:
4476         * character.c:
4477         * charset.c:
4478         * chartab.c:
4479         * cmds.c:
4480         * coding.c:
4481         * composite.c:
4482         * data.c:
4483         * dbusbind.c:
4484         * dired.c:
4485         * dispnew.c:
4486         * doc.c:
4487         * dosfns.c:
4488         * editfns.c:
4489         * emacs.c:
4490         * eval.c:
4491         * fileio.c:
4492         * filelock.c:
4493         * floatfns.c:
4494         * fns.c:
4495         * font.c:
4496         * fontset.c:
4497         * frame.c:
4498         * fringe.c:
4499         * image.c:
4500         * indent.c:
4501         * insdel.c:
4502         * keyboard.c:
4503         * keymap.c:
4504         * lread.c:
4505         * macros.c:
4506         * marker.c:
4507         * menu.c:
4508         * minibuf.c:
4509         * msdos.c:
4510         * nsfns.m:
4511         * nsmenu.m:
4512         * nsselect.m:
4513         * print.c:
4514         * process.c:
4515         * search.c:
4516         * sound.c:
4517         * syntax.c:
4518         * term.c:
4519         * terminal.c:
4520         * textprop.c:
4521         * undo.c:
4522         * w16select.c:
4523         * w32console.c:
4524         * w32fns.c:
4525         * w32font.c:
4526         * w32menu.c:
4527         * w32proc.c:
4528         * w32select.c:
4529         * window.c:
4530         * xdisp.c:
4531         * xfaces.c:
4532         * xfns.c:
4533         * xmenu.c:
4534         * xselect.c:
4535         * xsettings.c:
4536         * xsmfns.c: Likewise.
4538 2010-07-08  Eli Zaretskii  <eliz@gnu.org>
4540         * process.c (kbd_is_on_hold, hold_keyboard_input)
4541         (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
4543 2010-07-08  Jan Djärv  <jan.h.d@swipnet.se>
4545         * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
4546         (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
4547         unless USE_LUCID.
4549 2010-07-08  Dan Nicolaescu  <dann@ics.uci.edu>
4551         * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
4552         declaration.
4554         Clean up include guards.
4555         * tparam.c: Remove include guards for config.h, string.h and code
4556         that assumes #ifndef emacs.
4557         * termcap.c:
4558         * unexalpha.c:
4559         * sysdep.c:
4560         * filemode.c:
4561         * filelock.c:
4562         * bidi.c: Likewise.
4564         Remove prefix-args.c
4565         * prefix-args.c: Remove file.
4566         * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
4567         * Makefile.in (temacs${EXEEXT}): Remove references to
4568         PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
4569         (mostlyclean): Remove reference to prefix-args.
4570         (prefix-args): Remove.
4572         Simplify cstart_of_data, start_of_code and related code.
4573         * mem-limits.h: Remove !emacs and _LIBC conditional code.
4574         (start_of_data): Merge into start_of_data function.
4575         * sysdep.c (start_of_text): Remove.  Move simplified versions of
4576         it in the only users: unexaix.c and unexec.c.
4577         (read_input_waiting): Remove local declaration of quit_char.
4578         (start, etext): Remove declarations.
4579         (start_of_data): Merge with the version in mem-limits.h and move
4580         to vm-limits.c.
4581         * vm-limit.c (start_of_data): Merged and simplified version of the
4582         code formerly in mem-limits.h and sysdep.c.
4583         * unexec.c (start): New declaration, moved from sysdep.c.
4584         (start_of_text): Simplified version of the code formerly in sysdep.c.
4585         * unexaix.c (start_of_text): Simplified version of the code
4586         formerly in sysdep.c.
4587         * m/alpha.h (HAVE_TEXT_START): Remove.
4588         (TEXT_START): Move ...
4589         * unexalpha.c (TEXT_START): ... here.
4590         * s/hpux10-20.h (TEXT_START): Remove.
4591         * s/darwin.h (TEXT_START):
4592         * m/mips.h (TEXT_START):
4593         * m/macppc.h (HAVE_TEXT_START):
4594         * m/m68k.h (TEXT_START):
4595         * m/iris4d.h (TEXT_START):
4596         * m/intel386.h (TEXT_START):
4597         * m/ibmrs6000.h (TEXT_START):
4598         * m/ia64.h (HAVE_TEXT_START):
4599         * s/msdos.h (TEXT_START): Likewise.
4601 2010-07-07  Andreas Schwab  <schwab@linux-m68k.org>
4603         * alloc.c (overrun_check_malloc, overrun_check_realloc)
4604         (overrun_check_free, xstrdup, allocate_string)
4605         (allocate_string_data, compact_small_strings, Fmake_string)
4606         (make_unibyte_string, make_multibyte_string)
4607         (make_string_from_bytes, make_specified_string, make_float)
4608         (Fcons, allocate_terminal, allocate_frame, make_pure_string)
4609         (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
4610         memcpy, memmove, memset, memcmp.
4611         * atimer.c (start_atimer, set_alarm): Likewise.
4612         * buffer.c (clone_per_buffer_values, report_overlay_modification)
4613         (mmap_realloc, init_buffer_once): Likewise.
4614         * callint.c (Fcall_interactively): Likewise.
4615         * callproc.c (Fcall_process, Fcall_process_region, child_setup)
4616         (getenv_internal_1): Likewise.
4617         * casefiddle.c (casify_object): Likewise.
4618         * ccl.c (ccl_driver): Likewise.
4619         * character.c (str_as_multibyte, str_to_multibyte): Likewise.
4620         * charset.c (load_charset_map_from_file)
4621         (load_charset_map_from_file, load_charset_map_from_vector)
4622         (Fdefine_charset_internal): Likewise.
4623         * cm.c (Wcm_clear): Likewise.
4624         * coding.c (decode_eol, decode_coding_object)
4625         (Fset_coding_system_priority, make_subsidiaries): Likewise.
4626         * data.c (Faset): Likewise.
4627         * dired.c (directory_files_internal, file_name_completion_stat):
4628         Likewise.
4629         * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
4630         (clear_glyph_row, copy_row_except_pointers)
4631         (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
4632         (save_current_matrix, restore_current_matrix)
4633         (build_frame_matrix_from_leaf_window, mirrored_line_dance)
4634         (mirror_line_dance, scrolling_window): Likewise.
4635         * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
4636         Likewise.
4637         * doprnt.c (doprnt): Likewise.
4638         * editfns.c (Fuser_full_name, make_buffer_string_both)
4639         (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
4640         * emacs.c (sort_args): Likewise.
4641         * eval.c (Fapply, Ffuncall): Likewise.
4642         * fileio.c (Ffile_name_directory, make_temp_name)
4643         (Fexpand_file_name, search_embedded_absfilename)
4644         (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
4645         (auto_save_error): Likewise.
4646         * fns.c (Fstring_equal, Fcopy_sequence, concat)
4647         (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
4648         (internal_equal, Fclear_string, larger_vector, copy_hash_table)
4649         (Fmake_hash_table): Likewise.
4650         * fringe.c (Fdefine_fringe_bitmap): Likewise.
4651         * ftfont.c (ftfont_text_extents): Likewise.
4652         * getloadavg.c (getloadavg): Likewise.
4653         * image.c (define_image_type, make_image, make_image_cache)
4654         (x_create_x_image_and_pixmap, xbm_image_p)
4655         (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
4656         (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
4657         (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
4658         (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
4659         (tiff_image_p, tiff_read_from_memory, gif_image_p)
4660         (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
4661         Likewise.
4662         * indent.c (scan_for_column, compute_motion): Likewise.
4663         * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
4664         (insert_1_both, insert_from_gap, replace_range_2): Likewise.
4665         * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
4666         * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
4667         (kbd_buffer_store_event_hold, apply_modifiers_uncached)
4668         (store_user_signal_events, menu_bar_items, tool_bar_items)
4669         (process_tool_bar_item, append_tool_bar_item)
4670         (read_char_minibuf_menu_prompt, read_key_sequence)
4671         (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
4672         Likewise.
4673         * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
4674         Likewise.
4675         * lisp.h (STRING_COPYIN): Likewise.
4676         * lread.c (Fload, read1, oblookup): Likewise.
4677         * msdos.c (Frecent_doskeys): Likewise.
4678         * nsfns.m (Fx_create_frame): Likewise.
4679         * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
4680         Likewise.
4681         * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
4682         (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
4683         Likewise.
4684         * nsmenu.m (ns_update_menubar): Likewise.
4685         * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
4686         * print.c (print_unwind, printchar, strout, print_string)
4687         (print_error_message): Likewise.
4688         * process.c (conv_lisp_to_sockaddr, set_socket_option)
4689         (Fmake_network_process, Fnetwork_interface_list)
4690         (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
4691         (init_process): Likewise.
4692         * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
4693         * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
4694         Likewise.
4695         * scroll.c (do_scrolling, do_direct_scrolling)
4696         (scrolling_max_lines_saved): Likewise.
4697         * search.c (search_buffer, wordify, Freplace_match): Likewise.
4698         * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
4699         * syntax.c (skip_chars, skip_syntaxes): Likewise.
4700         * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
4701         (emacs_set_tty): Likewise.
4702         * term.c (encode_terminal_code, calculate_costs)
4703         (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
4704         Likewise.
4705         * termcap.c (tgetst1, gobble_line): Likewise.
4706         * termhooks.h (EVENT_INIT): Likewise.
4707         * tparam.c (tparam1): Likewise.
4708         * unexalpha.c (unexec): Likewise.
4709         * unexec.c (write_segment): Likewise.
4710         * unexmacosx.c (unexec_write_zero): Likewise.
4711         * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
4712         (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
4713         * w32font.c (w32font_list_family, w32font_text_extents)
4714         (w32font_list_internal, w32font_match_internal)
4715         (w32font_open_internal, compute_metrics, Fx_select_font):
4716         Likewise.
4717         * w32menu.c (set_frame_menubar, add_menu_item)
4718         (w32_menu_display_help, w32_free_submenu_strings): Likewise.
4719         * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
4720         * w32uniscribe.c (uniscribe_list_family): Likewise.
4721         * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
4722         * window.c (make_window, replace_window, set_window_buffer)
4723         (Fsplit_window): Likewise.
4724         * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
4725         (add_to_log, message3, x_consider_frame_title)
4726         (append_space_for_newline, extend_face_to_end_of_line)
4727         (decode_mode_spec_coding, init_glyph_string): Likewise.
4728         * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
4729         (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
4730         (face_attr_equal_p, make_realized_face, make_face_cache)
4731         (free_realized_faces, lookup_named_face, smaller_face)
4732         (face_with_height, lookup_derived_face)
4733         (x_supports_face_attributes_p, Finternal_set_font_selection_order)
4734         (Finternal_set_font_selection_order, realize_default_face)
4735         (compute_char_face, face_at_buffer_position)
4736         (face_for_overlay_string, face_at_string_position, merge_faces):
4737         Likewise.
4738         * xfns.c (xic_create_fontsetname, Fx_create_frame)
4739         (Fx_window_property, x_create_tip_frame)
4740         (Fx_backspace_delete_keys_p): Likewise.
4741         * xfont.c (xfont_list, xfont_match, xfont_list_family)
4742         (xfont_text_extents): Likewise.
4743         * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
4744         * xrdb.c (magic_file_p, x_get_resource): Likewise.
4745         * xselect.c (x_queue_event, x_get_window_property)
4746         (receive_incremental_selection): Likewise.
4747         * xsmfns.c (x_session_check_input): Likewise.
4748         * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
4749         (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
4750         Likewise.
4751         * character.h (BCOPY_SHORT): Removed.
4752         * config.in: Regenerate.
4753         * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
4754         * emacs.c (main) [PROFILING]: Don't declare
4755         dump_opcode_frequencies.
4756         * lisp.h (safe_bcopy): Remove declaration.
4757         (memset) [!HAVE_MEMSET]: Declare.
4758         (memcpy) [!HAVE_MEMCPY]: Likewise.
4759         (memmove) [!HAVE_MEMMOVE]: Likewise.
4760         (memcmp) [!HAVE_MEMCMP]: Likewise.
4761         * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
4762         (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
4763         Don't define.
4764         (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
4765         * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
4766         (BCOPY_DOWNWARD_SAFE): Don't define.
4767         * sysdep.c (memset) [!HAVE_MEMSET]: Define.
4768         (memcpy) [!HAVE_MEMCPY]: Define.
4769         (memmove) [!HAVE_MEMMOVE]: Define.
4770         (memcmp) [!HAVE_MEMCMP]: Define.
4772 2010-07-07  Jan Djärv  <jan.h.d@swipnet.se>
4774         * process.c (kbd_is_on_hold): New variable.
4775         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
4776         New functions.
4777         (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
4778         select on empty input mask.
4779         (init_process): Initialize kbd_is_on_hold to 0.
4781         * process.h (hold_keyboard_input, unhold_keyboard_input)
4782         (kbd_on_hold_p): Declare.
4784         * keyboard.c (input_available_signal): Declare.
4785         (kbd_buffer_nr_stored): New function.
4786         (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
4787         more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
4788         (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
4789         returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
4790         (tty_read_avail_input): If input is on hold, return.
4791         Don't read more that free slots in kbd_buffer (Bug#6571).
4793 2010-07-07  Eli Zaretskii  <eliz@gnu.org>
4795         * msdos.h:
4796         * msdos.c:
4797         * dosfns.c:
4798         * w16select.c: Convert function definitions to ANSI C.
4800         * msdos.h (ctrl_break_func, install_ctrl_break_check):
4801         Remove unused prototypes.
4803 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
4805         * coding.c, sysdep.c: Convert some more functions to standard C.
4807 2010-07-07  Juanma Barranquero  <lekktu@gmail.com>
4809         * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
4810         (encode_coding_object): Use SPECPDL_INDEX.
4811         (syms_of_coding): Use DOS_NT.
4813 2010-07-07  Dan Nicolaescu  <dann@ics.uci.edu>
4815         * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
4817         Make the function member of Lisp_Subr use standard C prototypes.
4818         * lisp.h (struct Lisp_Subr): Use a union for the function member.
4819         (DECL_ALIGN): Add a cast for the function.
4820         * eval.c (Feval, Ffuncall): Use the proper type for each type
4821         function call.
4823 2010-07-06  Chong Yidong  <cyd@stupidchicken.com>
4825         * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
4826         fringe face id, so face-remapping-alist works (Bug#6091).
4828 2010-07-06  Juanma Barranquero  <lekktu@gmail.com>
4830         * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
4831         * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
4832         * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
4834 2010-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4836         * xterm.c (x_get_keysym_name): Change type of parameter to int.
4837         * lisp.h: Declare x_get_keysym_name.
4838         * keyboard.c (modify_event_symbol): Don't declare
4839         x_get_keysym_name here.
4841 2010-07-06  Dan Nicolaescu  <dann@ics.uci.edu>
4843         * ecrt0.c: Revert conversion to standard C.
4845 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
4847         * vm-limit.c (memory_warnings):
4848         * keyboard.c (modify_event_symbol):
4849         * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
4850         (round2, emacs_rint):
4851         * process.c (send_process, old_sigpipe): Convert function
4852         definitions and declarations to standard C.
4854 2010-07-05  Juanma Barranquero  <lekktu@gmail.com>
4856         * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
4857         * xdisp.c: Convert function definitions to standard C.
4859         * cm.c (cmputc): Arg C is now int, not char.
4860         * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
4862 2010-07-05  James Cloos  <cloos@jhcloos.com>
4864         * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
4866         * xterm.c (x_term_init): Intern the _NET_WM_NAME and
4867         _NET_WM_ICON_NAME atoms.
4869         * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
4870         and _NET_WM_ICON_NAME properties, too, matching what is
4871         done in the Gtk+ case.
4873 2010-07-05  Jan Djärv  <jan.h.d@swipnet.se>
4875         * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
4877         * xsmfns.c (SSDATA): New macro.
4878         (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
4879         passed to strlen/strcpy/strcat.
4880         (create_client_leader_window): Surround with #ifndef USE_GTK.
4881         Cast 7:th arg to XChangeProperty to (unsigned char *).
4883         * xsettings.c (something_changedCB, parse_settings)
4884         (apply_xft_settings): Reformat prototype.
4885         (something_changedCB, init_gconf): Remove unused variable i.
4886         (read_settings): Remove unused variable long_len.
4888         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
4889         (xg_get_image_for_pixmap, create_dialog)
4890         (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
4891         (menuitem_highlight_callback, make_menu_item)
4892         (xg_create_one_menuitem, create_menus, xg_update_menu_item)
4893         (xg_create_scroll_bar, xg_update_scrollbar_pos)
4894         (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
4895         (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
4896         (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
4897         (xg_tool_bar_item_expose_callback): Reformat prototype.
4898         (xg_update_menubar): GList *group => GSList *group.
4899         (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
4900         before use.
4901         (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
4902         to GTK_IMAGE (wimage).
4904 2010-07-05  Dan Nicolaescu  <dann@ics.uci.edu>
4906         * atimer.c: Use "" instead of <> for local includes for
4907         consistency with the rest of the code.
4909         * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
4910         * xrdb.c (get_system_name):
4911         * window.c (shrink_windows):
4912         * syntax.c (forw_comment):
4913         * scroll.c (calculate_scrolling, calculate_direct_scrolling)
4914         (ins_del_costs):
4915         * mem-limits.h (start_of_data):
4916         * lread.c (readevalloop):
4917         * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
4918         (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
4919         * frame.c (x_get_focus_frame):
4920         * floatfns.c (fmod_float):
4921         * fileio.c (choose_write_coding_system):
4922         * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
4923         (malloc_initialize_hook, sort_args, synchronize_locale):
4924         * doprnt.c (doprnt):
4925         * dired.c (compile_pattern):
4926         * data.c (fmod_float):
4927         * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
4928         (map_char_table_for_charset):
4929         * charset.c (define_charset_internal):
4930         * alloc.c (Fgarbage_collect): Convert declarations or definitions
4931         to standard C.
4933 2010-07-04  Martin Rudalics  <rudalics@gmx.at>
4935         * window.c (Qget_mru_window): Add declaration and staticpro it.
4936         (Fdelete_window_internal): Rewrite to select the most recently
4937         window instead of the previous window (Bug#6400).
4938 2010-07-04  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
4939             Stefan Monnier  <monnier@iro.umontreal.ca>
4941         * lread.c (read1): Fix up last change to not mess up `c'.
4943 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
4945         * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
4947 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
4949         Fix prototypes.
4951         * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
4952         * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
4953         * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
4954         arg, as required by internal_condition_case_1.
4955         * print.c (strout): Use const char* for arg PTR.
4956         * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
4957         (analyse_first): Fix "const const".
4958         * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
4959         * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
4960         * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
4962 2010-07-04  Dan Nicolaescu  <dann@ics.uci.edu>
4964         * alloc.c: Convert function definitions to standard C.
4965         * atimer.c:
4966         * bidi.c:
4967         * bytecode.c:
4968         * callint.c:
4969         * callproc.c:
4970         * casefiddle.c:
4971         * casetab.c:
4972         * category.c:
4973         * ccl.c:
4974         * character.c:
4975         * charset.c:
4976         * chartab.c:
4977         * cmds.c:
4978         * coding.c:
4979         * composite.c:
4980         * data.c:
4981         * dbusbind.c:
4982         * dired.c:
4983         * dispnew.c:
4984         * doc.c:
4985         * doprnt.c:
4986         * ecrt0.c:
4987         * editfns.c:
4988         * fileio.c:
4989         * filelock.c:
4990         * filemode.c:
4991         * fns.c:
4992         * font.c:
4993         * fontset.c:
4994         * frame.c:
4995         * fringe.c:
4996         * ftfont.c:
4997         * ftxfont.c:
4998         * gtkutil.c:
4999         * indent.c:
5000         * insdel.c:
5001         * intervals.c:
5002         * keymap.c:
5003         * lread.c:
5004         * macros.c:
5005         * marker.c:
5006         * md5.c:
5007         * menu.c:
5008         * minibuf.c:
5009         * prefix-args.c:
5010         * print.c:
5011         * ralloc.c:
5012         * regex.c:
5013         * region-cache.c:
5014         * scroll.c:
5015         * search.c:
5016         * sound.c:
5017         * strftime.c:
5018         * syntax.c:
5019         * sysdep.c:
5020         * termcap.c:
5021         * terminal.c:
5022         * terminfo.c:
5023         * textprop.c:
5024         * tparam.c:
5025         * undo.c:
5026         * unexelf.c:
5027         * window.c:
5028         * xfaces.c:
5029         * xfns.c:
5030         * xfont.c:
5031         * xftfont.c:
5032         * xgselect.c:
5033         * xmenu.c:
5034         * xrdb.c:
5035         * xselect.c:
5036         * xsettings.c:
5037         * xsmfns.c:
5038         * xterm.c: Likewise.
5040 2010-07-03  Eli Zaretskii  <eliz@gnu.org>
5042         * msdos.c (IT_set_frame_parameters): Fix setting of colors in
5043         frames other than the initial one.  Fix reversal of colors when
5044         `reverse' is specified in the frame parameters.
5045         Call update_face_from_frame_parameter instead of
5046         internal-set-lisp-face-attribute.  Initialize screen colors from
5047         initial_screen_colors[] when f->default_face_done_p is zero,
5048         instead of depending on being called with default-frame-alist as
5049         the alist argument.
5051         * xfaces.c (update_face_from_frame_parameter): Move out of
5052         HAVE_WINDOW_SYSTEM portion.  Condition window-system only parts
5053         with HAVE_WINDOW_SYSTEM.
5055         * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
5056         to menu-bar-mode, if not set in the frame parameters or in
5057         default-frame-alist.
5059         * w32console.c (sys_tputs): Adjust argument list to prototype in
5060         term.c.
5062 2010-07-03  Juanma Barranquero  <lekktu@gmail.com>
5064         * lisp.h (memory_warnings): Fix prototype.
5066         * cm.h (evalcost): Fix prototype.
5068         * cm.c (evalcost): Fix arg type.
5070 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
5072         * term.c (term_clear_mouse_face, Fidentity):
5073         * syssignal.h (signal_handler_t):
5074         * lisp.h (memory_warnings):
5075         * coding.h (preferred_coding_system):
5076         * cm.h (evalcost):
5077         * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
5079 2010-07-02  Eli Zaretskii  <eliz@gnu.org>
5081         * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
5082         from prototypes.
5084         * msdos.h (load_pixmap): Don't define away.
5086 2010-07-02  Jan Djärv  <jan.h.d@swipnet.se>
5088         * lisp.h:
5089         * atimer.h: Remove define for P_.
5091         * alloc.c: Remove __P and P_ from .c and .m files.
5092         * atimer.c:
5093         * buffer.c:
5094         * callint.c:
5095         * category.c:
5096         * charset.c:
5097         * chartab.c:
5098         * cm.c:
5099         * coding.c:
5100         * composite.c:
5101         * data.c:
5102         * dired.c:
5103         * dispnew.c:
5104         * doc.c:
5105         * editfns.c:
5106         * emacs.c:
5107         * eval.c:
5108         * fileio.c:
5109         * filelock.c:
5110         * fns.c:
5111         * font.c:
5112         * fontset.c:
5113         * frame.c:
5114         * ftfont.c:
5115         * ftxfont.c:
5116         * gmalloc.c:
5117         * gtkutil.c:
5118         * image.c:
5119         * indent.c:
5120         * intervals.c:
5121         * keyboard.c:
5122         * keymap.c:
5123         * lread.c:
5124         * marker.c:
5125         * menu.c:
5126         * minibuf.c:
5127         * print.c:
5128         * process.c:
5129         * scroll.c:
5130         * search.c:
5131         * sound.c:
5132         * strftime.c:
5133         * syntax.c:
5134         * sysdep.c:
5135         * term.c:
5136         * terminal.c:
5137         * textprop.c:
5138         * unexalpha.c:
5139         * w32console.c:
5140         * w32fns.c:
5141         * w32font.c:
5142         * w32menu.c:
5143         * w32term.c:
5144         * w32uniscribe.c:
5145         * window.c:
5146         * xdisp.c:
5147         * xfaces.c:
5148         * xfns.c:
5149         * xfont.c:
5150         * xftfont.c:
5151         * xmenu.c:
5152         * xselect.c:
5153         * xterm.c: Likewise.
5155         Remove P_ and __P macros.
5156         * atimer.h: Remove P_ and __P macros.
5157         * buffer.h:
5158         * category.h:
5159         * ccl.h:
5160         * character.h:
5161         * charset.h:
5162         * cm.h:
5163         * coding.h:
5164         * composite.h:
5165         * dispextern.h:
5166         * disptab.h:
5167         * dosfns.h:
5168         * font.h:
5169         * fontset.h:
5170         * frame.h:
5171         * gtkutil.h:
5172         * indent.h:
5173         * intervals.h:
5174         * keyboard.h:
5175         * keymap.h:
5176         * lisp.h:
5177         * macros.h:
5178         * md5.h:
5179         * menu.h:
5180         * msdos.h:
5181         * nsterm.h:
5182         * puresize.h:
5183         * region-cache.h:
5184         * syntax.h:
5185         * syssignal.h:
5186         * systime.h:
5187         * termhooks.h:
5188         * w32font.h:
5189         * w32term.h:
5190         * widget.h:
5191         * window.h:
5192         * xgselect.h:
5193         * xsettings.h:
5194         * xterm.h: Likewise.
5196 2010-07-02  Dan Nicolaescu  <dann@ics.uci.edu>
5198         * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
5200         Cleanup old code.
5201         * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
5202         * syssignal.h: Remove code for Lynx, not supported anymore.
5203         * vm-limit.c: Remove unused code the depends on emacs not being
5204         defined and NO_LIM_DATA being defined.
5205         * mem-limits.h: Remove dead code.
5207 2010-07-01  Jan Djärv  <jan.h.d@swipnet.se>
5209         * window.c (Fwindow_absolute_pixel_edges): Doc fix.
5211         * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
5212         (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
5214         * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
5215         parameters, they are already absolute.
5217         * nsterm.m (x_set_window_size, initFrameFromEmacs):
5218         Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
5220         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
5222         * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
5223         Update FRAME_TOOLBAR_HEIGHT.
5225         * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
5226         Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
5228 2010-06-30  Chong Yidong  <cyd@stupidchicken.com>
5230         * frame.c (get_future_frame_param, Fmake_terminal_frame):
5231         Don't check default-frame-alist.
5233 2010-06-30  Andreas Schwab  <schwab@linux-m68k.org>
5235         * process.c (create_process): Avoid using invalid file descriptors.
5237         * callproc.c (child_setup): Avoid closing a file descriptor twice.
5239 2010-06-30  Jan Djärv  <jan.h.d@swipnet.se>
5241         * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
5242         Improve documentation.  Return font regardless of use_system_font.
5243         (syms_of_xsettings): Improve documentation for font-use-system-font.
5245 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
5247         * xfaces.c (realize_face): Garbage the frame if a face is removed
5248         (Bug#6593).
5250 2010-07-05  Andreas Schwab  <schwab@linux-m68k.org>
5252         * keyboard.c: Remove duplicate <setjmp.h>.
5253         (read_key_sequence): Remove volatile qualifiers.
5255 2010-07-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5257         * dispextern.h (FRINGE_HEIGHT_BITS): New define.
5258         (struct glyph_row): New members left_fringe_offset and
5259         right_fringe_offset.
5261         * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
5262         specially.
5263         * w32term.c (w32_draw_fringe_bitmap): Likewise.
5264         * nsterm.m (ns_draw_fringe_bitmap): Likewise.
5266         * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
5267         Take account of bitmap offset.
5268         (draw_window_fringes): Take account of window vscroll.
5269         (update_window_fringes): Likewise.  Extend top-aligned top indicator
5270         or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
5271         in one row.  Don't set redraw_fringe_bitmaps_p outside row comparison.
5272         Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
5274 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
5276         * w32fns.c (Qtooltip): Declare.
5277         Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
5279 2010-07-03  Jan Djärv  <jan.h.d@swipnet.se>
5281         * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
5282         grab on just Press (Bug#6499).
5284 2010-07-02  Chong Yidong  <cyd@stupidchicken.com>
5286         * frame.c (Qtooltip): New var.
5287         (delete_frame): Use it.  Fix faulty if statement.  Don't update
5288         mode line for tooltip frames.  Suggested by Martin Rudalics.
5290         * xfns.c (x_create_tip_frame):
5291         * w32fns.c (x_create_tip_frame): Use it.
5293 2010-06-17  Naohiro Aota  <naota@elisp.net>  (tiny change)
5295         * xftfont.c (xftfont_open): Check font width one by one also when
5296         spacing is dual.
5298         * ftfont.c (ftfont_open): Ditto.
5300 2010-06-30  Glenn Morris  <rgm@gnu.org>
5302         * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
5304         * Makefile.in (CANNOT_DUMP): Update for configure name change.
5306         * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
5307         * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
5308         * s/darwin.h (SYSTEM_MALLOC):
5309         * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
5311 2010-06-29  Jan Djärv  <jan.h.d@swipnet.se>
5313         * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
5314         (ns_get_screen): Don't assign integer to f.
5315         (Fx_display_color_cells): Declarations before statements.
5317 2010-06-28  Jan Djärv  <jan.h.d@swipnet.se>
5319         * xfns.c (x_default_font_parameter): Remove got_from_system
5320         (Bug#6526).
5322         * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
5323         (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
5324         New defines based on what configure finds.
5326         * xterm.c (XTflash): Use gtk_widget_get_window.
5327         (xg_scroll_callback): Use gtk_adjustment_get_upper and
5328         gtk_adjustment_get_page_size.
5329         (handle_one_xevent): Use gtk_widget_get_mapped.
5330         (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
5331         messages.
5333         * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
5335         * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
5336         HAVE_GTK_FILE_SELECTION_NEW.
5338         * gtkutil.c (xg_display_open, xg_display_close):
5339         Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
5340         (xg_display_open): Return type is void.
5341         (gtk_widget_set_has_window)
5342         (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
5343         (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
5344         (gtk_adjustment_set_page_increment)
5345         (gtk_adjustment_get_step_increment): #define these if not found
5346         by configure.
5347         (remove_submenu): New define based on Gtk+ version.
5348         (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
5349         Use gtk_widget_get_window.
5350         (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
5351         (xg_create_frame_widgets): Use gtk_widget_set_has_window.
5352         (create_dialog): Use gtk_dialog_get_action_area and
5353         gtk_dialog_get_content_area.
5354         (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
5355         and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW.  File chooser is always
5356         available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
5357         (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
5358         Use g_object_ref and g_object_unref.
5359         (xg_update_menu_item, xg_tool_bar_menu_proxy):
5360         Use gtk_widget_get_sensitive.
5361         (xg_update_submenu): Use remove_submenu.
5362         (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
5363         properties instead to get old x and y position.
5364         (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
5365         gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
5366         gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
5367         (xg_get_tool_bar_widgets): New function.
5368         (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
5369         (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
5370         (toolbar_set_orientation): New #define based on if configure
5371         finds gtk_orientable_set_orientation.
5372         (xg_create_tool_bar): Call toolbar_set_orientation.
5373         (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
5374         instead of gtk_box_pack_start_defaults.
5376 2010-06-28  Chong Yidong  <cyd@stupidchicken.com>
5378         * cmds.c (Fdelete_backward_char): Move into Lisp.
5380 2010-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
5382         * s/freebsd.h (BSD4_2): Remove redundant definition.
5383         bsd-common.h defines it already.
5385 2010-06-27  Chong Yidong  <cyd@stupidchicken.com>
5387         * xfns.c (Fx_create_frame): Don't consult X resouces when setting
5388         menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
5389         tool-bar-mode, which are now set using these X resources at
5390         startup, to determine the defaults (Bug#2249).
5392         * w32fns.c (Fx_create_frame):
5393         * nsfns.m (Fx_create_frame): Likewise.
5395         * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
5397 2010-06-25  Martin Rudalics  <rudalics@gmx.at>
5399         * window.h (struct window): Add new members normal_lines,
5400         normal_cols, new_total, new_normal, inhibit_recombine.  Remove
5401         members resize_proportionally, orig_total_lines and
5402         orig_top_line.
5403         (WINDOW_TOTAL_SIZE, MIN_SAFE_WINDOW_WIDTH)
5404         (MIN_SAFE_WINDOW_HEIGHT): Move here from window.c.
5405         (delete_window, set_window_height, set_window_width)
5406         (change_window_height, window_internal_width): Remove externs.
5407         (window_box_text_cols): Rename to window_body_cols.
5408         (Fwindow_full_width_p, Fdelete_window, Fsplit_window): Remove
5409         EXFUNs.
5410         (delete_all_subwindows): Make argument a Lisp_Object.
5411         (resize_frame_windows, window_body_lines): Add externs.
5413         * window.c (Qwindow_deletable_p, Qdelete_window)
5414         (Qresize_root_window, Qresize_root_window_vertically)
5415         (Qset, Qabove, Qbelow, Qnest, Qgroup, Qresize): Add declarations
5416         and staticpro them.
5417         (Qwindow_size_fixed, window_min_height, window_min_width)
5418         (window_deletion_count): Remove declarations.
5419         (Vwindow_splits): New variable.
5420         (Fwindow_height, Fwindow_width, Fwindow_full_width_p)
5421         (Fdelete_window, Fother_window, Fget_lru_window)
5422         (Fget_largest_window, Fdelete_other_windows)
5423         (Fdelete_windows_on, window_fixed_size_p, Fsplit_window)
5424         (Fenlarge_window, Fshrink_window, Fadjust_window_trailing_edge)
5425         (Fwindow_tree): Move to window.el.
5426         (shrink_windows, window_min_size_1, window_min_size_2)
5427         (window_min_size, size_window, window_height, window_width)
5428         (window_fixed_size_p, enlarge_window)
5429         (adjust_window_trailing_edge, shrink_window_lowest_first)
5430         (window_tree): Remove functions, their functionality partially
5431         taken over by functions in window.el.
5432         (Fwindow_total_size, Fwindow_new_total_size)
5433         (Fwindow_normal_size, Fwindow_new_normal_size)
5434         (Fwindow_left_column, Fwindow_top_line, window_body_lines)
5435         (window_body_cols, Fwindow_body_size, recombine_windows)
5436         (resize_root_window, Fdelete_other_windows_internal)
5437         (Fresize_window_total, Fresize_window_normal)
5438         (resize_window_check, resize_window_apply, Fresize_window_apply)
5439         (resize_frame_windows, Fsplit_window_internal)
5440         (Fdelete_window_internal, Sresize_mini_window_internal): New
5441         functions.
5442         (make_dummy_parent): Rename to make_parent_window and handle
5443         changed members of struct window.
5444         (make_window, replace_window): Handle changed members of struct
5445         window.
5446         (Fset_window_dedicated_p): Rewrite doc-string.
5447         (delete_window): Replace by delete_deletable_window.
5448         (window_loop): Don't handle GET_LRU_WINDOW,
5449         DELETE_OTHER_WINDOWS, DELETE_BUFFER_WINDOWS and
5450         GET_LARGEST_WINDOW any more.  Call delete_deletable_window
5451         instead of delete_window.
5452         (Fget_buffer_window): Rename second argument to all_frames,
5453         rewrite doc-string.
5454         (MIN_SAFE_WINDOW_WIDTH, MIN_SAFE_WINDOW_HEIGHT)
5455         (WINDOW_TOTAL_SIZE): Move to window.h.
5456         (compare_window_configurations): Rewrite.
5457         (keys_of_window): Move all non-scroll-related bindings to
5458         window.el.
5460         * frame.c (set_menu_bar_lines_1): Do not handle orig_top_line
5461         and orig_total_lines any more.
5462         (delete_frame): Pass root window to delete_all_subwindows.
5464         * buffer.c (Frecord_buffer, Funrecord_buffer): New functions.
5465         (switch_to_buffer_1): Remove.
5466         (Fswitch_to_buffer, Fbury_buffer): Move to window.el.
5468         * indent.c (compute_motion, Fcompute_motion): Use
5469         window_body_cols instead of window_box_text_cols.
5471         * dispnew.c (adjust_frame_glyphs_initially): Don't use
5472         set_window_height but set heights directly.
5473         (change_frame_size_1): Use resize_frame_windows.
5475         * xdisp.c (init_xdisp): Don't use set_window_height but set
5476         heights directly.
5478         * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Use
5479         resize_frame_windows instead of change_window_heights and run
5480         run_window_configuration_change_hook.
5482         * w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows
5483         instead of change_window_heights and run
5484         run_window_configuration_change_hook.
5486 2010-06-24  Juanma Barranquero  <lekktu@gmail.com>
5488         * gtkutil.c (xg_update_scrollbar_pos):
5489         Avoid C99 mid-block variable declaration.
5491 2010-06-22  Martin Rudalics  <rudalics@gmx.at>
5493         * frame.c (Fother_visible_frames_p): New function.
5494         (Fwindow_frame, Fframe_root_window, Fframe_first_window)
5495         (Fframe_selected_window, Fset_frame_selected_window): Move to
5496         window.c.
5497         (Factive_minibuffer_window): Move to minibuf.c.
5498         (delete_frame): If we are not allowed to run hooks, don't run
5499         them.  For tooltip frames neither run hooks nor update the
5500         modeline.
5502         * minibuf.c (Factive_minibuffer_window): Move here from frame.c.
5504         * window.c (decode_window, decode_any_window, make_window)
5505         (Fselected_window, Fpos_visible_in_window_p)
5506         (select_window_norecord, select_frame_norecord): Move to more
5507         appropriate positions within window.c.
5508         (Fwindow_frame, Fset_frame_selected_window): Move here from
5509         frame.c.
5510         (Fframe_first_window, Fframe_selected_window)
5511         (Fframe_root_window): Move here from frame.c, handle window or
5512         frame as argument.
5513         (Fwindow_parent, Fwindow_vchild, Fwindow_hchild, Fwindow_next)
5514         (Fwindow_prev, Fwindow_use_time, window_show_other_buffer)
5515         (Fwindow_list_1, Frun_window_configuration_change_hook): New
5516         functions.
5517         (Fwindow_live_p, Fselected_window, Fminibuffer_window)
5518         (Fwindow_minibuffer_p, Fwindow_hscroll, Fwindow_point)
5519         (Fwindow_at, Fwindow_start, Fwindow_end, Fset_window_point)
5520         (Fset_window_dedicated_p, Fnext_window, Fprevious_window)
5521         (Fset_window_buffer): Rewrite doc-strings.
5522         (Fwindow_buffer): Return nil for internal window.
5523         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter):
5524         Internal windows may have parameters too.
5525         (saved_window, save_window_save): Save window parameters too.
5526         (Fset_window_configuration): Restore window parameters.  Try to
5527         delete a restored window if it is dedicated and its buffer is
5528         dead.  If window cannot be deleted, reset its dedicated status.
5529         (Fselect_window): Don't return prematurely if selected window
5530         does not change; fixing the fix from 2010-06-07.
5531         (window_loop): Use window_show_other_buffer to avoid changing
5532         the current buffer when the buffer of the selected window is
5533         killed. (Bug#4654)
5535 2010-06-22  Jan Djärv  <jan.h.d@swipnet.se>
5537         * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
5539         * gtkutil.h (xg_show_scroll_bar): Remove.
5541         * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
5542         if height is less than scroll bar min size.
5543         (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
5545         * xfns.c (x_default_font_parameter): Try to open font from system
5546         before using it (bug#6478).  Rename got_from_gconf to got_from_system.
5548 2010-06-22  Keith Packard  <keithp@keithp.com>  (tiny change)
5550         * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
5552 2010-06-20  Eli Zaretskii  <eliz@gnu.org>
5554         * xdisp.c (try_scrolling): When scroll-conservatively is set to
5555         most-positive-fixnum, be extra accurate when scrolling window
5556         start, to avoid missing the cursor line.
5558 2010-06-19  Eli Zaretskii  <eliz@gnu.org>
5560         * xdisp.c (try_scrolling): Compute the limit for searching point
5561         in forward scroll from scroll_max, instead of an arbitrary limit
5562         of 10 screen lines.
5563         See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
5564         and
5565         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
5566         for details.
5568 2010-06-16  Glenn Morris  <rgm@gnu.org>
5570         * editfns.c (Fbyte_to_string): Pacify compiler.
5572 2010-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
5574         * lread.c (read1): Phase out old-style backquotes a bit more.
5576 2010-06-12  Eli Zaretskii  <eliz@gnu.org>
5578         * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
5579         bidimirror.h.
5581         * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
5583         * bidi.c (bidi_initialize): Remove explicit initialization of
5584         bidi_type_table; include biditype.h instead.  Don't support
5585         entries whose second codepoint is zero.  Initialize bidi_mirror_table.
5586         (bidi_mirror_char): Use bidi_mirror_table.
5588         * biditype.h: New file.
5590         * bidimirror.h: New file.
5592         * window.c (syms_of_window): Doc fix (bug#6409).
5594 2010-06-12  Romain Francoise  <romain@orebokech.com>
5596         * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
5597         ediff-hook.
5599 2010-06-10  Glenn Morris  <rgm@gnu.org>
5601         * editfns.c (Fbyte_to_string): Pacify compiler.
5603         * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
5605 2010-06-26  Andreas Schwab  <schwab@linux-m68k.org>
5607         * alloc.c (Fmake_byte_code): Don't access undefined argument
5608         (Bug#6517).
5610 2010-06-25  Chong Yidong  <cyd@stupidchicken.com>
5612         * xdisp.c (next_element_from_image): Ensure that after-strings are
5613         read the next time we hit handle_stop (Bug#1336).
5615 2010-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5617         * lread.c (read1): Signal error if #s is not followed by paren.
5619 2010-06-19  Chong Yidong  <cyd@stupidchicken.com>
5621         * image.c (free_image): Mark frame as garbaged (Bug#6426).
5623         * keymap.c (Fdefine_key): Doc fix (Bug#6460).
5625 2010-06-15  Glenn Morris  <rgm@gnu.org>
5627         * editfns.c (Fbyte_to_string): Pacify compiler.
5629 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
5631         * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
5632         Check `object's type before accessing its guts.
5634 2010-06-09  Dan Nicolaescu  <dann@ics.uci.edu>
5636         * s/usg5-4.h: Fix previous change.
5637         Suggested by Lawrence Mitchell <wence@gmx.li>
5639 2010-06-08  Andreas Schwab  <schwab@linux-m68k.org>
5641         * minibuf.c (Fall_completions): Add more checks.
5643 2010-06-08  Juanma Barranquero  <lekktu@gmail.com>
5645         * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
5647 2010-06-08  Dan Nicolaescu  <dann@ics.uci.edu>
5649         * lread.c (X_OK): Remove, unused.
5651         * dispnew.c: Remove obsolete comment.
5653         Remove INCLUDED_FCNTL.
5654         * xterm.c (INCLUDED_FCNTL):
5655         * callproc.c (INCLUDED_FCNTL):
5656         * alloc.c (INCLUDED_FCNTL):
5657         * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
5658         (emacs_get_tty, emacs_set_tty): Declare unconditionally.
5660 2010-06-07  Martin Rudalics  <rudalics@gmx.at>
5662         * window.c (Fselect_window): Move `record_buffer' up to the
5663         beginning of this function, so the buffer gets recorded
5664         even if the selected window does not change.
5665         http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
5667 2010-06-07  Juanma Barranquero  <lekktu@gmail.com>
5669         * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
5670         (Fforward_line, Fbeginning_of_line): Reflow docstrings.
5672 2010-06-06  Dan Nicolaescu  <dann@ics.uci.edu>
5674         Remove BSTRING related code, all platforms define it.
5675         * s/usg5-4.h (BSTRING): Remove definition.
5676         * s/template.h (BSTRING):
5677         * s/msdos.h (BSTRING):
5678         * s/ms-w32.h (BSTRING):
5679         * s/hpux10-20.h (BSTRING):
5680         * s/gnu-linux.h (BSTRING):
5681         * s/darwin.h (BSTRING):
5682         * s/cygwin.h (BSTRING):
5683         * s/bsd-common.h (BSTRING):
5684         * s/aix4-2.h (BSTRING): Likewise.
5685         * sysdep.c: Remove code depending on BSTRING not being defined.
5687 2010-06-05  Juanma Barranquero  <lekktu@gmail.com>
5689         Remove obsolete macro BASE_LEADING_CODE_P.
5690         * character.h (BASE_LEADING_CODE_P): Remove.
5691         * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
5692         * buffer.c (Fset_buffer_multibyte):
5693         * indent.c (scan_for_column, compute_motion):
5694         * insdel.c (count_combining_before, count_combining_after):
5695         Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
5697 2010-06-04  Juanma Barranquero  <lekktu@gmail.com>
5699         Turn `directory-sep-char' into a noop.
5701         * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
5702         (DIRECTORY_SEP): Define unconditionally.
5704         * s/ms-w32.h (DIRECTORY_SEP): Remove.
5706         * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
5707         call dostounix_filename directly.
5709         * fileio.c (CORRECT_DIR_SEPS): Remove.
5710         (Ffile_name_directory, directory_file_name, Fexpand_file_name)
5711         (Fsubstitute_in_file_name): Use dostounix_filename instead.
5712         (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
5713         (syms_of_fileio) <directory-sep-char>: Move to subr.el.
5715         * w32proc.c (CORRECT_DIR_SEPS): Remove.
5716         (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
5718 2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
5720         * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
5721         (Bug#6346)
5723 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
5725         * ccl.c (Fccl_program_p): Fix typo in docstring.
5727 2010-06-03  Dan Nicolaescu  <dann@ics.uci.edu>
5729         Move UNEXEC definition to autoconf.
5730         * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
5731         * s/sol2-10.h (UNEXEC):
5732         * s/irix6-5.h (UNEXEC):
5733         * s/hpux10-20.h (UNEXEC):
5734         * s/gnu-linux.h (UNEXEC):
5735         * s/darwin.h (UNEXEC):
5736         * s/cygwin.h (UNEXEC):
5737         * s/bsd-common.h (UNEXEC):
5738         * s/aix4-2.h (UNEXEC):
5739         * m/alpha.h (UNEXEC): Likewise.
5740         * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
5742 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
5744         Remove obsolete pre-unicode2 macros.
5745         * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
5746         * composite.c (composition_reseat_it):
5747         * data.c (Faset):
5748         * fns.c (Ffillarray):
5749         * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
5750         [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
5752 2010-06-03  Juri Linkov  <juri@jurta.org>
5754         * buffer.c (Fother_buffer): Add CHECK_FRAME.
5755         (Fswitch_to_buffer): Remove unused variable `err'.
5757 2010-06-03  Glenn Morris  <rgm@gnu.org>
5759         * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
5761         * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
5762         now that AH_BOTTOM does it.
5764         * m/hp800.h (HAVE_ALLOCA):
5765         * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
5767         * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
5768         Remove NOT_C_CODE tests, it is always true now.
5770 2010-06-02  Dan Nicolaescu  <dann@ics.uci.edu>
5772         Fix config.h includes.
5773         * xsettings.c:
5774         * xgselect.c:
5775         * nsterm.m:
5776         * nsselect.m:
5777         * nsimage.m:
5778         * nsfont.m:
5779         * nsfns.m:
5780         * dbusbind.c: Use #include <config.h> instead of "config.h" as all
5781         other files do.
5783         * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
5785         * s/sol2-6.h: Remove obsolete comments.
5787         Remove unnecessary alloca.h includes.
5788         * keymap.c: Do not include alloca.h, config.h does that.
5789         * sysdep.c: Likewise.  Do not define fwrite, not used.
5791 2010-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
5793         * sysdep.c (child_setup_tty): Move the non-canonical initialization to
5794         the HAVE_TERMIO where it belongs (bug#6149).
5796 2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
5798         * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
5799         of bug#6305).
5801 2010-05-30  Eli Zaretskii  <eliz@gnu.org>
5803         * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
5804         state is always cached (bug#6306).
5806 2010-05-29  Eli Zaretskii  <eliz@gnu.org>
5808         Fix cursor motion in bidi-reordered continued lines.
5809         * xdisp.c (try_cursor_movement): Backup to non-continuation line
5810         only after finding point's row.  Fix the logic.  Rewrite the loop
5811         over continuation lines in bidi-reordered buffers.
5812         Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
5813         rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
5815 2010-05-28  Michael Albinus  <michael.albinus@gmx.de>
5817         * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
5819 2010-05-28  Kenichi Handa  <handa@m17n.org>
5821         * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
5822         Don't sheck SPEC if it is nil.
5823         (font_list_entities): Call font_delete_unmatched if
5824         Vface_ignored_fonts is non-nil.  (Bug#6287)
5826 2010-05-28  Glenn Morris  <rgm@gnu.org>
5828         * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
5830 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
5832         * fileio.c (Fdelete_file): Change meaning of optional arg to mean
5833         whether to trash.
5834         (internal_delete_file, Frename_file): Callers changed.
5835         (delete_by_moving_to_trash): Doc fix.
5836         (Fdelete_directory_internal): Don't move to trash.
5838         * callproc.c (delete_temp_file):
5839         * buffer.c (Fkill_buffer): Callers changed.
5841         * lisp.h: Update prototype.
5843 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
5845         * xdisp.c (redisplay_window): After redisplay, check if point is
5846         still valid before setting it (Bug#6177).
5848 2010-05-27  Glenn Morris  <rgm@gnu.org>
5850         * Makefile.in, autodeps.mk, deps.mk, ns.mk:
5851         Convert comments to Makefile format.
5853         * Makefile.in (bootstrap-clean): No more Makefile.c.
5855 2010-05-26  Glenn Morris  <rgm@gnu.org>
5857         * Makefile.in (YMF_PASS_LDFLAGS): Remove.
5858         (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
5860         * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5861         Remove.
5862         (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5864 2010-05-26  Kenichi Handa  <handa@m17n.org>
5866         * composite.c (composition_compute_stop_pos): Fix condition for
5867         backward scanning.
5869 2010-05-25  Glenn Morris  <rgm@gnu.org>
5871         * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
5872         Move before TEMACS_LDFLAGS.
5873         (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5874         (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
5876         * Makefile.in (NOT_C_CODE): No longer define.
5877         (config.h): No longer include.
5879         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
5880         variables it may reference.
5882         * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
5883         (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
5885 2010-05-25  Kenichi Handa  <handa@m17n.org>
5887         * dispextern.h (struct composition_it): New members rule_idx and
5888         charpos.
5890         * xdisp.c (set_iterator_to_next): While scanning backward, assume
5891         that the character positions of IT point the last character of the
5892         current grapheme cluster.
5893         (next_element_from_composition): Don't change character positions
5894         of IT.
5895         (append_composite_glyph): Set glyph->charpos to
5896         it->cmp_it.charpos.
5898         * composite.c (autocmp_chars): Change the first argument to RULE,
5899         and try composition with RULE only.
5900         (composition_compute_stop_pos): Record the index number of the
5901         composition rule in CMP_IT->rule_idx.
5902         (composition_reseat_it): Call autocmp_chars repeatedly until the
5903         correct rule of the composition is found.
5904         (composition_update_it): Set CMP_IT->charpos.  Assume the CHARPOS
5905         is at the last character of the current grapheme cluster when
5906         CMP_IT->reversed_p is nonzero.
5908 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
5910         * editfns.c (Fbyte_to_string): New function.
5912 2010-05-24  Stefan Monnier  <monnier@iro.umontreal.ca>
5914         * process.c (Fmake_network_process): Set :host to nil if it's not used.
5915         Suggested by Masatake YAMATO <yamato@redhat.com>.
5917 2010-05-23  Eli Zaretskii  <eliz@gnu.org>
5919         * dispextern.h (init_iterator): Sync prototype with changed definition.
5921 2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
5923         * s/netbsd.h: If terminfo is found, use it in preference to
5924         termcap.  (Bug#6190)  [Backport from trunk]
5926 2010-05-19  Eli Zaretskii  <eliz@gnu.org>
5928         Redesign and reimplement bidi-aware edge positions of glyph rows.
5930         * dispextern.h (struct glyph_row): New members minpos and maxpos.
5931         (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
5932         (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
5933         and maxpos members instead of start.pos and end.pos, respectively.
5935         * xdisp.c (display_line): Compare IT_CHARPOS with the position in
5936         row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
5937         (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
5938         (try_window_reusing_current_matrix, try_window_id):
5939         Use ROW->minpos rather than ROW->start.pos.
5940         (init_from_display_pos, init_iterator): Use EMACS_INT for
5941         character and byte positions.
5942         (find_row_edges): Rename from find_row_end.  Accept additional
5943         arguments for minimum and maximum buffer positions seen by
5944         display_line for this row.  Don't use iterator to find the
5945         position following the maximum one; instead, increment the
5946         position found by display_line directly.  Fix logic; eol_pos
5947         should be tested before the rest.  Handle the case of characters
5948         delivered from display vector (bug#6036).  Fix tests related to
5949         it->method.  Handle the truncated_on_right_p rows.
5950         (RECORD_MAX_MIN_POS): New macro.
5951         (display_line): Use it to record the minimum and maximum buffer
5952         positions for glyphs in the row being assembled.  Record the
5953         position of the newline that terminates the line.  If word wrap is
5954         in effect, restore minimum and maximum positions seen up to the
5955         wrap point, when iterator returns to it.
5956         (try_window_reusing_current_matrix): Give up if in bidi-reordered
5957         row and cursor not already at point.  Restore original pre-bidi
5958         code for unidirectional buffers.
5960         * dispnew.c (increment_row_positions, check_matrix_invariants):
5961         Increment and check row->start.pos and row->end.pos, in addition
5962         to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
5964         * .gdbinit (prowlims): Display row->minpos and row->maxpos.
5965         Display truncated_on_left_p and truncated_on_right_p flags.
5966         Formatting fixes.
5967         (pmtxrows): Display the ordinal number of each row.  Don't display
5968         rows beyond the last one.
5970         * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
5971         it is not copied by bidi_copy_it.
5973 2010-05-22  Eli Zaretskii  <eliz@gnu.org>
5975         * w32.c (sys_write): Break writes into chunks smaller than 32MB.
5976         (Bug#6237)
5978 2010-05-22  Chong Yidong  <cyd@stupidchicken.com>
5980         * image.c (Fimage_flush): Rename from image-refresh.
5982 2010-05-21  Chong Yidong  <cyd@stupidchicken.com>
5984         * xdisp.c (redisplay_internal): Clear caches even if redisplaying
5985         just one window.
5987         * image.c (Vimage_cache_eviction_delay): Decrease to 300.
5988         (clear_image_cache): If the number of cached images is unusually
5989         large, decrease the cache eviction delay (Bug#6230).
5991 2010-05-21  Glenn Morris  <rgm@gnu.org>
5993         * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
5994         Move these rules to ns.mk.
5995         * ns.mk: New file.
5997         * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
5999         * Makefile.in (CANNOT_DUMP): New, set by configure.
6000         (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
6002 2010-05-20  Juri Linkov  <juri@jurta.org>
6004         * fileio.c (Fdelete_file): Change interative spec to use
6005         `read-file-name' like in `find-file-read-args' where the default
6006         value is `default-directory' instead of `buffer-file-name'.
6007         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
6009 2010-05-20  Kevin Ryde  <user42@zip.com.au>
6011         * keyboard.c (Vlast_command, Vkeyboard_translate_table)
6012         (Voverriding_terminal_local_map, Vsystem_key_alist)
6013         (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
6015 2010-05-20  Glenn Morris  <rgm@gnu.org>
6017         * Makefile.in (DEPDIR): New constant.
6018         (DEPFLAGS): Set with configure, not cpp.
6019         (MKDEPDIR): New, set by configure.
6020         (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
6021         (clean): Use $DEPDIR.
6022         (deps_frag): Include from configure.
6023         Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
6024         * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
6026         * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
6027         Fix reallocation of the cache.  (Bug#6210)
6029 2010-05-19  Glenn Morris  <rgm@gnu.org>
6031         * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
6033         * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
6034         (GNULIB_VAR): Remove.
6035         (LIBES): Use LIB_GCC instead of GNULIB_VAR.
6037         * m/ibms390x.h (LINKER):
6038         * m/macppc.h (LINKER) [GNU_LINUX]:
6039         * s/aix4-2.h (ORDINARY_LINK):
6040         * s/cygwin.h (LINKER):
6041         * s/darwin.h (ORDINARY_LINK):
6042         * s/gnu.h (ORDINARY_LINK):
6043         * s/netbsd.h (LINKER):
6044         * s/usg5-4.h (ORDINARY_LINK):
6045         Move to configure.
6047         * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
6049 2010-05-18  Chong Yidong  <cyd@stupidchicken.com>
6051         * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
6052         prevent stack overflow if number of arguments is too large
6053         (Bug#6214).
6055 2010-05-18  Juanma Barranquero  <lekktu@gmail.com>
6057         * charset.c (load_charset_map_from_file): Don't call close after fclose.
6059 2010-05-18  Glenn Morris  <rgm@gnu.org>
6061         * s/gnu-linux.h: Combine two conditionals.
6063         * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6064         $(POST_ALLOC_OBJ).
6066         * Makefile.in (RALLOC_OBJ): New, set by configure.
6067         (rallocobj): Replace with the previous variable.
6068         (otherobj): Use $RALLOC_OBJ.
6070         * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
6071         * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
6073         * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
6074         (gmallocobj, vmlimitobj): Replace with previous two variables.
6075         (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6077 2010-05-17  Glenn Morris  <rgm@gnu.org>
6079         * Makefile.in (OLDXMENU_DEPS): New, set by configure.
6080         (stamp-oldxmenu): Use $OLDXMENU_DEPS.
6082 2010-05-16  Glenn Morris  <rgm@gnu.org>
6084         * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
6086         * Makefile.in (clean): Get rid of HAVE_NS conditional.
6088         * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
6089         trailing "/".
6091         * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
6092         (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
6094         * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
6095         (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
6096         (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
6097         (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
6098         Make most of the NS_IMPL_GNUSTEP case the same as the default case.
6100         * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
6101         Remove ${STARTFLAGS}, nothing ever sets it.
6103 2010-05-16  Dan Nicolaescu  <dann@ics.uci.edu>
6105         * m/ia64.h (UNEXEC): Remove, set in s/*.h.
6107 2010-05-16  Glenn Morris  <rgm@gnu.org>
6109         * Makefile.in (LIBX_BASE): Always define.
6111         * Makefile.in (LIBX_OTHER): Move out of cpp section.
6113         * Makefile.in (LIBXT): Always define.
6115 2010-05-15  Glenn Morris  <rgm@gnu.org>
6117         * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
6119         * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
6120         (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
6122 2010-05-15  Ken Raeburn  <raeburn@raeburn.org>
6124         * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue.  (Bug#5916)
6125         (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
6127         * emacs.c (main): Initialize initial-environment and
6128         process-environment before generating from env, not after.
6130         Handle --version reasonably in CANNOT_DUMP configuration.
6131         * emacs.c (emacs_version, emacs_copyright): New string variables.
6132         (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
6133         (syms_of_emacs): Defvar them, and initialize them from the C
6134         string variables.
6135         (main): If initialization hasn't been done, print initial version
6136         info from the C strings, instead of starting an interactive session.
6138 2010-05-15  Eli Zaretskii  <eliz@gnu.org>
6140         * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
6141         of bidi_it->paragraph_dir.  Call bidi_initialize if needed.
6142         (bidi_paragraph_init): Remove redundant assertion that we are at
6143         the beginning of a line after call to bidi_find_paragraph_start.
6145         * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
6146         (syms_of_xdisp): Defsubr it.
6148         * cmds.c (Fforward_char, Fbackward_char): Doc fix.
6150         * Makefile.in: Fix MSDOS-related comments.
6152 2010-05-15  Glenn Morris  <rgm@gnu.org>
6154         * Makefile.in (OLDXMENU_TARGET): New, set by configure.
6155         (really-lwlib, really-oldXMenu): Always define.
6156         ($OLDXMENU): Depend on $OLDXMENU_TARGET.
6158         * Makefile.in: Simplify cpp conditional.
6160         * Makefile.in (${ns_appdir}): Simplify using umask.
6162         * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
6164 2010-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
6166         * eval.c (specbind): Remove left-over duplicate test.
6167         Disallow let-binding frame-local vars.  Add comment.
6169 2010-05-14  Eli Zaretskii  <eliz@gnu.org>
6171         Make the cache of bidi iterator states dynamically allocated.
6172         * bidi.c (bidi_cache_shrink): New function.
6173         (bidi_init_it): Call it.
6174         (bidi_cache_iterator_state): Enlarge the cache if needed.
6176         * bidi.c (bidi_move_to_visually_next): Rename from
6177         bidi_get_next_char_visually.  All callers changed.
6179 2010-05-14  Kenichi Handa  <handa@m17n.org>
6181         * dispextern.h (struct composition_it): New member reversed_p.
6183         * composite.c (composition_compute_stop_pos): Search backward if
6184         ENDPOS < CHARPOS.
6185         (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
6186         Set CMP_IT->reversed_p.
6187         (composition_update_it): Pay attention to CMP_IT->reversed_p.
6189         * xdisp.c (set_iterator_to_next):
6190         Call composition_compute_stop_pos with negative ENDPOS if we are
6191         scanning backward.  Call composition_compute_stop_pos if scan
6192         direction is changed.
6193         (next_element_from_buffer): Call composition_compute_stop_pos with
6194         negative ENDPOS if we are scanning backward.
6195         (next_element_from_composition): Pay attention to
6196         IT->cmp_it.reversed_p.
6198 2010-05-14  Kenichi Handa  <handa@m17n.org>
6200         * font.c (font_range): Return the range for the font found at first.
6202 2010-05-14  Glenn Morris  <rgm@gnu.org>
6204         * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
6206         * Makefile.in (mktime, X11, register): Move undefs to configure.
6208         * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
6209         (MSDOS_X_OBJ): New variable.
6210         (MSDOS_SUPPORT_REAL): New constant.
6211         (MSDOS_SUPPORT): Set as a variable, not with cpp.
6212         (obj): Use MSDOS_X_OBJ.
6213         (lisp): Use MSDOS_SUPPORT as a variable.
6215         * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
6216         (GPM_MOUSE_SUPPORT): Now it's a constant.
6217         (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
6218         not cpp.
6220         * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
6221         (ns_appresdir): Remove, unused.
6223         * Makefile.in (SHELL): Move outside cpp section.
6225         * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
6227 2010-05-13  Glenn Morris  <rgm@gnu.org>
6229         * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
6230         (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
6232         * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
6233         HAVE_WINDOW_SYSTEM must be too.
6235         * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
6236         (lisp): Remove WINNT_SUPPORT.
6238         * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
6239         Let configure set these variables (to empty) in this case as well.
6241         * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
6242         (LIBX_BASE): Use $LD_SWITCH_X_SITE.
6244         * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
6245         (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
6246         (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
6247         (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
6248         (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
6249         the values output by configure.
6250         (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
6252 2010-05-12  Glenn Morris  <rgm@gnu.org>
6254         * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
6255         (LINKER_WAS_SPECIFIED): Remove.
6257         * Makefile.in (LIB_GCC): Set using configure, not cpp.
6258         (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
6259         * m/arm.h (LIB_GCC) [GNU_LINUX]:
6260         * s/cygwin.h (LIB_GCC):
6261         * s/freebsd.h (LIB_GCC):
6262         * s/gnu-linux.h (LIB_GCC):
6263         * s/msdos.h (LIB_GCC):
6264         * s/netbsd.h (LIB_GCC):
6265         Move to configure.
6267 2010-05-11  Karel Klíč  <kklic@redhat.com>
6269         * ftfont.c: Fix incorrect parentheses of #if condition for
6270         definining M17N_FLT_USE_NEW_FEATURE.
6272 2010-05-11  Glenn Morris  <rgm@gnu.org>
6274         * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
6275         * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
6277 2010-05-10  Eli Zaretskii  <eliz@gnu.org>
6279         * xdisp.c (init_iterator): Don't turn on bidi reordering in
6280         unibyte buffers.  See
6281         http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
6283 2010-05-10  Glenn Morris  <rgm@gnu.org>
6285         * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
6286         (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
6287         (LIBES): Use LIBS_SYSTEM as a variable.
6288         * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM.  Always define.
6289         * s/aix4-2.h (LIBS_SYSTEM):
6290         * s/freebsd.h (LIBS_SYSTEM):
6291         * s/hpux10-20.h (LIBS_SYSTEM):
6292         * s/sol2-6.h (LIBS_SYSTEM):
6293         * s/unixware.h (LIBS_SYSTEM):
6294         Move to configure.
6296         * s/aix4-2.h (MAIL_USE_LOCKF):
6297         * s/bsd-common.h (MAIL_USE_FLOCK):
6298         * s/darwin.h (MAIL_USE_FLOCK):
6299         * s/gnu-linux.h (MAIL_USE_FLOCK):
6300         * s/irix6-5.h (MAIL_USE_FLOCK):
6301         * s/template.h (MAIL_USE_FLOCK):
6302         Move to configure.
6304 2010-05-08  Chong Yidong  <cyd@stupidchicken.com>
6306         * Version 23.2 released.
6308 2010-05-08  Andreas Schwab  <schwab@linux-m68k.org>
6310         * composite.c (autocmp_chars): Save point as marker before calling
6311         auto-composition-function (Bug#5984).
6313         * lisp.h (restore_point_unwind): Add prototype.
6315         * fileio.c (restore_point_unwind): Remove static attribute.
6317 2010-05-08  Kenichi Handa  <handa@m17n.org>
6319         * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
6320         new feature of libotf and m17n-flt.
6321         (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
6322         Call OTF_check_features even if no specific feature is given.
6323         (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
6324         (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
6325         that OUT is NULL.  Use OTF_drive_gsub_with_log and
6326         OTF_drive_gpos_with_log instead of OTF_drive_gsub and
6327         OTF_drive_gpos.
6328         (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
6329         (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
6330         Setup mflt_enable_new_feature and mflt_try_otf.
6332 2010-05-08  Jan Djärv  <jan.h.d@swipnet.se>
6334         * xsettings.c (Ftool_bar_get_system_style): Correct comment.
6336         * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
6337         box and toolbar (Bug #6139).
6338         (xg_create_tool_bar): Remove comment (Bug #6139).
6339         (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
6340         (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
6342 2010-05-08  Juanma Barranquero  <lekktu@gmail.com>
6344         * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
6345         Update dependencies.
6347 2010-05-08  Eli Zaretskii  <eliz@gnu.org>
6349         * fringe.c (update_window_fringes): Set up truncation bitmaps for
6350         R2L lines.
6352 2010-05-08  Glenn Morris  <rgm@gnu.org>
6354         * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
6356         * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
6357         (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
6358         (termcapobj): Replace with TERMCAP_OBJ.
6359         (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
6360         (LIBES): Use LIBS_TERMCAP as a variable.
6362         * s/freebsd.h (osreldate.h): No longer include, since this file
6363         does not use __FreeBSD_version any more.
6365         * s/aix4-2.h (TERMINFO):
6366         * s/cygwin.h (TERMINFO):
6367         * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6368         * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
6369         * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6370         * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
6371         * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
6372         * s/irix6-5.h (TERMINFO):
6373         * s/netbsd.h (LIBS_TERMCAP):
6374         * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
6375         * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
6376         * s/usg5-4.h (TERMINFO):
6377         Move to configure.
6379 2010-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
6381         * eval.c (unbind_to): Don't unbind a local binding into the global
6382         binding when the local binding disappeared.  Inversely, don't unbind
6383         a global binding into a newly created local binding.
6384         * data.c (set_internal): Make its `buf' arg into a `where' arg so we
6385         can specify the frame to use, when applicable.  Adjust callers.
6387 2010-05-07  Vincent Belaïche  <vincent.belaiche@gmail.com>
6388             Stefan Monnier  <monnier@iro.umontreal.ca>
6390         * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
6392 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
6394         * w32fns.c: Include w32.h.
6395         (Fw32_shell_execute): Decode the error message before passing it
6396         to `error'.  (Bug#6126)
6398         * msdos.c (dos_set_window_size):
6399         * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
6400         instead of `XSYMBOL (foo)->value'.
6402 2010-05-07  Eli Zaretskii  <eliz@gnu.org>
6404         Fix the MS-DOS build, broken by autoconfiscation.
6406         * Makefile.in: Don't use Make-style comments past the "start of
6407         cpp stuff" line.
6408         (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
6410         * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
6411         edited directly by msdos/sed1v2.inp).
6413 2010-05-07  Glenn Morris  <rgm@gnu.org>
6415         * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
6416         (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
6417         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
6418         move out of cpp section.
6419         * s/freebsd.h (LD_SWITCH_SYSTEM):
6420         * s/gnu-linux.h (LD_SWITCH_SYSTEM):
6421         * s/netbsd.h (LD_SWITCH_SYSTEM):
6422         * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
6424 2010-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
6426         Define LIB_STANDARD and START_FILES using autoconf.
6427         * s/usg5-4.h (LIB_STANDARD):
6428         * s/netbsd.h (START_FILES):
6429         * s/irix6-5.h (LIB_STANDARD):
6430         * s/hpux10-20.h (LIB_STANDARD, START_FILES):
6431         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6432         * s/freebsd.h (START_FILES):
6433         * s/darwin.h (START_FILES):
6434         * s/cygwin.h (START_FILES):
6435         * s/aix4-2.h (LIB_STANDARD):
6436         * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
6437         * Makefile.in (STARTFILES): Rename to START_FILES, define using
6438         autoconf, not cpp.
6440 2010-05-06  Dan Nicolaescu  <dann@ics.uci.edu>
6442         Remove NEED_BSDTTY and NEED_UNISTD_H.
6443         * s/hpux10-20.h (NEED_BSDTTY): Remove.
6444         * s/aix4-2.h (NEED_UNISTD_H): Remove.
6445         * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
6446         <sys/ptyio.h> and <unistd.h>.
6448         * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
6450         * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
6451         * s/gnu.h (START_FILES): Remove empty definition.
6453 2010-05-06  Jan Djärv  <jan.h.d@swipnet.se>
6455         * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
6457 2010-05-06  Glenn Morris  <rgm@gnu.org>
6459         * Makefile.in (CPP, LN_S): Remove unused variables.
6461 2010-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
6463         * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
6465 2010-05-05  Lawrence Mitchell  <wence@gmx.li>
6467         * m/sparc.h: Fix typo in earlier change.
6469 2010-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
6471         Misc tweaks.
6472         * eval.c (Fdefvaralias): Remove unintended nested if.
6473         (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
6475 2010-05-04  Bernhard Herzog  <bh@intevation.de>  (tiny change)
6477         * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
6479 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
6481         Remove BSD_PGRPS.
6482         * s/bsd-common.h (BSD_PGRPS): Remove undef.
6483         * s/gnu-linux.h (BSD_PGRPS): Remove.
6484         * term.c (dissociate_if_controlling_tty):
6485         * sysdep.c (narrow_foreground_group, widen_foreground_group)
6486         (init_sys_modes, reset_sys_modes):
6487         * emacs.c (main):
6488         * callproc.c (Fcall_process, child_setup): Remove code depending
6489         on BSD_PGRPS.
6491         Remove POSIX_SIGNALS.
6492         * s/usg5-4.h (POSIX_SIGNALS):
6493         * s/netbsd.h (POSIX_SIGNALS):
6494         * s/msdos.h (POSIX_SIGNALS):
6495         * s/ms-w32.h (POSIX_SIGNALS):
6496         * s/hpux11.h (POSIX_SIGNALS):
6497         * s/gnu.h (POSIX_SIGNALS):
6498         * s/gnu-linux.h (POSIX_SIGNALS):
6499         * s/freebsd.h (POSIX_SIGNALS):
6500         * s/darwin.h (POSIX_SIGNALS):
6501         * s/cygwin.h (POSIX_SIGNALS):
6502         * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
6503         * s/unixware.h:
6504         * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
6505         * process.c (create_process):
6506         * syssignal.h:
6507         * sysdep.c (wait_for_termination, init_signals):
6508         * process.c (create_process):
6509         * msdos.c: POSIX_SIGNALS is always defined on all platforms,
6510         remove all code that assumes the contrary.
6512 2010-05-04  Glenn Morris  <rgm@gnu.org>
6514         * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
6515         variable.
6516         * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6517         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
6518         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
6519         (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
6520         LD_SWITCH_SYSTEM_tmp.
6521         * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
6522         New variables, set by configure.
6524         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6525         * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
6526         (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
6527         * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
6528         (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
6530         * s/aix4-2.h (C_SWITCH_SYSTEM):
6531         * m/alpha.h (C_SWITCH_MACHINE):
6532         Move to configure.in.
6533         * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
6534         New variables, set by configure.
6535         (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
6536         $c_switch_machine and $c_switch_system.
6538 2010-05-04  Dan Nicolaescu  <dann@ics.uci.edu>
6540         * s/hpux10-20.h (LIB_STANDARD): New definition.
6541         * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
6542         on it, not used anymore.
6544 2010-05-03  Chong Yidong  <cyd@stupidchicken.com>
6546         * eval.c (internal_condition_case_n): Rename from
6547         internal_condition_case_2.
6548         (internal_condition_case_2): New function.
6550         * xdisp.c (safe_call): Use internal_condition_case_n.
6552         * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
6553         (internal_delete_file, Frename_file): Callers changed.
6555         * buffer.c (Fkill_buffer):
6556         * callproc.c (delete_temp_file): Callers changed (Bug#6070).
6558         * lisp.h: Update prototypes.
6560 2010-05-03  Glenn Morris  <rgm@gnu.org>
6562         * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
6563         (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
6564         (LIBXT): Set with configure, not cpp.
6565         (LIBX): Remove.
6566         (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
6568 2010-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
6570         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
6571         The FreeBSD is not needed, the default works, Solaris version is
6572         not needed, and the remaining case is not supported by configure.
6574 2010-05-02  Jan Djärv  <jan.h.d@swipnet.se>
6576         * xsmfns.c (CHDIR_OPT): New define.
6577         (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
6578         restarting emacs.
6580         * xterm.c (x_connection_closed): Call Fkill_emacs instead of
6581         shut_down_emacs.
6583         * emacs.c (USAGE1): Mention --chdir.
6584         (main): Handle --chdir.
6585         (standard_args): Add --chdir.
6586         (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
6587         #5552).
6589 2010-05-01  Dan Nicolaescu  <dann@ics.uci.edu>
6591         Remove LD_SWITCH_MACHINE.
6592         * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
6593         (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
6595         Clean up IRIX code.
6596         * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
6597         * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
6599         Clean up AIX code.
6600         * m/ibmrs6000.inp: Remove file, unused.
6601         * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
6602         (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
6603         definition ...
6604         * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
6606         * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
6607         unused.
6609 2010-05-01  Eli Zaretskii  <eliz@gnu.org>
6611         Emulate POSIX_SIGNALS on MS-Windows.
6613         * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
6614         (SIG_SETMASK, SIG_UNBLOCK): Define.
6616         * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
6617         (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
6618         from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
6620         * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
6621         New stubs.
6623         Miscellaneous fixes of bidi display.
6625         * xdisp.c (find_row_end): New function, refactored from display_line.
6626         (display_line): Use it.
6627         (extend_face_to_end_of_line): In almost-filled rows, extend only
6628         if the row is R2L and not continued.
6629         (display_line): Fix prepending of truncation glyphs to R2L rows.
6630         Preserve overlay and string info in row->end.
6631         (insert_left_trunc_glyphs): Support addition of left truncation
6632         glyphs to R2L rows.
6633         (set_cursor_from_row): Don't place cursor on the vertical border
6634         glyph between adjacent windows.  Fix a crash when a display string
6635         is continued to the next line.  Don't return zero if cursor was
6636         found by `cursor' property of a display string.
6637         (try_cursor_movement): Don't assume that row->end == (row+1)->start,
6638         test for that explicitly.
6640 2010-05-01  Glenn Morris  <rgm@gnu.org>
6642         * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
6643         for clarity.
6644         (OTHER_OBJ): Remove.
6645         (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
6646         (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
6648 2010-05-01  Karel Klíč  <kklic@redhat.com>
6650         * fileio.c (Ffile_selinux_context): Context functions may return null.
6652 2010-04-30  Dan Nicolaescu  <dann@ics.uci.edu>
6654         * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
6656 2010-04-30  Glenn Morris  <rgm@gnu.org>
6658         * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable.  (Bug#6065)
6659         (OTHER_OBJ): Define as a separate variable, for clarity.
6661 2010-04-30  Jan Djärv  <jan.h.d@swipnet.se>
6663         * xsettings.c: include limits.h and update file comment.
6665 2010-04-30  Glenn Morris  <rgm@gnu.org>
6667         * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
6668         Set with configure, not cpp.
6669         (LIBW): Remove, replace with $TOOLKIT_LIBW.
6671         * Makefile.in (mallocobj): Remove.
6672         (otherobj): Simplify using @OTHER_OBJ@.
6674         * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
6675         (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
6676         Don't bother making nsgui.h dependency platform-specific.
6678         * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
6680 2010-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
6682         * process.c (read_process_output, exec_sentinel): Don't burp if the
6683         sentinel/filter kills the current buffer (bug#6060).
6685         Fix wrong-docstring problem introduced with hash-consing.  (Bug#6008)
6686         * eval.c (Fautoload): Set doc to a unique number rather than to 0.
6687         Remove unused var `args'.
6688         * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
6689         (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
6690         * doc.c (store_function_docstring): Use XSETCAR.
6692 2010-04-28  Glenn Morris  <rgm@gnu.org>
6694         * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
6695         (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
6697         * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
6699         * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
6700         (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
6702         * Makefile.in (FONT_OBJ): New, set by configure.
6703         (FONT_DRIVERS): Use $FONT_OBJ.
6705         * Makefile.in (LIBXMU): Set with configure, not cpp.
6706         * s/aix4-2.h (LIBXMU):
6707         * s/hpux10-20.h (LIBXMU):
6708         Remove definition, now set in configure.
6710         * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
6712         * m/amdx86-64.h [i386]: Move this test to configure.in.
6714 2010-04-27  Glenn Morris  <rgm@gnu.org>
6716         * Makefile.in (LIBXTR6): Set with configure, not cpp.
6717         * s/unixware.h (NEED_LIBW): Remove definition.
6719         * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
6720         (TOOLKIT_LIBW): New, set by configure.
6721         (@X_TOOLKIT_TYPE@): No longer define it.
6723         * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
6724         (MOTIF_LIBW): Set with configure, not cpp.
6725         * s/aix4-2.h (LIB_MOTIF):
6726         * s/gnu-linux.h (LIB_MOTIF):
6727         * s/unixware.h (LIB_MOTIF): Move to configure.in.
6729 2010-04-27  Dan Nicolaescu  <dann@ics.uci.edu>
6731         Reduce CPP usage.
6732         * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
6733         (obj): Use autoconf for unexec instead of cpp.
6734         (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
6735         Remove definitions and undefs.  Inline definitions in the only user.
6736         (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
6738 2010-04-27  Glenn Morris  <rgm@gnu.org>
6740         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
6741         since the defaults (set by the system file) are fine in most cases.
6742         [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
6743         * m/ibms390x.h (START_FILES, LIB_STANDARD):
6744         * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
6745         * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
6746         Remove definitions, since they are set correctly in s/gnu-linux.h.
6747         * s/freebsd.h (START_FILES, LIB_STANDARD):
6748         * s/gnu-linux.h (START_FILES, LIB_STANDARD):
6749         * s/hpux10-20.h (START_FILES):
6750         * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
6751         Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
6753         * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
6754         (MOTIF_LIBW): Use $LIBXP.
6755         (otherobj): Use $WIDGET_OBJ.
6757 2010-04-26  Dan Nicolaescu  <dann@ics.uci.edu>
6759         * Makefile.in (LIBS_MACHINE): Remove, unused.
6761         Use autoconf instead of cpp for LIB_MATH.
6762         * s/darwin.h (LIB_MATH): Do not define here, move to configure.
6763         * s/cygwin.h (LIB_MATH): Likewise.
6764         * Makefile.in (LIB_MATH): Do not define with cpp.
6765         (LIBES): Use autoconf for LIB_MATH.
6767 2010-04-26  Kenichi Handa  <handa@m17n.org>
6769         * composite.c (Ffind_composition_internal): Fix the return value
6770         for an automatic composition.
6772 2010-04-25  Dan Nicolaescu  <dann@ics.uci.edu>
6774         Remove all NO_ARG_ARRAY uses.
6775         * fns.c (concat2, concat3, nconc2):
6776         * eval.c (apply1, call1, call2, call3, call4, call5, call6)
6777         (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
6778         * m/xtensa.h (NO_ARG_ARRAY):
6779         * m/template.h (NO_ARG_ARRAY):
6780         * m/sparc.h (NO_ARG_ARRAY):
6781         * m/sh3.h (NO_ARG_ARRAY):
6782         * m/mips.h (NO_ARG_ARRAY):
6783         * m/macppc.h (NO_ARG_ARRAY):
6784         * m/iris4d.h (NO_ARG_ARRAY):
6785         * m/intel386.h (NO_ARG_ARRAY):
6786         * m/ibms390x.h (NO_ARG_ARRAY):
6787         * m/ibms390.h (NO_ARG_ARRAY):
6788         * m/ibmrs6000.h (NO_ARG_ARRAY):
6789         * m/ia64.h (NO_ARG_ARRAY):
6790         * m/hp800.h (NO_ARG_ARRAY):
6791         * m/arm.h (NO_ARG_ARRAY):
6792         * m/amdx86-64.h (NO_ARG_ARRAY):
6793         * m/alpha.h (NO_ARG_ARRAY): Remove definition.
6795 2010-04-25  Eli Zaretskii  <eliz@gnu.org>
6797         * xdisp.c (display_line): Don't assume 2nd call to
6798         get_next_display_element cannot return zero.  (Bug#6030)
6799         (iterate_out_of_display_property): New function, body from pop_it.
6800         (pop_it): Use it.
6802 2010-04-24  Glenn Morris  <rgm@gnu.org>
6804         * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
6805         For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
6806         (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
6807         since CRT_DIR defaults to /usr/lib.  Suggested by Dan Nicolaescu.
6809 2010-04-24  Eli Zaretskii  <eliz@gnu.org>
6811         * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
6812         use `get_next_display_element' and `set_iterator_to_next' to
6813         advance to the next character, when looking for the character that
6814         begins the next row.
6816         * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
6817         definition of "struct Lisp_Symbol".
6819 2010-04-24  Glenn Morris  <rgm@gnu.org>
6821         * Makefile.in (CRT_DIR): New variable, set by configure.
6822         * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
6823         Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)
6825 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
6827         * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
6829         * s/cygwin.h (LIBS_DEBUG): Remove, unused.
6831         Remove redundant flags.
6832         * s/freebsd.h (C_SWITCH_SYSTEM):
6833         * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
6834         * s/netbsd.h (C_SWITCH_SYSTEM):
6835         * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
6836         of these.
6838         Simplify m/intel386.h.
6839         * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
6840         user: ecrt0.c.
6841         (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
6842         (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
6843         the only user: s/unixware.h.
6844         * ecrt0.c: Remove #ifndef static.  Inline CRT0_DUMMIES definition
6845         from m/intel386.h.
6846         * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
6847         Definitions moved here from m/intel386.h.
6849         * m/mips.h: Remove #if 0 code.
6851 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
6853         Fix display of composed characters from L2R scripts in bidi buffers.
6854         * xdisp.c (set_iterator_to_next, next_element_from_composition):
6855         After advancing IT past the composition, resync the bidi iterator
6856         with IT's position.  (Bug#5977)
6858 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
6860         * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
6861         (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
6863 2010-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
6865         * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
6867 2010-04-23  Eli Zaretskii  <eliz@gnu.org>
6869         Support `display' text properties and overlay strings in bidi buffers.
6870         * xdisp.c (pop_it): When the stack is popped after displaying
6871         from a string, bidi-iterate to exit from the text portion covered
6872         by the `display' property or overlay.  (Bug#5988, bug#5920)
6874 2010-04-23  Dan Nicolaescu  <dann@ics.uci.edu>
6876         * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
6877         (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
6879         * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
6880         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
6882         Simplify STARTFILES definition.
6883         * s/hpux10-20.h (START_FILES): Explicitly define here instead of
6884         relying on Makefile.in to define it.
6885         * s/cygwin.h (START_FILES): Likewise.
6886         * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
6888         Clean up Solaris code.
6889         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
6890         (LIB_MOTIF): Remove, configure takes care of this.
6891         (NOT_USING_MOTIF): Remove, unused.
6892         * xrdb.c: Remove #if 0-ed #include.
6893         (SYSV): Remove conditional for old SysV.
6894         * sysdep.c (closedir): Remove conditional code for Solaris,
6895         Solaris has closedir.
6897 2010-04-22  Jan Djärv  <jan.h.d@swipnet.se>
6899         * xsettings.c (read_and_apply_settings): Check if current_font is
6900         NULL before strcmp (Bug#6001).
6902 2010-04-21  Dan Nicolaescu  <dann@ics.uci.edu>
6904         Clean up HP-UX files.
6905         * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
6906         (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
6907         (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
6908         * s/hpux10-20.h: ... to the only user, here.
6910 2010-04-21  Eli Zaretskii  <eliz@gnu.org>
6912         * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
6913         use buffer-local values of paragraph-start and paragraph-separate.
6914         <paragraph_start_re, paragraph_separate_re>: Rename from
6915         fallback_paragraph_start_re and fallback_paragraph_separate_re.
6916         (Bug#5992)
6918 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
6920         * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
6921         current_tool_bar_style are new.
6922         (store_config_changed_event): Rename from store_font_changed_event.
6923         (XSETTINGS_TOOL_BAR_STYLE): New define.
6924         (SEEN_FONT, SEEN_TB_STYLE): New enum values.
6925         (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
6926         HAVE_XFT.
6927         (something_changedCB): store_font_changed_event is now
6928         store_config_changed_event.
6929         (parse_settings): Rename from parse_xft_settings.
6930         Read non-xft xsettings outside #ifdef HAVE_XFT.
6931         (read_settings): Rename from read_xft_settings.
6932         (apply_xft_settings): Take current settings as parameter.  Do not
6933         call read_(xft)_settings.
6934         (read_and_apply_settings): New function.
6935         (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
6936         Call read_and_apply_settings if there are settings to be read.
6937         (init_xsettings): Rename from init_xfd_settings.
6938         Call read_and_apply_settings unconditionally.
6939         (xsettings_initialize): Call init_xsettings.
6940         (Ftool_bar_get_system_style): New function.
6941         (syms_of_xsettings): Define Qmonospace_font_name and
6942         Qtool_bar_style.  Initialize current_tool_bar_style to nil.
6943         defsubr Stool_bar_get_system_style.  Fprovide on
6944         dynamic-setting.
6945         Move misplaced HAVE_GCONF
6947         * xsettings.h (Ftool_bar_get_system_style): Declare.
6949         * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
6950         Qtext, Qboth, Qboth_horiz are new.
6951         (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
6952         Vtool_bar_style, tool_bar_max_label_size.
6954         * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
6956         * keyboard.c: QClabel is new.
6957         (parse_tool_bar_item): Take out QClabel from tool bar items.
6958         Try to construct a label if ther is no QClabel.
6959         (syms_of_keyboard): Intern :label as QClabel.
6961         * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
6962         (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
6963         New.
6965         * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
6966         dynamic-setting.el.
6968         * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
6969         (xg_make_tool_item, xg_show_toolbar_item): New function.
6970         (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
6971         Call xg_make_tool_item to make a tool bar item.
6972         Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
6974         * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
6975         into account for toolbars.
6977 2010-04-21  Jan Djärv  <jan.h.d@swipnet.se>
6979         * data.c (make_blv): Declarations before code (Bug#5993).
6981 2010-04-21  Glenn Morris  <rgm@gnu.org>
6983         * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
6984         Define using autoconf, not cpp.
6985         (LIBXSM): New variable, set by autoconf.
6986         (LIBXT): Use $LIBXSM.
6988 2010-04-21  Dan Nicolaescu  <local_user@dannlt>
6990         Remove NOMULTIPLEJOBS, unused.
6991         * s/template.h (NOMULTIPLEJOBS):
6992         * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6994         Simplify LD_SWITCH_SYSTEM_TEMACS usage.
6995         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
6996         * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
6997         detects -znocombreloc and passes it to the linker
6998         * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
7000 2010-04-21  Glenn Morris  <rgm@gnu.org>
7002         * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
7004 2010-04-21  Karel Klíč  <kklic@redhat.com>
7006         * Makefile.in (LIBSELINUX_LIBS): New.
7007         (LIBES): Add $LIBSELINUX_LIBS.
7008         * eval.c, lisp.h (call7): New function.
7009         * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7010         (Ffile_selinux_context, Fset_file_selinux_context):
7011         New functions.
7012         (Fcopy_file): New parameter preserve-selinux-context.
7013         (Frename_file): Preserve selinux context when renaming by copy-file.
7015 2010-04-21  Juanma Barranquero  <lekktu@gmail.com>
7016             Eli Zaretskii  <eliz@gnu.org>
7018         Don't depend on cm.c or termcap.c on Windows, use stubs.
7019         * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
7020         ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
7021         * w32console.c (current_tty, cost): New vars; lifted from cm.c.
7022         (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
7023         (sys_tputs, sys_tgetstr): New stubs.
7024         * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
7025         (tputs, tgetstr): New; define to sys_*.
7027 2010-04-20  Juanma Barranquero  <lekktu@gmail.com>
7029         * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
7031 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7033         * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
7034         Just signal a warning rather than an error when inside a let.
7035         (Fmake_variable_frame_local): Add the same test.
7037         * font.c (syms_of_font): Make the style table vars read-only.
7039         * buffer.h (struct buffer): Remove unused var `direction_reversed'.
7040         * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
7042         * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
7044 2010-04-20  Eli Zaretskii  <eliz@gnu.org>
7046         Fix R2L paragraph display on TTY.
7048         * xdisp.c (unproduce_glyphs): New function.
7049         (display_line): Use it when produced glyphs are discarded from R2L
7050         glyph rows.
7051         (append_composite_glyph): In R2L rows, prepend the glyph rather
7052         than appending it.
7054         * term.c (append_composite_glyph): In R2L rows, prepend the glyph
7055         rather than append it.  Set up the resolved_level and bidi_type
7056         attributes of the appended glyph.
7057         (produce_special_glyphs): Mirror the backslash continuation
7058         character in R2L lines.
7060         Implement display of R2L paragraphs in GUI sessions.
7062         * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
7063         append_stretch_glyph.
7064         (set_cursor_from_row) <cursor_x>: Remove unused variable.
7065         Fix off-by-one error in computing x at end of text in the row.
7066         (append_stretch_glyph): In reversed row, prepend the glyph rather
7067         than append it.  Set resolved_level and bidi_type of the glyph.
7068         (extend_face_to_end_of_line): If the row is reversed, prepend a
7069         stretch glyph whose width is such that the rightmost glyph will be
7070         drawn at the right margin of the window.  Fix off-by-one error on
7071         TTY frames in testing whether a line needs face extension.
7072         Fix face extension at ZV.  If this is the last glyph row, use
7073         DEFAULT_FACE_ID, to avoid painting the rest of the window with the
7074         region face.
7075         (set_cursor_from_row, display_line):
7076         Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
7077         row->continuation_lines_width.
7078         (next_element_from_buffer): Don't call bidi_paragraph_init if we
7079         are at ZV.  Fixes a crash when reseated to ZV by
7080         try_window_reusing_current_matrix.
7081         (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
7082         which happens with R2L glyph rows.  Fixes a crash when inserting a
7083         character at end of an R2L line.
7084         (set_cursor_from_row): Don't be fooled by truncated rows: don't
7085         treat them as having zero-width characters.  Improve comments.
7086         Don't reverse pos_before and pos_after for reversed glyph rows.
7087         Set cursor.x to negative value when the cursor might be on the
7088         left fringe.
7089         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
7090         left fringe, not the right one.
7091         (notice_overwritten_cursor, draw_phys_cursor_glyph)
7092         (erase_phys_cursor): For reversed cursor_row, support cursor on
7093         the left fringe.
7095         * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
7096         of continuation indicators on the fringes.
7097         (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
7098         left fringe.
7100         * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
7101         draw cursor on the left fringe.
7103         * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
7104         cursor on the left fringe.
7106         * dispnew.c (update_text_area): Handle reversed desired rows when
7107         the cursor is on the left fringe.
7108         (set_window_cursor_after_update): Limit cursor's hpos by -1 from
7109         below, not by 0, for when the cursor is on the left fringe.
7111 2010-04-20  Jan Djärv  <jan.h.d@swipnet.se>
7113         * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
7114         widget is a scrollbar.
7116 2010-04-20  Kenichi Handa  <handa@m17n.org>
7118         * charset.c (char_charset): Consider Vcharset_non_preferred_head
7119         only when the arg CHARSET_LIST is nil.
7121 2010-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7123         Make variable forwarding explicit rather the using special values.
7124         Basically, this makes the structure of buffer-local values and object
7125         forwarding explicit in the type of Lisp_Symbols rather than use
7126         special Lisp_Objects for that.  This tends to lead to slightly more
7127         verbose code, but is more C-like, simpler, and makes it easier to make
7128         sure we handled all cases, among other things by letting the compiler
7129         help us check it.
7130         * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
7131         Removing forwarding objects.
7132         (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
7133         (struct Lisp_Symbol): Make the various forms of variable-forwarding
7134         explicit rather than hiding them inside Lisp_Object "values".
7135         (XFWDTYPE): New macro.
7136         (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
7137         (XBUFFER_LOCAL_VALUE): Remove.
7138         (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
7139         (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
7140         (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
7141         (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
7142         (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
7143         Remove the Lisp_Misc_* header.
7144         (struct Lisp_Buffer_Local_Value): Redefine.
7145         (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
7146         (struct Lisp_Misc_Any): Add filler to get the right size.
7147         (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
7148         Lisp_Intfwd.
7149         (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
7150         (DEFVAR_KBOARD): Allocate a forwarding object.
7151         * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
7152         (let_shadows_global_binding_p): New function.
7153         (union Lisp_Val_Fwd): New type.
7154         (make_blv): New function.
7155         (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
7156         (store_symval_forwarding, swap_in_global_binding, Fboundp)
7157         (swap_in_symval_forwarding, find_symbol_value, Fset)
7158         (let_shadows_buffer_binding_p, set_internal, default_value)
7159         (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
7160         (Fkill_local_variable, Fmake_variable_frame_local)
7161         (Flocal_variable_p, Flocal_variable_if_set_p)
7162         (Fvariable_binding_locus):
7163         * xdisp.c (select_frame_for_redisplay):
7164         * lread.c (Fintern, Funintern, init_obarray, defvar_int)
7165         (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
7166         * frame.c (store_frame_param):
7167         * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
7168         * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
7169         value structure.
7170         * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
7171         (clone_per_buffer_values): Only adjust markers into the current buffer.
7172         (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
7173         (Fbuffer_local_value, set_buffer_internal_1)
7174         (swap_out_buffer_local_variables):
7175         Adapt to the new symbol value structure.
7176         (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
7177         (defvar_per_buffer): Take a new arg for the fwd object.
7178         (buffer_lisp_local_variables): Return a proper alist (different fix
7179         for bug#4138).
7180         * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
7181         (Fgarbage_collect): Don't handle buffer_defaults specially.
7182         (mark_object): Handle new symbol value structure rather than the old
7183         special Lisp_Misc_* objects.
7184         (gc_sweep) <symbols>: Free also the buffer-local-value objects.
7185         * term.c (set_tty_color_mode):
7186         * bidi.c (bidi_initialize): Don't access the ->value field directly.
7187         * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
7188         a buffer_local_flags.
7189         * print.c (print_object): Get rid of impossible forwarding objects.
7191 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
7193         * bidi.c (bidi_get_type, bidi_get_category)
7194         (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
7195         (bidi_type_of_next_char, bidi_level_of_next_char):
7196         Declare static.  Use `INLINE' rather than `inline'.
7198 2010-04-19  Juanma Barranquero  <lekktu@gmail.com>
7200         * dired.c (Ffile_attributes): Fix typo in docstring.
7202 2010-04-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
7204         * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
7205         NSInteger (Bug#5811).
7207 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7209         * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
7210         (PTY_OPEN): New defines.  Use openpty (Bug#726, Bug#5819).
7212 2010-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7214         * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
7216 2010-04-19  Chong Yidong  <cyd@stupidchicken.com>
7218         * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
7219         terminal frames (Bug#5837).
7221 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
7223         * .gdbinit (xsubchartable): New command.
7225 2010-04-19  Eli Zaretskii  <eliz@gnu.org>
7227         * xdisp.c (display_line): Don't write beyond the last glyph row in
7228         the desired matrix.  Fixes a crash in "emacs -nw" (bug#5972), see
7229         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
7230         and
7231         http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
7233 2010-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
7235         * alloc.c (Fpurecopy): Hash-cons if requested.
7236         (syms_of_alloc): Update purify-flag docstring.
7238 2010-04-18  Jan Djärv  <jan.h.d@swipnet.se>
7240         * gtkutil.c (xg_set_geometry): Set size in geometry string also.
7241         (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
7243 2010-04-17  Eli Zaretskii  <eliz@gnu.org>
7245         Fix a crash when an NSM character is inserted at BEGV.
7247         * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
7248         (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
7249         NEUTRAL_B or UNKNOWN_BT.
7251 2010-04-16  Eli Zaretskii  <eliz@gnu.org>
7253         * xdisp.c (set_cursor_from_row): Don't consider possibility of
7254         other rows with cursor unless they are different from this row and
7255         this row is part of a continued line.  (Bug#5943)
7257 2010-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
7259         * s/freebsd.h: Restore osreldate.h include.
7260         Suggested by Naohiro Aota.
7262 2010-04-16  Jan Djärv  <jan.h.d@swipnet.se>
7264         * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
7266 2010-04-16  Ken Brown  <kbrown@cornell.edu>  (tiny change)
7268         * s/cygwin.h: Avoid linking against static libgcc.
7270 2010-04-15  Juri Linkov  <juri@jurta.org>
7272         * window.c: Add Qscroll_command.
7273         Remove Vscroll_preserve_screen_position_commands.
7274         (window_scroll_pixel_based, window_scroll_line_based): Check the
7275         `scroll-command' property on the last command instead of searching
7276         the last command in Vscroll_preserve_screen_position_commands.
7277         (syms_of_window): Initialize and staticpro `Qscroll_command'.
7278         Put Qscroll_command property on Qscroll_up and Qscroll_down.
7279         (scroll-preserve-screen-position): Doc fix.
7280         (Vscroll_preserve_screen_position_commands): Remove variable.
7282 2010-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
7284         * xdisp.c (message): Do not use NO_ARG_ARRAY.
7286 2010-04-14  Dan Nicolaescu  <dann@ics.uci.edu>
7288         Reduce cpp use in Makefile.in.
7289         * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
7290         (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
7291         (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
7292         (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
7293         (CRT0_COMPILE): Remove, inline it in the only user.
7295 2010-04-14  Juri Linkov  <juri@jurta.org>
7297         * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
7298         `scroll-up-command' and `M-v' from `scroll-down' to
7299         `scroll-down-command'.
7301 2010-04-14  Juri Linkov  <juri@jurta.org>
7303         * window.c (Vscroll_preserve_screen_position_commands): New variable
7304         with the default value as the list of Qscroll_down and Qscroll_up.
7305         (window_scroll_pixel_based, window_scroll_line_based): Search the
7306         last command in the list Vscroll_preserve_screen_position_commands
7307         instead of comparing with Qscroll_up and Qscroll_down.
7309 2010-04-13  Jan Djärv  <jan.h.d@swipnet.se>
7311         * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
7312         (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
7313         does that.
7315         * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
7316         to zero.
7318 2010-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7320         * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
7322         Try to solve the problem of spurious EOF chars in long lines of text
7323         sent to interactive subprocesses.
7324         * sysdep.c (child_setup_tty): Do not enable ICANON any more.
7325         (system_process_attributes): Remove unused var `ttotal'.
7326         * process.c (send_process): Don't bother breaking long line with EOF
7327         chars when talking to ttys any more.
7328         (wait_reading_process_output): Output a warning when called in such
7329         a way that it could block without being interruptible.
7331         Try to detect file modification within the same second.
7332         * buffer.h (struct buffer): New field modtime_size.
7333         * buffer.c (reset_buffer): Initialize it.
7334         * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
7335         (Fverify_visited_file_modtime): Check it.
7336         (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
7337         (Fset_visited_file_modtime): Set (or clear) it.
7339 2010-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
7341         * process.c (status_notify): Remove unused var `ro'.
7343 2010-04-12  Jan Djärv  <jan.h.d@swipnet.se>
7345         * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
7346         more than one visual (Bug#5938).
7348 2010-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
7350         * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
7351         Undefine.
7353 2010-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
7355         Remove C_SWITCH_SYSTEM_TEMACS.
7356         * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
7357         (malloc, realloc, free): Use emacs, not temacs for conditional
7358         definition.
7360         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
7361         (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
7363         Use autoconf, not cpp for some variables.
7364         * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
7365         (C_SWITCH_X_SITE): Define using autoconf, not cpp.
7366         (ALL_CFLAGS): Use them as make variables.
7367         (really-lwlib, really-oldXMenu): Do not pass them.
7369 2010-04-11  Jan Djärv  <jan.h.d@swipnet.se>
7371         * xmenu.c (apply_systemfont_to_dialog): New.
7372         (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
7374 2010-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
7376         * process.c (exec_sentinel): Preserve current-buffer.
7378         * process.c (read_process_output): Move the save-current-buffer to
7379         apply to both the filter and the non-filter branches.
7381 2010-04-10  Dan Nicolaescu  <dann@ics.uci.edu>
7383         * s/msdos.h (UNEXEC): New definition.
7385 2010-04-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7387         * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
7388         (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
7390         * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
7391         Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
7392         set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
7393         TRY_WINDOW_CHECK_MARGINS.
7395         * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
7396         TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).  Subtract last glyph's
7397         width only when it is for padding.
7399 2010-04-09  Jan Djärv  <jan.h.d@swipnet.se>
7401         * xfns.c (Fx_show_tip): Call try_window in a loop until
7402         fonts_changed_p is zero (Bug#2423).
7404 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
7406         * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
7407         the end of TEXT_AREA.  (Bug#5856)
7409 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
7411         * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
7412         HAVE_GCONF.
7414 2010-04-08  Eli Zaretskii  <eliz@gnu.org>
7416         * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
7417         prev.orig_type, for resolving type of NSM.  (Bug#5858)
7419 2010-04-08  Jan Djärv  <jan.h.d@swipnet.se>
7421         * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
7422         (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
7423         in current_font.
7424         (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
7425         (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
7426         New functions.
7427         (syms_of_xsettings): Initialize current_font.
7428         defsubr Sfont_get_system_normal_font.
7430         * xsettings.h (Ffont_get_system_normal_font)
7431         (xsettings_get_system_normal_font): Declare.
7433         * xfns.c (extern xlwmenu_default_font): Remove.
7434         (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
7435         to xlwmenu.c.
7437         * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
7438         menu items in UTF-8.
7440         * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
7441         (apply_systemfont_to_menu): New function.
7442         (set_frame_menubar, create_and_show_popup_menu):
7443         Call apply_systemfont_to_menu.
7445 2010-04-07  Jan Djärv  <jan.h.d@swipnet.se>
7447         * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
7448         FRAME_LINE_TO_PIXEL_Y.
7450         * xterm.c (x_set_window_size_1): Don't add border_width/height to
7451         pixelwidth/height.
7453 2010-04-07  Dan Nicolaescu  <dann@ics.uci.edu>
7455         Simplify code for HP machines.
7456         * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
7457         for GNU_LINUX, not needed.
7458         (UNEXEC, NEED_BSDTTY): Move definitions...
7459         * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
7461         * m/iris4d.h (UNEXEC): Move definition ...
7462         * s/irix6-5.h (UNEXEC): ... here.
7464 2010-04-04  Jan Djärv  <jan.h.d@swipnet.se>
7466         * xfns.c (set_machine_and_pid_properties): New function.
7467         (Fx_create_frame): Call set_machine_and_pid_properties.
7469 2010-04-03  Eli Zaretskii  <eliz@gnu.org>
7471         * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
7472         Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
7473         BIDI_EOB.  Fixes infloop with vertical cursor motion at ZV.
7475         * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
7476         in this function.  (Bug#5703)
7478 2010-04-03  Chong Yidong  <cyd@stupidchicken.com>
7480         * nsterm.h: Fix last change.
7482 2010-04-03  Dan Nicolaescu  <dann@ics.uci.edu>
7484         * m/intel386.h (NO_REMAP): Move definition ...
7485         * s/msdos.h (NO_REMAP): ... here.
7487         * m/vax.h (CRT0_DUMMIES): Remove, unused.
7489         * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
7490         used on those platforms.
7492 2010-04-02  Dan Nicolaescu  <dann@ics.uci.edu>
7494         Remove extern errno declarations.
7495         * xterm.c:
7496         * xrdb.c:
7497         * w32term.c:
7498         * unexec.c:
7499         * unexaix.c:
7500         * sysdep.c:
7501         * process.c:
7502         * lread.c:
7503         * keyboard.c:
7504         * floatfns.c:
7505         * filelock.c:
7506         * fileio.c:
7507         * emacs.c (main):
7508         * ecrt0.c:
7509         * dispnew.c:
7510         * callproc.c:
7511         * buffer.c: Remove errno extern declarations.
7512         * s/netbsd.h (NEED_ERRNO): Remove.
7514 2010-04-01  Dan Nicolaescu  <dann@ics.uci.edu>
7516         Remove all uses of LIBX11_SYSTEM.
7517         * Makefile.in (LIBX11_SYSTEM): Remove.
7518         * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
7519         instead.
7521 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
7523         Remove support for DJGPP v1.x (bug#5813).
7525         * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
7526         * s/msdos.h:
7527         * unexec.c (make_hdr, copy_text_and_data):
7528         * sysdep.c (wait_for_termination, sys_subshell):
7529         * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
7530         (IT_set_terminal_modes, __write, _rename, gethostname)
7531         (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
7532         (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
7533         the value of __DJGPP__.
7534         (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
7535         compatibility code.
7536         * lread.c:
7537         * gmalloc.c (memalign):
7538         * fileio.c (Fcopy_file, check_executable, Ffile_modes):
7539         * emacs.c (main):
7540         * dosfns.c (init_dosfns):
7541         * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
7543 2010-04-01  Eli Zaretskii  <eliz@gnu.org>
7545         * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
7546         string with `cursor' property comes from an `after-string'
7547         overlay.  (Bug#5816)
7549 2010-04-01  Glenn Morris  <rgm@gnu.org>
7551         * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
7552         Define as Makefile variables.
7553         (LIBX): Use above variables rather than directly using autoconf.
7555 2010-03-31  Dan Nicolaescu  <dann@ics.uci.edu>
7557         Clean up BSD_SYSTEM use.
7558         * xterm.c:
7559         * process.c:
7560         * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
7561         for including <sys/ioctl.h>.
7562         * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
7563         code is only used for MSDOS.
7565 2010-03-31  Juri Linkov  <juri@jurta.org>
7567         * image.c: Add `Qextension_data'.
7568         (syms_of_image): Initialize and staticpro `Qextension_data'.
7569         (Fimage_metadata): Rename from `Fimage_extension_data'.
7570         (gif_load): Put GIF extension data to the property
7571         `Qextension_data'.
7573 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
7575         * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
7576         * nsterm.h: Fix prototype.
7578 2010-03-31  Eli Zaretskii  <eliz@gnu.org>
7580         * xdisp.c (highlight_trailing_whitespace): Support highlight of
7581         trailing whitespace in right-to-left rows.
7583 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
7585         Get rid of the direct_output optimizations.
7586         * keyboard.c (nonundocount): Remove extern declaration.
7587         (command_loop_1): Remove brittle optimisation for cheap and
7588         common operations.
7589         * xdisp.c (redisplay_internal): Don't bother checking
7590         redisplay_performed_directly_p any more.
7591         * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
7592         any more.
7593         * dispnew.c (redisplay_performed_directly_p)
7594         (direct_output_for_insert, direct_output_forward_char):
7595         * dispextern.h (redisplay_performed_directly_p)
7596         (direct_output_for_insert, direct_output_forward_char): Remove.
7597         * cmds.c (nonundocount): Make it static.
7599 2010-03-31  Bernhard Herzog  <bh@intevation.de>  (tiny change)
7601         * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
7603 2010-03-31  Jan Djärv  <jan.h.d@swipnet.se>
7605         * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
7606         invisible (Bug#5766).
7608 2010-03-31  Adrian Robert  <adrian.b.robert@gmail.com>
7610         * xdisp.c (x_consider_frame_title, update_window_cursor):
7611         Remove HAVE_NS conditionals.
7612         (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
7614         * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
7615         filename for the title.
7616         (ns_set_doc_edited): Do nothing if the selected window is a
7617         minibuffer window.
7619         * nsterm.h: Add prototypes for ns_set_name_as_filename and
7620         ns_set_doc_edited.
7622         * nsterm.m: Remove unneeded prototype.
7624 2010-03-31  Glenn Morris  <rgm@gnu.org>
7626         * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
7627         in the DOC file.  (Bug#5336)
7629 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
7631         * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
7633 2010-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
7635         * window.c (keys_of_window): Remove redundant/overridden bindings.
7637 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
7639         * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
7640         Restore original behavior when the iterator is not bidi_p.
7642 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
7644         * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
7646 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
7648         * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
7649         are outside the range of cached character positions.
7651 2010-03-30  Juanma Barranquero  <lekktu@gmail.com>
7653         * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
7655 2010-03-30  Eli Zaretskii  <eliz@gnu.org>
7657         Initial support for bidirectional editing.
7659         * Makefile.in (obj): Include bidi.o.
7660         (bidi.o): New target.
7662         * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
7663         ($(BLD)/bidi.$(O)): New target.
7665         * bidi.c: New file.
7667         * buffer.h (struct buffer): New members bidi_display_reordering
7668         and bidi_paragraph_direction.
7670         * buffer.c (init_buffer_once): Initialize bidi_display_reordering
7671         and bidi_paragraph_direction.
7672         (syms_of_buffer): Declare Lisp variables bidi-display-reordering
7673         and bidi-paragraph-direction.
7674         (Fbuffer_swap_text): Swap the values of
7675         bidi_display_reordering and bidi_paragraph_direction.
7677         * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
7678         (bidi_type_t, bidi_dir_t): New types.
7679         (bidi_saved_info, bidi_stack, bidi_it): New structures.
7680         (struct it): New members bidi_p, bidi_it, paragraph_embedding,
7681         prev_stop, base_level_stop, and eol_pos.
7682         (bidi_init_it, bidi_get_next_char_visually): New prototypes.
7683         (IT_STACK_SIZE): Enlarge to 5.
7684         (struct glyph_row): New member reversed_p.
7685         <string_buffer_position>: Update prototype.
7686         (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
7687         glyph_row if bidi_it.paragraph_dir == R2L.
7688         (struct glyph): New members resolved_level and bidi_type.
7690         * dispnew.c (direct_output_forward_char): Give up if we need bidi
7691         processing or buffer's direction is right-to-left.
7692         (prepare_desired_row): Preserve the reversed_p flag.
7693         (row_equal_p): Compare the reversed_p attributes as well.
7695         * xdisp.c (init_iterator): Initialize it->bidi_p.
7696         Call bidi_init_it and set it->paragraph_embedding from the current
7697         buffer's value of bidi_paragraph_direction.
7698         (reseat_1): Initialize bidi_it.first_elt.
7699         (set_iterator_to_next, next_element_from_buffer): Use the value of
7700         paragraph_embedding to determine the paragraph direction.
7701         (set_iterator_to_next): Under bidi reordering, call
7702         bidi_get_next_char_visually.  Call bidi_paragraph_init if the
7703         new_paragraph flag is set in the bidi iterator.
7704         (next_element_from_buffer): If bidi_it.first_elt is set,
7705         initialize paragraph direction and find the first character to
7706         display in the visual order.  If reseated to a middle of a line,
7707         prime the bidi iterator starting at the line's beginning.
7708         Handle the situation where we overstepped stop_charpos due to
7709         non-linearity of the bidi iteration.  Likewise for when we back up
7710         beyond the previous stop_charpos.  When moving across stop_charpos,
7711         record it in prev_stop.
7712         (display_line): Set row->end and it->start for the next row to the
7713         next character in logical order.  Always extend reversed_p rows to
7714         the end of line, even if they end at ZV.  Copy the reversed_p flag
7715         to the next glyph row.  Keep calling set_cursor_from_row for
7716         bidi-reordered rows even if we already have a possible candidate
7717         for cursor position.  Set row_end after all the row's glyphs have
7718         been produced, by looping over the glyphs.  Record the position
7719         after EOL in it->eol_pos, and use it to set end_pos of the last
7720         row produced for a continued line.
7721         <Qright_to_left, Qleft_to_right>: New variables.
7722         (syms_of_xdisp): Initialize and staticpro them.
7723         (string_buffer_position_lim): New function.
7724         (string_buffer_position): Most of code moved to
7725         string_buffer_position_lim.  Last argument and return value are
7726         now EMACS_INT; all callers changed.
7727         (set_cursor_from_row): Rewritten to support bidirectional text and
7728         reversed glyph rows.
7729         (text_outside_line_unchanged_p, try_window_id):
7730         Disable optimizations if we are reordering bidirectional text and the
7731         paragraph direction can be affected by the change.
7732         (append_glyph, append_composite_glyph)
7733         (produce_image_glyph, append_stretch_glyph): Set the
7734         resolved_level and bidi_type members of each glyph.
7735         (append_glyph): If the glyph row is reversed, prepend the glyph
7736         rather than appending it.
7737         (handle_stop_backwards): New function.
7738         (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
7739         (reseat): call handle_stop_backwards to recompute prev_stop and
7740         base_level_stop for the new position.
7741         (handle_invisible_prop): Under bidi iteration, skip invisible text
7742         using bidi_get_next_char_visually.  If we are `reseat'ed, init the
7743         paragraph direction.  Update IT->prev_stop after skipping
7744         invisible text.
7745         (move_it_in_display_line_to): New variables prev_method
7746         and prev_pos.  Compare for strict equality in
7747         BUFFER_POS_REACHED_P.
7748         (try_cursor_movement): Examine all the candidate rows that occlude
7749         point, to return the best match.  If rows are bidi-reordered
7750         and point moved backwards, back up to the row that is not a
7751         continuation line, and start looking for a suitable row from
7752         there.
7754         * term.c (append_glyph): Reverse glyphs by pre-pending them,
7755         rather than appending, if the glyph_row's reversed_p flag is set.
7756         Set the resolved_level and bidi_type members of each glyph.
7758         * .gdbinit (pbiditype): New command.
7759         (pgx): Use it to display bidi level and type of the glyph.
7760         (pitx): Display some bidi information about the iterator.
7761         (prowlims, pmtxrows): New commands.
7763 2010-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
7765         Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
7766         * s/usg5-4.h (LIBS_DEBUG):
7767         * s/irix6-5.h (C_DEBUG_SWITCH):
7768         * s/gnu-linux.h (LIBS_DEBUG):
7769         * s/darwin.h (LIBS_DEBUG):
7770         * s/bsd-common.h (LIBS_DEBUG):
7771         * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
7772         * m/iris4d.h (LIBS_DEBUG):
7773         * m/hp800.h (LIBS_DEBUG): Remove definitions.
7775         * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
7776         (LIBS_DEBUG): Remove definition.
7778 2010-03-27  Chong Yidong  <cyd@stupidchicken.com>
7780         * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
7781         Windows.
7783 2010-03-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7785         * process.c (Fmake_network_process): Don't call turn_on_atimers around
7786         `connect' (Bug#5723).
7788 2010-03-25  Helmut Eller  <eller.helmut@gmail.com>
7790         * process.c (Fmake_network_process): Call `select' for interrupted
7791         `connect' rather than creating new socket (Bug#5173).
7793 2010-03-24  Jan Djärv  <jan.h.d@swipnet.se>
7795         * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
7797         * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
7799         * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
7801 2010-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7803         * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
7804         XLoadQueryFont.
7806 2010-03-24  Kenichi Handa  <handa@m17n.org>
7808         * coding.c (decode_coding_ccl): Fix previous change for the
7809         multibyte case.
7810         (encode_coding_ccl): Don't setup ccl program here.  Fix for the
7811         case that the output buffer is fullfilled.
7812         (encode_coding): Setup ccl program here.
7814 2010-03-23  Dan Nicolaescu  <dann@ics.uci.edu>
7816         * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
7818         Simplify LIBS_MACHINE definitions.
7819         * m/hp800.h (LIBS_MACHINE): Remove, same as default.
7820         * m/iris4d.h (LIBS_MACHINE): Likewise.
7821         * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
7822         * s/aix4-2.h (LIBS_SYSTEM): ... here.
7823         * s/netbsd.h: Remove commented out code.
7825 2010-03-22  Dan Nicolaescu  <dann@ics.uci.edu>
7827         Remove dead code dealing with POSIX_SIGNALS.
7828         * atimer.c (set_alarm): Remove dead code, all USG systems define
7829         POSIX_SIGNALS.
7830         * data.c (arith_error): Likewise.
7831         * keyboard.c (input_available_signal, handle_user_signal)
7832         (interrupt_signal): Likewise.
7833         * process.c (sigchld_handler): Likewise.
7834         (create_process): Remove if 0 code.  Remove HPUX conditional when
7835         !defined (POSIX_SIGNALS), it cannot be true.
7836         * syssignal.h: Remove USG5_4 and USG conditionals when
7837         !POSIX_SIGNALS, they cannot be true.
7839         * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
7840         NO_SOCK_SIGIO, not used anymore.
7842 2010-03-21  Dan Nicolaescu  <dann@ics.uci.edu>
7844         * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
7845         support vax on BSDs.
7847         * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
7848         * s/aix4-2.h (ORDINARY_LINK): ... here.
7850 2010-03-21  Andreas Schwab  <schwab@linux-m68k.org>
7852         * Makefile.in (abs_builddir): Define.
7853         (bootstrap_exe): Use it.
7854         (VPATH): Use $(srcdir) instead of @srcdir@.
7856 2010-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
7858         * Makefile.in (bootstrap_exe): Use an absolute name.
7860 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
7862         Remove support for old GNU/Linux using libc version 5.
7863         * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
7864         * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
7866         Consolidate redundant definitions in s/bsd-common.h.
7867         * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7868         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7869         (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
7870         doing it in all files that include this one.
7871         * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7872         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7873         (LDAV_SYMBOL, KERNEL_FILE): Remove.
7874         * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7875         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7876         (LDAV_SYMBOL, KERNEL_FILE): Remove.
7877         * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
7878         (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
7879         (LDAV_SYMBOL, KERNEL_FILE): Remove.
7881         Consolidate redundant definitions.
7882         * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
7883         it's undefined in all files that include this one.
7884         (POSIX_SIGNALS): Define here instead of doing it in all files that
7885         include this one.
7886         * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7887         (POSIX_SIGNALS): Do not define.
7888         * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7889         (POSIX_SIGNALS): Do not define.
7890         * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
7891         (POSIX_SIGNALS): Do not define.
7893         Remove support for old UNIX System V systems.
7894         * s/unixware.h: Add the contents of s/usg-5-4-2.h.
7895         * s/usg-5-4-2.h: Remove.
7897         Remove support for Solaris on PPC and for old versions.
7898         * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
7899         (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
7900         that cancel each other.
7901         * s/sol2-3.h:
7902         * s/sol2-4.h:
7903         * s/sol2-5.h: Remove.
7904         * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
7905         (NO_REMAP): Remove, unused.
7906         (UNEXEC): Move definition ...
7907         * s/aix4-2.h (UNEXEC): ... here.
7909         * s/openbsd.h: Remove support for non-ELF and for systems that do
7910         not support shared libraries.
7911         * s/netbsd.h:
7912         * s/freebsd.h: Likewise.
7914 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
7916         Remove non-working support for lynxos 3.0.
7917         * s/lynxos.h: Remove file.
7919         * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
7920         COFF_BSD_SYMBOLS, nothing defines it anymore.
7922 2010-03-20  Dan Nicolaescu  <dann@ics.uci.edu>
7924         Remove obsolete uses of HAVE_SHM.
7925         * emacs.c (standard_args):
7926         (Fdump_emacs):
7927         (syms_of_emacs): Remove code depending on HAVE_SHM.
7929         * alloc.c: Remove HAVE_SHM dependent definition.
7931         * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
7933 2010-03-18  Glenn Morris  <rgm@gnu.org>
7935         * emacs.c (USAGE4): Hard-code bug address.
7936         (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
7937         (bug_reporting_address): Remove.
7938         (main): Don't call bug_reporting_address.
7940         * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
7941         (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
7943 2010-03-15  Chong Yidong  <cyd@stupidchicken.com>
7945         * xfns.c (Fx_create_frame):
7946         * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
7947         on left.
7949 2010-03-13  Andreas Politz  <politza@fh-trier.de>  (tiny change)
7951         * editfns.c (Fformat): Account for string precision when computing
7952         field width (Bug#5710).
7954 2010-03-12  Chong Yidong  <cyd@stupidchicken.com>
7956         * xfns.c (Fx_create_frame): Set default to Qright.
7958         * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
7959         all window systems.
7961 2010-03-12  Eli Zaretskii  <eliz@gnu.org>
7963         These changes remove termcap.c from the build on Posix platforms.
7964         * Makefile.in (termcapobj): Move termcap.o from here...
7965         (MSDOS_OBJ): ...to here.
7966         (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
7967         now identical to when LIBS_TERMCAP is defined.
7969         * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
7971         * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
7973         * config.in: Regenerated.  (See top-level ChangeLog.)
7975 2010-03-10  Chong Yidong  <cyd@stupidchicken.com>
7977         * Branch for 23.2.
7979 2010-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
7981         Cleanup setup of gl_state in various parts of the code.
7982         * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
7983         (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
7984         * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7985         (skip_chars):
7986         * regex.c (regex_compile): Use it.
7987         (re_compile_pattern): Don't set gl_state.current_syntax_table since
7988         it's now set in regex_compile when/if we need it.
7990 2010-03-05  Stefan Monnier  <monnier@iro.umontreal.ca>
7992         Make it possible to C-g in a tight bytecode loop again (bug#5680).
7993         * lisp.h (ELSE_PENDING_SIGNALS): New macro.
7994         (QUIT): Use it to consolidate code and remove redundancy.
7995         * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7997         * regex.c (regex_compile): Setup gl_state as well.
7999         * syntax.c (skip_chars): Setup gl_state (bug#3823).
8000         (in_classes): Use CONSP before XCAR/XCDR.
8002 2010-03-03  Chong Yidong  <cyd@stupidchicken.com>
8004         * keymap.c (Fwhere_is_internal): Use Fequal to compare
8005         definitions, so that keyboard macros are correctly handled
8006         (Bug#5481).
8008 2010-03-02  Eli Zaretskii  <eliz@gnu.org>
8010         * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
8011         text that could be relocated inside the call to emacs_mule_char.
8012         (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
8013         (CODING_DECODE_CHAR): Add a comment describing its purpose.
8015 2010-03-02  Kenichi Handa  <handa@m17n.org>
8017         * character.c (parse_str_as_multibyte): Fix handling of the
8018         multibyte form of raw-bytes.
8019         (str_as_multibyte): Likewise.
8021         * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
8022         form of raw-bytes.
8024 2010-02-28  Chong Yidong  <cyd@stupidchicken.com>
8026         * charset.c (load_charset_map_from_file)
8027         (load_charset_map_from_vector): Zero out allocated
8028         charset_map_entries before using them.
8030 2010-02-27  Andreas Schwab  <schwab@linux-m68k.org>
8032         * w32uniscribe.c (uniscribe_check_otf): Fix length check.
8034 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
8036         * font.c (font_parse_fcname): Recognize "Book", "Condensed",
8037         "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
8039 2010-02-26  Kenichi Handa  <handa@m17n.org>
8041         * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
8043         * xdisp.c (reseat_to_string): Fix previous change.
8045 2010-02-26  David Reitter  <david.reitter@gmail.com>
8047         * nsfont.m (nsfont_draw): ns_antialias_text should be a
8048         Lisp_Object (Bug#4736).
8050 2010-02-25  Kenichi Handa  <handa@m17n.org>
8052         * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
8054 2010-02-24  Jan Djärv  <jan.h.d@swipnet.se>
8056         * xterm.c (XTflash): Move declarations before statements.
8058         * gtkutil.c (xg_get_gdk_display): Remove (unused).
8059         (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
8060         (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
8061         (xg_create_tool_bar): Remove unused variables.
8062         (x_wm_set_size_hint): Move declarations before statements.
8063         (xg_create_frame_widgets): Remove variable grav.
8065 2010-02-21  Chong Yidong  <cyd@stupidchicken.com>
8067         * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
8069 2010-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
8071         * term.c (fatal): Add a final \n if needed (bug#5596).
8073 2010-02-18  Chong Yidong  <cyd@stupidchicken.com>
8075         * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
8077 2010-02-18  Glenn Morris  <rgm@gnu.org>
8079         * callint.c (Finteractive): Doc fix.
8081 2010-02-18  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
8083         * coding.c (record_conversion_result):
8084         Handle CODING_RESULT_INSUFFICIENT_DST.
8085         (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
8086         memory allocation error.
8088 2010-02-17  Kenichi Handa  <handa@m17n.org>
8090         * coding.c (decode_coding_ccl): Don't setup ccl program here.
8091         Fix for the case that the output buffer is fullfilled.
8092         (decode_coding): Setup ccl program here.  Keep looping when the
8093         decoder stopped because the output buffer is
8094         fullfilled (bug#5534).
8096         * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
8098 2010-02-13  Jan Djärv  <jan.h.d@swipnet.se>
8100         * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
8101         bug #5571.
8102         (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
8103         overdrawn.
8105 2010-02-10  Jan Djärv  <jan.h.d@swipnet.se>
8107         * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
8108         doing_interact here.
8109         (ice_connection_closed): New function.
8110         (x_session_check_input, smc_die_CB, ice_io_error_handler)
8111         (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
8112         (x_session_check_input): Call IceCloseConnection if IceProcessMessages
8113         returns I/O error.
8114         (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
8115         bug #5512.
8117 2010-02-08  Francis Devereux  <francis@devrx.org>  (tiny change)
8119         * nsfont.m (nsfont_open): The system's value for the font descent
8120         is negative, so round it down to avoid clipping.
8122 2010-02-06  Chong Yidong  <cyd@stupidchicken.com>
8124         * charset.c (load_charset_map_from_file)
8125         (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
8126         instead of xmalloc (Bug#5526).  Suggested by Vivek Dasmohapatra.
8128 2010-02-05  Chong Yidong  <cyd@stupidchicken.com>
8130         * charset.c (load_charset_map_from_file): Allocate large
8131         charset_map_entries structure on the heap rather than the stack.
8132         (Bug#5526).
8134 2010-01-31  Kenichi Handa  <handa@m17n.org>
8136         * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
8137         size in NAME is invalid, return -1 (Bug#5396).
8139 2010-01-31  Chong Yidong  <cyd@stupidchicken.com>
8141         * nsterm.m (ns_defined_color): Block input.  Suggested by Mike
8142         <deactivated@gmail.com> (Bug#3605).
8144 2010-01-31  David De La Harpe Golden  <david@harpegolden.net>
8146         * fileio.c (Frename_file): Correctly rename symlinks to
8147         directories (Bug#5496).
8149 2010-01-31  Filipe Cabecinhas  <filcab@gmail.com>  (tiny change)
8151         * nsterm.m (ns_ring_bell): Handle visible bell like X.
8153 2010-01-30  Andreas Schwab  <schwab@linux-m68k.org>
8155         * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
8157 2010-01-29  Chong Yidong  <cyd@stupidchicken.com>
8159         * frame.c (DEFAULT_ROWS): Change default to 35.
8161         * xfns.c (x_default_font_parameter): Change default XFT font to
8162         monospace-10 (Bug#3643).
8164 2010-01-29  Eli Zaretskii  <eliz@gnu.org>
8166         * w32inevt.c (key_event): Remove unnecessary comparison of
8167         event->uChar.AsciiChar with 128.
8169 2010-01-28  Chong Yidong  <cyd@stupidchicken.com>
8171         * fileio.c (Frename_file): Fix last change (Bug#5487).
8173         * m/mips.h: Remove DATA_START.  Suggested by Dan Nicolaescu.
8175         * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
8177 2010-01-28  Jan Djärv  <jan.h.d@swipnet.se>
8179         * xfns.c (Fx_create_frame): Remove window size matching code from
8180         2010-01-15.
8181         (x_get_current_desktop, x_get_desktop_workarea): Remove.
8183 2010-01-27  Jason Rumney  <jasonr@gnu.org>
8185         * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
8186         (key_event): Use unicode for characters 128 and higher (Bug#4567).
8188 2010-01-27  Kenichi Handa  <handa@m17n.org>
8190         * regex.c (analyse_first): Fix setting of fastmap for unibyte
8191         pattern string (Bug#4209).
8193 2010-01-27  David De La Harpe Golden  <david@harpegolden.net>
8195         * fileio.c (Frename_file): Call copy-directory and
8196         delete-directory for directories, in order to handle cross-device
8197         renaming (Bug#3353).
8199 2010-01-25  Jan Djärv  <jan.h.d@swipnet.se>
8201         * xfns.c (Fx_create_frame): If frame height is too big, try
8202         sizes 24 and 10.  Bug #3643.
8204 2010-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8206         Try and fix bug#788, hopefully for real this time.
8207         * keymap.c (shadow_lookup): Add `remap' arg.
8208         (describe_map, describe_vector): Update calls to shadow_lookup.
8209         (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
8210         `remapped' so this flag is applicable to `sequence'.  Be careful to
8211         perform remapping during shadow_lookup check of remapped_sequences.
8213 2010-01-24  Eric Bélanger  <snowmaniscool@gmail.com>  (tiny change)
8215         * image.c (png_load): Use png_sig_cmp instead of the obsolete
8216         png_check_sig, which has been removed in libpng 1.4.
8218 2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
8220         * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
8221         lacks this header file).
8223 2010-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8225         * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
8226         as in Emacs 22.
8228 2010-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8230         * lisp.h (make_pure_string): String pointer arg now points to const.
8232         * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
8233         args now point to const.
8235 2010-01-22  Eli Zaretskii  <eliz@gnu.org>
8237         * lread.c (Fload): Don't treat files without .elc extension as
8238         byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
8239         them.  (bug#5303)
8241 2010-01-20  Kenichi Handa  <handa@m17n.org>
8243         * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
8244         treat the source as actual byte sequence.
8246 2010-01-19  Alan Mackenzie  <acm@muc.de>
8248         Fix spurious before-change-functions invocation from (insert ?\n).
8249         * textprop.c (set_text_properties): Rename parameter
8250         `signal_after_change_p' to `coherent_change_p', and make the
8251         invocation of `modify_region' conditional on it.
8253 2010-01-19  Jan Djärv  <jan.h.d@swipnet.se>
8255         * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
8256         for debug purpose.
8257         (syms_of_xsettings): Declare xft-settings.
8259 2010-01-18  Chong Yidong  <cyd@stupidchicken.com>
8261         * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
8263 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8265         * xterm.c (event_handler_gdk): Block input (Bug#5037).
8267 2010-01-16  Chong Yidong  <cyd@stupidchicken.com>
8269         * emacs.c (standard_args): Adjust arg priorities to reflect how
8270         they are processed in startup.el.
8272 2010-01-16  Andreas Schwab  <schwab@linux-m68k.org>
8274         * Makefile.in (lisp, shortlisp): Update.
8276 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
8278         * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
8279         code, link the new kboard into all_kboard before running Lisp code,
8280         and protect the new terminal with GCPRO (Bug#5365).
8281         (x_term_init): Remove unused var `atom'.
8282         (x_delete_display, x_delete_terminal): Remove unused var `i'.
8284 2010-01-15  Jan Djärv  <jan.h.d@swipnet.se>
8286         * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
8287         (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
8288         to find out usable size of the desktop.  Don't make frames larger than
8289         this.  Bug #3643.
8291 2010-01-15  Kenichi Handa  <handa@m17n.org>
8293         * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS.  Callers changed.
8295 2010-01-15  Chong Yidong  <cyd@stupidchicken.com>
8297         * nsterm.m (Qnone): Define.
8299         * nsfns.m (Qnone): Move definition to nsterm.m.
8301 2010-01-14  Kenichi Handa  <handa@m17n.org>
8303         * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
8304         systems.
8306 2010-01-14  Kenichi Handa  <handa@m17n.org>
8308         Make auto-composition work on all buffers even if they are
8309         fundamental mode.
8311         * composite.c (Vauto_composition_mode): New variable.
8312         (composition_compute_stop_pos): Check Vauto_composition_mode
8313         instead of Vauto_composition_function.
8314         (composition_adjust_point, Ffind_composition_internal): Likewise.
8315         (syms_of_composite): Declare Lisp variable
8316         "auto-composition-mode" here.
8318 2010-01-13  Chong Yidong  <cyd@stupidchicken.com>
8320         * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
8321         during call to vendor-specific-keysyms (Bug#5365).
8323 2010-01-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8325         * keyboard.c (input_available_signal) [SYNC_INPUT]:
8326         Call SIGNAL_THREAD_CHECK (Bug#5333).
8328         * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
8329         Call SIGNAL_THREAD_CHECK.
8331 2010-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
8333         Try to fix bug#5314.  This is probably not the final word, tho.
8334         * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
8335         recent-auto-save-p as a side-effect.
8336         * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
8337         * buffer.c (Fkill_buffer, reset_buffer):
8338         * editfns.c (Fsubst_char_in_region):
8339         * fileio.c (Finsert_file_contents, Fdo_auto_save)
8340         (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
8342 2010-01-13  Kenichi Handa  <handa@m17n.org>
8344         Display buffer name, etc. in mode line by composing correctly.
8346         * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
8347         STRING is not nil.
8348         (display_mode_element): Adjust for the change of
8349         decode_mode_spec and display_line.
8350         (decode_mode_spec): Change arg MULTIBYTE to STRING.
8351         (display_string): Handle the case that STRING is non-null and
8352         LISP_STRING is not nil.
8354         * xterm.c (x_draw_composite_glyph_string_foreground):
8355         Pay attention to s->face->overstrike.
8357         * composite.c (composition_reseat_it): Don't check PT if STRING is
8358         non nil.
8360 2010-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8362         * keyboard.c (read_char): Don't apply previous change when current
8363         buffer is unchanged by command execution.
8365 2010-01-12  Jan Djärv  <jan.h.d@swipnet.se>
8367         * keyboard.c (read_char): Return after executing from special map.
8369 2010-01-12  Glenn Morris  <rgm@gnu.org>
8371         * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
8372         bug-gnu-emacs rather than emacs-pretest-bug.
8374 2010-01-11  Chong Yidong  <cyd@stupidchicken.com>
8376         * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
8377         initializing the Lisp variables that depend on them.
8379 2010-01-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8381         * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
8382         Clear areas that will not be updated after change of menu bar lines.
8383         Clear the menu bar window's current matrix when the window gets empty.
8385 2010-01-09  Chong Yidong  <cyd@stupidchicken.com>
8387         * intervals.h, textprop.c (extend_property_ranges): Return value
8388         and args changed.  Discard properties that begin at or after the
8389         new end (Bug#5306).
8391         * editfns.c (Fformat): Caller changed.
8393         * nsterm.m (ns_set_default_prefs): Delete function.
8394         (syms_of_nsterm): Initialize ns_command_modifier,
8395         ns_control_modifier, ns_function_modifier, ns_antialias_text, and
8396         ns_antialias_threshold here, not in ns_term_init (Bug#4113).
8398         * xdisp.c (pos_visible_p): Check for invisible text at the correct
8399         position (Bug#4040).
8401 2010-01-09  Eli Zaretskii  <eliz@gnu.org>
8403         * editfns.c (Ffloat_time): Doc fix.
8405 2010-01-09  Jan Djärv  <jan.h.d@swipnet.se>
8407         * xfns.c (Fx_create_frame): Don't create frame larger than display
8408         by default bug#3643.
8410 2010-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8412         * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
8413         (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
8414         windows above internal border.
8416         * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
8417         (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
8418         windows above internal border.
8420         * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
8421         tool bar windows specially.
8423         * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
8425         * xterm.c (x_after_update_window_line): Don't treat tool bar windows
8426         specially.
8427         (XTflash): Take account of menu bar height.
8429         * w32term.c (x_after_update_window_line): Don't treat tool bar windows
8430         specially.
8432 2010-01-08  Jan Djärv  <jan.h.d@swipnet.se>
8434         * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
8435         also be true before we can return early (bug #5339).
8437 2010-01-06  David Reitter  <david.reitter@gmail.com>
8439         * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
8440         (Fns_display_usable_bounds): Rewrite, computing bounds properly
8441         (Bug#3233).
8443 2010-01-06  Jan Djärv  <jan.h.d@swipnet.se>
8445         * font.c (font_open_entity): Enable chache and call cached_font_ok
8446         for the driver if defined.
8447         (QCuser_spec): New symbol.
8448         (font_spec_from_name): Save name as user-spec.
8449         (font_load_for_lface): Keep user-spec instead of name.
8450         (font_open_by_name): Save name as user-spec.
8451         (syms_of_font): Initialize QCuser_spec.
8452         (font_clear_prop): Clear name if it exists in font (bug#5157).
8454         * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
8455         (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
8456         (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
8458         * font.h (struct font_driver): Add cached_font_ok.
8460         * xterm.c (x_clear_frame): Queue draw for scroll bars.
8462 2010-01-05  Jan Djärv  <jan.h.d@swipnet.se>
8464         * xterm.c (x_new_font): Move code for setting rows/cols before
8465         resizing ...
8466         (x_set_window_size): ... to here.  Bug #2568.
8468         * gtkutil.c (xg_clear_under_internal_border): New function.
8469         (xg_frame_resized, xg_frame_set_char_size):
8470         Call xg_clear_under_internal_border.
8471         (xg_update_scrollbar_pos): Clear under old scroll bar position.
8473 2010-01-05  Chong Yidong  <cyd@stupidchicken.com>
8475         * keyboard.c (read_key_sequence): Catch keyboard switch after
8476         making a new tty frame (Bug#5095).
8478 2010-01-05  Kenichi Handa  <handa@m17n.org>
8480         * fontset.c (fontset_find_font): Fix getting the frame pointer.
8482 2010-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
8484         * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
8485         Lisp_Object, preferring to convert a lisp_Object to a void* instead.
8486         (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
8488 2010-01-03  Michael Albinus  <michael.albinus@gmx.de>
8490         * dbusbind.c (xd_add_watch): Improve debug message.
8491         (xd_remove_watch): Improve debug message.  If DATA is the session
8492         bus, unset D-Bus session environment.
8493         (Fdbus_init_bus): Pass the bus as argument to
8494         dbus_connection_set_watch_functions.  (Bug#5283)
8496 2010-01-01  Chong Yidong  <cyd@stupidchicken.com>
8498         * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
8500         * lread.c (syms_of_lread): Make it clearer that these are the
8501         names of loaded files (Bug#5068).
8503         * eval.c (run_hook_with_args): Handle the case where the global
8504         value has the obsolete single-function form (Bug#5026).
8506 2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
8508         * minibuf.c (Fall_completions): Minor optimization.
8510 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
8512         * .gdbinit (pgx): Fix display of composite glyphs.
8513         Display cmp.from and cmp.to as well.
8514         (pitx): Fix last change.
8516 2009-12-25  Kenichi Handa  <handa@m17n.org>
8518         * composite.h (composition_adjust_point): Update prototype.
8520         * composite.c (composition_reseat_it): Don't make a composition
8521         spanning over point.
8522         (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
8523         composable characters.
8524         (composition_adjust_point): New arg NEW_PT.  Callers changed.
8526         * keyboard.c (command_loop_1): Force redisplay if the last point
8527         was within a composition.
8528         (adjust_point_for_property): Don't adjust point for automatic
8529         composition when called after buffer modification.
8531 2009-12-19  Eli Zaretskii  <eliz@gnu.org>
8533         * .gdbinit (pitx): Don't use enum names, use their values.
8534         Remove reference to non-existing value GET_FROM_COMPOSITION.
8535         (pgx): Don't use enum names, use their values.
8536         (pitmethod): New helper command.
8537         (pitx): Use it to display iteration method.
8538         (pgrowit): New command.
8540         * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
8542         Update dependencies in Makefile.in.
8544         * Makefile.in (alloc.o): Depend on termhooks.h.
8545         (atimer.o): Depend on blockinput.h.
8546         (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
8547         and frame.h.
8548         (callint.o): Depend on systime.h, coding.h, and composite.h.
8549         (callproc.o): Depend on buffer.h.
8550         (casefiddle.o): Don't depend on charset.h.
8551         (casetab.o): Depend on character.h.
8552         (ccl.o): Depend on composite.h.
8553         (chartab.o): Depend on ccl.h.
8554         (cm.o): Depend on dispextern.h.
8555         (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
8556         (coding.o): Don't depend on $(INTERVALS_H).
8557         (composite.o): Don't depend on dispextern.h explicitly (it's in
8558         $(INTERVALS_H)).  Depend on ccl.h.
8559         (data.o): Depend on systime.h, coding.h, composite.h,
8560         dispextern.h, font.h, and ccl.h.
8561         (dired.o): Depend on composite.h.
8562         (dispnew.o): Depend on coding.h.  Don't depend explicitly on
8563         composite.h (it's in $(INTERVALS_H)).
8564         (doc.o): Depend on systime.h, coding.h, and composite.h.
8565         (editfns.o): Don't depend explicitly on dispextern.h.
8566         (emacs.o): Depend on frame.h and coding.h.
8567         (eval.o): Depend on coding.h, composite.h, and xterm.h.
8568         (fileio.o): Depend on frame.h and commands.h.  Don't depend
8569         explicitly on dispextern.h.
8570         (filelock.o): Don't depend on epaths.h and charset.h.  Depend on
8571         composite.h.
8572         (fns.o): Don't depend on termhooks.h.
8573         (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
8574         (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
8575         coding.h, $(INTERVALS_H), window.h, xterm.h.
8576         (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
8577         (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
8578         (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
8579         fontset.h, ccl.h, and ftfont.h.
8580         (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
8581         (gtkutil.o): Depend on dispextern.h and composite.h.
8582         (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
8583         termhooks.h, and ccl.h.
8584         (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
8585         (intervals.o): Depend on systime.h and coding.h.
8586         (keyboard.o): Depend on composite.h and coding.h.
8587         (keymap.o): Depend on coding.h and frame.h.
8588         (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
8589         (macros.o): Depend on systime.h, coding.h, and composite.h.
8590         (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
8591         and atimer.h.
8592         (minibuf.o): Depend on systime.h and coding.h.  Don't depend on
8593         dispextern.h explicitly.
8594         (print.o): Depend on termhooks.h, coding.h, and ccl.h.
8595         Don't depend explicitly on dispextern.h and composite.h.
8596         (process.o): Depend on character.h, xgselect.h, and sysselect.h.
8597         (regex.o): Don't depend on charset.h.
8598         (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
8599         (search.o): Don't depend explicitly on composite.h.
8600         (sound.o): Depend on atimer.h and systime.h.
8601         (syntax.o): Don't depend explicitly on composite.h.
8602         (sysdep.o): Depend on coding.h and composite.h.
8603         (term.o): Depend on xterm.h and buffer.h.
8604         (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
8605         (textprop.o): Don't depend on dispextern.h explicitly.
8606         (undo.o): Depend on dispextern.h.
8607         (window.o): Depend on coding.h and termhooks.h.  Don't depend on
8608         dispextern.h and composite.h explicitly.
8609         (xdisp.o): Depend on ccl.h.
8610         (xfaces.o): Depend on coding.h and ccl.h.
8611         (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
8612         (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
8613         (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
8614         ftfont.h.
8615         (xgselect.o): New dependency.
8616         (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
8617         (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
8618         (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
8619         coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
8620         (xsmfns.o): Depend on frame.h and dispextern.h.
8621         (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
8622         sysselect.h.
8624 2009-12-19  Andreas Schwab  <schwab@linux-m68k.org>
8626         * font.c (Fclear_font_cache): Pass correct cache argument to
8627         font_clear_cache.
8629 2009-12-16  Andreas Schwab  <schwab@linux-m68k.org>
8631         * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
8632         twice.
8634 2009-12-15  Chong Yidong  <cyd@stupidchicken.com>
8636         * xdisp.c (decode_mode_spec): Inhibit garbage collection when
8637         calling file-remote-p.  Reported by Jim Meyering.
8639 2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
8641         * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
8642         avoid compiler warnings.  (Bug #5217)
8644 2009-12-14  Kenichi Handa  <handa@m17n.org>
8646         * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
8647         in 8-bit encoding.
8649 2009-12-13  Pat Thoyts  <patthoyts@users.sourceforge.net>  (tiny change)
8651         * xfns.c (x_create_tip_frame): Set the extended window manager hint for
8652         tooltip windows.
8654 2009-12-13  Jan Djärv  <jan.h.d@swipnet.se>
8656         * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
8657         Xatom_net_window_type.
8659         * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
8660         Xatom_net_window_type.
8662         * xterm.c (my_log_handler): New function.
8663         (x_term_init): Set my_log_handler as log handler during gtk_init
8664         so we can filter out buggy messages.  (Bug #5120).
8666         * xterm.c (xg_scroll_callback): Parameter list changed,
8667         use parameter GtkScrollType to determine scroll/line/page.
8668         Only allow dragging if a button < 4 is grabbed (bug #5177).
8669         (xg_end_scroll_callback): New function.
8670         (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
8671         xg_create_scroll_bar.
8673         * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
8674         (scroll_end_callback): Remove.
8675         (xg_create_scroll_bar): Add parameter end_callback, bind it to
8676         button-release-event.  Replace value-changed event with change-value,
8677         bug #5177.
8678         (xg_event_is_for_scrollbar): Only return true if button is less than 4,
8679         bug #5177.
8681         * gtkutil.h (XG_LAST_SB_DATA): Remove.
8682         (xg_create_scroll_bar): Add GCallback end_callback.
8684         * xftfont.c (QClcdfilter): New variable.
8685         (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
8686         (syms_of_xftfont): Initialize QClcdfilter.
8688 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
8690         * xsettings.c (struct xsettings): Add member seen.
8691         (parse_xft_settings): Update member seen with what we have read.
8692         Return non-zero if Xft-settings have been parsed, 0 otherwise.
8693         (apply_xft_settings): Only update Xft settings with what member seen
8694         indicates as new.
8696 2009-12-12  Eli Zaretskii  <eliz@gnu.org>
8698         * dispextern.h (struct text_pos): Use EMACS_INT.
8699         (struct glyph): Use EMACS_INT for charpos.
8700         (struct it): Use EMACS_INT for stop_charpos, end_charpos,
8701         region_beg_charpos, region_end_charpos,
8702         redisplay_end_trigger_charpos, and also for
8703         iterator_stack_entry.end_charpos and
8704         iterator_stack_entry.stop_charpos.
8706 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
8708         * gtkutil.c (scroll_end_callback): New function (bug #5177).
8709         (xg_create_scroll_bar): Call scroll_end_callback on button release
8710         event (bug #5177).
8711         (xg_event_is_for_scrollbar): != replaced with ==.
8713 2009-12-12  Kenichi Handa  <handa@m17n.org>
8715         * ftfont.c (struct ftfont_info): New member matrix.
8716         (ftfont_open): Setup xftfont_info->matrix.
8717         (MFLTFontFT): New member matrix.
8718         (FLOOR, CEIL, ROUND): New macros.
8719         (ftfont_get_metrics): Handle matrix transformation.
8720         (ftfont_shape_by_flt): New arg matrix.  Callers changed.
8722         * xftfont.c (struct xftfont_info): New member matrix.
8723         (xftfont_open): Setup xftfont_info->matrix.
8725 2009-12-10  Kenichi Handa  <handa@m17n.org>
8727         * xdisp.c (append_space_for_newline): Consider face-remapping.
8729 2009-12-09  Andreas Schwab  <schwab@linux-m68k.org>
8731         * xsettings.c: Include "keyboard.h".
8733         * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
8735         Fix implicit function declarations.
8736         * cmds.c: Include "frame.h".
8737         * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
8738         * frame.h: Move declaration of delete_frame outside of
8739         HAVE_WINDOW_SYSTEM.
8741 2009-12-09  Ken Brown  <kbrown@cornell.edu>  (tiny change)
8743         * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
8745         * emacs.c (main): Set the G_SLICE environment variable for Cygwin
8746         GTK builds.
8748 2009-12-07  Andreas Schwab  <schwab@linux-m68k.org>
8750         * unexelf.c (unexec): Don't search for .data twice.
8752 2009-12-05  Chong Yidong  <cyd@stupidchicken.com>
8754         * xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
8755         if push failed.
8756         (handle_line_prefix): Set avoid_cursor_p here.  Check return value
8757         of push_display_prop (Bug#5000).
8759         * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
8760         value of font_list_entities (Bug#5085).
8762 2009-12-04  Juanma Barranquero  <lekktu@gmail.com>
8764         Fix `string-to-number' to deal consistently with integers and floats.
8765         * lread.c (isfloat_string): New argument ignore_trailing to accept all
8766         trailing characters, not just whitespace.
8767         (read1): Pass new arg 0 to keep old behavior.
8768         * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
8769         trailing chars, as it is already done for integers.  Doc fixes.
8770         * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
8772 2009-12-04  Eli Zaretskii  <eliz@gnu.org>
8774         * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
8775         Delete unused enumeration value.
8777 2009-12-03  Eli Zaretskii  <eliz@gnu.org>
8779         * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
8781 2009-12-03  Daniel Hackney  <dan@haxney.org>  (tiny change)
8783         * process.c (Fmake_network_process): Fix up the tests for
8784         "connectionless socket", so they DTRT for seqpacket sockets as well.
8786 2009-12-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8788         * process.c (Qseqpacket): New symbol.
8789         (HAVE_SEQPACKET): New macro.
8790         (Fmake_network_process): Accept new :type `seqpacket'.
8791         (init_process): Add `seqpacket' feature when applicable.
8792         (syms_of_process): Initialize Qseqpacket.
8794 2009-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8796         * font.c (font_load_for_lface, font_open_by_name): Don't store name
8797         if entity is Qnil.
8799 2009-11-30  Stefan Monnier  <monnier@iro.umontreal.ca>
8801         * print.c (print_preprocess): Preprocess the key_and_value table of
8802         hashtables, even tho they're "hidden" (bug#5082).
8804 2009-11-29  Jan Djärv  <jan.h.d@swipnet.se>
8806         * frame.c (frame_make_pointer_invisible)
8807         (frame_make_pointer_visible): Declare f before statements.
8809 2009-11-28  Eli Zaretskii  <eliz@gnu.org>
8811         * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
8812         omitted dependencies on lisp.h.
8814 2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
8816         * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
8817         is NULL.
8819         * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
8821         * frame.c (frame_make_pointer_invisible)
8822         (frame_make_pointer_visible): Just return if there isn't any selected
8823         frame.
8825         * search.c (simple_search): Remove warning by making *p const.
8827 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
8829         * xdisp.c (power_letter): Remove duplicate const.
8831 2009-11-25  Jan Djärv  <jan.h.d@swipnet.se>
8833         * term.c (delete_tty): Remove check for last terminal (bug#4970).
8835         * xsettings.c: Revert changes from 2009-11-23.  Just use Xft
8836         defaults (bug #5025).
8838 2009-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8840         * insdel.c (adjust_markers_for_delete): Move it in the
8841         right direction!  (bug#4803)
8843 2009-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8845         * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
8847         * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
8849 2009-11-24  Glenn Morris  <rgm@gnu.org>
8851         * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
8853 2009-11-23  Jan Djärv  <jan.h.d@swipnet.se>
8855         * Makefile.in: Must create deps for ecrt0.o in its rule.
8857         * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
8858         because that is what Gtk+ font dialog understands.
8860         * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
8861         of Fcopy_sequence.
8862         (font_open_by_name): Put name given into QCname for font-object returned.
8864         * frame.c (x_set_font): Save original font name as frame parameter
8865         font-parameter.
8867         * xsettings.c (set_default_xft_settings): New function.
8868         (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
8869         is found.
8871 2009-11-22  Andreas Schwab  <schwab@linux-m68k.org>
8873         * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
8874         searching backwards through multibyte buffer.
8876 2009-11-21  Jan Djärv  <jan.h.d@swipnet.se>
8878         * xterm.c: #include xgselect.h.
8879         (x_initialize): Call xgselect_initialize.
8881         * xsettings.c (something_changedCB): C++ comments => C comments.
8882         (init_gconf): Do not deal with any GLib file descriptors, xg_select
8883         does that now.
8885         * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
8886         (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
8887         (scroll_bar_button_cb): Remove.
8888         (create_menus): C++ comments => C comments.  Don't bind grab-notify
8889         event.
8890         (xg_create_scroll_bar): Don't bind button-press-event and
8891         button-release-event.
8893         * process.c: Include xgselect.h if defined (USE_GTK) ||
8894         defined (HAVE_GCONF).
8895         (wait_reading_process_output): Call xg_select for the same condition.
8897         * xgselect.c (xg_select): New function to better integrate with
8898         GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
8900         * xgselect.h: New file, declare xg_select, xgselect_initialize.
8902         * Makefile.in (XOBJ): Add xgselect.o.
8904 2009-11-21  Andreas Schwab  <schwab@linux-m68k.org>
8906         * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
8907         Remove ignored second argument.  All callers changed.
8908         * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
8909         (RE_STRING_CHAR_AND_LENGTH): Likewise.
8910         * xdisp.c (string_char_and_length): Likewise.
8912 2009-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
8914         * xterm.c (x_new_font):
8915         * print.c (print_object):
8916         * cmds.c (Fself_insert_command): Move declarations before statements.
8918 2009-11-20  Ken Brown  <kbrown@cornell.edu>  (tiny change)
8920         * s/cygwin.h: Remove unneeded linker flags.
8922 2009-11-20  Jan Djärv  <jan.h.d@swipnet.se>
8924         * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
8926         * xsettings.h: Declare xsettings_get_system_font.
8928         * xsettings.c (xsettings_get_system_font): New function.
8929         (init_gconf): No use initiating gconf unless we have Xft also.
8930         (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
8931         HAVE_GCONF.
8933         * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
8934         add a blank entry so it doesn't collapse into nothing.
8936 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
8938         * lread.c (Funintern): Comment out last change.
8940 2009-11-19  Richard Stallman  <rms@gnu.org>
8942         * lread.c (Funintern): Error if symbol is t or nil.
8944 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
8946         * insdel.c (make_gap_larger): Don't make as many assumptions about the
8947         representation of Lisp integers.
8948         Reported by MJ Chan <mjchan.inbox@gmail.com>.
8950 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
8952         * lisp.h: Remove declaration of Ffont_get_system_font.
8953         * xfns.c: Move include of "xsettings.h".
8954         * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
8956 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
8958         * xsettings.c (something_changedCB, Ffont_get_system_font):
8959         Check use_system_font.
8960         (syms_of_xsettings): DEFVAR font-use-system-font.
8962 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
8964         * xfns.c (x_default_font_parameter): Remove dead assignment.
8966         * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
8968 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
8970         * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
8971         not have FC_LCD_*.  #define them if not there.
8973         * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
8975         * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
8977         * xterm.c (handle_one_xevent): Call xft_settings_event for
8978         ClientMessage, PropertyNotify and DestroyNotify.
8979         (x_term_init): If we have XFT, get DPI from Xft.dpi.
8980         Call xsettings_initialize.
8982         * xftfont.c (xftfont_fix_match): New function.
8983         (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
8984         Call xftfont_fix_match after XftFontMatch.
8986         * xfont.c (xfont_driver): Initialize all members.
8988         * xfns.c (x_default_font_parameter):
8989         Try font from Ffont_get_system_font.
8990         Do not get font from x_default_parameter if we got one from
8991         Ffont_get_system_font.
8992         (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
8994         * w32font.c (w32font_driver): Initialize all members.
8996         * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
8998         * lisp.h: Declare syms_of_xsettings.
9000         * keyboard.c (kbd_buffer_get_event, make_lispy_event):
9001         Handle CONFIG_CHANGED_EVENT.
9003         * ftfont.c (ftfont_filter_properties): New function.
9005         * frame.c (x_set_font): Remove unused variable lval.
9007         * font.h (struct font_driver): Add filter_properties.
9009         * font.c (font_put_extra): Don't return if val is nil, it means
9010         boolean option is off.
9011         (font_parse_fcname): Collect all extra properties in extra_props
9012         and call filter_properties for all drivers with extra_props and
9013         font as parameter.
9014         (font_open_entity): Do not use cache, it does not pick up new
9015         fontconfig settings like hinting.
9016         (font_load_for_lface): If spec had a name in it, store it in entity.
9018         * emacs.c (main): Call syms_of_xsettings.
9020         * config.in: HAVE_GCONF is new.
9022         * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
9023         xsettings.o is new.
9025 2009-11-17  Kenichi Handa  <handa@m17n.org>
9027         * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
9028         back to the default font in case that no suitable font is found.
9030 2009-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
9032         * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
9033         Suggested by Chad Brown <yandros@mit.edu>.
9034         (push_menu_item): Use MENU_ITEMS_ITEM_* names.
9036 2009-11-16  Jan Djärv  <jan.h.d@swipnet.se>
9038         * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
9040 2009-11-14  Andreas Schwab  <schwab@linux-m68k.org>
9042         * Makefile.in: Ignore errors from mkdir when creating deps directory.
9044 2009-11-14  Jan Djärv  <jan.h.d@swipnet.se>
9046         * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
9047         has a parent.
9049         * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
9050         dependency files in deps/.  Include those files into Makefile.
9052         * config.in: Generated (AUTO_DEPEND).
9054 2009-11-13  Michael Albinus  <michael.albinus@gmx.de>
9056         * dbusbind.c (Vdbus_registered_objects_table): Rename from
9057         Vdbus_registered_functions_table, because it contains also
9058         properties.  Fix docstring.
9059         (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
9061 2009-11-13  Stefan Monnier  <monnier@iro.umontreal.ca>
9063         * alloc.c (mark_object): Don't reprocess marked strings.
9064         Check vector's markbit earlier.  Adjust calls to mark_vectorlike.
9065         (mark_vectorlike, mark_char_table): Assume the object is unmarked.
9067 2009-11-13  Kenichi Handa  <handa@m17n.org>
9069         * category.c (word_boundary_p): Adjust for the change of the
9070         semantics of Vword_combining_categories.
9071         (Vword_combining_categories): Describe the slight change of the
9072         semantics.
9074 2009-11-13  Eli Zaretskii  <eliz@gnu.org>
9076         * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
9078         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
9080 2009-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9082         * xdisp.c (syms_of_xdisp): Fix typo in last change.
9084 2009-11-12  Juanma Barranquero  <lekktu@gmail.com>
9086         * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
9088 2009-11-11  David Reitter  <david.reitter@gmail.com>
9090         * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
9091         variables to fix 2009-11-09 change.
9093 2009-11-11  Dan Nicolaescu  <dann@ics.uci.edu>
9095         * process.c (ifflag_def): Make flag_sym constant.
9096         (Fnetwork_interface_info): Use a constant pointer.
9097         (ifflag_table):
9098         * xfns.c (cursor_bits):
9099         * xdisp.c (power_letter):
9100         * termcap.c (speeds, esctab):
9101         * sysdep.c (baud_convert):
9102         * keyboard.c (lispy_accent_codes, modifier_names):
9103         * image.c (xbm_format, xpm_format, pbm_format, png_format)
9104         (jpeg_format, tiff_format, gif_format, svg_format)
9105         (interlace_start, interlace_increment, gs_format):
9106         * gtkutil.c (separator_names):
9107         * fringe.c (swap_nibble):
9108         * fns.c (base64_value_to_char, base64_char_to_value):
9109         * fileio.c (make_temp_name_tbl):
9110         * coding.c (suffixes): Make constant.
9112         * frame.c (make_initial_frame):
9113         * buffer.c (init_buffer_once): Use make_pure_c_string instead of
9114         build_string.
9115         * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
9117         * s/freebsd.h:
9118         * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
9120         * Makefile.in: Add dependencies to lisp.h.  Remove dependencies
9121         for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
9123         * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
9124         * xterm.c (syms_of_xterm):
9125         * xfaces.c (syms_of_xfaces):
9126         * xdisp.c (syms_of_xdisp):
9127         * lread.c (syms_of_lread):
9128         * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
9129         build_string.
9131         * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
9133 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
9135         * fns.c (Fplist_get): Merge the active and the commented out code.
9137 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
9139         * keyboard.h: Declare timer_check.
9141         * keyboard.c (timer_check_2): New function that does what the old
9142         timer_check did.
9143         (timer_check): Call timer_check_2 until -1 or a non-zero time is
9144         returned, i.e. don't return -1 with timers pending.
9146         * process.c: Remove extern declaration of timer_check.
9148         * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
9149         even if timer_check returned -1.
9151         * gtkutil.c (xg_dialog_response_cb): Data is now a struct
9152         xg_dialog_data.
9153         (pop_down_dialog): Destroy widget (if any), cancel timer and unref
9154         the event loop.
9155         (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
9156         (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
9157         Destroy the dialog after xg_dialog_run.
9159 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
9161         * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
9163 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
9165         * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
9167 2009-11-09  Juanma Barranquero  <lekktu@gmail.com>
9169         * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
9171 2009-11-09  Stefan Monnier  <monnier@iro.umontreal.ca>
9173         * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
9174         w32menu.c, and nsmenu.m.
9175         Simplify the obsolete case where position is nil.
9176         (cleanup_popup_menu): New function, moved from nsmenu.m.
9177         (struct skp): Remove slot `notreal'.
9178         (single_keymap_panes, keymap_panes): Remove arg `notreal' and
9179         adjust callers.
9180         (single_menu_item): Adjust call to parse_menu_item.
9181         (syms_of_menu): Defsubr x-popup-menu.
9182         * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
9183         (keymap_panes): Don't export any more.
9184         (mouse_position_for_popup, w32_menu_show, ns_menu_show)
9185         (xmenu_show): Declare.
9186         * keyboard.c (parse_menu_item): Remove arg `notreal'.
9187         (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
9188         * keyboard.h (parse_menu_item): Update declaration.
9189         * xmenu.c (Fx_popup_menu): Remove.
9190         (syms_of_xmenu): Don't defsubr x-popup-menu.
9191         * w32menu.c (Fx_popup_menu): Remove.
9192         (syms_of_w32menu): Don't defsubr x-popup-menu.
9193         * nsmenu.m (cleanup_popup_menu): Remove.
9194         (ns_menu_show): Rename from ns_popup_menu and remove all the code
9195         moved to menu.c's Fx_popup_menu.
9196         (Fx_popup_menu): Remove.
9197         (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
9198         menu_items (it's done in menu.c already).
9200 2009-11-08  Stefan Monnier  <monnier@iro.umontreal.ca>
9202         * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
9203         Use `tem' less.  Make sure KEYEQ holds a string or nil (bug#4879).
9205 2009-11-08  Chong Yidong  <cyd@stupidchicken.com>
9207         * xmenu.c (Fx_popup_menu): Extract event timestamp.  Pass it to
9208         xmenu_show.  Hide any tooltip before opening a menu.
9209         (xmenu_show): New arg.  Pass it to create_and_show_popup_menu.
9210         (create_and_show_popup_menu): New arg.  Pass it to gtk_menu_popup.
9212 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
9214         Let integers use up 2 tags to give them one extra bit and thus double
9215         their range.
9216         * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
9217         (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
9218         New macros.
9219         (enum Lisp_Type): Use them.  Give explicit values.
9220         (Lisp_Type_Limit): Remove.
9221         (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
9222         (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
9223         Pay attention to USE_2_TAGS_FOR_INTS.
9224         (INTEGERP): Use LISP_INT_TAG_P.
9225         * fns.c (internal_equal): Simplify the default case.
9226         (sxhash): Use case_Lisp_Int.
9227         * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
9228         any more.
9229         (Ftype_of): Use case_Lisp_Int.
9230         (store_symval_forwarding): Take into account the fact that Ints can
9231         now have more than one tag.
9232         * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
9233         (buffer_slot_type_mismatch):
9234         * xfaces.c (face_attr_equal_p):
9235         * print.c (print_object):
9236         * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
9237         Use case_Lisp_Int.
9239 2009-11-06  Eli Zaretskii  <eliz@gnu.org>
9241         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
9243         * alloc.c (make_pure_c_string): Fix last change to avoid compiler
9244         warning.
9246 2009-11-06  Jan Djärv  <jan.h.d@swipnet.se>
9248         * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
9250         * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
9252         * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
9253         ButtonPressRelease and MotionNotify (bug#4870).
9255 2009-11-06  Dan Nicolaescu  <dann@ics.uci.edu>
9257         * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
9259         * xterm.c (syms_of_xterm):
9260         * xselect.c (syms_of_xselect):
9261         * xmenu.c (syms_of_xmenu):
9262         * xfns.c (syms_of_xfns):
9263         * xfaces.c (syms_of_xfaces):
9264         * xdisp.c (syms_of_xdisp):
9265         * window.c (syms_of_window):
9266         * w32fns.c (syms_of_w32fns):
9267         * undo.c (syms_of_undo):
9268         * textprop.c (syms_of_textprop):
9269         * terminal.c (syms_of_terminal):
9270         * syntax.c (syms_of_syntax):
9271         * sound.c (syms_of_sound):
9272         * search.c (syms_of_search):
9273         * print.c (syms_of_print):
9274         * minibuf.c (syms_of_minibuf):
9275         * macros.c (syms_of_macros):
9276         * keymap.c (syms_of_keymap, initial_define_key)
9277         (initial_define_lispy_key):
9278         * keyboard.c (syms_of_keyboard):
9279         * insdel.c (syms_of_insdel):
9280         * image.c (syms_of_image):
9281         * fringe.c (syms_of_fringe):
9282         * frame.c (syms_of_frame):
9283         * fontset.c (syms_of_fontset):
9284         * fns.c (syms_of_fns):
9285         * fns.c (syms_of_fns):
9286         * fileio.c (syms_of_fileio):
9287         * fileio.c (syms_of_fileio):
9288         * eval.c (syms_of_eval):
9289         * doc.c (syms_of_doc):
9290         * dispnew.c (syms_of_display):
9291         * dired.c (syms_of_dired):
9292         * dbusbind.c (syms_of_dbusbind):
9293         * data.c (syms_of_data):
9294         * composite.c (syms_of_composite):
9295         * coding.c (syms_of_coding):
9296         * cmds.c (syms_of_cmds):
9297         * charset.c (define_charset_internal, syms_of_character):
9298         * ccl.c (syms_of_ccl):
9299         * category.c (syms_of_category, init_category_once):
9300         * casetab.c (syms_of_casetab):
9301         * casefiddle.c (syms_of_casefiddle):
9302         * callint.c (syms_of_callint):
9303         * bytecode.c (syms_of_bytecode):
9304         * buffer.c (keys_of_buffer, syms_of_buffer):
9305         * alloc.c (syms_of_alloc):
9306         * process.c (syms_of_process, init_process):
9307         * lread.c (syms_of_lread, init_obarray):
9308         * font.c (build_style_table):
9309         * emacs.c (syms_of_emacs, main): Replace calls to intern with
9310         intern_c_string, calls to make_pure_string with
9311         make_pure_c_string.  Use pure_cons instead of Fcons.
9313         * process.c (socket_options): Make it const.
9314         (set_socket_option, init_process): Use a const pointer.
9316         * lread.c (intern_c_string): New function.
9317         (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9318         (defvar_int): Uset it.  Make the name const char*.
9320         * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
9321         (defvar_int): Update prototypes.
9322         (DEFUN, EXFUN): Support for prototypes is now required.
9323         (intern_c_string): New prototype.
9324         (struct Lisp_Subr): Make symbol_name constant.
9326         * font.c (struct table_entry): Remove unused member.  Make NAMES
9327         constant.
9328         (weight_table, slant_table, width_table): Make constant.
9330         * emacs.c (struct standard_args): Make name and longname constant.
9332         * character.h (DEFSYM): Use intern_c_string.
9334 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
9336         * alloc.c (make_pure_c_string): New function.
9338         * eval.c (Fautoload): Purecopy all arguments.
9340 2009-11-05  Kenichi Handa  <handa@m17n.org>
9342         * fileio.c (Finsert_file_contents): Be sure set coding-system of
9343         the buffer in case of replace.
9345 2009-11-04  Dan Nicolaescu  <dann@ics.uci.edu>
9347         * puresize.h (BASE_PURESIZE): Increase to 1620000.
9349 2009-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
9351         * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
9352         when applicable (bug#4851).
9354         * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
9355         (P_): Support for prototypes is now required.
9357 2009-10-31  Chong Yidong  <cyd@stupidchicken.com>
9359         * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
9360         (Bug#4827).
9362 2009-10-30  Eli Zaretskii  <eliz@gnu.org>
9364         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
9366 2009-10-30  Dan Nicolaescu  <dann@ics.uci.edu>
9368         * puresize.h (BASE_PURESIZE): Increase to 1470000.
9370         * lread.c (Fload): Purecopy the file name when building
9371         Vpreloaded_file_list.
9373 2009-10-29  Jason Rumney  <jasonr@wanchan.jasonrumney.net>
9375         * w32fns.c (syms_of_w32fns): Change default value of
9376         w32-scroll-lock-modifier to nil.  (Bug#2827)
9378 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
9380         * minibuf.c (Fall_completions): Fix typos in docstring.
9382 2009-10-26  Andreas Schwab  <schwab@redhat.com>
9384         * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
9386 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
9388         * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
9389         For delta < 0, skip check that only makes sense when the mini-window
9390         is going to be enlarged.  (Bug#4534)
9392 2009-10-25  Chong Yidong  <cyd@stupidchicken.com>
9394         * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
9395         string in menu maps (Bug#4471).
9397 2009-10-24  Chong Yidong  <cyd@stupidchicken.com>
9399         * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
9400         FRAME_NS_VIEW on terminal frames (Bug#4765).
9402 2009-10-24  Andreas Schwab  <schwab@linux-m68k.org>
9404         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
9405         DBUS_TYPE_UINTnn separately to get proper sign extension.
9407         * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
9408         can properly handle unsigned types.
9409         (make_uid, make_gid): Remove.
9411         * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
9412         types again.
9414         * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
9415         (system_process_attributes): Likewise.
9417 2009-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
9419         * keymap.c (Fmake_sparse_keymap): Purecopy the name.
9421         * eval.c (Fautoload): Purecopy the filename.  Simplify.
9423         * category.c (Fdefine_category): Purecopy docstring.
9425 2009-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9427         * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
9429         * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
9431 2009-10-23  Chong Yidong  <cyd@stupidchicken.com>
9433         * window.c (Fwindow_edges, Fwindow_pixel_edges)
9434         (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
9435         (Bug#4775).
9437 2009-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
9439         * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
9440         (init_fileio_once):
9441         * lisp.h (init_fileio_once): Remove.
9442         * emacs.c (main): Don't call init_fileio_once.
9444 2009-10-23  Dan Nicolaescu  <dann@ics.uci.edu>
9446         * puresize.h (BASE_PURESIZE): Increase to 1430000.
9448 2009-10-21  Andreas Schwab  <schwab@linux-m68k.org>
9450         * doprnt.c (doprnt): Fix overflow check.
9452 2009-10-21  Jan Djärv  <jan.h.d@swipnet.se>
9454         * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
9456         * xterm.h (x_wait_for_event): Declare it.
9458         * xterm.c (pending_event_wait): New variable.
9459         (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
9460         see pending_event_wait.eventtype.
9461         (handle_one_xevent): Don't change gravity when parent changes.
9462         (x_new_font): Call change_frame_size with new rows/columns before we
9463         try to resize the frame.
9464         (x_wait_for_event): New function.
9465         (x_set_window_size_1): Don't change gravity unless change_gravity
9466         is set.
9467         Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
9468         don't change frame size, instead wait for the ConfigureNotify.
9469         (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
9470         (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
9471         (x_initialize): Initialize pending_event_wait.
9473         * xmenu.c (set_frame_menubar): Add internal border width to menu bar
9474         size.
9476         * widget.c (EmacsFrameSetValues): Add comment.
9477         (EmacsFrameSetCharSize): Just call x_set_window_size.
9479         * gtkutil.c (xg_frame_set_char_size): Flush events and call
9480         x_wait_for_event.
9481         (flush_and_sync): Remove again.
9482         (xg_get_font_name): Suggest monospace if no previous font is known.
9484 2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
9486         * character.c (char_resolve_modifier_mask): Don't resolve meta to the
9487         8th bit, since that only made sense in the ASCII world (bug#4751).
9489 2009-10-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9491         * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
9492         processing pending events when event is filtered for input method.
9493         (Bug#3681)
9495 2009-10-20  Juanma Barranquero  <lekktu@gmail.com>
9497         * fns.c: Add #endif accidentally removed in previous change.
9499 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
9501         * fns.c: Remove code for unsupported system: MAC_OS.
9502         * image.c: Likewise.  Include setjmp.h.
9504 2009-10-19  Jan Djärv  <jan.h.d@swipnet.se>
9506         * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
9507         pixel -1 (bug #4742).
9509 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
9511         * process.c (create_pty): Remove conditionals for no longer
9512         supported systems: UNIPLUS and RTU.
9514         * xterm.c:
9515         * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
9517         * alloc.c: Do not define struct catchtag.
9518         * eval.c: Move struct catchtag definition ...
9519         * lisp.h: ... here.
9521         * image.c: Move png.h #include earlier to avoid warnings.
9523         * xterm.c:
9524         * xsmfns.c:
9525         * xselect.c:
9526         * xrdb.c:
9527         * xmenu.c:
9528         * xftfont.c:
9529         * xfont.c:
9530         * xfns.c:
9531         * xfaces.c:
9532         * xdisp.c:
9533         * window.c:
9534         * widget.c:
9535         * w32xfns.c:
9536         * w32uniscribe.c:
9537         * w32term.c:
9538         * w32select.c:
9539         * w32reg.c:
9540         * w32proc.c:
9541         * w32menu.c:
9542         * w32inevt.c:
9543         * w32heap.c:
9544         * w32font.c:
9545         * w32fns.c:
9546         * w32console.c:
9547         * w32.c:
9548         * w16select.c:
9549         * vm-limit.c:
9550         * unexsol.c:
9551         * unexec.c:
9552         * unexcw.c:
9553         * unexaix.c:
9554         * undo.c:
9555         * tparam.c:
9556         * textprop.c:
9557         * terminfo.c:
9558         * terminal.c:
9559         * termcap.c:
9560         * term.c:
9561         * syntax.c:
9562         * sound.c:
9563         * sheap.c:
9564         * search.c:
9565         * scroll.c:
9566         * region-cache.c:
9567         * regex.c:
9568         * ralloc.c:
9569         * process.c:
9570         * print.c:
9571         * nsterm.m:
9572         * nsselect.m:
9573         * nsmenu.m:
9574         * nsimage.m:
9575         * nsfont.m:
9576         * nsfns.m:
9577         * msdos.c:
9578         * minibuf.c:
9579         * menu.c:
9580         * marker.c:
9581         * macros.c:
9582         * keymap.c:
9583         * keyboard.c:
9584         * intervals.c:
9585         * insdel.c:
9586         * indent.c:
9587         * gtkutil.c:
9588         * ftxfont.c:
9589         * ftfont.c:
9590         * fringe.c:
9591         * frame.c:
9592         * fontset.c:
9593         * font.c:
9594         * fns.c:
9595         * floatfns.c:
9596         * filelock.c:
9597         * fileio.c:
9598         * emacs.c:
9599         * editfns.c:
9600         * dosfns.c:
9601         * doprnt.c:
9602         * doc.c:
9603         * dispnew.c:
9604         * dired.c:
9605         * dbusbind.c:
9606         * data.c:
9607         * composite.c:
9608         * coding.c:
9609         * cmds.c:
9610         * cm.c:
9611         * chartab.c:
9612         * charset.c:
9613         * character.c:
9614         * ccl.c:
9615         * category.c:
9616         * casetab.c:
9617         * casefiddle.c:
9618         * callproc.c:
9619         * callint.c:
9620         * bytecode.c:
9621         * buffer.c:
9622         * atimer.c: Include setjmp.h.  (Bug#4643)
9624 2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9626         Remove leftover table unibyte_to_multibyte_table.
9627         * character.c (unibyte_to_multibyte_table): Remove.
9628         (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
9629         * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
9630         * character.h (UNIBYTE_TO_CHAR): New macro.
9631         (MAKE_CHAR_MULTIBYTE): Use it.
9632         (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
9633         * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
9634         (message_dolog, set_message_1):
9635         * search.c (Freplace_match):
9636         * editfns.c (Fcompare_buffer_substrings):
9637         * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
9638         (concat):
9639         * insdel.c (copy_text, count_size_as_multibyte):
9640         Use ASCII_CHAR_P and BYTE8_TO_CHAR.
9641         * term.c (produce_glyphs):
9642         * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
9643         * regex.c (RE_CHAR_TO_MULTIBYTE):
9644         * cmds.c (internal_self_insert):
9645         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
9647         * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
9649 2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
9651         * puresize.h (BASE_PURESIZE): Increase to 1310000.
9653 2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
9655         * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
9657 2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
9659         * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
9660         still needed under Tiger.
9662         * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
9664         * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
9665         __Apple__.
9667         * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
9669 2009-10-15  Kenichi Handa  <handa@m17n.org>
9671         * print.c (print_object): Escape a symbol like "2E10" too.
9673 2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
9675         Cleanups and changes for 64-bit compile under Snow Leopard.
9676         Based on suggestions by Erik Charlebois.
9678         * nsfns.m (xw-color-values): Use CGFloat where appropriate.
9680         * nsfont.m (ns_char_width): Replace deprecated call.
9681         (ns_findfonts, nsfont_list_family): Use long format in printf, and
9682         cast argument.
9683         (nsfont_open): Use ns_char_width() everywhere.
9684         (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
9686         * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
9688         * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
9689         where appropriate.
9691         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
9692         where appropriate.
9693         (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
9694         Use stringWithUTF8String.
9695         (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
9697         * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
9698         Add formal protocol mention to inheritance.
9699         [NS_HAVE_NSINTEGER]: Drop conditional and contents.
9701         * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
9702         Fix printf format.
9703         (ns_query_color): Use CGFloat where appropriate.
9704         (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
9705         (EmacsScroller-mouseDown:): Use long format in printf, and cast
9706         argument.
9708         * config.in (NS_HAVE_NSINTEGER): Drop.
9710         * dbusbind.c (dbus-method-return-internal)
9711         (dbus-method-error-internal): Use long format in printf, and cast
9712         argument.
9714         * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
9715         in printf, and cast argument.
9717         * process.c (list_processes_1): Use long format in printf, and
9718         cast argument.
9720 2009-10-11  Glenn Morris  <rgm@gnu.org>
9722         * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
9724 2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
9726         * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
9727         menu bar with a small width so it doesn't enlarge the frame.
9729 2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
9731         * fontset.c (Fset_fontset_font): Fix typos in error messages.
9733 2009-10-06  Glenn Morris  <rgm@gnu.org>
9735         * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
9736         SOME_MACHINE_LISP (this enters indirectly via DOC).
9738 2009-10-05  Eli Zaretskii  <eliz@gnu.org>
9740         * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
9742 2009-10-04  Eli Zaretskii  <eliz@gnu.org>
9744         * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
9745         Doc fix.
9747 2009-10-03  Martin Rudalics  <rudalics@gmx.at>
9749         * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
9751 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
9753         * lisp.h (Qdelete_directory_internal): Remove, because it is not
9754         used anymore outside fileio.c.
9756         * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
9758 2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
9760         * lisp.h (Qdelete_directory_internal):
9761         Declare, instead of Qdelete_directory.
9763         * w32fns.c (Fsystem_move_file_to_trash): Use it.
9765 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
9767         * eval.c (Fcalled_interactively_p): Add `kind' argument.
9769 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
9771         * fileio.c (Fdelete_directory_internal): Rename from
9772         Fdelete_directory.  It is not a command anymore.  It has no file
9773         name handler.
9775 2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
9777         * xdisp.c (get_next_display_element): Use an enum in last change.
9779 2009-09-28  Kenichi Handa  <handa@m17n.org>
9781         * xdisp.c (get_next_display_element): Pay attention to
9782         unibyte_display_via_language_environment in handling
9783         Vnobreak_char_display.
9785 2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
9787         * nsterm.h (ns_app_name): New extern variable.
9789         * nsterm.m (ns_app_name): New variable.
9790         (ns_term_init): Set and use it.
9791         (ns_term_shutdown): Use it.
9793         * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
9794         (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
9796         * nsfns.m (ns_set_name_iconic, ns_set_name)
9797         (ns_set_name_as_filename, x-create-frame, ns-get-resource)
9798         (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
9800         * menu.c (find_and_return_menu_selection) [HAVE_NS]:
9801         Remove double-casting in client_data comparison.
9803 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9805         * keyboard.c (make_lispy_event): Remember last wheel direction.
9806         (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
9808 2009-09-26  Glenn Morris  <rgm@gnu.org>
9810         * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
9811         internal.elc.  Add term/pc-win.elc.
9812         (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
9813         term/x-win.elc.
9814         (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
9815         term/w32-win.elc.
9816         (NS_SUPPORT): New.
9817         (lisp): Add NS_SUPPORT.
9818         (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
9820 2009-09-25  David Reitter  <david.reitter@gmail.com>
9822         * nsmenu.m (EmacsMenu-clear): Recognize application menu
9823         on Mac OS X 10.6+ (bug#4513).
9825 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
9827         * frame.c (xrdb_get_resource): Return nil for empty string resources;
9828         some parts of Emacs code (like font selection) don't grok them.
9829         See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
9831 2009-09-24  Andreas Schwab  <schwab@redhat.com>
9833         * coding.c (decode_coding_iso_2022): Fix operator precedence.
9835 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
9837         * dired.c (Fdirectory_files): Fix typo in docstring.
9839 2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
9841         * nsterm.m (EV_TIMESTAMP, x_set_window_size)
9842         (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
9843         (EmacsScroller-setPosition:portion:whole:): Remove -display call
9844         under GNUstep.
9845         (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
9847         * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
9848         glyph advancement.
9850 2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
9852         * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
9853         (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
9855         * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
9856         deleted (bug #4492).
9858         * nsfont.m (Vns_reg_to_script): New lisp variable.
9859         (syms_of_nsfont): Declare it.
9860         (ns_registry_to_script): New function.
9861         (ns_get_req_script): Call it.
9862         (ns_findfonts): Don't give up on non-unicode registry.
9864         * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
9866 2009-09-20  Tom Tromey  <tromey@redhat.com>
9868         * eval.c (find_handler_clause): Make stack-trace-on-error work in
9869         batch mode (bug#4228).
9871 2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
9873         * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
9874         carefully.  (Bug #4339)
9876 2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
9878         * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
9880 2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
9882         * emacs.c (inhibit_x_resources): Update doc string for NS.
9883         (main) [HAVE_NS]: Don't process --no-init-file option.
9884         Remove legacy code for -NXHost.  Fix error printf in daemon case.
9886         * nsterm.h (ns_no_defaults): Remove.
9888         * nsterm.m (ns_no_defaults): Remove.
9889         (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
9890         (ns_use_qd_smoothing): Remove legacy variable.
9891         (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
9892         don't update the NSWindow itself.
9893         (EmacsView-windowWillUseStandardFrame:defaultFrame:):
9894         Improve state detection and store user rect ourselves.  (Bug #3581)
9896         * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
9897         ns_use_qd_smoothing.
9899         * nsfns.m (x_get_string_resource): Ape just-previous changes to other
9900         platform versions.  Drop support for emacs-20-style face specs.
9901         (x-close-connection): Drop PSFlush() under OS X.
9902         (x-focus-frame): Activate the app first.  (Bug #4180)
9904 2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
9906         * emacs.c (inhibit_x_resources): New variable.
9907         (main) [HAVE_NS]: Don't process --quick command line option.
9908         (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
9910         * lisp.h (inhibit_x_resources): Declare it extern.
9912         * w32reg.c (x_get_string_resource):
9913         * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
9915 2009-09-17  Eli Zaretskii  <eliz@gnu.org>
9917         * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
9918         Add lisp/term/internal.elc.
9920 2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
9922         * frame.c (x_get_resource_string): Re-add for non-toolkit builds
9923         (bug#4461).
9925 2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
9927         * puresize.h (BASE_PURESIZE): Increase to 1290000.
9929         * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
9930         (OBJECTS_MACHINE): Remove, unused.
9932 2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
9934         * frame.c (x_get_resource_string): Remove unused.
9936 2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
9938         * xterm.c (x_new_font): Call change_frame_size before calling
9939         x_set_window_size, in case frame size won't change.
9941         * frame.c (x_set_font): Remove dead code.
9943 2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
9945         * lread.c (Fload): Also run do-after-load-evaluation while dumping.
9947 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9949         * lread.c (Fload): Don't output a message after loading an obsolete
9950         package any more (done in Lisp now).
9952 2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
9954         * fns.c (syms_of_fns): Doc fix (Bug#4227).
9956 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9958         * keymap.c (Fwhere_is_internal): Use nconc2.
9960 2009-09-11  Alan Mackenzie  <acm@muc.de>
9962         * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
9963         batch mode.
9965 2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
9967         * xdisp.c (display_mode_element): Detect cycles.
9969 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
9971         * keymap.c (where_is_internal): Don't erroneously return nil right after
9972         filling the cache.
9973         (where_is_internal_1): Fix up typo.
9975 2009-09-11  Glenn Morris  <rgm@gnu.org>
9977         * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
9978         share a common doc-string.
9980 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
9982         * keymap.c (get_keymap): Return the actual keymap symbol rather than
9983         t for autoloaded keymaps when autoloading is not allowed (bug#4393).
9985         * keymap.c (QCadvertised_binding): New constant.
9986         (syms_of_keymap): Initialize it.
9987         (Fwhere_is_internal): Try and use bindings from :advertised-binding
9988         if applicable.
9990 2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
9992         * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
9993         (parse_menu_item): Streamline since bindings are recomputed all the
9994         time anyway.  Don't bother checking Vdefine_key_rebound_commands any
9995         more and don't support lmenu's menu-alias any more either.
9997         * keymap.c (where_is_internal_data): Make noindirect a boolean.
9998         (where_is_internal): Strip it down to only traverse the keymaps.
9999         Move the cache handling from Fwhere_is_internal to here.
10000         (Fwhere_is_internal): Move the handling of remapping and the choice of
10001         the best binding from where_is_internal to here.
10002         Unify the cached/noncached paths, so remapping is also handled
10003         correctly when the cache is used, and so the cache can be used to
10004         speed up remap-handling when applicable.
10005         Give preference to non-remapped bindings.
10006         * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
10007         non-remapped bindings.
10008         * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
10009         command remapping.
10011         * xdisp.c (display_mode_element): Move list length limit from 50 to
10012         5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
10014 2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
10016         * nsfont.m (ns_get_family): Don't force first letter to uppercase.
10018 2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
10020         * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
10021         (Bug#4334)
10023         * keymap.c (where_is_internal): Filter out shadowed remappings.
10024         Assume that where_is_internal returns unshadowed bindings to simplify
10025         the code and get rid of the gotos.  Use ASIZE.
10027 2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
10029         * xterm.c (x_focus_changed): If we get a focusout and pointer
10030         is invisible, make it visible.
10032         * xterm.h: Remove condition for declaration of
10033         x_*_window_to_frame.
10035 2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
10037         * dispnew.c (Fsend_string_to_terminal): Make it work again on the
10038         initial terminal as well.
10040 2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
10042         * xterm.h: Rename x_non_menubar_window_to_frame to
10043         x_menubar_window_to_frame.
10045         * xterm.c: Remove declarations also in xterm.h.
10046         (XTmouse_position): Do not return valid positions
10047         for clicks in the menubar and the toolbar for Gtk+.
10049         * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
10050         if the widget for the event has the same top level as a frame,
10051         return the frame.
10052         (x_menubar_window_to_frame): Detect menu bar even with Gtk+
10053         internal windows, bug #4122.
10054         (x_non_menubar_window_to_frame): Remove.
10056 2009-09-02  Glenn Morris  <rgm@gnu.org>
10058         * buffer.c (default-major-mode): Move most of the doc from here...
10059         (major-mode): ... to here.
10061 2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
10063         * process.c (wait_reading_process_output): Keep the descriptor
10064         when pty is used by a non-child process, e.g., in I/O buffer of
10065         GDB this allows inferior to be restarted.
10067 2009-08-29  Eli Zaretskii  <eliz@gnu.org>
10069         * xdisp.c (redisplay_internal): Remove redundant test and collapse
10070         both branches into one.
10072 2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
10074         * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
10075         (main): Use enable-multibyte-characters rather than
10076         default-enable-multibyte-characters.  Output a warning message when
10077         running a unibyte session.
10079 2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10081         * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
10082         LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
10083         (copy_data_segment): Also copy __program_vars section.
10084         (copy_dyld_info) [LC_DYLD_INFO]: New function.
10085         (dump_it) [LC_DYLD_INFO]: Use it.
10087         * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
10089 2009-08-28  Eli Zaretskii  <eliz@gnu.org>
10091         * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
10092         $(SRC)/buildobj.h.
10093         (buildobj.h): Rename from $(SRC)/buildobj.h.
10094         (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
10095         $(SRC)/buildobj.h.
10096         (clean): Add buildobj.h.
10098 2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
10100         * print.c (print_object): Set escapeflag to 1 when printing
10101         hashtable keys and values.
10103 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
10105         * lread.c (read_integer): Use doubles (and potentially return a float
10106         number) as we do in string-to-number.
10107         (read1): Use strtol to read integers, signal errors on strtol's
10108         overflow and use floats if strtol's output is too large for
10109         Elisp integers.
10111 2009-08-27  Eli Zaretskii  <eliz@gnu.org>
10113         * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
10114         (make-buildobj-SH): Fix last change.
10115         (SRC): Move to before where it's first used.
10117 2009-08-27  Kenichi Handa  <handa@m17n.org>
10119         * process.c (send_process): Use encode_coding_object instead of
10120         encode_coding_string to perform eol-conversion even if the string
10121         is unibyte.
10123         * coding.c (encode_coding_utf_16): Fix checking of a Unicode
10124         character.
10126         * cmds.c (Fself_insert_command): Avoid unnecessay
10127         unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
10129 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>
10131         * callproc.c (Fcall_process): Remove always true #if.
10133         * lisp.h: Replace #if 0 code for checking with text pointing to
10134         the --enable-checking configure flag.
10136         * emacs.c (main): Mention the --enable-profiling configure flag
10137         instead of using CFLAGS.
10139 2009-08-26  Ken Raeburn  <raeburn@raeburn.org>
10141         * Makefile.in (buildobj.h): New target.
10142         (doc.o): Depend on it.
10143         (temacs${EXEEXT}): Don't generate buildobj.lst.
10144         (mostlyclean): Delete buildobj.h, not buildobj.lst.
10145         * makefile.w32-in ($(SRC)/buildobj.h): New target.
10146         ($(BLD)/doc.$(O)): Depend on it.
10147         (make-buildobj-CMD, make-buildobj-SH): New targets.  (Syntax help
10148         provided by Eli Zaretskii.)
10149         ($(TEMACS)): Don't generate buildobj.lst.
10150         * doc.c: Include buildobj.h.
10151         (buildobj): New static variable.
10152         (Fsnarf_documentation): Use it, instead of opening and reading
10153         buildobj.lst.
10155 2009-08-25  Michael Albinus  <michael.albinus@gmx.de>
10157         * dbusbind.c (Fdbus_call_method)
10158         (Fdbus_call_method_asynchronously): Use English numeric format for
10159         timeout values in doc string.
10161 2009-08-25  Kenichi Handa  <handa@m17n.org>
10163         * alloc.c (mark_char_table): New function.
10164         (mark_object): Use mark_char_table for a char-table.
10166         * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
10167         (CHAR_TABLE_REF): Use it.
10169 2009-08-23  Ken Raeburn  <raeburn@raeburn.org>
10171         * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
10172         before invoking the newly build emacs to check for load-path
10173         shadowing.
10175 2009-08-22  Glenn Morris  <rgm@gnu.org>
10177         * Makefile.in (bootstrap_exe): New variable.
10178         (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
10179         Use ${bootstrap_exe}.
10181 2009-08-22  Eli Zaretskii  <eliz@gnu.org>
10183         * coding.h (encode_coding_string): Don't encode unibyte strings.
10184         (Bug#4047)
10186 2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
10188         * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
10190         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
10191         intended as hotfix only.
10192         (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
10194 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
10196         * nsterm.m (ns_get_color): Update documentation properly for last
10197         change, and clean up loose ends in the code left by it.
10198         Fix longstanding bug with 16-bit hex parsing, and add support for
10199         yet another X11 format (rgb:r/g/b) for compatibility.
10200         * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
10201         timer_check() to avoid crash on Leopard/PPC.  Bug #2154.
10203 2009-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10205         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
10207 2009-08-20  Michael Albinus  <michael.albinus@gmx.de>
10209         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
10210         (xd_add_watch, xd_remove_watch): Use it.  Print debug messages.
10211         (xd_initialize, xd_pending_messages): Check, whether
10212         $DBUS_SESSION_BUS_ADDRESS is set.
10214 2009-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10216         * nsfns.m (Fxw_color_values): Return 3-element list.  Doc fix.
10218         * nsterm.m (ns_get_color): Remove incompatible color formats again.
10220 2009-08-20  Glenn Morris  <rgm@gnu.org>
10222         * emacs.c (system-type): Doc fix.
10224 2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
10226         * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
10227         enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
10229 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
10231         * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
10232         New functions.
10233         (xd_initialize): Revert change from 2009-08-16.
10235 2009-08-18  Kenichi Handa  <handa@m17n.org>
10237         * fontset.c (Ffontset_font): If a nil element is found in a
10238         font-group vector, return nil.
10240 2009-08-17  Chong Yidong  <cyd@stupidchicken.com>
10242         * process.c (status_notify): Don't perform redisplay.
10243         (Fdelete_process, list_processes_1, process_send_signal):
10244         Expliticly perform redisplay.
10245         (wait_reading_process_output): Always check process status, but
10246         don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
10248 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
10250         * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
10251         (XFLOAT_INIT): New macro for storing a float value.
10252         * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
10253         * fns.c (sxhash): Copy out the value of a float in order to
10254         examine its bytes.
10255         * dbusbind.c (xd_append_arg): Likewise.
10257         * emacs.c (main): Don't call syms_of_data twice.
10259 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
10261         * dbusbind.c (xd_initialize): Add connection file descriptor to
10262         input_wait_mask, in order to let select() detect, whether a new
10263         message has been arrived.
10264         (Fdbus_call_method_asynchronously): Allow nil HANDLER.
10266 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
10268         * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
10269         New functions.
10271         * lisp.h (xd_pending_messages): Declare.
10273         * keyboard.c (readable_events): Call xd_pending_messages.
10275 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
10277         * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
10279         * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
10281         * buffer.c (set_buffer_internal_1)
10282         (swap_out_buffer_local_variables): Check for unbound local
10283         variables (Bug#4138).
10285 2009-08-14  Eli Zaretskii  <eliz@gnu.org>
10287         * process.c (create_pty): Fix last change.
10289 2009-08-13  Chong Yidong  <cyd@stupidchicken.com>
10291         * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
10292         (xbm_load_image): Caller changed.
10293         (xbm_file_p): Avoid signalling an image_error (Bug#4107).
10295 2009-08-13  Nick Roberts  <nickrob@snap.net.nz>
10297         * process.c (create_pty): New function.
10298         (Fstart_process): Use it to allow Emacs to just associate a pty
10299         with the buffer.  See associated change in gdb-mi.el.
10300         (list_processes_1): Deal with no program name.
10301         (start_process_unwind): Use pid == -2 to mean no process.
10303 2009-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10305         * cmds.c (nonundocount): New global variable.
10306         (keys_of_cmds): Initialize it.
10307         (Fself_insert_command): Use it to combine upto 20 sequential chars
10308         into a single undo entry, just like the Qself_insert_command code in
10309         keyboard.c does.
10310         Call frame_make_pointer_invisible, also like the Qself_insert_command
10311         code in keyboard.c does.
10312         * keyboard.c (command_loop_1): Use the new global nonundocount rather
10313         than its own local replacement for it.
10315 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
10317         * fns.c (concat): Don't re-set string length to its current value.
10319         * coding.h (decode_coding_string, encode_coding_string):
10320         Use SBYTES macro.
10322         * doprnt.c (doprnt_lisp): Delete unused function.
10323         (doprnt): Merge with doprnt1, discarding lispstrings code.
10324         * lisp.h (doprnt_lisp): Don't declare.
10326 2009-08-07  Juri Linkov  <juri@jurta.org>
10328         * puresize.h (BASE_PURESIZE): Increase to 1270000.
10330 2009-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
10332         * print.c (syms_of_print): Undo previous change.
10334 2009-08-05  Teodor Zlatanov  <tzz@lifelogs.com>
10336         * lread.c (read1, syms_of_lread): Read hashtables back from the
10337         readable format.
10339         * print.c (print_preprocess, print_object): Print hashtables fully
10340         and readably.
10341         (syms_of_print): Provide 'hashtable-print-readable.
10343 2009-08-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
10345         * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
10346         no family set.
10347         (nsfont_open): Handle case when entity has no family.
10349 2009-07-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
10351         * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
10352         element, not a list, for match case.
10354 2009-07-28  Kenichi Handa  <handa@m17n.org>
10356         * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
10357         rigidly.
10359         * xfont.c (xfont_list_pattern): Don't ignore the return value of
10360         font_parse_xlfd.  Check font properties more rigidly.
10362 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
10364         * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
10365         bsd-common.h.
10367 2009-07-27  Kenichi Handa  <handa@m17n.org>
10369         * xfaces.c (face_with_height): Call font_clear_prop.
10371 2009-07-26  Chong Yidong  <cyd@stupidchicken.com>
10373         * dispnew.c (init_display): Use Qx, Qw32, and Qns.
10375         * xterm.c (x_term_init): Use Qx.
10377         * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
10379         * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
10380         (ns_get_color): Revert 2009-07-16 change.
10382 2009-07-25  Eli Zaretskii  <eliz@gnu.org>
10384         * lread.c (syms_of_lread) <force_load_messages>: New variable.
10385         (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
10387 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
10389         * coding.h (decode_coding_string, encode_coding_string):
10390         Use SCHARS macro.
10392         * lread.c: Rewrite 2009-07-21 changes.
10393         (load_depth): Delete.
10394         (Qload_in_progress): New variable.
10395         (load_unwind): Don't reference load_depth or load_in_progress.
10396         (Fload): Likewise; specbind Qload_in_progress instead.
10397         (init_lread): Don't initialize load_depth.
10398         (syms_of_lread): Initialize and protect Qload_in_progress.
10400 2009-07-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
10402         * nsfont.m (ns_findfonts): Correctly return fallback in match case.
10404 2009-07-23  Yavor Doganov  <yavor@gnu.org>
10406         * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
10408 2009-07-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
10410         * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
10411         Bugs 3792, 3720, 2402.
10412         (ns_lookup_indexed_color): Check for bad index.
10413         (ns_index_color): Init unused slot to 0.
10414         (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
10415         Bug 3714, possibly 3082.
10417 2009-07-22  Jason Rumney  <jasonr@gnu.org>
10419         * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
10420         Position IME window at cursor (Bug#2570).
10421         (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
10422         (globals_of_w32fns): Dynamically load functions required above.
10424         * w32term.c (w32_draw_window_cursor): Send message to reposition
10425         any IME window.
10427 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
10429         * fileio.c: Revert 2009-07-16 changes.
10430         (Vauto_save_include_big_deletions): New variable.
10431         (Fdo_auto_save): Disable auto-save only if
10432         auto-save-include-big-deletions is nil.
10434 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
10436         * xdisp.c (move_it_to): For continued lines ending in a tab, take
10437         the overflowed pixels into account (Bug#3879).
10439 2009-07-21  Ken Raeburn  <raeburn@raeburn.org>
10441         * lread.c (load_depth): New variable.
10442         (Fload, load_unwind, init_lread): Set it to the load recursion
10443         depth; set load_in_progress as a simple boolean based on the
10444         current load_depth.  (Bug#3892)
10446 2009-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
10448         * nsfont.m (ns_has_attribute): Remove.
10449         (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
10451 2009-07-18  Juri Linkov  <juri@jurta.org>
10453         * process.c (Fset_process_query_on_exit_flag): Mention killing
10454         a buffer in docstring.
10456 2009-07-17  Kenichi Handa  <handa@m17n.org>
10458         * casetab.c (shuffle): Fix the logic of setting up the cycle.
10460 2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10462         * nsfns.m (Fns_set_alpha): Remove function.
10463         (syms_of_nsfns): Don't defsubr it.
10465         * nsterm.m (ns_get_color): Remove incompatible color formats.
10466         (ns_color_to_lisp): Generate #rrggbb color format string.
10468 2009-07-16  Richard Stallman  <rms@gnu.org>
10470         * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
10471         (Fset_buffer_auto_saved): Handle save_length = -2.
10473 2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
10475         * xterm.c (Qx_gtk_map_stock): New var.
10477         * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
10478         of calling intern each time.
10480 2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10482         * nsfont.m (nsfont_draw): Remove code for stippling, which actually
10483         does tiling.
10485         * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
10487 2009-07-14  Kenichi Handa  <handa@m17n.org>
10489         * font.c (font_vconcat_entity_vectors): New function.
10490         (struct font_sort_data): New member font_driver_preference.
10491         (font_compare): Check font_driver_preference.
10492         (font_sort_entities): The format of the first argument changed.
10493         (font_delete_unmatched): Likewise.
10494         (font_list_entities): The return type changed.
10495         (font_select_entity): The format of the second argument changed.
10496         (font_find_for_lface): Adjuste for the above changes.
10497         Don't suppress the checking of C even if the repertory supports it.
10498         (Flist_fonts): Adjust for the above changes.
10500         * ftfont.c (ftfont_spec_pattern): New arg langname.  Change caller.
10501         (ftfont_list): Adjust for the change of ftfont_spec_pattern.
10502         Reject a font who has adstyle property that is different from a
10503         langname derived from registry property.
10504         (ftfont_match): Adjust for the change of ftfont_spec_pattern.
10506 2009-07-13  Eli Zaretskii  <eliz@gnu.org>
10508         * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
10509         local copy of dirfilename.
10511 2009-07-13  Kenichi Handa  <handa@m17n.org>
10513         * chartab.c (sub_char_table_ref_and_range): Fix the range check
10514         against max_char.
10516         * cmds.c (internal_self_insert): Check sym by SYMBOLP before
10517         calling XSYMBOL (sym).
10519 2009-07-11  Eli Zaretskii  <eliz@gnu.org>
10521         * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
10522         New function.
10523         (directory_files_internal) [WINDOWSNT]:
10524         Bind w32-get-true-file-attributes to either t or nil, depending whether
10525         the filesystem of the directory is fast or slow.
10527         * w32.c (logon_network_drive): Don't assume PATH is an absolute
10528         file name.
10529         (is_slow_fs): New function.
10530         (stat): Use it to determine whether to issue more system calls to
10531         get accurate file attributes, when w32-get-true-file-attributes is
10532         `local'.
10534 2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
10536         * xfns.c (Fx_select_font): Remember last font selected in
10537         x_last_font_name and use that the next time.  Also try the frame
10538         parameter font-parameter as default to the font dialog.
10540 2009-07-10  Kenichi Handa  <handa@m17n.org>
10542         * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
10544 2009-07-09  Eli Zaretskii  <eliz@gnu.org>
10546         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10548         * w32.c (stat): Treat UNC file names as residing on remote
10549         drives.  (Bug#3542)
10551 2009-07-09  Kenichi Handa  <handa@m17n.org>
10553         * fontset.c (fontset_find_font): Fix previous change.
10555 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
10557         * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
10558         (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
10559         error flag.
10561 2009-07-08  Kenichi Handa  <handa@m17n.org>
10563         * fontset.c (fontset_find_font): Fix the logic of handling
10564         charset_matched.
10565         (font_for_char): Delete unused var.
10566         (generate_ascii_font_name): Delete it.
10568         * coding.h (JIS_TO_SJIS2): Fix the code range check.
10570         * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
10571         (encode_coding_sjis): Fix the code range check.
10573 2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
10575         * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
10576         (Fexpand_file_name): Copy string data properly (Bug#3772).
10578 2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
10580         * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
10581         first MapNotify.
10583 2009-07-07  Kenichi Handa  <handa@m17n.org>
10585         * character.h (unibyte_has_multibyte_table): Delete extern.
10586         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
10588         * charset.c (Fset_charset_priority): Update charset_unibyte.
10589         (syms_of_charset): Initialize charset_unibyte.
10591         * character.c (unibyte_has_multibyte_table): Delete it.
10592         (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
10593         charset_unibyte.
10594         (multibyte_char_to_unibyte_safe): Likewise.
10595         (Funibyte_char_to_multibyte): Don't check charset_unibyte.
10597         * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
10598         (x_produce_glyphs): Likewise.
10600         * .gdbinit (xcharset): Fix the treating $arg0.
10602 2009-07-04  Eli Zaretskii  <eliz@gnu.org>
10604         Emulation of `getloadavg' on MS-Windows.
10605         * w32.c: Include float.h.
10606         (g_b_init_get_native_system_info, g_b_init_get_system_times)
10607         (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
10608         (get_native_system_info, get_system_times): New functions.
10609         (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
10610         (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
10611         (globals_of_w32): Initialize g_b_init_get_native_system_info,
10612         g_b_init_get_system_times, and num_of_processors.
10614 2009-07-03  Jason Rumney  <jasonr@gnu.org>
10616         * w32term.c (w32_initialize): Use standard types.
10618 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
10620         * dired.c (Ffile_attributes): Decode user and group names by the
10621         locale's encoding.  (Bug#3443)
10623 2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
10625         * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
10626         (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
10628         * callproc.c (child_setup): Use #else instead of a separate #ifdef.
10630         * term.c (init_tty): Remove spurious #ifdef.
10632         * m/mips.h: Mention this file is also used for netbsd.
10633         * m/pmax.h: Remove file.
10635 2009-07-03  Jan Djärv  <jan.h.d@swipnet.se>
10637         * xterm.h (struct x_display_info): Add invisible_cursor.
10638         (struct x_output): Add current_cursor.
10640         * xterm.c (XTtoggle_invisible_pointer): New function.
10641         (x_define_frame_cursor): Don't define cursor if invisible or the
10642         same as before.  Set current_cursor.
10643         (x_create_terminal): Set toggle_invisible_pointer_hook.
10645         * xfns.c (make_invisible_cursor): New function.
10646         (x_set_mouse_color): Call make_invisible_cursor.
10647         Set current_cursor.
10648         (x_window): Set current_cursor.
10650         * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
10652         * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
10653         inserting a character.
10654         (read_avail_input): Call frame_make_pointer_visible.
10656         * frame.c (Vmake_pointer_invisible): New variable.
10657         (frame_make_pointer_invisible, frame_make_pointer_visible):
10658         New functions.
10659         (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
10661         * frame.h: Declare frame_make_pointer_invisible and
10662         frame_make_pointer_visible.
10663         (struct frame): Add pointer_invisible.
10665 2009-07-02  Jan Djärv  <jan.h.d@swipnet.se>
10667         * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
10668         frame isn't visible.
10669         (xg_frame_resized): If width/height is -1, get size of window
10670         from X server.
10672         * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
10673         for MapNotify.
10675         * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
10676         here or call change_frame_size.  Just call flush_and_sync.
10677         (flush_and_sync): Reintroduce.
10679 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
10681         * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
10683         * xterm.c (x_handle_net_wm_state): Also look for sticky.
10684         (x_term_init): Initialize Xatom_net_wm_state_sticky.
10686         * frame.h: Declare Qsticky.
10688         * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
10690         * nsfns.m (ns_frame_parm_handlers): Ditto.
10692         * frame.c: Declare Qsticky.
10693         (frame_parms): Add sticky.
10695         * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
10697         * xterm.h: Declare x_set_sticky.
10699         * xterm.c (x_set_sticky): New function.
10701         * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
10702         (xg_tool_bar_menu_proxy): Attach enter/leave events to
10703         xg_tool_bar_proxy_help_callback.
10705         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
10707         * frame.c: Qmaximized is new.
10708         (x_set_frame_parameters): Do not handle fullscreen specially.
10709         Only set width and height if explicitly set.
10710         (x_set_fullscreen): Handle Qmaximized.
10711         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
10712         (syms_of_frame): Initialize Qmaximized.
10714         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
10715         Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
10717         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
10718         for Expose event.  Add call to x_check_fullscreen for MapNotify event.
10719         Remove all code w.r.t. fullscreen from ConfigureNotify event.  Do not
10720         set gravity to NorthWestGravity when USE_GTK.
10721         (set_wm_state): New function.
10722         (do_ewmh_fullscreen): Use set_wm_state.  Also handle FULLSCREEN_MAXIMIZED.
10723         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
10724         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
10725         or the case when no window manager is running.  That means remove calls
10726         to x_real_positions and x_fullscreen_adjust.
10728         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
10729         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
10730         flush_and_sync.
10731         (xg_height_changed): New function.
10732         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
10733         and gtk_window_set_policy.  Set frame gravity after parsing the
10734         geometry string.
10735         (xg_update_frame_menubar, free_frame_menubar)
10736         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10737         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
10738         Remove calls to xg_frame_set_char_size.
10740 2009-07-01  Kenichi Handa  <handa@m17n.org>
10742         * keyboard.c (decode_keyboard_code): New function.
10743         (tty_read_avail_input): Decode the input bytes if necessary.
10745         * coding.c (setup_coding_system):
10746         Initialize coding->carryover_bytes to 0.
10747         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
10748         use Qno_conversion.
10750 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10752         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
10754 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
10756         * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
10758 2009-06-30  Jason Rumney  <jasonr@gnu.org>
10760         * w32term.c (w32_initialize): Use GetModuleHandle for library that
10761         is already loaded.
10762         Set user model ID if supported (bug#1849).
10764 2009-06-29  Jim Meyering  <meyering@redhat.com>
10766         Remove useless if-before-xfree test.
10767         * nsfont.m (nsfont_close): Remove useless test.
10768         * term.c (delete_tty): Likewise.
10769         * w32.c (system_process_attributes): Likewise.
10770         * w32font.c (w32font_close): Likewise.
10771         * xfaces.c (x_free_gc): Likewise.
10772         * xselect.c (buffer): Likewise.
10774 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
10776         * process.c (send_process): Keep decoded string in a local
10777         variable and protect it from GC.  (Bug#3521)
10779 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
10781         * term.c (create_tty_output) [MSDOS]: #ifdef away.
10782         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
10784 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
10786         * xdisp.c (start_display, handle_face_prop)
10787         (move_it_vertically_backward, cursor_row_fully_visible_p)
10788         (redisplay_window, try_window_id, produce_image_glyph):
10789         Delete some #ifdef-ed out code chunks that are now obsolete.
10791         * xterm.c (x_update_window_begin, x_new_focus_frame)
10792         (x_scroll_bar_handle_click, handle_one_xevent)
10793         (handle_one_xevent, XTread_socket, x_focus_on_frame)
10794         (x_make_frame_visible, x_make_frame_invisible)
10795         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
10796         code chunks that are now obsolete.
10798 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
10800         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
10801         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
10802         for hours, when optimzation is enabled.
10803         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
10804         (xd_read_message): Make them static.
10806 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
10808         * term.c (turn_on_face): Allow simultaneously bold and dim
10809         terminal faces (Bug#3530).
10811 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
10813         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
10815         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
10816         truncation glyphs (Bug#3686).
10818 2009-06-27  Glenn Morris  <rgm@gnu.org>
10820         * m/pmax.h: Restore file, with only netbsd portions.
10822 2009-06-26  David Reitter  <david.reitter@gmail.com>
10824         * nsterm.m (keydown): Avoid infinite loop.
10826 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
10828         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
10829         the arg FORCE_SYMBOL.
10831 2009-06-25  Kenichi Handa  <handa@m17n.org>
10833         * fontset.c (fontset_find_font): When a usable rfont_def is found
10834         in a fallback font-group, make it the first element of the group.
10836 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
10838         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
10840 2009-06-24  Kenichi Handa  <handa@m17n.org>
10842         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
10843         set for C.
10844         (fontset_font): Record the availability of a font for C both in
10845         the realized fontsets of the current one and the default one.
10847 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
10849         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
10850         conditional, it is always defined on AIX.
10852 2009-06-23  Miles Bader  <miles@gnu.org>
10854         * window.c (Vrecenter_redisplay): New variable.
10855         (syms_of_window): Initialize it.
10856         (Qtty): New extern declaration.
10857         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
10859 2009-06-23  Jim Meyering  <meyering@redhat.com>
10861         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
10862         Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
10863         pointer dereferences are guaranteed to be valid.
10865 2009-06-23  Kenichi Handa  <handa@m17n.org>
10867         * emacs.c (main): Call init_font ().
10869         * font.h (Vfont_log): Extern it.
10870         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
10872         * font.c (font_sort_entities, font_list_entities)
10873         (font_matching_entity, font_open_entity)
10874         (font_close_object): Change font_add_log to FONT_ADD_LOG.
10875         (Vfont_log): Delete static.
10876         (font_log_env_checked): Delete this variable.
10877         (font_add_log): Don't check font_log_env_checked.
10878         (font_deferred_log): Check Vfont_log.
10879         (init_font): New function.
10881         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
10883         * w32font.c: Change font_add_log to FONT_ADD_LOG.
10885         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
10887         * xfont.c: Change font_add_log to FONT_ADD_LOG.
10889         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
10890         (face_for_char): Don't call font_deferred_log here.
10891         (font_for_char): Likewise.
10893 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
10895         * w32term.c (x_draw_glyph_string): Use the glyph string's width
10896         rather than its background_width for drawing the overline and
10897         underline (Bug#489).
10899         * xterm.c (x_draw_glyph_string): Use the glyph string's width
10900         rather than its background_width for drawing the overline and
10901         underline (Bug#489).
10902         (xg_default_icon_file): New variable.
10903         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
10904         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
10906         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
10907         (load_overlay_strings): Remove externs.
10908         (fast_find_position): Function deleted.
10909         (mouse_face_from_buffer_pos): New function, based on
10910         fast_find_position.  Correctly handle before-strings,
10911         display-strings, and after-strings (Bug#1220).
10912         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
10914 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
10916         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
10917         (move_it_in_display_line_to, move_it_in_display_line_to)
10918         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
10920 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
10922         * Branch for 23.1.
10924 2009-06-21  Jason Rumney  <jasonr@gnu.org>
10926         * w32term.c (keyboard_codepage): New static variable.
10927         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
10928         (w32_read_socket) [WM_CHAR]: Use it to decode character
10929         input (bug#3237).
10930         (w32_initialize): Initialize it.
10931         (codepage_for_locale): New function.
10933 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
10935         * process.c (status_message): Pass Faset index argument as a lisp
10936         object, so as to work with USE_LISP_UNION_TYPE.
10938 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10940         * coding.c (Ffind_coding_systems_region_internal):
10941         Cache checked characters.
10943 2009-06-18  Kenichi Handa  <handa@m17n.org>
10945         * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
10947 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
10949         * xdisp.c (redisplay_internal): Check that the frame is still
10950         live after redisplay of its windows.
10951         (redisplay_windows): Check that the window is still live.
10953 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
10955         * coding.c (detect_coding_utf_16): Fix previous change.
10957 2009-06-16  Kenichi Handa  <handa@m17n.org>
10959         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
10960         UTF-16 by checking the dispersion of Eth and Oth bytes.
10962 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
10964         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
10966 2009-06-15  Kenichi Handa  <handa@m17n.org>
10968         * process.c (status_message): Fix previous change.  Be sure to
10969         decode a localized string.
10971 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10973         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
10974         add comment explaining why.
10976 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
10978         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
10980 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
10982         * nsfont.m (ns_attribute_value): Remove.
10983         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
10984         (ns_has_attribute): Shrink the normal range.
10985         (ns_findfonts): Don't worry about requested spec in determining
10986         need for synthItal.
10987         (ns_get_covering_families): Retain scriptToFamilies.
10989 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
10991         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
10993 2009-06-11  Kenichi Handa  <handa@m17n.org>
10995         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10996         overhang for the static composition case.
10998 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11000         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
11001         overhang for the automatic composition case.
11003         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
11004         composition case.
11006 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
11008         * xdisp.c (get_next_display_element): When handling wrap-prefix
11009         and line-prefix, treat \n as a control character (bug#3502).
11011 2009-06-10  Kenichi Handa  <handa@m17n.org>
11013         * font.c (font_parse_family_registry): Fix for one-char foundry.
11014         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
11016 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
11018         * process.c (status_message): Fix handling of multibyte signal
11019         string (Bug#3499).
11021 2009-06-09  Jim Meyering  <meyering@redhat.com>
11023         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
11024         color name is missing.
11026 2009-06-09  Kenichi Handa  <handa@m17n.org>
11028         * charset.c (Fmap_charset_chars): In docstring, state clearly that
11029         FROM-CODE and TO-CODE are codepoints of CHARSET.
11031 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
11033         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
11035 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
11037         Changes to support :script/:lang/:otf in NS font driver.
11038         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
11039         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
11040         indicate not part of font driver interface, and change callers.
11041         (ns_get_family): Remove pointless null check.
11042         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
11043         ns_spec_to_descriptor, ns_descriptor_to_entity.
11044         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
11045         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
11046         (ns_spec_to_descriptor, ns_descriptor_to_entity)
11047         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
11048         (ns_get_req_script, ns_accumulate_script_ranges)
11049         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
11050         New functions.
11051         (nsfont_list, nsfont_match): Use ns_findfonts.
11052         (nsfont_open): Use font descriptor instead of traits.
11053         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
11054         (dump_glyphstring): Rename to ns_dump_glyphstring.
11056         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
11058         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
11060         * fontset.c (fontset_from_font): Remove NS-specific code.
11062 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
11064         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
11065         nonactive windows.
11067 2009-06-08  Felix Mueller  <felix@enqueue.eu>  (tiny change)
11069         * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
11071 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
11073         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
11075 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
11077         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
11078         account for the overflowing of newlines into the last glyph on the
11079         display line (Bug#3482).
11081 2009-06-05  David Reitter  <david.reitter@gmail.com>
11083         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
11084         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
11085         Fns_selection_exists_p, Fns_selection_owner_p.
11087 2009-06-03  Jason Rumney  <jasonr@gnu.org>
11089         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
11090         available.  (Bug#3379)
11092 2009-05-29  Kenichi Handa  <handa@m17n.org>
11094         * coding.c (get_translation_table):
11095         Check Venable_character_translation.
11097 2009-05-26  David Reitter  <david.reitter@gmail.com>
11099         * nsterm.m (ns_raise_frame): Only raise frame if visible.
11100         (x_make_frame_visible): Move frame to front rather than calling
11101         ns_raise_frame().
11102         (keyDown:): Do not swallow events that aren't re-sent if frame
11103         isn't key window.
11104         (drawRect:): Do not set visibility/iconified flags because
11105         drawRect may be called by NSView even if the frame is hidden.
11107         * nsfns.m (Fx_create_frame): Follow other ports in
11108         determining visibility; default to t.  Ensure async_visible is set.
11110 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
11112         * dired.c (Ffile_attributes): Doc fix.
11114 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
11116         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
11118 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
11120         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
11121         and xfont_scratch_props.
11122         (syms_of_xfont): Do it here instead.
11123         (xfont_find_ccl_program): Delete, unused.
11124         (xfont_open): Delete unused var `i'.
11126 2009-05-21  Kenichi Handa  <handa@m17n.org>
11128         * fontset.c (Qlatin): Don't make it static.
11130         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
11131         New functions.
11132         (xfont_scripts_cache, xfont_scratch_props): New variables.
11133         (Qlatin, Vscalable_fonts_allowed): Extern it.
11134         (xfont_list_pattern): Argument changed.  Callers changed.
11135         Check Vscalable_fonts_allowed.  Check the support of a script.
11136         (xfont_list): Don't reject a font spec with :script property.
11137         (xfont_has_char): Fix setting of encoding.
11138         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
11139         xfont_scratch_props.
11141 2009-05-19  Kenichi Handa  <handa@m17n.org>
11143         * font.c (font_sort_entities): Rename from font_sort_entites.
11144         Callers changed.
11146 2009-05-18  Kenichi Handa  <handa@m17n.org>
11148         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
11150 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11152         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
11153         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
11155 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11157         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
11158         (x_delete_terminal): Dissociate resource database from display and
11159         then call XrmDestroyDatabase before closing display.
11161 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
11163         * nsterm.m (ns_read_socket): Remove unused variable.
11164         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
11165         whether selected frame is viable before raising it (based on patch
11166         by David Reitter), and improve commentary.
11167         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
11169 2009-05-15  Kenichi Handa  <handa@m17n.org>
11171         * font.c (Ffont_spec): Check arguments.
11173 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
11175         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
11176         weight when testing attributes (Bug#3282).
11178 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11180         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
11181         what we expect to get in the next ConfigureNotify event.
11183         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
11184         before Xft one (Bug#1696).
11186 2009-05-07  David Reitter  <david.reitter@gmail.com>
11188         * nsfns.m (Fx_display_planes): Compute bitplanes using
11189         NSBitsPerPixelFromDepth (Bug#3207).
11191 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
11193         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
11195 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
11197         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
11199 2009-05-07  David Reitter  <david.reitter@gmail.com>
11201         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
11202         Respect mouse face background.
11204 2009-05-07  David Reitter  <david.reitter@gmail.com>
11206         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
11207         Mouse movement/highlight: bracket drawing operations
11208         in ns_update_begin and ns_update_end.
11210 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
11212         * nsfns.m (ns_get_screen): Rewrite.
11213         Don't presume selected-frame is of type `ns'.
11215         * font.c (font_update_drivers): Sanity fallback to avoid disabling
11216         all drivers.
11218         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
11220 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11222         * keyboard.h (add_user_signal): Fix typo in extern.
11224         * lisp.h (add_user_signal): Remove extern.
11226         * unexelf.c (unexec): Consider a section to precede the .bss section
11227         if its addresses overlap that of .bss.
11228         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
11229         instead of dumping process.
11231 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
11233         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
11235 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
11237         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
11239 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
11241         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
11242         any statements.
11244 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
11246         * process.c (read_process_output): Make sure the current buffer is
11247         always restored.
11249         * coding.c (record_conversion_result): Don't modify
11250         Vlast_code_conversion_error for successful result.
11251         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
11253 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
11255         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
11256         (load_charset_map): Remove unnecessary code.
11258 2009-04-30  David Reitter  <david.reitter@gmail.com>
11260         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
11261         through f24.
11263 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
11265         * xfaces.c (face_at_buffer_position): New arg base_face_id.
11267         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
11268         face_at_buffer_position.
11269         (face_before_or_after_it_pos, get_next_display_element)
11270         (note_mouse_highlight): Update face_at_buffer_position call.
11272         * term.c (term_mouse_highlight):
11273         * msdos.c (IT_note_mouse_highlight):
11274         * fontset.c (Finternal_char_font):
11275         * font.c (font_at, font_range): Update face_at_buffer_position call.
11277         * dispextern.h (face_at_buffer_position): Update prototype.
11279 2009-04-30  Kenichi Handa  <handa@m17n.org>
11281         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
11283 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
11285         * callproc.c (Fcall_process): Fix GC protection.  Make sure
11286         current buffer is always restored.
11288 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11290         * atimer.c (init_atimer): Also clear stopped_atimers.
11292         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
11294         * process.c (create_process): Clean up merger residues of
11295         2008-07-17 change.
11297 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
11299         * lread.c (Vread_circle): New variable.
11300         (read1): Disable recursive read if Vread_circle is nil.
11302 2009-04-29  Kenichi Handa  <handa@m17n.org>
11304         * fontset.h (set_default_ascii_font): Delete extern.
11306         * fontset.c (set_default_ascii_font): Delete this unused function.
11308         * frame.c (x_set_font): When ARG is a font-object, check if the
11309         font-object matches with the ASCII font-spec of the frame's
11310         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
11312 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
11314         * fns.c (Flocale_info): Protect vector from GC during decoding.
11316         * process.c (Fstart_process): Protect argv strings from GC during
11317         encoding.
11319 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
11321         * sysdep.c: Include <ctype.h>.
11323 2009-04-27  David Reitter  <david.reitter@gmail.com>
11325         * nsfont.m (nsfont_open): Remove unused variable shrink.
11326         Remove commented-out code.
11328 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
11330         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11332 2009-04-25  Jason Rumney  <jasonr@gnu.org>
11334         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
11336 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11338         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
11339         Swap bytes in short integer if fringe bitmap width > 8.
11341 2009-04-23  Kenichi Handa  <handa@m17n.org>
11343         * xfaces.c (Fx_list_fonts): If a font size is specified in
11344         PATTERN, set it in returned scalable fonts.
11346 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
11348         * keyboard.c (Fset_input_meta_mode): Doc fix.
11350         * dispnew.c (Fsend_string_to_terminal): Doc fix.
11352         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
11354         * coding.c (Fterminal_coding_system): Doc fix.
11356         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
11357         (Fx_display_pixel_height, Fx_display_planes)
11358         (Fx_display_color_cells, Fx_server_max_request_size)
11359         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11360         (Fx_display_mm_height, Fx_display_mm_width)
11361         (Fx_display_backing_store, Fx_display_visual_class)
11362         (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
11363         Doc fixes, replacing "terminal id" with "terminal object".
11364         (check_x_display_info): Handle terminal objects instead of
11365         terminal ids.
11367         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
11368         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
11369         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
11370         Doc fixes, replacing "terminal id" with "terminal object".
11372 2009-04-21  Kenichi Handa  <handa@m17n.org>
11374         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
11375         (font_score): Check AVGWIDTH too.
11377         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
11378         worst case.
11379         (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
11380         (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
11382 2009-04-19  Jason Rumney  <jasonr@gnu.org>
11384         The following changes fix Bug#3005 for wide glyphs on each platform,
11385         without reintroducing Bug#1258 for stretch glyphs.
11387         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
11388         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
11389         get_phys_cursor_geometry.
11391         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
11392         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
11393         using get_phys_cursor_geometry.
11395         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
11396         correctly calculated.
11398 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
11400         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
11401         Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
11402         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
11403         is deprecated.
11405 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
11407         * font.c (font_put_frame_data): Use xfree instead of free.
11409 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
11411         * w32font.c (Qja, Qko): Remove declarations.
11412         (syms_of_w32font): Don't DEFSYM them.
11414 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
11416         * font.c (Qja, Qko): Move definitions here from ftfont.c.
11418         * font.h (Qja, Qko): Extern them.
11420         * ftfont.c (Qja, Qko): Remove declarations.
11422         * xfont.c (Qja, Qko): Remove declarations.
11424 2009-04-17  Kenichi Handa  <handa@m17n.org>
11426         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
11427         string from a vector to handle Latin-1 characters correctly.
11429         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
11430         entity even if the cache hits.
11432 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
11434         * search.c (boyer_moore): Use zero as marker value for a possible
11435         match instead of depending on overflow behavior.  (Bug#2844)
11437         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
11438         * lisp.h: Adjust prototypes.
11440 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
11442         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
11443         change (Bug#3003).
11445 2009-04-16  Kenichi Handa  <handa@m17n.org>
11447         * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
11449         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
11450         adstyle.
11452         * ftfont.c (Qja, Qko): Don't make them static.
11453         (enum ftfont_cache_for): New enum.
11454         (fc_charset_table): Undo the previous change.
11455         (ftfont_get_latin1_charset): Delete it.
11456         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
11457         Set FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
11458         non-scarable font, try to get AVERAGE_WIDTH.
11459         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
11460         Change ft_face_cache from a list of a hash-table.  Don't check
11461         `ja' and `ko' adstyle here.
11462         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
11463         FTFONT_CACHE_FOR_CHARET.
11464         (ftfont_get_charset): Undo the previous change.
11465         (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
11466         (ftfont_close): Likewise.
11467         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
11469         * font.c (font_sort_entites): Change the meaning of the arg
11470         BEST-ONLY.  Don't optimize for VEC of lenght 1.
11471         (font_select_entity): Just return the value of font_sort_entites.
11473         * xfaces.c (merge_face_vectors): Reflect font properties in
11474         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
11475         font_clear_prop if a face attribute doesn't change.
11477         * charset.h (charset_ksc5601): Extern it.
11479         * charset.c (charset_ksc5601): New variable.
11480         (Fdefine_charset_internal): Set charset_ksc5601.
11481         (init_charset_once): Initialize charset_ksc5601 to -1.
11483 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
11485         * fileio.c (history_delete_duplicates): Remove unused declaration.
11487         * callint.c (history_delete_duplicates): New declaration.
11488         (Fcall_interactively): Remove command history duplicates when
11489         history_delete_duplicates is true.
11491 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
11493         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
11495 2009-04-14  Kenichi Handa  <handa@m17n.org>
11497         * font.c (Ffont_info): Fix docstring.  Fix the second element of
11498         the returned value (bug#2949).
11500 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
11502         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
11504 2009-04-14  Kenichi Handa  <handa@m17n.org>
11506         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
11507         encoding charset is ascii_compatible.
11509         * charset.c (Fdefine_charset_internal): Make charset
11510         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
11511         code_offset is 0, and covers all ASCII characters.
11513 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11515         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
11516         (ns_string_to_pasteboard_internal):
11517         * nsmenu.m (process_dialog):
11518         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
11519         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
11520         * lisp.h (Fx_load_color_file): Declare.
11522 2009-04-13  Kenichi Handa  <handa@m17n.org>
11524         * font.c (font_delete_unmatched): Preserve the order of list elements.
11525         (font_select_entity): Suppress the code to optimize for the same
11526         kind of fonts.
11527         (font_load_for_lface): Get a font that supports at least ASCII
11528         characters.
11530         * ftfont.c (Qja, Qko): New variables.
11531         (fc_charset_table): Delete uniquifier data for iso8859-1.
11532         (ftfont_get_latin1_charset): New function.
11533         (get_adstyle_property): New function.
11534         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
11535         bitmap fonts.
11536         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
11537         Delete iso-8859-1 range from the charset of fonts whose adstyle is
11538         `ko' or `ja'.
11539         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
11540         (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
11541         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
11542         property.
11543         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
11544         (syms_of_ftfont): DEFSYM Qja and Qko.
11546 2009-04-09  Kenichi Handa  <handa@m17n.org>
11548         * charset.c (map_charset_chars): For a charset of `superset'
11549         method, fix calculation of code range.
11551         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
11552         from the list of extra properties.
11553         (font_clear_prop): Be sure to delete `:name' font property.
11555 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11557         * dispnew.c (redraw_overlapping_rows): Fix detection of
11558         overlapping for topmost and bottommost rows.
11560         * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
11562 2009-04-06  Jason Rumney  <jasonr@gnu.org>
11564         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
11566 2009-04-06  Kenichi Handa  <handa@m17n.org>
11568         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
11570         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
11572 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11574         * ftfont.c (ftfont_open): Fix checking of the return value of
11575         FT_Load_Char.  Fix setting font->underline_thickness.
11577 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
11579         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
11580         (Fterminal_parameters, Fterminal_parameter)
11581         (Fset_terminal_parameter): In doc string, refer to terminal
11582         objects rather than terminal ids.
11584 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
11586         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
11587         ret_lim_data.  (Bug#2867)
11589 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
11591         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
11592         so they don't get wider than the window, matching 2006-01-23
11593         change to the partner function in xdisp.c (Bug#2800).
11595 2009-04-03  Kenichi Handa  <handa@m17n.org>
11597         * print.c (print_object): Make each lowest sub_char_table start a
11598         new line (Bug#2866).
11600 2009-04-02  Kenichi Handa  <handa@m17n.org>
11602         * fontset.c (fontset_font): Record no-font when a fontset
11603         explicitly tells not to try another font-specs.
11605 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
11607         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
11609 2009-03-30  Kenichi Handa  <handa@m17n.org>
11611         * fontset.c (fontset_from_font): Specify only registry in a
11612         font-spec for all characters supported by that registry.
11614         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
11615         even if HAVE_M17N_FLT is not defined.
11617 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
11619         * ftfont.c: Conditionalize prototyping and use of
11620         ftfont_variation_glyphs.
11622 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
11624         * frame.c (delete_frame): Work around compiler bug.
11626         * editfns.c (general_insert_function): Adjust to insdel.c changes.
11627         * insdel.c (prepare_to_modify_buffer, signal_before_change):
11628         Some more EMACS_INT.
11629         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
11631         * xdisp.c (dump_glyph): Fix typo.
11633         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
11634         (adjust_markers_gap_motion, adjust_markers_for_delete)
11635         (adjust_markers_for_insert, adjust_point)
11636         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
11637         (make_gap, copy_text, count_size_as_multibyte, insert)
11638         (insert_and_inherit, insert_before_markers)
11639         (insert_before_markers_and_inherit, insert_1)
11640         (count_combining_before, count_combining_after, insert_1_both)
11641         (insert_from_string, insert_from_string_before_markers)
11642         (insert_from_string_1, insert_from_gap, insert_from_buffer)
11643         (insert_from_buffer_1, adjust_after_replace)
11644         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
11645         (replace_range_2, del_range, del_range_1, del_range_byte)
11646         (del_range_both, del_range_2, modify_region)
11647         (prepare_to_modify_buffer, signal_before_change)
11648         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
11649         for buffer positions and sizes.
11650         * lisp.h: Adjust prototypes accordingly.
11652         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
11653         (non_regular_inserted, non_regular_nbytes, read_non_regular)
11654         (Finsert_file_contents): Use EMACS_INT for buffer positions.
11656         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
11658 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
11660         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
11661         lines and columns so we keep the same pixel height and width.
11663         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
11664         the property _NET_WM_STATE has changed.
11665         (x_handle_net_wm_state): New function to update frame parameter
11666         fullscreen.
11667         (x_term_init): Initialize atoms for _NET_WM_STATE.
11669         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
11671 2009-03-27  Kevin Ryde  <user42@zip.com.au>
11673         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
11674         Gpm_GetEvent as an error that justifies closing the filedescriptor.
11675         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
11676         (Fgpm_mouse_stop): Pass that new parameter.
11677         * termhooks.h (close_gpm): Adjust prototype.
11679 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
11681         * lisp.h (Fx_focus_frame): Declare.
11683         * callint.c (Fcall_interactively): For '^' just delegate the work to
11684         handle-shift-selection.
11685         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
11687 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
11689         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
11691         * data.c (Qinteractive_form): New variable.
11692         (Finteractive_form): Use it.
11694         * eval.c (Fcommandp): Use Qinteractive_form.
11696 2009-03-24  Jason Rumney  <jasonr@gnu.org>
11698         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
11699         Calculate total size precisely.  Decode environment variables
11700         before substituting.  (Bug#38)
11702 2009-03-24  Kenichi Handa  <handa@m17n.org>
11704         * font.c (find_font_encoding): Return Qnil for unsupported
11705         encoding (Bug#2722).
11707 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
11709         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
11710         that gdpy is set.
11712 2009-03-22  Alan Mackenzie  <acm@muc.de>
11714         * callint.c (Finteractive): Clarify the doc string - even
11715         promptless elements need \n separators.
11717 2009-03-22  Jason Rumney  <jasonr@gnu.org>
11719         * w32term.c (syms_of_w32term): Doc fix for
11720         x-use-underline-position-properties.
11722 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
11724         * w32.c (getpwuid): Change argument type to unsigned.
11725         (struct w32_id): Change type of `rid' member to unsigned.
11726         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
11727         argument ID to unsigned.  All callers changed.
11728         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
11730 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
11732         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
11733         negative, produce a float value.
11735         * dired.c (make_uid, make_gid): New functions.
11736         (Ffile_attributes): Use them to avoid negative UID and GID.
11738 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
11740         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
11741         (syms_of_keyboard) <command-hook-internal, input-method-function>:
11742         Fix typos in docstrings.
11744 2009-03-19  Kenichi Handa  <handa@m17n.org>
11746         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
11747         changed, use font_load_for_lface to get a new font object.
11748         Call free_realized_fontset after handling ASCII font change.
11750         * frame.c (x_set_font): Handle the case that ARG is a cons.
11752 2009-03-19  Glenn Morris  <rgm@gnu.org>
11754         * fileio.c (Fsubstitute_in_file_name): Doc fix.
11756 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
11758         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
11760 2009-03-19  Kenichi Handa  <handa@m17n.org>
11762         * charset.c (load_charset_map_from_file): When a mapfile can't be
11763         loaded, signal an error.
11765 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
11767         * dired.c (Ffile_attributes): Make sure UID and GID are always
11768         positive, even if the value is too large for a positive EMACS_INT.
11769         Doc fix.
11771         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
11773 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11775         * xmenu.c (xdialog_show): Move Fredisplay call ...
11776         (Fx_popup_dialog): ... here.
11778 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
11780         * dired.c (file_name_completion): Disable the first optimization just
11781         installed, since it is not implemented correctly.
11783 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
11785         * dired.c (file_name_completion): Check completion-ignored-extensions
11786         only if the entry can affect bestmatch.
11787         Stop the search early, as Ftry_completion already does.
11789 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
11791         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
11793 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
11795         * keyboard.c (parse_menu_item): Don't display remappings as menu
11796         equivalent bindings (Bug#788).
11798 2009-03-15  Jason Rumney  <jasonr@gnu.org>
11800         * w32term.h (WM_EMACS_PAINT): New message.
11801         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
11802         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
11803         before passing to lisp thread.  (Bug#950)
11805 2009-03-14  David Reitter  <david.reitter@gmail.com>
11807         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
11808         variable as it was never reset.
11809         (ns_term_init): Remove initialization of Lisp-settable defaults
11810         and ns_expand_space.
11811         (-setPanelFromDefaultValues): Remove ns_expand_space.
11812         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
11813         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
11814         i.e. no additional spacing, similar to Carbon port.
11816         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
11817         * nsfns.m (ns-popup-prefs-panel): Remove.
11819 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
11821         * sound.c (alsa_configure): Remove call to deprecated
11822         snd_pcm_sw_params_set_xfer_align.
11824 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
11826         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
11827         after clicking in a detached tool bar.
11828         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
11830 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11832         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
11833         int/Lisp_Object mixup).
11835 2009-03-13  Kenichi Handa  <handa@m17n.org>
11837         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
11838         Handle NAME nil and t correctly.  Callers changed.
11839         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
11840         (set_fontset_font): Change ARG to a vector.  Handle range_list in
11841         ARG correctly.
11842         (Fset_fontset_font): Fix the case that TARGET is both a script
11843         name and charset name.  Adjust the arg to set_fontset_font for
11844         the above change.
11845         (fontset_from_font): Fix previous change.
11846         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
11847         entry.  If FONTSET is the default fontset, don't set the extra
11848         slot of the returning char-table.
11850 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
11852         * nsfns.m (Fx_close_connection): Doc fix.
11853         (Fns_do_applescript): Reflow docstring.
11854         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
11855         (Fx_display_pixel_width, Fx_display_pixel_height)
11856         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
11857         Fix typos in docstrings.
11858         (Fns_set_alpha): Fix typos in error messages.
11860 2009-03-12  David Reitter  <david.reitter@gmail.com>
11862         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
11863         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
11864         were used for such events.
11866         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
11867         (toggleToolbar, performDragOperation, runHelp): Use it.
11869         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
11870         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
11872 2009-03-11  Kenichi Handa  <handa@m17n.org>
11874         * font.h (font_open_by_spec): Extern it.
11876         * font.c (font_open_by_spec): New function.
11877         (font_open_by_name): Use font_open_by_spec.
11879         * frame.c (x_set_font): When ARG is a font-object, don't alter the
11880         fontset of the frame.
11882         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
11883         modify the default font of frames that use this fontset.
11884         (num_auto_fontsets): New variable.
11885         (fontset_from_font): Use num_auto_fontsets to decide a fontset
11886         name.  Be sure to set FONTSET_ASCII to the correct font name.
11887         (update_auto_fontset_alist): New function.
11889 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
11891         * makefile.w32-in: Update dependencies.
11893 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
11895         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
11897 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11899         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
11901 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
11903         * lread.c (Feval_buffer): Doc fix.
11905 2009-03-09  Kenichi Handa  <handa@m17n.org>
11907         * charset.c (Qfile_name_handler_alist): Extern it.
11908         (load_charset_map_from_file): Temporarily bind
11909         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
11911 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
11913         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
11914         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
11916 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
11918         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
11919         (x_set_window_size): Change back to calculated method of setting
11920         toolbar height under Cocoa.  (Bug#2546)
11921         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
11922         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
11924         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
11926         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
11927         accelerator in parens under GNUstep.
11929 2009-03-06  Kenichi Handa  <handa@m17n.org>
11931         These changes are to detect incorrect composition sequence without
11932         looking ahead the source.  (Bug#2370)
11934         * coding.h: Include "composite.h".
11935         (enum compisition_state): New enum.
11936         (struct compisition_status): New struct.
11937         (struct iso_2022_spec): New member cmp_status.
11938         (struct emacs_mule_spec): New struct.
11939         (struct coding_system): New members ctext_extended_segment_len and
11940         embedded_utf_8.  Change the union member
11941         spec.emacs_mule_full_support to spec.emacs_mule.
11943         * coding.c (CODING_ISO_CMP_STATUS): New macro.
11944         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
11945         (MAX_ANNOTATION_LENGTH): Define to 5.
11946         (ADD_COMPOSITION_DATA): New arg nbytes.
11947         (emacs_mule_char): New arg cmp_status.
11948         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
11949         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
11950         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
11951         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
11952         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
11953         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
11954         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
11955         (EMACS_MULE_COMPOSITION_END): New macro.
11956         (emacs_mule_finish_composition): New function.
11957         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
11958         (decode_coding_emacs_mule): Avoid long looking ahead while
11959         handling composition.
11960         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
11961         (ENCODE_COMPOSITION_RULE): New macro.
11962         (finish_composition): New function.
11963         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
11964         (DECODE_COMPOSITION_START): New implementation.
11965         (DECODE_COMPOSITION_END): Likewise.
11966         (STORE_COMPOSITION_RULE): New macro.
11967         (decode_coding_iso_2022): Avoid long looking ahead while handling
11968         composition, CTEXT extended segment, and embedded UTF-8.
11969         (setup_coding_system): For a coding of type iso-2022, reset
11970         CODING_ISO_EXTSEGMENT_LEN (coding) and
11971         CODING_ISO_EMBEDDED_UTF_8 (coding).
11972         (get_translation): Delete arguments last_block, from_nchars,
11973         to_nchars.  Callers changed.
11974         (produce_chars): Don't modify charbuf.  Adjusted for the change of
11975         get_translation.
11976         (produce_composition): Adjust for the new annotation sequence.
11977         (handle_composition_annotation): Likewise.
11978         (consume_chars): Adjust for the change of get_translation.
11980 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
11982         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
11984 2009-03-05  Kenichi Handa  <handa@m17n.org>
11986         * font.c (font_select_entity): New function.
11987         (font_find_for_lface): Use font_select_entity to select a font.
11989         * fontset.c (fontset_find_font): If a font found without
11990         restricting to the characters C doesn't support C, try to find a
11991         font with C restriction.
11993 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
11995         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
11997 2009-03-04  Jason Rumney  <jasonr@gnu.org>
11999         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
12000         characters that have already been read.  (Bug#2569)
12002         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
12003         Log an error message if check_image_size failed.
12004         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
12005         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
12007 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
12009         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
12010         when decoding process output.
12012 2009-03-01  Richard M Stallman  <rms@gnu.org>
12014         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
12016         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
12018 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
12020         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
12021         (decode_coding_emacs_mule, decode_coding_iso_2022)
12022         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12023         (decode_coding_raw_text, decode_coding_charset)
12024         (setup_coding_system, decode_eol, decode_coding, consume_chars):
12025         Honor inhibit-eol-conversion.  (Bug #2186)
12027 2009-02-28  Jason Rumney  <jasonr@gnu.org>
12029         * coding.c (detect_coding_charset): If not checking latin extra,
12030         fail on characters between 0x80 and 0xA0.  (Bug#2354)
12032 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
12034         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
12035         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
12037 2009-02-27  Glenn Morris  <rgm@gnu.org>
12039         * callint.c (Finteractive): Doc fix.
12041 2009-02-27  Kenichi Handa  <handa@m17n.org>
12043         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
12045 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
12047         * font.c (font_style_to_value): Set value for unknown symbols to
12048         100 instead of 255.
12049         (weight_table, slant_table, width_table): Treat "unspecified" as
12050         the default value.
12052 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
12054         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
12056 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
12058         * lread.c (Fload): Stop checking Vloads_in_progress and signal
12059         error as soon as a recursive load is detected.
12061 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
12063         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
12064         before caching.
12066 2009-02-24  Kenichi Handa  <handa@m17n.org>
12068         * fontset.c (fontset_find_font): Fix the condition for checking
12069         unavailable font.
12071 2009-02-24  Glenn Morris  <rgm@gnu.org>
12073         * xfaces.c (Finternal_set_font_selection_order): Remove leading
12074         whitespace that confuses documentation.
12076 2009-02-23  Miles Bader  <miles@gnu.org>
12078         * process.c (Flist_system_processes, Fprocess_attributes)
12079         (syms_of_process): Rename `system-process-attributes' to
12080         `process-attributes'.
12082 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
12084         * coding.h (struct coding_system): Make safe_charsets a pointer to
12085         unsigned char.
12086         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
12087         being 255.
12088         (SAFE_CHARSET_P): Likewise.
12089         (setup_iso_safe_charsets): Properly setup safe_charsets.
12090         (Fdefine_coding_system_internal): Likewise.
12091         (setup_coding_system): Likewise.  Remove unneeded casts.
12092         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
12093         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
12094         Remove unneeded casts.
12096         * insdel.c (del_range_2): Don't modify gap contents when called
12097         from decode_coding_object.  (Bug#1809)
12099 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
12101         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
12102         Qfont_object.
12103         (Ftype_of): Recognize font objects.
12105         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
12107         * font.c (Qfont_spec, Qfont_entity, Qfont_object):
12108         Definitions moved to data.c.
12110 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
12112         * nsterm.m (x_make_frame_invisible): Unset async_visible,
12113         async_iconified.  Based on a patch by Christian Lynbech
12114         <christian.lynbech@tieto.com>.
12115         (EmacsView-windowDidMiniaturize:): Unset async_visible.
12117 2009-02-20  Glenn Morris  <rgm@gnu.org>
12119         * syntax.c (Fskip_chars_forward): Fix doc typo.
12121 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
12123         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
12125 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
12127         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
12129 2009-02-19  Kenichi Handa  <handa@m17n.org>
12131         * coding.c (detect_coding): Preserve coding->mode.
12132         Don't overflow coding->carryover.  (Bug#2370)
12134 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
12136         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
12138 2009-02-18  Kenichi Handa  <handa@m17n.org>
12140         * font.c (font_check_otf_features): Fix handling of `nil' element.
12141         (Ffont_spec): Describe :lang and :otf in the docstring.
12143 2009-02-16  Andreas Schwab  <schwab@suse.de>
12145         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
12146         string.
12148 2009-02-16  Kenichi Handa  <handa@m17n.org>
12150         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
12151         (Bug#1723)
12153 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
12155         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
12157         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
12158         (handle_line_prefix): Suppress wrapping of wrap prefixes.
12160 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
12162         * msdos.c (MAX_SCREEN_BUF): New macro.
12163         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
12164         Encode the entire run of glyphs sharing the same face, instead of
12165         doing that one glyph at a time (fixes a bug with displaying
12166         double-size characters).
12168 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
12170         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
12172         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
12173         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
12174         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
12176         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
12177         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
12179 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
12181         * keyboard.c (adjust_point_for_property): Allow stopping between two
12182         invisible areas.
12184 2009-02-12  Jason Rumney  <jasonr@gnu.org>
12186         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
12187         (add_font_entity_to_list): Call check_face_name even when family
12188         is unspecified.
12190         * w32term.c (x_display_pixel_height, x_display_pixel_width):
12191         Release DC when finished.  Use NULL window to refer to desktop.
12192         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
12194         * w32font.c (add_font_entity_to_list): Fix check for substituted
12195         raster fonts.  (Bug#2219)
12197 2009-02-12  Kenichi Handa  <handa@m17n.org>
12199         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
12200         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
12201         (autocmp_chars): Use fast_looking_at.  Don't compose more
12202         characters than MAX_COMPOSITION_COMPONENTS.
12203         (find_automatic_composition): While looking forward and backward,
12204         check static composition.  Fix where to stop looking forward.
12205         (composition_adjust_point): Fix checking of static composition.
12206         (Fcomposition_get_gstring): Pay attention to
12207         MAX_COMPOSITION_COMPONENTS.
12209         * lisp.h (fast_looking_at): Extern it.
12211         * search.c (fast_looking_at): New function.
12213         * term.c (encode_terminal_code): Adjust for the change of
12214         <struct glyph>.u.cmp.to.
12215         (append_composite_glyph): Likewise.
12217         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
12218         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
12219         composition.
12220         (append_composite_glyph): Adjust for the change of
12221         <strcut glyph>.u.cmp.to.
12223 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
12225         * casetab.c (init_casetab_once):
12226         * coding.c (ALLOC_CONVERSION_WORK_AREA):
12227         * font.c (font_update_lface):
12228         * fontset.c (Fnew_fontset):
12229         * ftfont.c (ftfont_drive_otf):
12230         * xfont.c (xfont_open):
12231         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
12233 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
12235         * fileio.c (Fwrite_region): !NILP -> CONSP.
12237 2009-02-10  Andreas Schwab  <schwab@suse.de>
12239         * process.c (send_process): Properly relocate pointer into data
12240         when using encoded data.  (Bug#2272)
12242 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
12244         * coding.c (detect_coding_charset): Fix previous change.
12246 2009-02-08  Jason Rumney  <jasonr@gnu.org>
12248         * w32fns.c (w32_hide_hourglass): Handle case where frame
12249         disappeared while hourglass was displayed.  (Bug #2193)
12251 2009-02-07  Andreas Schwab  <schwab@suse.de>
12253         * unexelf.c (unexec): Fix error message.
12255 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
12257         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
12258         when modal window is active.  (Bug #2152)
12259         (applicationShouldTerminate:): Remove now-unneeded while loop
12260         around NSRunAlertPanel.
12262         * nsmenu.m (popupSession): New file-global variable.
12263         (pop_down_menu): End the popupSession before closing dialog.
12264         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
12265         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
12266         don't query NSApp for events (just sleep instead).
12268 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
12270         * coding.c (syms_of_coding) <translation-table-for-input>:
12271         Modify doc string to discourage use for character code unification.
12273 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12275         * atimer.c (run_timers): Update pending_atimers.
12277 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
12279         * image.c (svg_load_image): Fix last change.
12281         * xfns.c (Fx_create_frame): Signal an error if no font is
12282         found (Bug#2147).
12284 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
12286         * character.c (syms_of_character) <script-representative-chars>:
12287         Fix typo in docstring.
12289 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
12291         * nsmenu.m (pop_down_menu): New function.
12292         (ns_popup_dialog): Call it on unwind.
12293         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
12294         call timer_check() (Bug#2154).
12295         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
12296         handling_signal is set.
12297         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
12299         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
12301         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
12303         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
12305         * keyboard.c (poll_for_input_1, handle_async_input):
12306         Set handling_signal under HAVE_NS.
12308 2009-02-04  Glenn Morris  <rgm@gnu.org>
12310         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
12312 2009-02-04  Kenichi Handa  <handa@m17n.org>
12314         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
12316         * charset.c (Fchar_charset): New optional arg restriction.
12318         * coding.h (coding_system_charset_list): Extern it.
12320         * coding.c (coding_system_charset_list): New function.
12322         * composite.c: Include coding.h and termhooks.h.
12323         (composition_gstring_p): Fix for the terminal case.
12324         (composition_gstring_width): Likewise.
12325         (fill_gstring_body): Likewise.
12326         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
12327         the frame.
12328         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
12329         is within a composition.
12330         (Fcomposition_get_gstring): Fix the terminal case.
12332         * term.c (encode_terminal_code): Fix handling of composition.
12333         (produce_composite_glyph): For static composition, get pixel_width
12334         from struct composition.
12336 2009-02-02  Andreas Schwab  <schwab@suse.de>
12338         * unexelf.c (unexec): Handle unaligned bss offset.
12340 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
12342         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
12343         XT,w32read_socket changes to ns_read_socket.
12345         * keyboard.c (handle_interrupt): Don't call
12346         quit_throw_to_read_char() under NS.
12348         * blockinput.h: Remove NS-specific code.
12350 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
12352         * dispnew.c (window_change_signal): Don't try to get the size of a
12353         suspended tty frame.
12354         * term.c (Fresume_tty): Resize if the size has changed while the
12355         tty was suspended.
12357         * alloc.c (mark_stack): Properly conditionalize previous change.
12359 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
12361         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
12362         * w32term.c (w32_read_socket) [SYNC_INPUT]:
12363         Remove; this code is not used on Windows.
12365 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
12367         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
12368         EOLs that also has stray ^M characters.
12370 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
12372         * atimer.c (run_timers, alarm_signal_handler):
12373         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
12374         * w32inevt.c (w32_console_read_socket):
12375         * w32term.c (w32_read_socket):
12376         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
12378 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
12380         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
12381         Initialize it as a relative filename pattern.
12382         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
12383         (Fcall_process_region): Simplify temp file creation using
12384         temporary-file-directory.
12386 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
12388         * msdos.c: Rename pending_signals to msdos_pending_signals.
12389         (sig_suspender, sigprocmask): Adjust.
12391 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
12393         * keyboard.c (pending_signals): New var.
12394         (poll_for_input, input_available_signal, init_keyboard): Set it.
12395         (process_pending_signals): New function.
12397         * lisp.h (QUIT): Check pending_signals instead of
12398         interrupt_input_pending.  Use process_pending_signals.
12400         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
12402         * process.c (wait_reading_process_output): Use process_pending_signals.
12404         * sysdep.c (emacs_write): Use process_pending_signals.
12406         * xterm.c (XTread_socket): Update pending_signals.
12408         * w32term.c (w32_read_socket): Update pending_signals.
12410         * w32inevt.c (w32_console_read_socket): Update pending_signals.
12412 2009-01-29  Kenichi Handa  <handa@m17n.org>
12414         * xftfont.c (xftfont_has_char): New function.
12415         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
12417 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
12419         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
12420         under GNUstep.
12421         (ns_query_color): New declaration.
12423         * nsterm.m (ns_confirm_quit): New variable.
12424         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
12425         (EmacsApp-applicationShouldTerminate:): Use it.
12426         (EmacsPrefsController): Let user set it.
12427         (ns_query_color): New function.
12428         (ns_defined_color): Use it.
12429         (ns_initialize): Drop.
12430         (ns_term_init): Add two lines from ns_initialize(), and set
12431         input_interrupt_mode to nil.
12433         * image.c (svg_load_image): Don't right-shift background RGB when
12434         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
12436 2009-01-28  Kenichi Handa  <handa@m17n.org>
12438         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
12439         (fontset_get_font_group): Remember that no font-group is specified
12440         for C.
12442 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
12444         * fns.c (concat): Check for string overflow (bug#1787).
12446         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
12447         Quadruple undo limits (bug#1501).
12449 2009-01-27  Kenichi Handa  <handa@m17n.org>
12451         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
12452         directly use GT_Get_Char_index.
12454         * xftfont.c (struct xftfont_info): New member `index'.
12456         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
12457         (Ffontset_font): Adjust for the change of fontset entry.
12459 2009-01-26  Kenichi Handa  <handa@m17n.org>
12461         * fontset.c (fontset_find_font): Fix handling of non-cons return
12462         value of fontset_get_font_group.
12463         (fontset_font): Revert last change.
12465 2009-01-26  Jason Rumney  <jasonr@gnu.org>
12467         * w32font.c (w32font_list_internal): Return quickly if registry is
12468         unknown.  Simplify final return.
12469         (add_font_entity_to_list): Break complex logic down into more
12470         manageable chunks.  Move unknown registry check to
12471         w32font_list_internal.
12473 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
12475         Changes to remove Feval calls from GUI under NS.
12477         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
12478         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
12479         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
12481         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
12482         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
12483         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
12484         instead of NON_ASCII_KEYSTROKE_EVENT.
12485         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
12486         (EmacsApp-applicationShouldTerminate:): Query user.
12487         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
12488         instead of Feval.
12490         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
12492         * keyboard.c (kbd_buffer_get_event): Check for it.
12493         (keys_of_keyboard): Define lispy keys for
12494         ns-put/unput-working-text.
12496         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
12497         versions.
12498         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
12500 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
12502         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
12503         setting current_buffer directly.  (Bug#2044)
12505 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
12507         * fontset.c (fontset_font): If we know there is no font, don't do
12508         any work.  (Bug#1952, bug#1990).
12510         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
12512 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
12514         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
12515         (ns_no_defaults): New declaration.
12516         (main): Use it.
12518         * nsterm.h (ns_no_defaults): New declaration.
12520         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
12522         * nsterm.m (ns_no_defaults): New variable.
12523         (ns_initialize): Don't read defaults when ns_no_defaults.
12524         (EmacsView-readSelectionFromPasteboard:)
12525         (writeSelectionToPasteboard:types:): New stubbed-out methods for
12526         NSServicesRequests protocol.  (Bug#1435)
12527         (ns_dumpglyphs_stretch): New function.
12528         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
12529         of 2008-11-15 to other terms.  (Bug#615)
12531         * nsimage.m (setPixmapData:): Set to ignore image DPI.
12533 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
12535         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
12536         call for Sparc64.
12538 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
12540         * nsfns.m:
12541         * nsgui.h:
12542         * nsmenu.m:
12543         * nsselect.m:
12544         * nsterm.h:
12545         * nsterm.m: Remove '23' comments that indicated code added during
12546         update from emacs-20 -> emacs-23.
12548 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
12550         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
12551         ns_alternate_modifier.  (Bug#1217)
12553         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
12554         Display all shortcuts, including those w/o super modifier.
12556         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
12558 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
12560         * fileio.c (Vwrite_region_post_annotation_function)
12561         (Vwrite_region_annotation_buffers): New vars.
12562         (build_annotations_unwind): Just reset
12563         Vwrite_region_annotation_buffers.
12564         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
12565         Call write-region-post-annotation-function.
12566         (build_annotations): Add to Vwrite_region_annotation_buffers if
12567         buffer changes.
12569 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
12571         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
12572         Tiger.
12573         * nsfns.m (ns_do_applescript):
12574         Conditionalize typeUTF16ExternalRepresentation on Tiger.
12576 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
12578         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
12580 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
12582         * nsmenu.m (NSMENUPROFILE): Change #if style.
12584         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
12586         * nsterm.m (x_set_frame_alpha): Add prototype.
12587         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
12588         handle Ctrl-tab.  (Bug#1841)
12589         (ns_get_color): Use unsigned long long for scanned hex string value.
12590         (ns_term_shutdown): Abort on non SIGTERM signals.
12591         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
12592         (EmacsPrefsController-setPanelFromDefaultValues): New function.
12593         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
12594         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
12595         (ns_defined_color): Fix settings of the XColor variable fields:
12596         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
12598         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
12599         DPI.  (Bug#1316)
12600         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
12601         values in onTiger section.
12603 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
12605         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
12606         Check return value of font_spec_from_name.
12607         (Fx_list_fonts): Doc fix.  (Bug#1951)
12609         * font.c (font_spec_from_name): Return Qnil if font name could not
12610         be parsed.
12611         (font_parse_name): Treat a `?' character as part of an XLFD.
12613         * fns.c (Fsubstring): Doc fix.
12615 2009-01-19  Kenichi Handa  <handa@m17n.org>
12617         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
12618         (ftfont_list): Likewise.
12620 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
12622         * dbusbind.c (Fdbus_register_signal):
12623         * process.c (conv_sockaddr_to_lisp):
12624         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
12626         * callproc.c (Fgetenv_internal): Doc fix.
12628 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
12630         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
12631         it is not even used.
12633 2009-01-16  Glenn Morris  <rgm@gnu.org>
12635         * font.c (Ffont_variation_glyphs): Silence compiler.
12637 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
12639         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
12640         Reported by David Robinow <drobinow@gmail.com>.
12642 2009-01-15  Kenichi Handa  <handa@m17n.org>
12644         * coding.c (detect_coding_system): Fix handling of null_byte_found.
12646 2009-01-14  Jason Rumney  <jasonr@gnu.org>
12648         * frame.c (x_set_font): Always store a font to the font parameter,
12649         never a fontset.  (Bug#1562)
12651 2009-01-14  Kenichi Handa  <handa@m17n.org>
12653         * coding.c (TWO_MORE_BYTES): New macro.
12654         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
12656 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
12658         * font.c (font_clear_prop): If clearing the family, clear the font
12659         width index too.
12661         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
12663 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
12665         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
12666         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
12667         functions, use sizeof.
12669 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
12671         * keyboard.c (read_char): Fix case where last_nonmenu_event
12672         returned a bad value with submenus.  (Bug#447)
12674 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
12676         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
12677         family, clear the font width index too.
12679 2009-01-11  Jason Rumney  <jasonr@gnu.org>
12681         * keyboard.c (cmd_error_internal): Exit when errors occur before
12682         frame creation and not in daemon mode.  (Bug#1836)
12684 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
12686         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
12687         of a display vector, backtrack.
12688         (try_window_reusing_current_matrix): Check glyph type before
12689         referencing charpos member.
12691 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
12693         Fix Bug #876:
12695         * coding.c (inhibit_null_byte_detection): New variable.
12696         (detect_coding, detect_coding_system): Don't pay attention to null
12697         bytes if inhibit_null_byte_detection is non-zero.
12698         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
12699         <inhibit-iso-escape-detection>: Doc fix.
12701 2009-01-09  Jason Rumney  <jasonr@gnu.org>
12703         * w32font.c (add_font_entity_to_list): Don't report unknown
12704         Windows charset as any unrecognized registry.  (Bug#1548)
12705         Only report Unicode Plane 2 fonts as unicode-sip.
12707 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
12709         * xfaces.c (Fx_font_family_list): Delete function.
12710         Move compatibility version to faces.el.
12712         * font.c (Ffont_family_list): Return a list of strings, not symbols.
12714 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
12716         * frame.c (x_set_frame_parameters): Remember requested value for
12717         fullscreen before it's reset by the parameter handler.
12719 2009-01-09  Glenn Morris  <rgm@gnu.org>
12721         * keyboard.c (last_command_char): For clarity, rename to...
12722         (last_command_event): ... and update all users.
12723         (last_input_char): For clarity, rename to...
12724         (last_input_event): ... and update all users.
12725         (last-command-char, last-input-char): Move to subr.el as aliases.
12726         * cmds.c, commands.h: Update for last_command_char rename.
12728 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
12730         * font.c (font_open_for_lface): Handle unspecified height attribute.
12732 2009-01-08  Jason Rumney  <jasonr@gnu.org>
12734         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
12735         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
12736         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
12737         Don't declare.
12738         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
12739         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
12741 2009-01-07  Kenichi Handa  <handa@m17n.org>
12743         * fileio.c (Finsert_file_contents): In the case of replace,
12744         remember the coding system used for decoding in
12745         coding_system (Bug#1039).
12747         * coding.c (decode_coding_utf_8): Check byte_after_cr before
12748         breaking the loop.  (Bug#870)
12749         (decode_coding_utf_16, decode_coding_emacs_mule)
12750         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12751         (decode_coding_charset): Likewise.
12753 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
12755         * frame.c (x_set_frame_parameters): Make sure height (width) get
12756         applied when fullwidth (fullheight) is set.  (Bug#1522)
12758 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
12760         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
12761         (utc_base): Declare as ULONGLONG, not long double.
12762         (convert_time_raw): Delete.
12763         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
12764         (initialize_utc_base): New function.
12765         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
12766         (convert_from_time_t): Use initialize_utc_base; compute result with
12767         64-bit arithmetic.
12768         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
12770 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
12772         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
12773         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
12774         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
12775         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
12776         [!subprocesses]: Define.
12777         (syms_of_process) [!subprocesses]: Intern and staticpro them.
12778         (Flist_system_processes, Fsystem_process_attributes)
12779         [!subprocesses]: Call list_system_processes and
12780         system_process_attributes instead of returning Qnil.
12782         * dosfns.c (system_process_attributes, list_system_processes):
12783         New functions.
12785         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
12787         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
12788         Don't use the default (no-op) implementation.
12790 2009-01-03  Jason Rumney  <jasonr@gnu.org>
12792         * keyboard.c (parse_modifiers_uncached): Wheel events are
12793         clicks (bug#687).
12795         * w32term.c (x_query_colors, x_query_color): New functions.
12797         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
12798         (svg_load_image): Cast returned pointers from dynamically loaded
12799         functions.  Eliminate W32 specific code.
12801 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
12803         * nsfns.m (x_set_foreground_color, x_set_background_color)
12804         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
12805         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
12806         x_ prefix instead of ns_.  Update references.
12807         (syms_of_nsfns): Add a FIXME comment.
12809         * nsterm.m (x_set_cursor_type): New prototype.
12810         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
12812         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
12813         for Solaris instead of incorrectly providing Qutime and Qcutime.
12815 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
12817         * w32.c (process_times): Compute sum of utime and stime.
12818         (system_process_attributes): Add Qtime to the alist.
12820         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
12821         and add them to the alist.
12823         * process.c (top level) <Qtime, Qctime>: New variables.
12824         (syms_of_process): staticpro them.
12825         (Fsystem_process_attributes): Add their documentation to the doc
12826         string.
12828         * process.h: Declare Qtime and Qctime.
12830 2009-01-02  Jason Rumney  <jasonr@gnu.org>
12832         * image.c (Qgobject): New symbol.
12833         (syms_of_image): Initialize it.
12834         (init_svg_functions): Load some functions from gobject library.
12836 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
12838         * frame.c (make_terminal_frame): Remove redundant code and useless
12839         block.
12841 2009-01-01  Andreas Schwab  <schwab@suse.de>
12843         * process.c (conv_sockaddr_to_lisp): Add workaround for
12844         getsockname bug on BSD.
12846 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
12848         * xfns.c (x_create_tip_frame): Set border width of the X window.
12850         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
12852 2009-01-01  Jason Rumney  <jasonr@gnu.org>
12854         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
12855         Don't block input, as per earlier xterm.c changes.
12857 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
12859         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
12860         (ns_appkit_version_int): New function.
12861         (x-server-version): Use ns_appkit_version_int and follow 21+
12862         convention of returning 3 integers.
12864 2008-12-30  Kenichi Handa  <handa@m17n.org>
12866         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
12867         (CHAR_SURROGATE_PAIR_P): New macro.
12869         * font.h (struct font_driver): New member get_variation_glyphs.
12871         * font.c (font_range): Don't require a font for a variation selector.
12872         (Ffont_variation_glyphs): New function.
12873         (syms_of_font): Defsubr it.
12875         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
12876         ftfont_variation_glyphs.
12877         (setup_otf_gstring): New function.
12878         (ftfont_drive_otf): Use it.
12879         (ftfont_shape_by_flt): Handle variation selector.
12880         (ftfont_variation_glyphs): New function.
12882 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
12884         * frame.c (Vemacs_iconified): Remove.
12886 2008-12-30  Jason Rumney  <jasonr@gnu.org>
12888         * frame.c (store_frame_param, x_get_arg): Enable newer code on
12889         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
12891 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
12893         * indent.c (Fvertical_motion): Don't advance iterator if we have
12894         reseated to the desired position.
12896         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
12897         checking for pos match.
12899 2008-12-30  Kenichi Handa  <handa@m17n.org>
12901         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
12902         just get the low 8-bit of the code.
12904         * font.c (font_intern_prop): Validate str as multibyte.
12906 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
12908         * dispextern.h (struct face): Move lface and hash from the middle
12909         of bitfields.
12911         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
12913 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
12915         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
12916         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
12917         instead of intervals.h.
12919 2008-12-26  Andreas Schwab  <schwab@suse.de>
12921         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
12922         cons.
12924 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
12926         * textprop.c (Qminibuffer_prompt): New variable.
12927         (syms_of_textprop): Initialize it.
12928         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
12929         in minibuffer-prompt face.  (Bug#1662)
12931 2008-12-25  Jason Rumney  <jasonr@gnu.org>
12933         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
12935 2008-12-24  Jason Rumney  <jasonr@gnu.org>
12937         * ralloc.c (r_alloc_reset_variable): New function.
12939         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
12940         record of what points where.  (Bug#716)
12942 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
12944         * minibuf.c (read_minibuf): Follow the non-interactive case when
12945         running as a daemon, before detaching.
12947 2008-12-22  Andreas Schwab  <schwab@suse.de>
12949         * buffer.c (init_buffer): Use realloc instead of xrealloc.
12950         * gtkutil.c (free_widget_value): Use xfree instead of free.
12952 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
12954         * frame.c (delete_frame): New function derived from
12955         Fdelete_frame to handle Qnoelisp value for FORCE argument.
12956         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
12957         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
12958         saying that FORCE non-nil doesn't run `delete-frame-functions'.
12959         * frame.h: Extern delete_frame.
12960         * window.c (window_loop):
12961         * terminal.c (delete_terminal):
12962         * xterm.c (x_connection_closed):
12963         * xfns.c (Fx_hide_tip):
12964         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
12966 2008-12-21  Jason Rumney  <jasonr@gnu.org>
12968         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
12969         when character maps to .notdef character.
12971 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12973         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
12975 2008-12-20  Jason Rumney  <jasonr@gnu.org>
12977         * frame.c (Fmake_terminal_frame): Raise an error when called from
12978         a graphical frame on Windows.  (Bug#1325)
12980 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
12982         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
12984 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
12986         * minibuf.c (Fread_buffer): Doc fix.
12988 2008-12-20  Jason Rumney  <jasonr@gnu.org>
12990         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
12991         server name in UNC paths.  (Bug#719)
12993         * coding.c (decode_coding): Clear chars_at_source flag when using
12994         charbuf.  (Bug#1035)
12996 2008-12-19  Daniel Engeler  <engeler@gmail.com>
12998         * sysdep.c (serial_configure): Fix typo.
13000 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
13002         * sysdep.c: Include alloca.h.
13003         (system_process_attributes): Add implementation for Solaris.
13005         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
13007 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
13009         Reorganize implementation of Flist_system_processes and
13010         Fsystem_process_attributes.  No functional changes.
13011         * process.c: Don't #include pwd.h, grp.h and limits.h.
13012         (Flist_system_processes): Just call list_system_processes.
13013         (Fsystem_process_attributes): Just call system_process_attributes.
13014         (procfs_list_system_processes, time_from_jiffies)
13015         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13016         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
13018         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
13019         (list_system_processes): Rename from
13020         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
13021         Provide a do nothing implementation.
13022         (system_process_attributes): Rename from
13023         procfs_list_system_processes.
13024         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
13025         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
13027         * w32.c (list_system_processes): Rename from
13028         w32_list_system_processes.
13029         (system_process_attributes): Rename from
13030         w32_system_process_attributes.
13032         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
13034         * process.h (w32_list_system_processes)
13035         (w32_system_process_attributes): Remove.
13036         (list_system_processes, system_process_attributes):
13037         New prototypes.
13039 2008-12-19  Kenichi Handa  <handa@m17n.org>
13041         * xfont.c (xfont_decode_coding_xlfd): New function.
13042         (xfont_encode_coding_xlfd): New function.
13043         (xfont_list_pattern): Decode XLFD by iso-8859-1.
13044         (xfont_list): Decode and encode XLFD by iso-8859-1.
13045         (xfont_match): Likewise.
13046         (xfont_list_family): Likewise.
13047         (xfont_open): Likewise.
13049         * ftfont.c (ftfont_open): Generate a multibyte string if given
13050         names are utf-8.
13052         * xftfont.c (xftfont_open): Generate a multibyte string if given
13053         names are utf-8.
13055 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
13057         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
13058         changed.
13059         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
13060         clicked on a detached tool bar button.
13062 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
13064         * emacs.c (main): Print and error and exit when no data is read
13065         from the pipe.
13067 2008-12-17  Jason Rumney  <jasonr@gnu.org>
13069         * w32font.c (w32font_has_char): Always return -1.
13071 2008-12-16  Kenichi Handa  <handa@m17n.org>
13073         * font.c (font_open_entity): Fix previous change.
13075 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
13077         * process.c: Include <limits.h>.
13079 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
13081         * font.c (font_update_drivers): Fix mistake in reconstructing the
13082         driver list.
13084 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
13086         * font.c (font_clear_cache): Fix format of font cache data.
13088 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
13090         * xftfont.c (xftfont_open): Free Xft font pattern if
13091         XftFontOpenPattern fails.
13093         * xterm.c (x_free_frame_resources): Remove extraneous call to
13094         free_frame_faces.
13096 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
13098         * xterm.c (x_delete_display): Move xim_close_dpy call to
13099         x_delete_terminal.
13100         (x_delete_terminal): Call xim_close_dpy.
13102 2008-12-13  Jason Rumney  <jasonr@gnu.org>
13104         * w32font.c (intern_font_name): New function.
13105         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
13106         (w32font_open_internal, Fx_select_font): Decode font name.
13107         (fill_in_logfont, list_all_matching_fonts): Encode font name.
13109         * w32font.h (intern_font_name): Declare new function.
13111         * w32uniscribe.c (add_opentype_font_name_to_list):
13112         Use intern_font_name.
13114 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
13116         * frame.c (Fdelete_frame): Call free_font_driver_list.
13118         * font.c (free_font_driver_list): Implement missing function.
13120         * w32term.c (w32_term_init): Don't initialize the image cache
13121         here; it will be done in init_frame_faces.
13123         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
13124         (struct x_display_info): Remove unused member null_pixel.
13125         New member xim_callback_data.
13127         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
13128         (xim_initialize): Save pointer to callback function data.
13129         (xim_close_dpy): Free callback function data.  Call XCloseIM,
13130         reverting 2008-11-04 change by David Smith.
13131         (x_term_init): Don't initialize the image cache here; it will be
13132         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
13133         (x_delete_display): Free x_dnd_atoms member.
13135 2008-12-13  Kenichi Handa  <handa@m17n.org>
13137         * font.c (font_rescale_ratio): Move from xfaces.c.
13138         Argument type changed.  Handle a font-spec too.
13139         (font_score): Check Vface_font_rescale_alist.
13140         (font_open_entity): Likewise.  (Bug#1547)
13142         * xfaces.c (font_rescale_ratio): Move to font.c.
13144 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
13146         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
13148 2008-12-12  Jason Rumney  <jasonr@gnu.org>
13150         * w32fns.c (x_display_info_for_name, Fx_open_connection):
13151         Set Vwindow_system_version to the real w32 major version.
13153 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
13155         * term.c (init_tty): Move setting the terminal name before the
13156         potential user: maybe_fatal.
13158 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
13160         * term.c (tty_free_frame_resources): Rename from delete_tty_output;
13161         all callers changed.  Call free_frame_faces to free the face cache.
13163 2008-12-11  Jason Rumney  <jasonr@gnu.org>
13165         * w32font.c (fill_in_logfont): Don't assume symbol script means
13166         SYMBOL_CHARSET.  (Bug#547)
13168         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
13169         size for surrogates.  (Bug#1096, bug#872)
13171 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
13173         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
13175 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
13177         * process.c (Fsystem_process_attributes, syms_of_process):
13178         Fix typo in name of Ssystem_process_attributes.
13179         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
13181 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
13183         * syntax.c (Fmodify_syntax_entry): Doc fix.
13185 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
13187         * font.c (Ffont_spec): Move usage to end of docstring.
13189 2008-12-10  Jason Rumney  <jasonr@gnu.org>
13191         * w32font.c (Qcham): New symbol.
13192         (font_supported_scripts): Add cham, and comments for other new
13193         scripts in bitfield from OpenType spec.
13194         (add_font_entity_to_list): Limit unicode-sip fonts to those that
13195         contain characters beyond the bmp.
13197 2008-12-10  Kenichi Handa  <handa@m17n.org>
13199         * ftfont.c (fc_charset_table): Add "unicode-sip".
13200         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
13201         Qunicode_sip.
13203 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
13205         * coding.c (QCdefault_char): Rename from QCdefalut_char.
13206         (Fcoding_system_put): Use QCdefault_char.
13207         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
13209 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
13211         * xftfont.c (syms_of_xftfont): Fix typo.
13213         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
13215 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
13217         * emacs.c (main): Close daemon_pipe on exec.
13219 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
13221         * termchar.h (struct tty): New members termcap_term_buffer and
13222         termcap_strings_buffer.
13224         * term.c (encode_terminal_code): Free any previous memory blocks
13225         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
13226         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
13227         All callers changed.
13228         (init_tty): Store termcap data and string buffers in new struct
13229         tty members termcap_term_buffer and termcap_strings_buffer.
13230         (delete_tty): Free them.
13231         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
13233 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
13235         * nsfns.m (ns_set_background_color): Remove code duplication.
13236         It was a substitute for face-transparency on OS X 10.3.
13238 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
13240         * coding.c (make_conversion_work_buffer): Disable buffer
13241         modification hooks in the work buffer.
13243 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
13245         * process.c (procfs_system_process_attributes): If `nread' has a
13246         negative value, assign zero to it.
13248 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
13250         * eval.c (Vdebug_on_error): Doc fix.
13252 2008-12-05  Kenichi Handa  <handa@m17n.org>
13254         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
13255         second character is a combining character.
13257 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
13259         * process.c (procfs_system_process_attributes): Don't use cmd,
13260         cmdsize, and q without initializing them first.
13262 2008-12-04  Jason Rumney  <jasonr@gnu.org>
13264         * w32font.c (w32font_draw): Initialize orig_clip before getting
13265         it, and delete it when finished.
13267 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
13269         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
13270         case when running as a daemon before detaching.
13272 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
13274         * w32.c (init_environment): Don't unload library shell32.dll.
13276 2008-12-03  Kenichi Handa  <handa@m17n.org>
13278         * font.c (font_at): Set `multibyte' at first.
13280         * coding.c (decode_coding_charset): Check type of an element of
13281         vector VALIDS.
13282         (encode_coding_emacs_mule): Be sure to set `code'.
13284         * fontset.c (face_for_char): Handle invalid charset property correctly.
13285         (font_for_char): Likewise.
13287 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
13289         * font.c (Fopen_font): Compute pixel size correctly.
13290         (font_update_lface): Handle fonts with corrupted size specs,
13291         i.e. non-int and non-float.
13293         * ftfont.c (ftfont_match): Initialize entity variable.
13294         (ftfont_resolve_generic_family): Avoid using uninitialized var.
13295         (ftfont_list_family): Initialize list var earlier.
13297         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
13299         * xterm.c (x_draw_glyph_string): Fall back on
13300         underline_minimum_offset for underline position.
13302 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
13304         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
13306         * character.c (c_string_width): Specify the type for LEN.
13308 2008-12-03  Kenichi Handa  <handa@m17n.org>
13310         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
13311         (decode_coding_utf_8): Likewise.
13312         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
13313         (produce_chars): Initialize consumed_chars to 0.
13315 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
13317         * keyboard.c (make_lispy_position): Only use PT if the selected
13318         window is current.
13320 2008-12-02  Andreas Schwab  <schwab@suse.de>
13322         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
13324         * doprnt.c (doprnt1): Fix size of charbuf.
13326 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
13328         * keyboard.c (timer_check): Revert last change.
13330 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
13332         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
13334 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
13336         * makefile.w32-in: Update dependencies.
13337         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
13339 2008-12-01  Andreas Schwab  <schwab@suse.de>
13341         * font.c (register_font_driver): Use xmalloc.
13342         (font_put_frame_data): Likewise.
13344 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
13346         * xfaces.c (realize_x_face): Make abort condition clearer.
13348         * gtkutil.c (update_frame_tool_bar): Initialize variable.
13350 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
13352         * keyboard.c (timer_check): After a timer runs, ensure that the
13353         selected window's buffer is current.
13355 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
13357         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
13358         It was accidentally restored by the Unicode merge.
13360         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
13362 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
13364         * w32proc.c: Include "coding.h".
13365         (Fw32_short_file_name): Encode filename passed to Windows API.
13366         (Fw32_long_file_name): Encode filename passed to Windows API and
13367         decode back the result.  (Bug#1433)
13369 2008-11-29  Kenichi Handa  <handa@m17n.org>
13371         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
13372         not before accessing it.
13374         * charset.c (Fdefine_charset_internal): After calculating
13375         min_char, max_char, and fastmap, copy the charset structure again.
13376         (encode_char): Fix the previous change.
13378 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
13380         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
13382         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
13384         * nsterm.m (x_set_frame_alpha): New function.
13386 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
13388         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
13390 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
13392         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
13393         pointer to check_face_name.
13395 2008-11-27  Kenichi Handa  <handa@m17n.org>
13397         * category.h (SET_CATEGORY_SET): Call set_category_set.
13398         (set_category_set): Extern it.
13400         * category.c (hash_get_category_set): New function.
13401         (Fmodify_category_entry): Adjust for the change of
13402         char_table_ref_and_range.  Call hash_get_category_set to get a
13403         category set to store in the table.
13405         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
13406         Funify_charset.
13408         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
13409         (DECODE_CHAR): Check if the decoder vector is ready.
13410         (ENCODE_CHAR): Check if the encoder char-table is ready.
13411         (maybe_unify_char): Extern it.
13413         * charset.c (Vchar_unified_charset_table): Delete it.
13414         (inhibit_load_charset_map): New variable.
13415         (temp_charset_work): New variable.
13416         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
13417         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
13418         New macros.
13419         (load_charset_map): Meaning of control_flag changed.
13420         If inhibit_load_charset_map is nonzero, setup a table in
13421         temp_charset_work.
13422         (load_charset): New argument control_flag.
13423         (map_charset_for_dump): New function.
13424         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
13425         map_charset_for_dump.
13426         (Fdefine_charset_internal): If the charset method is MAP, load
13427         mapping tables by calling load_charset.
13428         (Funify_charset): Don't load a mapping table but directly set
13429         Vchar_unify_table.
13430         (maybe_unify_char): New function.
13431         (decode_char): Don't handle the deleted method MAP_DEFERRED.
13432         Handle the case of inhibit_load_charset_map being nonzero.
13433         (encode_char): Don't handle the deleted method MAP_DEFERRED.
13434         Handle the case of inhibit_load_charset_map being nonzero.
13435         (Fclear_charset_maps): Just free temp_charset_work.
13436         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
13437         variable.
13439         * chartab.c (sub_char_table_ref_and_range): Adjust for the
13440         change of char_table_ref_and_range.
13441         (char_table_ref_and_range): Change the meaning of argument FROM
13442         and TO.  Now the caller must provide initial values for *FROM
13443         and *TO.
13445         * fontset.c (fontset_add): Adjust for the change of
13446         char_table_ref_and_range.
13447         (fontset_get_font_group): Likewise.
13448         (Ffontset_info): Likewise.
13450         * keymap.c (describe_vector): Adjust for the change of
13451         char_table_ref_and_range.  For char-table, put boundary between
13452         non-ASCII and 8-bit characters.
13454         * print.c (print_object): For bool-vector, delete unnecessary
13455         check of ASCII_BYTE_P.
13457 2008-11-26  Jason Rumney  <jasonr@gnu.org>
13459         * w32font.c (w32font_open_internal): Don't include external
13460         leading in font height.  (Bug#879)
13462 2008-11-26  Glenn Morris  <rgm@gnu.org>
13464         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
13465         redefinition with ifdef.  (Bug#1383)
13467 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
13469         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
13471 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
13473         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
13474         New EmacsView methods.
13475         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
13476         Fixes bug #1048,1357,1414.
13478 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
13480         Fix bug #1362.
13481         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
13482         is not an indexed color.
13483         * nsterm.m (free_indexed_color): Add argument checking.
13484         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
13486 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
13488         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
13489         Document confirm-after-completion value for
13490         minibuffer-completion-confirm.
13492 2008-11-24  Jason Rumney  <jasonr@gnu.org>
13494         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
13495         warning.
13497 2008-11-23  Jason Rumney  <jasonr@gnu.org>
13499         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
13500         restored before returning.
13502         * w32font.c (check_face_name): New function.
13503         (add_font_entity_to_list): Use it to filter out common substituted
13504         fonts.  (Bug#642)
13506 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
13508         * buffer.c (Fswitch_to_buffer): Reword and mention new option
13509         confirm-nonexistent-file-or-buffer in doc-string.
13511 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13513         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
13514         Fix copy/paste typo.  Add checks.
13516 2008-11-21  Kenichi Handa  <handa@m17n.org>
13518         * coding.c (detect_coding_iso_2022): Reject invalid composition
13519         sequence.
13520         (DECODE_COMPOSITION_START): If the current source is the last
13521         block, and the current composition doesn't end, regard this
13522         sequence as invalid.
13523         (decode_coding_iso_2022): Handle invalid composition sequence.
13525 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
13527         * window.c (coordinates_in_window): Don't return
13528         ON_VERTICAL_BORDER for the rightmost position of a mode/header
13529         line when the window is not the rightmost one.  (Bug#1372)
13531 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
13533         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
13535 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
13537         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
13538         and bright_bg if noninteractive is non-zero.
13540 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13542         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
13543         x_draw_glyph_string_background.
13545         * w32term.c (x_draw_glyph_string): Likewise.
13547 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
13549         * xterm.c (x_draw_glyph_string): Stop drawing the background of
13550         the next glyph string once past the overhang width.
13552         * nsterm.m (ns_draw_glyph_string): Likewise.
13554         * w32term.c (x_draw_glyph_string): Likewise.
13556 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
13558         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
13559         double file close.
13561 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
13563         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
13564         dedicated status of window before attempting to display another
13565         buffer in it.
13567 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
13569         * msdos.c (Fmsdos_long_file_names):
13570         (syms_of_msdos) <dos-unsupported-char-glyph>:
13571         * dosfns.c (Fint86): Fix typos in docstrings.
13573 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
13575         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
13577 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
13579         * puresize.h (BASE_PURESIZE): Increase to 1260000.
13581 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
13583         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
13585         * frame.h: Negative alpha means "don't touch".
13587         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
13589         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
13591 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
13593         * hftctl.c:
13594         * chpdef.h:
13595         * acldef.h: Remove files used only for systems no longer supported.
13597         * Makefile.in: Fix .o alphabetical ordering.
13598         (hftctl.o): Remove dependency, file removed.
13599         (keymap.o, print.o): Depend on charset.h.
13601 2008-11-10  Kenichi Handa  <handa@m17n.org>
13603         * character.c (Fget_byte): Fix and make it faster for unibyte target.
13605 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
13607         * dired.c (file_name_completion): If completion_ignore_case is
13608         enabled, ignore case when checking completion-regexp-list.
13610 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
13612         * vm-limit.c (get_lim_data): Fix last change.
13614 2008-11-08  Kenichi Handa  <handa@m17n.org>
13616         * character.c (Fget_byte): New function.
13617         (syms_of_character): Defsubr Fget_byte.
13619 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
13621         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
13622         cursor position is valid after scrolling.
13624 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
13626         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
13628 2008-11-06  Glenn Morris  <rgm@gnu.org>
13630         * xterm.c (handle_one_xevent): Don't let popup menus cause
13631         mouse-autoselect-window related window switching.  (Bug#1261)
13633 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
13635         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
13637 2008-11-04  Andreas Schwab  <schwab@suse.de>
13639         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
13641 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
13643         * xfns.c (Fx_wm_set_size_hint): New function.
13645 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
13647         * textprop.c (Fprevious_single_char_property_change): Return 0
13648         when there's no change in a string.  (Bug#1301)
13650 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
13652         * frame.c (do_switch_frame): New argument NORECORD passed to
13653         Fselect_window.
13654         (Fselect_frame): New argument NORECORD passed to
13655         do_switch_frame.
13656         (Fset_frame_selected_window): New argument NORECORD passed to
13657         Fselect_frame.
13658         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
13659         in call of do_switch_frame.
13660         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
13661         Handle NORECORD argument in call of Fselect_frame.
13662         * lisp.h (do_switch_frame, Fselect_frame)
13663         (Fset_frame_selected_window): Adjust declarations.
13664         * window.c (select_frame_norecord): New function.
13665         (run_window_configuration_change_hook): Use it and call
13666         Fselect_frame with NORECORD set.
13667         (Fselect_window): Pass NORECORD to Fselect_frame.
13668         (Fset_window_configuration): Handle NORECORD argument in call of
13669         do_switch_frame.
13670         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
13671         Fset_frame_selected_window.
13672         * keyboard.c (command_loop_1): Handle NORECORD in call of
13673         Fselect_frame (currently ifdefd).
13675 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
13677         * emacs.c (USAGE2): Untabify.
13679 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
13681         * composite.c (fill_gstring_header): Fix copy/paste typo.
13683 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
13685         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
13686         (Fother_window): Rename argument and rewrite doc-string.
13687         (select_window_norecord): Fix return value.  (Bug#1276)
13689 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
13691         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
13692         new frames overriding foreground for tooltips.  Based on similar patch
13693         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
13695 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
13697         * emacs.c (Fdaemon_initialized): Initialize nfd.
13699 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
13701         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
13702         (Fwindow_text_height): Clarify doc-strings.
13703         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
13704         doc-string of window-scroll-functions.
13706 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
13708         * category.c (syms_of_category): Fix typo in docstring.
13710 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
13712         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
13713         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
13714         Fix typos in docstrings.
13716 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
13718         * emacs.c (daemon_pipe): Make non-static.
13719         (IS_DAEMON): Move definition ...
13720         * lisp.h (IS_DAEMON): ... here.
13721         (daemon_pipe): Declare.
13722         (is_daemon): Remove.
13723         * dispnew.c (init_display): Use IS_DAEMON.
13725 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
13727         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
13728         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
13730         * emacs.c (is_daemon): Remove.
13731         (main): Don't set is_daemon.
13732         (IS_DAEMON): New macro.
13733         (Fdaemonp, Fdaemon_initialized): Use it.
13734         (Fdaemon_initialized): Write a char into the pipe to make sure the
13735         parent exits.
13736         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
13738 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
13740         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
13741         over-sized glyph, draw it with the default glyph width.
13743         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13744         glyph, draw it with the default glyph width.
13746         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
13747         glyph, draw it with the default glyph width.
13749         * xdisp.c (try_scrolling): When computing the distance from the
13750         scroll margin to PT, try moving some distance past the window
13751         bottom before giving up.
13753 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
13755         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
13756         (Fset_window_buffer): Explain in doc-string that a window can be
13757         "strongly" dedicated to its buffer.
13759 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
13761         * emacs.c (daemon_name): New variable.
13762         (main): Deal with --daemon=SERVER_NAME.
13763         (Fdaemonp): Return a name if one was passed to --daemon.
13765 2008-10-26  Romain Francoise  <romain@orebokech.com>
13767         * emacs.c (daemon_pipe): New variable.
13768         (main): Create a pipe before forking, make the parent exit only after
13769         the child has closed its end of the pipe.  Move closing the
13770         descriptors ...
13771         (Fdaemon_initialized): ... here.  New function.
13773 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
13775         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
13776         the previous unoptimized table.
13778         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
13779         the distinction between non-nil and non-t value of `dedicated'.
13781 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
13783         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
13784         read_char_minibuf_menu_text is large enough to hold the menu string.
13786 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
13788         * window.c (Fget_buffer_window, Fdelete_windows_on)
13789         (Freplace_buffer_in_windows): Make buffer argument optional and
13790         rename to buffer_or_name.
13792 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
13794         * xdisp.c (handle_single_display_spec, handle_display_prop):
13795         Undo 2005-05-16 change.
13796         (handle_stop): Pop iterator if it's loaded with an empty string.
13797         (get_overlay_strings_1): Don't save iterator if it's loaded with
13798         an empty string (bug#1201).
13800 2008-10-24  Kenichi Handa  <handa@m17n.org>
13802         * ftfont.c (ftfont_otf_features): Fix previous change.
13803         (ftfont_otf_capability): Check FeatureList.FeatureCount before
13804         calling ftfont_otf_features.
13806 2008-10-24  Kenichi Handa  <handa@m17n.org>
13808         * font.c (font_match_p): Fix for the case that a vector of
13809         characters is in script-representative-chars.
13811 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
13813         * dbusbind.c (xd_in_read_queued_messages): New variable.
13814         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
13815         (xd_read_queued_messages): Catch Qdbus_error from the macros.
13816         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
13817         macro.  (Bug#1186)
13819 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
13821         * s/sol2-10.h: New file.
13823 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
13825         * xdisp.c (fill_glyph_string): Fix typo in source (though the
13826         poor beast has survived 9+ years and the jump from xterm.c!).
13828 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
13830         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
13831         Reword doc-string.
13832         (Fbury_buffer): In doc-string say what happens to the buffer's window.
13834 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
13836         * character.c (syms_of_character) <script-representative-chars>:
13837         <unicode-category-table>: Doc fixes.
13839 2008-10-23  Noah Friedman  <friedman@splode.com>
13841         * coding.c (make_conversion_work_buffer): Check that
13842         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
13843         Fget_buffer_create.
13845 2008-10-23  Kenichi Handa  <handa@m17n.org>
13847         * font.c (font_add_log): Check the values of extra properties.
13849 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
13851         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13852         Reword doc-string.
13853         (Fset_window_parameter): Use NILP.
13854         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
13855         (Frecenter): Use "selected" instead of "current" window in doc-strings.
13857 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
13859         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
13861 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
13863         * nsfns.m (ns_appkit_version): New function.
13864         (x-server-version): Use it.
13865         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
13866         (x-server-vendor): Don't check_ns().
13868         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
13870 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
13872         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
13873         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
13875 2008-10-22  Kenichi Handa  <handa@m17n.org>
13877         * syntax.c (scan_words): Call word_boundary_p instead of comparing
13878         scripts.
13880         * category.c (word_boundary_p): Check scripts instead of charset.
13881         Handle nil value in word-separating-categories and
13882         word-combining-categories.
13883         (syms_of_category): Fix docstrings of word-separating-categories
13884         and word-combining-categories.
13886 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
13888         * coding.c (Fencode_coding_region, Fdecode_coding_region)
13889         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
13891 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
13893         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
13894         Rename arg "buffer" to "buffer_or_name".
13895         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
13896         it optional.
13897         (no_switch_window): Remove since the return value is not used.
13898         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
13899         Consider window as dedicated when Fwindow_dedicated_p returns a
13900         non-nil value.
13901         * lisp.h: Remove prototype for no_switch_window.
13903 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
13905         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
13906         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
13908 2008-10-21  Kenichi Handa  <handa@m17n.org>
13910         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
13911         check Vlatin_extra_code_table.
13913 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
13915         * fileio.c (Fset_file_modes): Doc fix.
13917 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
13919         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
13920         in arrays.
13922 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
13924         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
13925         Mention kill-buffer in doc-string.
13926         (Fset_window_buffer): Reinsert tem check removed in last commit.
13927         (Fenlarge_window, Fshrink_window): Have argument names and
13928         doc-string follow Elisp manual more closely.
13930 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
13932         * fileio.c (Fset_file_modes): Doc fix.
13934 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
13936         * window.c (Fwindow_width, Fset_window_start)
13937         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
13938         (Fdelete_windows_on, Freplace_buffer_in_windows):
13939         Make doc-strings follow code and Elisp manual more closely.
13940         (Fwindow_dedicated_p): Make window argument optional.
13941         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
13942         (Fset_window_buffer): Respect any non-nil dedicated value for
13943         window.  Rename "buffer" argument to "buffer_or_name".
13945 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
13947         * m/sh3.h: New file, machine description for SuperH.
13949 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
13951         * window.c (Fsplit_window): Rename arg horflag to horizontal.
13953 2008-10-17  Kenichi Handa  <handa@m17n.org>
13955         * ftfont.c (ftfont_otf_features): Fix indexing
13956         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
13958 2008-10-16  Magnus Henoch  <mange@freemail.hu>
13960         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
13961         (Fdbus_call_method_asynchronously): Ditto.
13962         This change makes C-h f display the argument list.
13964 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
13966         * fileio.c (Fexpand_file_name): Doc fix.
13968         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
13969         of :foreground and :background equivalent to unspecified (20.x
13970         compatibility).
13972 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
13974         * buffer.c (syms_of_buffer): Doc fix.
13976 2008-10-14  Kenichi Handa  <handa@m17n.org>
13978         * font.c (font_clear_prop): When clearing font width, clear the
13979         average width field too.
13981 2008-10-12  Andreas Schwab  <schwab@suse.de>
13983         * ftfont.c (ftfont_shape_by_flt): Make static.
13984         * ftfont.h (ftfont_shape_by_flt): Don't declare.
13986         * font.c: Don't include <m17n-flt.h>.
13988 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
13990         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
13992 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
13994         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
13995         away code.
13997 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
13999         * dispnew.c (update_text_area): Avoid looping due to large glyph
14000         overhangs (bug#1070).
14002 2008-10-09  Kenichi Handa  <handa@m17n.org>
14004         * fontset.c (face_for_char): If face->fontset is negative, just
14005         return ascii_face.
14007         * font.c (font_delete_unmatched): Fix previous change.
14008         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
14010 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
14012         * frame.c (Fraise_frame): On text-only terminals select frame in
14013         order to make it visible.  (Bug#1061)
14015 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
14017         * fontset.c (fontset_find_font): Check frame validity.
14019 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
14021         * gtkutil.c (xg_display_open): Reset default display if none exists.
14022         (xg_display_close): Allow Emacs to close all displays (bug#985).
14024 2008-10-06  Andreas Schwab  <schwab@suse.de>
14026         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
14028 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
14030         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
14032         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
14034         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
14035         during initialization.
14037 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
14039         * xdisp.c (redisplay_internal): If frame switched, redisplay the
14040         whole thing on MSDOS frames as well as on a TTY.
14042         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
14043         well as for TTY.
14044         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
14045         well as on a TTY.
14047         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
14048         as well as for TTY.
14050         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
14052         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
14053         MSDOS frames as well.
14055 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
14057         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
14058         correct arguments.
14059         * menu.c (find_and_return_menu_selection): Add cast.
14061 2008-10-03  Glenn Morris  <rgm@gnu.org>
14063         * emacs.c (USAGE1): Add --daemon.
14065 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
14067         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
14068         100, so it's in percents as advertised.
14070 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
14072         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
14073         (ns_output.current_cursor, ns_output.desired_cursor)
14074         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
14075         (FRAME_NEW_CURSOR_COLOR): Remove.
14077         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
14078         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
14079         enumeration (HOLLOW_BOX_CURSOR, etc.).
14081         * nsterm.m (ns_frame_rehighlight): Remove commented code.
14082         (draw_window_cursor): Simplify code.
14083         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
14084         Don't change cursor type.  In latter, call rehighlight instead of doing
14085         updates manually.
14086         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
14087         Use core Emacs cursor types.
14089         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
14091 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
14093         * process.c (Faccept_process_output): Fix doc-string.
14095 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
14097         * gmalloc.c (__sbrk): Also define for uClibc.
14099         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
14100         for uClibc.
14102 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
14104         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
14105         styles.
14106         (nsfont_open): Reenable the cache.
14108 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
14110         * font.c (font_matching_entity): Reflect ATTRS in font selection.
14111         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
14113 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
14115         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
14116         a suspended terminal.
14118 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
14120         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
14122 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
14124         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
14126 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
14128         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
14129         in a continued line coincides with a line beginning.
14131 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
14133         * nsfont.m (nsfont_trait_distance): Fix bug.
14134         (nsfont_list): Return a list rather than a vector (syncs with Handa
14135         changes of 2008-05-14).
14136         (nsfont_open): Improve logging.
14138 2008-09-29  Andreas Schwab  <schwab@suse.de>
14140         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
14142 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
14144         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
14145         name as char-resolve-modifiers.
14146         Reported by: Markus Triska <markus.triska@gmx.at>
14148 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
14150         * dispnew.c (init_display): Return earlier when running as a daemon.
14152 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
14154         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
14156 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
14158         * composite.c (Fcomposition_get_gstring)
14159         (Fcompose_region_internal, Fcompose_string_internal)
14160         (Ffind_composition_internal): Doc fix.
14161         (syms_of_composite) <compose-chars-after-function>: Doc fix.
14162         (syms_of_composite) <auto-composition-function>: Doc fix.
14163         (syms_of_composite) <composition-function-table>: Doc fix.
14165 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
14167         * search.c (wordify): New argument for lax word-ends.
14168         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
14170 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
14172         * lisp.h (is_daemon): Declare.
14173         * dispnew.c (init_display): Do not try to initialize the terminal
14174         when running as a daemon.
14176 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
14178         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
14179         x_display_pixel_height.
14181 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
14183         * undo.c (record_point): Don't call Fundo_boundary for first
14184         change.  (Bug#731)
14186 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
14188         * emacs.c (Fdaemonp): Doc fix.
14190 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
14192         * emacs.c (main): Place #ifdef in the proper place.
14194 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
14196         * emacs.c (standard_args): Add --daemon.
14197         (main): Disconnect from the terminal when --daemon is passed.
14198         (is_daemon): New variable.
14199         (Fdaemonp): New function.
14200         (syms_of_emacs): Defsubr it.
14202 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
14204         * xdisp.c (get_next_display_element): Handle string display
14205         correctly when checking for the end of a box run.
14207 2008-09-20  Glenn Morris  <rgm@gnu.org>
14209         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
14210         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
14211         (Frename_file): Avoid copying to trash if a rename involves
14212         a delete.  (Bug#964).
14214 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
14216         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
14217         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
14218         frames as well as termcap frames.
14219         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
14220         get_named_tty.
14222 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
14224         * process.c (procfs_system_process_attributes): Fix cmdline in
14225         case /proc/PID/cmdline is empty.
14227         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
14228         x_display_pixel_height.
14230 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
14232         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
14234         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14235         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
14237 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
14239         * dispextern.h (struct it): Move line_wrap away from the middle of
14240         bitfields.  Move voffset in struct iterator_stack_entry after the
14241         bitfields.  Move tab_width near after another short.
14243 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
14245         * frame.h (struct frame): Move alpha from the middle of bitfields.
14247         * window.h (struct window): Move frozen_window_start_p after the
14248         rest of the bitfields to reduce padding.
14250 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
14252         * xterm.h (x_display_info): Remove `height' and `width' members.
14254         * nsterm.h (ns_display_info): Remove `height' and `width' members.
14256         * w32term.h (w32_display_info): Remove `height', `width',
14257         `height_in', and `width_in' members.
14259         * xterm.c (x_display_pixel_height, x_display_pixel_width):
14260         New functions.
14261         (x_calc_absolute_position): Use them.
14262         (x_term_init): Omit removed `height' and `width' members.
14264         * w32term.c (x_display_pixel_height, x_display_pixel_width):
14265         New functions.
14266         (w32_read_socket, x_calc_absolute_position): Use them.
14267         (w32_initialize_display_info, w32_term_init): Omit removed members
14268         of w32_display_info.
14270         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
14271         New functions.
14272         (ns_initialize_display_info): Omit removed members of ns_display_info.
14274         * xterm.c (x_display_pixel_height, x_display_pixel_width):
14275         New functions.
14276         (x_calc_absolute_position): Use them.
14277         (x_term_init): Omit removed `height' and `width' members.
14279         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
14280         (compute_tip_xy):
14281         * frame.c (x_fullscreen_adjust):
14282         * xmenu.c (menu_position_func): Use x_display_pixel_height and
14283         x_display_pixel_width.
14285 2008-09-18  Kenichi Handa  <handa@m17n.org>
14287         * composite.c (fill_gstring_header): Don't check FROM and TO here.
14288         (composition_compute_stop_pos): Fix handling of static composition.
14289         (Fcomposition_get_gstring): Check FROM and TO at first.
14291 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
14293         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
14294         mixup (YAILOM).
14296 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
14298         * indent.c (Fvertical_motion): Use position reported by iterator
14299         instead of PT for determining screen motion (bug#943).
14301 2008-09-17  Romain Francoise  <romain@orebokech.com>
14303         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
14305 2008-09-17  Kenichi Handa  <handa@m17n.org>
14307         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
14309         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
14310         if necessary.
14312 2008-09-16  Kenichi Handa  <handa@m17n.org>
14314         * coding.c (make_conversion_work_buffer): Avoid calling
14315         Fget_buffer_create if it is not necessary.
14317 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
14319         * window.c (Fselect_window): Don't update window_select_count and
14320         use_time when norecord is not nil.
14322 2008-09-14  Kenichi Handa  <handa@m17n.org>
14324         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
14325         specpdl_ptr.
14327 2008-09-12  Kenichi Handa  <handa@m17n.org>
14329         * indent.c (scan_for_column): Don't handle automatic composition
14330         if the current buffer is not associated with a window.
14332         * composite.c (composition_reseat_it): If the current buffer is
14333         not associated with a window, ignore the automatic composition.
14334         (find_automatic_composition): Likewise.
14336 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
14338         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
14339         (Fgpm_mouse_stop): Use it.
14340         * termhooks.h (close_gpm): Declare.
14341         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
14342         connection if Gpm_GetEvent fails.
14344         * window.c (set_window_buffer): Always preserve current-buffer.
14346 2008-09-12  Glenn Morris  <rgm@gnu.org>
14348         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
14350 2008-09-11  Glenn Morris  <rgm@gnu.org>
14352         * charset.c (charset-map-path): Doc fix.
14354 2008-09-10  Kenichi Handa  <handa@m17n.org>
14356         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
14358         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
14359         compose a grapheme cluster with the preceding base glyph.
14361         * composite.c (composition_compute_stop_pos): Fix previous change.
14362         Reset cmp_it->id to -1 at first.
14364 2008-09-10  Glenn Morris  <rgm@gnu.org>
14366         * Makefile.in (character.o, chartab.o): Fix config.h typo.
14368 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
14370         * keyboard.c (read_key_sequence): Reapply translation maps when
14371         switching keyboards.
14373 2008-09-09  Kenichi Handa  <handa@m17n.org>
14375         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
14376         characters.
14378         * composite.c (FORWARD_CHAR): Fix calculation
14379         of (POSITION).pos_byte.
14380         (composition_compute_stop_pos): Limit the search of composition to
14381         at most 500 characters ahead.  If we reach the limit or find a
14382         newline, set cmp_it->ch to -2 and return 0.
14383         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
14385 2008-09-08  Kenichi Handa  <handa@m17n.org>
14387         * indent.c (Fvertical_motion): Be sure to set
14388         it_overshoot_expected if it.cmp_it.id is non-negative.
14390 2008-09-07  Andreas Schwab  <schwab@suse.de>
14392         * callproc.c (Fcall_process): Don't hold references to string data
14393         across garbage collection.  Move initialisation of new_argv down
14394         to avoid compiler bug.
14396 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
14398         * process.c (Fsystem_process_attributes): Doc fix.
14400 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
14402         * callproc.c (Fcall_process): Canonicalize current directory name.
14404         * xdisp.c (move_it_to): When moving by vpos, ensure that the
14405         iterator advances to the next line if the current line ends in a
14406         continued tab.
14408 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
14410         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
14411         member to point to cmp_from.
14413         * xdisp.c: Doc fix for references to gidx data member.
14415 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
14417         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
14419 2008-09-07  Kenichi Handa  <handa@m17n.org>
14421         * composite.c (FORWARD_CHAR): Check STOP after
14422         incrementing (POSITION).pos.
14424 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
14426         * process.c (Fsystem_process_attributes): Doc fix.
14428 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
14430         * keyboard.c (Ftop_level): Doc fix.
14432 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
14434         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
14435         minibuffer, don't let lower part of menu invade the echo area.
14437         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
14438         "char *q" to access menu text and advance through it.  Revert the
14439         change that displayed ">" instead of ASCII character 0x10.
14441 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
14443         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
14444         toggle boxes and radio buttons on MS-DOS as well.
14446 2008-09-05  Kenichi Handa  <handa@m17n.org>
14448         * composite.c (autocmp_chars): Check lookback count.
14449         (composition_compute_stop_pos): Set cmp_it->lookback.
14450         (composition_reseat_it): Check lookback count.
14451         (struct position_record): New struct.
14452         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
14453         (find_automatic_composition): New function.
14454         (composition_adjust_point): Use find_automatic_composition.
14456         * dispextern.h (struct composition_it): New member lookback.
14458 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
14460         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
14461         if moving by a single line.
14463 2008-09-02  Andreas Schwab  <schwab@suse.de>
14465         * xterm.c (x_delete_display): Fix merge error.
14467         * fileio.c (Fexpand_file_name): Remove unused variables.
14469 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
14471         * fileio.c (Fexpand_file_name): Copy argument `name' into local
14472         storage on all platforms, not just on DOS_NT.
14474 2008-09-02  Jason Rumney  <jasonr@gnu.org>
14476         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
14477         Ensure mouse is not grabbed after menu is finished.
14479 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
14481         * xfaces.c (Finternal_set_alternative_font_family_alist)
14482         (Finternal_set_alternative_font_registry_alist): Properly copy
14483         entire alist structure.
14485 2008-09-01  Kenichi Handa  <handa@m17n.org>
14487         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
14488         representative chars of the script is a vector.
14489         (ftfont_list): Handle the case where the representative chars of
14490         the script is a vector.
14492         * character.c (syms_of_character): Docstring of
14493         script-representative-chars fixed.
14495 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
14497         * msdos.c (BUILD_CHAR_GLYPH): New macro.
14498         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
14499         the menu.  Allocate larger buffer for `text', to account for
14500         possible ^C characters.
14502 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
14504         * xdisp.c (prepare_menu_bars): Don't call
14505         Vwindow_size_change_functions with arg Qt.
14507 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
14509         * font.h (font_range):
14510         * fileio.c (report_file_error):
14511         * composite.c (composition_update_it): Yet another int/Lisp_Object
14512         mixup (YAILOM).
14514 2008-08-30  Glenn Morris  <rgm@gnu.org>
14516         * data.c (Fmake_variable_frame_local): Doc fix.
14518         * frame.c (Fmodify_frame_parameters): Doc fix.
14520 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
14522         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
14523         needed by GetTokenInformation.
14524         (w32_system_process_attributes): Check return values of all system
14525         APIs.
14527         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
14528         only when the state changes.
14529         (IT_update_begin, IT_update_end): Add termscript trace.
14531         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
14532         clipboard is unavailable.  Set dst to NULL if it doesn't point to
14533         malloc'ed data.
14534         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
14535         passing random values to xfree.
14537         * dispnew.c (init_display): Set `tty's association in frame's
14538         parameters alist to the name of the terminal device, if that is known.
14540 2008-08-29  Jason Rumney  <jasonr@gnu.org>
14542         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
14544 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
14546         * composite.c (fill_gstring_body): Avoid compiler warnings.
14548         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
14549         LGLYPH_SET_CODE to avoid compiler warnings.
14551         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
14553         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
14555         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
14556         LGLYPH_SET_CODE.
14558 2008-08-29  Kenichi Handa  <handa@m17n.org>
14560         * fileio.c (report_file_error): Don't downcase the first character
14561         of errstring if it is still unibyte.
14563 2008-08-29  Kenichi Handa  <handa@m17n.org>
14565         These changes are to re-implement the automatic composition so
14566         that it doesn't use text properties.
14568         * Makefile.in (ftfont.o): Depend on composite.h.
14569         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
14571         * character.h (Vunicode_category_table): Extern it.
14573         * character.c (Vunicode_category_table): New variable.
14574         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
14576         * chartab.c (optimize_sub_char_table): Perform more greedy
14577         optimization.
14579         * composite.h (enum composition_method):
14580         Delete COMPOSITION_WITH_GLYPH_STRING.
14581         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
14582         (Vcomposition_function_table): Extern it.
14583         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
14584         (composition_gstring_put_cache, composition_gstring_from_id)
14585         (composition_gstring_p, composition_gstring_width)
14586         (composition_compute_stop_pos, composition_reseat_it)
14587         (composition_update_it, composition_adjust_point): Extern them.
14588         (Fcomposition_get_gstring): EXFUN it.
14590         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
14591         (Vcomposition_function_table)
14592         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
14593         (gstring_hash_table, gstring_work, gstring_work_headers):
14594         New variables.
14595         (gstring_lookup_cache, composition_gstring_put_cache)
14596         (composition_gstring_from_id, composition_gstring_p)
14597         (composition_gstring_width, fill_gstring_header)
14598         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
14599         (composition_reseat_it, composition_update_it)
14600         (composition_adjust_point, Fcomposition_get_gstring): New functions.
14601         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
14602         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
14603         Defsubr composition_get_gstring.
14605         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
14606         cmp_id.
14607         (struct glyph_string): Delete the member gidx.  New members
14608         cmp_id, cmp_from, and cmp_to.
14609         (enum it_method): Delete GET_FROM_COMPOSITION.
14610         (struct composition_it): New struct.
14611         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
14612         Delete c, len, cmp_id, cmp_len in u.comp.
14614         * font.h (enum lgstring_indices): Delete it.
14615         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
14616         (enum lglyph_indices): Likewise.
14617         (font_range): Adjust extern.
14618         (font_fill_lglyph_metrics): Extern it.
14620         * font.c (QCf): New variable.
14621         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14622         (font_prepare_composition): Delete this function.
14623         (font_range): Type and arguments changed.
14624         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
14625         (font_fill_lglyph_metrics): New function.
14626         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
14627         (syms_of_font): DEFSYM QCf.  Delete defsubr for
14628         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
14629         Defsubr Sfont_shape_gstring.
14631         * fontset.h (font_for_char): Extern it.
14633         * fontset.c (font_for_char): New function.
14635         * ftfont.c: Include composite.h.
14636         (ftfont_resolve_generic_family): Add langset "en" to pattern.
14637         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14639         * indent.c: Include composite.h and dispextern.h.
14640         (check_composition): Delete this function.
14641         (scan_for_column): Handle composition by
14642         composition_compute_stop_pos, composition_reseat_it, and
14643         composition_update_it.
14644         (compute_motion): Likewise.
14645         (Fvertical_motion): Fix checking of composition.
14647         * keyboard.c (adjust_point_for_property): Check composition by
14648         composition_adjust_point.
14650         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
14651         struct glyph_string.
14653         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
14654         (append_composite_glyph): Adjust for the change of struct it and
14655         struct glyph.
14656         (produce_composite_glyph): Likewise.
14658         * w32term.c (x_draw_composite_glyph_string_foreground):
14659         Adjust for the change of struct glyph_string.
14660         (x_draw_glyph_string): Likewise.
14662         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
14663         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
14665         * xdisp.c: Include font.h.
14666         (it_props): Delete the entry for Qauto_composed.
14667         (init_iterator): Initialize it->cmp_it.id to -1.
14668         (compute_stop_pos): Call composition_compute_stop_pos.
14669         (face_before_or_after_it_pos): Adjust for the change of struct it.
14670         (handle_auto_composed_prop): Delete it.
14671         (handle_composition_prop): Handle only static composition.
14672         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
14673         from xassert.  Initialize it->cmp_it.stop_pos.
14674         (push_it): Adjust for the change of struct it.
14675         (pop_it): Likewise.
14676         (get_next_element): Delete next_element_from_composition.
14677         (CHAR_COMPOSED_P): New macro.
14678         (get_next_display_element): For automatic composition, get a face
14679         from the font in the glyph-string.
14680         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
14681         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
14682         (next_element_from_string): Check if the character at the current
14683         position is composed by CHAR_COMPOSED_P.
14684         (next_element_from_buffer): Likewise.
14685         (next_element_from_composition): Adjust for the change of struct it.
14686         Update it->cmp_it.
14687         (dump_glyph): Adjust for the change of struct glyph.
14688         (fill_composite_glyph_string): Adjust for the change of struct
14689         it and struct glyph.  Don't handle automatic composition here.
14690         (fill_gstring_glyph_string): New function.
14691         (x_get_glyph_overhangs): Handle automatic composition.
14692         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
14693         (BUILD_GSTRING_GLYPH_STRING): New macro.
14694         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
14695         automatic composition.
14696         (append_composite_glyph): Adjust for the change of struct it and
14697         struct glyph.
14698         (x_produce_glyphs): Adjust for the change of struct it.
14700         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14701         the change of struct glyph_string.
14702         (x_draw_glyph_string): Likewise.
14704 2008-08-29  Glenn Morris  <rgm@gnu.org>
14706         * buffer.c (word-wrap): Doc fix.
14707         * xdisp.c (truncate-partial-width-windows): Doc fix.
14708         Increase default to 50.
14710 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
14712         * xdisp.c (update_tool_bar_unwind): New function.
14713         (update_tool_bar): Temporarily set selected frame before building
14714         tool-bar items.
14716 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
14718         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
14719         snprintf, respectively.
14720         (xd_append_arg): Convert strings with Fstring_make_unibyte.
14722 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
14724         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
14725         LDFLAGS to GNUstep CC invocation.
14727 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
14729         * indent.c (Fvertical_motion): Revert last change.  Handle the
14730         general case where we are moving forward, and PT spans multiple
14731         screen lines.
14733         * eval.c (find_handler_clause): Temporarily increase
14734         max-lisp-eval-depth while printing the backtrace buffer, to
14735         guarantee that help-mode code can run.
14737 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
14739         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
14740         colors under -rv.
14741         (IT_set_frame_parameters): Don't swap foreground and background
14742         colors if `(reverse . t)' is present in the frame properties.
14743         (internal_terminal_init): Call init_frame_faces only for the
14744         initial frame.
14746 2008-08-27  Andreas Schwab  <schwab@suse.de>
14748         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
14750 2008-08-27  Andreas Schwab  <schwab@suse.de>
14752         * search.c (search_buffer): Set char_base to zero only at the end.
14754 2008-08-27  Kenichi Handa  <handa@m17n.org>
14756         * fileio.c (report_file_error): Fix handling of multibyte error string.
14758 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
14760         * xterm.c (x_term_init): Temporarily hide the partially
14761         initialized terminal while calling vendor-specific-keysyms.
14763 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
14765         * msdos.c (internal_terminal_init): Most initializations done only
14766         once, especially initial_screen_colors[] and termscript open.
14768 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
14770         * eval.c (Fcondition_case): Doc fix.
14772         * widgetprv.h (EmacsFramePart): Change font member to the new font
14773         struct.
14775         * widget.c: Include character.h and font.h for XSETFONT.
14776         (setup_frame_gcs): Compute X font id from font struct, just once.
14778 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
14780         * term.c (get_named_tty): Fix last change.
14782 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
14784         * indent.c (Fvertical_motion): If moving forward starting from a
14785         multi-line string, move the iterator to the last line of that string.
14787 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
14789         * frame.c (do_switch_frame): Mark previously displayed frame as
14790         obscured for FRAME_MSDOS_P frames as well.
14792 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
14794         * frame.c (make_terminal_frame): Initialize f->terminal,
14795         f->terminal->reference_count, and scroll bars on MS-DOS as well.
14796         Set the top frame to newly created frame.
14797         (Fmake_terminal_frame): Reuse the_only_display_info.
14799         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
14800         estimating available memory.
14802 2008-08-23  David Reitter  <david.reitter@gmail.com>
14804         * nsterm.m (ns_draw_window_cursor): Don't call
14805         NSDisableScreenUpdates and NSEnableScreenUpdates on
14806         non-NS_IMPL_COCOA systems.
14808 2008-08-23  Andreas Schwab  <schwab@suse.de>
14810         * process.c (procfs_system_process_attributes): Fix use of
14811         uninitialized variables.
14813 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
14815         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
14817         * dispnew.c (init_display): Remove MS-DOS specific conditions for
14818         calling tty-set-up-initial-frame-faces.
14820         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
14821         Allow MSDOS frames along with X frames.
14823         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
14824         addition to output_termcap.
14826         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
14828         * termchar.h (FRAME_TTY): Support output_msdos_raw.
14829         (struct tty_display_info) [MSDOS]: Add fields related to mouse
14830         highlight.
14832         * process.c [!subprocesses]: Define QCname.
14833         (syms_of_process): Intern and staticpro it.
14835         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
14836         Adjust for changes in encoding/decoding routines.
14837         Use encode_coding_object and decode_coding_object instead of
14838         encode_coding and decode_coding.
14840         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
14842         * dosfns.c: Include frame.h before termhooks.h.
14843         (dos_cleanup): Use CURTTY ()->termscript instead of a global
14844         variable termscript.
14846         * s/msdos.h (USER_FULL_NAME): Define.
14847         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
14849         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
14850         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
14851         pw->pw_gecos.
14853         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
14854         SELECTED_FRAME as additional (1st) argument.
14855         (tty_read_avail_input): Handle output_msdos_raw in
14856         addition to output_termcap.
14858         * msdos.c: Include frame.h before termhooks.h.
14859         (mouse_on, mouse_off, mouse_moveto, mouse_init)
14860         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
14861         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
14862         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
14863         (IT_set_terminal_modes, IT_reset_terminal_modes)
14864         (IT_set_frame_parameters): Use tty->termscript instead of a global
14865         variable termscript.
14866         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
14867         global variable terminal_coding.  Don't refer to
14868         Vnonascii_translation_table.
14869         (internal_terminal_init): Set Vwindow_system in current_kboard.
14870         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
14871         Announce date and time of session start, if termscript is open.
14872         Don't zero out the_only_display_info (it is done in
14873         term.c:init_tty).  Open termscript only of not already open.
14874         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
14875         here instead of dos_ttraw.  Don't initialize display if this is an
14876         initial tty.  Don't set FRAME_FONT.
14877         (Vwindow_system_version): Bump to 23.
14878         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
14879         is available, set up mouse_position_hook.
14880         (dos_ttraw, IT_set_terminal_modes): If called with initial
14881         terminal, do nothing.
14882         (IT_set_frame_parameters): Handle the Qtty_type frame
14883         parameter by calling internal_terminal_init.
14884         (dos_set_window_size, show_mouse_face)
14885         (clear_mouse_face, IT_note_mode_line_highlight)
14886         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
14887         (dos_rawgetc): Use tty_display_info instead of x_display_info.
14888         (initialize_msdos_display): New function.
14889         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
14890         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
14891         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
14892         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
14893         Accept additional argument: a pointer to a frame.  Update all callers.
14894         (request_sigio, unrequest_sigio): Don't define, now defined on
14895         sysdep.c.
14896         (IT_write_glyphs): Rewrite to use encode_terminal_code.
14898         * term.c [MSDOS]: Include msdos.h.
14899         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
14900         conditional to DOS_NT.  Allow only one call to this function in a
14901         session.  Don't allocate a new struct tty_display_info; instead,
14902         reuse the_only_display_info.  Call get_tty_size to get screen
14903         dimensions.  Call init_baud_rate to set bad_rate.
14904         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
14905         (Fsuspend_tty) [MSDOS]: Don't close input and output.
14906         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
14907         (get_tty_terminal, get_named_tty, Ftty_type)
14908         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
14909         output_termcap.
14910         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
14911         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
14912         only when subprocesses are supported.
14914         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
14915         f->output_data.x.
14916         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
14917         terminal devices.
14919         * msdos.h: Remove definition of struct x_display_info and struct
14920         x_output.
14921         (FRAME_FONT): Use output_data.tty.
14922         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
14923         (struct x_display_info): Rename from display_info.  Update all users in
14924         msdos.c.
14925         (struct x_output): Remove background_pixel and foreground_pixel.
14926         (the_only_display_info): Rename from the_only_x_display.
14927         (dos_ttraw): Update prototype.
14929         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
14930         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
14932 2008-08-23  Jason Rumney  <jasonr@gnu.org>
14934         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
14935         (fn_TIFFSetDirectory): New library function used.
14936         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
14937         (tiff_load): Use :index to select among multiple images.  Set count
14938         property when multiple images exist.
14939         (gif_format): Use :index, not :image.
14941 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
14943         * xdisp.c (try_scrolling): Check INT_MAX instead of
14944         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
14945         to obtain INT_MAX.
14947 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
14949         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
14951 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
14953         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
14954         GNUstep library location.
14956 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
14958         * xfaces.c (x_update_menu_appearance): Check validity of menu font
14959         before using it.
14961         * puresize.h (BASE_PURESIZE): Increase to 1250000.
14963 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
14965         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
14966         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
14967         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
14968         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
14969         (EmacsApp-cursor_blink_handler): Remove declaration.
14970         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
14971         match 01 Feb 2008 changes in xterm.c.
14972         (ns_read_socket): Add cast to avoid warning.
14973         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
14974         GNUstep.
14976 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
14978         * xselect.c (x_get_foreign_selection): Return nil if desired
14979         selection could not be obtained, instead of signalling an error.
14981 2008-08-20  David Reitter  <david.reitter@gmail.com>
14983         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
14984         * nsterm.m: Remove ns-specific code for cursor blinking.
14985         (ns_draw_window_cursor): Clear cursor properly rather than
14986         redrawing the area.  Respect width of bar cursors.
14987         These changes enable the use of generic blink-cursor-mode and
14988         generic cursor types in NS and support smooth cursor movements (do
14989         not blink off after command).
14990         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
14991         Nextstep, too.
14993 2008-08-19  Kenichi Handa  <handa@m17n.org>
14995         * font.c (Vfont_log_deferred): New variable.
14996         (font_add_log): Check Vfont_log_deferred.
14997         (font_deferred_log): New function.
14999         * font.h (font_deferred_log): Extern it.
15001         * fontset.c (reorder_font_vector): Use encoding charset of fonts
15002         for sorting.
15003         (face_for_char): Use deferred log.
15005 2008-08-18  Kenichi Handa  <handa@m17n.org>
15007         * fontset.c (face_for_char): Add font log.
15009         * font.c (font_add_log): Add the font properties :script, :lang,
15010         and :otf in the log.
15012 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
15014         * xdisp.c: Remove dead code.
15015         (handle_invisible_prop, next_overlay_string): Defer call to
15016         setup_for_ellipsis.
15017         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
15019 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
15021         * xfaces.c (lookup_derived_face): Properly handle possible zero
15022         return value of get_lface_attributes.
15023         (merge_faces): Don't tell lookup_derived_face to signal an error
15024         if face is not found.
15026         * dired.c (Fdirectory_files): Doc fix.
15028         * process.c (make_process): Initialize kill_without_query struct
15029         member.
15031 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
15033         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
15034         Alternative calculation of totphys for Visual Studio 6.
15036         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
15038         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
15039         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
15040         All users changed.
15041         (stat): Only root directory passed to GetDriveType.  Allow RAM
15042         disk as well as local fixed disk when w32-get-true-file-attributes
15043         is set to `local'.
15044         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
15045         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
15046         (w32_cached_id, w32_add_to_cache): New functions.
15047         (get_name_and_id): Look account names in the cache before calling
15048         lookup_account_sid.
15049         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
15050         New initialization flags.
15051         (globals_of_w32): Initialize them to zero.
15052         (w32_system_process_attributes): Use w32_cached_id and
15053         w32_add_to_cache.
15055 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
15057         * lread.c (Fread_char, Fread_char_exclusive): If no character
15058         event is read before timeout is reached, return nil, rather than
15059         converting to a number.
15061 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
15063         * fns.c (use_dialog_box): Doc fix.
15065         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
15066         on OS X.
15068 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
15070         * frame.c (Qns_parse_geometry): New var.
15071         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
15073 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
15075         * xdisp.c (x_produce_glyphs): Handle the case when font has no
15076         space character in calculating tabs.
15078 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
15080         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
15082 2008-08-10  Glenn Morris  <rgm@gnu.org>
15084         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
15085         silence gcc "limited range of data type" warnings in some
15086         make_fixnum_or_float calls.
15088 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
15090         * w32.c (w32_system_process_attributes): If the process does not
15091         exist, return nil.
15093         * w32.c: Include thelp32.h, psapi.h and coding.h.
15094         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
15095         declarations.
15096         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
15097         (Process32Next_Proc): New typedefs.
15098         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
15099         (g_b_init_process32_next, g_b_init_open_thread_token)
15100         (g_b_init_impersonate_self, g_b_init_revert_to_self)
15101         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
15102         (g_b_init_get_process_working_set_size)
15103         (g_b_init_global_memory_status_ex): New static variables.
15104         (globals_of_w32): Initialize them.
15105         (create_toolhelp32_snapshot, process32_first, process32_next)
15106         (open_thread_token, impersonate_self, revert_to_self)
15107         (get_process_memory_info, get_process_working_set_size)
15108         (global_memory_status, global_memory_status_ex): New wrapper
15109         functions.
15110         (w32_list_system_processes, w32_system_process_attributes)
15111         (enable_privilege, restore_privilege, ltime, process_times):
15112         New functions.
15113         (convert_time_raw): New function.
15114         (convert_time): Remove conversion of FILETIME into time in 100
15115         nsec units, call convert_time_raw instead.
15117         * process.h (w32_list_system_processes, w32_system_process_attributes):
15118         Add prototypes.
15119         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
15120         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
15121         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
15122         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
15124         * process.c (Fsystem_process_attributes): Doc fix.
15126 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
15128         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
15129         a continued multi-char glyph; if so, advance to the actual glyph.
15131 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
15133         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
15135         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
15136         (.m.o): Use it.
15137         * config.in: Regenerate.
15139 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
15141         * xdisp.c (redisplay_window): Revert last change.
15142         (try_window): Check bottom scroll margin too.
15144 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
15146         * config.in: Regenerate.
15148         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
15149         -list-load-path-shadows'.
15150         (nsgui.h): Reduce number of things depending on it.
15152 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
15154         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
15155         instead of window-end which does the wrong thing at eob.
15156         (try_cursor_movement): Minor optimization.
15157         (redisplay_window): If scroll margin is defined, don't assume
15158         window doesn't need scrolling.
15160 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
15162         * config.in: Regenerate.
15164         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
15165         (mostlyclean): Don't delete *.d under NS.
15167         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
15169 2008-08-06  Kenichi Handa  <handa@m17n.org>
15171         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
15173 2008-08-06  Andreas Schwab  <schwab@suse.de>
15175         * config.in: Regenerate.
15177 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
15179         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
15180         forcing a window start.
15182         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
15183         (auto_save_1): Update modtime when auto-save-list-file-name is on.
15185 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
15187         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
15188         argument.
15190 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
15192         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
15193         <scroll-down-aggressively, before-change-functions>:
15194         <after-change-functions>: Reflow docstrings.
15196 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
15197             Ken Raeburn  <raeburn@gnu.org>
15199         Dock menu customization, based on a patch by Ken Raeburn, plus some
15200         other fixes.
15201         * nsmenu.m (dockMenu): New variable.
15202         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
15204         * nsterm.h (dockMenu): Declare.
15206         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
15207         (ns_term_init): Initialize dockMenu.
15208         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
15209         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
15210         left.
15212         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
15214 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
15216         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
15218         * config.in: Regenerate.
15220 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
15222         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
15224 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
15226         * nsterm.h (find_and_call_menu_selection): Fix prototype.
15228 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
15230         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
15232         * keyboard.h: Comment an #endif.
15234         * lisp.h (have_menus_p): Adjust comment.
15236         * menu.c (find_and_return_menu_selection): Fix comparison with
15237         client_data.
15239         * nsmenu.m (popup_activated_flag): New variable.
15240         (popup_activated): New function.
15241         (menu-or-popup-active-p): New exported lisp definition.
15242         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
15243         when popup done.
15244         (ns_popup_dialog): Set popup_activated_flag.
15246         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
15247         version for GNUstep (handled by conditional typedef in nsterm.m).
15248         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
15249         in rgb.txt).
15251         * process.c (init_process): Use DARWIN_OS, not DARWIN.
15253         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
15255         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
15257         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
15258         shortcircuit if popup_activated like GTK and X toolkit.
15260         * m/inter386.h: Change DARWIN to DARWIN_OS.
15262         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
15263         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
15264         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
15265         Expand comment on NO_SOCK_SIGIO.
15267 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
15269         * nsterm.m (windowDidResize): Remove stopModal call.
15271 2008-08-03  Andreas Schwab  <schwab@suse.de>
15273         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
15274         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
15276 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
15278         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
15279         Don't use uninitialized pointer variable when using getrlimit.
15281 2008-08-02  Jason Rumney  <jasonr@gnu.org>
15283         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
15285 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
15287         * alloc.c (NSTATICS): Bump to 0x640.
15289         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
15291         * lisp.h: Add prototype for directory_files_internal.
15293         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
15294         New functions.
15295         (syms_of_process): Defsubr them.  Add initializations for various
15296         Q* symbols used in procfs_system_process_attributes.
15297         (procfs_list_system_processes, procfs_system_process_attributes)
15298         [HAVE_PROCFS]: New functions.
15299         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
15300         (procfs_get_total_memory): New functions.
15302 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
15304         * xfaces.c (Fx_load_color_file): Fix previous change;
15305         it is #ifdef WINDOWSNT, not WINDOWS_NT.
15307 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
15309         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
15311 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
15313         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
15315 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
15317         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
15319         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
15320         define NSApplicationDelegateReplySuccess.
15321         (EmacsView -converstationIdentifier): Use long instead of
15322         NSInteger for GNUstep, since it doesn't have NSInteger.
15324         * xmenu.c: Revert last change.
15326         * keyboard.h: Fix last change.
15328 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
15330         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
15331         on Windows.
15333 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
15335         Warning clearing and clean-up in NS port.
15336         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
15337         Add prototypes.
15338         * nsgui.h (FACE_DEFAULT): Remove, unused.
15339         (XGCValues): Change colors to unsigned long.
15340         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
15341         nsterm.m.
15342         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
15343         (ns_list_fonts): Remove, unused.
15344         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
15345         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
15346         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
15347         (nsfont_draw): Compare face colors to 0, not nil.
15348         * nsmenu.m (struct widget_value): Drop unneeded declaration.
15349         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
15350         (-addSubmenuWithTitle:): Use NSMenuItem class.
15351         (ns_popup_menu): Use NO, not NULL, for enabled setting.
15352         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
15353         (ns_clip_to_row): Make gc arg a BOOL.
15354         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
15355         ns_clip_to_row() call.
15356         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
15357         used).  Cast FRAME_FONT assignments.
15358         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
15359         (ns_string_to_lispmod): Change arg to const char.
15360         (ns_term_init): Use NSMenuItem class.
15361         (EmacsApp -openFile:): Move to different section of file.
15362         (EmacsApp -application:openFiles:): Don't return a value, call
15363         -replyToOpenOrPrint:.
15364         (EmacsView -keyDown:): Fix up cast.
15365         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
15366         (EmacsView -menuDown:): Cast tag in call to
15367         find_and_call_menu_selection().
15368         (ns_list_fonts): Remove, unused.
15369         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
15370         (ns_fontname_to_xlfd): Make static.
15371         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
15372         Remove prototypes (now in keyboard.h).
15373         (next_menubar_widget_id): Remove, unused.
15374         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
15375         Remove prototypes (now in keyboard.h).
15376         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
15378 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
15380         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
15381         (floatfns.o): Depend on syssignal.h.
15382         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
15384         * systty.h: Fix previous change that removed BSD_TERMIOS.
15385         Add comments to #ifdefs.
15387 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
15389         * w32fns.c (w32-load-color-file): Remove.
15390         (x-open-connection): Use renamed Fx_load_color_file.
15391         * xfaces.c (x-load-color-file): Add.
15392         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
15393         Emacs.clr.
15394         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
15396 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
15398         * dbusbind.c (Fdbus_call_method_asynchronously)
15399         (Fdbus_method_error_internal): New defuns.
15400         (xd_read_message): Handle also reply messages.
15401         (Vdbus_registered_functions_table): Extend docstring.
15403 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
15405         * keyboard.c (gobble_input): Fix previous change.
15407 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
15409         * bitmaps/README:
15410         * xfns.c:
15411         * termcap.c:
15412         * term.c:
15413         * syswait.h:
15414         * systty.h:
15415         * systime.h:
15416         * syssignal.h:
15417         * sysdep.c:
15418         * process.h:
15419         * process.c:
15420         * print.c:
15421         * ndir.h:
15422         * lread.c:
15423         * keyboard.c:
15424         * getpagesize.h:
15425         * floatfns.c:
15426         * fileio.c:
15427         * emacs.c:
15428         * doc.c:
15429         * dispnew.c:
15430         * dired.c:
15431         * data.c:
15432         * callproc.c:
15433         * buffer.c:
15434         * README:
15435         * Makefile.in:
15436         * s/template.h:
15437         * s/msdos.h:
15438         * m/vax.h: Remove VMS support.
15439         * s/vms.h:
15440         * vlimit.h:
15441         * uaf.h:
15442         * temacs.opt:
15443         * param.h:
15444         * ioctl.h: Remove file.
15446 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
15448         * s/ms-w32.h (MULTI_KBOARD): Remove.
15449         * xterm.c:
15450         * xselect.c:
15451         * xfns.c:
15452         * window.c:
15453         * w32term.c:
15454         * w32fns.c:
15455         * terminal.c:
15456         * termhooks.h:
15457         * term.c:
15458         * sysdep.c:
15459         * keyboard.h:
15460         * keyboard.c:
15461         * frame.h:
15462         * frame.c:
15463         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
15464         * config.in: Regenerate.
15466 2008-07-30  Jason Rumney  <jasonr@gnu.org>
15468         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
15470         * w32font.c (w32font_encode_char): Leave as unicode if in range.
15471         (w32font_open_internal): Get unicode version of textmetrics.
15472         Don't enable or disable glyph indices here.
15473         (w32font_open): Disable use of glyph indices.
15475         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
15477 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
15479         * minibuf.c (Vread_buffer_function): Doc fix.
15481 2008-07-30  John Paul Wallington  <jpw@pobox.com>
15483         * minibuf.c (read_buffer_completion_ignore_case): New var.
15484         (Fread_buffer): Use it.
15486 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
15488         * systty.h (sensemode): Remove empty #if.  Remove reference to
15489         BSD_TERMIOS, unused.
15491         * sysdep.c: Remove reference to DGUX.
15492         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
15494         * config.in: Regenerate.
15496 2008-07-30  Jason Rumney  <jasonr@gnu.org>
15498         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
15500 2008-07-29  Jason Rumney  <jasonr@gnu.org>
15502         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
15503         is populated.
15504         (uniscribe_encode_char): Always use uniscribe.
15505         Avoid using context if cache is populated.
15507 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
15509         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
15510         open menu.
15512         * gtkutil.c (menu_nav_ended): Remove.
15513         (create_menus): Remove signal connect for menu_nav_ended.
15515 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
15517         * xdisp.c (redisplay_window): Check return value of
15518         compute_window_start_on_continuation_line before forcing a window
15519         start.
15521 2008-07-28  Jason Rumney  <jasonr@gnu.org>
15523         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
15525         * w32term.c (w32_enable_unicode_output, cleartype_active):
15526         Remove obsolete display options.
15527         (x_draw_glyph_string_background): Don't use old cleartype_active
15528         workaround.
15529         (w32_initialize): Remove cleartype_active initialization.
15530         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
15532 2008-07-28  Andreas Schwab  <schwab@suse.de>
15534         * lisp.h (init_weak_hash_tables, syms_of_font)
15535         (xd_read_queued_messages, syms_of_dbusbind): Declare.
15536         (remove_hash_entry): Don't declare.
15537         * eval.c (maybe_call_debugger): Make static and move before use.
15538         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
15539         * xdisp.c: Include "gtkutil.h" if USE_GTK.
15540         * xterm.h (x_set_frame_alpha): Declare.
15542 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
15544         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
15545         (create_menus): Connect selection-done to menu_nav_ended.
15547 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
15549         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
15550         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
15551         parameter with read of 'alpha' one.
15552         (Qns_frame_parameter): Remove.
15553         * nsselect.m (selection-coding-system)
15554         (next-selection-coding-system, Vselection_coding_system)
15555         (Vnext_selection_coding_system): Drop.
15557 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
15559         * nsfns.m (do-applescript, do_applescript): Rename to
15560         ns-do-applescript, ns_do_applescript, and move within file.
15562 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
15564         Remove support for Mac Carbon.
15565         * mactoolbox.c:
15566         * macterm.h:
15567         * macterm.c:
15568         * macselect.c:
15569         * macmenu.c:
15570         * macgui.h:
15571         * macfns.c:
15572         * mac.c: Remove file.
15573         * s/darwin.h:
15574         * m/intel386.h:
15575         * xfaces.c:
15576         * xdisp.c:
15577         * window.c:
15578         * tparam.c:
15579         * termhooks.h:
15580         * termcap.c:
15581         * term.c:
15582         * syssignal.h:
15583         * sysselect.h:
15584         * sysdep.c:
15585         * process.c:
15586         * lread.c:
15587         * lisp.h:
15588         * keyboard.c:
15589         * image.c:
15590         * fringe.c:
15591         * frame.h:
15592         * frame.c:
15593         * fontset.c:
15594         * font.h:
15595         * font.c:
15596         * fns.c:
15597         * fileio.c:
15598         * emacs.c:
15599         * dispnew.c:
15600         * dispextern.h:
15601         * config.in:
15602         * atimer.c:
15603         * Makefile.in: Remove code for Carbon.
15605 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15607         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
15609 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15611         * macterm.h (kCGBitmapByteOrder32Host): New define for
15612         non-universal SDKs.
15614         * image.c (mac_create_cg_image_from_image, image_load_image_io)
15615         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
15617         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
15618         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
15620 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
15622         * w32inevt.c: Include dispextern.h.
15624 2008-07-26  Andreas Schwab  <schwab@suse.de>
15626         * print.c (print_object): Fix off-by-one in last change.
15628 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
15630         * term.c (syms_of_term): Don't initialize default_orig_pair,
15631         default_set_foreground and default_set_background on Windows.
15633 2008-07-25  Jason Rumney  <jasonr@gnu.org>
15635         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
15636         ScriptItemize.  Clean up return value checking.  Remove unused
15637         variables.
15638         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
15639         shaping engine.
15641         * w32font.c (w32font_has_char): Handle the case where we can't
15642         determine the script for a character.
15644 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15646         * term.c (syms_of_term): Initialize default_orig_pair,
15647         default_set_foreground, and default_set_background.
15649         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15650         clash (bug#86).
15651         (getloadavg): Callers changed.
15653         * image.c (svg_load_image): Fix last change.
15654         (svg_load_image): Use rsvg_handle_get_dimensions to check that
15655         image size is valid.  Use g_object_unref instead of deprecated
15656         rsvg_handle_free to free rsvg handle.
15657         (x_from_xcolors): Don't initialize pixmap (silence compiler).
15659 2008-07-25  Jason Rumney  <jasonr@gnu.org>
15661         * w32font.c (w32font_encode_char): Encode characters outside BMP as
15662         surrogates before looking up glyph index.
15663         (w32font_text_extents): Encode as surrogates if falling back to
15664         functions that need UTF-16 wide chars.
15666         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
15667         BMP as surrogates before looking up glyph index.
15669 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15671         * image.c (svg_load_image): Check for failure in return value of
15672         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
15674 2008-07-25  Jason Rumney  <jasonr@gnu.org>
15676         * w32font.c (Fx_select_font): Reverse sense of second arg.
15678 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
15680         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
15681         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
15683         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
15684         (PURESIZE): Use it.
15686 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
15688         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
15689         * m/alpha.h (TEXT_END):
15690         * m/ibmrs6000.h (TEXT_END):
15691         * m/macppc.h (TEXT_END):
15692         * s/darwin.h (TEXT_END):
15693         * s/msdos.h (TEXT_END): Remove, unused.
15694         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
15695         * s/cygwin.h: Remove comment.
15697         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
15698         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
15699         * m/intel386.h (DOT_GLOBAL_START):
15700         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
15701         (USG): Remove, file not used on USG platforms.
15703         * Makefile.in (HAVE_X11): Remove empty #else.
15705 2008-07-24  Andreas Schwab  <schwab@suse.de>
15707         * fileio.c (Finsert_file_contents): Properly adjust undo list
15708         after format conversion.
15710 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
15712         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
15713         (menu_nav_ended): Remove.
15714         (create_menus): Remove signal connect for menu_nav_ended.
15715         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
15716         create_menus.
15717         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
15719 2008-07-23  Jason Rumney  <jasonr@gnu.org>
15721         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
15722         with opened font.
15723         (w32font_open): Set font type to gdi.
15725         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
15727 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
15729         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
15730         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
15731         defines it.
15732         * unexec.c (ADDR_CORRECT): Define unconditionally.
15734         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
15736         * unexec.c: Remove code depending on !COFF and USG, the file is
15737         not used for such systems.
15739         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
15740         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
15741         (LD_SWITCH_SYSTEM_1): Remove, update users.
15743         * s/darwin.h (DATA_END):
15744         * m/intel386.h (DATA_END):
15745         * m/ibmrs6000.h (DATA_END):
15746         * m/alpha.h (DATA_END): Remove, unused.
15748         * config.in: Regenerate.
15749         * s/ms-w32.h (subprocesses): Define unconditionally.
15750         * s/template.h (subprocesses): Update comment.
15751         * s/vms.h (subprocesses):
15752         * s/usg5-4.h (subprocesses):
15753         * s/hpux10-20.h (subprocesses):
15754         * s/gnu-linux.h (subprocesses):
15755         * s/cygwin.h (subprocesses):
15756         * s/bsd-common.h (subprocesses):
15757         * s/aix4-2.h (subprocesses):
15758         * s/darwin.h (subprocesses): Do not define, defined by default now.
15760         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
15761         Remove all references.
15762         (temacs): Add GNUstep specific ld flags.
15764         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
15765         similarly to what X does.
15767 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
15769         * nsfns.m (x-list-fonts): Remove.
15770         (syms_of_nsfns): Drop the x-list-fonts declaration.
15771         * nsterm.m: Get rid of remaining "//" comments.
15773 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
15775         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
15777         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
15778         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
15779         (Fns_own_selection_internal, Fx_disown_selection_internal)
15780         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
15782         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
15783         ... */' style of docstrings.  Doc fixes.
15785 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
15787         * terminfo.c (UP, BC, PC): Undo previous change.
15789         * nsfns.m: Rename ns prefixed functions/variables to the
15790         corresponding x versions.  Update references.
15792 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
15794         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
15796 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
15798         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
15799         Remove forwarding functions.
15800         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
15801         non-static.
15802         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
15803         non-static.
15804         (ns_frame_parm_handlers): Use the new names.
15805         (syms_of_nsfns): Move to the end of file.
15807         * nsterm.m (syms_of_nsterm): Move to the end of file.
15809         * dispnew.c (init_display): Remove code for X10.
15811 2008-07-22  Jason Rumney  <jasonr@gnu.org>
15813         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
15814         bare drive.
15816 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
15818         * nsterm.m (syms_of_nsterm): Remove debugging println.
15820 2008-07-22  David Reitter  <david.reitter@gmail.com>
15822         * nsfns.m (do_applescript, F_do_applescript): NS version of the
15823         Carbon implementation of the same functionality: execute arbitrary
15824         AppleScript code.
15826 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
15828         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
15829         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
15830         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
15831         (Fx_display_mm_height, Fx_display_mm_width)
15832         (Fx_display_backing_store, Fx_display_visual_class)
15833         (Fx_display_save_under, Fx_open_connection)
15834         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
15835         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
15836         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15837         (Fx_display_pixel_width, Fx_display_pixel_height)
15838         (Fx_display_usable_bounds, Fx_display_planes)
15839         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
15840         ... */' style of docstrings.
15842 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
15844         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
15845         on this platform.
15846         (mips):
15847         * m/iris4d.h (mips): Do not define.
15848         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
15850         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
15852         * image.c:
15853         * nsfns.m:
15854         * nsselect.m:
15855         * nsterm.h:
15856         * nsterm.m: Rename ns prefixed functions/variables to the
15857         corresponding x versions.  Update references.
15859         * m/ibms390x.h (NO_REMAP): Do not undefine.
15861         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
15863 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
15865         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
15866         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
15867         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
15868         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
15869         (Fns_display_mm_height, Fns_display_mm_width)
15870         (Fns_display_backing_store, Fns_display_visual_class)
15871         (Fns_display_save_under, Fns_open_connection)
15872         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
15873         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
15874         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
15875         (Fns_display_pixel_width, Fns_display_pixel_height)
15876         (Fns_display_usable_bounds, Fx_display_planes)
15877         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
15879 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
15881         * print.c (print_object): Check print_depth before searching for
15882         circularities.
15884 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
15886         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
15887         only sprintf.
15889 2008-07-21  Kenichi Handa  <handa@m17n.org>
15891         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
15893 2008-07-20  Andreas Schwab  <schwab@suse.de>
15895         * syntax.c (find_start_pos, find_start_value)
15896         (find_start_value_byte, find_start_begv, find_defun_start)
15897         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
15899 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
15901         * s/sol2-3.h: Insert contents of s/sol2.h.
15902         (LD_SWITCH_SYSTEM): Remove redundant definition.
15903         * s/sol2.h: Remove, unused.
15905 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
15907         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
15909 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
15911         * Makefile.in (ns_appdir): Fix typo in find command.
15913 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
15915         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
15917         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
15918         added not supported anymore.
15920         * s/usg5-4-2.h (LIBS_SYSTEM):
15921         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
15923         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15924         * s/lynxos.h (GETPGRP_NO_ARG):
15925         * s/hpux10-20.h (NO_SIOCTL_H):
15926         * s/gnu.h (GETPGRP_NO_ARG):
15927         * s/gnu-linux.h (NO_SIOCTL_H):
15928         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
15929         * s/cygwin.h (GETPGRP_NO_ARG):
15930         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
15931         (C_DEBUG_SWITCH): Remove duplicate definition.
15933         * m/ibms390.h: Remove boilerplate comments.
15935         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
15937         * process.c (HAVE_SERIAL): Consolidate ifdefs.
15938         (wait_reading_process_output): Remove code for SunOS, platform not
15939         supported anymore.  Use SOLARIS2 instead of sun.
15941 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
15943         * font.c (font_open_by_name): Under NS, default lface height to zero.
15944         (font_open_for_lface): Under NS, set size based on frame fontsize.
15945         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
15946         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
15948 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
15950         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
15951         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
15952         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
15953         YES/NO.
15954         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
15955         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
15956         * Makefile.in (clean): Clear out build destination dir.
15958 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
15960         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
15961         xterm, xselect.
15962         * lisp.h: Remove declaration of hash_remove.
15963         * nsgui.h: Remove redefinitions of hash_remove.
15964         * fns.c (hash_remove): Rename to hash_remove_from_table.
15966 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
15968         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
15969         strdup() the family UTF8String before modifying it.
15971 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
15973         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
15974         NS_FACE_BACKGROUND with 0 instead of nil.
15975         * nsfont.m (nsfont_draw): Same.
15977 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
15979         * nsfns.m (ns_set_background_color): Fix crash.
15981 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
15983         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
15985 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
15987         * puresize.h (BASE_PURESIZE): Increase to 1240000.
15989 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15991         * gtkutil.c: Include <config.h> instead of "config.h".
15993         * lisp.h (Foverlay_buffer): Add EXFUN.
15995         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
15996         child process to complete child_setup.  Undo 2005-09-21 change.
15998         * s/darwin.h: Mention setsid after vfork.
16000 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16002         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
16003         Depend on macgui.h.
16005         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
16006         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
16008         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
16009         and f19.
16010         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
16012         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
16013         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
16014         Remove enumerators.
16016         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
16017         Check if FACE_FROM_ID returns NULL.
16019 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
16021         * w32inevt.c (change_frame_size): Remove extern declaration.
16022         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
16023         change_frame_size.
16025 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
16027         * getloadavg.c: Revert last change (2008-07-15).
16029 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
16031         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
16032         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
16033         from configure.
16035 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
16037         * s/sol2.h:
16038         * s/sol2-4.h: Reorganize conditionals.
16040         * ecrt0.c: Remove code depending on m68000, not used anymore.
16042         * fns.c (hash_remove): Make static.
16043         * lisp.h (hash_remove): Don't prototype.
16045         * m/ibmrs6000.h:
16046         * m/ibms390x.h:
16047         * m/macppc.h: Remove boilerplate comments.
16049         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
16050         Solaris, which does not need them.
16052         * m/vax.h: Remove comments about unsupported systems.
16054         * s/darwin.h: Reorganize ifdefs.
16056 2008-07-17  Andreas Schwab  <schwab@suse.de>
16058         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
16060 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
16062         Use SDATA.  Follow coding convention of placing operators at
16063         beginning of next line rather than end of previous line, and placing
16064         spaces around infix operators.
16066         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
16067         in case it was defined already.
16068         USE @GNUSTEP_MAKEFILES@ rather than envvars.
16069         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
16070         ns_default.
16071         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
16072         Lisp_Objects.
16073         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
16074         (ns_defined_color, ns_color_to_lisp): Declare.
16075         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
16076         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
16077         it's accepted even with USE_LISP_UNION_TYPE.
16078         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
16079         (update_frame_tool_bar): Remove apparently obsolete tests for
16080         non-integerness of f->tool_bar_lines.
16081         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
16082         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
16083         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
16084         (nsfont_open): Don't confuse NULL for Qnil.
16085         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
16086         * menu.h (find_and_call_menu_selection):
16087         * menu.c (find_and_call_menu_selection): Use just int for vector size.
16088         (find_and_return_menu_selection): Always return something.
16089         * frame.h: Include dispextern.h for Display_Info.
16090         (display_x_get_resource): Declare.
16092 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
16094         * syntax.c: Remove stdio.h include accidentally introduced in
16095         Emacs.app commit.
16096         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
16097         NS_IMPL_COCOA.
16098         * keyboard.c (handle_async_input, input_available_signal): Remove
16099         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
16101 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
16103         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
16104         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
16105         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
16106         Use SDATA.
16108         * keymap.c: Remove all NS-specific code.
16109         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
16110         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
16111         where_is_preferred_modifier, return a different value depending on how
16112         preferred is the binding.
16113         (where_is_internal): Adjust accordingly.
16114         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
16115         Adjust to new preferred_sequence_p.
16116         (syms_of_keymap): Declare `where-is-preferred-modifier'.
16117         * keyboard.c (parse_solitary_modifier): Not static any more.
16118         * keyboard.h (parse_solitary_modifier): Declare.
16120 2008-07-16  Andreas Schwab  <schwab@suse.de>
16122         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
16123         of easymenu.
16125 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
16127         * xdisp.c (move_it_in_display_line): Account for word wrap, so
16128         that we don't move off the line.
16130 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
16132         * keyboard.c (Qsuper): Remove.
16133         (parse_menu_item): Don't call where_is_internal specially for NS.
16135 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
16137         * s/gnu-linux.h: Remove boilerplate comments.
16139         * m/alpha.h (__ELF__): Consolidate conditions.
16141         * m/m68k.h (linux): Use GNU_LINUX instead.
16142         Remove boilerplate comments.
16144         * m/intel386.h: Undo refactoring from previous change.
16145         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
16146         too, remove dead code.
16147         (linux): Use GNU_LINUX instead.
16149 2008-07-16  Jason Rumney  <jasonr@gnu.org>
16151         * w32gui.h: Repeat 26 June changes lost by last change.
16153 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
16155         * systty.h: Remove code for Aix on 386, unsupported platform.
16157         * s/ms-w32.h: Remove boilerplate comments.
16158         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
16160         * s/gnu-linux.h (TERM): Remove support.
16161         (HAVE_SYSVIPC): Remove, unused.
16162         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
16163         for this system.
16165         * process.c: Remove support for IRIS, unused.
16166         Remove support for TERM, not relevant anymore.
16168         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
16169         used with the definition.
16171         * s/aix4-2.h (static): Do not undef.
16173         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
16174         only used on Aix.
16175         (HAVE_SYSVIPC): Remove, unused.
16177         * m/hp800.h (CANNOT_DUMP): Do not undef.
16179         * m/alpha.h: Fix comment.
16181         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
16182         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
16183         used by this configuration.
16184         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
16185         * unexec.c: Remove code depending on HPUX and
16186         USG_SHARED_LIBRARIES, not used with this file.  Remove code
16187         depending on IRIS, unused.  Remove if 0-ed code.
16189         * s/template.h: Remove comments about static.
16191         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
16192         Remove if 0-ed code.
16193         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
16194         were the same as the default.
16195         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
16196         Remove boilerplate comments.
16197         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
16198         (HAVE_SYSVIPC): Remove, unused.
16199         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
16201         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16202         Remove boilerplate comments.
16203         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16204         Remove boilerplate comments.
16205         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
16206         Remove boilerplate comments.
16207         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
16209         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
16210         USG systems which do not use DATA_SEG_BITS.
16211         Refactor code.  Remove boilerplate comments.
16213         * m/ibms390.h:
16214         * m/m68k.h:
16215         * s/bsd-common.h:
16216         * s/cygwin.h:
16217         * s/darwin.h:
16218         * s/freebsd.h:
16219         * s/gnu.h:
16220         * s/msdos.h: Remove boilerplate comments.
16222         * m/iris4d.h: Remove boilerplate comments and code for systems that
16223         do not use this file.
16224         (IRIS_4D): Remove, unused.
16226         * m/mips.h: Remove boilerplate comments and code for systems that
16227         do not use this file.
16228         (SIGN_EXTEND_CHAR):
16229         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
16230         * unexmips.c: Remove file, unused.
16232         * editfns.c (Fuser_full_name): Replace the only use of
16233         USER_FULL_NAME with its value.
16234         * config.in: Regenerate.
16236 2008-07-16  David Reitter  <david.reitter@gmail.com>
16238         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
16239         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
16241 2008-07-16  Glenn Morris  <rgm@gnu.org>
16243         * emacs.c (system-type): Doc fix.
16245 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
16247         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
16248         If the cache doesn't work, let's fix it, rather than work around it.
16250 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
16252         * Makefile.in: Correct additions for nsfont.o in last commit.
16253         * nsfont.m: New file (forgot last commit).
16255 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
16257         * callproc.c (set_initial_environment):
16258         Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
16259         batch-compiling for bootstrap).
16261 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
16262             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16264         * frame.c (make_initial_frame): Call init_frame_faces(f) in
16265         CANNOT_DUMP case -- fix crash due to different init order.
16267 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
16269         Changes and additions for NeXTstep windowing system (Cocoa and
16270         GNUstep) support.
16272         * Makefile.in:
16273         * config.in: Support defines and build commands for NS port.
16274         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
16275         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
16276         * dispextern.h: Include nsgui.h and add needed typedefs under NS
16277         windowing.
16278         (struct face): Add synth_ital field.
16279         * dispnew.c: Include nsterm.h when compiling under NS windowing.
16280         (init_display): Initialize Vinitial_window_system to "ns" when so
16281         compiled.
16282         * emacs.c: Include GSConfig.h when compiling under GNUstep.
16283         (display_arg): Use under NS.
16284         (main): Under NS, allocate autorelease pool and handle command line
16285         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
16286         (standard_args): Add NS-specific args.
16287         (shut_down_emacs): Shut down NS terminal if compiled under NS.
16288         * font.c (DEFAULT_ENCODING): New variable.
16289         (font_find_for_lface): Use it.
16290         (syms_of_font): Load syms_of_nsfont under NS.
16291         * font.h: Declare nsfont_driver when compiled under NS.
16292         * fontset.c: When compiling under NS, include nsterm.h.
16293         (fontset_from_font): Autoconstruct fontset under NS.
16294         * frame.c (various): Under NS, include nsterm.h, add Qns window system
16295         symbol, document and use it.
16296         (do_switch_frame): When for_deletion under Cocoa, add
16297         Fraise_frame(Qnil).
16298         (x_set_frame_parameters): Ensure font attribute changes are picked up.
16299         (x_get_arg): Allow "yes" and "no" as boolean values.
16300         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
16301         Qright under Cocoa.
16302         (focus-follows-mouse): Default to 0 under NS.
16303         * frame.h (enum output_method): Add output_ns.
16304         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
16305         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
16306         (FRAME_WINDOW_P): NS-specific definition.
16307         * fringe.c (max_used_fringe_bitmap): Make public.
16308         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
16309         (getloadavg): Use NeXT code under descendant OS's.
16310         * image.c (includes and header section, x_create_bitmap_from_data)
16311         (x_create_bitmap_from_file, free_bitmap_record, image_background)
16312         (image_background_transparent, x_clear_image_1)
16313         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
16314         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
16315         (x_to_xcolors, x_from_xcolors, x_disable_image)
16316         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
16317         other GUIs, including XPM support using code originally written for
16318         Carbon GUI.
16319         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
16320         using NS API.
16321         (image_ascent): Use font metrics macros instead of direct struct field
16322         access.
16323         * keyboard.c (includes): Add nsterm.h when compiling under NS.
16324         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
16325         Also, handle NS as GTK for menu bar purposes.
16326         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
16327         toolkit where they differ.
16328         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
16329         use cachelist, still needed under NS.
16330         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
16331         (struct widget_value): Define it here for menu.c.
16332         * keymap.c (includes): Include modifier internals.
16333         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
16334         NS.
16335         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
16336         support for preferring sequences using certain modifiers, specified by
16337         the FIRSTONLY argument.
16338         * lisp.h (hash_remove): Rename to avoid name clash when compiling
16339         under NS GNUstep implementation.
16340         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
16341         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
16342         * menu.c: Include nsterm.h under NS.
16343         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
16344         (free_menubar_widget_tree_value, update_submenu_strings)
16345         (find_and_call_menu_selection): Treat NS as X and NT.
16346         (find_and_return_menu_selection): New function, used for popup menus.
16347         * nsgui.h:
16348         * nsterm.h:
16349         * nsfns.m:
16350         * nsimage.m:
16351         * nsmenu.m:
16352         * nsselect.m:
16353         * nsterm.m: New files.
16354         * process.c (wait_reading_process_output): Under NS, call ns_select()
16355         instead of plain select().
16356         * syntax.c (char_quoted): Under NS, avoid a crash when called near
16357         beginning of buffer.
16358         * sysselect.h (init_process): Rename when compiling under Cocoa to
16359         avoid name conflict.
16360         * termhooks.h (display_info): Add ns_display_info to union.
16361         * terminal.c (Fterminal_live_p): Add ns to terminal types.
16362         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
16363         COCOA environment.
16364         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
16365         unexec() signature.  (Note, this will dump, but the resulting file
16366         crashes; unexosx is used instead; keeping around for reference and
16367         possible aid in getting dump working under GNUstep.)
16368         * w32gui.h (button_type, widget_value): Remove definitions (now in
16369         keyboard.h).
16370         * window.c: Include nsterm.h when compiling under NS.
16371         * xdisp.c (includes): Include nsterm.h when compiling under NS.
16372         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
16373         other GUI windowing systems.
16374         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
16375         GTK.
16376         (x_consider_frame_title): Under NS, set icon type and frame
16377         modified-state indicator; use ns_set_name_as_filename() when using
16378         formatted title.
16379         (update_window_cursor): Make public when compiling under NS.
16380         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
16381         (hourglass_atimer, Vhourglass_delay
16382         * xfaces.c (header section, init_frame_faces, clear_font_table)
16383         (defined_color, unload_color, x_face_list_fonts)
16384         (prepare_face_for_display): Add NS support parallel to other GUIs.
16385         Emulate GCs like other non-X GUIs.
16386         (split_font_name): Don't lowercase font name under NS.
16387         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
16388         under NS.
16389         * s/darwin.h: Add support for compilation under NS.
16391 2008-07-15  Jason Rumney  <jasonr@gnu.org>
16393         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
16394         (w32_show_hourglass): Rename from show_hourglass.
16395         (w32_hide_hourglass): Rename from hide_hourglass.
16396         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
16397         (Vhourglass_delay): Declare extern.
16398         (hourglass_started): Remove.
16400         * xdisp.c (Vhourglass_delay): Remove static.
16401         (hourglass_started, start_hourglass, cancel_hourglass):
16402         Don't include these versions on WINDOWSNT.
16404 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
16406         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
16407         variables (formerly in xfns.c).
16408         (show_hourglass, hide_hourglass): New prototypes (same).
16409         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
16410         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
16411         in xfns.c).
16412         (syms_of_xdisp): Declare/initialize display-hourglass,
16413         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
16414         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
16415         formerly in xfns.c.
16416         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16417         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16418         (start_hourglass, cancel_hourglass): Remove.
16419         (show_hourglass, hide_hourglass): Remove prototypes and static
16420         modifiers.
16421         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
16422         hourglass_atimer, hourglass_shown_p declaration/initialization.
16423         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
16424         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
16425         (start_hourglass, cancel_hourglass): Remove.
16426         (show_hourglass, hide_hourglass): Remove prototypes and static
16427         modifiers.
16428         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
16429         hourglass_atimer, hourglass_shown_p declaration/initialization.
16430         * w32fns.c (display_hourglass_p, Vhourglass_delay)
16431         (DEFAULT_HOURGLASS_DELAY): Remove.
16432         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
16433         hourglass_shown_p declaration/initialization.
16435 2008-07-14  Jason Rumney  <jasonr@gnu.org>
16437         * w32fns.c (w32_get_arg): Remove wrapper function.
16438         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
16439         directly.
16440         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
16442 2008-07-14  Kenichi Handa  <handa@m17n.org>
16444         * xfont.c (xfont_open): Add workaround for X's bug.
16446 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
16448         * fontset.c: Include <stdio.h> unconditionally.
16450 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
16452         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
16453         for filtering.
16455 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
16457         * s/vms.h: Use __GNUC__ instead of _GNUC_.
16459         * m/macppc.h:
16460         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
16462         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
16463         (SPECIAL_EMACS_INT):
16464         * m/ia64.h (SPECIAL_EMACS_INT):
16465         * m/amdx86-64.h (SPECIAL_EMACS_INT):
16466         * s/gnu.h (NLIST_STRUCT):
16467         * s/aix4-2.h (X11R5_INHIBIT_I18N):
16468         * s/gnu-linux.h (LINUX):
16469         * s/msdos.h (HAVE_FACES):
16470         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
16472         * systty.h:
16473         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
16474         anymore.
16476 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
16478         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
16479         always defined as int.
16481         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
16482         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
16483         * s/gnu-linux.h (HAVE_WAIT_HEADER):
16484         * s/freebsd.h (HAVE_WAIT_HEADER):
16485         * s/bsd-common.h (HAVE_UNION_WAIT):
16486         * s/aix4-2.h (HAVE_WAIT_HEADER):
16487         * m/mips.h (HAVE_UNION_WAIT):
16488         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
16489         (COFF, static): Do not define, they are undefined later in the file.
16491         * process.c (update_status): Don't use a union.
16492         (status_convert):
16493         (sigchld_handler): Use int instead of WAITTYPE.
16495 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
16497         * indent.c (Fvertical_motion): Restore hscroll before moving to
16498         goal column.
16500 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
16502         * lisp.h: Remove left over code.
16504 2008-07-11  Andreas Schwab  <schwab@suse.de>
16506         * lisp.h: Fix logic in last change.
16508         * menu.h: New file.
16509         * menu.c: Include it.
16510         * xmenu.c: Likewise.
16511         * Makefile.in: Update dependencies.
16513 2008-07-11  Kenichi Handa  <handa@m17n.org>
16515         * fontset.c (fontset_from_font): Cancel the previous change.
16517 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
16519         * lisp.h:
16520         * w32heap.c:
16521         * emacs.c:
16522         * alloc.c: Replace all references of NO_UNION_TYPE with
16523         USE_LISP_UNION_TYPE.
16525         * m/xtensa.h (NO_UNION_TYPE):
16526         * m/vax.h (NO_UNION_TYPE):
16527         * m/template.h (NO_UNION_TYPE):
16528         * m/sparc.h (NO_UNION_TYPE):
16529         * m/mips.h (NO_UNION_TYPE):
16530         * m/macppc.h (NO_UNION_TYPE):
16531         * m/m68k.h (NO_UNION_TYPE):
16532         * m/iris4d.h (NO_UNION_TYPE):
16533         * m/intel386.h (NO_UNION_TYPE):
16534         * m/ibms390x.h (NO_UNION_TYPE):
16535         * m/ibms390.h (NO_UNION_TYPE):
16536         * m/ibmrs6000.h (NO_UNION_TYPE):
16537         * m/ia64.h (NO_UNION_TYPE):
16538         * m/hp800.h (NO_UNION_TYPE):
16539         * m/arm.h (NO_UNION_TYPE):
16540         * m/amdx86-64.h (NO_UNION_TYPE):
16541         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
16542         defining it the same.
16544 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
16546         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
16548 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
16550         * fileio.c:
16551         * sysdep.c:
16552         * systty.h:
16553         * m/ibmrs6000.h:
16554         * m/iris4d.h:
16555         * s/aix4-2.h:
16556         * s/freebsd.h:
16557         * s/gnu-linux.h:
16558         * s/hpux10-20.h:
16559         * s/hpux11.h:
16560         * s/netbsd.h:
16561         * s/sol2-3.h:
16562         * s/sol2-4.h:
16563         * s/sol2.h:
16564         * s/usg5-4.h:
16565         * s/vms.h: Remove references to unused variables.
16567 2008-07-10  Andreas Schwab  <schwab@suse.de>
16569         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
16570         pattern before matching the generic family.
16572 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
16574         * unexec.c:
16575         * s/vms.h:
16576         * s/usg5-4-2.h:
16577         * s/sol2-5.h:
16578         * s/freebsd.h:
16579         * s/darwin.h: Remove dead code.
16581         * m/template.h:
16582         * m/sparc.h:
16583         * m/mips.h:
16584         * m/m68k.h:
16585         * m/iris4d.h:
16586         * m/intel386.h:
16587         * m/ibms390x.h:
16588         * m/ibms390.h:
16589         * m/ia64.h:
16590         * m/hp800.h:
16591         * m/arm.h:
16592         * m/amdx86-64.h: Remove dead code and references to unused
16593         and compiler defined symbols.
16595         * unexmips.c:
16596         * unexelf.c: Remove references to desupported systems.
16598         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
16600         * m/powermac.h: Remove boilerplate comments.
16601         (NO_REMAP): Remove unused definition.
16603         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
16604         define them.
16606 2008-07-10  Kenichi Handa  <handa@m17n.org>
16608         * xfont.c (xfont_open): Log the reason of failure.
16610 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
16612         * fontset.c (fontset_get_font_group):
16613         * font.c (font_check_otf): Specify argument types.
16615 2008-07-09  Kenichi Handa  <handa@m17n.org>
16617         * coding.c (detect_coding_utf_8): Set detect_info->found only when
16618         non-ASCII char is found.
16620         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
16621         (reorder_font_vector): Change the arg preferred_family to font.
16622         Prefer the spec matching with font.
16623         (fontset_get_font_group): New function.
16624         (fontset_find_font): Change the format of an element of a realized
16625         fontset.  Use fontset_get_font_group.
16626         (fontset_font): Try the current fontset, the default fontset, the
16627         fallbacks of the current fontset, and the fallbacks of the default
16628         fontset in this order.
16629         (face_for_char): Delete the shortcut to use the current font.
16630         (fontset_from_font): Don't set fonts for Latin in the fontset.
16632         * font.h (font_make_object, font_match_p): Adjust prototypes.
16634         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
16636         * font.c (font_make_object): New arg entity and pixelsize.
16637         (font_check_otf_features, font_check_otf): New functions.
16638         (font_match_p): Check :lang, :script, and :otf properties.
16640         * xfont.c (xfont_open): Adjust it for the change of
16641         font_make_object.
16642         (xfont_text_extents): Fix initial setting of metrics.
16644         * ftfont.c (struct ftfont_info): New member index, delete member
16645         fc_charset_idx.  Make the member order compatible with struct
16646         xftfont_info.
16647         (fc_charset_table): Change charset names to registry names.
16648         (ftfont_pattern_entity): Delete the args registry and
16649         fc_charset_idx.  Change the value of :font-entity property
16650         to (FONTNAME . INDEX).  Always set :registry property to
16651         `iso10646-1'.
16652         (struct ftfont_cache_data): New struct.
16653         (ftfont_lookup_cache): New arg for_face.
16654         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
16655         (ftfont_driver): Set the member otf_capability.
16656         (ftfont_get_charset): Adjust it for the change of
16657         fc_charset_table.
16658         (OTF_TAG_SYM): New macro.
16659         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
16660         for the change of fc_charset_table.
16661         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
16662         ftfont_pattern_entity.  Add FC_INDEX to objset.
16663         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
16664         and ftfont_pattern_entity.
16665         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
16666         font_make_object, struct ftfont_info.
16667         (ftfont_has_char): Use ftfont_get_fc_charset.
16668         (ftfont_otf_features, ftfont_otf_capability): New functions.
16669         (ftfont_shape): Use ftfont_get_otf.
16670         (ftfont_text_extents): Fix initial setting of metrics.
16672         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
16673         member order compatible with struct ftfont_info.
16674         (xftfont_open): Add FC_CHARSET to the pattern.
16675         Set xftfont_info->ft_size.  Don't unlock the face.  Check BDF
16676         properties if appropriate.
16677         (xftfont_close): Unlock the face.
16678         (xftfont_anchor_point, xftfont_shape): Deleted.
16679         (syms_of_xftfont): Don't set members anchor_point and shape of
16680         xftfont_driver.
16682         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
16683         font_make_object.
16685         * w32font.c (w32font_open): Adjust it for the change of
16686         font_make_object.
16687         (w32font_open_internal): Don't set properties of font_object here.
16689 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
16691         * macfns.c (x_create_tip_frame):
16692         * w32fns.c (x_create_tip_frame):
16693         * xfns.c (x_create_tip_frame): Pass parameter argument to
16694         face-set-after-frame-default.
16696         * xfaces.c (Finternal_merge_in_global_face): Save merged
16697         attributes for the default face back into the face vector.
16699 2008-07-08  Andreas Schwab  <schwab@suse.de>
16701         * fontset.h: Declare fontset_from_font.  Don't declare
16702         new_fontset_from_font and fontset_from_font_name.
16703         * xterm.c: Include "fontset.h".
16704         * Makefile.in (xterm.o): Update dependencies.
16706 2008-07-08  Glenn Morris  <rgm@gnu.org>
16708         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
16709         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
16711 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
16713         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
16714         (x_set_frame_parameters): Don't bind it.
16716 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
16718         * w32fns.c (map_w32_filename): Declare extern.
16720 2008-07-07  Jason Rumney  <jasonr@gnu.org>
16722         * w32term.c (WS_EX_LAYERED): Define if not already.
16724 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
16726         * xfaces.c (set_font_frame_param): Don't try to set the font
16727         parameter if it is still unspecified in the lface.
16729 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
16731         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
16732         face if it didn't already exist.
16734         * xdisp.c (try_window_id): Give up if word-wrapping is on.
16736 2008-07-05  Andreas Schwab  <schwab@suse.de>
16738         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
16740 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
16742         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
16743         word-wrapping.
16744         (IT_DISPLAYING_WHITESPACE): New macro.
16745         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
16746         when word-wrapping.  Simplify word-wrapping logic.  Use correct
16747         pixel positions when saving copies of the iterator.
16748         (display_line): Use proper wrap point if the last character on a
16749         line was preceded by whitespace.
16751 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
16753         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
16755 2008-07-04  Kenichi Handa  <handa@m17n.org>
16757         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
16759         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
16761 2008-07-02  Jason Rumney  <jasonr@gnu.org>
16763         * xfns.c (syms_of_xfns): Only define x-select-font when both
16764         HAVE_FREETYPE and USE_GTK.
16766         * xdisp.c (next_element_from_display_vector): Move assignment out
16767         of if statement.
16769 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
16771         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
16773         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
16774         (syms_of_fileio): Initialize and export them.
16775         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
16777         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
16778         (Fsystem_move_file_to_trash): New function.
16779         (syms_of_w32fns): Export it to lisp.
16781 2008-07-01  Jason Rumney  <jasonr@gnu.org>
16783         * w32font.c (w32font_text_extents): Don't count overhang as part
16784         of width.
16786 2008-06-30  Miles Bader  <miles@gnu.org>
16788         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
16789         Add `avoid_cursor_p' field.
16791         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
16792         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
16793         (append_glyph, append_composite_glyph, produce_image_glyph)
16794         (append_stretch_glyph): Initialize avoid_cursor_p.
16795         (get_it_property): Rename from `get_line_height_property'.
16796         (x_produce_glyphs): Use get_it_property.
16797         (handle_line_prefix, push_display_prop): New functions.
16798         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
16799         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
16800         New variables.
16801         (syms_of_xdisp): Initialize them.
16803 2008-06-30  Kenichi Handa  <handa@m17n.org>
16805         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
16806         XftDefaultSubstitute (they are called in XftFontMatch).
16807         (xftfont_open): Fix args to ftfont_font_format.
16809         * ftfont.c (fc_charset_table): New member lang.
16810         (ftfont_resolve_generic_family): New arg pattern.
16811         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
16812         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
16813         (ftfont_open): Fix args to ftfont_font_format.
16814         (ftfont_font_format): New arg filename.
16816 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
16818         * xfaces.c (Finternal_merge_in_global_face): If default face was
16819         modified, realize it again.  Update the font face attribute.
16821 2008-06-29  Jason Rumney  <jasonr@gnu.org>
16823         * w32term.c (x_set_frame_alpha): Fix logic.
16825 2008-06-29  Kenichi Handa  <handa@m17n.org>
16827         * fontset.c (Finternal_char_font): Return font-object instead of
16828         font-name.
16830         * composite.c (get_composition_id): Fix the width calculation for TAB.
16832 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
16834         * indent.c (Fvertical_motion): Properly handle float column arg.
16836 2008-06-28  Jason Rumney  <jasonr@gnu.org>
16838         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
16839         (pfnSetLayeredWindowAttributes): New function pointer.
16840         (w32_initialize): Initialize it when supported.
16841         (x_set_frame_alpha): New function.
16843         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
16844         (w32_frame_parm_handlers): Set alpha handler.
16846         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
16848 2008-06-27  Jason Rumney  <jasonr@gnu.org>
16850         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
16851         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
16852         (w32_to_x_charset, x_to_w32_charset)
16853         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16854         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16855         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16856         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16857         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16858         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16859         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
16860         (Qw32_charset_unicode): Remove.
16861         (syms_of_w32fns): Update for above changes.
16863         * w32font.c (w32_to_x_charset, x_to_w32_charset)
16864         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
16865         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
16866         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
16867         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
16868         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
16869         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
16870         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
16871         (syms_of_w32font): Update for above changes.
16873 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
16875         * s/usg5-4.h: Fix previous change: keep the correct branch of a
16876         removed #if.
16877         (USG_SHARED_LIBRARIES): Remove duplicate definition.
16879 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
16880             Eli Zaretskii  <eliz@gnu.org>
16882         * makefile.w32-in (LOCAL_FLAGS):
16883         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
16885         * sysdep.c (_spawnlp, _getpid):
16886         Declare with explicit _cdecl instead of _CRTAPI1.
16888         * editfns.c (Fget_internal_run_time):
16889         Check for WINDOWSNT with #ifdef, not #if.
16891 2008-06-26  Jason Rumney  <jasonr@gnu.org>
16893         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
16895         * w32term.c (x_draw_glyph_string_foreground)
16896         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
16897         Use FONT_HANDLE macro.
16898         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
16900         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16901         (uniscribe_encode_char): Use FONT_HANDLE macro.
16903         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
16904         (w32font_text_extents): Use precast w32_font.
16905         (w32font_close): Free cached metrics.
16906         (w32font_open_internal): Allocate space for name on stack.
16908 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
16910         * xdisp.c (extend_face_to_end_of_line): Fix last change.
16912 2008-06-26  Jason Rumney  <jasonr@gnu.org>
16914         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
16915         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
16917 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
16919         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
16921 2008-06-26  Jason Rumney  <jasonr@gnu.org>
16923         * w32bdf.c, w32bdf.h: Remove obsolete files.
16925         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
16927         * w32gui.h: Don't include w32bdf.h.
16928         (XCharStruct, enum w32_char_font_type, W32FontStruct):
16929         Remove obsolete font support.
16931         * w32font.h (struct w32font_info): Remove compat_w32_font.
16932         Add hfont member.
16933         (FONT_COMPAT): Remove obsolete macro.
16935         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
16936         (w32font_encode_char, w32font_text_extents): Use new hfont member.
16937         (w32font_open_internal): Remove compat code.  Set new hfont member.
16938         (Fx_select_font): Use new hfont member.
16940         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
16941         (uniscribe_encode_char): Use new hfont member.
16943         * w32term.c (x_draw_glyph_string_foreground)
16944         (x_draw_composite_glyph_string_foreground): Use new hfont member.
16945         (x_draw_glyph_string): Use metrics in w32font_info.
16947 2008-06-26  Kenichi Handa  <handa@m17n.org>
16949         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
16951 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
16953         * unexnext.c:
16954         * m/ews4800.h:
16955         * m/hp9000s300.h:
16956         * m/ibm370aix.h:
16957         * m/mips-siemens.h:
16958         * m/ncr386.h:
16959         * m/next.h:
16960         * m/pmax.h:
16961         * m/powerpcle.h:
16962         * m/tandem-s2.h:
16963         * s/386bsd.h:
16964         * s/bsd386.h:
16965         * s/bsd4-1.h:
16966         * s/bsd4-2.h:
16967         * s/bsdos2-1.h:
16968         * s/bsdos2.h:
16969         * s/bsdos3.h:
16970         * s/bsdos4.h:
16971         * s/nextstep.h:
16972         * s/ultrix4-3.h:
16973         * s/usg5-0.h:
16974         * s/usg5-2-2.h:
16975         * s/usg5-2.h:
16976         * s/usg5-4-3.h:
16977         * s/ux4800.h:
16978         * s/uxpds.h:
16979         * s/uxpv.h: Remove support for obsolete systems.
16980         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
16981         Remove, insert contents in s/hpux10-20.h.
16982         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
16983         Remove, insert contents in s/aix4-2.h.
16984         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
16985         * s/bsd4-3.h: Rename to ...
16986         * s/bsd-common.h: ... this.
16987         * data.c:
16988         * doc.c:
16989         * ecrt0.c:
16990         * emacs.c:
16991         * fileio.c:
16992         * floatfns.c:
16993         * keyboard.c:
16994         * mem-limits.h:
16995         * print.c:
16996         * process.c:
16997         * sysdep.c:
16998         * syssignal.h:
16999         * systty.h:
17000         * syswait.h:
17001         * term.c:
17002         * unexec.c:
17003         * unexelf.c:
17004         * unexhp9k800.c:
17005         * m/hp800.h:
17006         * m/ibmrs6000.h:
17007         * m/mips.h:
17008         * m/vax.h:
17009         * s/darwin.h:
17010         * s/freebsd.h:
17011         * s/gnu.h:
17012         * s/ms-w32.h:
17013         * s/msdos.h:
17014         * s/netbsd.h:
17015         * s/template.h: Remove references to obsolete variables.
17017         * Makefile.in: Add dependencies for all unexec files.
17018         (admindir): Remove unused variable.
17019         (UNEXEC_SRC): Remove references.
17021 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
17023         * xfns.c (x_default_font_parameter): If Xft is available, first
17024         try Monospace-12 for the default font.
17026 2008-06-25  Jason Rumney  <jasonr@gnu.org>
17028         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
17030 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
17032         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
17034         * buffer.c (syms_of_buffer): Remove default-word-wrap.
17036 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
17038         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
17039         <scroll-conservatively>: Fix typo in docstring.
17041         * xselect.c (Fx_send_client_event): Doc fix.
17043 2008-06-25  Kenichi Handa  <handa@m17n.org>
17045         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
17047         * font.c (font_parse_fcname): Remove unused variables.
17048         (font_sort_entites): Delete the arg SPEC.  Caller changed.
17049         Fix for the case of ! best_only.
17050         (font_delete_unmatched): Check DPI and AVGWIDTH too.
17052         * lisp.h (Fstring_to_unibyte): EXFUN it.
17054         * character.h (str_to_unibyte): Extern it.
17056         * character.c (str_to_unibyte): New function.
17058         * fns.c (Fstring_to_unibyte): New function.
17059         (syms_of_fns): Defsubr it.
17061 2008-06-24  Kenichi Handa  <handa@m17n.org>
17063         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
17064         DPI too.
17065         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
17067 2008-06-24  Andreas Schwab  <schwab@suse.de>
17069         * Makefile.in (${lispsource}loaddefs.el): Rename from
17070         ../lisp/loaddefs.el.
17071         (bootstrap-clean): Do what distclean does but don't remove
17072         Makefile.
17073         (distclean): Depend on bootstrap-clean and remove Makefile.
17075 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
17077         * buffer.h (struct buffer): New member word_wrap.
17079         * buffer.c (syms_of_buffer): New variables default-word-wrap and
17080         word-wrap.
17081         (init_buffer_once): Initialize them.
17083         * dispextern.h (struct it): Replace bool truncate_lines_p with a
17084         line_wrap enum possessing three possible values.
17086         * termopts.h: Replace truncate_partial_width_windows with
17087         Vtruncate_partial_width_windows.
17089         * dispnew.c (direct_output_for_insert): Avoid direct output when
17090         inserting a space with word wrap on.
17092         * indent.c (compute_motion): Obey integer values of
17093         truncate-partial-width-windows.
17095         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
17096         replacing truncate_partial_width_windows.
17097         (init_iterator): If Vtruncate_partial_width_windows is an integer,
17098         truncate only if the window width is below that integer.
17099         (start_display, resize_mini_window, produce_stretch_glyph)
17100         (display_string, move_it_in_display_line_to): Use line_wrap.
17101         (back_to_previous_visible_line_start, reseat_1):
17102         Reset string_from_display_prop_p.
17103         (display_line): Extend default face to end of line when wrapping.
17105 2008-06-24  Kim F. Storm  <storm@cua.dk>
17107         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
17108         to wrap continued lines at word boundaries.
17110 2008-06-24  Jason Rumney  <jasonr@gnu.org>
17112         * font.c (Ffont_face_attributes): Multiply pixel size before point
17113         conversion to avoid multiplying rounding error.
17115 2008-06-23  Jason Rumney  <jasonr@gnu.org>
17117         * w32term.c (x_draw_glyph_string_background)
17118         (x_draw_glyph_string): Remove old bdf font code.
17120         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
17122 2008-06-22  Kenichi Handa  <handa@m17n.org>
17124         * font.c (font_find_for_lface): Try the adstyle specified in
17125         the property of LFACE_FONT of LFACE (if any).
17127 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
17128             Ryo Yoshitake  <ryo@shiftmode.net>
17130         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
17132 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
17134         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
17135         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
17136         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
17137         (witness-emacs): Remove.
17138         (lisp, shortlisp): Move loaddefs.el earlier.
17139         (mostlyclean): Forget about witness-emacs.
17141 2008-06-22  Glenn Morris  <rgm@gnu.org>
17143         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
17144         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
17146 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
17148         * Makefile.in (PRECOMP): Remove.
17149         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
17150         (witness-emacs): Run `compile-first'.
17151         (.el.elc): Use the new compile-onefile target.
17153 2008-06-21  Kenichi Handa  <handa@m17n.org>
17155         * xftfont.c (xftfont_open): Handle QCembolden only when
17156         FC_EMBOLDEN is defined.
17158 2008-06-21  Andreas Schwab  <schwab@suse.de>
17160         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
17161         (.el.elc): Likewise.
17163 2008-06-21  Miles Bader  <miles@gnu.org>
17165         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
17166         build dir, not the lisp source dir.
17168 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
17170         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
17171         (bootstrapclean): Remove.
17172         (.el.elc): New rule.
17173         (PRECOMP): New var.
17174         (../lisp/subdirs.el): Remove.
17175         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
17176         (witness-emacs): New target.
17177         (mostlyclean): Remove witness-emacs as well.
17178         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
17179         Add witness-emacs dependency.
17181 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
17183         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
17184         defined by the font.
17186 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
17188         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
17189         (bootstrap-clean): New target that keeps TAGS around.
17190         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
17191         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
17193 2008-06-20  Jason Rumney  <jasonr@gnu.org>
17195         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
17196         Remove obsolete font code.
17198         * w32font.c (font_matches_spec): Use csb bitfield from font signature
17199         to determine language support.
17201 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
17203         * sysdep.c (cfsetspeed): New fun extracted from the code.
17204         (cfmakeraw): Move before first use.
17206 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
17208         * sysdep.c (cfmakeraw): Provide fallback implementation.
17209         (serial_configure): Provide fallback implementation of cfsetspeed.
17211 2008-06-20  Kenichi Handa  <handa@m17n.org>
17213         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
17214         the pattern.
17216         * fontset.c (fontset_from_font): Copy font_spec before changing
17217         the elements.
17219         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
17221 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
17223         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
17224         for explicit `font' parameters.
17226         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
17228 2008-06-19  Kenichi Handa  <handa@m17n.org>
17230         * frame.c: Include <ctype.h>.
17231         (x_set_font_backend): Allow spacing characters in the X resource
17232         for FontBackend.
17234 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
17236         * w32fns.c, xfns.c (Qfont_param): New var.
17237         (syms_of_w32fns): Initialize it.
17238         (x_default_font_parameter): Record explicit `font' into
17239         `font-parameter'.
17241 2008-06-18  Kenichi Handa  <handa@m17n.org>
17243         * font.c (font_parse_xlfd): Fix previous change.
17244         (font_parse_fcname): Don't use :fc-unknown-spec.
17245         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
17246         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
17247         (font_add_log): Prepend the driver name to the resulting fonts.
17249         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
17250         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
17251         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
17253         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
17254         (QCembolden): New variables.
17255         (syms_of_xftfont): DEFSYM them.
17256         (xftfont_open): Call XftFontMatch.  Don't trust the result of
17257         XftTextExtents8 if the pixel_size is less than 5.
17259 2008-06-18  Andreas Schwab  <schwab@suse.de>
17261         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
17262         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
17264 2008-06-18  Jason Rumney  <jasonr@gnu.org>
17266         * w32font.c (w32font_list, w32font_match): Add logging.
17268         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
17270 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
17272         * font.c (font_parse_fcname): Store divider characters for
17273         unknown-spec list.  For known key symbols, intern using correct
17274         symbol name.
17276 2008-06-17  Kenichi Handa  <handa@m17n.org>
17278         * xfaces.c (realize_default_face): If the frame is not on window
17279         system, set the fontset of face to nil.
17281 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
17283         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
17285 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
17287         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
17288         (build_font_name_from_vector): Delete externs.
17290         * xfaces.c (struct font_name): Don't declare.
17292 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
17294         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
17296 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
17298         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
17300 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
17302         * font.c (Ffont_spec): Fix usage in docstring.
17303         (Ffont_face_attributes): Doc fix.
17305 2008-06-16  Andreas Schwab  <schwab@suse.de>
17307         * font.c (Ffont_face_attributes): Fix definition.
17309 2008-06-16  Jason Rumney  <jasonr@gnu.org>
17311         * font.h (font_style_symbolic_from_value): Remove.
17313         * font.c (font_style_symbolic_from_value): Remove.
17314         (font_style_symbolic): Revert to pre 2008-06-13 version.
17316         * w32font.c (w32_to_fc_weight): New function.
17317         (w32font_full_name, logfont_to_fcname): Use it.
17319 2008-06-16  Kenichi Handa  <handa@m17n.org>
17321         * font.c (font_check_object): Delete it.
17322         (font_clear_cache): Check if a font-object is alive.
17323         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
17324         font-object to nil.
17325         (font_close_object): Don't check FONT_CLOSE_OBJECT.
17326         (font_at): Don't call font_check_object.
17327         (Ffont_get): Return a symbol for :weight, :slant, and :width.
17329 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
17331         * puresize.h (BASE_PURESIZE): Increase to 1230000.
17333 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
17335         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
17337 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
17339         * font.c (font_parse_fcname): Only one decimal point.
17340         (font_unparse_fcname): Handle data in family and foundry indices
17341         as symbols, not strings.
17342         (font_unparse_gtkname, Ffont_face_attributes): New functions.
17344         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
17346         * font.h (font_unparse_gtkname): Add prototype.
17348 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
17350         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
17352 2008-06-15  Andreas Schwab  <schwab@suse.de>
17354         * font.c (font_update_drivers): Fix crash when no drivers match.
17356 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
17358         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
17359         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
17361 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
17363         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
17365 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
17367         * process.c (Fserial_process_configure, Fprocess_send_eof):
17368         Use EQ to compare Lisp_Objects.
17370 2008-06-13  Jason Rumney  <jasonr@gnu.org>
17372         * w32fns.c (Fw32_select_font): Remove old font API function.
17374         * w32font.c (logfont_to_fcname): New function.
17375         (Fx_select_font): New font dialog function compatible with
17376         GTK/fontconfig version.
17378         * font.c (font_style_symbolic_from_value): New function.
17379         (font_style_symbolic): Use it.
17381         * font.h (font_style_symbolic_from_value): Declare new function.
17383 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
17385         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
17386         <font-width-table>: Fix typos in docstrings.
17388 2008-06-13  Daniel Engeler  <engeler@gmail.com>
17390         These changes add serial port access.
17391         * process.c: Add HAVE_SERIAL.
17392         (Fdelete_process, Fprocess_status, Fset_process_buffer)
17393         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
17394         (list_processes_1, select_wrapper, Fstop_process)
17395         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
17396         (status_notify): Modify to handle serial processes.
17397         [HAVE_SERIAL] (Fserial_process_configure)
17398         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
17399         New functions.
17400         * process.h (struct Lisp_Process): Add `type'.
17401         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
17402         New functions.
17403         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
17404         serial ports.
17405         (serial_open, serial_configure): New functions.
17406         * w32.h: Add FILE_SERIAL.
17407         (struct _child_process): Add ovl_read, ovl_write.
17409 2008-06-13  Kenichi Handa  <handa@m17n.org>
17411         * dispextern.h (enum lface_attribute_index): New member
17412         LFACE_FOUNDRY_INDEX.
17414         * font.c (font_score): Delete arg alternate_families.  Check only
17415         weight, slant, width, and size.  Ignore the difference of alias
17416         style symbols.
17417         (font_sort_entites): Adjust for the above change.  Reflect the
17418         order of font-driver to scores.
17419         (font_list_entities): Don't check alternate_familes here.
17420         (font_clear_prop): Handle foundry.
17421         (font_update_lface): Don't parse "foundry-family" form here.
17422         Handle FONT_FOUNDRY_INDEX.
17423         (font_find_for_lface): Likewise.  Handle alternate families here.
17424         If registry is nil, try iso8859-1 and ascii-0.
17425         (font_open_for_lface): Pay attention to size in ENTITY.
17426         (font_open_by_name): Simplify by calling font_load_for_lface.
17427         (free_font_driver_list): Delete it.
17428         (font_update_drivers): Preserve the order of backends.
17429         (syms_of_font): Setting of sort_shift_bits adjusted for the change
17430         of font_score and font_sort_entites.
17431         (font_update_sort_order): Likewise.
17433         * xfaces.c (LFACE_FOUNDRY): New macro.
17434         (check_lface_attrs): Check foundry.
17435         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
17436         (merge_face_vectors): Check foundry.
17437         (merge_face_ref): Likewise.
17438         (Finternal_set_lisp_face_attribute): Likewise.
17439         (x_update_menu_appearance): Likewise.
17440         (Finternal_get_lisp_face_attribute): Likewise.
17441         (lface_hash): Likewise.
17442         (lface_same_font_attributes_p): Likewise.
17443         (x_supports_face_attributes_p): Likewise.
17444         (tty_supports_face_attributes_p): Likewise.
17445         (Finternal_set_alternative_font_family_alist): Intern strings.
17446         (Finternal_set_alternative_font_registry_alist): Downcase strings.
17447         (realize_default_face): Set LFACE_FOUNDRY (lface).
17449         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
17450         font-driver at first.
17452         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
17454 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
17456         * lread.c (Fload): Use xfree, not free on saved_doc_string.
17458 2008-06-12  Jim Meyering  <meyering@redhat.com>
17460         Make unexec_free handle NULL the same way free does.
17461         * unexmacosx.c (unexec_free): Ignore a NULL argument.
17463 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
17465         * character.h (CHAR_TO_BYTE_SAFE): New macro.
17466         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
17467         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
17468         (WEAK_ALIAS): Simplify.
17469         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
17470         when searching a unibyte buffer.
17472 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
17474         * xfns.c (Fx_select_font): Rename from x-font-dialog.
17476 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
17478         * w32font.c: Include ctype.h.
17480 2008-06-11  Jason Rumney  <jasonr@gnu.org>
17482         * w32font.c (w32font_encode_char): Detect missing glyphs that are
17483         misreported as space.
17484         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
17485         as aliases for registry iso10646-1.
17487 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
17489         * buffer.c (clone_per_buffer_values): Skip `name'.
17491 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
17493         * font.c (font_parse_fcname): Fix last change; accept decimal
17494         points in font size.
17496 2008-06-10  Jason Rumney  <jasonr@gnu.org>
17498         * w32uniscribe.c (add_opentype_font_name_to_list):
17499         Skip non unicode fonts.
17501 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
17503         * xfns.c (Fx_font_dialog): New function.
17505         * gtkutil.c (xg_dialog_response_cb): Rename from
17506         xg_file_response_callback.
17507         (pop_down_dialog): Rename from pop_down_file_dialog.
17508         (xg_get_file_name): Callers changed.
17509         (xg_get_font_name): New function.
17511         * gtkutil.h (xg_get_font_name): Insert prototype.
17513 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
17515         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
17516         x_underline_minimum_display_offset.
17517         (syms_of_xdisp): Declare it here rather than in xterm.c.
17518         * dispextern.h (underline_minimum_offset): Declare it.
17519         * w32term.c (x_draw_glyph_string): Use it.
17520         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
17521         (syms_of_xterm): Don't declare it any more.
17522         (x_draw_glyph_string): Adjust to the new name.
17524 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>
17526         * xterm.c (x_underline_minimum_display_offset): New var.
17527         (x_draw_glyph_string): Use it.
17528         (syms_of_xterm): Declare it.
17530 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
17532         * font.c (font_parse_fcname): Accept GTK-style font names too.
17534 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
17536         * dired.c (file_name_completion): Don't return t if the match is exact
17537         but with different capitalization.
17538         * minibuf.c (Ftry_completion): Simplify.
17540         * window.c (Vwindow_point_insertion_type): New var.
17541         (set_window_buffer): Use it.
17542         (syms_of_window): Init and export it to Lisp.
17544 2008-06-10  Kenichi Handa  <handa@m17n.org>
17546         * font.h (font_intern_prop): Prototype adjusted.
17548         * font.c (font_intern_prop): New arg force_symbol.
17549         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
17550         Adjust for the change of font_intern_prop.
17552         * ftfont.c (ftfont_pattern_entity):
17553         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
17554         (w32_registry):
17555         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
17556         the change of font_intern_prop.
17558 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
17560         * w32menu.c (digest_single_submenu): Declare extern.
17562 2008-06-09  Jason Rumney  <jasonr@gnu.org>
17564         * w32term.c (x_make_frame_visible): Use alternate restore flags.
17566         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
17567         (parse_single_submenu): Remove.
17568         (digest_single_submenu): Remove.
17569         (syms_of_w32menu): Don't initialise variables that have moved
17570         to menu.c.
17571         (set_frame_menubar): Sync with version in xmenu.c.
17572         (w32_menu_show): Sync with xmenu_show in xmenu.c.
17574         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
17575         Make static again.
17577 2008-06-09  Jason Rumney  <jasonr@gnu.org>
17579         Changes to w32 files related to the move of common menu code
17580         to menu.c on 2008-06-08 by Chong Yidong.
17582         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
17583         defs to w32gui.h.
17584         (single_keymap_panes, push_menu_item, push_menu_pane):
17585         Make globally visible.
17587         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
17588         (local_free, malloc_widget_value, free_widget_value)
17589         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
17590         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
17591         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
17592         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
17593         (menu_items, menu_items_allocated, menu_items_used)
17594         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
17595         (init_menu_items, finish_menu_items, discard_menu_items)
17596         (grow_menu_items, push_submenu_start, push_submenu_end)
17597         (push_left_right_boundary, push_menu_pane, push_menu_item)
17598         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
17599         (free_menubar_widget_tree_value, parse_single_submenu)
17600         (update_submenu_strings): Remove functions.
17601         (xmalloc_widget_value): Remove and declare extern.
17603         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
17604         (OBJ1): Build it.
17606         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
17607         (local_heap, local_alloc, local_free, malloc_widget_value)
17608         (free_widget_value): Define here.
17610 2008-06-09  Kenichi Handa  <handa@m17n.org>
17612         * font.h (Qascii_0): Extern it.
17614         * font.c (Qascii_0): New variable.
17615         (syms_of_font): DEFSYM it.
17616         (font_open_by_name): If the registry "iso8859-1" fails, try also
17617         "ascii-0".
17619         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
17621 2008-06-08  Kenichi Handa  <handa@m17n.org>
17623         * .gdbinit (xfont): New command.
17625 2008-06-08  Andreas Schwab  <schwab@suse.de>
17627         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
17628         * Makefile.in (menu.o): Update dependencies.
17630         * Makefile.in (obj): Always add menu.o.
17631         * emacs.c (main): Always call syms_of_menu.
17632         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
17634 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
17636         * Makefile.in: Compile menu.c.
17638         * lisp.h: Declare syms_of_menu.
17640         * emacs.c (main): Call syms_of_menu.
17642         * keyboard.h: Relocate platform-independent menu definitions from
17643         xmenu.c.
17645         * menu.c: New file.  Relocate platform-independent menu
17646         definitions from xmenu.c.  Suggested by Adrian Robert.
17648         * xmenu.c: Remove platform-independent menu definitions.
17649         (menu_items, menu_items_inuse, menu_items_allocated)
17650         (menu_items_used, menu_items_n_panes)
17651         (menu_items_submenu_depth): Move to keyboard.h.
17652         (init_menu_items, finish_menu_items, unuse_menu_items)
17653         (discard_menu_items, restore_menu_items, save_menu_items)
17654         (grow_menu_items, push_submenu_start, push_submenu_end)
17655         (push_left_right_boundary, push_menu_pane, push_menu_item)
17656         (keymap_panes, single_keymap_panes, single_menu_item)
17657         (list_of_panes, list_of_items, find_and_call_menu_selection)
17658         (xmalloc_widget_value, free_menubar_widget_value_tree)
17659         (parse_single_submenu, digest_single_submenu)
17660         (update_submenu_strings): Move to menu.c.
17662 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
17664         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
17666 2008-06-06  Miles Bader  <miles@gnu.org>
17668         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
17669         face, not frame default.
17671 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
17673         * window.c (pop_up_windows, pop_up_frames)
17674         (display_buffer_reuse_frames, Vpop_up_frame_function)
17675         (Vdisplay_buffer_function, Veven_window_heights)
17676         (Vspecial_display_buffer_names, Vspecial_display_regexps)
17677         (Vspecial_display_function, Vsame_window_buffer_names)
17678         (Vsame_window_regexps, split_height_threshold)
17679         (Vsplit_window_preferred_function): Move those vars to window.el.
17680         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
17681         (Fdisplay_buffer): Move those functions to window.el.
17682         (syms_of_window): Remove corresponding declarations.
17683         (display_buffer): New function.
17684         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
17685         * dispnew.c (Flast_nonminibuf_frame): New function.
17686         * buffer.c (Fpop_to_buffer): Move to window.el.
17688 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
17690         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
17692 2008-06-05  Kenichi Handa  <handa@m17n.org>
17694         * coding.c (detect_coding): Fix previous change.
17695         (detect_coding_system): Likewise.
17697 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
17699         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
17701         * keymap.c (Vminibuffer_local_filename_must_match_map):
17702         Rename from Vminibuffer_local_must_match_filename_map.
17703         (syms_of_keymap):
17704         * minibuf.c (Fcompleting_read): Adjust accordingly.
17705         * commands.h: Rename declaration as well.
17707 2008-06-05  Kenichi Handa  <handa@m17n.org>
17709         * font.c (Ffont_spec): Don't use font_parse_family_registry for
17710         family name.
17711         (Ffont_put): Likewise.
17713         * fontset.c (fontset_find_font): Call font_open_for_lface with the
17714         current font-spec.
17716         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
17717         is unspecified.
17719         * xfaces.c (realize_x_face): If the font-related face attributes
17720         are the same as those of default face, realize a new fontset from
17721         default->fontset.
17722         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
17724 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
17726         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
17727         (move_it_in_display_line): New wrapper.
17729         * window.c (window_scroll_pixel_based_preserve_x)
17730         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
17731         (window_scroll_pixel_based, window_scroll_line_based):
17732         Use them to preserve column positions.
17733         (syms_of_window): Initialize them.
17735         * indent.c (Fvertical_motion): Extend first arg to allow passing an
17736         (HPOS . VPOS) pair.
17738         * dispextern.h (move_it_in_display_line): Declare.
17740 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
17742         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
17743         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
17744         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
17746 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
17748         * window.c (Fset_window_parameter): Doc fix.
17749         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
17751 2008-06-04  Joakim Verona  <joakim@verona.se>
17753         * window.h (struct window): Add new member window_parameters.
17755         * window.c (Fwindow_parameters, Fwindow_parameter)
17756         (Fset_window_parameter): New defuns.
17757         (syms_of_window): Defsubr the new defuns.
17758         (make_window): Initialize window_parameters to nil.
17760 2008-06-04  John Paul Wallington  <jpw@pobox.com>
17762         * eval.c (Fdefmacro): Doc fix.
17764 2008-06-04  Kenichi Handa  <handa@m17n.org>
17766         * coding.c (detect_coding): Fix handling of coding->head_ascii.
17767         Be sure to call setup_coding_system when we find a proper coding system.
17768         (detect_coding_system): Fix handling of coding->head_ascii.
17770 2008-06-03  Andreas Schwab  <schwab@suse.de>
17772         * font.c (font_prop_validate_spacing): Fix last change.
17774 2008-06-03  Kenichi Handa  <handa@m17n.org>
17776         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
17777         (font_parse_fcname): Fix handling of unknown key.
17779         * xfont.c (xfont_list): Try an alias.
17781         * charset.c (char_charset): Return NULL if the arg charset_list is
17782         specified and C doesn't belong to any of them.
17784 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
17786         * font.c (font_pixel_size): Don't take cdr of an integer.
17788 2008-06-02  Jim Meyering  <meyering@redhat.com>
17790         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
17791         * alloc.c (xfree): Return right away for a NULL arg.
17792         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
17793         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
17794         * mac.c (create_apple_event_from_event_ref): Likewise.
17795         (create_apple_event_from_drag_ref, cfstring_create_normalized):
17796         Likewise.
17797         * doprnt.c (doprnt1): Likewise.
17798         * frame.c (frame): Likewise.
17799         * keyboard.c (wipe_kboard): Likewise.
17800         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
17801         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
17802         * term.c (tty_default_color_capabilities, maybe_fatal)
17803         (delete_tty): Likewise.
17804         * w16select.c (string): Likewise.
17805         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
17806         * w32bdf.c (w32_free_bdf_font): Likewise.
17807         * w32fns.c (w32_unload_font): Likewise.
17808         * w32font.c (w32font_close): Likewise.
17809         * window.c (size_window): Likewise.
17810         * xselect.c (receive_incremental_selection): Likewise.
17811         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
17812         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
17813         * w32.c (stat): Likewise.
17815         Remove useless if-before-free tests.
17816         * editfns.c (Fset_time_zone_rule): Likewise.
17817         * lread.c (nosuffix): Likewise.
17818         * ralloc.c (get_bloc): Likewise.
17819         * regex.c (reg_free): Likewise.
17820         * xftfont.c (xftfont_open, xftfont_close): Likewise.
17821         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
17822         * xsmfns.c (smc_save_yourself_CB): Likewise.
17824 2008-06-02  Kenichi Handa  <handa@m17n.org>
17826         * font.c (font_find_for_lface): Handle float font size.
17827         (font_open_for_lface): Likewise.
17829         * xfaces.c (x_supports_face_attributes_p): Check face->font before
17830         comparing the properties.
17832 2008-06-01  Jason Rumney  <jasonr@gnu.org>
17834         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
17835         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
17836         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
17837         Don't add empty script list.
17838         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
17840 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
17842         * Makefile.in (dot, dotdot): Remove, update users.
17843         ".." has been used elsewhere in the file for a long time.
17844         (LIBXT_STATIC): Remove conditional based on unused variable.
17846 2008-06-01  Miles Bader  <miles@gnu.org>
17848         * xfaces.c (Vface_remapping_alist): New variable.
17849         (syms_of_xfaces): Initialize it.
17850         (enum named_merge_point_kind): New type.
17851         (struct named_merge_point): Add `named_merge_point_kind' field.
17852         (push_named_merge_point): Make cycle detection respect different
17853         named-merge-point kinds.
17854         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
17855         Remove face-name alias resolution.
17856         (lface_from_face_name): New definition using
17857         `lface_from_face_name_no_resolve'.
17858         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
17859         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
17860         (get_lface_attributes): New definition that layers face-remapping on
17861         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
17862         (lookup_basic_face): New function.
17863         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
17864         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
17865         `get_lface_attributes'.
17866         (face_at_buffer_position): Use `lookup_basic_face' to lookup
17867         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
17868         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
17870         * xdisp.c (init_iterator): Pass base_face_id through
17871         `lookup_basic_face' when we actually use it as a face-id.
17872         (handle_single_display_prop): Use `lookup_basic_face' to lookup
17873         DEFAULT_FACE_ID.
17875         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
17876         lookup the initial face-id.
17878         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
17880 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
17882         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
17883         (Fremove_text_properties): Fix typos in docstrings.
17885 2008-05-31  Kenichi Handa  <handa@m17n.org>
17887         * font.c (font_list_entities): Fix the car part of data to be
17888         stored in the cache.
17890         * ftfont.c (ftfont_font_format): Don't use strcasestr.
17892 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
17894         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
17895         Add a `test' argument so another predicate than `equal' can be used.
17896         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
17897         (map_char_table): Remove unused vars `c' and `i'.
17898         * lisp.h (Foptimize_char_table): Adjust declaration.
17899         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
17901 2008-05-30  Kenichi Handa  <handa@m17n.org>
17903         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
17904         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
17905         defined.
17907 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
17909         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17910         (Fmake_variable_frame_local): Disallow mixing buffer-local and
17911         frame-local settings for the same variable.
17913 2008-05-30  Kenichi Handa  <handa@m17n.org>
17915         * fontset.c (Ffont_info): Move to font.c.
17916         (syms_of_fontset): Delete defsubr of Sfont_info.
17918         * font.c (font_style_to_value, font_score): Delete casting of the
17919         args to xstcasecmp.
17920         (register_font_driver): Increment num_font_drivers only when
17921         registering the driver globally.
17922         (Ffont_info): Move from fontset.c.  Handle a font object too.
17923         (syms_of_font): Defsubr Sfont_info.
17925 2008-05-29  Kenichi Handa  <handa@m17n.org>
17927         * coding.h (enum define_coding_utf8_arg_index): New enum.
17928         (enum coding_attr_index): Change coding_attr_utf_16_bom to
17929         coding_attr_utf_bom.
17930         (enum utf_bom_type): Rename from utf_16_bom_type.
17931         (struct utf_16_spec): Adjust for the above change.
17932         (struct coding_system): Add utf_8_bom in `spec' union.
17934         * coding.c (CODING_UTF_8_BOM): New macro.
17935         (enum coding_category): Delete coding_category_utf_8, add
17936         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
17937         coding_category_utf_8_sig.
17938         (CATEGORY_MASK_UTF_8): Delete it.
17939         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
17940         (CATEGORY_MASK_UTF_8_SIG): New macros.
17941         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
17942         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
17943         CATEGORY_MASK_UTF_8_SIG.
17944         (CATEGORY_MASK_UTF_8): New macro.
17945         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
17946         (detect_coding_utf_8): Check BOM.
17947         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
17948         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
17949         (encode_coding_utf_16): Likewise.
17950         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
17951         (detect_coding, detect_coding_system): Handle utf-8-auto.
17952         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
17953         (syms_of_coding): Fix setting up of Vcoding_category_table.
17955 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
17957         * process.c (Faccept_process_output): If `millisec' is non-nil,
17958         `seconds' default to 0.
17959         (wait_reading_process_output): Also return non-nil if we read output
17960         from a non-running process.
17962 2008-05-29  Jason Rumney  <jasonr@gnu.org>
17964         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
17965         `raster' specified.
17966         (add_font_entity_to_list): Allow non-opentype truetype fonts back
17967         in the uniscribe backend, but disallow any font that has no
17968         unicode subrange support.
17970 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
17972         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
17973         Fix typos in docstrings.
17975 2008-05-29  Kenichi Handa  <handa@m17n.org>
17977         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
17978         (Fx_family_fonts): Set frame correctly.
17980 2008-05-28  Jason Rumney  <jasonr@gnu.org>
17982         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
17984 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
17986         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
17987         calling build_annotations.
17989 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
17991         * coding.c (Fdecode_coding_region, Fencode_coding_region)
17992         (Fencode_coding_string):
17993         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
17994         <latin-extra-code-table>: Fix typos in docstrings.
17995         (syms_of_coding) <coding-system-alist>: Doc fix.
17996         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
17998 2008-05-28  Kenichi Handa  <handa@m17n.org>
18000         * fontset.c (Ffont_info): Don't call font_close_object.
18002         * font.c (font_parse_family_registry): Use Ffont_put to validate
18003         foundry and family.
18004         (font_delete_unmatched): Don't check spacing.
18005         (font_list_entities): Add spacing to the spec to list fonts.
18007         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
18008         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
18010         * coding.c (encode_coding_raw_text): Fix previous change.
18011         (encode_coding_object): When the dst_object is a buffer and is
18012         different from src_object, move gap to PT.
18014 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
18016         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
18018 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
18020         * coding.c (encode_coding_raw_text): Set coding->produced_char for
18021         all branches.  Compute it differently.
18023         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
18025 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
18027         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
18028         into "else if () ... else ...".
18030 2008-05-27  Jason Rumney  <jasonr@gnu.org>
18032         * w32font.c (w32font_open_internal): Determine if glyph indices
18033         are likely to work here.
18035 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
18037         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
18038         draw overlap glyphs with appropriate highlighting.
18040 2008-05-27  Kenichi Handa  <handa@m17n.org>
18042         * xfont.c (xfont_open): Fix calculation of font->average_width.
18044 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
18046         * casefiddle.c (casify_object): Try to guess better whether the
18047         argument is a byte or a char.
18049 2008-05-26  Andreas Schwab  <schwab@suse.de>
18051         * xselect.c (x_reply_selection_request): Properly handle format == 32.
18052         Always send multiples of format size.
18054         * xterm.c (x_set_frame_alpha): Fix type mismatch.
18056 2008-05-26  Jason Rumney  <jasonr@gnu.org>
18058         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
18059         (compute_metrics): Don't set failure if we just cleared the cache.
18060         (w32_weight_table): Remove unused variable.
18061         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
18062         backwards compatibility.
18064 2008-05-25  Kenichi Handa  <handa@m17n.org>
18066         * w32term.c (x_draw_glyph_string):
18067         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
18069         * xfaces.c: Delete unused function prototypes.
18070         (xstrlwr, font_frame): Delete them.
18071         (clear_face_cache): Delete unused variable.
18073         * xftfont.c (xftfont_open): Delete unused variable.
18074         If underline_thickness is not 1, adjust underline_position.
18076         * ftxfont.c (ftxfont_open): Delete unused variable.
18078         * fontset.c (face_for_char): Optimize for the case of no charset
18079         property.
18081         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
18082         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
18083         (otf_open, font_otf_capability, generate_otf_features)
18084         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18085         Comment out by surrounding "#if 0" and "#endif" for the moment.
18086         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
18087         (syms_of_font): Codes for accessing above commented out.
18089 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
18091         * w32proc.c: Include dispextern.h.
18093         * w32.c: Include dispextern.h.
18095 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
18097         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
18098         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
18099         Fix typos in docstrings.
18101 2008-05-23  Jason Rumney  <jasonr@gnu.org>
18103         * xsmfns.c: Remove includes that are already included by config.h.
18105 2008-05-23  Kenichi Handa  <handa@m17n.org>
18107         * charset.c (Qemacs, charset_emacs): New variables.
18108         (char_charset): Fix for non-Unicode characters.
18109         (syms_of_charset): Define charset_emacs.
18111         * w32term.c (x_draw_glyph_string): Be sure to update
18112         s->underline_thickness and s->underline_position.  Be sure to draw
18113         underline within the current line area.
18115         * xterm.c (x_draw_glyph_string): Be sure to update
18116         s->underline_thickness and s->underline_position.  Be sure to draw
18117         underline within the current line area.
18119         * fontset.c: Delete unused variables and add casting for char *
18120         throughout the file.
18121         (fontset_font): Try the fallback fonts of the current fontset
18122         before consulting the default fontset.
18124         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
18126         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
18128 2008-05-22  Jason Rumney  <jasonr@gnu.org>
18130         * font.c: Don't include strings.h.
18132         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
18134         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
18135         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
18136         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
18137         to call xstrcasecmp.
18139         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
18141         * fontset.c (fs_query_fontset): Use xstrcasecmp.
18143         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
18145         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
18147 2008-05-22  Kenichi Handa  <handa@m17n.org>
18149         * puresize.h (BASE_PURESIZE): Increase to 1220000.
18151         * font.c (font_prop_validate_style): Adjust for the format
18152         change of font_style_table.
18154         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
18155         two args.
18157         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
18158         two args.
18160 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
18162         * minibuf.c (keys_of_minibuf): Delete.
18163         * lisp.h (keys_of_minibuf): Delete.
18164         * emacs.c (main): Don't call keys_of_minibuf.
18166 2008-05-22  Kenichi Handa  <handa@m17n.org>
18168         * ftfont.c (ftfont_resolve_generic_family): Rename from
18169         ftfont_list_generic_family.  Return a single family for each
18170         generic family.
18171         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
18172         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
18173         Call font_add_log.
18174         (ftfont_match): Call font_add_log.
18176         * font.h (Ffont_xlfd_name): EXFUN adjusted.
18177         (FONT_DEBUG): Define it.
18178         (font_add_log): Extern it.
18179         (font_assert): Rename from xassert.
18181         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
18182         (xfont_list_family): Call font_add_log.
18183         (xfont_match): Likewise.
18184         (memq_no_quit): Delete.
18186         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
18187         call of Ffont_xlfd_name.
18189         * xfaces.c (struct table_entry, slant_table, weight_table)
18190         (swidth_table): Move to font.c.
18192         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
18193         xassert are changed to font_assert.  Delete many unused variables.
18194         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
18195         New variables.
18196         (struct table_entry): Move from xfaces.c and modified.
18197         (weight_table, slant_table, width_table): Move from xfaces.c and
18198         contents adjusted for the change of struct table_entry.
18199         (font_style_to_value, font_style_symbolic): Adjust for the
18200         format change of font_style_table.
18201         (font_parse_family_registry): Don't overwrite existing foundry and
18202         family of font_spec.
18203         (font_score): Fix calculation of diff for sizes.
18204         (font_sort_entites): Call font_add_log.
18205         (font_delete_unmatched): Return a newly created list.
18206         (font_list_entities): Fix previous change.  Call font_add_log.
18207         (font_matching_entity, font_open_entity, font_close_entity):
18208         Call font_add_log.
18209         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
18210         (Finternal_set_font_style_table): Delete.
18211         (BUILD_STYLE_TABLE): New macro.
18212         (build_style_table): New function.
18213         (Vfont_log, font_log_env_checked): New variables.
18214         (font_add_log): New function.
18215         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
18216         Declare Lisp variables "font-weight-table", "font-slant-table",
18217         "font-width-table", and "font-log".  Initialize font_style_table.
18219 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
18221         * xterm.c (x_set_frame_alpha): Move declarations before statements.
18223 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
18224             Ryo Yoshitake  <ryo@shiftmode.net>
18226         * frame.c (Qalpha): Add a new frame parameter `alpha'.
18227         (Vframe_alpha_lower_limit): New variable.
18228         (x_set_alpha): New function.
18230         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
18232         * xfns.c (x-create-frame, Qalpha):
18233         Initialize the frame parameter `alpha'.
18234         * xterm.c (OPAQUE, OPACITY): New.
18235         (x_set_frame_alpha): New function.
18236         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
18238         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
18239         * w32fns.c (w32_frame_parm_handlers): Likewise.
18241 2008-05-20  Jason Rumney  <jasonr@gnu.org>
18243         * w32font.c (add_font_entity_to_list): Don't add non-opentype
18244         truetype fonts to opentype list.
18246 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
18248         * fontset.c (Ffontset_info): Doc fix.
18249         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
18250         <ignore-relative-composition>: Fix typos in docstrings.
18252         * font.c (syms-of-font) <font-encoding-alist>:
18253         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
18254         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
18255         (Ffont_otf_alternates): Doc fixes.
18257 2008-05-20  Kenichi Handa  <handa@m17n.org>
18259         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
18260         font.h through out the file.
18261         (FONT_DRIVERS): Rename from FONTOBJ.
18262         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
18263         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
18265         * emacs.c (main): Call syms_of_font unconditionally.
18267         * font.h (find_font_encoding): Extern it.
18269         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
18270         fontset.c.
18271         (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
18272         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
18273         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
18274         only when HAVE_WINDOW_SYSTEM is defined.
18275         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
18276         when HAVE_WINDOW_SYSTEM is defined.
18278         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
18279         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
18281         * xfaces.c: Include font.h unconditionally.
18282         (merge_face_ref, merge_face_vectors)
18283         (Finternal_set_lisp_face_attribute): Cancel the previous change.
18285 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
18287         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
18288         indirect_variable.
18289         * eval.c (lisp_indirect_variable): New fun.
18290         (Fuser_variable_p): Use it.
18292 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
18294         * lisp.h (indirect_variable):
18295         * data.c (indirect_variable, let_shadows_buffer_binding_p):
18296         Use Lisp_Symbol pointers rather than Lisp_Object.
18297         Adjust callers.
18298         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
18299         To this end, change calling-convention.
18301         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
18302         if some non-hidden buffers are selected by string&pred.
18304 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
18306         * process.c (wait_reading_process_output): Always check status
18307         when in batch mode.
18309 2008-05-19  Kenichi Handa  <handa@m17n.org>
18311         * font.c (font_list_entities): Fix handling of cache.
18312         (font_matching_entity): Likewise.
18314         * ftfont.c (cs_iso8859_1): Delete.
18315         (ft_face_cache): New variable.
18316         (struct ftfont_info): New member fc_charset_idx.
18317         (ftfont_build_basic_charsets): Delete.
18318         (fc_charset_table): New variable.
18319         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
18320         . FC_CHARSET_IDX) as :font-entity property in the font entity.
18321         Callers changed.
18322         (ftfont_lookup_cache, ftfont_get_charset): New functions.
18323         (ftfont_spec_pattern): New argument fc_charset_idx.
18324         Check registry more rigidly.  Change callers.
18325         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
18326         change of :font-entity property of the font.
18328         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
18329         property of the font.
18331 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
18333         * coding.c (Fcoding_system_p): Rename argument to match docstring.
18334         (Funencodable_char_position, Fcheck_coding_systems_region)
18335         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
18336         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
18337         (Ffind_operation_coding_system, Fset_coding_system_priority)
18338         (Fcoding_system_eol_type): Doc fixes.
18340 2008-05-17  Glenn Morris  <rgm@gnu.org>
18342         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
18344 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
18346         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
18347         and st_gid.
18349         * frame.c (Fdelete_frame): Don't call font_update_drivers if
18350         HAVE_WINDOW_SYSTEM is not defined.
18352         * xfaces.c (merge_face_ref, merge_face_vectors)
18353         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
18354         HAVE_WINDOW_SYSTEM is defined.
18355         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
18357 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
18359         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
18361 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18363         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
18365 2008-05-15  Kenichi Handa  <handa@m17n.org>
18367         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
18368         preference.
18370 2008-05-15  Glenn Morris  <rgm@gnu.org>
18372         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
18374 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
18376         * fns.c (init_fns): Don't initialize weak_hash_tables here.
18377         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
18379         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
18381 2008-05-15  Kenichi Handa  <handa@m17n.org>
18383         * ftfont.c (ftfont_list): Downcase family name to check generic
18384         families.
18386         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
18387         font-spec for QCfont value.
18389         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
18390         buffer.  Check the return value of it.
18392 2008-05-14  Jason Rumney  <jasonr@gnu.org>
18394         * w32term.c (w32_get_glyph_overhangs): Remove.
18395         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
18397 2008-05-14  Kenichi Handa  <handa@m17n.org>
18399         * font.c (font_prop_validate): Make nil a valid value.
18400         (font_clear_cache): Check if the cached vector of entities is nil
18401         or not.
18403 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18405         * emacs.c (main_thread): Conditionalize on
18406         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18407         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
18409         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
18410         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
18411         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
18413 2008-05-14  Kenichi Handa  <handa@m17n.org>
18415         * coding.c (detect_coding_iso_2022): Ignore a coding category that
18416         has no corresponding coding system.
18418 2008-05-14  Jason Rumney  <jasonr@gnu.org>
18420         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
18422         * w32font.h (w32font_open_internal): Update declaration.
18424         * w32font.c (w32font_open_internal): Change last argument from
18425         w32font_info struct to font object.  Fill in font object from
18426         font_entity.  Get Outline metrics if possible.  Use them to
18427         calculate underline position and thickness.  Use xlfd name as name
18428         property.  Don't set codepage.
18429         (w32font_open): Pass font_object to w32font_open_internal.  Don't
18430         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
18431         (w32font_draw): Use s->font.
18432         (clear_cached_metrics): Don't clear non-existent blocks.
18434         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
18435         font was not found.
18436         (x_draw_glyph_string): Use underline position and thickness from font.
18438         * w32uniscribe.c (uniscribe_open): Pass font_object to
18439         w32font_open_internal.
18441 2008-05-14  Kenichi Handa  <handa@m17n.org>
18443         These changes are to delete all legacy font-handling codes, and
18444         make Emacs use only font-backends.
18446         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
18447         (frame.o, image.o, print.o): Depend on $(FONTSRC).
18449         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
18451         * charset.h (Vcharset_non_preferred_head)
18452         (Vcurrent_iso639_language): Extern them.
18454         * charset.c (Vcharset_non_preferred_head): New variable.
18455         (Vcurrent_iso639_language): New variable.
18456         (syms_of_charset): Declare it as a Lisp variable.
18457         (char_charset): Don't check non preferred charsets.  As a last
18458         resort, return charset_unicode.
18459         (Fset_charset_priority): Update Vcharset_non_preferred_head.
18461         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
18462         conditionals.  Don't check enable_font_backend.  Delete all codes
18463         used only when USE_FONT_BACKEND is not defined.
18465         * dispextern.h (struct glyph_string): Change type of `font' to
18466         `struct font *'.
18467         (struct glyph_string): New member underline_position and
18468         underline_thickness.
18469         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
18470         (struct face): Change type of `font' to `struct font *'.
18471         Remove members `font_name', `font_info_id'.
18472         (per_char_metric, encode_char): Delete externs.
18473         (calc_pixel_width_or_height): Adjust the prototype.
18475         * emacs.c (enable_font_backend): Delete extern.
18476         (main): Don't set enable_font_backend.  Don't check the command
18477         line argument "-disable-font-backend".
18479         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
18480         (enum font_property_index): New members FONT_DPI_INDEX,
18481         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
18482         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
18483         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
18484         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
18485         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
18486         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
18487         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
18488         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
18489         (struct font_spec, struct font_entity): New structs.
18490         (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
18491         (struct font): Many members from old "struct font_info" moved to
18492         here.  Members font and entity deleted.
18493         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
18494         the new font-related objects.
18495         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
18496         (CHECK_FONT_GET_OBJECT): Likewise.
18497         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
18498         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
18499         (struct font_driver): New members case_sensitive anc check.
18500         Type of the member list and open changed.
18501         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
18502         (font_symbolic_width, font_find_object, font_get_spec)
18503         (font_set_lface_from_name): Delete extern.
18504         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
18506         * font.c: Include <strings.h>.
18507         (enable_font_backend): Delete it.
18508         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
18509         (CHECK_VALIDATE_FONT_SPEC): Delete it.
18510         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
18511         (null_string): Delete it.
18512         (null_vector): Make it static.
18513         (font_family_alist): Delete it.
18514         (Qnormal): Extern it.
18515         (QCextra, QClanguage): Delete it.
18516         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
18517         (font_make_spec, font_make_entity, font_make_object)
18518         (font_intern_prop): Rename from intern_downcase.  Don't downcase
18519         the string.  Callers changed.
18520         (font_pixel_size): Adjust for the format change of font-related
18521         objects.
18522         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
18523         (font_style_to_value, font_style_symbolic): New function.
18524         (build_font_family_alist): Delete it.
18525         (font_registry_charsets): Use Fassoc_string instead of
18526         assq_no_quit.
18527         (font_prop_validate_symbol): Don't return null_string.
18528         (font_prop_validate_style): Adjust for the change of
18529         style-related values in a font vector.
18530         (font_property_table): Delete entries for QClanguage and
18531         QCantialias, add entries for QCavgwidth.
18532         (get_font_prop_index): Delete the 2nd argument FROM.
18533         (font_prop_validate): Arguments changed.
18534         (font_put_extra): Adjust for the change of font-related objects.
18535         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
18536         (font_parse_fcname, font_unparse_fcname)
18537         (font_prepare_composition): Likewise.
18538         (font_parse_family_registry): Rename from font_merge_old_spec.
18539         (otf_open): Delete the 1st arg entity.
18540         (font_otf_capability): Adjust for the above change.
18541         (font_score): New arg alternate_families.  Adjusted for the change
18542         of font-related objects.
18543         (font_sort_entites): New arg best_only.
18544         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
18545         Delete them.
18546         (font_match_p): Check alternate families.
18547         (font_find_object): Delete it.
18548         (font_check_object): New function.
18549         (font_clear_cache): Adjust for the change of font-related objects.
18550         (font_delete_unmatched): New arg.
18551         (font_list_entities): Call font_driver->list with a spec that
18552         doesn't specify style-related properties.
18553         (font_matching_entity): Arguments changed.  Caller changed.
18554         (font_open_entity): Adjust for the change of font-related objects.
18555         (font_close_object, font_has_char, font_encode_char)
18556         (font_get_name, font_get_spec): Likewise.
18557         (font_spec_from_name, font_clear_prop, font_update_lface):
18558         New functions.
18559         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
18560         (font_prepare_for_face, font_done_for_face, font_open_by_name)
18561         (font_at): Adjust for the change of font-related objects.
18562         (font_range): New function.
18563         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
18564         (Ffont_xlfd_name): Adjust for the change of font-related objects.
18565         (Fcopy_font_spec, Fmerge_font_spec): New function.
18566         (Ffont_family_list): Rename from list-families.
18567         (Finternal_set_font_style_table): Arguments changed.
18568         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
18569         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
18570         change of font-related objects.
18571         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
18573         * fontset.h (struct font_info): Delete it.  Most members go to
18574         struct font.
18575         (FONT_ENCODING_NOT_DECIDED): Move to font.h.
18576         (enum FONT_SPEC_INDEX): Delete it.
18577         (font_info, list_fonts_func, load_font_func, query_font_func)
18578         (set_frame_fontset_func, find_ccl_program_func)
18579         (get_font_repertory_func, new_fontset_from_font_name):
18580         Delete externs.
18581         (fontset_from_font_name): Extern it.
18582         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
18583         (FONT_INFO_FROM_FACE): Deleted.
18584         (face_for_font): Adjust prototype.
18586         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
18587         conditionals.  Don't check enable_font_backend.  Delete all codes
18588         used only when USE_FONT_BACKEND is not defined.
18589         (get_font_info_func, list_font_func, load_font_func)
18590         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
18591         (get_font_repertory_func): Delete them.
18592         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
18593         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
18594         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
18595         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
18596         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
18597         (fontset_compare_rfontdef): New function.
18598         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
18599         rfont-defs by qsort.  Adjusted for the change of font-group vector.
18600         (load_font_get_repertory): Deleted.
18601         (fontset_find_font): Use new macros to ref/set elements of
18602         font-def and rfont-def.
18603         (fontset_font): Fix the timing of remembering that no font for C.
18604         (free_face_fontset): Do nothing if the face has no fontset.
18605         (face_suitable_for_char_p): Use new macros to ref/set elements of
18606         rfont-def.
18607         (face_for_char): Likewise.  Call face_for_char with font_object.
18608         (fs_load_font): Delete.  Delete #pragma surrounding it.
18609         (fs_query_fontset): Use strcasecmp instead of strcmp.
18610         (generate_ascii_font_name): Adjust for the format change of
18611         font-spec.
18612         (Fset_fontset_font): Likewise.  Use new macros to set elements of
18613         font-def.
18614         (Fnew_fontset): Use font_unparse_xlfd to generate
18615         FONTSET_ASCII (fontset).
18616         (new_fontset_from_font_name): Deleted.
18617         (fontset_from_font): Rename from new_fontset_from_font.  Check if
18618         a fontset is already created for the font.  FIx updating of
18619         Vfontset_alias_alist.
18620         (fontset_ascii_font): Deleted.
18621         (Ffont_info): Adjust for the format change of font-spec.
18622         (Finternal_char_font): Likewise.
18623         (Ffontset_info): Likewise.
18624         (syms_of_fontset): Don't check load_font_func.
18626         * fns.c (internal_equal): Handle PREV_FONT.
18628         * frame.h: Delete USE_FONT_BACKEND conditional.
18630         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
18631         conditionals.  Don't check enable_font_backend.  Delete all codes
18632         used only when USE_FONT_BACKEND is not defined.
18633         (x_set_font): Call x_new_font, not x_new_fontset2.
18634         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
18635         already set for the frame.
18637         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
18638         Make a font-entity by font_make_entity.  Use font_intern_prop instead
18639         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
18640         font property.  If a font is scalable, set avgwidth property to 0.
18641         Set font-entity property by font_put_extra.
18642         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
18643         (ffont_driver): Adjust for the change of struct font_driver.
18644         (ftfont_spec_pattern): New function.
18645         (ftfont_list): Return a list, not vector.
18646         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
18647         (ftfont_list_family): Don't downcase names.
18648         (ftfont_free_entity): Deleted.
18649         (ftfont_open): Return a font-object.  Adjusted for the change of
18650         struct font.  Get underline_thickness and underline_position from
18651         font property.  Don't update dpyinfo->smallest_font_height and
18652         dpyinfo->smallest_char_width.
18653         (ftfont_close): Don't free `struct font'.
18654         (ftfont_has_char): Adjust for the format change of font-entity.
18655         (ftfont_encode_char, ftfont_text_extents): Likewise.
18657         * ftxfont.c (ftxfont_list): Return a list, not vector.
18658         (ftxfont_open): Return a font-object.  Adjusted for the change of
18659         struct font.  Get underline_thickness and underline_position from
18660         font property.  Don't update dpyinfo->smallest_font_height and
18661         dpyinfo->smallest_char_width.
18662         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
18663         (ftxfont_draw): Adjust for the change of struct font.
18665         * image.c (image_ascent): Don't include "charset.h".
18666         Include "character.h" and "font.h".
18668         * lisp.h (enum pvec_type): New member PREV_FONT.
18669         (Fassoc_string): EXFUN it.
18671         * print.c: Include font.h.
18672         (print_object): Handle font-related objects.
18674         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
18675         conditionals.  Don't check enable_font_backend.  Delete all codes
18676         used only when USE_FONT_BACKEND is not defined.
18677         (handle_auto_composed_prop): Do nothing if it->f is not on a
18678         window system.  Check how many following characters can be
18679         displayed by the same font.
18680         (calc_pixel_width_or_height): Type of the 4th arg is changed to
18681         'struct font *'.
18682         (get_char_face_and_encoding): Assign the whole encoding task to
18683         the `encode-char' method of a font driver.
18684         (fill_composite_glyph_string): Adjust for the change of `struct
18685         face' and `struct glyph_string'.
18686         (fill_glyph_string): Likewise.
18687         (get_per_char_metric): Arguments changed.
18688         (x_get_glyph_overhangs): Adjust for the change of `struct face'
18689         and `struct glyph_string'.
18690         (produce_stretch_glyph, calc_line_height_property)
18691         (x_produce_glyphs): Likewise.
18693         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
18694         conditionals.  Don't check enable_font_backend.  Delete all codes
18695         used only when USE_FONT_BACKEND is not defined.
18696         Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
18697         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
18698         (Qp): Extern them.
18699         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
18700         Deleted.
18701         (struct font_name): Deleted.
18702         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
18703         (compare_fonts_by_sort_order): New function.
18704         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
18705         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
18706         Deleted.
18707         (Fx_family_fonts): Use font_list_entities, and sort fonts by
18708         compare_fonts_by_sort_order.
18709         (Fx_font_family_list): Call Ffont_family_list.
18710         (face_numeric_value, face_numeric_weight, face_numeric_slant)
18711         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
18712         (face_symbolic_slant, face_symbolic_swidth)
18713         (split_font_name_into_vector, build_font_name_from_vector)
18714         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
18715         (font_rescale_ratio, split_font_name, build_font_name)
18716         (free_font_names, sort_fonts, x_face_list_fonts)
18717         (face_font_available_p, sorted_font_list, cmp_font_names)
18718         (font_list_1, concat_font_list, font_list, remove_duplicates):
18719         Deleted.
18720         (Fx_list_fonts): Use Ffont_list.
18721         (LFACE_AVGWIDTH): Deleted.
18722         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
18723         by FONTP.
18724         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
18725         (set_lface_from_font_name): Delete it.
18726         (set_lface_from_font): Rename from
18727         set_lface_from_font_and_fontset.  Caller changed.  Don't set
18728         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
18729         for face.
18730         (merge_face_vectors): Copy font-spec if necessary.
18731         Clear properties of the font-spec if necessary.
18732         (merge_face_ref): Clear properties of the font-spec if necessary.
18733         (Finternal_set_lisp_face_attribute): Likewise.
18734         (set_font_frame_param): Use font_load_for_lface to load a
18735         font-object, and call Fmodify_frame_parameters with it.
18736         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
18737         font name by Ffont_xlfd_name.
18738         (Finternal_lisp_face_attribute_values): Don't check QCweight,
18739         QCslant, and QCwidth.
18740         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
18741         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
18742         Compare fonts by EQ.
18743         (lookup_non_ascii_face): Deleted.
18744         (face_for_font): The 2nd argument changed.
18745         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
18746         Check atomic font properties by case insensitive.
18747         (realize_non_ascii_face): Set face->overstrike correctly.
18748         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
18749         (dump_realized_face): Get font name from
18750         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
18752         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
18753         conditionals.  Don't check enable_font_backend.  Delete all codes
18754         used only when USE_FONT_BACKEND is not defined.
18755         (xic_create_xfontset): Original code deleted and renamed from
18756         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
18757         (x_make_gc): Don't set GCFont in GCs.
18758         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
18759         opened by "fixed".
18760         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
18761         find_ccl_program_func, query_font_func, set_frame_fontset_func,
18762         get_font_repertory_func.
18764         * xfont.c: Include <stdlib.h> and "ccl.h".
18765         (struct xfont_info): New structure.
18766         (xfont_query_font): Deleted.
18767         (xfont_find_ccl_program): Rename from x_find_ccl_program and
18768         moved from xterm.c.
18769         (xfont_driver): Adjust for the change of struct font_driver.
18770         (compare_font_names): New function.
18771         (xfont_list_pattern): Sort font names case insensitively.
18772         Make font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
18773         (xfont_list): Return a list, not vector.
18774         (xfont_match): If the font doesn't have QCname property, generate
18775         a name from the other font properties.
18776         (xfont_open): Return a font-object.  Adjusted for the change of
18777         struct font.  Get underline_thickness and underline_position from
18778         font property.  Don't update dpyinfo->smallest_font_height and
18779         dpyinfo->smallest_char_width.
18780         (xfont_close): Don't free struct font.
18781         (xfont_prepare_face): Adjust for the change of struct font.
18782         (xfont_done_face): Deleted.
18783         (xfont_has_char): Adjust for the change of struct font.
18784         (xfont_encode_char, xfont_draw): Likewise.
18785         (xfont_check): New function.
18787         * xftfont.c (xftfont_list): Adjust for the change of `list'
18788         callback function.
18789         (xftfont_match): Adjust for the format change of font-entity.
18790         (xftfont_open): Adjust for the format change of font-entity and
18791         font-object.  Adjusted for the change of struct font.  Return a
18792         font-object.  Don't update dpyinfo->smallest_font_height and
18793         dpyinfo->smallest_char_width.
18794         (xftfont_close): Block input while calling XftFontClose.
18795         (xftfont_prepare_face): Don't block input while calling
18796         xftfont_get_colors.  Adjusted for the change of struct font.
18797         (xftfont_shape): Return value of error case fixed.
18799         * xrdb.c (x_load_resources): Don't setup a fontset resource.
18801         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
18802         conditionals.
18803         (FONT_WIDTH): Return (f)->max_width.
18804         (struct x_display_info): Delete member `font'.
18805         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
18806         (x_find_ccl_program, x_get_font_repertory): Delete externs.
18807         (struct x_output): Change type of `font' to `struct font *'.
18809         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
18810         conditionals.  Don't check enable_font_backend.  Delete all codes
18811         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
18812         (x_per_char_metric, x_encode_char): Deleted.
18813         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
18814         (x_compute_glyph_string_overhangs): Adjust for the change of
18815         `struct face'.
18816         (x_draw_glyph_string_foreground)
18817         (x_draw_composite_glyph_string_foreground): Likewise.
18818         (x_draw_glyph_string): Likewise.  Use font->underline_position and
18819         font->underline_thickness.
18820         (x_new_font): Rename from x_new_fontset2.
18821         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
18822         (x_check_font): Call `check' method of a font driver.
18823         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
18824         (x_query_font, x_get_font_repertory): Deleted.
18825         (x_find_ccl_program): Rename and moved to xfont.c.
18826         (x_redisplay_interface): Adjust for the change of `struct
18827         redisplay_interface'.
18829         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
18830         conditionals.  Don't check enable_font_backend.  Delete all codes
18831         used only when USE_FONT_BACKEND is not defined.  Surround non-used
18832         code by "#ifdef OLD_FONT" and "endif".
18833         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
18835         * w32font.h (struct w32font_info): New member.
18836         (FONT_COMPAT): New macro.
18837         (w32font_open_internal): Prototype adjusted.
18839         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
18840         OLD_FONT" and "endif".
18842         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
18843         conditionals.  Don't check enable_font_backend.  Delete all codes
18844         used only when USE_FONT_BACKEND is not defined.
18845         (w32font_open): Return a font-object.  Make a font-object by
18846         font_make_object.  Adjusted for the change of struct w32font_info.
18847         (w32font_close): Don't free struct font.  Adjusted for the change
18848         of struct w32font_info.
18849         (w32font_encode_char, w32font_text_extents, w32font_draw):
18850         Adjust for the change of struct w32font_info.
18851         (w32font_draw): Likewise.
18852         (w32font_list_internal): Return a list, not vector.
18853         (w32font_open_internal): Change the 4th arg to font-object.
18854         Adjusted for the change of struct w32font_info and font-object format.
18855         (add_font_name_to_list): Don't downcase names.
18856         (w32_enumfont_pattern_entity): Make a font-entity by
18857         font_make_entity.  Adjusted for the format change of font-entity.
18858         Use FONT_SET_STYLE to set a style-related font property.  If a
18859         font is scalable, set avgwidth property to 0.  Set font-entity
18860         property by font_put_extra.
18861         (font_matches_spec): Adjust for the format change of font-entity.
18862         (w32_weight_table, w32_decode_weight): New variables.
18863         (w32_encode_weight): New function.
18864         (fill_in_logfont): Adjust for the format change of font-spec.
18865         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
18866         weight value.
18867         (w32font_driver): Adjust for the change of struct font_driver.
18869         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
18870         conditionals.  Don't check enable_font_backend.  Surround non-used
18871         code by "#ifdef OLD_FONT" and "endif".
18872         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
18873         (FONT_AVG_WIDTH): Adjust for the change of struct font.
18875         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
18876         conditionals.  Don't check enable_font_backend.  Delete all codes
18877         used only when USE_FONT_BACKEND is not defined.  Surround non-used
18878         code by "#ifdef OLD_FONT" and "endif".
18880         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
18881         (uniscribe_open): Return value changed to font-object.
18882         Adjusted for the format change of font-object.
18883         (uniscribe_otf_capability): Adjust for the change of struct font.
18884         (add_opentype_font_name_to_list): Don't downcase names.
18885         (uniscribe_font_driver): Adjust for the change of struct
18886         font_driver.
18888 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
18890         * dispnew.c (update_frame_1): Check if tty output is still valid
18891         before flushing it.
18893 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
18895         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
18896         to Gtk+ menus.
18898 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
18900         * dired.c (file_name_completion): Tweak the code so as to always do it
18901         in a single pass.  Tighten the scope of some variables.
18903         * dired.c (Qdefault_directory): New var.
18904         (file_name_completion): Use it instead of Fexpand_file_name.
18905         (syms_of_dired): Initialize it.
18907 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
18909         * fileio.c (double_dollars): Remove dead code.
18911 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
18913         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
18914         Mention w32-get-true-file-attributes in doc string.
18916         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
18918 2008-05-09  Glenn Morris  <rgm@gnu.org>
18920         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
18921         2008-04-23.
18923 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
18925         Support for reporting owner and group of each file on MS-Windows:
18926         * dired.c (stat_uname, stat_gname): New functions, with special
18927         implementation for w32.
18928         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
18930         * w32.c: Rename the_passwd_* to dflt_passwd_*.
18931         (dflt_group_name): New static variable.
18932         (dflt_group): Rename from the_group.
18933         (init_user_info): Init dflt_group fields.  Get user's group name
18934         from LookupAccountSid.
18935         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
18936         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
18937         New initialization states.
18938         (globals_of_w32): Initialize them to zero.  Initialize the default
18939         group name to "None".
18940         (GetFileSecurity_Name): New global var, the name of the function
18941         to call for GetFileSecurity.
18942         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
18943         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
18944         (get_file_security, get_security_descriptor_owner)
18945         (get_security_descriptor_group, is_valid_sid)
18946         (get_file_security_desc, get_rid, get_name_and_id)
18947         (get_file_owner_and_group): New functions.
18948         (stat): Use get_file_security_desc and get_file_owner_and_group to
18949         report the owner and primary group of each file.  Don't ignore the
18950         high 32 bits of file's size, now that st_size is 64-bit wide.
18951         Fix test when to get true file attributes.
18952         (init_user_info): Use get_rid instead of equivalent inline code.
18953         (fstat): Don't ignore the high 32 bits of file's size.
18955 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
18957         * image.c (png_load): Use correct bit-depth for setting background
18958         color.
18960 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
18962         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
18963         epa-hook.elc.
18965 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
18967         * font.c (Ffont_match_p): Don't use `iff' in docstring.
18969 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
18971         * macfns.c (Fx_create_frame): Make a copy of frame parameters
18972         because the original parameters are in pure storage now.
18973         (mac_window): Remove unused params.  Update callers.
18975 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
18977         * lread.c (substitute_object_recurse): Use lower-level primitives.
18978         Don't signal errors when traversing sub-char-tables.
18979         Don't loop over all the possible characters when traversing char-tables.
18981         * print.c (print_preprocess): Add sub-char-tables to the print-table,
18982         just like we do in print.c.
18984 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
18986         * minibuf.c (Ftry_completion): Remove code left over from when we used
18987         scmp instead of Fcompare_strings.
18989 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
18991         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
18993 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18995         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
18996         Create bitmap context in native byte order.
18998         * macterm.c (XDrawLine)
18999         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
19000         context in native byte order.
19002 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19004         * config.in: Regenerate.
19006         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
19007         New definitions for Image I/O support.
19008         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
19009         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
19010         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19011         (mac_data_provider_release_data, image_load_image_io)
19012         [USE_MAC_IMAGE_IO]: New functions.
19013         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
19014         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
19015         (init_image_func_pointer) [MAC_OSX]: Remove function.
19016         (image_load_quartz2d) [MAC_OSX]: Check availability of
19017         CGImageCreateWithPNGDataProvider at compile time.
19018         Use lowercase `false' for boolean constant.
19019         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
19020         Use image_load_image_io.
19021         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
19022         Don't check MyCGImageCreateWithPNGDataProvider.
19023         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
19024         Don't call init_image_func_pointer.
19026         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
19028         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
19029         Make variable non-static.
19030         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
19031         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
19033         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
19034         (RED_FROM_ULONG): Mask off higher bits.
19035         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
19037         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
19038         Include AvailabilityMacros.h.
19039         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
19040         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
19042 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
19044         * chartab.c (Fset_char_table_range): If range is t, really set all
19045         chars to that value.
19047 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
19049         * dired.c (Ffile_attributes): Don't allow the device number become
19050         negative.
19052 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
19054         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
19056 2008-05-02  Juri Linkov  <juri@jurta.org>
19058         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
19059         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
19060         DEFAULT argument as a list of default values in docstrings.
19062 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
19064         * puresize.h (BASE_PURESIZE): Increase to 1210000.
19066 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
19068         * dispnew.c (change_frame_size_1): Preserve small windows when
19069         shrinking frames by calling set_window_height|width with third
19070         arg 2.
19072         * window.h (struct window): Replace field too_small_ok by field
19073         resize_proportionally.
19075         * window.c (make_window): Initialize resize_proportionally.
19076         (enlarge_window): Temporarily set resize_proportionally to make
19077         sure that shrink_windows does scale the window proportionally.
19078         (shrink_windows): When window has resize_proportionally set try
19079         to shrink it proportionally by stealing from other windows.
19080         (struct saved_window, Fset_window_configuration)
19081         (compare_window_configurations): Handle resize_proportionally.
19082         (WINDOW_TOTAL_SIZE): New macro.
19083         (window_min_size, shrink_windows, size_window): Use it.
19084         (check_min_window_sizes): Remove.  Invalid values of
19085         window-min-height|width are handled by window_min_size_2 now.
19086         (size_window, Fsplit_window, enlarge_window)
19087         (adjust_window_trailing_edge, grow_mini_window): Don't call
19088         check_min_window_sizes.
19089         (window_min_size_2, window_min_size_1, window_min_size):
19090         New argument safe_p for retrieving "safe" minimum sizes.
19091         (Fdisplay_buffer, Fsplit_window, enlarge_window)
19092         (adjust_window_trailing_edge, grow_mini_window):
19093         Adjust arguments of window_min_size... functions.
19094         (shrink_windows): Argument min_size removed.  New argument
19095         safe_p allows shrinking windows to their safe minimum sizes.
19096         Calculate minimum size and decide whether a window shall be
19097         deleted for each window individually.
19098         (size_window): When nodelete_p equals 2, tell shrink_windows to
19099         delete windows only if their new minimum size is no more safe.
19100         (shrink_window_lowest_first): Call window_min_size_1 to make
19101         sure to preserve modeline of bottom-most window when resizing
19102         the minibuffer.
19103         (Fset_window_configuration, Fcurrent_window_configuration)
19104         (compare_window_configurations): Do not handle
19105         window-min-height|width any more.
19106         (syms_of_window): Clarify window-min-height|width doc-strings.
19108 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
19110         * dired.c (file_name_completion): Fix up the encoding/decoding issue
19111         some more.  Copy some of the code from Ftry_completions.
19112         Remove special case code that dates back to initial revision when the
19113         slash was only added when necessary and that can't trigger nowadays.
19115 2008-04-27  Kenichi Handa  <handa@m17n.org>
19117         * font.c (font_prop_validate): Signal `error' instead of `font'.
19119 2008-04-29  Jason Rumney  <jasonr@gnu.org>
19121         * w32fns.c (Fw32_battery_status): New defun.
19122         (syms_of_w32fns): Defsubr it.
19124 2008-04-28  Andreas Schwab  <schwab@suse.de>
19126         * dired.c (file_name_completion): Fix another mixing of encoded
19127         and decoded names.
19129 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
19131         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
19133 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
19135         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
19137 2008-04-27  Andreas Schwab  <schwab@suse.de>
19139         * dired.c (file_name_completion): Fix inappropriate mixing of
19140         encoded and decoded names.
19142         * xterm.c (XTread_socket): Fix use of uninitialized variable.
19144         * puresize.h (BASE_PURESIZE): Increase to 1200000.
19146 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
19148         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
19149         2008-03-31, it's not needed anymore with `struct stat' definition
19150         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
19151         for the same reasons.
19153 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
19155         * m/sparc.h: Additional redefinitions for GNU/Linux.
19157 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19159         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
19160         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
19161         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
19162         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
19163         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19164         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
19165         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19166         Likewise.
19168         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
19169         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
19170         (mac_ax_number_of_characters): Add externs.
19171         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
19172         [USE_MAC_TSM]: Likewise.
19173         (mac_handle_text_input_event) [MAC_OSX]:
19174         Handle kEventTextInputOffsetToPos for no active input area case.
19175         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19176         (mac_handle_document_access_event)
19177         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
19178         (install_application_handler) [MAC_OSX]: Register handlers for
19179         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
19180         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19181         Register mac_handle_document_access_event.
19183         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
19184         Make functions non-static.
19186 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
19188         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
19189         (read_file_name_completion_ignore_case, insert_default_directory)
19190         (Qdefault_directory): Move to minibuffer.el.
19191         (Fread_file_name): Call the new `read-file-name' instead.
19193 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19195         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
19196         Make function non-static.
19197         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
19198         Remove function.
19199         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19200         Move to mactoolbox.c.
19201         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
19203         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
19204         (mac_rect_make): New macro.
19206         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
19207         instead of float.
19208         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19209         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
19210         (XSetBackground) [USE_CG_DRAWING]: Likewise.
19211         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
19212         CGRectMake.
19213         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
19214         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
19215         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
19216         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19217         instead of WindowRef in argument type.
19218         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
19219         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
19220         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
19221         instead of DISPLAY.  All uses changed.
19222         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
19223         (x_calc_absolute_position): Simplify so as not to use
19224         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
19226         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
19227         instead of WindowRef in argument type.
19228         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
19229         [TARGET_API_MAC_CARBON]: Remove externs.
19230         (create_apple_event, mac_event_parameters_to_lisp)
19231         [TARGET_API_MAC_CARBON]: Add externs.
19233         * mactoolbox.c (Vmac_ts_script_language_on_focus)
19234         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
19235         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
19236         is clicked.
19237         (x_activate_menubar): Remove extern for saved_menu_event_location.
19238         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
19239         Move from mac.c.
19241 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19243         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
19244         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
19246 2008-04-23  Jason Rumney  <jasonr@gnu.org>
19248         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
19249         attributes only for local files.
19251         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
19252         default to Qlocal.
19254 2008-04-22  Juri Linkov  <juri@jurta.org>
19256         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
19257         read-buffer-to-switch instead of using the letter "B".
19259 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19261         * fileio.c (Qdefault_directory): New variable.
19262         (Fread_file_name): Use it to pass `dir' to the completion functions.
19264 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
19266         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
19268 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
19270         * keyboard.c (Vpre_help_message): Remove.
19271         (show_help_echo): Remove default C code.
19273         * dired.c (directory_files_internal, file_name_completion):
19274         Only call ENCODE_FILE if the string is indeed decoded.
19276 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
19278         * Makefile.in (TOOLKIT_DEFINES): Remove.
19279         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
19281 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19283         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
19284         (mactoolbox.o): New target.
19286         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
19287         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
19289         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
19290         Use mac_set_frame_window_background instead of XSetWindowBackground.
19291         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
19292         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
19293         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
19294         instead of SetWindowTitleWithCFString.
19295         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
19296         Move function to mactoolbox.c.
19297         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
19298         Use mac_set_window_modified instead of SetWindowModified.
19299         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
19300         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
19301         (Fx_focus_frame): Use mac_front_non_floating_window instead of
19302         FrontNonFloatingWindow.  Use mac_activate_window instead of
19303         ActivateWindow.  Use mac_active_non_floating_window instead of
19304         ActiveNonFloatingWindow.
19305         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
19306         Use mac_show_hourglass and mac_hide_hourglass.
19307         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
19308         instead of GetGlobalMouse.
19309         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
19310         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
19311         Use mac_bring_window_to_front instead of BringToFront.
19312         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
19313         mactoolbox.c.
19314         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
19315         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
19316         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
19317         mactoolbox.c.
19319         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
19320         (XtPointer): Move typedef from macmenu.c.
19321         (enum button_type): Move enum from macmenu.c.
19322         (widget_value): Move typedef from macmenu.c.
19323         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
19324         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19325         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19326         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19327         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19328         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19329         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19330         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
19331         (Selection): Move typedef from macselect.c.
19332         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
19333         macterm.c.
19334         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
19335         (mac_is_window_collapsed, mac_bring_window_to_front)
19336         (mac_send_window_behind, mac_hide_window, mac_show_window)
19337         (mac_collapse_window, mac_front_non_floating_window)
19338         (mac_active_non_floating_window, mac_activate_window)
19339         (mac_move_window_structure, mac_move_window, mac_size_window)
19340         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
19342         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
19343         (enum mac_menu_kind): Move enum to mactoolbox.c.
19344         (min_menu_id): Move variable to mactoolbox.c.
19345         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
19346         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
19347         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19348         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19349         [TARGET_API_MAC_CARBON]: Likewise.
19350         (XtPointer): Move typedef to macgui.h.
19351         (enum button_type): Move enum to macgui.h.
19352         (widget_value): Move typedef to macgui.h.
19353         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
19354         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
19355         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
19356         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
19357         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
19358         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
19359         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
19360         (popup_activated_flag): Make variable non-static.
19361         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
19362         (add_menu_item, fill_menu, dispose_menus):
19363         Move functions to mactoolbox.c.
19364         (restore_show_help_function, menu_target_item_handler)
19365         (install_menu_target_item_handler, mac_handle_dialog_event)
19366         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
19367         [TARGET_API_MAC_CARBON]: Likewise.
19368         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
19369         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19370         (find_and_call_menu_selection, name_is_separator): Make function
19371         non-static.
19372         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
19373         to mactoolbox.c.
19374         (set_frame_menubar): Don't call install_menu_quit_handler.
19375         (menu_item_selection): New variable.
19376         (mac_menu_show): Use create_and_show_popup_menu.
19377         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
19378         selection but set variable menu_item_selection.  All uses changed.
19379         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
19380         Call install_menu_quit_handler.  Move to mactoolbox.c.
19382         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
19383         (Selection): Move typedef to macgui.h.
19384         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
19385         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
19386         Make variables non-static.
19387         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19388         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
19389         Make functions non-static.
19390         (Vmac_service_selection) [MAC_OSX]: Likewise.
19391         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
19392         (mac_valid_selection_target_p, mac_clear_selection)
19393         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19394         (mac_put_selection_value, mac_selection_has_target_p)
19395         (mac_get_selection_value, mac_get_selection_target_list)
19396         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
19397         Move functions to mactoolbox.c.
19398         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
19399         Likewise.
19400         (copy_scrap_flavor_data, mac_handle_service_event)
19401         (install_service_handler) [MAC_OSX]: Likewise.
19402         (syms_of_macselect) <Vmac_dnd_known_types>:
19403         Use mac_dnd_default_known_types.
19405         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
19406         Move to mactoolbox.c.
19407         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
19408         (Fx_selection_owner_p): Add EXFUN.
19409         (install_window_handler, remove_window_handler, XSetWindowBackground):
19410         Remove externs.
19411         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
19412         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
19413         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
19414         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
19415         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
19416         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
19417         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
19418         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
19419         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
19420         (create_and_show_popup_menu, mac_get_selection_from_symbol)
19421         (mac_valid_selection_target_p, mac_clear_selection)
19422         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19423         (mac_put_selection_value, mac_selection_has_target_p)
19424         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
19425         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
19426         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
19427         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
19428         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
19429         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
19430         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
19431         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19432         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
19434         * mactoolbox.c: New file.
19436 2008-04-18  Jason Rumney  <jasonr@gnu.org>
19438         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
19440 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
19442         * character.c (Fmultibyte_char_to_unibyte):
19443         Return latin1 chars unchanged.
19445         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
19446         relocated if it points to `name'.
19448 2008-04-17  Kenichi Handa  <handa@m17n.org>
19450         * data.c (Faset): Allow setting a multibyte character in an
19451         ASCII-only unibyte string.
19453         * lisp.h (STRING_SET_MULTIBYTE): New macro.
19455 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
19457         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
19458         done in config.h.
19460 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
19462         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
19463         (Fchar_direction): Add usage in the docstring.
19465 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
19467         * keyboard.c (read_key_sequence): Remove always-true checks.
19469 2008-04-14  Jason Rumney  <jasonr@gnu.org>
19471         * w32font.c (w32font_open_internal): Set max_bounds.descent in
19472         compatibility struct, for better underline positioning.
19474 2008-04-13  David Hansen  <david.hansen@gmx.net>
19476         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
19477         string.
19479 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
19481         * m/hp800.h (XUINT, XSET): Remove.
19483 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
19485         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
19486         previous change.
19488 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
19490         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
19491         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
19493 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19495         * keymap.h (map_keymap_canonical): Declare.
19496         * xmenu.c (single_keymap_panes): Use it.
19498 2008-04-11  Glenn Morris  <rgm@gnu.org>
19500         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
19501         set the target's value to that of the alias.
19503 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
19505         * term.c (set_tty_color_mode): Left over typo.
19507 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
19509         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
19510         only after check for file name handler functions.  Signal, when
19511         native functionality is not supported.
19512         (syms_of_fileio): Declare it unconditionally.
19514 2008-04-10  Jason Rumney  <jasonr@gnu.org>
19516         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
19517         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
19519         * w32.c (logon_network_drive): Also logon to remote drives that
19520         are mapped to drive letters.
19522 2008-04-10  Glenn Morris  <rgm@gnu.org>
19524         * xdisp.c (truncate-partial-width-windows): Doc fix.
19526 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19528         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
19529         Move functions to minibuffer.el.
19530         (syms_of_fileio): Don't declare them.
19532 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
19534         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
19535         (syms_of_minibuf): Remove its initialization.
19537         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
19539 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
19541         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
19543 2008-04-09  Jason Rumney  <jasonr@gnu.org>
19545         * makefile.w32-in (distclean): Delete makefile too.
19546         (maintainer-clean): New target.
19548         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
19550         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
19551         for new font backend and composite cases.
19553 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
19555         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
19556         Most of the code moved to run_timers.
19557         (do_pending_atimers): Call run_timers.
19558         (run_timers): New function.
19560         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
19561         run atimers.
19563         * process.c (wait_reading_process_output): The same as above.
19565 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
19567         * minibuf.c (last_exact_completion): Remove variable.
19568         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
19569         (complete_and_exit_1, complete_and_exit_2)
19570         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
19571         (Fdisplay_completion_list, display_completion_list_1)
19572         (Fminibuffer_completion_help, Fself_insert_and_exit)
19573         (Fexit_minibuffer, Fminibuffer_message): Move functions to
19574         minibuffer.el.
19575         (syms_of_minibuf): Remove corresponding initializations.
19577         * keyboard.c (Qdeactivate_mark): New var.
19578         (command_loop_1): Use it to call `deactivate-mark'.
19579         (syms_of_keyboard): Initialize it.
19581         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
19582         to another frame.
19583         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
19584         Don't call set_tty_color_mode.
19585         (store_frame_param): Reset previous_frame rather than call
19586         set_tty_color_mode.
19587         * term.c (set_tty_color_mode): Rewrite.
19588         * dispextern.h (set_tty_color_mode): New type.
19589         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
19591 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
19593         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
19594         for generic chars, which do not exist any more in emacs-unicode.
19596 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
19598         * coding.c (detect_coding_emacs_mule)
19599         (Ffind_operation_coding_system): Fix typo.
19601 2008-04-08  Jason Rumney  <jasonr@gnu.org>
19603         * w32uniscribe.c (SNAME): Extract only symbol name.
19605         * w32font.h (struct w32_metric_cache): New struct.
19606         (w32font_info): Use it.
19607         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
19608         (CACHE_BLOCKSIZE): New constants.
19610         * w32font.c (Qja, Qko, Qzh): New symbols.
19611         (syms_of_w32font): Initialise them.
19612         (font_matches_spec): Use them to filter by language.
19613         (recompute_cached_metrics): Remove function.
19614         (compute_metrics, clear_cached_metrics): New functions.
19615         (w32font_encode_char): Use them to manage metric cache.
19616         (w32font_text_extents): Cache metrics for all glyphs on demand.
19617         Delay converting glyph indices to WORD until needed.
19618         (w32font_open_internal): Initialize metric cache to empty.
19619         (registry_to_w32_charset): Charset should always be a symbol.
19620         (fill_in_logfont, list_all_matching_fonts): Family should
19621         always be a symbol.
19623 2008-04-06  Jason Rumney  <jasonr@gnu.org>
19625         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
19626         Give up if glyph indices not supported.  Use uniscribe obtained
19627         ABC widths for individual metrics.  Map glyph clusters back to
19628         characters using fClusterStart flag.  Return number of glyphs
19629         produced, not chars processed.
19630         (uniscribe_shape): Map char at FROM to current glyph.
19632 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19634         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
19635         Use SetMenuItemHierarchicalMenu.
19637 2008-04-05  Jason Rumney  <jasonr@gnu.org>
19639         * image.c (pbm_load): Allow color values up to 65535.
19640         Throw an error if max_color_idx is outside the supported range.
19641         Report an error when image size is invalid.
19642         Read two bytes at a time when raw images have max_color_idx above 255.
19644 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
19646         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
19647         append "CCL: Quitted" when the CCL program is quitted.
19648         (setup_ccl_program): Initialize ccl->quit_silently to zero.
19650         * ccl.h (struct ccl_program): New member quit_silently.
19652 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
19654         * search.c (compile_pattern_1): Treat non-nil and non-string of
19655         search-spaces-regexp as nil.
19657         * minibuf.c (Fassoc_string): Tweak docstring.
19659 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
19661         * dired.c (Ffile_attributes): Support inode numbers wider than 32
19662         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
19663         2008-03-14 to force inode be positive.
19665         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
19666         _S_* ones, since we now use our own sys/stat.h.
19667         (stat, fstat): Don't mangle the inode number.
19668         (init_user_info): Don't restrict UID and GID to 0-60000 range.
19670 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
19672         * frame.h (struct frame): Give one more bit to `visible' since we use
19673         values larger than 1 to indicate obscured frames on ttys.
19675         * keymap.c (Qkeymap_canonicalize): New var.
19676         (Fmap_keymap_internal): New fun.
19677         (describe_map): Use keymap-canonicalize.
19679         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
19680         (Fundo_boundary): Set them.
19681         (syms_of_undo): Initialize them.
19682         (record_point): Use them instead of last_point_position*.
19683         (last_undo_buffer): Change type.
19685 2008-04-04  Jason Rumney  <jasonr@gnu.org>
19687         * w32font.c (w32font_text_extents): Use font's ascent and descent.
19688         (recompute_cached_metrics): Don't set ascent and descent per char.
19690         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
19691         (uniscribe_check_otf): Add GC protection before consing.
19692         Rearrange loop for counting features.
19694 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
19696         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
19697         buffer with byte-size of source buffer.
19699 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
19701         * callint.c (Fcall_interactively): Handle temporary region even
19702         when shift-select-mode is off.
19704 2008-04-03  Jason Rumney  <jasonr@gnu.org>
19706         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
19708 2008-04-03  Kenichi Handa  <handa@m17n.org>
19710         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
19711         (CATEGORY_MASK_UTF_16): Likewise.
19712         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
19713         binary file.
19714         (detect_coding): Add null-byte detection for a binary file.
19715         (detect_coding_system): Likewise.
19717 2008-04-03  Jason Rumney  <jasonr@gnu.org>
19719         * w32uniscribe.c: New file.
19721         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
19723         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
19725         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
19726         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
19727         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
19728         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
19729         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
19730         (Qphonetic): New symbols.
19731         (syms_of_w32font): Initialize them.
19732         (font_supported_scripts): Use them.
19733         (w32font_list_family): List all charsets.
19734         (w32font_text_extents, recompute_cached_metrics): Fix metric
19735         calculations.
19736         (w32_enumfont_pattern_entity): Make full_type a DWORD.
19737         Give opentype fonts their own format.
19738         (font_matches_spec): New arguments backend and logfont.
19739         Handle :otf spec for uniscribe backend.
19740         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
19741         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
19743         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
19744         font backend.
19745         (globals_of_w32fns): Initialize uniscribe font backend.
19747         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
19748         dependencies.
19749         (w32uniscribe.$(O)): New file to build.
19750         (FONT_OBJ): Include w32uniscribe.$(O).
19751         (LIBS): Add uniscribe libraries.
19753         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
19755 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
19757         * callint.c (Vshift_select_mode): New var.
19758         (Finteractive): Document new ^ spec.
19759         (Fcall_interactively): Call handle-shift-selection if the ^ spec
19760         is present.
19762         * keyboard.c (Vthis_command_keys_shift_translated): New var.
19763         (command_loop_1): Avoid running the direct display versions of
19764         forward-char and backward-char if shift-selection may occur.
19765         (read_key_sequence): Set Vthis_command_keys_shift_translated if
19766         shift-translation takes place.
19768         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
19769         avoid clobbering by define-minor-mode.
19771         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
19772         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
19774         * syntax.c (Fforward_word): Add ^ interactive spec.
19776         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
19777         (Fscroll_right): Add ^ interactive spec.
19779 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
19781         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
19783         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
19785         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
19787 2008-03-31  Juri Linkov  <juri@jurta.org>
19789         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
19791 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
19793         * gtkutil.c (xg_set_geometry): Fix indentation.
19794         (xg_resize_outer_widget): Remove.
19795         (x_wm_size_hint_off): Fix indentation.
19796         (xg_frame_set_char_size): Call flush_and_sync after
19797         gtk_window_resize.
19798         (x_wm_set_size_hint): Pass NULL as geometry window to
19799         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
19800         Add menu bar and tool bar height to base height.
19801         (xg_update_frame_menubar, free_frame_menubar)
19802         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
19803         (update_frame_tool_bar, free_frame_tool_bar):
19804         Change xg_resize_outer_widget to xg_frame_set_char_size.
19806 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
19808         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
19809         (Fdbus_call_method): New parameter TIMEOUT.
19810         (dbus-send-signal): Optimize UNGCPRO call.
19812 2008-03-29  Juri Linkov  <juri@jurta.org>
19814         * window.c (Fdisplay_buffer): Move call to
19815         Vsplit_window_preferred_function out of conditions that check
19816         if window is eligible for vertical splitting.
19817         When Vsplit_window_preferred_function is non-nil, call it and use
19818         its non-nil return value as window.  Otherwise, continue doing
19819         vertical splitting using Fsplit_window with arg horflag=nil.
19820         (syms_of_window) <Vsplit_window_preferred_function>: Change the
19821         default value from `split-window' to nil.
19823 2008-03-29  Juri Linkov  <juri@jurta.org>
19825         * callint.c (Fcall_interactively): Revert 2008-03-16 change
19826         for interactive code letters 'b' and 'B'.
19828 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
19830         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
19831         multibyte string.
19833 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
19835         * keyboard.c (pending_funcalls): New var.
19836         (timer_check): Run it.
19837         (syms_of_keyboard): Initialize it.
19838         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
19839         (Vdelete_terminal_functions): New vars.
19840         (syms_of_terminal): Initialize them.
19841         (Fdelete_terminal): Run delete-terminal-functions.
19842         * xdisp.c (safe_eval): Rewrite.
19843         (safe_call2): New fun.
19844         * frame.c (Qdelete_frame_functions): New var.
19845         (syms_of_frame): Initialize it.
19846         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
19847         * lisp.h (safe_call2, pending_funcalls): Declare.
19849 2008-03-28  Andreas Schwab  <schwab@suse.de>
19851         * indent.c (Fmove_to_column): Move declaration before statements.
19853 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
19855         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
19856         (struct frame): Use bit fields for boolean vars.
19858         * process.c (server_accept_connection): Simplify naming.
19859         (emacs_get_tty_pgrp): Use SDATA.
19861         * coding.c (decode_coding_object): Fix last change.
19863 2008-03-27  Jason Rumney  <jasonr@gnu.org>
19865         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
19867 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
19869         * charset.c (Fdefine_charset_internal): Change the way of
19870         registering charsets in Vcharset_order_list.
19871         (syms_of_charset): Make the charset `eight-bit' supplementary.
19873 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
19875         * regex.c (EXTEND_BUFFER): Change order of pointer addition
19876         operations, to avoid having the difference between pointers
19877         overflow.
19879 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
19881         * indent.c (check_display_width): New fun.
19882         (scan_for_column): Use it.
19884         * data.c (syms_of_data): Mark most-positive-fixnum and
19885         most-negative-fixnum as constants.
19887         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
19889         * indent.c (scan_for_column): Extract from current_column_1.
19890         Merge with the same code from Fmove_to_column.
19891         (current_column_1, Fmove_to_column): Use it.
19893 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19895         * keymap.c (map_keymap_internal): New fun.
19896         (map_keymap): Use it.
19897         (Fmap_keymap_internal): New fun.
19898         (Fmap_keymap): Remove left-out test from before make_save_value.
19900         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
19902         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
19903         Use XCAR/XCDR.
19905         * process.h (struct Lisp_Process): Remove filter_multibyte.
19906         * process.c (QCfilter_multibyte): Remove.
19907         (setup_process_coding_systems): Don't use filter_multibyte.
19908         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
19909         (read_process_output): Don't adjust multibyteness to filter_multibyte.
19910         (Fset_process_filter_multibyte): Change the coding-system to
19911         approximate the previous behavior.
19912         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
19913         coding-system.
19915         * coding.c (decode_coding_object): When not decoding into a buffer,
19916         obey the coding system's preference of (uni|multi)byte.
19918 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
19920         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
19921         every char is changed and has a different byte-length.
19922         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
19923         Fix int -> EMACS_INT.
19925 2008-03-23  David Hansen  <david.hansen@gmx.net>
19927         * dbusbind.c (xd_read_message): Remove extra copying of message
19928         strings.  Check for NULL `interface' or `member'.
19930 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
19932         * w32.c (readdir): If FindFirstFile/FindNextFile return in
19933         cFileName a file name that includes `?' characters, use the 8+3
19934         alias in cAlternateFileName instead.
19936 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19938         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
19940 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
19942         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
19943         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
19944         work on current_buffer only instead (that was already the case
19945         for some of the code anyway).
19946         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
19947         (temp_set_point, temp_set_point_both): Use EMACS_INT.
19948         (SET_PT, SET_PT_BOTH): Adjust.
19949         * intervals.h (set_point, temp_set_point, set_point_both)
19950         (temp_set_point_both): Remove redundant declarations.
19952 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
19954         * fileio.c (Finsert_file_contents):
19955         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
19956         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
19957         when buffer != current_buffer anyway.
19959 2008-03-20  Andreas Schwab  <schwab@suse.de>
19961         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
19962         as default.
19964 2008-03-19  Jason Rumney  <jasonr@gnu.org>
19966         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
19967         (syms_of_w32fns): Initialize them.
19968         (HOURGLASS_ID): New constant.
19969         (x_window_to_frame): Don't check hourglass_window.
19970         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
19971         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
19972         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
19973         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
19974         Only change the cursor if hourglass is not active.
19975         (Fx_create_frame): Initialize frame's current_cursor.
19976         (hourglass_atimer): Remove.
19977         (hourglass_started): New function.
19978         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
19979         (show_hourglass): Adapt to w32, changing argument to frame.
19981         * w32term.h (struct w32_output): Remove hourglass_window.
19982         Add current_cursor.
19984         * eval.c (call_debugger, Fsignal):
19985         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
19986         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
19987         (Fexecute_extended_command, cancel_hourglass_unwind):
19988         * minibuf.c (read_minibuf):
19989         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
19991 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
19993         * window.c (run_funs): New fun.
19994         (run_window_configuration_change_hook): Use it to run the buffer-local
19995         and the global part of the hook.
19997         * xdisp.c (format_mode_line_unwind_data): Add window argument.
19998         (unwind_format_mode_line): Restore selected window.
19999         (x_consider_frame_title, Fformat_mode_line): Set selected window.
20001 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
20003         * editfns.c (Fchar_equal): Check they are valid characters.
20005         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
20007 2008-03-17  Andreas Schwab  <schwab@suse.de>
20009         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
20010         against a charset.
20012         * lisp.h (Fbuffer_list): Declare.
20014 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
20016         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
20017         handlebox_widget is != 0.
20019 2008-03-16  Juri Linkov  <juri@jurta.org>
20021         * callint.c (Fcall_interactively): For interactive code letters
20022         'b' and 'B' put the buffer list into the list of default "future"
20023         values of the minibuffer.
20025 2008-03-16  Andreas Schwab  <schwab@suse.de>
20027         * keyboard.c (read_key_sequence): Fix downcasing of letters with
20028         modifiers.
20030         * regex.c (re_match_2_internal): Correct matching of a charset
20031         against latin-1 characters.
20033 2008-03-16  Kenichi Handa  <handa@m17n.org>
20035         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
20036         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
20037         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
20038         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
20039         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
20040         CHAR_STRING_ADVANCE.
20041         (produce_chars): Fix for the case that the source and the
20042         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
20043         instead of CHAR_STRING_ADVANCE.
20044         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
20045         STRING_CHAR_ADVANCE.
20047 2008-03-15  Andreas Schwab  <schwab@suse.de>
20049         * regex.c (re_match_2_internal): Correct matching of eight bit
20050         characters in unibyte strings.
20052 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
20054         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
20055         at end of range when it coincides with the end of the buffer.
20057 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
20059         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
20061         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
20063 2008-03-14  Jason Rumney  <jasonr@gnu.org>
20065         * editfns.c (initial_tz): New variable.
20066         (syms_of_editfns): Initialize it.
20067         (Fset_time_zone_rule): Set it when first called.
20068         Use it when TZSTRING is nil.
20070         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
20071         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
20072         (monitor_from_point_fn, get_monitor_info_fn): New globals.
20073         (globals_of_w32fns): Initialize them.
20074         (compute_tip_xy): Use them to position tooltips.
20076 2008-03-14  Glenn Morris  <rgm@gnu.org>
20078         * emacs.c (main): Revert previous change.
20079         (standard_args): Revert -internal-script back to -scriptload,
20080         and remove the long-option form.
20082 2008-03-13  Glenn Morris  <rgm@gnu.org>
20084         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
20085         Remove option -enable-font-backend.
20087 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
20089         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
20091 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
20093         * xterm.c (x_connection_closed): For GTK: If this is the last
20094         terminal just exit without closing the display.
20096 2008-03-11  Jason Rumney  <jasonr@gnu.org>
20098         * w32font.c (w32font_full_name): Use floor to round.
20100 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
20102         * sound.c (alsa_configure): Declare vol at beginning of block.
20104         * fontset.c (Ffontset_info): Remove extra semicolon.
20106 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20108         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
20109         size of resulting string.
20111 2008-03-10  Jason Rumney  <jasonr@gnu.org>
20113         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
20115 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20117         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
20118         Don't pretend as if characters with display property haven't been
20119         consumed for string-replacing-string case.
20121 2008-03-08  Kim F. Storm  <storm@cua.dk>
20123         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
20124         (get_next_display_element, next_element_from_string)
20125         (next_element_from_ellipsis, next_element_from_buffer): Use it.
20127 2008-03-08  Andreas Schwab  <schwab@suse.de>
20129         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
20131 2008-03-06  Jason Rumney  <jasonr@gnu.org>
20133         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
20134         when charset not specified.  Only translate ANSI to unicode when
20135         font_type is truetype.
20136         (w32font_coverage_ok): New function.
20137         (add_font_entity_to_list): Use it to filter unsuitable fonts.
20139 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
20141         * lread.c (Fread_char): Resolve modifiers.
20142         (Fread_char_exclusive): Likewise.
20144         * character.c (char_resolve_modifier_mask): New function.
20145         (char_string): Use char_resolve_modifier_mask.
20146         (Fchar_resolve_modifiers): New function.
20147         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
20148         function.
20150 2008-03-04  Jason Rumney  <jasonr@gnu.org>
20152         * makefile.w32-in: Always include w32font.c in the build.
20153         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
20155 2008-03-04  Andreas Schwab  <schwab@suse.de>
20157         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
20158         (versionclean): Likewise.
20160 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
20162         * .cvsignore: Add oo.
20164 2008-03-03  Andreas Schwab  <schwab@suse.de>
20166         * coding.c (decode_coding_object): Inhibit gap shrinking while
20167         decoding in place.
20169 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
20171         * w32term.c: Remove unused include "gnu.h".
20172         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
20174         * gnu.h: Rename to ...
20175         * emacs-icon.h: ... this.
20176         * xterm.c: Use emacs-icon.h instead of gnu.h.
20177         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
20179 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
20181         * w32font.c: Include math.h.
20183 2008-03-03  Jason Rumney  <jasonr@gnu.org>
20185         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
20186         Compute options separately.
20187         (w32font_open_internal): Set glyph_idx before caching metrics.
20189         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
20190         Define if system headers don't.
20191         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
20192         (w32font_encode_char): Don't declare here.
20194         * w32font.c (Quniscribe, QCformat): New symbols.
20195         (syms_of_w32font): Define them.
20196         (w32font_has_char): Indicate uncertainty.
20197         (w32font_encode_char): Encode as glyph point.  Make static.
20198         (recompute_cached_metrics): New function.
20199         (w32font_open_internal): Use it.  Set font to use glyph points
20200         initially.  Set format based on type of font.
20201         (w32font_text_extents, w32font_draw): Optionally use glyph points.
20202         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
20203         on it.  Set format based on information available here.
20204         (add_font_entity_to_list): Identify backend based on opentype_only.
20206 2008-03-02  Andreas Schwab  <schwab@suse.de>
20208         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
20210         * coding.c (decode_coding_big5, produce_chars):
20211         Fix typos in last change.
20213 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
20215         * gnu.h: New icon.
20217 2008-03-02  Kenichi Handa  <handa@m17n.org>
20219         * coding.c (decode_coding_utf_8): When eol-type of CODING is
20220         `dos', don't decode '\r' if that is the last in the source.
20221         (decode_coding_utf_16, decode_coding_emacs_mule)
20222         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20223         (decode_coding_raw_text, decode_coding_charset): Likewise.
20224         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
20226 2008-03-01  Jason Rumney  <jasonr@gnu.org>
20228         * w32font.c (w32font_full_name): Report point size for scalable fonts.
20230 2008-03-01  Kim F. Storm  <storm@cua.dk>
20232         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
20234 2008-03-01  Jason Rumney  <jasonr@gnu.org>
20236         * w32font.c (w32font_full_name): New function.
20237         (w32font_open_internal): Use it.
20239 2008-03-01  Kim F. Storm  <storm@cua.dk>
20241         * dispnew.c (line_draw_cost): Fix invalid glyph check.
20243 2008-03-01  Jason Rumney  <jasonr@gnu.org>
20245         * font.c (font_unparse_fcname): Increase len when style is a symbol.
20247 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
20249         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
20250         xg_frame_resized when the event is for the edit widget.
20252         * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
20254         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
20255         set_char_size.
20256         (xg_frame_resized): Rename from xg_resize_widgets.  Remove all
20257         operations on widgets here.  Just set frame size if needed.
20258         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
20259         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
20260         (x_wm_set_size_hint): Set size hints on the edit widget only, not
20261         the whole frame.
20262         (xg_create_tool_bar): Move attachment of the tool bar to
20263         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
20264         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
20266 2008-03-01  Jason Rumney  <jasonr@gnu.org>
20268         * w32fns.c (w32_msg_pump): Disable debug code.
20270 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20272         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
20274 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
20276         * xdisp.c (next_overlay_string): Don't set
20277         overlay_strings_at_end_processed_p if we're currently reading from
20278         a display string.
20280 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
20282         * xdisp.c (get_overlay_strings_1): Fix typo.
20284 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
20286         * xdisp.c (get_overlay_strings_1): Add missing argument type.
20288 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
20290         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
20292         * xdisp.c (display_mode_element): Cancel the previous change.
20293         (decode_mode_spec): Likewise.
20294         (handle_auto_composed_prop): Don't make composition if it->string
20295         is a string.
20297 2008-02-27  Kim F. Storm  <storm@cua.dk>
20299         * lisp.h (GLYPH): Change type from int to struct with separate char
20300         and face_id members.
20301         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
20302         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
20303         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
20304         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
20305         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
20306         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
20307         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
20308         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
20309         handle new Lisp glyph code encoding, either an integer or a cons.
20311         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
20312         (GLYPH_ALIAS): Delete.
20313         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
20314         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
20315         (GLYPH_FROM_CHAR): Replace macro by ...
20316         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
20318         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
20319         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
20320         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
20321         (GLYPH_INVALID_P): New macro.
20322         (spec_glyph_lookup_face): Update prototype.
20324         * dispnew.c (line_draw_cost): Adapt to new glyph type.
20325         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
20326         new glyph code encoding.
20327         (spec_glyph_lookup_face): No return value; update passed glyph instead.
20328         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
20330         * xdisp.c (get_next_display_element, next_element_from_display_vector):
20331         Adapt to new glyph type and new glyph code encoding.
20333         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
20335         * indent.c (current_column, current_column_1, Fmove_to_column)
20336         (compute_motion): Adapt to new glyph code encoding.
20338         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
20340 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
20342         * process.c (wait_reading_process_output): Check for window
20343         changes caused by timers.
20344         Suggested by Johan Bockgård.
20346 2008-02-27  Glenn Morris  <rgm@gnu.org>
20348         * emacs.c (USAGE1): Add `--disable-font-backend'.
20350 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
20352         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
20353         is made to the buffer.
20355 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
20357         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
20358         (face_at_string_position):
20359         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
20360         (face_at_string_position):
20361         * xdisp.c (display_string, next_overlay_change):
20362         * buffer.h (overlays_at):
20363         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
20364         Update callers.
20366 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
20368         * editfns.c (Fformat): Doc fix.
20370 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
20372         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
20373         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
20374         (Ffont_otf_alternates, Fquery_font): Doc fixes.
20376 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
20378         * buffer.c (Fbuffer_swap_text): New function.
20379         (syms_of_buffer): Defsubr it.
20381 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
20383         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
20385 2008-02-25  Jason Rumney  <jasonr@gnu.org>
20387         * w32font.c (w32font_draw): Draw one character at a time when padding.
20389 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
20391         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
20392         Handle a nil arg.  Use run_window_configuration_change_hook.
20393         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
20394         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
20395         Use run_window_configuration_change_hook.
20397 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
20399         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
20400         1-pixel width.
20402 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
20404         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
20405         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
20406         if the glyph in the font is zero pixel with.
20408         * dispextern.h (struct glyph_string): New member padding_p.
20410         * w32font.c (w32font_draw): Pay attention to s->padding_p.
20412         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
20414         * xfont.c (xfont_draw): Pay attention to s->padding_p.
20416         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
20418         * font.c: If the font driver doesn't have `shape' function, return Qnil.
20420 2008-02-25  Jason Rumney  <jasonr@gnu.org>
20422         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
20424 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
20426         Allow fine-grained image-cache flushing.
20427         * dispextern.h (struct image): Add `dependencies' field.
20428         (clear_image_caches): Change arg to Lisp_Object.
20429         * image.c (make_image): Initialize `dependencies' field.
20430         (clear_image_cache): Change arg to allow fine-grained flushing.
20431         Perform the flush even if image-cache-eviction-delay is nil.
20432         (clear_image_caches): Change arg to Lisp_Object.
20433         (Fclear_image_cache): Expand meaning of the argument.
20434         (mark_image): Mark `dependencies' field.
20435         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
20436         (lface_hash): Use XHASH rather than XFASTINT.
20437         (face_at_buffer_position): Fix int -> EMACS_INT position.
20438         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
20439         (select_frame_for_redisplay): Remove code duplication.
20440         (redisplay_internal): Adapt arg to call to clear_image_caches.
20442 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
20444         * s/vms4-0.h:
20445         * s/vms4-2.h:
20446         * s/vms4-4.h:
20447         * s/vms5-5.h: Remove, unused.
20449         * s/irix5-2.h:
20450         * s/irix6-0.h:
20451         * s/riscos5.h:
20452         * s/mach-bsd4-3.h:
20453         * m/mips4.h: Remove files for obsolete systems.
20455         * Makefile.in:
20456         * filelock.c:
20457         * unexmips.c:
20458         * m/hp9000s300.h:
20459         * m/iris4d.h:
20460         * s/aix3-1.h:
20461         * s/hpux.h:
20462         * s/msdos.h:
20463         * s/usg5-0.h:
20464         * s/usg5-2-2.h:
20465         * s/usg5-2.h:
20466         * s/usg5-3.h: Remove references to obsolete variables.
20468         * s/irix5-0.h: Remove, move all the contents ...
20469         * s/irix6-5.h: ... here.  Simplify.
20470         * config.in: Regenerate.
20472 2008-02-24  Jason Rumney  <jasonr@gnu.org>
20474         * w32term.c (x_draw_glyph_string_background): Clear the background
20475         manually when cleartype is in use.
20476         (x_draw_glyph_string_foreground): Draw text transparently when
20477         cleartype is in use.
20479         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
20480         a font into it unless we have to.
20482 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
20484         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
20485         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
20487 2008-02-18  Jason Rumney  <jasonr@gnu.org>
20489         * w32fns.c (Fw32_shell_execute): Encode parameters.
20491 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
20493         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
20495 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
20497         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
20499 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
20501         * xterm.c (x_set_offset): Don't change the gravity if
20502         CHANGE_GRAVITY is -1.
20504 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
20506         * fileio.c (auto_save_error_occurred): New var.
20507         (auto_save_error): Set it.
20508         (Fdo_auto_save): Don't overwrite the error message if an auto-save
20509         error occurred.
20511 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
20513         * w32.c (globals_of_w32): Add initializations for
20514         g_b_init_get_sid_sub_authority and
20515         g_b_init_get_sid_sub_authority_count.
20517 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
20519         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
20520         (font_parse_xlfd): Use them for sanity check.
20521         (Finternal_set_font_style_table): Make sure the table is bijective.
20523         Consolidate the image_cache to the terminal struct.
20524         * termhooks.h (P_): Remove redundant def.
20525         (struct terminal): New field `image_cache'.
20526         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
20527         of FRAME_X_IMAGE_CACHE.
20528         * xterm.h (struct x_display_info): Remove image_cache field.
20529         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
20530         * w32term.h (struct w32_display_info): Remove image_cache field.
20531         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
20532         * macterm.h (struct mac_display_info): Remove image_cache field.
20533         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
20534         * xterm.c (x_term_init):
20535         * w32term.c (w32_term_init):
20536         * macterm.c (mac_term_init): Set the image_cache in the terminal.
20537         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
20538         Remove declarations.
20539         (clear_image_caches, mark_image_cache): New declarations.
20540         * xfaces.c (clear_face_cache):
20541         * xdisp.c (redisplay_internal): Use clear_image_caches.
20542         * image.c (clear_image_cache): Don't check that a frame is on
20543         a window-system before checking if it shares the same cache.
20544         (clear_image_caches): New function.
20545         (Fclear_image_cache): Use it.
20546         (mark_image): Move from allo.c.
20547         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
20548         * alloc.c (mark_image, mark_image_cache): Move to image.c.
20549         (mark_object): Don't call mark_image_cache for frames.
20550         (mark_terminals): Call mark_image_cache.
20552         * lisp.h (Fdelete_terminal): Declare.
20554         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
20555         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
20556         wrong_type_argument.
20558 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
20560         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
20561         malayalam.el, and tamil.el.  Add sinhala.el.
20563 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
20565         * xterm.c (x_connection_closed): Consolidate identical tests.
20566         (x_delete_terminal): Don't crash if called via x_connection_closed.
20568 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
20570         * xdisp.c (decode_mode_spec): New arg string.
20571         (display_mode_element): Adjust for the above change.
20573 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
20575         * callint.c (Fcall_interactively): Use AREF.
20577 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
20579         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
20581 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
20583         * xfns.c (Fx_show_tip): Set string to " " if empty.
20585 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
20587         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
20588         with Qt.
20590 2008-02-17  Kenichi Handa  <handa@m17n.org>
20592         * ftfont.c (ftfont_shape): Return Lispy number.
20594         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
20595         for GCs.
20596         (Finternal_set_font_selection_order): Call font_update_sort_order
20597         only when enable_font_backend is set.
20598         (realize_x_face): Set face->font_info to that of default face only
20599         when enable_font_backend is set.
20601         * xdisp.c (handle_composition_prop): Set it->c to the fist
20602         character of the composed region.
20603         (fill_composite_glyph_string): Set base_face->font_info to
20604         s->font_info.  Get a face for ascii from base_face->ascii_face.
20605         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
20606         with a face already decided.
20607         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
20608         non-negative.
20609         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
20610         call font_prepare_composition unconditionally.
20612         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
20614         * xterm.h (struct x_display_info): New member font.
20616         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
20617         (x_set_mouse_face_gc, x_new_font): Likewise.
20618         (x_term_init): Setup display_info->font.
20619         (x_delete_terminal): Free display_info->font.
20621         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
20623         * ftxfont.c (ftxfont_default_fid): Delete it.
20624         (ftxfont_open): Set xfont->fid to 0.
20625         (ftxfont_end_for_frame): Clear data specific to the frame and the
20626         font-driver.
20628         * xftfont.c (xftfont_default_fid): Delete it.
20629         (xftfont_open): Set xfont->fid to 0.
20631         * fontset.c (FONTSET_OBJLIST): New macro.
20632         (fontset_find_font): Update font-object list of the fontset.
20633         (free_realized_fontset): New function.
20634         (free_face_fontset): Call free_realized_fontset.
20635         (Ffont_info): Call font_close_object only when enable_font_backend
20636         is set.
20638         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
20639         [HAVE_NTGUI]: Include w32term.h.
20640         [MAC_OS]: Include macterm.ch.
20641         (font_otf_ValueRecord): Use make_number.
20642         (font_finish_cache): Fix handling of reference count.
20643         (font_clear_cache): Update num_fonts.
20644         (font_open_entity): Update smallest_char_width and
20645         smallest_font_height of the frame.
20646         (font_close_object): Update num_fonts.
20647         (Fclear_font_cache): Fix finding the target cache data.
20649 2008-02-16  Glenn Morris  <rgm@gnu.org>
20651         * fontset.c (Finternal_char_font): Fix compilation warning.
20653 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
20655         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
20656         instead of char arrays.  Enlarge the size of array passed to
20657         get_token_information.
20659         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
20660         warnings.
20662 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
20664         * .gdbinit: Don't set `args', it breaks gdb --args.
20666 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
20668         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
20669         within a narrowed buffer.
20671 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
20673         * coding.c (decode_coding_object, encode_coding_object):
20674         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
20676 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
20678         * coding.c (coding_set_destination): Use BEG_BYTE rather than
20679         hardcoding 1.
20680         (detect_coding_system):
20681         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
20682         (string_char_to_byte, string_byte_to_char, insert_from_gap):
20683         * insdel.c (insert_from_gap):
20684         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
20685         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
20686         (string_to_multibyte):
20687         * character.c (chars_in_text, multibyte_chars_in_text):
20688         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
20690         * character.h (FETCH_STRING_CHAR_ADVANCE)
20691         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
20692         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
20693         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
20695         * casefiddle.c (casify_region): Only call after-change and composition
20696         functions on the part of the region that was changed.
20698         * keyboard.c (read_avail_input):
20699         * frame.c (Fdelete_frame): Call Fdelete_terminal.
20701 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
20703         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
20704         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
20706 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
20708         * w32menu.c (push_submenu_start, push_submenu_end)
20709         (push_left_right_boundary, push_menu_pane, push_menu_item):
20710         * keyboard.c (read_key_sequence): Don't pass args with side effects
20711         to AREF, it fails when compiling with -DENABLE_CHECKING.
20713 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
20715         * Makefile.in (${lispsource}international/charprop.el):
20716         Delete this target.
20718         * search.c (boyer_moore): Fix incorrect synching of the trunk and
20719         emacs-unicode-2.
20721 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
20723         * terminal.c (Fdelete_terminal): Clean up the `force' path.
20725 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20727         * frame.c (Qnoelisp): New symbol.
20728         (syms_of_frame): Initialize it.
20729         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
20730         harmless Elisp code, from a strong `force' from x_connection_closed.
20731         * frame.h (Qnoelisp): Declare.
20732         * xterm.c (x_connection_closed): Pass `noelisp'.
20734         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
20735         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
20736         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
20737         rather than `int' for the type of `type'.
20739 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
20741         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
20743         * Makefile.in (GNUC): Remove support for gcc-1.x.
20745 2008-02-10  Richard Stallman  <rms@gnu.org>
20747         * lisp.h (ASET): Use AREF, not ASLOT.
20749 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20751         * lisp.h (ASET): Check bounds.
20753 2008-02-10  Glenn Morris  <rgm@gnu.org>
20755         * buffer.c (mode-name): Doc fix.
20757 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
20759         * Makefile.in:
20760         * emacs.c:
20761         * gmalloc.c:
20762         * keyboard.c:
20763         * lisp.h:
20764         * m/ibm370aix.h:
20765         * process.c:
20766         * regex.c:
20767         * s/hpux.h:
20768         * sysdep.c:
20769         * sysselect.h:
20770         * systty.h:
20771         * unexec.c:
20772         * w32term.c:
20773         * xsmfns.c:
20774         * xterm.c: Remove code that deals with obsolete variables.
20776         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
20778         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
20779         nothing else needs it anymore.
20781 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
20783         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
20784         instead of unibyte_char_to_multibyte.
20786 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
20788         * s/gnu-linux.h: Remove commented out code.
20790         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
20792         * Makefile.in: Update what RMS says about using autoconf.
20793         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
20794         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
20795         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
20796         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
20798 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
20800         * keymap.c (Fkey_description): Move side effect outside of macro call.
20802         * xfaces.c (Finternal_make_lisp_face):
20803         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
20805         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
20806         (syms_of_fontset): Use ASET.
20808         * fns.c (concat): Move side effect outside of macro call.
20809         (hash_clear): Use ASET.
20811 2008-02-08  Richard Stallman  <rms@gnu.org>
20813         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
20814         If FORCE, and frame has a surrogate minibuffer for another frame,
20815         delete the other frame first.
20817 2008-02-07  Timo Savola  <timo.savola@iki.fi>
20819         * xterm.c (x_detect_focus_change): Handle embed client message.
20820         (handle_one_xevent): Ditto.
20821         (handle_one_xevent): If embedded and we get a button press/release,
20822         request focus.
20823         (xembed_set_info, xembed_send_message): New functions.
20824         (x_make_frame_visible): Call xembed_set_info if embedded.
20825         (x_make_frame_invisible): Call xembed_set_info if embedded.
20826         (x_term_init): Initialize Xatom_XEMBED.
20827         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
20828         (x_iconify_frame): Ditto.
20830         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
20831         (enum xembed_info, enum xembed_message, enum xembed_focus)
20832         (enum xembed_modifier, enum xembed_accelerator): New.
20833         (xembed_set_info, xembed_send_message): Declare.
20834         (FRAME_X_EMBEDDED_P): New.
20836         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
20837         gtk_plug_new.
20839         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
20840         window ID of a frame.
20841         (x_window): Reparent frame if embedded.
20842         (Fx_create_frame): Don't set border width if embedded.
20844         * emacs.c (USAGE3): Add --parent-id.
20845         (standard_args): Ditto.
20847 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
20849         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
20851 2008-02-07  Jim Meyering  <meyering@redhat.com>
20853         Use "do...while (0)", not "if (1)...else" in macro definitions.
20854         The latter provokes a warning from gcc about the empty else, when
20855         followed by ";".  Also, without that trailing semicolon, it would
20856         silently swallow up any following statement.
20857         * syntax.h (SETUP_SYNTAX_TABLE)
20858         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
20859         * buffer.h (DECODE_POSITION): Likewise.
20860         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
20861         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
20862         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
20863         (FETCH_CHAR_ADVANCE): Likewise.
20864         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
20866 2008-02-07  Jim Meyering  <meyering@redhat.com>
20868         * lread.c [lint]: Don't include <sys/inode.h>.
20870 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
20872         * xselect.c (x_handle_dnd_message):
20873         * xmenu.c (digest_single_submenu, xmenu_show):
20874         * xdisp.c (with_echo_area_buffer_unwind_data)
20875         (format_mode_line_unwind_data, unwind_format_mode_line)
20876         (display_menu_bar):
20877         * eval.c (Ffetch_bytecode):
20878         * doc.c (store_function_docstring):
20879         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
20880         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
20881         * buffer.c (add_overlay_mod_hooklist): Use ASET.
20883 2008-02-07  Kenichi Handa  <handa@m17n.org>
20885         * ftxfont.c (ftxfont_open): Don't set
20886         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
20888         * ftfont.c (ftfont_open): Fix previous change.
20890 2008-02-06  Jason Rumney  <jasonr@gnu.org>
20892         * w32font.c (w32font_text_extents): Fill in lbearing metric.
20893         Use cached metrics for ASCII characters.
20894         (w32font_open_internal): Don't set font's owning_frame.
20895         Cache metrics for ASCII characters.
20897         * w32font.h (struct w32font_info): Add ascii_metrics.
20898         Remove owning_frame.
20900 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
20902         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
20903         to negative value.
20905         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
20907         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
20909         * charset.c (syms_of_charset): Set QCtest and Qeq.
20911 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
20913         * process.c (Fstart_process):
20914         * callproc.c (Fcall_process): Handle the case where
20915         Funhandled_file_name_directory returns nil.
20917         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
20918         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
20919         * font.c (check_gstring): Use them and AREF to access the vector before
20920         we know it's really a gstring.
20921         (Ffont_shape_text): Fix typo.
20922         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
20924         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
20925         Declare.
20927         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
20929 2008-02-05  Jason Rumney  <jasonr@gnu.org>
20931         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
20932         Set smallest_font_height and smallest_char_width in display info.
20934 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
20936         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
20938 2008-02-05  Miles Bader  <miles@gnu.org>
20940         * xfaces.c (get_lface_attributes, merge_named_face)
20941         (lookup_named_face, lookup_derived_face, realize_named_face):
20942         Revert 2008-02-01 change by cyd@stupidchicken.com.
20944 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
20946         * fontset.c (Ffontset_info): Handle the case of inhibitting the
20947         fallback fonts.
20948         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
20950 2008-02-04  Jason Rumney  <jasonr@gnu.org>
20952         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
20953         set full_name.
20954         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
20956 2008-02-03  Jason Rumney  <jasonr@gnu.org>
20958         * makefile.w32-in (OBJ1): Include font.o here.
20959         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
20961 2008-02-02  Jason Rumney  <jasonr@gnu.org>
20963         * makefile.w32-in (temacs): Bump EMHEAP to 21.
20965 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20967         * s/cygwin.h: Define VIRT_ADDR_VARIES.
20969         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
20971 2008-02-01  Andreas Schwab  <schwab@suse.de>
20973         * Makefile.in (shortlisp, lisp): Update for rename of
20974         ../lisp/language/myanmar.el.
20976 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
20978         * xfaces.c (get_lface_attributes): Delete function.
20979         (merge_named_face, lookup_named_face, lookup_derived_face)
20980         (realize_named_face): Call lface_from_face_name directly, and use
20981         the fact that merge_face_vectors does not alter its FROM argument.
20983 2008-02-01  Jason Rumney  <jasonr@gnu.org>
20985         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
20986         input in the default locale.  Handle non-Unicode multibyte input.
20988 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
20990         * fontset.c (reorder_font_vector): Exclude nil elements from the
20991         font group.  Don't try multiple fonts.
20992         (fontset_font): Adjust for the above change.
20993         (Finternal_char_font): Return nil if the found font doesn't
20994         contain the character ch.
20996         * Makefile.in (lisp, shortlisp): Add cham.el.
20998 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21000         * font.h (FONTP): Make it return 1 also for a font-object.
21002         * .gdbinit (xfontset): New function.
21004         * font.c (font_find_for_lface): Check if the character C is
21005         supported or not only for the first font.
21007         * fontset.c (reorder_font_vector): Fix typo.
21008         (fontset_find_font): Don't add a font-spec specifying a script.
21009         Use 0 (not Qt) for the indication of empty font-group.  Change the
21010         format of RFONT-DEF.  Return Qt if no font in the font-group
21011         support the character.
21012         (fontset_font): Adjust for the above change.  If no font was
21013         found the character, remember that.
21014         (face_for_char): Adjust for the change of RFONT-DEF.
21015         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
21016         no font for the target.
21017         (Finternal_char_font): Adjust for the change of RFONT-DEF.
21019 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21021         * font.c (font_load_for_face): Handle the case that the font in
21022         face->lface is a string.
21024 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21026         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
21028 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21030         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
21031         Fix previous change.  If the frame is not on a window system,
21032         signal an error.
21034 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21036         * coding.c (decode_coding_object, encode_coding_object):
21037         Adjust marker positions after conversion.
21039         * lisp.h (struct Lisp_Marker): New member need_adjustment.
21041 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21043         * font.c (font_find_for_lface): Fix the handling of the return
21044         value of font_has_char.
21045         (Ffont_shape_text): Fix previous change.
21047         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
21048         (fontset_ref_and_range): Delete it.
21049         (fontset_find_font): Call char_table_ref_and_range instead of
21050         FONTSET_REF_AND_RANGE.
21051         (make_fontset): Don't setup font groups of Latin here.
21052         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
21053         (new_fontset_from_font): Make the specified font the default for
21054         all Latin characters.
21056 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21058         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
21059         is on a window system before accessing the fontset of the frame.
21061 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21063         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
21065         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
21066         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
21068         * font.c (Ffont_shape_text): If the font driver doesn't have a
21069         shaper function, make zero-width glyphs to have at least one-pixel
21070         width.  Fix setting of `to' field of glyphs.
21072 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21074         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
21075         glyphs.
21077         * font.h (struct font_driver): Improve docstring of member `shape'.
21079 2008-02-01  Kenichi Handa  <handa@m17n.org>
21081         * composite.c (syms_of_composite): Fix docstring of
21082         auto-composition-function.
21084         * font.h (LGLYPH_SIZE): New macro.
21086         * font.c (Ffont_fill_gstring): Stop filling when a character not
21087         supported by the font is found.
21088         (Ffont_shape_text): When a shape callback function returns nil,
21089         try at most two more times with larger gstring.
21090         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
21092         * xdisp.c (handle_auto_composed_prop): Change the argument to
21093         auto-composition-function.
21095         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
21096         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
21097         Lispy glyph and store it in the lgstring.
21099         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
21101         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
21103 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21105         * font.c (Ffont_shape_text): Avoid unnecessary composition.
21107         * fontset.c (Vfont_encoding_charset_alist): New variable.
21108         (syms_of_fontset): DEFVAR it.
21109         (reorder_font_vector, fontset_find_font): Optimize for the case of
21110         no need of reordering.
21111         (face_for_char): Map the charset property by
21112         Vfont_encoding_charset_alist.
21114 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21116         * w32font.c (logfonts_match): Don't check adstyle here.
21117         (font_matches_spec): Check here against physical font instead.
21118         (add_font_entity_to_list): Avoid some substitutions.
21120         * font.c (font_parse_fcname): Default weight and slant to normal.
21121         (font_score): Prefer normal fonts if weight or slant unspecified.
21122         (font_score) [WINDOWSNT]: Scale weight difference down to closer
21123         match freetype scores.
21125 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21127         * w32font.c (w32font_text_extents): Don't use the frame stored in the
21128         font, as it may have been deleted.
21129         (w32_enumfont_pattern_entity): Map generic family to adstyle using
21130         most common hyphenless variation.
21131         (logfonts_match): Check generic family.
21132         (font_matches_spec): Don't check generic family here.
21133         (fill_in_logfont): Set generic family based on adstyle.
21135         * w32font.h (w32font_get_cache): Update declaration.
21137 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21139         * ftfont.c (ftfont_get_cache): Adjust the argument type.
21141         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
21142         If none of the new drivers are available, call font_update_drivers
21143         with the old drivers.
21145         * w32font.c (w32font_get_cache): Adjust the argument type.
21147         * xfont.c (xfont_get_cache): Adjust the argument type.
21149         * font.h (struct font_driver): Change argument type of get_cache.
21151         * xftfont.c (xftfont_start_for_frame): Delete prototype.
21153         * font.c (Ffont_get): Fix arguments to Fassoc.
21154         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
21155         (font_clear_cache): New function.
21156         (font_list_entities, font_matching_entity): Use font_get_cache.
21157         (font_update_drivers): Call font_clear_cache when finishing a driver.
21159         * fontset.c (fontset_find_font): Fix previous change.
21161 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21163         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
21164         dpyinfo->font_table.
21165         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
21166         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
21168         * font.c (font_at): Handle the case that the arg C is negative.
21169         Handle the unibyte case.
21170         (Ffont_at): Call font_at with the arg C -1.
21172         * xdisp.c (handle_auto_composed_prop): Don't get a character at
21173         the position here, and call font_at with the arg C -1.
21174         Don't check the range of the existing composition at the point.
21176 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21178         * fontset.c (fontset_add): New args charset_id and family.
21179         Change caller.
21180         (load_font_get_repertory, fontset_find_font): Assume that
21181         font_spec is always a font-spec object.
21182         (Fset_fontset_font): Always store a font-spec object in a fontset.
21184         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
21185         instead of get_property_and_range.
21187 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21189         * xftfont.c (struct xftfont_info): Delete the member ft_face.
21190         (xftfont_open): Don't keep locking face.
21191         (xftfont_close): Don't unlock face.
21192         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
21194         * fontset.c (fontset_find_font): Don't prefer a font of
21195         supplementary charset.
21197 2008-02-01  Kenichi Handa  <handa@m17n.org>
21199         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
21200         script, langsys_tag to langsys, new member script.
21201         (OTF_TAG_STR): Terminate by '\0'.
21202         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
21203         listing to the script specified in that property.  Fix arg to
21204         OTF_check_features.
21206 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21208         * w32font.h: New file.
21210         * w32font.c: Include it.
21211         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
21212         (w32font_open): Set owning_frame.
21213         (w32font_text_extents): Use owning_frame.
21214         (struct font_callback_data): Add opentype_only field.
21215         (add_font_entity_to_list): Use it to filter fonts.
21216         Don't check against full name.
21217         (w32font_list_internal): New function.
21218         (w32font_list): Use it.
21219         (w32font_match_internal): New function.
21220         (w32font_match): Use it.
21221         (w32font_open_internal): New function.
21222         (w32font_open): Use it.
21223         (w32font_get_cache, w32font_close, w32font_has_char)
21224         (w32font_encode_char, w32font_text_extents, w32font_draw):
21225         Make non-static.
21227         * makefile.w32-in (w32font.o): Depend on w32font.h.
21229 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21231         * charset.c (Fdefine_charset_internal): Record a supplementary
21232         charset at the tail of Vcharset_order_list.
21234         * font.c (Ffont_shape_text): Fix the return value.
21236         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
21238         * xdisp.c (handle_auto_composed_prop): Fix previous change.
21240 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21242         * ftfont.c (struct OpenTypeSpec): New struct.
21243         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
21244         (ftfont_get_open_type_spec): New function.
21245         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
21247         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
21249 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21251         * w32font.c (add_font_entity_to_list): Compare only the beginning
21252         of full name.
21254 2008-02-01  Kenichi Handa  <handa@m17n.org>
21256         * xdisp.c (handle_auto_composed_prop): Simplify the code.
21257         Never return HANDLED_RECOMPUTE_PROPS.
21259 2008-02-01  Kenichi Handa  <handa@m17n.org>
21261         * font.c (font_gstring_produce): Delete it.
21263         * composite.h (COMPOSITION_METHOD):
21264         Handle COMPOSITION_WITH_GLYPH_STRING.
21266 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21268         * xfont.c (Qx): Delete.
21269         (syms_of_xfont): Don't initialize Qx.
21271         * composite.h (enum composition_method):
21272         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
21274 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21276         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
21277         (choose_face_font): Accept new form of font-spec.
21279         * frame.h (font_driver_list): Declare it unconditionally.
21280         (struct frame): Define members font_driver_list and font_data_list
21281         unconditionally.
21283         * fontset.c: Include "font.h" unconditionally.
21284         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
21285         (Fset_fontset_font): Accept a font-spec object.
21287         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
21288         PIXEL_SIZE part a wild card.
21290         * dispextern.h (struct glyph_string): Define members clip and
21291         num_clips unconditionally.
21292         (struct face): Define members font_info and extra unconditionally.
21294         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
21295         ftfont_info only when HAVE_LIBOTF is defined.
21297 2008-02-01  Andreas Schwab  <schwab@suse.de>
21299         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
21300         and end.
21302 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21304         * w32font.c (w32font_driver): Add new fields.
21306 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21308         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
21309         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
21310         (LIBES): Add @M17N_FLT_CFLAGS@.
21312         * composite.c (compose_text): Don't treat the new style
21313         composition specially.
21315         * emacs.c (main): Call syms_of_font unconditionally.
21317         * font.h (FONT_ENTITY_NOT_LOADABLE)
21318         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
21319         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
21320         (struct font_driver): New member shape.
21321         (font_registry_charsets): Extern it.
21322         (font_find_for_lface, font_prepare_composition): Adjust prototype.
21323         (font_otf_capability, font_drive_otf): Delete their externs.
21325         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
21326         (font_charset_alist, font_registry_charsets): Move from xfont.c
21327         and rename.
21328         (font_prop_validate_otf): New function.
21329         (font_property_table): Register it for QCotf.
21330         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
21331         (font_drive_otf): Delete.
21332         (font_prepare_composition): New arg F.  Adjust for the change of
21333         lispy gstring.
21334         (font_find_for_lface): New arg C.
21335         (font_load_for_face): Adjust for the change of font_find_for_lface.
21336         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
21337         lispy gstring.
21338         (Ffont_shape_text): New function.
21339         (Fopen_font): If the font size is not given, use 12-pixel.
21340         (Ffont_at): New arg STRING.
21341         (syms_of_font): Initialize font_charset_alist.
21342         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
21343         conditionally.
21345         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
21346         fonts of the same font-spec.  Change the format of RFONT-DEF.
21347         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
21348         Adjust for the change of RFONT-DEF.
21349         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
21351         * ftfont.h: New file.
21353         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
21354         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21355         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21356         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
21357         font_otf_capability and font_drive_otf, set ftfont_shape.
21358         (ftfont_list): Adjust for the change of :otf property value.
21359         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
21360         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
21361         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
21362         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21363         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
21364         (otf_gstring, gstring, m17n_flt_initialized): New variables.
21366         * w32term.c (x_draw_composite_glyph_string_foreground):
21367         Adjust for the change of lispy gstring.
21369         * xdisp.c (handle_composition_prop): Adjust for the change of
21370         lispy gstring.  Call a function for auto-composition with the
21371         third arg it->window.
21372         (fill_composite_glyph_string): Adjust for the change of lispy string.
21373         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
21375         * xfaces.c (set_font_frame_param): Adjust for the change of
21376         font_find_for_lface.
21378         * xfont.c (x_font_charset_alist): Move to font.c and rename.
21379         (xfont_registry_charsets): Likewise.  Change caller.
21380         (syms_of_xfont): Don't handle x_font_charset_alist.
21382         * xftfont.c: Include "ftfont.h".
21383         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
21384         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
21385         (xftfont_close) [HAVE_LIBOTF]: Close otf.
21386         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
21387         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
21388         Set xftfont_driver.shape to xftfont_shape.
21390         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21391         the change of lispy gstring.
21393 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21395         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
21397 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21399         * w32font.c (w32font_draw): Fill background manually.
21401 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21403         * font.c (Qfontp): Remove unused symbol.
21404         (QCantialias): New symbol.
21405         (syms_of_font): Define it.
21406         (font_property_table): Set a validator for QCantialias.
21408         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
21409         Define if not already.
21410         (QCfamily): Share with xfaces.c.
21411         (Qstandard, Qsubpixel, Qnatural): New symbols.
21412         (syms_of_w32font): Define them.  Don't define QCfamily here.
21413         (w32_antialias_type, lispy_antialias_type): New functions.
21414         (w32_enumfont_pattern_entity): New arg requested_font.
21415         Set antialias parameter if non-default was requested.
21416         (fill_in_logfont): Fill in lfQuality if :antialias specified.
21418 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21420         * lread.c (read1): Undo the previous change.
21422 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
21424         * frame.c (Fdelete_frame): Call font_update_drivers only when
21425         USE_FONT_BACKEND is defined.
21427 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21429         * font.h (struct font_bitmap): New member bits_per_pixel.
21430         (struct font_driver): New members start_for_frame and end_for_frame.
21431         (struct font_data_list): New struct.
21432         (font_put_frame_data, font_get_frame_data): Extern them.
21434         * frame.h (struct frame): New member font_data_list.
21436         * font.c (font_update_drivers): Call driver->start_for_frame and
21437         driver->end_for_frame at proper timings.
21438         (font_put_frame_data, font_get_frame_data): New functions.
21439         (Ffont_spec): Add usage in the docstring.
21441         * frame.c (make_frame): Initialize f->font_data_list to NULL.
21442         (Fdelete_frame): Call font_update_drivers.
21444         * xftfont.c (struct xftface_info): Delete the member xft_draw.
21445         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
21446         (xftfont_get_xft_draw): New function.
21447         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
21448         (xftfont_end_for_frame): New function.
21449         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
21451         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
21452         Change argument.  Cache GCs in the per-frame data.
21453         (struct ftxfont_frame_data): New struct.
21454         (ftxfont_draw_bitmap): New arg gc_fore and flush.
21455         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
21456         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
21457         (ftxfont_end_for_frame): New function.
21458         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
21460         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
21462 2008-02-01  Kenichi Handa  <handa@m17n.org>
21464         * xselect.c (Vselection_coding_system)
21465         (Vnext_selection_coding_system): Delete them.
21466         (syms_of_xselect): Don't declare selection-coding-system and
21467         next-selection-coding-system.  They are declared in select.el.
21469 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21471         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
21473         * w32fns.c: Include imm.h.
21474         (get_composition_string_fn, get_ime_context_fn): New optional
21475         system functions.
21476         (globals_of_w32fns): Load them from imm32.dll.
21477         (ignore_ime_char): New flag.
21478         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
21479         WM_IME_ENDCOMPOSITION messages.
21481         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
21482         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
21484 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21486         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
21487         (READCHAR_REPORT_MULTIBYTE): New macro.
21488         (readchar): New 2nd arg MULTIBYTE.
21489         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
21490         Make symbol's name multibyte according to the multibyteness of the
21491         source.
21493 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21495         * xfaces.c (face_for_overlay_string): Call lookup_face with
21496         correct arguments (fix of synching with the trunk).
21498 2008-02-01  Kenichi Handa  <handa@m17n.org>
21500         * font.c (font_prop_validate_symbol, font_prop_validate_style)
21501         (font_prop_validate_non_neg, font_prop_validate_spacing):
21502         Delete argument prop_index.
21503         (font_property_table): Change arguments to validater.  Change Callers.
21504         (font_lispy_object): Delete.
21505         (font_at): Use font_find_object instead fo font_lispy_object.
21507 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
21509         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
21510         and file names.
21512 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21514         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
21515         (font_matches_spec): Remove debug output.
21516         (add_font_entity_to_list): Avoid using substituted fonts.
21518 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21520         * doc.c (Fsnarf_documentation):
21521         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
21523 2008-02-01  Miles Bader  <miles@gnu.org>
21525         * dispextern.h (struct glyph_row): Only define "clip" field if
21526         HAVE_WINDOW_SYSTEM is defined.
21528 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
21530         Fix up multi-tty merge.
21532         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
21533         and indentation.
21535         * xfaces.c (free_realized_face, clear_face_gcs):
21536         Include font_done_for_face in the input_blocked section, just in case.
21538         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
21539         (get_char_face_and_encoding): Undo last change and remove the *other*
21540         duplicate definition (i.e. keep the one that's better scoped and that
21541         includes code for the font-backend).
21543         * terminal.c (create_terminal): Default keyboard_coding to
21544         `no-conversion' and terminal_coding to `undecided'.
21546         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
21548         * fontset.c (free_realized_fontsets): Check that the table entry does
21549         contain a fontset before trying to compare it to `base'.
21551         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
21552         syms_of_charset, and syms_of_coding earlier because init_window_once
21553         now needs Vcoding_system_hash_table to be setup.
21555         * coding.h (default_buffer_file_coding): Remove.
21557         * coding.c (default_buffer_file_coding): Remove.
21558         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
21559         than ->symbol, and use the terminal-local coding system.
21560         (syms_of_coding): Don't setup the coding-systems that are not
21561         terminal-local.
21562         (Fdefine_coding_system_internal): Use XCAR/XCDR.
21564         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
21565         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
21567         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
21568         in chartab.c and were re-added here by mistake.
21569         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
21571         * doc.c (Fsnarf_documentation):
21572         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
21573         src to etc.
21575         * ChangeLog.10: Add mistakenly removed entry.
21577 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
21579         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
21581 2008-02-01  Miles Bader  <miles@gnu.org>
21583         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
21584         Add extra args to FACE_FOR_CHAR.
21586 2008-02-01  Kenichi Handa  <handa@m17n.org>
21588         * keymap.c (where_is_internal_1): If key is a cons, store the copy
21589         in sequence.
21591         * chartab.c (map_sub_char_table, map_char_table): If the range
21592         contains just one character, call the function with that character
21593         even if the depth is not 3.
21595 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21597         * w32font.c (w32font_text_extents): Calculate metrics for the
21598         whole string.
21600 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21602         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
21604 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21606         * w32term.c (x_set_glyph_string_clipping):
21607         Use get_glyph_string_clip_rects.
21608         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
21609         Adjust for the change of struct glyph_string.
21611         * w32font.c (w32font_draw): Do clipping here.
21613 2008-02-01  Kenichi Handa  <handa@m17n.org>
21615         * xftfont.c (xftfont_draw): Adjust for the change of struct
21616         glyph_string.
21618         * xterm.c (x_set_glyph_string_clipping):
21619         Use get_glyph_string_clip_rects.
21620         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
21621         Adjust for the change of struct glyph_string.
21623         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
21624         the resulting clip(s}.
21625         (expose_overlaps): Add arg r.  Change callers.  Set it to
21626         row->clip temporarily.
21627         (expose_window): Redraw rows overlapping the exposed area.
21629         * dispextern.h (struct glyph_row): New member clip.
21630         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
21631         clip_height, new member clip, and num_clips.
21633 2008-02-01  Kenichi Handa  <handa@m17n.org>
21635         * data.c (Fchar_or_string_p): Fix docstring.
21637 2008-02-01  Kenichi Handa  <handa@m17n.org>
21639         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
21640         create a temporary XftDraw object.
21642 2008-02-01  Kenichi Handa  <handa@m17n.org>
21644         * font.c (Ffontp): Fix docstring.
21646         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
21647         strong evidence of ISO-2022.
21649 2008-02-01  Kenichi Handa  <handa@m17n.org>
21651         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
21652         SYNTAX_ENTRY_FOLLOW_PARENT.
21654 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
21656         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
21657         its type.
21658         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21659         Update to the new type of weak_hash_tables and next_weak.
21661         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
21662         a plain C pointer to Lisp_Hash_Table.
21664         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
21665         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
21666         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
21667         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
21668         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
21669         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
21670         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
21671         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
21672         (GC_EQ): Remove since they've been identical to their non-GC_
21673         alter-egos ever since the markbit was eradicated.
21675         * alloc.c:
21676         * buffer.c:
21677         * buffer.h:
21678         * data.c:
21679         * fileio.c:
21680         * filelock.c:
21681         * fns.c:
21682         * frame.h:
21683         * lisp.h:
21684         * macterm.c:
21685         * print.c:
21686         * process.c:
21687         * w32fns.c:
21688         * w32menu.c:
21689         * w32term.c:
21690         * xfns.c:
21691         * xmenu.c:
21692         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
21694 2008-02-01  Kenichi Handa  <handa@m17n.org>
21696         * chartab.c (map_sub_char_table): Make it work for the top-level
21697         char-table.  Fix handling of parent char-table.
21698         (map_char_table): Adjust for the above change.
21700 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21702         * w32font.c (Qgdi): Rename from Qw32.
21704 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21706         * w32bdf.c (get_quoted_string): Make function static.
21708 2008-02-01  Kenichi Handa  <handa@m17n.org>
21710         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
21711         bigger ascent and descent than those of the font, use them as
21712         font's ascent and descent.
21714 2008-02-01  Kenichi Handa  <handa@m17n.org>
21716         * Makefile.in (${lispsource}international/charprop.el): Move this
21717         target within "#ifdef HAVE_UNIDATA" and "#endif".
21719 2008-02-01  Kenichi Handa  <handa@m17n.org>
21721         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
21722         (shortlisp): Add ../lisp/language/tai-viet.el.
21724 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
21726         * Makefile.in (${lispsource}international/charprop.el): Depend on
21727         temacs${EXEEXT}.
21729 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21731         * w32font.c (w32font_close): Delete the GDI font object.
21733         * w32menu.c: Include character.h.
21735         * w32proc.c: Likewise.
21737         * w32select.c: Likewise.
21739         * makefile.w32-in (w32proc.o): Depend on character.h.
21741 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21743         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
21745         * w32menu.c (syms_of_w32menu): Likewise.
21747         * w32proc.c (syms_of_ntproc): Likewise.
21749         * w32select.c (syms_of_w32select): Likewise.
21751         * w32term.c (syms_of_w32term): Likewise.
21753 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21755         * w32font.c (w32font_draw): Delete brush after using it.
21757 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21759         * w32font.c (w32font_open): Don't set font_idx.
21760         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
21761         to font settings.
21762         (w32font_draw): Fill background explicitly.
21764 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21766         * w32term.c (w32_initialize): Don't call w32font_initialize.
21768         * w32font.c (w32font_info): Remove subranges.
21769         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
21770         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
21771         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
21772         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
21773         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
21774         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
21775         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
21776         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
21777         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
21778         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
21779         New symbols.
21780         (font_callback_data): New struct.
21781         (w32font_list, w32font_match): Use it.
21782         (w32font_open): Don't populate subranges.
21783         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
21784         (w32font_encode_char): Always return unicode code-point as-is.
21785         (w32font_text_extents): Supply a transformation matrix to
21786         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
21787         twice.  Use unicode version of GetTexExtentPoint32 instead of
21788         glyph index version.
21789         (set_fonts_frame): Remove.
21790         (w32_enumfont_pattern_entity): Add frame parameter, use it to
21791         set frame parameter.  Use backward compatible fake foundries.
21792         Save generic family in extra slot under QCfamily.  Make width slot
21793         constant.  Save QCspacing value.  Save list of scripts instead of
21794         binary subranges.
21795         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
21796         (add_font_entity_to_list): Use font_callback_data struct.
21797         Filter unwanted fonts.
21798         (add_one_font_entity_to_list): Use font_callback_data struct.
21799         (w32_registry): Default to iso10646_1.
21800         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
21801         string font registries.  Don't fill in font name if it is a generic
21802         family name, fill family instead.  Use spacing, family and script
21803         extra info to fill pitch, family and charset fields.
21804         (list_all_matching_fonts): Use font_callback_data struct.
21805         (unicode_range_for_char): Remove.
21806         (font_supported_scripts): New function.
21807         (w32font_initialize): Remove.
21808         (syms_of_w32font): Update which symbols are defined.
21810 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21812         * font.c (font_pixel_size): Reverse assq_no_quit args.
21814         * w32term.h (FONT_WIDTH): Report max width, not average.
21815         (FONT_MAX_WIDTH): Remove.
21816         (FONT_AVG_WIDTH): New macro.
21818         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
21819         redefinition of FONT_WIDTH.
21821         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
21822         (w32_cache_char_metrics): Use FONT_WIDTH.
21824         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
21826 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21828         * w32font.c (w32font_open): Make lfHeight negative.
21830         * w32fns.c (x_default_font_parameter): Use new style font name.
21831         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
21833 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21835         * w32font.c (QCsubranges): New symbol.
21836         (w32font_open, w32font_has_char): Get subranges from subproperty
21837         of extra.
21838         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
21839         (syms_of_w32font): Define :subranges symbol.
21841         * font.c (font_put_extra): Expose externally.
21843         * font.h (font_put_extra): Move declaration from font.c.
21845         * font.c (Ffont_get): Use font driver to determine otf capability.
21846         (adjust_anchor): Check if driver defines anchor_point before using.
21848         * w32font.c (w32font_open): Handle size, height and pixel_size better.
21849         (w32font_draw): Use options.
21850         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
21851         Fix detection of truetype fonts.
21852         (registry_to_w32_charset): Handle charsets other than iso8859-1
21853         expressed as lisp symbols.
21854         (w32_registry): Express charset as lisp symbol.
21855         (fill_in_logfont): Reverse pixel and point height logic.
21856         Don't set width here.  Set quality to default.
21858         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
21859         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
21861         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21862         Remove redundant loop and allocation.
21864         * makefile.w32-in (font.o, w32font.o): New objects.
21865         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
21866         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
21868         * xdisp.c (fill_composite_glyph_string): Make the first arg to
21869         STORE_XCHARB a valid l-value.
21871         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
21872         calculations for non-Truetype fonts.
21873         (x_draw_glyph_string): Sync with xterm.c.
21874         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
21875         Remove redundant code.
21876         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
21878         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
21879         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
21881         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
21882         (x_to_w32_charset, w32_to_x_charset): Expose externally.
21884         * w32font.c: New file for w32 font backend.
21886 2008-02-01  Kenichi Handa  <handa@m17n.org>
21888         * term.c: Don't include "buffer.h" twice.
21890 2008-02-01  Kenichi Handa  <handa@m17n.org>
21892         * character.c (Funibyte_string): New function.
21893         (syms_of_character): Defsubr it.
21895 2008-02-01  Jason Rumney  <jasonr@gnu.org>
21897         * w32term.c [USE_FONT_BACKEND]:
21898         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
21899         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
21900         (x_draw_glyph_string, x_draw_glyph_string_foreground)
21901         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
21902         (x_free_frame_resources): Sync with xterm.c.
21904 2008-02-01  Andreas Schwab  <schwab@suse.de>
21906         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
21907         char-table size.
21909 2008-02-01  Kenichi Handa  <handa@m17n.org>
21911         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
21913 2008-02-01  Kenichi Handa  <handa@m17n.org>
21915         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
21916         font_otf_gpos, add font_drive_otf.
21918         * fontset.c (fontset_find_font): Pay attention to font size
21919         specified for a font.
21920         (reorder_font_vector): Check contents of font_def.
21922         * font.c (struct otf_list): Delete it.
21923         (otf_list): Make it a lisp variable.
21924         (otf_open): Use lispy otf_list.
21925         (generate_otf_features): Rename from parse_gsub_gpos_spec.
21926         (check_otf_features): New function.
21927         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
21928         New functions.
21929         (font_drive_otf): New function merging font_otf_gsub and
21930         font_otf_gpos.
21931         (font_open_for_lface): New arg spec.  Change argument order.
21932         (font_load_for_face): Adjust for the change of font_open_for_lface.
21933         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
21934         Ffont_otf_gpos.
21935         (syms_of_font): Staticpro otf_list.  Delete defsubr of
21936         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
21938         * xfaces.c (set_font_frame_param): Adjust for the change of
21939         font_open_for_lface.
21941         * font.h (font_open_for_lface): Adjust prototype.
21942         (struct font_driver): Delete members otf_gsub and otf_gpos, add
21943         member otf_drive.
21944         (font_otf_gsub, font_otf_gpos): Delete externs.
21945         (font_drive_otf): Extern it.
21947 2008-02-01  Kenichi Handa  <handa@m17n.org>
21949         * font.c (font_at): If the window W is not on a window system,
21950         return Qnil.
21952         * coding.c (produce_chars, encode_coding): Don't call
21953         insert_from_gap if no characters to produce.
21955 2008-02-01  Kenichi Handa  <handa@m17n.org>
21957         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
21958         Fclear_face_cache.
21960         * xfaces.c (face_for_font): Check also face->font==font->font.font.
21962 2008-02-01  Miles Bader  <miles@gnu.org>
21964         * emacs.c (main): Change default value of `enable_font_backend' to 1.
21965         Parse "--disable-font-backend" option.
21966         (standard_args): Add "--disable-font-backend" option.
21968 2008-02-01  Kenichi Handa  <handa@m17n.org>
21970         * fontset.c (fontset_find_font): New function.
21971         (fontset_font): Use fontset_find_font.
21972         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
21973         Register the specified font for all Latin characters.
21974         (new_fontset_from_font): Register the specified font for all Latin
21975         characters.
21976         (dump_fontset): For a realized fontset, include the base fontset
21977         name in the returned vector.
21979 2008-02-01  Kenichi Handa  <handa@m17n.org>
21981         * character.h (CHAR_STRING): Cast C to unsigned on calling
21982         char_string.
21984         * character.c (char_string): Type of arg C changed to unsigned.
21985         Signal an error if C is an invalid character code.
21987         * editfns.c (general_insert_function, Fchar_to_string):
21988         Use CHARACTERP, not INTEGERP.
21990 2008-02-01  Kenichi Handa  <handa@m17n.org>
21992         * character.h (MIN_MULTIBYTE_LEADING_CODE)
21993         (MAX_MULTIBYTE_LEADING_CODE): New macros.
21995         * regex.c (analyse_first): Fix for multibyte characters in "case
21996         charset:" and "case categoryspec:".
21998 2008-02-01  Andreas Schwab  <schwab@suse.de>
22000         * Makefile.in (LIBES): Move standard libraries to the end.
22002 2008-02-01  Kenichi Handa  <handa@m17n.org>
22004         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
22005         nonzero, don't shrink the buffer nextb.
22007         * buffer.h (struct buffer_text): New member inhibit_shrinking.
22009         * coding.c (coding_alloc_by_making_gap): New arg offset.
22010         (alloc_destination): Call coding_alloc_by_making_gap with the arg
22011         offset.
22012         (decode_coding_iso_2022): Update coding->safe_charsets.
22013         (decode_coding_gap): Temporarily set
22014         current_buffer->text->inhibit_shrinking to 1.
22016 2008-02-01  Kenichi Handa  <handa@m17n.org>
22018         * xterm.c (x_draw_composite_glyph_string_foreground):
22019         Fix indexing into elements of s->cmp and s->char2b.
22021 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
22023         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
22025 2008-02-01  Kenichi Handa  <handa@m17n.org>
22027         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
22028         target_multibyte instead of multibyte.
22029         (re_match_2_internal): Call bcmp_translate with target_multibyte.
22030         (bcmp_translate): Change the argument name from multibyte to
22031         target_multibyte.
22033 2008-02-01  Kenichi Handa  <handa@m17n.org>
22035         These changes are to compile a regexp into a pattern that can be
22036         used both for multibyte and unibyte targets.
22038         * Makefile.in (search.o): Depend on charset.h.
22040         * character.c (multibyte_char_to_unibyte_safe): New function.
22042         * search.c: Include "charset.h".
22043         (compile_pattern_1): Delete argument multibyte.  Don't set
22044         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
22045         (compile_pattern): Don't compare cp->buf.target_multibyte.
22046         Compare cp->buf.charset_unibyte.
22047         (compile_pattern): Set cp->buf.target_multibyte.
22049         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
22051         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
22053         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
22054         multibyte.  Change callers.
22055         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
22056         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
22057         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
22058         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
22059         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
22060         (regex_compile): Make the compiled pattern usable both for
22061         multibyte and unibyte targets.
22062         (analyse_first): Make the fastmap usable both for multibyte and
22063         unibyte targets.
22064         (TRANSLATE_VIA_MULTIBYTE): Delete.
22065         (re_match_2_internal): Pay attention to the case that the
22066         multibyteness of bufp and target may be different.
22068 2008-02-01  Kenichi Handa  <handa@m17n.org>
22070         * xdisp.c (x_produce_glyphs): When a font is not found, make the
22071         empty box occupy at least one column width.
22073 2008-02-01  Miles Bader  <miles@gnu.org>
22075         * Makefile.in: Remove redundant HAVE_XFT clause.
22077 2008-02-01  Kenichi Handa  <handa@m17n.org>
22079         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
22081 2008-02-01  Kenichi Handa  <handa@m17n.org>
22083         * fontset.c (Finternal_char_font): Fix for the case of POSITION
22084         being nil.
22086 2008-02-01  Kenichi Handa  <handa@m17n.org>
22088         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
22090 2008-02-01  Kenichi Handa  <handa@m17n.org>
22092         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
22094 2008-02-01  Kenichi Handa  <handa@m17n.org>
22096         * search.c (simple_search): Fix previous change.
22098 2008-02-01  Kenichi Handa  <handa@m17n.org>
22100         * xftfont.c (ftfont_font_format): Extern declaration.
22102         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
22104         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
22105         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
22107         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
22108         (ftfont_font_format): Fix previous change.
22110         * font.h (Ffont_xlfd_name): EXFUN it.
22112         * font.c (font_parse_xlfd): Fix the array size of `f'.
22113         (register_font_driver): Use EQ to compare driver->type.
22115         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
22116         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
22117         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
22119 2008-02-01  Kenichi Handa  <handa@m17n.org>
22121         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
22122         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
22124 2008-02-01  Kenichi Handa  <handa@m17n.org>
22126         * xfont.c (xfont_open): Set font->format.
22128         * xftfont.c (xftfont_open): Set font->format.
22130         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
22131         (ftfont_list): Include FC_FONTFORMAT in FcObject.
22132         (ftfont_open): Set font->format.
22133         (ftfont_font_format): New function.
22135         * font.h (struct font): New member format.
22137         * font.c (Qopentype): New variable.
22138         (syms_of_font): Defsym it.
22139         (Fquery_font): Change the format of the last element of the return
22140         value.
22142 2008-02-01  Kenichi Handa  <handa@m17n.org>
22144         * xfns.c (xic_create_xfontset): Try the default fontset name as a
22145         last resort.
22147 2008-02-01  Kenichi Handa  <handa@m17n.org>
22149         * coding.c (detect_coding_charset): Fix detection of multi-byte
22150         charset.
22152 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
22154         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
22156 2008-02-01  Kenichi Handa  <handa@m17n.org>
22158         * xdisp.c (get_next_display_element): Set it->face_id for the
22159         first component of a composition.
22160         (x_produce_glyphs): Check if the font is changed or not for composition.
22162 2008-02-01  Kenichi Handa  <handa@m17n.org>
22164         * fontset.c (Qlatin): New variable.
22165         (syms_of_fontset): Define it as a lisp symbol.
22166         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
22168 2008-02-01  Kenichi Handa  <handa@m17n.org>
22170         * font.c (font_unparse_fcname): Pay attention to the case that
22171         some of font property is a null string.
22173 2008-02-01  Kenichi Handa  <handa@m17n.org>
22175         * term.c: Include "composite.h".
22176         (encode_terminal_code): Output all components of composition.
22177         Check the size of encode_terminal_src.
22178         (produce_glyphs): For composition, call produce_composite_glyph.
22179         (append_composite_glyph, produce_composite_glyph): New functions.
22181         * xdisp.c (x_produce_glyphs): In handling composition, if a font
22182         is not found, get font_info from the current ascii face.
22184 2008-02-01  Kenichi Handa  <handa@m17n.org>
22186         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
22187         buffer-file-name to Qnil before calling insert_from_buffer.
22189         * font.c (font_unparse_fcname): Pay attention to the case that
22190         foundry is a null string.
22192 2008-02-01  Kenichi Handa  <handa@m17n.org>
22194         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
22196         * font.c (Qunicode_sip): New variable.
22197         (syms_of_font): Declare it as a Lisp symbol.
22199         * font.h (Qunicode_sip): Extern it.
22201 2008-02-01  Kenichi Handa  <handa@m17n.org>
22203         * composite.c (get_composition_id): Pay attention to TAB component.
22205         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
22206         TAB.  Adjust for the change of s->char2b which always points to
22207         the first element of allocated memory.
22209         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
22211         * xdisp.c (handle_composition_prop): Set it->c to the first
22212         non-TAB component.
22213         (fill_composite_glyph_string): Change argument.
22214         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
22215         (x_produce_glyphs): Fix handling of left/right padding.
22217 2008-02-01  Kenichi Handa  <handa@m17n.org>
22219         * coding.c (detect_coding_system): Fix for handling off
22220         inhibit_iso_escape_detection.  Fix for the case that no coding
22221         system is defined for a specific coding category.
22223 2008-02-01  Kenichi Handa  <handa@m17n.org>
22225         * font.c (font_matching_entity): Delete unused local var.
22227         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
22228         opening a font.
22230         * fileio.c (Finsert_file_contents): On recovering a file, assume
22231         Unix-like eol.
22232         (choose_write_coding_system): On auto-saving a file, force
22233         Unix-like eol.
22235         * coding.c (setup_coding_system): Fix setting of
22236         coding->common_flags based on eol_type.
22237         (coding_inherit_eol_type): If PARENT is not nil, be sure to
22238         inherit from it.
22240 2008-02-01  Kenichi Handa  <handa@m17n.org>
22242         * alloc.c (NSTATICS): Increas to 0x600.
22244 2008-02-01  Kenichi Handa  <handa@m17n.org>
22246         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
22247         (ftfont_list): Don't check :name property.
22248         (ftfont_match): New function.
22249         (ftfont_pattern_entity): If the pattern doesn't contain
22250         FC_SPACING, don't assume FC_MONO.
22252         * font.h (struct font_driver): New member `match'.
22253         (font_update_drivers): Adjust prototype.
22255         * font.c (font_parse_fcname, font_parse_name): Don't change :name
22256         property of FONT.
22257         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
22258         Define them unconditionally.
22259         (font_matching_entity): New function.
22260         (font_open_by_name): Try font_matching_entity if exact match is
22261         not found.
22262         (font_update_drivers): Delete the arg FONT.  Return a list of
22263         actually used backends.  Don't free faces, font caches here.
22264         Don't store data in frame parameters.  Don't call x_set_font.
22265         (Ffont_spec): Store :name property as is.
22266         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
22267         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
22268         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
22269         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
22270         Call font->driver->otf_gsub instead of font_otf_gsub.
22272         * frame.c (x_set_font_backend): Do more works that were done in
22273         font_update_drivers before.
22275         * xfont.c (xfont_match): New function.
22276         (xfont_driver): Set xfont_driver.match to xfont_match.
22277         (xfont_draw): Set font in GC if necessary.
22279         * ftxfont.c (ftxfont_match): New function.
22280         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
22282         * xftfont.c (xftfont_match): New function.
22283         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
22285 2008-02-01  Kenichi Handa  <handa@m17n.org>
22287         * font.h (struct font): New member scalable.
22288         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
22289         (font_otf_gsub): Adjust prototype.
22291         * font.c (font_otf_capability): Fix handling of the default langsys.
22292         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
22293         Check the contents of SPEC.
22294         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
22295         (check_gstring): New function.
22296         (REPLACEMENT_CHARACTER): New macro.
22297         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
22298         glyph codes of GSTRING.
22299         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
22300         (font_prepare_composition): Set cmp->glyph_len.
22301         (font_open_entity): Set font->scalable.
22302         (Ffont_get): Handle :otf property.
22303         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
22304         New functions.
22305         (Fquery_font): Use font->font.full_name.
22306         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
22307         Sfont_otf_alternates.
22309         * ftfont.c (ftfont_open): Set font->font.full_name and
22310         font->font.name properly.  Fix calculation of font->font.height
22311         and font->min_width.
22313         * ftxfont.c (ftxfont_create_gcs): New function.
22314         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
22315         (ftxfont_draw_backgrond): Fix filling region.
22316         (ftxfont_default_fid): New function.
22317         (ftxfont_open): Set xfont->fid to the return value of
22318         ftxfont_default_fid.
22319         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
22320         (ftxfont_done_face): Free only GCs that are created by
22321         ftxfont_create_gcs.
22322         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
22324         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
22325         Clip to src->width, etc (not src->clip_XXX).
22327         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
22328         FontBackend frame parameter.
22330 2008-02-01  Kenichi Handa  <handa@m17n.org>
22332         * font.h (struct font_driver_list): New member `on'.
22333         (Fclear_font_cache): EXFUN it.
22334         (font_update_drivers): Extern it.
22336         * font.c (font_unparse_fcname): Fix typo (swidth->width).
22337         (font_list_entities): Check driver_list->on.
22338         (register_font_driver): Initialize `on' member to 0.
22339         (font_update_drivers): New function.
22340         (Fclear_font_cache): Check driver_list->on.
22342         * frame.h (Qfont_backend): Extern it.
22343         (x_set_font_backend): Extern it.
22345         * frame.c (Qfont_backend): New variable.
22346         (frame_parms): New element for font-backend.
22347         (x_set_font_backend): New function.
22349         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
22350         FontBackend frame parameter.
22351         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
22352         x_set_font_backend.
22354         * xfont.c (xfont_list): Don't try listing by :name property if the
22355         name is not for XLFD.
22357 2008-02-01  Kenichi Handa  <handa@m17n.org>
22359         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
22360         (LGLYPH_SET_TO): New macros.
22361         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
22362         element of G is vector or not.
22363         (font_at): Extern it.
22365         * font.c: Include window.h.
22366         (font_lispy_object): New function.
22367         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
22368         end of valid glyph.
22369         (font_close_object): Fix getting (struct font *).
22370         (font_at): New function.
22371         (Ffont_get): If FONT is a font-object, get entity from it.
22372         (Ffont_make_gstring): Initialize elements of glyphs with nil.
22373         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
22374         Fix range check.
22375         (Ffont_at): New function.
22376         (syms_of_font): Defsubr Sfont_at.
22378         * xdisp.c (it_props): Move the entry for Qauto_composed to just
22379         before the entry for Qcomposition.
22380         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
22381         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
22382         the font in gstring.
22383         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
22384         LGLYPH_FORM (g) to detect the end of valid glyph.
22385         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
22386         we are composing with gstring.
22388         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
22389         Check if adjustment is vector or not.
22391         * Makefile.in (font.o): Make it depends on window.h.
22393 2008-02-01  Kenichi Handa  <handa@m17n.org>
22395         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
22396         adjustment is vector or not.
22398 2008-02-01  Miles Bader  <miles@gnu.org>
22400         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
22402 2008-02-01  Kenichi Handa  <handa@m17n.org>
22404         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
22405         (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
22406         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
22408         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
22409         (DEVICE_DELTA): Fix typo.
22410         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
22411         LGLYPH format.
22413         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
22414         the change of LGLYPH format.
22416 2008-02-01  Kenichi Handa  <handa@m17n.org>
22418         * ftfont.c (ftfont_list): Fix typo.
22419         (ftfont_build_basic_charsets): Don't include letters with diacritics.
22421 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
22423         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
22425         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
22426         xftface_info is non-NULL.
22428 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
22430         * ftfont.c (ftfont_list): Move misplaced #endif.
22432 2008-02-01  Kenichi Handa  <handa@m17n.org>
22434         * ftfont.c (ftfont_list): Pay attention to the case that
22435         FC_CAPABILITY is not defined.
22437 2008-02-01  Kenichi Handa  <handa@m17n.org>
22439         * xftfont.c (xftfont_open): Set charset related members to -1.
22441         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
22442         QCname.
22443         (ftfont_open): Set charset related members to -1.
22445         * fontset.c (Votf_script_alist): New variable.
22446         (syms_of_fontset): Initialize it.
22447         (fontset_font): Delete unused variable.
22449         * fontset.h (Votf_script_alist): Extern it.
22451         * font.c (font_find_for_lface): Optimize code.
22453         * font.h (font_close_object, font_merge_old_spec): Extern them.
22455 2008-02-01  Kenichi Handa  <handa@m17n.org>
22457         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
22458         (syms_of_font): Initialize them.
22459         (font_pixel_size): Allow float value in dpi.
22460         (font_prop_validate_type): Delete.
22461         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
22462         Change caller.
22463         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
22464         (font_prop_validate_extra): Delete.
22465         (font_prop_validate_spacing): New function.
22466         (font_property_table): Add elements for all known properties.
22467         (get_font_prop_index): Rename from check_font_prop_name.
22468         New argument FROM.  Change caller.
22469         (font_prop_validate): Validate all known properties.
22470         (font_put_extra): Delete argument force.  Change caller.
22471         (font_expand_wildcards): Make it static.  Fix the way of shrinking
22472         the possible range.
22473         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
22474         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
22475         Change caller.
22476         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
22477         (font_parse_fcname): Delete argument merge.  Fix parsing of point
22478         size.  Don't validate properties values here.  Change caller.
22479         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
22480         (font_open_by_name): Delete unused variable.
22481         (Ffont_spec): Likewise.  Validate property values.
22482         (Ffont_match_p): New function.
22484         * font.h (QCscalable): Extern it.
22485         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
22487         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
22489         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
22490         (xfont_list_pattern): New function.
22491         (xfont_list): Use xfont_list_pattern.
22493 2008-02-01  Kenichi Handa  <handa@m17n.org>
22495         * font.h (Flist_fonts): EXFUN it.
22497 2008-02-01  Jason Rumney  <jasonr@gnu.org>
22499         * w32term.c (w32_initialize): Add back smoothing_type and
22500         smoothing_enabled definitions.
22502 2008-02-01  Kenichi Handa  <handa@m17n.org>
22504         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
22505         s->face->font on determining underline position.
22507 2008-02-01  Kenichi Handa  <handa@m17n.org>
22509         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
22510         (font_has_char): Accept font-object too.
22511         (font_find_for_lface): Try at first with a size specified in face.
22513 2008-02-01  Kenichi Handa  <handa@m17n.org>
22515         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
22516         font_open_by_name.
22518 2008-02-01  Kenichi Handa  <handa@m17n.org>
22520         * font.h (QCspacing, QCdpi): Extern them.
22521         (enum font_spacing): New enum.
22522         (FONT_PIXEL_SIZE_QUANTUM): New macro.
22524         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
22525         (QCspacing, QCdpi): New variables.
22526         (syms_of_font): Initialize them.
22527         (font_pixel_size): New function.
22528         (font_put_extra): New function.
22529         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
22530         in FONT_EXTRA.
22531         (font_parse_fcname): Handle enumerated values (e.g. bold).
22532         Fix handling font size.  Add QCname property that contains only
22533         unknown properties.
22534         (font_score): Change argument.  Change caller.  Pay attention to
22535         FONT_PIXEL_SIZE_QUANTUM.
22536         (font_sort_entites, font_list_entities, font_find_for_lface)
22537         (font_open_for_lface, font_open_by_name): Fix handling of font size.
22538         (Ffont_spec): Add QCname property that contains only unknown properties.
22540         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
22541         Don't include weight in listing pattern, instead check weight of each
22542         listed font.  Don't include scalable in pattern.  Pay attention to
22543         FONT_PIXEL_SIZE_QUANTUM.
22545 2008-02-01  Kenichi Handa  <handa@m17n.org>
22547         * font.c (font_parse_fcname): Fix parsing of point-size.
22548         (font_unparse_fcname): Produce symbolic names for style properties.
22549         (font_list_entities): Handle float size correctly.
22550         (font_open_by_name): Prefer `normal' property values if the name
22551         doesn't specify them.
22553         * fontset.c (Finternal_char_font): Use font_get_name, not
22554         Ffont_xlfd_name.
22556         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
22557         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
22558         pattern.  Don't force scalable.
22560         * xftfont.c (xftfont_open): For generating a name, start from
22561         96-byte buffer.
22563 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
22565         * frame.h (x_new_fontset2): Fix prototype.
22567 2008-02-01  Kenichi Handa  <handa@m17n.org>
22569         * font.h (struct font_driver): Delete member parse_name.
22570         (font_match_p, font_get_spec, font_parse_fcname)
22571         (font_unparse_fcname): Extern them.
22572         (font_get_name): Adjust prototype.
22574         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
22575         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
22576         (font_expand_wildcards): Fix handling ENCODING field.
22577         Avoid unnecessary checks for weight, slant, and swidth.
22578         (font_parse_fcname): New function.
22579         (font_unparse_fcname): New function.
22580         (font_parse_name): New function.
22581         (font_match_p): New function.
22582         (font_get_name): Change return value to Lisp string.
22583         (font_get_spec): New function.
22584         (Qunspecified, Qignore_defface): Don't extern them.
22585         (font_find_for_lface): Assume that LFACE is fully specified.
22586         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
22587         object, use it for FACE.
22588         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
22589         driver->parse_name.
22590         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
22592         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
22593         prototype.
22595         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
22596         argument F.  Don't call Fnew_fontset.  Instead, directly call
22597         make_fontset.
22599         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
22601         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
22602         of x_new_fontset2.
22604         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
22605         (Qsans__serif): New variables.
22606         (ftfont_generic_family_list): New variable.
22607         (syms_of_ftfont): Initialize the above variables.
22608         (ftfont_pattern_entity): Delete argument NAME.
22609         (ftfont_list_generic_family): New function.
22610         (ftfont_parse_name): Delete this function.
22611         (ftfont_list): Try generic family only when FcFontList found no font.
22612         (ftfont_list_family): Fix args to FcObjectSetBuild.
22614         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
22615         object in attrs[LFACE_FONT_INDEX].
22616         (set_lface_from_font_name): Cancel all changes for font-backend.
22617         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
22618         function.
22619         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
22620         font object in QCfont attribute.
22621         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
22622         (realize_default_face) [USE_FONT_BACKEND]: Call
22623         set_lface_from_font_and_fontset.
22625         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
22626         "fixed", and signal error here if no suitable font was found.
22628         * xfont.c (xfont_parse_name): Delete this function.
22630         * xftfont.c (xftfont_open): Change coding style of error
22631         handling.  Generate fontconfig's fontname pattern.
22633         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
22634         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
22636         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
22637         Both args FONTSET and FONT_OBJECT must be existing ones.
22639 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22641         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
22643 2008-02-01  Kenichi Handa  <handa@m17n.org>
22645         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
22647         * font.h (struct font): Fix typo.
22649         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
22650         XLFD_XXX_INDEX.
22651         (enum xlfd_field_mask): New enum.
22652         (intern_font_field): Change argument.  Change caller.  If digits
22653         are followed by non-digits, return a symbol.
22654         (font_expand_wildcards): New function.
22655         (font_parse_xlfd): Fix wildcard handling.
22656         (Ffont_spec): If :name is specified, reflect the info in the other
22657         properties.
22659         * ftfont.c (ftfont_pattern_entity): Fix typo.
22660         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
22661         locale.
22663 2008-02-01  Kenichi Handa  <handa@m17n.org>
22665         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
22667         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
22668         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
22669         registry doesn't specify encoding part.
22670         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
22671         (font_open_by_name): At first try parsing the name.
22672         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
22673         as Lisp symbols.
22675         * fontset.c (reorder_font_vector): Pay attention to the case that
22676         the 3rd element of font_def is nil.
22677         (fontset_font): For the default fontset, append one more fontset
22678         elements for a script-based font specification.  Don't add script
22679         attribute on finding a font.
22680         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
22681         font name.
22682         (fontset_ascii_font): If a font can't be opened, return nil.
22684         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
22685         (ftfont_pattern_entity): New function.
22686         (ftfont_get_cache): Assume that freetype_font_cache is already
22687         initialized.
22688         (ftfont_list): Handle the case that a file is specified in font
22689         name.  Use ftfont_pattern_entity to generate entities.
22690         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
22691         (syms_of_ftfont): Initialize freetype_font_cache.
22693         * xftfont.c (xftfont_open): Make the font name fontconfig's
22694         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
22695         (xftfont_close): Free font->font.name if not NULL.
22697         * xfont.c (xfont_list): If script is specified for a font, return
22698         null_vector.
22699         (xfont_list_family): Declare argument type.
22701         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
22702         name, set LFACE_FONT (lface) to nil.
22704         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
22705         return Qnil.
22707 2008-02-01  Kenichi Handa  <handa@m17n.org>
22709         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
22710         (standard_args): Add "-enable-font-backend".
22712 2008-02-01  Kenichi Handa  <handa@m17n.org>
22714         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
22715         (struct xftdraw_list, xftdraw_list): Delete them.
22716         (register_xftdraw, check_xftdraw): Delete them.
22717         (xftfont_prepare_face): Don't call register_xftdraw.
22718         (xftfont_done_face): Don't call check_xftdraw.
22719         (xftfont_draw): Get background color only when with_background is
22720         nonzero.
22722         * xfont.c (xfont_encode_char): Fix calculation of char2b.
22724 2008-02-01  Kenichi Handa  <handa@m17n.org>
22726         These changes are for the new font handling codes.
22728         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
22729         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
22730         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
22731         (FONTSRC, FONTOBJ): New variables.
22732         (obj): Add $(FONTOBJ).
22733         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
22734         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
22735         @LIBOTF_LIBS@.
22736         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
22737         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
22739         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
22741         * character.h (Vscript_representative_chars): Extern it.
22743         * character.c (Vscript_representative_chars): New variable.
22744         (syms_of_character): Declare it as a Lisp variable.
22746         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
22747         enable_font_backend is nonzero, accept the composition method
22748         COMPOSITION_WITH_GLYPH_STRING.
22750         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
22751         enumeration COMPOSITION_WITH_GLYPH_STRING.
22753         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
22754         members clip_x, clip_y, clip_width, and clip_height.
22755         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
22757         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
22758         --enable-font-backend.  Call syms_of_font.
22760         * fns.c (assoc_no_quit): New function.
22762         * fontset.h (FONT_INFO_FROM_FACE): New macro.
22763         (face_for_font, new_fontset_from_font)
22764         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
22766         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
22767         (fontset_font, fontset_ascii, face_for_char)
22768         (make_fontset_for_ascii_face, Ffont_info)
22769         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
22770         is nonzero, use font-backend mechanism.
22771         (find_font_encoding): Make it non-static.
22772         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
22773         New functions.
22775         * frame.h (struct frame): New members resx and resy.
22776         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
22777         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
22779         * frame.c [USE_FONT_BACKEND]: Include "font.h".
22780         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
22782         * lisp.h (assoc_no_quit): Extern it.
22784         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
22785         Through out the file, use FONT_INFO_FROM_FACE instead of
22786         FONT_INFO_FROM_ID, use get_per_char_metric instead of
22787         rif->per_char_metric.
22788         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
22789         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
22790         (get_glyph_face_and_encoding, fill_composite_glyph_string)
22791         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22792         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
22793         nonzero, use font-backend mechanism.
22794         (get_per_char_metric): New function.
22796         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
22797         (set_lface_from_font_name)
22798         (set_font_frame_param, free_realized_face)
22799         (prepare_face_for_display, clear_face_gcs)
22800         (Finternal_set_font_selection_order, realize_x_face)
22801         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
22802         font-backend mechanism.
22803         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
22804         (load_face_font) [USE_FONT_BACKEND]: Abort.
22805         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
22806         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
22808         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
22809         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
22810         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
22811         nonzero, register all available font drivers.
22812         Call x_default_font_parameter for deciding a font.
22813         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
22815         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
22816         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
22817         (x_set_glyph_string_clipping_exactly)
22818         (x_compute_glyph_string_overhangs)
22819         (x_draw_glyph_string_foreground)
22820         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
22821         (x_free_frame_resources) [USE_FONT_BACKEND]: If
22822         enable_font_backend is nonzero, use font-backend mechanism.
22823         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
22825 2008-02-01  Kenichi Handa  <handa@m17n.org>
22827         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
22828         system_eol_type.
22829         (syms_of_coding): Initialize system_eol_type.
22831         * process.c (Fset_process_coding_system): Inherit system's eol
22832         format if necessary.
22834 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22836         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
22838 2008-02-01  Kenichi Handa  <handa@m17n.org>
22840         * coding.c (decode_eol): Pay attention to buffer relocation in
22841         del_range_2.
22842         (decode_coding): Call decode_eol before restoring undo_list.
22844 2008-02-01  Kenichi Handa  <handa@m17n.org>
22846         * charset.c (Fdefine_charset_internal): Fix setting of
22847         emacs_mule_bytes.
22849 2008-02-01  Kenichi Handa  <handa@m17n.org>
22851         * keyboard.c (read_char): Check if C is a character or not before
22852         looking up Vkeyboard_translate_table.
22854 2008-02-01  Kenichi Handa  <handa@m17n.org>
22856         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
22857         Fix condition to terminate the loop.
22859 2008-02-01  Kenichi Handa  <handa@m17n.org>
22861         * coding.c (produce_composition): Compare charbuf[i] instead of
22862         args[i] against 0.
22863         (Fterminal_coding_system): Use EQ to compare Lisp objects.
22865 2008-02-01  Kenichi Handa  <handa@m17n.org>
22867         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
22868         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
22869         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
22870         detect_coding.
22871         (emacs_mule_char): Handle old style (Emacs 20) component character
22872         of a composition.
22873         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
22874         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
22875         composition rule.
22876         (decode_coding_emacs_mule): Handle invalid bytes correctly.
22878 2008-02-01  Kenichi Handa  <handa@m17n.org>
22880         * coding.c (encode_coding_ccl): Allocate destination dynamically
22881         when necessary.
22883 2008-02-01  Kenichi Handa  <handa@m17n.org>
22885         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
22886         the loop.  When quitted, show a proper error message.
22888 2008-02-01  Kenichi Handa  <handa@m17n.org>
22890         * xterm.c (x_set_glyph_string_clipping_exactly):
22891         Set src->clip_head and src->clip_tail temporarily instead of src->hl.
22893         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
22894         character sequence.
22895         (Fccl_execute_on_string): Use ASET, not XSET.
22897 2008-02-01  Kenichi Handa  <handa@m17n.org>
22899         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
22901 2008-02-01  Kenichi Handa  <handa@m17n.org>
22903         * coding.c (decode_coding): Fix the condition of terminating the
22904         decoding loop.
22906 2008-02-01  Kenichi Handa  <handa@m17n.org>
22908         * data.c (Faset): On setting a character bigger than 255 in a
22909         unibyte string, signal an error instead of make the string multibyte.
22911 2008-02-01  Kenichi Handa  <handa@m17n.org>
22913         * charset.c (map_charset_chars): Fix for ascii-compatible charset
22914         made by a mapping table.
22916 2008-02-01  Kenichi Handa  <handa@m17n.org>
22918         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
22919         not.
22920         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
22921         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
22923         * xterm.c (x_draw_composite_glyph_string_foreground):
22924         Check s->face is NULL or not.
22926 2008-02-01  Kenichi Handa  <handa@m17n.org>
22928         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
22929         (x_draw_glyph_string): Fix drawing of right_overhang and
22930         left_overhang around/on cursor.
22932         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
22934 2008-02-01  Kenichi Handa  <handa@m17n.org>
22936         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
22938 2008-02-01  Kenichi Handa  <handa@m17n.org>
22940         * coding.c (Fdefine_coding_system_internal)
22941         (Fdefine_coding_system_alias): Avoid a duplicated element in
22942         Vcoding_system_alist.
22944 2008-02-01  Kenichi Handa  <handa@m17n.org>
22946         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
22948         * coding.c (Qcoding_system_define_form): New variable.
22949         (syms_of_coding): Intern and staticpro it.
22950         (Fcoding_system_p): Check Qcoding_system_define_form.
22951         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
22953         * coding.h (CODING_SYSTEM_P): If ID is not available, call
22954         Fcoding_system_p.
22955         (CHECK_CODING_SYSTEM): If ID is not available, call
22956         Fcheck_coding_system.
22957         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
22958         Try also Fcheck_coding_system.
22960 2008-02-01  Kenichi Handa  <handa@m17n.org>
22962         * coding.c (code_conversion_restore): GCPRO arg.
22964 2008-02-01  Kenichi Handa  <handa@m17n.org>
22966         * character.c (lisp_string_width): Check multibyteness of STRING.
22968 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22970         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
22971         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
22972         (decode_mac_font_name): Use decode_coding_c_string instead of
22973         decode_coding.
22974         (x_load_font): Initialize fontp->fontset to -1.
22975         Set fontp->encoding_type.
22977 2008-02-01  Kenichi Handa  <handa@m17n.org>
22979         * search.c (search_buffer): Give up BM search on case-fold-search
22980         if one of a target character has a case-equivalence of different
22981         byte length even if that target character is an ASCII.
22982         (simple_search): Fix calculation of byte length of matched text.
22983         (boyer_moore): Fix handling of case-equivalent multibyte characters.
22985 2008-02-01  Kenichi Handa  <handa@m17n.org>
22987         * coding.c (decode_coding): Fix handling of invalid bytes.
22989 2008-02-01  Kenichi Handa  <handa@m17n.org>
22991         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22992         Unicode characters.
22994 2008-02-01  Kenichi Handa  <handa@m17n.org>
22996         * coding.c (encode_coding_object): If a pre-write-conversion
22997         function makes a new buffer, kill it.
22999 2008-02-01  Kenichi Handa  <handa@m17n.org>
23001         * coding.c (QCascii_compatible_p): New variable.
23002         (syms_of_coding): Initialize it.
23003         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
23004         calling string_char.
23005         (record_conversion_result): Add `default:' case.
23006         (coding_charset_list): Delete unused variable `coding_type'.
23007         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
23008         property in the plist of the coding system.
23009         (Fcoding_system_put): Check QCascii_compatible_p.
23011 2008-02-01  Miles Bader  <miles@gnu.org>
23013         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
23014         removed calculation of frame `f', as it's now used.
23016 2008-02-01  Kenichi Handa  <handa@m17n.org>
23018         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
23019         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
23020         (UNIDATA): New variable.
23021         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
23022         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
23023         Run $(RUN_TEMACS) unconditionally.
23025 2008-02-01  Kenichi Handa  <handa@m17n.org>
23027         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
23028         (admindir): New variable.
23029         ($(lispsource)international/charprop.el): New target.
23031 2008-02-01  Miles Bader  <miles@gnu.org>
23033         * character.c (chars-in-region): Remove obsolete function.
23034         (syms_of_character): Remove its initialization.
23036 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
23038         * w32select.c (validate_coding_system)
23039         (setup_windows_coding_system): New functions.
23040         (convert_to_handle_as_coded, Fw32_get_clipboard_data):
23041         Use setup_windows_coding_system.
23042         (setup_config, Fw32_get_clipboard_data):
23043         Use validate_coding_system.
23044         (Fx_selection_exists): Move call to setup_config to a place
23045         where signals are allowed.
23047         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
23048         (Fcheck_coding_system): Add declarations.
23050 2008-02-01  Kenichi Handa  <handa@m17n.org>
23052         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
23054 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23056         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
23057         string as the second argument for x_new_fontset.
23059 2008-02-01  Kenichi Handa  <handa@m17n.org>
23061         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
23062         (encode_coding_object): Use safe_call instead of call2.
23064 2008-02-01  Kenichi Handa  <handa@m17n.org>
23066         * fontset.c (Fset_fontset_font): Check family element of a given vector.
23068         * Makefile.in (lisp): Include charprop.el.
23070 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
23072         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
23073         Not sure if it's unnecessary.
23075 2008-02-01  Steven Tamm  <steventamm@mac.com>
23077         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
23078         some possibly unnecessary fontset checking code that crashed
23079         when creating a new frame.
23081 2008-02-01  Kenichi Handa  <handa@m17n.org>
23083         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
23084         lookup_face.
23086         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
23088         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
23090 2008-02-01  Kenichi Handa  <handa@m17n.org>
23092         * coding.c: Cancel the change done in HEAD on 2008-02-01.
23093         (coding_charset_list): New function.
23095         * coding.h (coding_charset_list): Extern it.
23097 2008-02-01  Kenichi Handa  <handa@m17n.org>
23099         * fontset.c (Fset_fontset_font): Call find_font_encoding with
23100         concatenation of family and registry.
23102 2008-02-01  Kenichi Handa  <handa@m17n.org>
23104         * character.h (BYTE8_STRING): Fix typo.
23106         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
23107         string to multibyte (sync to HEAD).
23109         * casefiddle.c (casify_region): Handle changes in byte-length
23110         using replace_range_2 (sync to HEAD).
23112 2008-02-01  Andreas Schwab  <schwab@suse.de>
23114         * chartab.c (map_char_table): GCPRO table and arg.
23116 2008-02-01  Kenichi Handa  <handa@m17n.org>
23118         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
23119         already at limit.
23121 2008-02-01  Kenichi Handa  <handa@m17n.org>
23123         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
23124         instead of fast_c_string_match_ignore_case.
23125         (find_font_encoding): Change argument to Lisp_Object.
23126         Use fast_string_match_ignore_case instead of
23127         fast_c_string_match_ignore_case.  Change caller.
23129 2008-02-01  Kenichi Handa  <handa@m17n.org>
23131         * xdisp.c (get_next_display_element): In unibyte case, decide to
23132         display in octal form by checking a character by
23133         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
23135         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
23137         * character.c (unibyte_has_multibyte_table): New variable.
23139         * character.h (unibyte_has_multibyte_table): Extern it.
23140         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
23142 2008-02-01  Kenichi Handa  <handa@m17n.org>
23144         * coding.c (encode_coding_iso_2022): Fix handling of charset
23145         annotation.
23147 2008-02-01  Kenichi Handa  <handa@m17n.org>
23149         * coding.c (setup_coding_system): If coding_system is nil, use
23150         Qundecided.
23151         (Fterminal_coding_system): Return nil if terminal coding system is
23152         `undecided'.
23153         (syms_of_coding): Define coding-system `undecided' here.
23154         Setup terminal_coding as `undecided'.
23156 2008-02-01  Kenichi Handa  <handa@m17n.org>
23158         * xdisp.c (message_dolog, set_message_1):
23159         Call unibyte_char_to_multibyte with arg type int.
23161         * lread.c (read1): Fix reading of a char-table.
23163         * print.c (print_object): Include sub char-table in circularities
23164         detection.
23166 2008-02-01  Kenichi Handa  <handa@m17n.org>
23168         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
23169         Append the found sequences in car of ARGS instead of prepending.
23171 2008-02-01  Kenichi Handa  <handa@m17n.org>
23173         * fileio.c (report_file_error): Make a unibyte string from
23174         strerror (errorno).
23175         (Fsubstitute_in_file_name): Fix the arg to
23176         unibyte_char_to_multibyte.  It is evaluated twice.
23178 2008-02-01  Kenichi Handa  <handa@m17n.org>
23180         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
23182 2008-02-01  Kenichi Handa  <handa@m17n.org>
23184         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
23185         BOM is not found.
23186         (detect_coding, detect_coding_system): Optimization for ISO-2022
23187         when no 8-bit data is found.
23189 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23191         * w32fns.c (x_to_w32_font): Update to use new coding struct.
23193 2008-02-01  Kenichi Handa  <handa@m17n.org>
23195         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
23196         CHARS.
23198 2008-02-01  Steven Tamm  <steventamm@mac.com>
23200         * macterm.c (mac_encode_char): Add charset argument and update
23201         to use encoding_type.
23202         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
23203         switch to pure fontset.
23204         (decode_mac_font_name): Temporarily remove decoding.
23205         (x_font_name_to_mac_font_name): Temporarily remove encoding.
23206         (x_load_font): Temporarily remove encoding.
23208 2008-02-01  Kenichi Handa  <handa@m17n.org>
23210         * xfaces.c (Fface_font): If frame is not on a window system,
23211         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
23212         refer to face->font.
23213         (split_font_name_into_vector, build_font_name_from_vector)
23214         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
23215         when HAVE_WINDOW_SYSTEM is defined.
23217 2008-02-01  Kenichi Handa  <handa@m17n.org>
23219         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
23220         (x_produce_glyphs): Fix setting of members of cmp in case
23221         cmp->glyph_len is zero.
23223         * fontset.c (Fset_fontset_font): Fix docstring.
23224         (Ffontset_info): Make it backward compatible.  New arg ALL.
23226 2008-02-01  Kim F. Storm  <storm@cua.dk>
23228         * process.c (read_process_output): Grow decoding_buf when needed;
23229         this could cause a crash in allocate_string and compact_small_strings.
23231 2008-02-01  Kenichi Handa  <handa@m17n.org>
23233         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
23235 2008-02-01  Kenichi Handa  <handa@m17n.org>
23237         * coding.c (setup_coding_system): Set coding->common_flags
23238         correctly for raw-text.
23239         (consume_chars): On encoding unibyte text by raw-text, don't check
23240         multibyte form.
23241         (encode_coding): On encoding by raw-text, never use translation tables.
23243         * fileio.c (e_write): Short cut for the case of no encoding.
23245 2008-02-01  Kenichi Handa  <handa@m17n.org>
23247         * coding.c (detect_coding, detect_coding_system): Delete unused
23248         variables.
23250 2008-02-01  Kenichi Handa  <handa@m17n.org>
23252         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
23253         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
23255 2008-02-01  Kenichi Handa  <handa@m17n.org>
23257         * coding.c (Ffind_coding_systems_region_internal):
23258         Include raw-text and no-conversion in the result.
23260 2008-02-01  Kenichi Handa  <handa@m17n.org>
23262         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
23263         (load_font_get_repertory): Delete unnecessary check of ENCODING of
23264         FONT_DEF.
23265         (font_def_arg, add_arg, from_arg, to_arg): New args.
23266         (set_fontset_font): Change argument.
23267         (Fset_fontset_font): Fix for the case that TARGET is a script
23268         name and charset name.
23269         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
23271 2008-02-01  Kenichi Handa  <handa@m17n.org>
23273         * fontset.c (fontset_font): Rename from fontset_face.  Change return
23274         value.
23275         (face_suitable_for_char_p, face_for_char): Adjust for the change
23276         of fontset_font.
23277         (make_fontset_for_ascii_face): Fix setting of the fontset element
23278         for ASCII.
23279         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
23280         to get a font name.
23281         (Ffontset_info): Adjust for the change of fontset_font.
23283         * coding.c (emacs_mule_char): Check invalid code more rigidly.
23285         * character.h (LEADING_CODE_LATIN_1_MIN)
23286         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
23288 2008-02-01  Kenichi Handa  <handa@m17n.org>
23290         * editfns.c (check_translation): New function.
23291         (Ftranslate_region_internal): Handle M:N mapping.
23293 2008-02-01  Kenichi Handa  <handa@m17n.org>
23295         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
23297 2008-02-01  Kenichi Handa  <handa@m17n.org>
23299         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
23300         goto invalid_code.
23301         (decode_coding_iso_2022): Fix handling of invalid designation.
23303         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
23304         after calling code_conversion_save.
23306 2008-02-01  Kenichi Handa  <handa@m17n.org>
23308         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
23310         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
23312         * fontset.c: Include "intervals.h".
23313         (fontset_face): Fix comparing of Lisp_Objects.
23314         (free_face_fontset, new_fontset_from_font_name):
23315         Fix Lisp_Object/int mixup.
23317         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
23319         * coding.c: Add many prototypes for static functions.
23320         (get_translation_table): Allow max_lookup to be NULL.
23321         (decode_coding, Ffind_coding_systems_region_internal)
23322         (Funencodable_char_position, Fcheck_coding_systems_region):
23323         Call get_translation_table with max_lookup NULL.
23325 2008-02-01  Kenichi Handa  <handa@m17n.org>
23327         * coding.c (get_translation_table): Declare it as Lisp_Object.
23328         (LOOKUP_TRANSLATION_TABLE): New macro.
23329         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
23330         instead of CHAR_TABLE_REF.
23332 2008-02-01  Kenichi Handa  <handa@m17n.org>
23334         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
23335         annotation data format.
23336         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
23337         Change arguments FROM and TO to single argument NCHARS.  Change caller.
23338         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
23339         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23340         (decode_coding_ccl, decode_coding_charset): Pay attention to
23341         coding->charbuf_used.
23342         (get_translation): New function.
23343         (produce_chars): New arguments translation_table and last_block.
23344         Translate characters here.  Return number of carryover chars.
23345         Change caller.
23346         (produce_composition): New argument pos.  Change caller.
23347         Adjust for the change of annotation data format.
23348         (produce_charset, produce_annotation): Likewise.
23349         (decode_coding, encode_coding): Don't call translate_chars.
23350         (consume_chars): New arg translation_table.  Change caller.
23351         (translate_chars): Delete.
23352         (syms_of_coding): Make translation-table's number of extra slots 2.
23354 2008-02-01  Kenichi Handa  <handa@m17n.org>
23356         * search.c (simple_search): Fix setting this_pos_byte in backward
23357         search.
23359         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
23360         byte sequence.
23361         (detect_coding_ccl): Fix setting of the variable valids.
23363 2008-02-01  Kenichi Handa  <handa@m17n.org>
23365         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
23367         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
23369         * editfns.c (Ftranslate_region_internal): Rename from
23370         Ftranslate_region.  Accept a char-table in TABLE.
23371         (syms_of_editfns): Defsubr Stranslate_region_internal.
23373         * xfaces.c (set_lface_from_font_name): If a font is specified for
23374         a frame, generate a fontset from the font.
23375         (build_scalable_font_name): If the scalable font is requested for
23376         a specific size, don't change that size.
23377         (try_font_list): Try a scalable font also in the case that a
23378         pattern string is specified.
23380 2008-02-01  Kenichi Handa  <handa@m17n.org>
23382         * xfaces.c (Fface_font): New optional arg CHARACTER.
23384 2008-02-01  Kenichi Handa  <handa@m17n.org>
23386         * charset.h (CHARSET_OFFSET): New macro.
23388 2008-02-01  Kenichi Handa  <handa@m17n.org>
23390         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
23392         * fontset.c (fontset_face): Handle the case that repertory is a
23393         char-table.
23394         (find_font_encoding): Return nil for unknown encoding.
23395         (Fset_fontset_font): Ignore a font of unknown encoding.
23397 2008-02-01  Kenichi Handa  <handa@m17n.org>
23399         * keymap.c (describe_vector): Handle default value of a char table.
23401         * fontset.c (fontset_face): Handle fallback fonts correctly.
23402         (Ffontset_info): Return infomation about fallback fonts.
23404 2008-02-01  Kenichi Handa  <handa@m17n.org>
23406         * fontset.c (FONTSET_DEFAULT): New macro.
23407         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
23408         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
23409         the case that it is nil.
23410         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
23411         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
23413         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
23414         subset or superset.
23416 2008-02-01  Kenichi Handa  <handa@m17n.org>
23418         * emacs.c (main): Call init_charset after syms_of_XXX.
23420         * charset.c (Vcharset_map_directory): Delete.
23421         (Vcharset_map_path): New variable.
23422         (load_charset_map_from_file): Use Vcharset_map_path instead.
23423         (init_charset): Initialize Vcharset_map_path.
23424         (syms_of_charset): Delete declaration of "charset-map-directory",
23425         add declaration of "charset-map-path".
23427 2008-02-01  Kenichi Handa  <handa@m17n.org>
23429         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
23430         ASCII only string.
23432         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
23434         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
23435         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
23437 2008-02-01  Kenichi Handa  <handa@m17n.org>
23439         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
23441         * coding.c (QCmnemonic, QCdefalut_char)
23442         (QCdecode_translation_table, QCencode_translation_table)
23443         (QCpost_read_conversion, QCpre_write_conversion): New variables.
23444         (get_translation_table): Return a list of translation tables if
23445         necessary.
23446         (decode_coding): Call get_translation_table with ENCODEP 0.
23447         (char_encodable_p): If translation_table is non-nil, always call
23448         translate_char.
23449         (Fdefine_coding_system_internal): Accept list of translation
23450         tables as :encode-translation-table and :decode-translation-table.
23451         (Fcoding_system_put): New function.
23452         (syms_of_coding): Declare new symbols.
23453         Defsubr Scoding_system_put.
23454         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
23455         typically JISX0212.
23457         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
23458         when the charset is superset type.
23460         * character.c (translate_char): Accept list of translation tables.
23462 2008-02-01  Kenichi Handa  <handa@m17n.org>
23464         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
23465         (CODING_ATTR_TRANS_TBL): New macro.
23467         * coding.c (get_translation_table): New function.
23468         (translate_chars): Fix the bug of skipping annotation data.
23469         (decode_coding, encode_coding): Utilize get_translation_table.
23470         (char_encodable_p, Funencodable_char_position): Translate char if
23471         necessary.
23472         (Ffind_coding_systems_region_internal)
23473         (Fcheck_coding_systems_region): Setup translation table for encode
23474         in a coding system attribute vector in advance.
23475         (Fdefine_coding_system_internal): Allow a symbol as translation
23476         table.  For shift-jis type coding system, allow 4th charset.
23478 2008-02-01  Kenichi Handa  <handa@m17n.org>
23480         * coding.c (decode_coding_sjis): Check the first byte rigidly.
23482         * xdisp.c (get_next_display_element): Pass -1 as POS to
23483         FACE_FOR_CHAR if displaying a C-string.
23485 2008-02-01  Kenichi Handa  <handa@m17n.org>
23487         * composite.c (get_composition_id): Handle xoff and yoff in a
23488         composition rule.
23490         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
23491         (struct composition): New member lbearing and rbearing.
23493         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
23494         (x_get_glyph_overhangs): Handle a composition glyph.
23495         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
23497         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
23498         composition glyph.
23500 2008-02-01  Kenichi Handa  <handa@m17n.org>
23502         * print.c: Include charset.h.
23503         (Vprint_charset_text_property): New variable.
23504         (Qdefault): Extern it.
23505         (PRINT_STRING_NON_CHARSET_FOUND)
23506         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
23507         (print_check_string_result): New variable.
23508         (print_check_string_charset_prop): New function.
23509         (print_prune_charset_plist): New variable.
23510         (print_prune_string_charset): New function.
23511         (print_object): Call print_prune_string_charset if
23512         Vprint_charset_text_property is not t.
23513         (print_interval): Print nothing if interval->plist is nil.
23514         (syms_of_print): Declare Vprint_charset_text_property as a lisp
23515         variable.  Init and staticpro print_prune_charset_plist.
23517 2008-02-01  Kenichi Handa  <handa@m17n.org>
23519         * fontset.c (new_fontset_from_font_name): Use the specified font
23520         for all characters in the new fontset.
23522         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23523         OBJECT args.
23525         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
23526         OBJECT args for composition too.
23528         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
23529         OBJECT args.
23531 2008-02-01  Kenichi Handa  <handa@m17n.org>
23533         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
23535         * fontset.c (reorder_font_vector): Adjust for the change of
23536         FONT_DEF format.
23537         (fontset_face): New arg id.  Change caller.
23538         (face_for_char): New args pos and object.
23539         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
23540         (fs_query_fontset): Check NAME by Fassoc too.
23541         (Fset_fontset_font): Allow non-XLFD font name.
23542         (Ffontset_info): Adjust for the change of FONT_DEF format.
23544         * fontset.h (face_for_char): Adjust prototype.
23546         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
23547         (append_space, extend_face_to_end_of_line)
23548         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
23549         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
23551         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
23552         POS and OBJECT args.
23554         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
23555         POS and OBJECT args.
23557 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23559         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
23560         of GlobalAlloc'ed memory.
23562 2008-02-01  Kenichi Handa  <handa@m17n.org>
23564         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
23566         * charset.h (charset_table_used): Delete extern.
23568         * charset.c (charset_table_used): Make it static.
23569         (map_charset_chars): Fix args to c_function with.
23571         * chartab.c (map_sub_char_table_for_charset): Fix args to
23572         c_function with.
23574         * coding.h (enum coding_result_code):
23575         Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
23577         * coding.c (Qinsufficient_source, Qinconsistent_eol)
23578         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
23579         (Vlast_code_conversion_error): New variables.
23580         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
23581         (ONE_MORE_BYTE): Record error if any instead of signaling an
23582         error.  If non-ASCII multibyte char is found, return the negative
23583         value of the code.  All callers changed to check it.
23584         (ONE_MORE_BYTE_NO_CHECK): Likewise.
23585         (record_conversion_result): New function.  Change all codes setting
23586         coding->result to call this function.
23587         (detect_coding_utf_8, decode_coding_utf_8)
23588         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
23589         Don't use the local variable incomplete.
23590         (emacs_mule_char): Change the second arg to `const'.
23591         (decode_coding): Fix of flushing out unprocessed data.
23592         (make_conversion_work_buffer): Fix making of a work buffer.
23593         (decode_coding_object): Return coding->dst_object.
23595         * fontset.c (set_fontset_font): Fix args.
23597         * lisp.h (CHARACTERBITS): Define as 22.
23599         * process.c (send_process): Be sure to set coding->src_multibyte.
23601         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
23603 2008-02-01  Kenichi Handa  <handa@m17n.org>
23605         * xdisp.c (handle_auto_composed_prop): Give limit to
23606         Fnext_single_char_property_change.
23608 2008-02-01  Kenichi Handa  <handa@m17n.org>
23610         * composite.c (syms_of_composite): Don't make the composition hash
23611         table weak.
23613         * fontset.c (Fset_fontset_font): Fix docstring.
23615         * lisp.h (detect_coding_system): Adjust prototype.
23617         * fileio.c (kill_workbuf_unwind): Delete this function.
23618         (Finsert_file_contents): Adjust the call of detect_coding_system.
23619         Get conversion_buffer by code_conversion_save.  Use the macro
23620         CODING_MAY_REQUIRE_DECODING.  After decoding, update
23621         coding_system.
23623         * coding.h (make_conversion_work_buffer): Delete extern.
23624         (code_conversion_save): Extern it.
23626         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
23627         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
23628         (decode_coding_utf_8): Don't do eol converion.
23629         (detect_coding_utf_16): Check coding->src_chars, not
23630         coding->src_bytes.  Add heuristics for those that have no signature.
23631         (decode_coding_emacs_mule, decode_coding_iso_2022)
23632         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23633         Don't do eol converion.
23634         (adjust_coding_eol_type): Return a new coding system.
23635         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
23636         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
23637         each change.
23638         (decode_coding): Pay attention to undo_list.  Do eol conversion for
23639         all types of coding-systems (if necessary).
23640         (Vcode_conversion_work_buf_list): Delete it.
23641         (Vcode_conversion_reused_workbuf): Rename from
23642         Vcode_conversion_reused_work_buf.
23643         (Vcode_conversion_workbuf_name): New variable.
23644         (reused_workbuf_in_use): New variable.
23645         (make_conversion_work_buffer): Delete the arg DEPTH.
23646         (code_conversion_restore): Change argument to cons.
23647         (code_conversion_save): Delete the argument BUFFER.  Change callers.
23648         (detect_coding_system): New argument src_chars.  Change callers.
23649         Fix for utf-16 detection.
23650         (init_coding_once): Don't use ISO_carriage_return.
23651         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
23652         reused_workbuf_in_use.
23654 2008-02-01  Kenichi Handa  <handa@m17n.org>
23656         * keymap.c (store_in_keymap): Pay attention to the case that idx
23657         is a cons specifying a character range.
23659 2008-02-01  Kenichi Handa  <handa@m17n.org>
23661         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
23662         HANDLED_RECOMPUTE_PROPS.
23664         * coding.c (Fdefine_coding_system_internal): Fix checking of
23665         ascii compatibility.
23667 2008-02-01  Kenichi Handa  <handa@m17n.org>
23669         * charset.c (find_charsets_in_text): Delete unused locale variable.
23670         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
23672         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
23673         Resync charset_list to Vemacs_mule_charset_list.
23675         * keymap.c (store_in_keymap): Pay attention to the case that idx
23676         is a cons specifying a character range.
23678 2008-02-01  Kenichi Handa  <handa@m17n.org>
23680         * composite.c (update_compositions): Bind inhibit-read-only, etc
23681         to t before calling remove-list-of-text-properties.
23683         * print.c (print_object): Always print ASCII chars as is.
23685 2008-02-01  Kenichi Handa  <handa@m17n.org>
23687         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
23689         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
23690         is a char table.
23692 2008-02-01  Kenichi Handa  <handa@m17n.org>
23694         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
23696 2008-02-01  Kenichi Handa  <handa@m17n.org>
23698         * xfaces.c (set_lface_from_font_name): Fix for the case that
23699         FONTNAME is not fontset name.
23701 2008-02-01  Kenichi Handa  <handa@m17n.org>
23703         * fns.c (base64_encode_1): Fix previous change.
23705 2008-02-01  Kenichi Handa  <handa@m17n.org>
23707         * fontset.c (set_fontset_font): New function.
23708         (Fset_fontset_font): If a font is specified for a charset, use
23709         map_charset_chars to store the font spec in a fontset.
23711 2008-02-01  Kenichi Handa  <handa@m17n.org>
23713         * fontset.c (fontset_face): Create a fallback fontset on demand.
23714         (make_fontset): Don't create a fallback fontset here.
23715         (free_face_fontset): Free a fallback fontset (if any) too.
23716         (n_auto_fontsets): Delete this variable.
23717         (auto_fontset_alist): New variable.
23718         (new_fontset_from_font_name): Check auto_fontset_alist.
23719         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
23720         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
23721         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
23722         Defsubr Sfontset_list_all.
23724 2008-02-01  Kenichi Handa  <handa@m17n.org>
23726         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
23728 2008-02-01  Kenichi Handa  <handa@m17n.org>
23730         * fontset.c (Fnew_fontset): Check NAME more rigidly.
23732 2008-02-01  Kenichi Handa  <handa@m17n.org>
23734         * editfns.c (Fgoto_char): Fix docstring.
23736 2008-02-01  Kenichi Handa  <handa@m17n.org>
23738         * insdel.c (insert_from_gap): Adjust intervals correctly.
23740 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23742         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
23743         (pfnGetFontUnicodeRanges): New dynamically loaded function.
23744         (w32_initialize): Try to load it.
23745         (x_get_font_repertory): Use it if available.
23746         (w32_encode_char): Add shortcut for unicode output.
23748         * w32fns.c (w32_load_system_font): Default charset to -1.
23749         (x_to_w32_charset): Match all fonts for unicode.
23750         (w32_to_x_charset): New parameter matching.  Don't return partial
23751         or wildcard charsets.
23752         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
23753         (w32_codepage_for_font): Return CP_UNICODE for unicode.
23754         (w32_to_x_font): Match charset to real charset.
23755         (enum_font_cb2): Always list unicode versions.
23757         * makefile.w32-in (temacs): Increase EMHEAP.
23759 2008-02-01  Jason Rumney  <jasonr@gnu.org>
23761         * w32term.c (w32_encode_char): New charset parameter.
23762         font_info.encoding becomes encoding_type.
23763         (x_get_font_repertory): New function.  Warning: stub only!
23764         (x_new_font): Return quickly if font already set.
23765         (x_new_fontset): fontsetname parameter is Lisp_Object.
23766         Use new fs_query_fontset.  Try new_fontset_from_font_name.
23767         Use fontset_name for return value.
23769         * w32term.h: Declare x_get_font_repertory.
23771         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
23772         place of find_charset_in_text.  Use encode_coding_object in place
23773         of encode_coding.
23774         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
23775         decode_coding.
23777         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
23778         of x_new_fontset.
23779         (w32_load_system_font): Initialize charset as unicode.
23780         font_info.encoding becomes encoding_type.
23781         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
23782         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
23783         (syms_of_w32fns): Set get_font_repertory_func.
23785         * w32console.c: Include character.h.  Use terminal_encode_buffer
23786         from term.c.
23787         (write_glyphs): Use new version of encode_terminal_code.
23788         Use encode_coding_object in place of encode_coding.
23790         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
23791         encoding becomes encoding_type.
23793         * term.c (terminal_encode_buffer): Make externally visible.
23795         * makefile.w32-in: Add character.h dependancies.
23796         (character.o, chartab.o): New targets.
23798 2008-02-01  Kenichi Handa  <handa@m17n.org>
23800         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
23801         CODING_ID_EOL_TYPE.
23803 2008-02-01  Andreas Schwab  <schwab@suse.de>
23805         * coding.c (produce_chars): Revert last change.
23807 2008-02-01  Kenichi Handa  <handa@m17n.org>
23809         * charset.h (charset_unicode): Extern it.
23811         * charset.c (string_xstring_p): Check by (C >= 0x100).
23812         (find_charsets_in_text): Change format of the arc CHARSETS.
23813         New arg MULTIBYTE.
23814         (Ffind_charset_region, Ffind_charset_string): Adjust for the
23815         change of find_charsets_in_text.
23816         (Fsplit_char): Fix doc.  Never return unknown.
23818         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
23820         * coding.c (Fdefine_coding_system_alias):
23821         Update Vcoding_system_list.
23823         * fontset.c (load_font_get_repertory): Pay attention to the case
23824         that ENCODING of a font is specified by a char-table.
23826         * xterm.c (x_get_font_repertory): Handle the case that the
23827         encoding of font is other than Unicode.
23829 2008-02-01  Kenichi Handa  <handa@m17n.org>
23831         * term.c (encode_terminal_code): Don't handle glyph-table.
23832         Check if a character is encodable by the terminal coding system.
23833         If not, produces proper number of `?'s.  Update
23834         terminal_encode_buffer and terminal_encode_buf_size if necessary.
23835         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
23837 2008-02-01  Kenichi Handa  <handa@m17n.org>
23839         * term.c (terminal_encode_buffer, terminal_encode_buf_size):
23840         New variables.
23841         (encode_terminal_code): Change argument.  Encode multiple
23842         characters at once.  Store the result of encoding in
23843         terminal_encode_buffer.
23844         (write_glyphs, insert_glyphs): Adjust for the change of
23845         encode_terminal_code.
23846         (term_init): Initialize terminal_encode_buffer and
23847         terminal_encode_buf_size.
23849         * coding.c (consume_chars): If coding->src_object is nil, don't
23850         check annotation.
23852 2008-02-01  Kenichi Handa  <handa@m17n.org>
23854         * character.c (char_string): Use ASCII_CHAR_P instead of
23855         SINGLE_BYTE_CHAR_P.
23857 2008-02-01  Kenichi Handa  <handa@m17n.org>
23859         * xdisp.c (handle_auto_composed_prop): Check if the last
23860         characters of auto-composed region is newly composed with the
23861         following characters.
23862         (handle_composition_prop): Fix checking of point being inside
23863         composition.
23865 2008-02-01  Kenichi Handa  <handa@m17n.org>
23867         * fns.c (concat): Don't change multibyteness of the result by
23868         concatenating an 8-bit character.
23870         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
23871         multibyteness of the result when newelt is an 8-bit character.
23873 2008-02-01  Dave Love  <fx@gnu.org>
23875         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
23876         EMACS_INT.
23878         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
23880         * xfaces.c (face_numeric_value): Declare dim size_t.
23881         (Finternal_lisp_face_equal_p): Remove unused f.
23883         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
23884         (MATRIX_ROW): Remove unused vars.
23885         (draw_glyphs, x_insert_glyphs, fast_find_position)
23886         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
23887         byte/char counts.
23889         * regex.c (regex_compile): Remove unused var.
23891         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23893         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
23894         (Faccessible_keymaps, where_is_internal): Remove unused vars.
23896         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
23898         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
23900         * fileio.c (Fwrite_region): Remove unused var.
23902         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
23903         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
23905         * composite.c (Fremove_list_of_text_properties): Declare.
23907         * coding.c (inhibit_pre_post_conversion): Remove (unused).
23908         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
23909         (coding_inherit_eol_type): Remove unused attrs.
23910         (detect_coding): Cast arg of detect_eol.
23912         * charset.c (syms_of_charset): Remove unused var p.
23913         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
23914         byte/char counts.
23916         * casetab.c (set_case_table): Remove unused var.
23918         * window.c (Fdisplay_buffer, Fframe_selected_window):
23919         Remove unused vars.
23921 2008-02-01  Dave Love  <fx@gnu.org>
23923         * xterm.c (x_bitmap_mask): Declare.
23925 2008-02-01  Dave Love  <fx@gnu.org>
23927         * xterm.c (x_term_init): Fix type error.
23929         * lisp.h: Add Funibyte_char_to_multibyte.
23931         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
23932         (Fset_coding_system_priority): Doc fix.
23934         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
23936         * indent.c (check_composition): Make start and end EMACS_INT.
23938         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
23940         * xdisp.c (handle_composition_prop, check_point_in_composition):
23941         Make buffer positions EMACS_INT.
23943         * composite.c (find_composition, run_composition_function)
23944         (update_compositions, Ffind_composition_internal): Make buffer
23945         positions EMACS_INT.
23947         * composite.h (find_composition, update_compositions):
23948         Make position args EMACS_INT.
23950         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
23952         * intervals.c (get_property_and_range):
23953         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
23955         * unexalpha.c: Don't include varargs.h.
23957 2008-02-01  Dave Love  <fx@gnu.org>
23959         * coding.h (ENCODE_UTF_8): New.
23961         * Makefile.in (gtkutil.o): Depend on coding.h.
23963         * coding.c (Fset_coding_system_priority): Doc fix.
23965 2008-02-01  Kenichi Handa  <handa@m17n.org>
23967         * fileio.c (Finsert_file_contents): Call setup_coding_system in
23968         the case of auto saving.
23970 2008-02-01  Andreas Schwab  <schwab@suse.de>
23972         * chartab.c (map_char_table, map_char_table_for_charset):
23973         Protect `range' from GC.
23975 2008-02-01  Kenichi Handa  <handa@m17n.org>
23977         * coding.c (decode_coding_sjis): Check bytes more rigidly.
23979 2008-02-01  Kenichi Handa  <handa@m17n.org>
23981         * fileio.c (choose_write_coding_system): Return a decided coding system.
23982         (Fwrite_region): Set Vlast_coding_system_used to the return value
23983         of choose_write_coding_system.
23985 2008-02-01  Kenichi Handa  <handa@m17n.org>
23987         * charset.c (Fset_charset_priority): Pay attention to duplicated
23988         arguments.
23990         * coding.c (QCcategory): New variable.
23991         (syms_of_coding): Defsym it.  Set all elements of
23992         Vcoding_category_table and their symbol values.
23993         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
23994         coding-category-XXX, and coding-category-list.
23995         (Fdefine_coding_system_internal): Add category in the plist.
23997 2008-02-01  Kenichi Handa  <handa@m17n.org>
23999         * callproc.c (Fcall_process): Handle carryover correctly.
24001         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
24002         (raw_text_coding_system): Check NILP (coding_system).
24003         (coding_inherit_eol_type): Check NILP (coding_system) and
24004         NILP (parent).
24005         (consume_chars): Fix for the case of raw-text.
24007         * process.c (read_process_output): Handle carryover correctly.
24009 2008-02-01  Dave Love  <fx@gnu.org>
24011         * regex.c (re_search_2): Fix last change.
24013 2008-02-01  Kenichi Handa  <handa@m17n.org>
24015         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
24016         target_multibyte.  Even in a unibyte case, return a converted
24017         multibyte char.
24018         (GET_CHAR_AFTER): New macro.
24019         (PATFETCH): Translate via multibyte char.
24020         (HANDLE_UNIBYTE_RANGE): Delete this macro.
24021         (SETUP_MULTIBYTE_RANGE): New macro.
24022         (regex_compile): Setup compiled code so that its multibyteness
24023         matches that of a target.  Fix the handling of "[X-YZ]" using
24024         SETUP_MULTIBYTE_RANGE.
24025         (analyse_first) <charset>: For filling fastmap for all multibyte
24026         characters, don't check by BASE_LEADING_CODE_P.
24027         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
24028         the same as RE_MULTIBYTE_P (bufp) now.
24029         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
24030         (TARGET_CHAR_AND_LENGTH): Delete this macro.
24031         (TRANSLATE_VIA_MULTIBYTE): New macro.
24032         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
24033         It is the same as RE_MULTIBYTE_P (bufp) now.
24034         <exactn>: Translate via multibyte.
24035         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
24036         Don't translate it.
24037         <charset, charset_not>: Fetch a character by
24038         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
24039         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
24040         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
24041         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
24042         by GET_CHAR_AFTER.
24043         (bcmp_translate): Likewise.
24045         * search.c (compile_pattern): Check the member target_multibyte,
24046         not the member multibyte of buf.
24048         * lread.c (read1): While reading a string, set force_singlebyte
24049         and force_multibyte correctly.
24051         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
24052         up of unibyte_to_multibyte_table.
24054 2008-02-01  Kenichi Handa  <handa@m17n.org>
24056         * coding.c (setup_coding_system): If coding has
24057         post-read-conversion or pre-write-conversion, set
24058         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
24059         respectively.
24060         (decode_coding_gap): Run post-read-conversion if any.
24062         * fileio.c (Finsert_file_contents): Even if we read into a
24063         unibyte buffer, check if we must decode the result or not.
24065 2008-02-01  Kenichi Handa  <handa@m17n.org>
24067         * coding.c (make_conversion_work_buffer): Change the work buffer
24068         name to the same one as that of Emacs 21.
24070 2008-02-01  Kenichi Handa  <handa@m17n.org>
24072         * coding.h (make_conversion_work_buffer): Adjust prototype.
24073         (code_conversion_restore): Don't extern it.
24075         * coding.c (detected_mask): Delete unused variable.
24076         (decode_coding_iso_2022): Pay attention to the byte sequence of
24077         CTEXT extended segment, and retain those bytes as is.
24078         (decode_coding_ccl): Delete unused variable `valids'.
24079         (setup_coding_system): Delete unused variable `category'.
24080         (consume_chars): Delete unused variable `category'.  Make it work
24081         for non-multibyte case.
24082         (make_conversion_work_buffer): Change argument.
24083         (saved_coding): Delete unused variable.
24084         (code_conversion_restore): Don't check saved_coding->destination.
24085         (code_conversion_save): New function.
24086         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
24087         instead of record_unwind_protect.
24088         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
24089         (detect_coding_system): Delete unused variable `mask'.
24090         (Fdefine_coding_system_internal): Delete unused variable id.
24092         * fileio.c (kill_workbuf_unwind): New function.
24093         (Finsert_file_contents): On replacing, call
24094         make_conversion_work_buffer with correct args, and call
24095         record_unwind_protect with the first arg kill_workbuf_unwind.
24097         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
24099 2008-02-01  Kenichi Handa  <handa@m17n.org>
24101         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
24102         (fontset_add): Fix for the case that TO is less than TO1.
24103         (Ffontset_info): Don't use fallback fontset on checking the
24104         default fontset.
24105         (dump_fontset): New function for debugging.
24107         * coding.c (Fdefine_coding_system_internal): Fix for the case that
24108         coding_type is Qcharset.
24110 2008-02-01  Kenichi Handa  <handa@m17n.org>
24112         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
24113         (map_char_table): Don't inherit the value from the parent on
24114         initializing VAL.  Adjust for the above change.
24116 2008-02-01  Kenichi Handa  <handa@m17n.org>
24118         * coding.c (Qsignature, Qendian): Delete these variables.
24119         (syms_of_coding): Don't initialize them.
24120         (CATEGORY_MASK_UTF_16_AUTO): New macro.
24121         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
24122         detect_info->found.
24123         (decode_coding_utf_16): Don't detect BOM here.
24124         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
24125         is NOT utf_16_without_bom.
24126         (setup_coding_system): For a coding system of type utf-16, check
24127         if the attribute :endian is Qbig or not (not nil or not), and set
24128         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
24129         (detect_coding): If coding type is utf-16 and BOM detection is
24130         required, detect it.
24131         (Fdefine_coding_system_internal): For a coding system of type
24132         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
24134 2008-02-01  Kenichi Handa  <handa@m17n.org>
24136         * coding.c (coding_set_source): Fix for the case that the current
24137         buffer is different from coding->src_object.
24138         (decode_coding_object): Don't use the conversion work buffer if
24139         DST_OBJECT is a buffer.
24141 2008-02-01  Dave Love  <fx@gnu.org>
24143         * lread.c (read_emacs_mule_char) [len==2]: Index
24144         emacs_mule_charset correctly.
24146 2008-02-01  Dave Love  <fx@gnu.org>
24148         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
24149         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
24150         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
24151         treated specially.)
24152         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
24153         (detected_mask): Remove Big5 bits.
24155 2008-02-01  Kenichi Handa  <handa@m17n.org>
24157         The following changes are to make the font rescaling facility
24158         compatible with Emacs 21.
24160         * xfaces.c (Vface_font_rescale_alist): Rename from
24161         Vface_resizing_fonts.
24162         (struct font_name): Rename member resizing_ratio to rescale_ratio.
24163         (font_rescale_ratio): Rename from font_resizing_ratio.
24164         (split_font_name): Set font->rescale_ratio.
24165         (better_font_p): Pay attention to font->rescale_ratio.
24166         (build_scalable_font_name): Likewise.  Change RESX, and RESY
24167         fields.
24168         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
24170 2008-02-01  Kenichi Handa  <handa@m17n.org>
24172         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
24173         (Qutf_16_le): Remove these variables.
24174         (syms_of_coding): Don't DEFSYM them.
24175         (decode_coding_utf_16): Fix handling of BOM.
24176         (encode_coding_utf_16): Fix handling of BOM.
24178 2008-02-01  Kenichi Handa  <handa@m17n.org>
24180         * fileio.c (Finsert_file_contents): On replacing, before decoding
24181         the file into the work buffer, set point of the work buffer to the end.
24183 2008-02-01  Dave Love  <fx@gnu.org>
24185         * coding.c (Fcheck_coding_systems_region): Fix type errors.
24187 2008-02-01  Dave Love  <fx@gnu.org>
24189         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24190         and fix C types.
24192 2008-02-01  Kenichi Handa  <handa@m17n.org>
24194         * xdisp.c (SKIP_GLYPHS): New macro.
24195         (set_cursor_from_row): Pay attention to string display properties.
24197         * category.c (copy_category_entry): Fix for the case that RANGE
24198         is an integer.
24200         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
24202         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
24204 2008-02-01  Kenichi Handa  <handa@m17n.org>
24206         * charset.c (Fcharset_id_internal): New function.
24207         (syms_of_charset): Defsubr it.
24209         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
24210         with the last arg charset_list acquired from coding.
24211         (Fdefine_coding_system_internal): For ccl-based coding system, fix
24212         the attribute coding_attr_ccl_valids.
24214         * coding.h (enum define_coding_ccl_arg_index): Set the first
24215         member coding_arg_ccl_decoder to coding_arg_max.
24217         * ccl.h (ccl_driver): Adjust prototype.
24219         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
24220         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
24221         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
24222         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
24223         last arg Qnil.
24225 2008-02-01  Kenichi Handa  <handa@m17n.org>
24227         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
24228         call encode_char.
24230         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
24232 2008-02-01  Dave Love  <fx@gnu.org>
24234         * composite.c (syms_of_composite): Make composition_hash_table weak.
24236 2008-02-01  Kenichi Handa  <handa@m17n.org>
24238         * dispextern.h (check_face_attributes, generate_ascii_font_name)
24239         (font_name_registry): Don't extern them.
24240         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
24242         * fontset.h (Qfontset): Don't extern it.
24243         (new_fontset_from_font_name): Extern it.
24245         * fontset.c: Give 8 extra slots to fontset objects.
24246         (Qfontset_info): New variable.
24247         (syms_of_fontset): Defsym it.
24248         (FONTSET_FALLBACK): New macro.
24249         (fontset_face): Try also the default fontset.
24250         (make_fontset): Realize a fallback fontset from the default fontset.
24251         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
24252         using split_font_name_into_vector and build_font_name_from_vector.
24253         (Fset_fontset_font): Access the elements of font_spec by enum
24254         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
24255         name by using split_font_name_into_vector.
24256         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
24257         generate a proper font name from the fontset name.
24258         Update Vfontset_alias_alist.
24259         (n_auto_fontsets): New variable.
24260         (new_fontset_from_font_name): New function.
24261         (Ffont_info): Store the information about fonts generated from the
24262         default fontset in the first extra slot of the returned char-table.
24264         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
24265         (font_name_registry): Delete function.
24266         (split_font_name_into_vector): New function.
24267         (build_font_name_from_vector): New function.
24268         (font_list): The argument REGISTRY is now a list of registry names.
24269         (choose_face_font): If we are choosing an ASCII font, and ATTRS
24270         specifies an explicit font name, return the name as is.  Make a
24271         list of registy names.
24273         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
24274         of x_new_fontset.
24275         (Fx_create_frame): Don't call x_new_fontset here.  Just use
24276         x_list_fonts to check the existence of fonts.
24278         * xterm.h (x_new_fontset): Adjust prototype.
24280         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
24281         string.  Use new_fontset_from_font_name to create a fontset from a
24282         font name.
24284 2008-02-01  Kenichi Handa  <handa@m17n.org>
24286         * syntax.c (Vfind_word_boundary_function_table): New name for
24287         Vnext_word_boundary_function_table.
24288         (find-word-boundary-function-table): New name for
24289         next-word-boundary-function-table.
24291 2008-02-01  Dave Love  <fx@gnu.org>
24293         * Makefile.in: Fix some dependencies.
24295         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
24296         set it to nil before returning.
24298         * composite.c (update_compositions): Fix type error.
24300         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
24302 2008-02-01  Kenichi Handa  <handa@m17n.org>
24304         * xterm.c (x_new_font): Optimize for the case that the font is
24305         already set for the frame.
24307 2008-02-01  Kenichi Handa  <handa@m17n.org>
24309         * chartab.c (char_table_ascii): Check if the char table contents
24310         is sub-char-table or not.
24311         (char_table_set, char_table_set_range): Fix argument to
24312         char_table_ascii.
24314         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
24315         (detect_coding_utf_8, detect_coding_utf_16)
24316         (detect_coding_emacs_mule, detect_coding_iso_2022)
24317         (detect_coding_sjis, detect_coding_big5)
24318         (detect_coding_ccl, detect_coding_charset): Change argument MASK
24319         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
24320         sequence is valid in this coding system.  Change callers.
24321         (MAX_ANNOTATION_LENGTH): New macro.
24322         (ADD_ANNOTATION_DATA): New macro.
24323         (ADD_COMPOSITION_DATA): Change argument.  Change callers.
24324         Call ADD_ANNOTATION_DATA.  Change the format of annotation data.
24325         (ADD_CHARSET_DATA): New macro.
24326         (emacs_mule_char): New argument ID.  Change callers.
24327         (decode_coding_emacs_mule, decode_coding_iso_2022)
24328         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
24329         Produce charset annotation data in coding->charbuf.
24330         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
24331         to charset annotation data in coding->charbuf.
24332         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
24333         coding->common_flags if the coding system is iso-2022 based and
24334         uses designation.
24335         (produce_composition): Adjust for the new annotation data format.
24336         (produce_charset): New function.
24337         (produce_annotation): Handle charset annotation.
24338         (handle_composition_annotation, handle_charset_annotation):
24339         New functions.
24340         (consume_chars): Handle charset annotation.  Utilize the above two
24341         functions.
24342         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
24343         buffer, get the deleted text as a string and set
24344         coding->src_object to that string.
24345         (detect_coding, detect_coding_system): Use the new struct
24346         coding_detection_info.
24348         * coding.h (struct coding_detection_info): New structure.
24349         (struct coding_system): Adjust prototype of the member `detector'.
24350         (CODING_ANNOTATE_CHARSET_MASK): New macro.
24352 2008-02-01  Kenichi Handa  <handa@m17n.org>
24354         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
24356 2008-02-01  Dave Love  <fx@gnu.org>
24358         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
24359         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
24360         to new local and nullify apropos_accumulate before returning.
24361         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
24363 2008-02-01  Kenichi Handa  <handa@m17n.org>
24365         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
24366         correctly.
24368 2008-02-01  Dave Love  <fx@gnu.org>
24370         * fns.c (Flanginfo): Call synchronize_system_time_locale.
24372 2008-02-01  Kenichi Handa  <handa@m17n.org>
24374         The following changes are to make character composition happen
24375         automatically on displaying.
24377         * Makefile.in (lisp, shortlisp): Add composite.elc.
24379         * composite.h (Qauto_composed, Vauto_composition_function)
24380         (Qauto_composition_function): Extern them.
24382         * composite.c (Vcomposition_function_table)
24383         (Qcomposition_function_table): Delete variables.
24384         (Qauto_composed, Vauto_composition_function)
24385         (Qauto_composition_function): New variables.
24386         (run_composition_function): Don't call
24387         compose-chars-after-function.
24388         (update_compositions): Clear `auto-composed' text property.
24389         (compose_chars_in_text): Delete this function.
24390         (syms_of_composite): Staticpro Qauto_composed and
24391         Qauto_composition_function.  Declare Vauto_composition_function as
24392         a Lisp variable.
24394         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
24396         * xdisp.c (it_props): Add an entry for Qauto_composed.
24397         (handle_auto_composed_prop): New function.
24399         * xselect.c (selection_data_to_lisp_data): Don't call
24400         compose_chars_in_text.
24402 2008-02-01  Dave Love  <fx@gnu.org>
24404         * keyboard.c (read_char): Modify checking around use of
24405         Vkeyboard_translate_table.
24407         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
24408         and fix C types.
24410 2008-02-01  Kenichi Handa  <handa@m17n.org>
24412         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
24413         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
24414         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
24415         the case that the last byte is '\r' correctly.
24416         (decode_coding): Flush out the unprocessed data correctly.
24417         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
24419 2008-02-01  Dave Love  <fx@gnu.org>
24421         * xterm.c (XTread_socket): Fix changes for defined keysyms.
24422         Add XK_ISO... case.
24423         (xaw_scroll_callback): Revert last change.
24425 2008-02-01  Kenichi Handa  <handa@m17n.org>
24427         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
24429 2008-02-01  Kenichi Handa  <handa@m17n.org>
24431         * xfaces.c (Vface_resizing_fonts): New variable.
24432         (struct font_name): New member `resizing_ratio'.
24433         (font_resizing_ratio): New function.
24434         (split_font_name): Set font->resizing_ratio.
24435         (better_font_p): Pay attention to font->resizing_ratio.
24436         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
24437         RESX, and RESY fields.
24438         (try_alternative_families): Try scalable fonts if
24439         Vscalable_fonts_allowed is not Qt.
24440         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
24442 2008-02-01  Dave Love  <fx@gnu.org>
24444         * xterm.c (xaw_scroll_callback): Cast correctly.
24446 2008-02-01  Dave Love  <fx@gnu.org>
24448         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
24449         (lispy_kana_keys): Comment out.
24450         (make_lispy_event) [XK_kana_A]: Comment out.
24452         * xterm.c (xaw_scroll_callback): Cast call_data.
24453         (XTread_socket): Deal with ASCII keysyms.
24454         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
24456 2008-02-01  Dave Love  <fx@gnu.org>
24458         * xterm.c (Vx_keysym_table): New.
24459         (syms_of_xterm): Initialize it.
24460         (XTread_socket): Use it.
24461         From head: Eliminate incorrect optimization that tried to avoid
24462         decoding the output of X*LookupString.
24463         (x_get_font_repertory): Delete charset declaration.
24465 2008-02-01  Kenichi Handa  <handa@m17n.org>
24467         * coding.c (detect_coding_charset): If only ASCII bytes are found,
24468         return 0.
24469         (Fdefine_coding_system_internal):
24470         Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
24472 2008-02-01  Dave Love  <fx@gnu.org>
24474         * coding.c (Fcheck_coding_system): Doc fix.
24476         * editfns.c (Finsert_byte): Return a proper value.
24478 2008-02-01  Kenichi Handa  <handa@m17n.org>
24480         * coding.c (decode_coding): Fix args to translate_chars.
24481         Pay attention to Vstandard_translation_table_for_decode.
24482         (encode_coding): Fix args to translate_chars.  Pay attention to
24483         Vstandard_translation_table_for_encode.
24485         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
24486         SINGLE_BYTE_CHAR_P.
24488         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
24489         not by SINGLE_BYTE_CHAR_P.
24491         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
24492         SINGLE_BYTE_CHAR_P.
24494         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
24495         SINGLE_BYTE_CHAR_P.
24497         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
24498         by SINGLE_BYTE_CHAR_P.
24500         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
24501         SINGLE_BYTE_CHAR_P.
24503 2008-02-01  Dave Love  <fx@gnu.org>
24505         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
24507 2008-02-01  Dave Love  <fx@gnu.org>
24509         * fns.c (Flanginfo): Fix typo.
24511         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
24513 2008-02-01  Kenichi Handa  <handa@m17n.org>
24515         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
24516         (detect_coding_emacs_mule, detect_coding_iso_2022)
24517         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
24518         incomplete byte sequence.  Don't update *mask when correctly detected.
24519         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
24520         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
24521         (detect_coding, detect_coding_system): Adjust for the changes above.
24523 2008-02-01  Kenichi Handa  <handa@m17n.org>
24525         * character.c (char_string): Rename from
24526         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
24527         (string_char): Rename from string_char.
24529         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
24530         if C is greater than MAX_3_BYTE_CHAR.
24531         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
24532         Call string_char instead of string_char_with_unification.
24534 2008-02-01  Dave Love  <fx@gnu.org>
24536         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
24538 2008-02-01  Kenichi Handa  <handa@m17n.org>
24540         * keymap.c (push_key_description): Pay attention to force_multibyte.
24542         * regex.c (re_search_2): Fix for the case of unibyte buffer.
24544 2008-02-01  Dave Love  <fx@gnu.org>
24546         * charset.c (define_charset_internal): Rename `supprementary'.
24548         * Makefile.in (lisp, shortlisp): Remove latin-N.
24550 2008-02-01  Dave Love  <fx@gnu.org>
24552         * xfns.c (x_window, x_window): Use use_xim.
24554         * xterm.c (use_xim): Initialize.
24555         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
24556         (x_term_init): Maybe set use_xim.
24558         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
24560 2008-02-01  Kenichi Handa  <handa@m17n.org>
24562         * search.c (search_buffer): Fix case-fold-search of multibyte
24563         characters.
24564         (boyer_moore): Rename the last argument to char_high_bits.
24566 2008-02-01  Kenichi Handa  <handa@m17n.org>
24568         * xdisp.c (display_string): Fix for the case of zero width glyph.
24570         * xfns.c (x_set_font): Change the error message of the case that
24571         x_new_fontset returns Qt.
24573         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
24574         (Finternal_set_lisp_face_attribute): Use signal_error for the
24575         error of invalid fontset.
24577         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
24578         fontset, return Qt.
24580 2008-02-01  Dave Love  <fx@gnu.org>
24582         * unexelf.c (unexec): Make .got handling not SGI-specific.
24584         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
24586         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
24588         * keyboard.c (read_key_sequence): Fix type error.
24590         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
24591         Fix type error.
24593         * fontset.c (fontset_add): Return Lisp_Object.
24595 2008-02-01  Dave Love  <fx@gnu.org>
24597         * charset.h (charset_ordered_list_tick): Declare extern.
24599 2008-02-01  Kenichi Handa  <handa@m17n.org>
24601         The following changes (and some of 2008-02-01 changes of mine) are
24602         for handling syntax, category, and case conversion for unibyte
24603         characters by converting them to multibyte on the fly.  With these
24604         changes, we don't have to setup syntax and case tables for unibyte
24605         characters in each language environment.
24607         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
24608         multibyte if necessary.
24610         * bytecode.c (Fbyte_code): Likewise.
24612         * character.h (LEADING_CODE_LATIN_1_MIN)
24613         (LEADING_CODE_LATIN_1_MAX): New macros.
24614         (unibyte_to_multibyte_table): Extern it.
24615         (unibyte_char_to_multibyte): New macro.
24616         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
24617         (CHAR_LEADING_CODE): New macro.
24618         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
24620         * character.c (unibyte_to_multibyte_table): New variable.
24621         (unibyte_char_to_multibyte): Move to character.h and define as macro.
24622         (multibyte_char_to_unibyte): If C is an eight-bit character,
24623         convert it to the corresponding byte value.
24625         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
24626         not 1, signals an error.  Update the elements of
24627         unibyte_to_multibyte_table.
24628         (init_charset_once): Initialize unibyte_to_multibyte_table.
24629         (syms_of_charset): Define the charset `iso-8859-1'.
24631         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
24632         as is without converting it to unibyte.  In a unibyte buffer,
24633         convert C to multibyte before checking the syntax.
24635         * lisp.h (unibyte_char_to_multibyte): Delete extern.
24637         * minibuf.c (Fminibuffer_complete_word): Use the macro
24638         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
24640         * regex.h (struct re_pattern_buffer): New member target_multibyte.
24642         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
24643         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
24644         If that is zero, convert an eight-bit char to multibyte.
24645         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
24646         non-emacs case.
24647         (PATFETCH): Convert an eight-bit char to multibyte.
24648         (HANDLE_UNIBYTE_RANGE): New macro.
24649         (regex_compile): Setup the compiled pattern for multibyte chars
24650         even if the given regex string is unibyte.  Use PATFETCH_RAW
24651         instead of PATFETCH in many places.  To handle `charset'
24652         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
24653         only for ASCII chars.
24654         (analyse_first) <exactn>: Simplify because the compiled pattern
24655         is multibyte.
24656         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
24657         <charset>: Use CHAR_LEADING_CODE to get leading codes.
24658         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
24659         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
24660         multibyte always 1.
24661         (re_search_2): In emacs, set the locale variable multibyte to 1,
24662         otherwise to 0.  New local variable target_multibyte.  Check it
24663         to decide the multibyteness of STR1 and STR2.
24664         If target_multibyte is zero, convert unibyte chars to multibyte
24665         before translating and checking fastmap.
24666         (TARGET_CHAR_AND_LENGTH): New macro.
24667         (re_match_2_internal): In emacs, set the locale variable multibyte
24668         to 1, otherwise to 0.  New local variable target_multibyte.
24669         Check it to decide the multibyteness of STR1 and STR2.
24670         Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
24671         <charset, charset_not>: If multibyte is nonzero, check fastmap
24672         only for ASCII chars.  Call bcmp_translate with
24673         target_multibyte, not with multibyte.
24674         <begline>: Declare the local variable C as `unsigned'.
24675         (bcmp_translate): Change the last arg name to target_multibyte.
24677         * search.c (compile_pattern_1): Don't adjust the multibyteness of
24678         the regexp pattern and the matching target.  Set cp->buf.multibyte
24679         to the multibyteness of the regexp pattern.  Set
24680         cp->but.target_multibyte to the multibyteness of the matching target.
24681         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
24682         FETCH_STRING_CHAR_ADVANCE.
24683         (Freplace_match): Convert unibyte chars to multibyte.
24685         * syntax.c (char_quoted, back_comment, scan_words)
24686         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
24687         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
24688         unibyte chars to multibyte.
24689         (skip_chars): Delete the arg syntaxp, and move the code for
24690         handling syntaxes to skip_syntaxes.  Change callers.
24691         Fix the case that the multibyteness of STRING and the current
24692         buffer doesn't match.
24693         (skip_syntaxes): New function.
24694         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
24695         SINGLE_BYTE_CHAR_P.
24697 2008-02-01  Kenichi Handa  <handa@m17n.org>
24699         * xfaces.c (QCfontset): New variable.
24700         (LFACE_FONTSET): New macro.
24701         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
24702         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
24703         (Finternal_set_lisp_face_attribute)
24704         (Finternal_get_lisp_face_attribute): Handle QCfontset.
24705         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
24706         check also LFACE_FONTSET_INDEX.
24707         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
24708         attrs[LFACE_FONT_INDEX].
24709         (syms_of_xfaces): Intern and staticpro QCfontset.
24711         * dispextern.h (enum lface_attribute_index): New member
24712         LFACE_FONTSET_INDEX.
24714         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
24716 2008-02-01  Kenichi Handa  <handa@m17n.org>
24718         * coding.c (coding_set_destination): Fix coding->destination for
24719         the case converting a region.
24720         (encode_coding_utf_8): Encode eight-bit chars as single byte.
24721         (encode_coding_object): Fix coding->dst_pos and
24722         coding->dst_pos_byte for the case converting a region.
24724         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
24726         * character.h (BYTE8_STRING): New macro.
24728         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
24730 2008-02-01  Kenichi Handa  <handa@m17n.org>
24732         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
24733         characters by octal form.
24735         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
24737         * buffer.h (_fetch_multibyte_char_len): Delete extern.
24738         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
24739         _fetch_multibyte_char_len.
24740         (FETCH_CHAR_AS_MULTIBYTE): New macro.
24742         * casetab.c (set_canon, set_identity, shuffle): Simplify.
24744         * casefiddle.c (casify_object): Simplify.  Handle the case that
24745         the case conversion change the byte length.
24746         (casify_region): Likewise.
24748         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
24750         * character.c (_fetch_multibyte_char_len): Delete this variable.
24751         (syms_of_character): Setup Vprintable_chars.
24753         * editfns.c (Fchar_equal): Fix for the unibyte case.
24754         (Finsert_byte): New function.
24755         (syms_of_editfns): Defsubr it.
24757         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
24758         of direct code 0x3ffff.
24760         * search.c (Freplace_match): Fix for the unibyte case.
24762 2008-02-01  Kenichi Handa  <handa@m17n.org>
24764         * lread.c (safe_to_load_p): Fix the logic.
24766         * syntax.c (scan_words): Don't treat characters belonging to
24767         different scripts as constituting a word.
24769         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24771         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
24773         * emacs.c (main): In the case of --unibyte, instead of aborting on
24774         finding non-empty buffer, make it unibyte.
24776 2008-02-01  Kenichi Handa  <handa@m17n.org>
24778         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
24779         to create a fontset.
24781 2008-02-01  Dave Love  <fx@gnu.org>
24783         * character.c (Funibyte_char_to_multibyte): Doc fix.
24785         * xfns.c [HAVE_STDLIB_H]: Fix last change.
24787 2008-02-01  Kenichi Handa  <handa@m17n.org>
24789         * fontset.c (fontset_add): Make the type `int'.
24790         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
24792         * character.c (unibyte_char_to_multibyte)
24793         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
24794         charset_unibyte, not charset_primary.
24796         * charset.h (charset_unibyte): Extern it instead of charset_primary.
24798         * charset.c (charset_unibyte): Rename from charset_primary.
24799         (Funibyte_charset): Rename from Fprimary_charset.
24800         (Fset_unibyte_charset): Rename from Fset_primary_charset.
24801         (syms_of_charset): Adjust for the above changes.
24803         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24804         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
24805         it->multibyte_p is zero.
24807         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
24808         Delete extern.
24810 2008-02-01  Kenichi Handa  <handa@m17n.org>
24812         * coding.c (Fdefine_coding_system_internal): Fix category setting
24813         for a coding system of type iso-2022.
24815 2008-02-01  Kenichi Handa  <handa@m17n.org>
24817         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
24819 2008-02-01  Kenichi Handa  <handa@m17n.org>
24821         * syntax.c (Vnext_word_boundary_function_table): New variable.
24822         (next-word-boundary-function-table): Declare it as a Lisp variable
24823         in syms_of_syntax.
24824         (scan_words): Call functions in Vnext_word_boundary_function_table
24825         if any.
24827         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
24829         * fontset.c (fs_load_font): If fontp->charset is not negative,
24830         return fontp without setting its members.
24832 2008-02-01  Dave Love  <fx@gnu.org>
24834         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
24836         * m/sparc.h (HAVE_ALLOCA): Delete.
24838         * s/irix6-5.h: Don't include strings.h.
24839         (bcopy, bzero, bcmp): Don't undef.
24841         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
24843         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
24844         (TIOCSIGSEND): Don't test IRIX6.
24845         (bcopy, bzero, bcmp): Define conditionally.
24847 2008-02-01  Kenichi Handa  <handa@m17n.org>
24849         * buffer.c (Qas, Qmake, Qto): New variables.
24850         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
24851         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
24853         * callproc.c (Fcall_process): Don't call insert_1_both directly if
24854         we are inserting a process output into a multibyte buffer.
24856         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
24857         multibyte_char_to_unibyte.
24859         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
24860         by the primary charset, make it eight-bit char.
24861         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
24863         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
24864         (charset_8_bit__control, charset_8_bit_graphic)
24865         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
24866         (define_charset_internal): New function.
24867         (syms_of_charset): Call define_charset_internal for pre-defined
24868         charsets.
24870         * charset.h (charset_8_bit): Extern it.
24872         * coding.c (make_conversion_work_buffer): Adjust for the change
24873         of Fset_buffer_multibyte.
24874         (encode_coding_raw_text): Increment p0 in the loop.
24876         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
24878         * xdisp.c (setup_echo_area_for_printing, set_message_1):
24879         Adjust for the change of Fset_buffer_multibyte.
24881         * fns.c (Fstring_to_multibyte): New function.
24882         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
24884 2008-02-01  Dave Love  <fx@gnu.org>
24886         * xfns.c (x_put_x_image): Declare args.
24888         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
24889         (try_font_list): Declare an arg.
24891         * xdisp.c (message2_nolog, set_message): Declare an arg.
24893         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
24895         * syntax.c (scan_sexps_forward): Declare an arg.
24897         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
24898         Declare an arg.
24900         * lisp.h (Fnew_fontset): Declare.
24902         * keymap.c (push_key_description): Call CHARACTERP correctly.
24904         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
24905         (face_for_char): Delete unused vars.
24906         (Fset_fontset_font): Doc fix.  Delete unused vars.
24908         * doc.c (Fsubstitute_command_keys): Delete unused vars.
24910         * composite.c (update_compositions): Declare arg.
24912         * cm.c (calccost, cmgoto): Declare args.
24914         * charset.c: Remove `emacs' conditional.  Doc fixes.
24915         (map_char_table_for_charset): Declare.
24917         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
24919         * ccl.c: Remove `emacs' conditional.
24921 2008-02-01  Kenichi Handa  <handa@m17n.org>
24923         The following changes are to allow specifying multiple font
24924         patterns for a character range (specified by script or charset).
24926         * Makefile.in (abbrev.o): Depend on syntax.h.
24927         (xfaces.o): Depend on charset.h.
24929         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
24930         SINGLE_BYTE_CHAR_P.
24932         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
24934         * character.h (Vchar_script_table): Extern it.
24936         * character.c (Vscript_alist): Delete.
24937         (Vchar_script_table, Qchar_script_table): New variable.
24938         (syms_of_character): Declare Vchar_script_table as a lisp variable
24939         and initialize it.
24941         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
24942         have property char-table-extra-slots, make no extra slot.
24944         * dispextern.h (struct face): Delete member `charset'.
24945         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
24946         SINGLE_BYTE_CHAR_P.
24947         (choose_face_font, lookup_non_ascii_face, font_name_registry):
24948         Add prototypes.
24949         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
24950         (generate_ascii_font_name): Rename from generate_ascii_font.
24952         * fontset.h (get_font_repertory_func): New prototype.
24953         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
24954         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
24956         * fontset.c (Qprepend, Qappend): New variables.
24957         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
24958         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
24959         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
24960         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
24961         (fontset_ref_and_range, fontset_add, reorder_font_vector)
24962         (load_font_get_repertory): New functions.
24963         (fontset_set): Delete.
24964         (fontset_face): New arg FACE.  Return face ID, not face.
24965         Complete re-write to handle new fontset structure.  Change caller.
24966         (free_face_fontset): Use ASET istead of AREF (X) = Y.
24967         (face_for_char): Don't call lookup_face.
24968         (make_fontset_for_ascii_face): New arg FACE.
24969         (fs_load_font): New arg CHARSET_ID.  Don't check
24970         Vfont_encoding_alist here.
24971         (find_font_encoding): New function.
24972         (list_fontsets): Use STRINGP, not ! NILP.
24973         (accumulate_script_ranges): New function.
24974         (Fset_fontset_font, Fnew_fontset, Ffontset_info):
24975         Completely re-written to handle new fontset structure.
24976         (Ffontset_font): Return a copy of element.
24977         (syms_of_fontset): Define symbols Qprepend and Qappend.
24978         Fix docstring of font-encoding-alist.
24980         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
24981         (Fset_fotset_font): Fix arguments to 5.
24983         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
24985         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
24986         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24987         (highlight_trailing_whitespace): Adjust for the change of
24988         lookup_named_face.
24990         * xfaces.c: Include charset.h.
24991         (load_face_font): Delete argument C.  Change caller.
24992         (generate_ascii_font_name): Rename from generate_ascii_font.
24993         (font_name_registry): New function.
24994         (cache_face): Store ascii faces before non-ascii faces in buckets.
24995         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
24996         Lookup only ascii faces.
24997         (lookup_non_ascii_face): New function.
24998         (lookup_named_face): Delete argument C.  Change caller.
24999         (lookup_derived_face): Delete argument C.  Change caller.
25000         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
25001         a string, just call font_list with it.
25002         (choose_face_font): Delete arguments FACE and C.  New arg
25003         FONT_SPEC.  Change caller.
25004         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
25005         Change caller.
25006         (realize_non_ascii_face): New function.
25007         (realize_x_face): Call load_face_font here.
25008         (realize_tty_face): Delete argument C.  Change caller.
25009         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
25010         get a face ID.
25011         (dump_realized_face): Don't print charset of FACE.
25013         * xfns.c (x_set_font): Always call x_new_fontset and
25014         store_frame_parameter.
25015         (Fx_create_frame): Call x_new_fontset, not x_new_font.
25016         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
25018         * xterm.h (x_get_font_repertory): Extern it.
25020         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
25021         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
25022         it->multibyte_p is zero.
25023         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
25024         (x_new_fontset): If FONTSETNAME doesn't match any existing
25025         fontsets, create a new one.
25026         (x_get_font_repertory): New function.
25028 2008-02-01  Kenichi Handa  <handa@m17n.org>
25030         * coding.c (Ffind_coding_systems_region_internal): Detect an
25031         ASCII only string correctly.
25033         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
25034         version is 0.
25036 2008-02-01  Kenichi Handa  <handa@m17n.org>
25038         * lread.c: Include "coding.h".
25039         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
25040         (load_each_byte, unread_char): New variables.
25041         (readchar_backlog): Delete.
25042         (readchar): Return a character unless load_each_byte is nonzero.
25043         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
25044         cons.  If unread_char is not -1, simply return it.
25045         (unreadchar): Handle the case that readcharfun is
25046         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
25047         (read_multibyte): Delete.
25048         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
25049         (read_emacs_mule_char): New functions.
25050         (Fload): Even if the file doesn't have the extension ".elc", if
25051         safe_to_load_p returns a positive version number, assume that the
25052         file contains bytecompiled code.  If the version is less than 22,
25053         load the file while decoding multibyte sequences by emacs-mule.
25054         (readevalloop): Don't use readchar_backlog.
25055         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
25056         (Fread_from_string): Pay attention to the case that STREAM is a cons.
25057         (read_escape): Delete the arg BYTEREP.
25058         (read1): Set load_each_byte to 1 temporarily while handling
25059         #@NUMBER.  Don't call read_multibyte.
25060         (read_vector): Call Fread with a cons.  If readcharfun is
25061         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
25062         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
25063         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
25064         and Qload_force_doc_strings.
25066 2008-02-01  Kenichi Handa  <handa@m17n.org>
25068         * xdisp.c (face_before_or_after_it_pos):
25069         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
25071 2008-02-01  Kenichi Handa  <handa@m17n.org>
25073         * character.h (TRAILING_CODE_P): New macro.
25074         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
25075         (string_char_with_unification): Fix prototype.
25076         (Vscript_alist): Extern it.
25078         * character.c (Vscript_alist): New variable.
25079         (string_char_with_unification, str_as_unibyte)
25080         (string_escape_byte8): Add `const' to local variables.
25081         (syms_of_character): Declare script-alist as a Lisp variable.
25083         * charset.h (Vcharset_ordered_list): Extern it.
25084         (charset_ordered_list_tick): Extern it.
25085         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
25086         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
25087         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
25088         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
25089         (Funify_charset): Adjust for the change of Funify_charset.
25091         * charset.c (charset_ordered_list_tick): New variable.
25092         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
25093         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
25094         deunify instead of unify a charset.
25095         (string_xstring_p): Add `const' to local variables.
25096         (find_charsets_in_text): Add `const' to arguments and local variables.
25097         (encode_char): Adjust for the change of Funify_charset.
25098         Fix detecting of invalid code.
25099         (Fset_charset_priority): Increment charset_ordered_list_tick.
25100         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
25101         and TO_CODE.
25103         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
25104         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
25105         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
25106         (decode_coding_ccl, consume_chars)
25107         (Ffind_coding_systems_region_internal)
25108         (Fcheck_coding_systems_region): Add `const' to local variables.
25110         * print.c (print_object): Use octal form for printing the
25111         contents of a bool vector.
25113 2008-02-01  Dave Love  <fx@gnu.org>
25115         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
25116         <version == 20>: Refuse to load.
25118 2008-02-01  Dave Love  <fx@gnu.org>
25120         * fns.c: Move coding.h.
25121         (Qcodeset, Qdays, Qmonths): New.
25122         (concat): Use CHARACTERP instead of INTEGERP.
25123         (Flocale_codeset): Delete.
25124         (Flanginfo): New function.
25125         (syms_of_fns): Change accordingly.
25127         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
25129 2008-02-01  Dave Love  <fx@gnu.org>
25131         * casetab.c (init_casetab_once, init_casetab_once):
25132         Fix CHAR_TABLE_SET call.
25134         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
25136         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
25138         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
25139         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
25140         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
25142         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
25144         * coding.c (ENCODE_DESIGNATION, decode_eol)
25145         (make_conversion_work_buffer, code_conversion_restore)
25146         (Fdefine_coding_system_internal): Convert Lisp types.
25147         (code_conversion_restore): Use EQ, not ==.
25148         (Fencode_coding_string): Fix code_convert_string call.
25150         * coding.h (code_convert_region): Fix prototype.
25152         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
25154         * fontset.c (fontset_ref, fontset_set, fs_load_font)
25155         (Ffontset_info): Convert Lisp types.
25157         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
25159         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
25161         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
25163         * chartab.c: Include "...h", not <...h> in some cases.
25165         * callproc.c (Fcall_process): Remove unused variables.
25167 2008-02-01  Dave Love  <fx@gnu.org>
25169         * coding.c (Fset_coding_system_priority): Allow null arg list.
25171 2008-02-01  Dave Love  <fx@gnu.org>
25173         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
25174         (Fself_insert_and_exit): Use CHARACTERP.
25176         * callproc.c (Fcall_process): Remove unused vars.
25178         * xterm.c (XTread_socket): Add extra dead keysyms.
25180         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
25182         * dispextern.h: Remove prototypes for redraw_frame,
25183         redraw_garbaged_frames.
25185         * cmds.c (Fself_insert_command): Use CHARACTERP.
25187         * chartab.c (make_sub_char_table): Remove unused var.
25188         (Fset_char_table_default, Fmap_char_table): Doc fix.
25190         * keymap.c (access_keymap): Remove generic char code.
25191         (push_key_description): Use CHARACTERP.
25193 2008-02-01  Dave Love  <fx@gnu.org>
25195         * charset.c: Doc fixes.
25196         (Funify_charset): Extra checking.
25198 2008-02-01  Dave Love  <fx@gnu.org>
25200         * lread.c: Remove some unused variables.
25201         (safe_to_load_p): If safe, return the magic number version byte.
25202         (Fload): Maybe use load-with-code-conversion.
25204 2008-02-01  Kenichi Handa  <handa@m17n.org>
25206         * category.c (Fmodify_category_entry): Don't modify the contents
25207         of category_set for characters out of the range.
25208         Avoid unnecessary modification.
25210         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
25211         Vchar_unify_table.  The default value of the table is now nil.
25213         * character.c (syms_of_character): Setup Vchar_width_table for
25214         eight-bit-control and raw-byte chars.
25216         * charset.h (enum define_charset_arg_index):
25217         Delete charset_arg_parents and add charset_arg_subset and
25218         charset_arg_superset.
25219         (enum charset_attr_index): Delete charset_parents and add
25220         charset_subset and charset_superset.
25221         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
25222         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
25223         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
25224         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
25225         (CHARSET_SUPERSET): New macros.
25226         (charset_work): Extern it.
25227         (ENCODE_CHAR): Use charset_work.
25228         (CHAR_CHARSET_P): Adjust for the change of encoder format.
25229         (map_charset_chars): Extern it.
25231         * charset.c (load_charset_map): Set the default value of encoder
25232         and deunifier char-tables to nil.
25233         (map_charset_chars): Change argument.  Change callers.
25234         Use map_char_table_for_charset instead of map_char_table.
25235         (Fmap_charset_chars): New optional args from_code and to_code.
25236         (Fdefine_charset_internal): Adjust for the change of
25237         `define-charset' (:parents -> :subset or :superset).
25238         (charset_work): New variable.
25239         (encode_char, syms_of_charset): Adjust for the change of
25240         Fdefine_charset_internal.
25241         (Ffind_charset_string): Setup the vector `charsets' correctly.
25243         * chartab.c (sub_char_table_ref_and_range): New arg default.
25244         Fix the previous change.
25245         (char_table_ref_and_range): Adjust for the above change.
25246         (map_sub_char_table_for_charset): New function.
25247         (map_char_table_for_charset): New function.
25249         * keymap.c (describe_vector): Handle a char-table directly here.
25250         (describe_char_table): Delete.
25252         * lisp.h (map_charset_chars): Delete.
25254 2008-02-01  Dave Love  <fx@gnu.org>
25256         * fns.c (count_combining): Comment out (unused).
25257         (Flocale_codeset): New.
25258         (syms_of_fns): Defsubr it.
25260         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
25261         (size_t): Remove.
25263 2008-02-01  Dave Love  <fx@gnu.org>
25265         * Makefile.in (chartab.o): Depend on charset.h.
25267 2008-02-01  Kenichi Handa  <handa@m17n.org>
25269         * character.c (syms_of_character): Set the default value of
25270         Vprintable_chars to Qnil.
25272 2008-02-01  Dave Love  <fx@gnu.org>
25274         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
25276 2008-02-01  Kenichi Handa  <handa@m17n.org>
25278         * charset.c (load_charset_map): Handle the case that from < to
25279         correctly.
25281         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
25282         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
25283         Pay attention to raw-8-bit chars.
25285 2008-02-01  Kenichi Handa  <handa@m17n.org>
25287         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
25288         It is not bytecompiled now.
25290         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
25291         (charset_jisx0208): New variables.
25292         (Fdefine_charset_internal): Setup them if appropriate.
25293         (init_charset_once): Initialize them to -1.
25295         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
25296         (charset_jisx0208): Extern them.
25298         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
25299         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
25300         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
25301         (setup_iso_safe_charsets): Fix arguments to Fassq.
25302         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
25303         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
25304         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
25305         (encode_coding_iso_2022): Change the 1st arg to
25306         ENCODE_ISO_CHARACTER to a variable.
25308 2008-02-01  Kenichi Handa  <handa@m17n.org>
25310         * charset.h (enum define_charset_arg_index): New enums
25311         charset_arg_min_code and charset_arg_max_code.
25312         (struct charset): New member char_index_offset.
25314         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
25315         Take charset->char_index_offset into account.
25316         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
25317         args[charset_arg_max_code].  Setup charset.char_index_offset.
25318         (syms_of_charset): Fix args to Fdefine_charset_internal.
25320 2008-02-01  Dave Love  <fx@gnu.org>
25322         * coding.c (decode_coding_utf_8): Reject overlong sequences.
25324 2008-02-01  Dave Love  <fx@gnu.org>
25326         * coding.c: Doc fixes.
25327         (Fcoding_system_aliases): Fix return value.
25328         (Qmac): Remove (duplicated) definition.
25330 2008-02-01  Dave Love  <fx@gnu.org>
25332         * charset.c (Fcharset_priority_list, Fset_charset_priority):
25333         New functions.
25335         * character.c (Fstring): Doc fix.
25337         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
25339         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not ids.
25340         (font-encoding-alist): Doc fix.
25342 2008-02-01  Dave Love  <fx@gnu.org>
25344         * term.c (costs_set): Declare static, non-initialized for pcc.
25345         (encode_terminal_code): Remove unused var.
25347         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
25348         for K&R.
25350         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
25352         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
25353         (suffixes): Move out of make_subsidiaries for K&R.
25355         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
25357         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
25359 2008-02-01  Dave Love  <fx@gnu.org>
25361         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
25363         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
25365 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
25367         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
25369         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
25371 2008-02-01  Kenichi Handa  <handa@m17n.org>
25373         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
25374         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
25376 2008-02-01  Kenichi Handa  <handa@m17n.org>
25378         * coding.c (decode_coding_charset): Adjust for the change of
25379         Fdefine_coding_system_internal.
25380         (Fdefine_coding_system_internal): For a coding system of
25381         `charset' type, store a list of charset IDs in
25382         `charset_attr_charset_valids' element of coding attributes.
25384 2008-02-01  Kenichi Handa  <handa@m17n.org>
25386         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
25387         (emacs_mule_char): New arg src.  Delete arg `composition'.
25388         Change caller.  Handle 2-byte and 3-byte charsets correctly.
25389         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
25390         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
25391         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
25392         (DECODE_EMACS_MULE_21_COMPOSITION):
25393         Call DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
25394         sequence.
25395         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
25396         `src' and `consumed_chars' correctly before calling emacs_mule_char.
25397         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
25398         and alt&rule composition.
25399         (decode_coding_iso_2022): Handle composition correctly.
25400         (init_coding_once): Setup emacs_mule_bytes for private charsets.
25402         * charset.c (Fdefine_charset_internal): Fix bug for the case of
25403         re-defining a charset.  If the charset has :emacs-mule-id, setup
25404         emacs_mule_bytes.
25405         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
25407 2008-02-01  Kenichi Handa  <handa@m17n.org>
25409         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
25410         (encode_coding_big5, encode_coding_charset): If coding requires safe
25411         encoding, produce a character specified by
25412         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
25414 2008-02-01  Dave Love  <fx@gnu.org>
25416         * xterm.c (XSetIMValues): Declare.
25418         * process.c: Conditionally include sys/wait.h, pty.h.
25420         * print.c (print_object): Fix print format for 64-bit systems.
25422         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
25424         * buffer.c (emacs_strerror): Declare.
25426         * fontset.c (Fclear_face_cache): Declare.
25427         (accumulate_font_info): Comment-out (unused).
25428         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
25429         variables.
25431         * character.h (string_escape_byte8): Declare.
25433         * charset.c (load_charset_map, load_charset_map_from_file):
25434         Remove unused vars.
25435         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
25436         (Fmap_charset_chars): Doc fix.
25438         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
25439         (Fset_coding_system_priority, Fset_coding_system_priority)
25440         (Fdefine_coding_system_internal): Doc fix.
25442 2008-02-01  Dave Love  <fx@gnu.org>
25444         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
25446 2008-02-01  Kenichi Handa  <handa@m17n.org>
25448         * character.c (string_escape_byte8): Make multibyte string with
25449         correct size.
25451         * charset.c (Fmake_char): Delete unnecessary code.
25453 2008-02-01  Kenichi Handa  <handa@m17n.org>
25455         * xfns.c (x_encode_text): Allocate coding.destination here, and
25456         call encode_coding_object with dst_object Qnil.
25458         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
25459         multibyte form correctly.
25461         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
25462         against Vfont_encoding_alist.
25464         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
25465         handling of charset list.
25466         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
25467         (decode_coding_object): Move point to coding->dst_pos before
25468         calling post-read-conversion function.
25469         (encode_coding_object): Give correct arguments to
25470         pre-write-conversion.  Ignore the return value of
25471         pre-write-conversion function.  Pay attention to the case that
25472         pre-write-conversion changes the current buffer.  If dst_object is
25473         Qt, even if coding->src_bytes is zero, allocate at least one byte
25474         to coding->destination.
25476         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
25478         * charset.c (Fmake_char): Make it more backward compatible.
25479         (Fmap_charset_chars): Fix docstring.
25481 2008-02-01  Dave Love  <fx@gnu.org>
25483         * coding.c: Doc fixes.
25484         (Fdefine_coding_system_alias): Use names, not symbols, in
25485         coding-system-alist.
25487 2008-02-01  Kenichi Handa  <handa@m17n.org>
25489         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
25490         of calling free_realized_face.
25492 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
25494         * charset.c (read_hex): Don't treat SPC as a comment starter.
25495         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
25496         (Fdecode_char): Fix typo.
25498 2008-02-01  Kenichi Handa  <handa@m17n.org>
25500         * charset.h (struct charset): New member `code_space_mask'.
25502         * coding.c (coding_set_source): Delete the local variable beg_byte.
25503         (encode_coding_charset, Fdefine_coding_system_internal):
25504         Delete the local variable charset.
25505         (Fdefine_coding_system_internal):
25506         Setup attrs[coding_attr_charset_valids] correctly.
25508         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
25509         member to check if CODE is valid or not.
25510         (Fdefine_charset_internal): Initialize `code_space_mask' member.
25511         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
25512         is within the range of charset->min_code and carset->max_code.
25514 2008-02-01  Dave Love  <fx@gnu.org>
25516         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
25518         * dispextern.h (generate_ascii_font): Fix return type.
25520         * xfaces.c (generate_ascii_font): Fix arg declaration.
25522         * coding.c (coding_inherit_eol_type)
25523         (Fset_terminal_coding_system_internal)
25524         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
25526 2008-02-01  Kenichi Handa  <handa@m17n.org>
25528         * coding.c (decode_coding_charset, encode_coding_charset):
25529         Handle multiple charsets correctly.
25531 2008-02-01  Kenichi Handa  <handa@m17n.org>
25533         * search.c (boyer_moore): Fix handling of multibyte character
25534         translation.
25536         * xdisp.c (display_mode_element): When the variable `elt' is
25537         changed, update `this' and `lisp_string'.
25539 2008-02-01  Kenichi Handa  <handa@m17n.org>
25541         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
25543         * callproc.c (Fcall_process): Be sure to give the current buffer
25544         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
25546         * charset.c (struct charset_map_entries): New struct.
25547         (load_charset_map): Rename from parse_charset_map.  New args
25548         entries and n_entries.  Change caller.
25549         (load_charset_map_from_file): Rename from load_charset_map.
25550         Change caller.  New arg control_flag.  Call load_charset_map at
25551         the tail.
25552         (load_charset_map_from_vector): New function.
25553         (Fdefine_charset_internal): Setup charset.compact_codes_p.
25554         (encode_char): If the charset is compact, change a character index
25555         to a code point.
25557         * coding.c (coding_alloc_by_making_gap): Check the case that the
25558         source and destination are the same correctly.
25559         (decode_coding_raw_text): Set coding->consumed_char and
25560         coding->consumed to 0.
25561         (produce_chars): If coding->chars_at_source is nonzero, update
25562         coding->consumed_char and coding->consumed before calling
25563         alloc_destination.
25564         (Fdefine_coding_system_alias): Register ALIAS in
25565         Vcoding_system_alist.
25566         (syms_of_coding): Define `no-conversion' coding system at the tail.
25568         * fileio.c (Finsert_file_contents): Set coding_system instead of
25569         val.  If the current buffer is multibyte, always call
25570         decode_coding_gap.
25572         * xfaces.c (try_font_list): Give higher priority to fontset's
25573         family than face's family.
25575 2008-02-01  Kenichi Handa  <handa@m17n.org>
25577         * callproc.c (Fcall_process): Be sure to give the current buffer
25578         to decode_coding_c_string.
25580         * xfaces.c (try_font_list): Give a family specified in a fontset
25581         higher priority than a family specified in a face.
25583 2008-02-01  Kenichi Handa  <handa@m17n.org>
25585         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
25586         Fix arguments to insert_from_buffer.
25588         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
25590 2008-02-01  Kenichi Handa  <handa@m17n.org>
25592         * coding.c (produce_chars): Set the variable `multibytep' correctly.
25593         (decode_coding_gap): Set coding->dst_multibyte correctly.
25595 2008-02-01  Kenichi Handa  <handa@m17n.org>
25597         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
25598         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
25599         (encode_coding_utf_16): Substitute coding->default_char for
25600         non-Unicode characters.
25601         (decode_coding): Don't call record_insert here.
25602         (setup_coding_system): Initialize `surrogate' of
25603         coding->spec.utf_16 to 0.
25604         (EMIT_ONE_BYTE): Fix for multibyte case.
25606         * insdel.c (insert_from_gap): Call record_insert.
25608 2008-02-01  Kenichi Handa  <handa@m17n.org>
25610         * casefiddle.c (casify_region): Fix multibyte case.
25612         * character.c (c_string_width): Add return type `int'.
25613         (char_string_with_unification): Delete arg ADVANCED.
25615         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
25616         (CHAR_STRING): Adjust for the change of char_string_with_unification.
25617         (CHAR_STRING_ADVANCE): Make it do-while statement.
25619         * chartab.c (sub_char_table_set_range): Optimize for the case
25620         DEPTH == 3.  Add workaround code for a GCC optimization bug.
25622         * charset.c (parse_charset_map): Remove an unused variable.
25624         * coding.c: Delete unused variables.
25626         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
25627         earlier.  If inserted is zero and the coding system doesn't
25628         require flushing, don't call decode_coding_gap.
25630         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
25632 2008-02-01  Kenichi Handa  <handa@m17n.org>
25634         The following changes are for using Unicode as an internal
25635         character model, and use UTF-8 format for buffer/string
25636         representation.
25638         * .gdbinit (xchartable): Adjust for the change of char table structure.
25639         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
25641         * Makefile.in (obj): Add character.o and chartab.o.
25642         (lisp, shortlisp): Remove utf-8.elc.
25643         (*.o): For many files, change dependency on charset.h to
25644         character.h, and add dependency on character.h.
25645         (character.o, chartab.o): New targets.
25647         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
25648         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
25649         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
25650         of "charset.h".
25652         * dired.c, filelock.c: Include "character.h".
25654         * alloc.c: Include "character.h" instead of "charset.h".
25655         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
25656         (syms_of_alloc): Remove defsubr for Smake_char_table.
25658         * buffer.c: Include "character.h" instead of "charset.h", don't
25659         include "coding.h".
25660         (Fset_buffer_multibyte): Adjust for UTF-8.
25662         * buffer.h: EXFUN Fbuffer_live_p.
25664         * callproc.c: Include "character.h" instead of "charset.h".
25665         (Fcall_process): Big change for the new code-conversion APIs.
25667         * casetab.c: Include "character.h" instead of "charset.h".
25668         (set_canon, set_identity, shuffle): Adjust for the new
25669         map_char_table spec.
25670         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
25671         accessing the char table structure.
25673         * chartab.c: New file that implements char table.
25675         * category.c: Include "character.h".
25676         (copy_category_entry): New function.
25677         (copy_category_table): Call map_char_table and copy_category_entry.
25678         (Fmake_category_table): Initialize all top-level slots.
25679         (char_category_set): New function.
25680         (modify_lower_category_set): Delete.
25681         (Fmodify_category_entry): Call char_table_ref_and_range.
25683         * category.h (CATEGORY_SET): Just call char_category_set.
25685         * ccl.c: Include "character.h".
25686         (Qccl, Qcclp): New variables.
25687         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
25688         it's less than 256.
25689         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
25690         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
25691         and DST type.
25692         (ccl_driver): Change types of argument, adjust code accordingly.
25693         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
25694         ccl_driver.
25695         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
25697         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
25698         New members src_multibyte, dst_multibyte, consumed, and produced.
25699         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
25700         (CODING_SPEC_CCL_PROGRAM): New macro.
25701         (ccl_driver): Update prototype.
25702         (Qccl, Qcclp, Fccl_program_p): Extern them.
25703         (CHECK_CCL_PROGRAM): New macro.
25705         * character.c, character.h, chartab.c: New files.
25707         * charset.c: Mostly re-written.  Move character and multibyte sequence
25708         handling codes to character.c.
25710         * charset.h: Mostly re-written.  Move character and multibyte sequence
25711         handling codes to character.h.
25713         * coding.c, coding.h: Mostly re-written.
25715         * composite.c: Include "character.h" instead of "charset.h".
25716         (CHAR_WIDTH): Move to character.h.
25717         (HASH_KEY, HASH_VALUE): Delete.
25719         * composite.h (enum composition_method): Change order of enumeration
25720         symbols.
25722         * data.c: Include "character.h" instead of "charset.h".
25723         (Faref): Call CHAR_TABLE_REF for a char table.
25724         (Faset): Call CHAR_TABLE_SET for a char table.
25726         * dispextern.h (free_realized_face, check_face_attribytes)
25727         (generate_ascii_font): Extern them.
25728         (free_realized_multibyte_face): Delete extern.
25730         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
25731         table structure.
25733         * editfns.c: Include "character.h" instead of "charset.h".
25734         (Fchar_to_string): Always call CHAR_STRING.
25736         * emacs.c (main): Call init_charset_once, init_charset,
25737         syms_of_chartab, and syms_of_character.
25739         * fileio.c: Include "character.h" instead of "charset.h".
25740         (Finsert_file_contents): Big change for the new code-conversion API.
25741         (choose_write_coding_system, Fwrite_region): Likewise.
25742         (build_annotations_2): Delete.
25743         (e_write): Big change for the new code-conversion API.
25745         * fns.c: Include "character.h" instead of "charset.h".
25746         (copy_sub_char_table): Move to chartab.c.
25747         (Fcopy_sequence): Call copy_char_table for a char table.
25748         (concat): Delete codes calling count_multibyte.
25749         (string_char_to_byte, string_byte_to_char): Adjust for the new
25750         multibyte form.
25751         (internal_equal): Adjust for the change of char table structure.
25752         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
25753         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
25754         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
25755         (char_table_translate, optimize_sub_char_table)
25756         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
25757         chartab.c.
25758         (char_table_ref_and_index): Delete.
25759         (HASH_KEY, HASH_VALUE): Move to lisp.h.
25760         (Fmd5): Call preferred_coding_system instead of accessing
25761         Vcoding_category_list.  Adjust for the new code-conversion API.
25762         (syms_of_fns): Move defsubr for char table related functions to
25763         chartab.c.
25765         * fontset.c: Mostly re-written.
25767         * fontset.h (struct font_info): Change type of the member encoding_type.
25768         (enum FONT_SPEC_INDEX): New enum.
25769         (fontset_font_pattern, fs_load_font): Update prototype.
25770         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
25772         * indent.c: Include "character.h" instead of "charset.h".
25773         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
25775         * insdel.c: Include "character.h" instead of "charset.h".
25776         (copy_text): Don't refer to Vnonascii_translation_table.
25777         (insert_from_gap): New function.
25779         * keyboard.c: Include "character.h" instead of "charset.h".
25780         (command_loop_1): Never call direct_output_forward_char before
25781         a non-ASCII character.
25782         (read_char): If Vkeyboard_translate_table is a char table, always
25783         translate a character.
25785         * keymap.c: Include "character.h".
25786         (store_in_keymap): Handle the case that IDX is a cons.
25787         (Fdefine_key): Handle the case that KEY is a cons and the car part
25788         is also a cons (range).
25789         (push_key_description): Adjust for the new character code.
25790         (describe_vector): Call describe_char_table for a char table.
25791         (describe_char_table): New function.
25793         * keymap.h (describe_char_table): Extern it.
25795         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
25796         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
25797         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
25798         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
25799         Delete.
25800         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
25801         structure.
25802         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
25803         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
25804         (CHARTAB_SIZE_BITS_3): New macros.
25805         (chartab_size): Extern it.
25806         (struct Lisp_Char_Table): Re-design.
25807         (struct Lisp_Sub_Char_Table): New structure.
25808         (HASH_KEY, HASH_VALUE): Move from fns.c.
25809         (CHARACTERBITS): Define as 22.
25810         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
25811         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
25812         (GC_SUB_CHAR_TABLE_P): New macro.
25813         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
25814         (code_convert_string_norecord): Delete extern.
25815         (init_character_once, syms_of_character, init_charset)
25816         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
25818         * lread.c: Include "character.h".
25819         (read_multibyte): New arg NBYTES.
25820         (read_escape): Change the meaning of returned *BYTEREP.
25821         (to_multibyte): Delete.
25822         (read1): Adjust the handling of char table and string.
25824         * print.c: Include "character.h" instead of "charset.h".
25825         (print_string): Convert 8-bit raw bytes to octal form by
25826         string_escape_byte8.
25827         (print_object): Adjust for the new multibyte form.  Print 8-bit
25828         raw bytes always in octal form.  Handle sub char table correctly.
25830         * process.c: Include "character.h" instead of "charset.h".
25831         (read_process_output, send_process): Adjust for the new
25832         code-conversion API.
25834         * puresize.h (BASE_PURESIZE): Increase.
25836         * regex.c: Include "character.h" instead of "charset.h".
25837         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
25838         (regex_compile): Accept a range whose starting and ending
25839         character have different leading bytes.
25840         (analyse_first): Adjust for the above change.
25842         * search.c: Include "character.h" instead of "charset.h".
25843         (search_buffer, boyer_moore): Adjust for the new multibyte form.
25844         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
25846         * syntax.c: Include "character.h" instead of "charset.h".
25847         (syntax_parent_lookup): Delete.
25848         (Fmodify_syntax_entry): Accept a cons as CHAR.
25849         (skip_chars): Adjust for the new multibyte form.
25850         (init_syntax_once): Call char_table_set_range instead of directly
25851         accessing the structure of a char table.
25853         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
25854         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
25855         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
25856         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
25858         * term.c: Include "buffer.h" and "character.h".
25859         (encode_terminal_code, write_glyphs): Adjust for the new
25860         code-conversion API.
25861         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
25863         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
25865         * xdisp.c: Include "character.h".
25866         (get_next_display_element): Adjust for the new multibyte form.
25867         (disp_char_vector): Adjust for the new char table structure.
25868         (decode_mode_spec_coding): Adjust for the new structure of
25869         coding system.
25870         (decode_mode_spec): Adjust for the new code-conversion API.
25872         * xfaces.c: Include "character.h" instead of "charset.h".
25873         (load_face_font): Adjust for the change of choose_face_font and
25874         FS_LOAD_FONT.
25875         (generate_ascii_font): New function.
25876         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
25877         (set_font_frame_param): Adjust for the change of choose_face_font.
25878         (free_realized_face): Make it public.
25879         (free_realized_faces_for_fontset): Rename from
25880         free_realized_multibyte_face.  Free also faces realized for ASCII.
25881         (choose_face_font): Change arguments.  Adjust for the change of
25882         fontset_font_pattern and FS_LOAD_FONT.
25884         * xfns.c: Include "character.h".
25885         (x_encode_text): Adjust for the new code-conversion API.
25887         * xselect.c: Don't include "charset.h".
25888         (selection_data_to_lisp_data): Adjust for the new code conversion API.
25890         * xterm.c: Include "character.h".
25891         (x_encode_char): New argument CHARSET.  Change caller.
25892         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
25893         Call ENCODE_CHAR instead of SPLIT_CHAR.
25894         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
25895         CHAR_WIDTH instead of CHARSET_WIDTH.
25896         (XTread_socket): Adjust for the new code-conversion API.
25897         (x_new_font): Adjust for the change of FS_LOAD_FONT.
25898         (x_load_font): Adjust for the change of struct font.
25900 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
25902         * xfaces.c (face_at_buffer_position): Remove unused vars.
25904 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
25906         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
25907         Fix overflow checking.
25909 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
25911         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
25912         Cancel previous change.
25914 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
25916         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
25917         ccl->eight_bit_control.  Fix check for buffer overflow.
25918         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
25919         (ccl_driver): Initialize extra_bytes to 0.
25921 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
25923         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
25924         return it ORed with ctrl_modifier.
25926 2008-01-29  Miles Bader  <miles@gnu.org>
25928         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
25930 2008-01-28  Jason Rumney  <jasonr@gnu.org>
25932         * w32.c (stat): Don't double check for networked drive.
25934 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
25936         * window.c (run_window_configuration_change_hook): New function.
25937         Code extracted from set_window_buffer.  Set the selected frame.
25938         (set_window_buffer): Use it.
25939         * window.h (run_window_configuration_change_hook): Declare.
25940         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
25942         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
25944 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
25946         * Makefile.in: Remove references to unused macros.
25948 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
25950         * w32.c (g_b_init_get_sid_sub_authority)
25951         (g_b_init_get_sid_sub_authority_count): New static variables.
25952         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
25953         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
25954         (init_user_info): Use them to retrieve uid and gid.
25955         Use 500/513, the Windows defaults, as Administrator's uid/gid.
25956         (fstat): Use pw_uid and pw_gid from the_passwd structure for
25957         st_uid and st_gid of the file.
25959 2008-01-26  Jason Rumney  <jasonr@gnu.org>
25961         * w32.c (logon_network_drive): New function.
25962         (stat): Use it.
25964 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
25966         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
25967         invisible text covered with an ellipsis.
25969 2008-01-25  Richard Stallman  <rms@gnu.org>
25971         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
25972         jump back to beginning.  Move some other initializations after that.
25973         (Qwindow_text_change_functions, Vwindow_text_change_functions):
25974         New variables.
25975         (syms_of_xdisp): Init them.
25977         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
25979         * buffer.c (reset_buffer_local_variables):
25980         Implement `permanent-local-hook'.
25981         (Qpermanent_local_hook): New variable.
25982         (syms_of_buffer): Init and staticpro it.
25984 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
25986         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
25988 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
25990         * fns.c (Fclrhash): Return TABLE.
25992 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
25994         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
25995         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
25996         is set even without positional changes.
25997         (x_scroll_bar_clear): Set bar->redraw_needed_p.
25999         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
26001 2008-01-23  Jason Rumney  <jasonr@gnu.org>
26003         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
26005         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
26006         the unicode range available in MULE by locale-coding-system.
26007         Improve dbcs lead byte detection.  Set event timestamp and modifiers
26008         earlier.
26010 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26012         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
26013         [MAC_OSX] (init_mac_osx_environment): Initialize it.
26014         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
26015         when used on child processes.
26017 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
26019         * dbusbind.c (Fdbus_method_return_internal): Rename from
26020         Fdbus_method_return.
26021         (Fdbus_unregister_object): Move to dbus.el.
26022         (Fdbus_call_method, Fdbus_method_return_internal)
26023         (Fdbus_send_signal): Improve debug messages.
26025 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
26027         * undo.c (undo_inhibit_record_point): New variable.
26028         (syms_of_undo): Initialize it.
26029         (record_point): Don't record point when undo_inhibit_record_point
26030         is set.
26032 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
26034         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
26036         * xdisp.c (Qauto_hscroll_mode): New var.
26037         (syms_of_xdisp): Initialize it.
26038         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
26039         window's buffer.
26040         (hscroll_windows): Don't check automatic_hscrolling_p here.
26042         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
26043         vscroll if we're setting window-buffer to the value it already has.
26045 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
26047         * m/intel386.h: Remove references to XENIX.
26049 2008-01-17  Andreas Schwab  <schwab@suse.de>
26051         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
26052         instead of HAVE_X86_64_LIB64_DIR.
26053         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
26055 2008-01-17  Glenn Morris  <rgm@gnu.org>
26057         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
26058         to HAVE_X86_64_LIB64_DIR.
26060 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
26062         * s/irix3-3.h:
26063         * s/irix4-0.h:
26064         * s/386-ix.h:
26065         * s/domain.h:
26066         * s/hpux9-x11r4.h:
26067         * s/hpux9shxr4.h: Remove files for systems no longer supported.
26069         * sysdep.c: Remove code containing references to symbols defined
26070         by unsupported systems.
26072 2008-01-16  Glenn Morris  <rgm@gnu.org>
26074         * coding.c (select-safe-coding-system-function): Doc fix.
26076 2008-01-15  Glenn Morris  <rgm@gnu.org>
26078         * config.in: Revert 2008-01-13 change: this is a generated file.
26080 2008-01-13  Tom Tromey  <tromey@redhat.com>
26082         * lisp.h: Fix typo.
26084 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
26086         * m/sequent-ptx.h:
26087         * m/sequent.h:
26088         * s/ptx.h:
26089         * s/ptx4-2.h:
26090         * s/ptx4.h: Remove files for systems no longer supported.
26092         * callproc.c (Fcall_process): Fix previous change.
26094 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
26096         * unexsunos4.c: Remove file, system not supported anymore.
26098         * m/mips.h:
26099         * m/intel386.h:
26100         * callproc.c:
26101         * config.in:
26102         * ecrt0.c:
26103         * emacs.c:
26104         * fileio.c:
26105         * frame.c:
26106         * getpagesize.h:
26107         * keyboard.c:
26108         * lread.c:
26109         * process.c:
26110         * puresize.h:
26111         * sysdep.c:
26112         * systty.h:
26113         * syswait.h:
26114         * unexec.c:
26115         * xdisp.c:
26116         * alloc.c: Remove code containing references to symbols defined by
26117         unsupported systems.
26119 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
26121         * coding.c (detect_coding_mask): Fix previous change.
26123 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
26125         * coding.c (detect_coding_iso2022): New arg
26126         latin_extra_code_state.  Allow Latin extra codes only
26127         when *latin_extra_code_state is nonzero.
26128         (detect_coding_mask): If there is a NULL byte, detect the encoding
26129         as UTF-16 or binary.  If Latin extra codes exist, detect the
26130         encoding as ISO-2022 only when there's no other proper encoding is
26131         found.
26133 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26135         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
26136         #ifdef MAC_OS.
26138 2008-01-08  Richard Stallman  <rms@gnu.org>
26140         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
26142 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
26144         * keyboard.c (parse_menu_item): Don't enclose key bindings on
26145         menu bar in parentheses.
26147 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
26149         * m/7300.h:
26150         * m/acorn.h:
26151         * m/alliant-2800.h:
26152         * m/alliant.h:
26153         * m/alliant1.h:
26154         * m/alliant4.h:
26155         * m/altos.h:
26156         * m/amdahl.h:
26157         * m/apollo.h:
26158         * m/att3b.h:
26159         * m/aviion-intel.h:
26160         * m/aviion.h:
26161         * m/celerity.h:
26162         * m/clipper.h:
26163         * m/cnvrgnt.h:
26164         * m/convex.h:
26165         * m/cydra5.h:
26166         * m/delta88k.h:
26167         * m/dpx2.h:
26168         * m/dual.h:
26169         * m/elxsi.h:
26170         * m/f301.h:
26171         * m/gould-np1.h:
26172         * m/gould.h:
26173         * m/i860.h:
26174         * m/ibmps2-aix.h:
26175         * m/ibmrt-aix.h:
26176         * m/ibmrt.h:
26177         * m/irist.h:
26178         * m/is386.h:
26179         * m/isi-ov.h:
26180         * m/mega68.h:
26181         * m/mg1.h:
26182         * m/news-r6.h:
26183         * m/news-risc.h:
26184         * m/news.h:
26185         * m/nh3000.h:
26186         * m/nh4000.h:
26187         * m/ns16000.h:
26188         * m/ns32000.h:
26189         * m/nu.h:
26190         * m/orion.h:
26191         * m/orion105.h:
26192         * m/paragon.h:
26193         * m/pfa50.h:
26194         * m/plexus.h:
26195         * m/pyramid.h:
26196         * m/pyrmips.h:
26197         * m/sh3el.h:
26198         * m/sps7.h:
26199         * m/sr2k.h:
26200         * m/stride.h:
26201         * m/sun1.h:
26202         * m/sun2.h:
26203         * m/sun3-68881.h:
26204         * m/sun3-fpa.h:
26205         * m/sun3-soft.h:
26206         * m/sun3.h:
26207         * m/sun386.h:
26208         * m/symmetry.h:
26209         * m/tad68k.h:
26210         * m/tahoe.h:
26211         * m/targon31.h:
26212         * m/tek4300.h:
26213         * m/tekxd88.h:
26214         * m/tower32.h:
26215         * m/tower32v3.h:
26216         * m/ustation.h:
26217         * m/wicat.h:
26218         * m/xps100.h:
26219         * s/cxux.h:
26220         * s/cxux7.h:
26221         * s/dgux.h:
26222         * s/dgux4.h:
26223         * s/dgux5-4-3.h:
26224         * s/dgux5-4r2.h:
26225         * s/esix.h:
26226         * s/esix5r4.h:
26227         * s/hiuxmpp.h:
26228         * s/hiuxwe2.h:
26229         * s/iris3-5.h:
26230         * s/iris3-6.h:
26231         * s/isc2-2.h:
26232         * s/isc3-0.h:
26233         * s/isc4-0.h:
26234         * s/isc4-1.h:
26235         * s/newsos5.h:
26236         * s/newsos6.h:
26237         * s/osf1.h:
26238         * s/osf5-0.h:
26239         * s/riscix1-1.h:
26240         * s/riscix12.h:
26241         * s/sco4.h:
26242         * s/sco5.h:
26243         * s/sunos4-0.h:
26244         * s/sunos4-1.h:
26245         * s/sunos413.h:
26246         * s/sunos4shr.h:
26247         * s/umax.h:
26248         * s/unipl5-2.h:
26249         * s/xenix.h:
26250         * cxux-crt0.s:
26251         * unexapollo.c:
26252         * unexconvex.c:
26253         * unexenix.c:
26254         * unexsni.c: Remove files for systems no longer supported.
26256         * m/intel386.h: Remove references to unsupported systems.
26258         * w32.c (get_emacs_configuration): Remove reference to i860.
26260         * sysdep.c: Remove dead code.
26262 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
26264         * s/rtu.h:
26265         * m/masscomp.h: Remove files.  Platform is obsolete.
26267 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
26269         * dbusbind.c (Fdbus_method_return): New function.
26270         (xd_read_message): Add the serial number to the event.
26271         (Fdbus_register_method): Activate the function.
26273 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
26275         * keyboard.c (read_key_sequence): Fix typo.
26277 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
26279         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
26280         (xd_signature, xd_append_arg): Handle element type detection for
26281         empty arrays.
26282         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
26283         SDATA () calls; this must be solved more general.
26284         (Fdbus_register_signal): Use SBYTES instead of strlen.
26286 2008-01-03  Magnus Henoch  <magnus@zemdatav>
26288         * dbusbind.c (xd_append_arg): Use unsigned char instead of
26289         unsigned int for byte values (necessary for big-endian platform).
26290         (Fdbus_call_method): Handle the case of no returned arguments.
26292 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
26294         * dbusbind.c (xd_read_message): Use non-static input_event struct.
26296 2007-12-31  Magnus Henoch  <mange@freemail.hu>
26298         * dbusbind.c (xd_signature): Signature of variant is just "v".
26300 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
26302         * dbusbind.c: Fix several errors and compiler warnings.
26303         Reported by Tom Tromey <tromey@redhat.com>.
26304         (XD_ERROR, XD_DEBUG_MESSAGE)
26305         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
26306         (xd_append_arg): Part for basic D-Bus types rewritten.
26307         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
26308         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
26309         appropriate.
26310         (xd_read_message): Return Qnil.  Don't signal an error; it is not
26311         useful during event reading.
26312         (Fdbus_register_signal): Signal an error if the check for
26313         FUNCTIONP fails.
26314         (Fdbus_register_method): New function.  The implementation is not
26315         complete, the call of the function signals an error therefore.
26316         (Fdbus_unregister_object): New function, renamed from
26317         Fdbus_unregister_signal.  The initial check signals an error, if
26318         the object is not well formed.
26320 2007-12-30  Richard Stallman  <rms@gnu.org>
26322         * textprop.c (get_char_property_and_overlay):
26323         Signal error if POSITION is out of range in a buffer.
26325 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
26327         * w32fns.c (Fx_create_frame): Make copy of frame parameters
26328         because the original parameters are in pure storage now.
26330 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26332         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
26334 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
26336         * callint.c (syms_of_callint) <command-history>: Add reference to
26337         history-length in the doc string.
26339 2007-12-17  Jason Rumney  <jasonr@gnu.org>
26341         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
26342         before passing as wParam.
26344 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
26346         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
26347         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
26348         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
26349         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
26350         as number.
26351         (Fdbus_call_method): Fix docstring.
26353 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
26355         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
26356         New macros.
26357         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
26358         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
26359         Simplify.
26360         (xd_signature): New function.
26361         (xd_append_arg): Compute also signatures.  Major rewrite.
26362         (xd_retrieve_arg): Make debug messages friendly.
26363         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
26364         Check for signatures of arguments.
26366 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
26368         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
26369         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
26370         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
26371         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
26372         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
26373         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
26374         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
26375         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
26376         (xd_retrieve_value): Remove.  Functionality included in ...
26377         (xd_append_arg): New function.
26378         (Fdbus_call_method, Fdbus_send_signal): Apply it.
26380 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
26382         * dbusbind.c (top): Include <stdio.h>.
26383         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
26384         dbus_message_new_method_call and dbus_message_new_signal.
26385         (Fdbus_register_signal): Rename unique_name to uname.
26386         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
26387         non-existing unique name.  Fix typos in matching rule.  Return an
26388         object which is useful in Fdbus_unregister_signal.
26389         (Fdbus_unregister_signal): Reimplementation, in order to remove
26390         only the corresponding entry.
26391         (Vdbus_registered_functions_table): Change the order of entries.
26392         Apply these changes in xd_read_message and Fdbus_register_signal.
26394 2007-12-16  Andreas Schwab  <schwab@suse.de>
26396         * fileio.c (Finsert_file_contents): Fix overflow check to not
26397         depend on undefined integer overflow.
26399 2007-12-14  Jason Rumney  <jasonr@gnu.org>
26401         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
26402         for characters above 127.
26404 2007-12-13  Jason Rumney  <jasonr@gnu.org>
26406         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
26407         before dereferencing array.
26408         (lookup_vk_code): Remove zero comparison.
26410 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
26412         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
26413         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
26414         Use `unsigned int' instead of `uint'.
26415         (xd_read_message, Fdbus_register_signal): Split expressions into
26416         multiple lines before operators "&&" and "||", according to the
26417         GNU Coding Standards.
26419 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
26421         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
26423 2007-12-12  Juri Linkov  <juri@jurta.org>
26425         * buffer.c (Frename_buffer): In interactive spec replace
26426         `read-buffer' with `read-string' that uses `buffer-name-history'
26427         as history, and the current buffer's name as default.
26429 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
26431         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
26432         manipulating the backtrace manually.
26433         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
26434         (struct backtrace, backtrace_list): Remove.
26435         (command_loop_1): Remove dead var `no_direct'.
26437         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
26438         preserve non-built-in buffer-local variables.
26439         (Fkill_all_local_variables): Don't re-create&re-set permanent
26440         buffer-local variables.
26442 2007-12-09  Juri Linkov  <juri@jurta.org>
26444         * buffer.c (Frename_buffer): Change interactive spec from "s" to
26445         Lisp code that uses `read-buffer' with current buffer as default.
26447 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
26449         * dbusbind.c (xd_read_message): Generate an event for every
26450         registered handler.  There might be several handlers registered
26451         for the same signal.
26452         (Fdbus_register_signal): Don't overwrite a registration for the
26453         same signal.  Add a new registration if handlers are different.
26454         (Vdbus_registered_functions_table): Rework doc string.
26456 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
26458         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
26459         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
26460         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
26461         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
26462         Unify argument lists.
26463         (xd_read_message, Fdbus_register_signal): Reorder and extend event
26464         arguments and hash table keys.  Use unique name for service.
26465         (Fdbus_unregister_signal): Remove checks.
26466         (Vdbus_registered_functions_table): Fix doc string.
26468 2007-12-05  Magnus Henoch  <mange@freemail.hu>
26470         * process.c (make_process): Initialize pty_flag to 0.
26472 2007-12-05  Jason Rumney  <jasonr@gnu.org>
26474         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
26475         specified XBMs.
26477 2007-12-05  Richard Stallman  <rms@gnu.org>
26479         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
26481 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26483         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
26484         New variable.
26485         (mac_try_close_socket) [MAC_OSX]: New function.
26486         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
26487         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
26489         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
26490         Use mac_try_close_socket.
26492 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26494         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
26495         reloc_base.
26496         (copy_dysymtab): Compute relocation base here.
26497         (rebase_reloc_address) [__ppc64__]: New function.
26498         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
26499         changed.
26501 2007-12-05  Jason Rumney  <jasonr@gnu.org>
26503         * w32proc.c (sys_spawnve): Quote args with wildcards.
26505 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26507         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
26508         __objc_* sections.
26509         (unrelocate) [_LP64]: Set relocation base to address of data segment.
26511 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
26513         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
26514         Move check for Vdbus_registered_functions_table to
26515         xd_read_queued_messages.
26516         (xd_read_queued_messages): Protect xd_read_message calls by
26517         internal_condition_case_1.
26519 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
26521         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
26522         Qdbus_system_bus and Qdbus_session_bus, respectively.
26523         (Vdbus_intern_symbols): Remove.
26524         (Vdbus_registered_functions_table): New hash table.
26525         (XD_SYMBOL_INTERN_SYMBOL): Remove.
26526         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
26527         Rewrite in order to manage registered functions by hash table
26528         Vdbus_registered_functions_table.
26530 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
26532         * xterm.c: Update URL to Window Manager Specification in comment.
26534 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
26536         * config.in (HAVE_DBUS): Add.
26538         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
26539         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
26540         (obj): Add $(DBUS_OBJ).
26541         (LIBES): Add $(DBUS_LIBS).
26542         (dbusbind.o): New target.
26544         * dbusbind.c: New file.
26546         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
26548         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
26549         (Qdbus_event): New Lisp symbol.
26550         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
26551         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
26552         (keys_of_keyboard): Define dbus-event.
26554         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
26556 2007-12-01  Richard Stallman  <rms@gnu.org>
26558         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
26560 2007-11-30  Jason Rumney  <jasonr@gnu.org>
26562         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
26563         (w32con_reset_terminal_modes): Clear screen buffer.
26564         (w32_face_attributes): Don't use color indexes that are out of range.
26565         Only reverse the default colors.
26567         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
26568         WINDOWSNT.
26570         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
26572 2007-11-29  Jason Rumney  <jasonr@gnu.org>
26574         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
26575         (w32_face_attributes): Use Vtty_defined_color_alist to determine
26576         if the terminal colors are initialized.
26577         (unspecified_fg, unspecified_bg): Remove unused declarations.
26579 2007-11-29  Andreas Schwab  <schwab@suse.de>
26581         * keyboard.c (apply_modifiers): Fix typo.
26583 2007-11-29  Richard Stallman  <rms@gnu.org>
26585         * keymap.c (Fcurrent_local_map): Doc fix.
26587 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26589         * s/gnu-kfreebsd.h: New file.
26591 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
26593         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
26594         Don't cast redundantly.
26596         * keyboard.c (KEY_TO_CHAR): New macro.
26597         (parse_modifiers, apply_modifiers): Accept integer arguments.
26598         (read_key_sequence): Use them to unify the "shift->unshift" mapping
26599         for chars and symbol keys.
26600         After doing such remapping, apply function-key-map again.
26602 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
26604         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
26605         compiled anymore.
26607 2007-11-26  Andreas Schwab  <schwab@suse.de>
26609         * process.c (list_processes_1): Fix indentation level of the
26610         command column.
26612 2007-11-23  Andreas Schwab  <schwab@suse.de>
26614         * editfns.c (Fformat): Handle %c specially since it requires the
26615         argument to be of type int.
26617 2007-11-23  Markus Triska  <markus.triska@gmx.at>
26619         * emacs.c (main): Call init_editfns before init_process, since
26620         init_process sets Vprocess_connection_type depending on OS release.
26622 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
26624         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
26625         (find_symbol_value): Use do_symval_forwarding.
26627         * data.c (set_internal): Set the value in the `cons-cell' (for
26628         Buffer_Local_values) not only for frame-local variables.
26630 2007-11-22  Andreas Schwab  <schwab@suse.de>
26632         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
26633         values to sprintf.
26634         * keymap.c (Fsingle_key_description): Likewise.
26635         * print.c (print_object): Likewise.
26637 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
26639         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
26640         file for image is nil.
26642 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
26644         * term.c: Include stdarg.h.
26645         (fatal): Implement using varargs.
26646         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
26648 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
26650         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
26651         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
26652         Update call to buffer_slot_type_mismatch.
26653         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
26654         (buffer_slot_type_mismatch): Update.
26655         * buffer.c (buffer_local_types): Remove.
26656         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
26657         (defvar_per_buffer): Set the type in the buffer_objfwd.
26659 2007-11-21  Jason Rumney  <jasonr@gnu.org>
26661         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
26662         CreateFileMapping returns NULL on failure.
26664 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
26666         * search.c (Fset_match_data): Remove the `evaporate' feature.
26667         (unwind_set_match_data): Don't use the `evaporate' feature.
26669 2007-11-21  Jason Rumney  <jasonr@gnu.org>
26671         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
26673         * w32console.c (w32con_write_glyphs): Remove unused variables.
26675 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
26677         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
26679         * s/darwin.h (MULTI_KBOARD): Remove.
26681         * macfns.c (x_create_tip_frame, Fx_create_frame)
26682         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
26684 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
26686         * buffer.c (Fbuffer_local_value): Remove redundant test.
26687         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
26688         than in `current-buffer' to match the comment.
26689         Do the swap using swap_in_global_binding.
26691         * data.c (store_symval_forwarding, set_internal):
26692         * eval.c (specbind): Remove dead code.
26694         * coding.c (detect_coding, Fupdate_coding_systems_internal):
26695         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
26696         Since we do not want to see internal Lisp_*fwd objects here.
26698 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
26700         * sysdep.c (init_system_name): Use getaddrinfo if available.
26702         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
26703         (x_scroll_bar_note_movement): start, end, with, height in struct
26704         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
26706 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
26708         * puresize.h (BASE_PURESIZE): Increase to 1190000.
26710 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
26712         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
26713         This undoes Richard's change of 14-Oct-2002.
26715         * alloc.c (allocate_other_vector):
26716         * lisp.h (allocate_other_vector): Remove.
26718         * window.c (struct save_window_data): Move non-lisp data to the end
26719         and make it `int' rather than Lisp_Object.
26720         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
26721         Done wrap/unwrap integer values.
26722         (Fset_window_configuration, compare_window_configurations):
26723         Update use of fields to their new types.
26725         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
26726         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
26727         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
26728         (SET_SCROLL_BAR_X_WINDOW): Remove.
26729         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
26730         Access the new x_window field directly.
26731         * xterm.c (x_scroll_bar_create): Use a pseudovector.
26732         Don't wrap/unwrap integers into Lisp_Objects.
26733         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
26734         (x_scroll_bar_report_motion):
26735         Don't wrap/unwrap integers into Lisp_Objects.
26736         (x_term_init): Use SDATA.
26737         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
26738         (x_scroll_bar_set_handle, x_scroll_bar_remove)
26739         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
26740         (x_scroll_bar_report_motion, x_scroll_bar_clear):
26741         * xfns.c (x_set_background_color):
26742         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
26743         Access the new x_window field directly.
26745         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
26746         (allocate_pseudovector): Make non-static.
26748         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
26749         (allocate_pseudovector): Declare.
26750         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
26752 2007-11-15  Andreas Schwab  <schwab@suse.de>
26754         * editfns.c (Fformat): Correctly format EMACS_INT values.
26755         Also take precision into account when formatting an integer.
26757         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
26759 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
26761         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
26762         (syms_of_keyboard): Defsubr it.
26764         * data.c (swap_in_global_binding): Fix longstanding bug where
26765         store_symval_forwarding was not called with the right second argument,
26766         thus causing objfwd-ing from being dropped.
26768 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
26770         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
26771         (Fx_display_pixel_height, Fx_display_planes)
26772         (Fx_display_color_cells, Fx_server_max_request_size)
26773         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26774         (Fx_display_visual_class, Fx_display_save_under):
26775         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
26776         (Fx_display_pixel_height, Fx_display_planes)
26777         (Fx_display_color_cells, Fx_server_max_request_size)
26778         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
26779         (Fx_display_mm_height, Fx_display_mm_width)
26780         (Fx_display_backing_store, Fx_display_visual_class)
26781         (Fw32_select_font, Fx_display_save_under):
26782         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
26783         (Fx_display_pixel_height, Fx_display_planes)
26784         (Fx_display_color_cells, Fx_server_max_request_size)
26785         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
26786         (Fx_display_save_under): Fix typos in docstrings.
26788 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
26790         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
26791         corresponding to deleted entries; they are an implementation detail.
26792         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
26793         Remove variables.
26794         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
26795         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
26796         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
26797         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
26798         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
26799         (Fw32_define_rgb_color, Fw32_load_color_file)
26800         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
26801         Fix typos in docstrings.
26802         (Fx_server_version): Reflow docstring.
26803         (Fw32_shell_execute): Doc fixes.
26805 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
26807         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
26808         if w32_parse_hot_key returned nil.
26810 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
26812         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
26814 2007-11-09  Jason Rumney  <jasonr@gnu.org>
26816         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
26818         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
26820         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
26821         Remove W32_SCROLL_BAR_CLICK_EVENT.
26823         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
26824         Add MULTIMEDIA_KEY_EVENT.
26826         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
26827         (lispy_multimedia_keys) [WINDOWSNT]: New array.
26828         (make_lispy_event) [WINDOWSNT]: Use it to translate
26829         MULTIMEDIA_KEY_EVENT.
26831         * w32term.h (WM_APPCOMMAND): Define if not already.
26832         (GET_APPCOMMAND_LPARAM): Likewise.
26834         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
26835         WM_APPCOMMAND.
26837         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
26838         (syms_of_w32fns): Export and initialize it.
26839         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
26841 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
26843         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
26844         twice.
26846         * xdisp.c (handle_face_prop): Fix last change.
26848 2007-11-09  Richard Stallman  <rms@gnu.org>
26850         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
26851         not just for after-strings and before-strings.
26852         Call face_for_overlay_string and pass the overlay to it.
26853         (handle_display_prop): Determine whether property came from an overlay.
26854         Pass OVERLAY arg to handle_single_display_spec.
26855         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
26856         (load_overlay_strings): Fill in it->string_overlays.
26857         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
26859         * xfaces.c (face_for_overlay_string): Function renamed from
26860         face_at_buffer_position_no_overlays, and add arg OVERLAY.
26862         * dispextern.h (struct it): New elt string_overlays.
26863         New elt from_overlay, also in stack.
26864         Rearrange a few elements.
26865         (face_for_overlay_string): Decl renamed from
26866         face_at_buffer_position_no_overlays, and add argument.
26868 2007-11-09  Richard Stallman  <rms@gnu.org>
26870         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
26871         to get the base face for an overlay string.
26873         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
26875         * xfaces.c (face_at_buffer_position_no_overlays): New function.
26877         * xdisp.c (handle_stop): Move some code out of loop.
26879 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26881         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
26882         Fix conversion from Lisp object to ATSUFontID.
26884 2007-11-09  Jason Rumney  <jasonr@gnu.org>
26886         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
26888 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
26890         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
26891         Don't assume regions are aligned to page boundary.
26892         (print_load_command_name): Add LC_UUID if defined.
26894 2007-11-09  Richard Stallman  <rms@gnu.org>
26896         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
26898 2007-11-07  Jason Rumney  <jasonr@gnu.org>
26900         * s/windows95.h: Remove.
26902 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
26904         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
26905         abort with a message on unhandled store_type values.
26907 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
26909         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
26910         Remove HAVE_X11R5 and HAVE_X11R4.
26912 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
26914         * Makefile.in: Remove references to sunfns.c and sunfns.o.
26916 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
26918         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
26919         Don't set s->stippled_p here, since it has already been set by
26920         x_set_glyph_string_gc from x_draw_glyph_string.
26922 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
26924         * sunfns.c: Remove file.
26926         * m/sun386.h:
26927         * m/sun2.h:
26928         * m/sparc.h: Remove Sun windows code.
26930 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
26932         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
26933         (init_keyboard): Set current_kboard's window-system to nil.
26934         (tty_read_avail_input): Typo.
26935         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
26937 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
26939         * s/usg5-4.h:
26940         * s/usg5-3.h:
26941         * s/ptx.h:
26942         * m/is386.h:
26943         * m/ibmps2-aix.h:
26944         * Makefile.in: Remove all mentions of X10.
26946         * dispnew.c (syms_of_display): Don't mention version 10.
26948 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
26950         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
26951         ($(BLD)/abbrev.$(O)): Remove.
26953 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
26955         Rewrite abbrev.c in Elisp.
26956         * image.c (Qcount): Don't declare as extern.
26957         (syms_of_image): Initialize and staticpro `Qcount'.
26958         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
26959         * emacs.c (main): Don't call syms_of_abbrev.
26960         * Makefile.in (obj): Remove abbrev.o.
26961         (abbrev.o): Remove.
26962         * abbrev.c: Remove.
26964 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
26966         * window.c (window_min_size_2): Don't count header-line.
26968 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
26970         * frame.h (struct frame): Move all bit fields after the first bit
26971         field to take advantage of the available space.  Group all the
26972         chars together to reduce wasted space due to padding.
26974 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
26976         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
26978         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
26979         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
26980         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
26981         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
26982         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
26983         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
26984         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
26985         (last_marked, mark_object_loop_halt): Make static.
26987         * frame.c (syms_of_frame) <delete-frame-functions>:
26988         Fix typo in docstring.
26990 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
26992         * w32.c (init_environment): Fix tiny memory leak.
26993         (w32_get_resource): Remove unused variable `ok'.
26995 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
26997         Make `window-system' into a keyboard-local variable (rather than
26998         frame-local as done originally by multi-tty).
27000         * keyboard.h (struct kboard): Add Vwindow_system.
27001         * keyboard.c (init_kboard): Set a default for Vwindow_system.
27002         (mark_kboards): Mark Vwindow_system.
27004         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
27005         (init_display): Don't set the obsolete `window-system' frame-param.
27007         * xterm.c (x_term_init):
27008         * w32term.c (w32_create_terminal):
27009         * term.c (init_tty): Set Vwindow_system.
27010         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
27011         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
27013         * xfns.c (Fx_create_frame, x_create_tip_frame):
27014         * w32fns.c (Fx_create_frame, x_create_tip_frame):
27015         * macfns.c (Fx_create_frame):
27016         Don't set the obsolete `window-system' frame-param.
27018         * frame.h (Qwindow_system): Remove.
27019         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
27020         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
27022 2007-10-24  Richard Stallman  <rms@gnu.org>
27024         * frame.c (x_figure_window_size): For fullscreen case,
27025         set USPosition | PPosition without clobbering rest of window_prompting.
27027         * keyboard.c (Fcurrent_idle_time): Doc fix.
27029         * print.c (Fwith_output_to_temp_buffer): Doc fix.
27031 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
27033         * process.c (unwind_request_sigio): Only define if __ultrix__.
27035         * callproc.c (child_setup): Remove spurious *.
27037         * lisp.h (Fget_text_property): Declare.
27038         (have_menus_p): Declare it here rather than in sys-dep header files.
27039         * macterm.h (have_menus_p):
27040         * msdos.h (have_menus_p):
27041         * xterm.h (have_menus_p): Remove.
27043         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
27044         (Fmake_variable_frame_local): Just check the variable's const-ness
27045         rather than checking nil or t.
27047 2007-10-22  Jason Rumney  <jasonr@gnu.org>
27049         * w32fns.c: Include math.h.
27050         (w32_abort): Declaration moved to nt/config.nt.
27052         * s/ms-w32.h (HAVE_STDLIB_H): Define.
27053         (abort): Redefinition moved to nt/config.nt.
27055         * m/windowsnt.h: Remove.
27057 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
27059         * emacs.c (Fdump_emacs): Fix typo in message.
27060         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
27061         <installation-directory>: Reflow docstring.
27063 2007-10-22  Juri Linkov  <juri@jurta.org>
27065         * minibuf.c: Allow minibuffer default to be a list of default values.
27066         With empty input use the first element of this list as returned default.
27067         (string_to_object)
27068         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
27069         (read_minibuf): If defalt is cons, set histstring to its car.
27070         (Fread_string): If default_value is cons, set val to its car.
27071         (Fread_buffer): If def is cons, use its car.
27072         (Fcompleting_read): If defalt is cons, set val to its car.
27074 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
27076         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
27078 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
27080         * doc.c (Fdocumentation): Check for advice in all cases.
27082 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
27084         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
27086 2007-10-19  Richard Stallman  <rms@gnu.org>
27088         * doc.c (Fdocumentation): Check for and handle an advised function.
27090 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
27092         * process.c (Fset_process_filter): Doc fix.
27094 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
27096         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
27097         which caused key-translation-map to applied repeatedly (thus breaking
27098         double-mode).
27100 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
27102         * xselect.c (x_own_selection, x_handle_selection_clear)
27103         (x_clear_frame_selections):
27104         * w32menu.c (list_of_panes, list_of_items):
27105         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
27106         * textprop.c (validate_plist, interval_has_all_properties)
27107         (interval_has_some_properties, interval_has_some_properties_list)
27108         (add_properties, text_property_list):
27109         * process.c (Fget_buffer_process, list_processes_1, status_notify):
27110         * minibuf.c (Fassoc_string):
27111         * macselect.c (x_own_selection, x_clear_frame_selections)
27112         (Fx_disown_selection_internal):
27113         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
27114         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
27116 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
27118         * process.c: Link to libs for calling res_init() if available.
27119         (Fmake_network_process): Call res_init() before getaddrinfo or
27120         gethostbyname, if possible.
27122 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
27124         * lread.c (read1): Set pvectype for char_tables.
27126         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
27127         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
27128         Add type checks.
27129         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
27131         * alloc.c (free_misc): Use XMISCTYPE.
27132         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
27134 2007-10-17  Glenn Morris  <rgm@gnu.org>
27136         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
27137         (syms_of_minibuf): Add Qcompletion_ignore_case.
27138         * dired.c (Qcompletion_ignore_case): Change to external.
27139         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
27140         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
27141         (Fread_file_name): Use it rather than intern'ing.
27143         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
27144         (Fread_coding_system): Ignore case of user input.
27146 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27148         * xdisp.c (handle_display_prop): Ignore display specs after
27149         replacing one when string text is being replaced.
27150         (handle_single_display_spec): Pretend as if characters with display
27151         property haven't been consumed only when buffer text is being replaced.
27153 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
27155         * xfns.c (Fx_create_frame, Fx_display_list):
27156         * window.c (window_fixed_size_p, enlarge_window)
27157         (shrink_window_lowest_first):
27158         * macterm.c (init_font_name_table):
27159         * macfns.c (Fx_create_frame, Fx_display_list):
27160         * lread.c (close_load_descs):
27161         * keyboard.c (read_char_x_menu_prompt):
27162         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
27163         * coding.c (code_convert_region_unwind): Test the type of an object
27164         rather than just !NILP before extracting data from it.
27166         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
27168         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
27169         (XMISCANY): New macro.
27170         (XMISCTYPE): Use it.
27171         (struct Lisp_Misc_Any): New type.
27172         (union Lisp_Misc): Use it.
27173         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
27174         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
27175         (find_symbol_value, set_internal, default_value, Fset_default)
27176         (Fmake_variable_buffer_local, Fmake_local_variable)
27177         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
27178         (Flocal_variable_if_set_p, Fvariable_binding_locus):
27179         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
27180         * alloc.c (allocate_buffer): Set the size and tag.
27181         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
27182         Use XMISCANY.
27183         (die): Follow the GNU convention for error messages.
27184         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
27185         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
27186         tag any more.
27187         (set_buffer_internal_1):
27188         * frame.c (store_frame_param):
27189         * eval.c (specbind):
27190         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
27192         * doc.c (Fsnarf_documentation): Simplify.
27194 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
27196         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
27197         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
27199 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
27201         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
27203 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
27205         * eval.c (do_autoload): Don't save autoloads.
27207         * data.c (Ffset): Save autoload of the function being set.
27209 2007-10-07  John Paul Wallington  <jpw@pobox.com>
27211         * xfns.c (x_create_tip_frame): Set the `display-type' frame
27212         parameter before setting up faces.
27214 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
27216         * ccl.c (Fregister_code_conversion_map):
27217         * keyboard.c (append_tool_bar_item): Reformat last change.
27219         * lisp.h (eabs): Rename from `abs'.  All callers changed.
27221 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
27223         * buffer.c (add_overlay_mod_hooklist):
27224         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
27225         * fontset.c (make_fontset):
27226         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
27227         (append_tool_bar_item):
27228         * macmenu.c (grow_menu_items):
27229         * w32menu.c (grow_menu_items):
27230         * xmenu.c (grow_menu_items): Use larger_vector.
27232 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
27234         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
27235         selected frame'' on MSDOS).
27237 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
27239         * frame.c (Qexplicit_name): New variable.
27240         (x_report_frame_params): Report it in parameter alist.
27241         (syms_of_frame): Intern and staticpro it.
27243 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
27245         * macfns.c (x_create_tip_frame): Set terminal for frame.
27247 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
27249         * frame.c (Qenvironment): Remove.
27250         (syms_of_frame) <Qenvironment>: Don't initialize.
27251         (Fdelete_frame): Don't treat the `environment' param specially.
27252         * frame.h (Qenvironment): Don't declare.
27253         * callproc.c (set_initial_environment): Don't set unused frame param.
27255         * frame.c (Fframe_with_environment): Remove.
27256         (syms_of_frame) <Sframe_with_environment>: Don't declare.
27258         * lisp.h (Fframe_with_environment): Don't declare.
27260 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
27262         * indent.c (indent_tabs_mode, last_known_column)
27263         (last_known_column_modified): Make static.
27264         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
27266 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
27268         * puresize.h (BASE_PURESIZE): Increase to 1170000.
27270 2007-10-09  Jason Rumney  <jasonr@gnu.org>
27272         * w32term.c (x_set_window_size): Disable code that attempts to tell
27273         Lisp code about a size change before it actually happens.
27275 2007-10-09  Richard Stallman  <rms@gnu.org>
27277         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
27278         return HANDLED_RETURN.
27280 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
27282         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
27283         when there's an unread command event.
27285         * frame.c (focus_follows_mouse): Move here from frame.el to allow
27286         window autoselection act appropriately when leaving selected frame.
27287         (syms_of_frame): Initialize focus_follows_mouse.
27288         * frame.h (focus_follows_mouse): Extern it.
27289         * macterm.c (XTread_socket): When focus_follows_mouse is nil
27290         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
27291         * msdos.c (dos_rawgetc): Likewise.
27292         * w32term.c (w32_read_socket): Likewise.
27293         * xterm.c (handle_one_xevent): Likewise.
27294         * xdisp.c (syms_of_xdisp): In doc-string of
27295         mouse-autoselect-window mention focus-follows-mouse.
27297 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
27299         * macterm.c (mac_load_query_font): Fix missing return value.
27300         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
27301         Add BLOCK_INPUT.
27303 2007-10-08  Richard Stallman  <rms@gnu.org>
27305         * xdisp.c (get_window_cursor_type): Implement documented behavior
27306         for cursor-in-non-selected-windows = t.
27308 2007-10-08  Jason Rumney  <jasonr@gnu.org>
27310         * w32.c (w32_get_resource): Always close registry keys.
27312 2007-10-08  Jason Rumney  <jasonr@gnu.org>
27314         * makefile.w32-in (LIBS): Add COMCTL32.
27316         * w32fns.c (globals_of_w32fns): Init common controls.
27318 2007-10-08  Richard Stallman  <rms@gnu.org>
27320         * image.c (our_memory_buffer): Rename from omfib_buffer.
27322 2007-10-08  Richard Stallman  <rms@gnu.org>
27324         * buffer.c (Foverlays_at): Doc fix.
27326 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
27328         * fns.c (Fplist_put): Preserve uneven tail data.
27330 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
27332         * termhooks.h (enum event_kind): Remove trailing comma.
27334         * frame.h (enum): Remove trailing comma.
27336 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
27338         * w32proc.c (delete_child): Don't terminate threads of zombies.
27340 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
27342         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
27344         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
27345         last-repeatable-command.
27346         (init_kboard): Initialize Vlast_repeatable_command.
27347         (command_loop_1): Set it to real_this_command unless that was
27348         bound to an input event.
27349         (mark_kboards): Mark it.
27351 2007-10-08  Richard Stallman  <rms@gnu.org>
27353         * eval.c (condition-case): Doc fix.
27355 2007-10-08  Masatake YAMATO  <jet@gyve.org>
27357         * xfaces.c (tty_supports_face_attributes_p): Fix code
27358         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
27359         was copied and not edited.
27361 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
27363         Add new `input-decode-map' keymap and use it for terminal
27364         escape sequences.
27365         * keyboard.h (struct kboard): Add Vinput_decode_map.
27366         Remove Vlocal_key_translation_map.
27367         * keyboard.c (read_key_sequence): Add support for input-decode-map.
27368         (init_kboard): Init input-decode-map.
27369         Replace local-key-translation-map back with key-translation-map.
27370         (syms_of_keyboard): Declare input-decode-map.
27371         Remove local-key-translation-map.  Update docstrings.
27372         (mark_kboards): Mark Vinput_decode_map.
27373         Don't mark Vlocal_key_translation_map.
27374         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
27375         Replace local-key-translation-map back with key-translation-map.
27376         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
27377         Bind in input-decode-map rather than function-key-map.
27379         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
27380         This was made redundant by the previous introduction of XSETPVECTYPE.
27382 2007-10-09  Richard Stallman  <rms@gnu.org>
27384         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
27386 2007-09-29  Richard Stallman  <rms@gnu.org>
27388         * eval.c (internal_condition_case_2, internal_condition_case_1)
27389         (internal_condition_case): Reenable abort if x_catching_errors ()
27390         to see if that really happens and why.
27392 2007-10-06  Andreas Schwab  <schwab@suse.de>
27394         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
27396 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
27398         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
27400 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
27402         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
27404 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
27406         * window.h (struct window):
27407         * window.c (struct save_window_data, struct saved_window):
27408         * termhooks.h (struct terminal):
27409         * process.h (struct Lisp_Process):
27410         * frame.h (struct frame):
27411         * buffer.h (struct buffer):
27412         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
27413         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
27414         The size field of (pseudo)vectors is now unsigned.
27415         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
27417         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
27418         Turn `count' into an integer.
27420         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
27421         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
27422         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
27423         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
27424         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
27426         * alloc.c (allocate_pseudovector): New fun.
27427         (ALLOCATE_PSEUDOVECTOR): New macro.
27428         (allocate_window, allocate_terminal, allocate_frame)
27429         (allocate_process): Use it.
27430         (mark_vectorlike): New function.
27431         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
27432         (mark_terminals): Use it.
27433         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
27434         (Fmake_byte_code): Use XSETPVECTYPE.
27436         * frame.c (Fframe_parameters): Minor simplification.
27438         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
27440         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
27442         * buffer.c (Fget_buffer_create, init_buffer_once):
27443         * lread.c (defsubr):
27444         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
27446         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
27447         defined differently in the m/*.h files.
27448         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
27449         (XSETPVECTYPE): New macro.
27450         (XSETPSEUDOVECTOR): Use it.
27452         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
27453         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
27455         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
27456         * lread.c (defvar_per_buffer):
27457         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
27459         * window.c (candidate_window_p): Only consider as visible frames that
27460         are on the same terminal.
27462         * m/ibms390x.h (MARKBIT): Remove unused macro.
27464 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
27466         * lread.c (Fload): Fix typo in docstring.
27468 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
27470         * floatfns.c (Fexpt): Manually check for overflows, so that a power
27471         of a non-zero value can't yield zero.
27473 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
27475         * term.c (term_clear_mouse_face, term_mouse_highlight)
27476         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
27478         * print.c (safe_debug_print): Use XHASH.
27480         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
27481         Lisp elements such as tags.
27482         (XHASH): New macro.
27483         (EQ): Use it.
27484         (SREF, SSET, STRING_COPYIN): Use SDATA.
27485         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
27487         * alloc.c (mark_terminal): Remove left-over declaration.
27488         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
27489         (allocate_vectorlike): Remove type argument.  Adjust callers.
27490         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
27491         Only handle the one remaining MEM_TYPE_VECTORLIKE.
27493         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
27494         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
27495         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
27496         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
27497         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
27498         Use them.
27500         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
27501         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
27502         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
27504 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
27506         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
27507         loaded by default.
27509 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
27511         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
27512         on this tty.
27513         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
27515         * term.c (mouse_face_window): Rename from Qmouse_face_window.
27516         Update all users.
27517         (handle_one_term_event): Use Gpm_DrawPointer.
27518         (Fgpm_mouse_start): Rename from Fterm_open_connection.
27519         Signal errors instead of returning nil.  Always return nil.
27520         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
27521         Make it a noop if gpm-mouse was not activated.
27522         (syms_of_term): Update names.
27524 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
27526         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
27527         (init_sys_modes): Check that gpm_tty is the current tty.
27529         * alloc.c (allocate_terminal): Set the vector size to only count the
27530         lisp fields.  Initialize those to nil.
27531         (mark_object): Don't treat terminals specially.
27532         (mark_terminal): Remove.
27533         (mark_terminals): Use mark_object instead.
27535         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
27536         the GC to the beginning.
27538         * indent.h:
27539         * indent.c: Use EMACS_INT for ints coming from Elisp data.
27541         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
27543 2007-09-25  Jason Rumney  <jasonr@gnu.org>
27545         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
27547         * w32console.c (create_w32cons_output): Remove.
27549         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
27551         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
27552         (reset_sys_modes): Use reset_terminal_modes_hook.
27554 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
27556         * eval.c (do_autoload): Don't output any message.
27558 2007-09-24  Juri Linkov  <juri@jurta.org>
27560         * emacs.c (standard_args): Change priority of "--no-splash"
27561         from 40 to 3.  Add "--no-desktop" with the same priority.
27563 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
27565         * alloc.c (gc_sweep): Check cons cell mark bits word by word
27566         and optimize the case where they are all 1.
27568 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
27570         * lisp.h (abs): Define if not defined.
27571         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
27572         Don't define `abs', since it's defined in lisp.h.
27574 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
27576         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
27577         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
27578         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
27579         (init_tty): Use DEV_TTY instead of "/dev/tty".
27580         [WINDOWSNT]: No need to protect from NAME arg being null.
27582 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
27584         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
27585         up the tty state.
27587 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
27589         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
27590         (gpm_tty): Change its type.
27591         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
27592         (gpm_tty): Change its type and initialize it.
27593         (Fterm_open_connection): Check the frame is indeed a tty.
27594         Use the new gpm_tty.
27595         (Fterm_close_connection): Use the new gpm_tty.
27596         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
27597         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
27599 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
27601         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
27602         underline_color, to draw strike-through.
27604 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
27606         * lisp.h (allocate_terminal): Declare.
27608         * window.c (candidate_window_p): Consider frames that are being placed
27609         by the user as somewhere between visible and iconified.
27610         (window_loop): Prefer windows on the current frame.
27611         (Fselect_window): Move the use of select-frame to the beginning so we
27612         can just delegate all the work (it'll call us back anyway).
27614         * frame.c (Qdisplay_environment_variable):
27615         * frame.h (Qdisplay_environment_variable): Delete.
27617         * .gdbinit (xbacktrace): Print the arg's address rather than the value
27618         of the first arg, since that value may be a union.
27620         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
27621         parameter rather than Qdisplay_environment_variable.  If all else
27622         fails, look for DISPLAY in initial-environment.
27624 2007-09-21  Glenn Morris  <rgm@gnu.org>
27626         * Makefile.in (emacstool): Remove target.
27627         (lisp, shortlisp): Remove termdev.elc.
27629 2007-09-21  Markus Triska  <markus.triska@gmx.at>
27631         * xterm.c (x_delete_display): Compile session management conditionally.
27633 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
27635         * callproc.c (getenv_internal_1): New function.
27636         (getenv_internal): Use it.
27637         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
27639         * terminal.c (get_terminal): Don't accept ints to represent terminals.
27640         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
27641         (Fset_terminal_parameter): Work with dead terminals as well.
27642         (Fmodify_terminal_parameters): Remove.
27644         * terminal.c (get_terminal): Handle terminals.
27645         Make sure the terminal returned is live.
27646         (create_terminal): Use allocate_terminal.
27647         (mark_terminals): Move to alloc.c.
27648         (delete_terminal): Use terminal->name as liveness status.
27649         NULL out fields after freeing their contents.
27650         Don't deallocate the object.
27651         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
27652         rather than an int.
27653         (Fterminal_live_p): Accept non-integer arguments.
27654         (Fterminal_list): Return terminal objects rather than an ints.
27656         * alloc.c (enum mem_type): New member for `terminal' objects.
27657         (allocate_terminal): New function.
27658         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
27659         Handle terminals.
27660         (mark_terminal): New fun.
27661         (mark_terminals): Move from terminal.c.
27663         * term.c (get_tty_terminal): Don't treat output_initial specially.
27664         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
27665         (delete_tty): Use terminal->name as liveness status.
27667         * termhooks.h (struct terminal): Make it into a pseudovector.
27668         Remove `deleted' replaced by checking `name's nullness.
27670         * print.c (print_object): Handle terminals.
27672         * lisp.h (enum pvec_type): New `terminal' pseudovector.
27673         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
27675         * frame.c (make_terminal_frame):
27676         * keyboard.c (tty_read_avail_input):
27677         * w32term.c (x_delete_terminal):
27678         * xfns.c (Fx_create_frame, x_create_tip_frame):
27679         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
27681 2007-09-20  Glenn Morris  <rgm@gnu.org>
27683         * process.c (Fmake_network_process): Doc fix.
27685 2007-09-19  Jason Rumney  <jasonr@gnu.org>
27687         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
27689 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
27691         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
27692         Fix a C warning regarding variable constness.
27694         * xterm.c (handle_one_xevent): Fix a C warning.
27696 2007-09-18  Jason Rumney  <jasonr@gnu.org>
27698         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
27700 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
27702         * gtkutil.c (gdpy_def): New variable.
27703         (xg_initialize): Initialize gdpy_def.
27704         (xg_display_close): If no other display exists, set gdpy_def to a
27705         new connection.
27707 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
27709         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
27710         when we have no file name for the icon.
27711         (xg_tool_bar_expose_callback): Remove.
27712         (xg_create_tool_bar): Don't connect expose signal to
27713         xg_tool_bar_expose_callback.
27714         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
27716 2007-09-16  Andreas Schwab  <schwab@suse.de>
27718         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
27719         values instead of zapping them.
27721 2007-09-14  Glenn Morris  <rgm@gnu.org>
27723         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
27724         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
27725         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
27726         scope and rename to omfib_buffer for clarity.
27727         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
27729 2007-09-14  Kenichi Handa  <handa@m17n.org>
27731         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
27733 2007-09-13  Jason Rumney  <jasonr@gnu.org>
27735         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
27737         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
27739         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
27740         (mac_term_init): Call here instead, passing rif.
27742 2007-09-13  Glenn Morris  <rgm@gnu.org>
27744         * s/hpux.h: No longer define `static' as nothing.
27746 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
27748         * callint.c (Fcall_interactively): Remove unused var `fun'.
27750 2007-09-12  Romain Francoise  <romain@orebokech.com>
27752         * window.c (prefer_window_split_horizontally, display_buffer):
27753         Revert 2007-09-08 change.
27755 2007-09-12  Glenn Morris  <rgm@gnu.org>
27757         * alloca.c: Remove file.
27758         * Makefile.in (alloca): Do not undef.
27759         (allocaobj, alloca.o): Remove.
27760         (otherobj): Remove allocaobj.
27761         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
27762         * regex.c (C_ALLOCA): Remove all references and code that was only
27763         used when this was defined.
27764         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
27765         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
27766         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
27768         * Makefile.in (SOURCES, unlock, relock): Delete.
27770         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
27771         (menu_grab_callback): All uses changed.
27773         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
27774         (x_reply_selection_request): All uses changed.
27776 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
27778         * lread.c (load_warn_old_style_backquotes): Change message to look
27779         better when it appears in the middle of byte-compiler messages.
27781 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
27783         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
27785         * xterm.c (x_create_terminal): Add comment.
27787         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
27789 2007-09-10  Richard Stallman  <rms@gnu.org>
27791         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
27793 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
27795         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
27796         (DEFUN): Document `intspec', use it instead of `prompt'.
27798         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
27800         * data.c (Finteractive_form): If the interactive specification starts
27801         with a `(', use it as a Lisp form.
27803         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
27804         name and file modes.
27806         * callint.c (Fcall_interactively): Comment fixes.
27808 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
27810         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
27811         and compiled functions.
27813 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
27815         * window.c (prefer_window_split_horizontally): New variable.
27816         (display_buffer): Consider splitting window horizontally depending
27817         on prefer_window_split_horizontally.
27819 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
27821         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
27823 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
27825         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
27827         * frame.c (x_set_frame_parameters): Check number is positive before
27828         using XFASTINT.
27830         * window.c (freeze_window_start): Don't presume selected_window holds
27831         a window object.
27832         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
27834 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
27836         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
27838 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
27840         * window.c (Vsplit_window_preferred_function): New var.
27841         (Fdisplay_buffer): Use it.
27842         (syms_of_window): Export, and initialize it.
27844 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
27846         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
27848 2007-09-06  Glenn Morris  <rgm@gnu.org>
27850         * gtkutil.c (menu_grab_callback) <cnt>:
27851         * xselect.c (x_reply_selection_request) <cnt>: Move static
27852         variable to file scope.
27854 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
27856         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
27857         consistent values of selected_frame and selected_window.
27859 2007-09-04  Jason Rumney  <jasonr@gnu.org>
27861         * w32console.c (initialize_w32_display): Zero unused hooks.
27863 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
27865         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
27866         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
27868 2007-09-04  Jason Rumney  <jasonr@gnu.org>
27870         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
27871         in w32console.c.  Set up input.  Remove XXX comments that have been
27872         confirmed as correct.
27874         * s/ms-w32.h (MULTI_KBOARD): Define.
27876         * w32console.c (one_and_only_w32cons): Remove.
27877         (initialize_w32_display): Take terminal argument.
27879         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
27880         initialize_w32_display.
27881         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
27883         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
27885         * keyboard.c (discard_mouse_events): Discard it.
27886         (make_lispy_event): Translate it to a lisp event.
27887         (lispy_wheel_names): Add wheel-left and right events.
27888         (syms_of_keyboard): Enlarge wheel_syms.
27890         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
27891         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
27893         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
27895         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
27896         from WM_MOUSEHWHEEL.
27897         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
27899         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
27900         terminal.
27902         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
27903         keyboard for the terminal.
27905 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
27907         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
27908         (Vresume_tty_hook): Rename from Vresume_tty_functions.
27909         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
27910         and resume-tty-function to resume-tty-hook.
27911         (Fsuspend_tty, Fresume_tty): Use new names.
27913 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
27915         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
27916         if it starts with "n:".
27918 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
27920         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
27922 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
27924         * frame.h:
27925         * frame.c (Qterm_environment_variable): Remove.
27926         (syms_of_frame): Don't init and staticpro it.
27928         * callproc.c (getenv_internal): Remove special case for $TERM.
27930         * callproc.c (Vinitial_environment): New variable.
27931         (set_initial_environment): Initialize it.
27932         (syms_of_callproc): Declare it.
27933         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
27934         TERM under which a process runs is never related to the TERM in which
27935         Emacs is running.
27937 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
27939         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
27940         * s/darwin.h: ... do it here.
27942 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
27944         * lisp.h (set_initial_environment): Rename from set_global_environment.
27946         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
27947         removed by mistake on the multi-tty branch.
27949         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
27950         (Fmodify_frame_parameters): Return a value.
27952         * image.c (png_load): Comment-out var only used in commented-out code.
27954         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
27955         before passing it to mark_object.
27957         * xfaces.c (internal_resolve_face_name): Return a value.
27958         (internal_resolve_face_name, resolve_face_name_error): Comment out.
27960         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
27961         (x_icon): Comment-out var only used in commented-out code.
27963 2007-08-29  Romain Francoise  <romain@orebokech.com>
27965         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
27966         QUIT hasn't been provided.
27968 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
27970         * callproc.c (child_setup, getenv_internal): Use the
27971         display-environment-variable and term-environment-variable frame params.
27972         (set_initial_environment): Initialise Vprocess_environment.
27974         * config.in: Disable multi-keyboard support on a mac.
27976         * frame.c (Qterm_environment_variable)
27977         (Qdisplay_environment_variable): New variables.
27978         (syms_of_frame): Intern and staticpro them.
27979         (Fmake_terminal_frame): Disable output method test.
27981         * frame.h: Declare them here.
27983         * macfns.c (x_set_mouse_color): Get rif from the frame.
27984         (x_set_tool_bar_lines): Don't use updating_frame.
27985         (mac_window): Add 2 new parameters for consistency with other systems.
27986         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
27987         frame parameters following what is done in X11 and w32.  Don't use
27988         FRAME_MAC_DISPLAY_INFO.
27989         (Fx_open_connection, start_hourglass): Remove window-system check.
27990         (x_create_tip_frame): Get the keyboard from the terminal.
27992         * macmenu.c: Reorder includes.
27993         (Fx_popup_menu): Use terminal specific mouse_position_hook.
27995         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
27996         terminal parameter.
27997         (x_clear_frame): Add a frame parameter.
27998         (note_mouse_movement): Get rif from the frame.
27999         (mac_term_init): Initialize the terminal.
28000         (mac_initialize): Make static and move terminal initialization ...
28001         (mac_create_terminal): ... to this new function.
28003         * macterm.h (struct mac_display_info): Add terminal.
28004         (mac_initialize): Delete declaration.
28006         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
28008         * sysdep.c: Comment out text after #endif.
28010         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
28011         is defined.  Better initialize ttys in windows.  Use terminal
28012         specific mouse_position_hook.
28014         * termhooks.h (union display_info): Add mac_display_info.
28016         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
28017         Set the default minibuffer frame, window_system and the rest of the
28018         frame parameters following what is done in X11.
28020         * w32term.c (w32_initialize): Make static.
28022         * xselect.c (x_handle_selection_clear): Only access
28023         terminal->kboard when MULTI_KBOARD is defined.
28025         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
28026         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
28028 2007-08-29  Jason Rumney  <jasonr@gnu.org>
28030         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
28031         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
28033         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
28034         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
28036         * keyboard.c (restore_kboard_configuration): Only define when
28037         MULTI_KBOARD defined.
28039         * makefile.w32-in: Update dependancies from Makefile.in.
28040         (OBJ1): Add terminal.$(O)
28042         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
28043         Don't define function body.
28044         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
28046         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
28048         * w32.c (request_sigio, unrequest_sigio): Remove.
28050         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
28051         (w32con_clear_frame, w32con_clear_end_of_line)
28052         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
28053         (w32con_delete_glyphs, w32con_set_terminal_window)
28054         (scroll_line, w32_sys_ring_bell): Add frame arg.
28055         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
28056         Add terminal arg.
28057         (PICK_FRAME): Remove.
28058         (w32con_write_glyphs): Use frame specific terminal coding.
28059         (one_and_only_w32cons): New global variable.
28060         (initialize_w32_display): Use it for storing hooks.
28061         (create_w32cons_output): New function.
28063         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
28064         arg a frame.
28066         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
28067         Set window_system.
28068         (x_set_tool_bar_lines): Don't use updating_frame.
28069         (Fx_create_frame): Set terminal and ref count.
28070         (Fx_open_connection): Remove window-system check.
28072         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
28074         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
28075         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
28076         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
28077         Add frame arg.
28078         (x_delete_terminal, w32_create_terminal): New functions.
28079         (w32_term_init): Create a terminal.
28080         (w32_initialize): Move terminal specific initialization to
28081         w32_create_terminal.
28083         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
28084         (w32_clear_rect, w32_clear_area): Use background from frame.
28085         (w32_display_info): Add terminal.
28086         (w32_sys_ring_bell, x_delete_display): Declare here.
28088         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
28090         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
28092 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
28094         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
28095         Fix get_named_tty calls for the controlling tty.
28097 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
28099         * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
28101 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
28103         * term.c (tty_insert_glyphs): Add missing first parameter.
28105 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
28107         * buffer.c (Fbuffer_list, Fbury_buffer):
28108         Take frame->buried_buffer_list into account.
28110         * cm.c (current_tty): New variable, for cmputc().
28111         (cmputc): Use it.
28112         (cmcheckmagic): Add tty parameter, look up terminal streams there.
28113         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
28114         (cmgoto): Add tty parameter.  Pass it on to calccost().
28115         Use emacs_tputs() instead of tputs().
28117         * cm.h (emacs_tputs): New macro to set current_tty, and then call
28118         tputs().
28119         (current_tty): New variable, for cmputc().
28120         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
28122         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
28123         (internal_condition_case, internal_condition_case_1)
28124         (internal_condition_case_2): Don't abort when x_catching_errors.
28126         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
28127         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
28128         prevent crashes caused by bogus longjmps in read_char.
28130         * keymap.h (Fset_keymap_parent): Add EXFUN.
28132         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
28133         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28134         Remove redundant definition.
28136         * macfns.c (x_set_mouse_color, x_make_gc):
28137         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28139         * w32term.c (x_free_frame_resources):
28140         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28141         (w32_initialize): Use the accessor macros for terminal characteristics.
28143         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
28144         Use the accessor macros for terminal characteristics.
28145         * msdos.c (internal_terminal_init): Use the accessor macros for
28146         terminal characteristics.
28147         (ScreenVisualBell, internal_terminal_init):
28148         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28150         * termopts.h (no_redraw_on_reenter): Declare.
28152         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
28153         (mark_terminals, mark_ttys): Declare.
28154         (Fgarbage_collect): Call them.
28155         (mark_object): Mark buried_buffer_list.
28157         * prefix-args.c: Include stdlib.h for exit.
28159         * syssignal.h: Add comment.
28161         * indent.c: Include stdio.h.
28163         * window.h (Vinitial_window_system): Declare.
28164         (Vwindow_system): Delete declaration.
28166         * fontset.c (Finternal_char_font): Use FRAME_RIF.
28168         * image.c (lookup_image): Don't initialize `c' until the xasserts
28169         have been run.
28171         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
28172         FRAME_FOREGROUND_PIXEL.
28174         * print.c (print_preprocess): Don't lose print_depth levels while
28175         iterating.
28177         * widget.c (update_from_various_frame_slots):
28178         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28180         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
28181         frames.
28182         (window_internal_height): Remove bogus make_number call.
28183         (init_window_once): Call make_terminal_frame with two zero parameters.
28185         * fileio.c (Fread_file_name): Update comment.
28187         * callint.c (Fcall_interactively):
28188         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
28189         Make sure it is correctly unwound.
28191         * xsmfns.c (x_session_close): New function.
28193         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
28194         Delete declarations.
28196         * xterm.h: Remove declaration for x_fully_uncatch_errors.
28197         (x_output): Remove background_pixel and foreground_pixel fields.
28198         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
28199         (x_delete_device, x_session_close): Declare.
28201         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
28202         (read_filtered_event): Call `read_char' with a local
28203         `wrong_kboard_jmpbuf'.
28205         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
28206         Don't call single_kboard_state.  Use FRAME_RIF.
28208         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
28209         systems.
28211         * lisp.h (set_process_environment): Rename to `set_global_environment'.
28212         (Fframe_with_environment, Fset_input_meta_mode)
28213         (Fset_quit_char): EXFUN.
28214         (x_create_device, tty_output, terminal, tty_display_info): Declare.
28215         (init_sys_modes, reset_sys_modes): Update prototypes.
28216         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
28218         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
28219         Vlocal_key_translation_map, and Vkeyboard_translate_table.
28220         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
28221         Delete declarations.
28222         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
28223         (temporarily_switch_to_single_kboard, tty_read_avail_input):
28224         New declarations.
28226         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
28227         already does that during init_display().  Call syms_of_keymap
28228         before syms_of_keyboard.  Call `syms_of_terminal'.
28229         Call set_initial_environment, not set_process_environment.
28230         (shut_down_emacs): Call reset_all_sys_modes() instead of
28231         reset_sys_modes().
28233         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
28234         (internal_resolve_face_name, resolve_face_name_error): New functions.
28235         (resolve_face_name): Protect against loops and errors thrown by Fget.
28236         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
28237         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
28239         * scroll.c: Replace CURTTY() with local variables throughout the
28240         file (where applicable).
28241         (calculate_scrolling, calculate_direct_scrolling)
28242         (scrolling_1, scroll_cost): Use the accessor macros for terminal
28243         characteristics.
28245         * keymap.c (Vfunction_key_map): Remove.
28246         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
28247         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
28248         (Vkey_translation_map): Remove.
28249         (syms_of_keymap): Remove DEFVAR for key-translation-map.
28250         (Fdescribe_buffer_bindings)
28251         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
28252         Update for terminal-local key-translation-map.
28254         * Makefile.in (callproc.o): Update dependencies.
28255         (lisp, shortlisp): Add termdev.elc.
28256         (obj): Add terminal.o.
28257         (terminal.o): Add dependencies.
28258         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
28259         (data.o, fns.o): Add termhooks.h dependency.
28260         (SOME_MACHINE_LISP): Add dnd.elc.
28261         (minibuf.o): Fix typo.
28262         Update dependencies.
28264         * data.c (do_symval_forwarding, store_symval_forwarding)
28265         (find_symbol_value): Use the selected frame's keyboard, not
28266         current_kboard.
28268         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
28269         Vwindow_system.
28271         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
28272         Fmenu_bar_open.
28273         (syms_of_xmenu): Update defsubr.
28274         (mouse_position_for_popup, Fx_popup_menu)
28275         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
28276         (set_frame_menubar, free_frame_menubar)
28277         (create_and_show_popup_menu, xmenu_show)
28278         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
28279         an X frame.
28281         * xselect.c (x_own_selection): Abort if not an X frame.
28282         (some_frame_on_display): Check if it is an X frame.
28283         (x_handle_selection_clear): Deal with MULTI_KBOARD.
28285         * coding.c: Include frame.h and termhooks.h.
28286         (terminal_coding, keyboard_coding): Delete.
28287         (Fset_terminal_coding_system_internal)
28288         (Fset_keyboard_coding_system_internal)
28289         (Fkeyboard_coding_system)
28290         (Fterminal_coding_system): Add a terminal parameter.
28291         Get terminal_coding from the terminal.
28292         (init_coding_once): Don't call setup_coding_system here.
28294         * dispextern.h (set_scroll_region, turn_off_insert)
28295         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
28296         (tty_clear_end_of_line, tty_setup_colors)
28297         (delete_tty, updating_frame)
28298         (produce_special_glyphs, produce_glyphs, write_glyphs)
28299         (insert_glyphs): Remove.
28300         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
28301         (tty_turn_off_highlight, get_tty_size): Add declaration.
28302         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
28304         * frame.h (enum output_method): Add output_initial.
28305         (struct x_output): Delete.
28306         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
28307         Access foreground_pixel and background_pixel directly from the frame.
28308         (tty_display): Delete.
28309         (struct frame): Add buried_buffer_list, foreground_pixel,
28310         background_pixel and terminal.  Delete kboard.
28311         (union output_data): Add tty.
28312         (FRAME_KBOARD): Get the kboard from the terminal.
28313         (FRAME_INITIAL_P): New macro.
28314         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
28315         (Qterm_environment_variable, Qdisplay_environment_variable)
28316         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
28317         New declarations.
28319         * termchar.h (tty_output, tty_display_info): New structures.
28320         (tty_list): Declare.
28321         (FRAME_TTY, CURTTY): New macros.
28322         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
28323         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
28324         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
28325         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
28327         * callproc.c: Include frame.h and termhooks.h, for terminal
28328         parameters.
28329         (add_env): New function.
28330         (child_setup): Use it.
28331         (child_setup, getenv_internal): Handle the new Vprocess_environment.
28332         (getenv_internal): Fix get_terminal_param call.
28333         (Fgetenv_internal, egetenv): Update doc.
28334         (syms_of_callproc): Initialize Vprocess_environment to nil.
28335         Register and initialize them.  Remove obsolete defvars.  Update doc
28336         strings.
28337         (child_setup): Handle Vlocal_environment_variables.
28338         (getenv_internal): Add terminal parameter.
28339         Handle Vlocal_environment_variables.
28340         (Fgetenv_internal): Add terminal parameter.
28341         (child_setup, getenv_internal, Fgetenv_internal): Store the local
28342         environment in a frame (not terminal) parameter.  Update doc strings.
28343         (set_initial_environment): Rename from set_global_environment.
28344         Store Emacs environment in initial frame parameter.
28346         * xdisp.c (redisplay_internal): Update references to
28347         `previous_terminal_frame'.
28348         (display_mode_line, Fformat_mode_line): Replace calls to
28349         `push_frame_kboard' with `push_kboard'.
28350         (get_glyph_string_clip_rects): Add extra parentheses and
28351         braces to prevent compiler warnings.
28352         (calc_pixel_width_or_height): Add xassert to check that the
28353         frame is alive.  Don't call `lookup_image' on a termcap frame.
28354         (message2_nolog, message3_nolog, redisplay_internal)
28355         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
28356         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
28357         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
28358         (Fx_display_pixel_width, Fx_display_pixel_height)
28359         (Fx_display_planes, Fx_display_color_cells)
28360         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
28361         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
28362         (Fx_display_backing_store, Fx_display_visual_class)
28363         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
28364         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
28366         * xfns.c (x_set_foreground_color x_set_background_color)
28367         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
28368         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28369         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
28370         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
28371         terminal that is being deleted.
28372         (Fx_create_frame): Use `store_frame_param' to set `window-system'
28373         frame parameter, and make sure it overrides any user-supplied setting.
28374         (Fx_close_connection, Fx_synchronize): Unify argument names with
28375         the rest of the DEFUNs.
28377         * dispnew.c (Fsend_string_to_terminal): Update call to
28378         `get_tty_terminal'.
28379         (Fredraw_frame, Fsend_string_to_terminal)
28380         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
28381         FRAME_TERMCAP_P and FRAME_TTY.
28382         (window_change_signal): Don't believe width/height values that are
28383         impossibly small.
28384         (Vinitial_window_system): Rename from Vwindow_system.
28385         (termscript, Wcm, rif): Delete.
28387         * termhooks.h (struct terminal): New struct containing the
28388         previously global text display hooks and new members NAME,
28389         DELETED and PARAM_ALIST.
28390         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
28391         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
28392         (FRAME_RIF): New macros.
28393         (get_terminal_param, get_device): New declarations.
28394         (termscript): Delete declaration.
28396         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
28397         (XTflash, x_free_frame_resources, x_scroll_bar_create)
28398         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
28399         FRAME_FOREGROUND_PIXEL.
28400         (x_fully_uncatch_errors): Disable definition.
28401         (x_scroll_bar_expose): Fix reference to foreground pixel.
28402         (XTread_socket): Disable loop on all X displays.
28403         (x_delete_terminal): Don't set terminal->deleted and let
28404         delete_terminal delete the frames on the terminal.
28405         (x_delete_display): Doc update to reflect changes in
28406         delete_terminal.
28407         (x_display_info) <terminal>: Move member earlier in the struct.
28408         (deleting_tty): Remove old variable.
28409         (Fsuspend_tty): Call clear_tty_hooks.
28410         (Fresume_tty, init_tty): Call set_tty_hooks.
28411         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
28412         errors on X frames.
28413         (x_catch_errors_unwind): Abort if x_error_message is NULL.
28414         (handle_one_xevent): Initialize `f' to NULL.
28415         (x_delete_terminal, x_create_terminal): New functions.
28416         (XTset_terminal_modes, XTreset_terminal_modes)
28417         (XTread_socket, x_connection_closed, x_term_init)
28418         (x_term_init, x_delete_display): Add terminal parameter.
28419         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
28420         X connections.
28422         * frame.c: Include termchar.h.
28423         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
28424         (Qwindow_system, Qenvironment, Qterm_environment_variable)
28425         (Qdisplay_environment_variable): New vars.
28426         (Fframep): Deal with output_initial.
28427         (Fframe-live-p): Doc fix.
28428         (Fwindow-system): New function.
28429         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
28430         (make_terminal_frame): Don't create frames on a terminal that is
28431         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
28432         (store_frame_param): Check for found_for_frame before calling XFRAME.
28433         (Fmake_terminal_frame): Handle NULL tty names correctly.
28434         (syms_of_frame): Enhance doc string of `default-frame-alist'.
28435         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
28436         frames to refer to a deleted frame in their 'environment parameter.
28437         (Fframe_with_environment): New function.
28438         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
28439         (get_future_frame_param): New function.
28440         (Fmake_terminal_frame): Use it.
28441         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
28443         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
28444         * sysdep.c (reset_sys_modes): Update for renames.
28446         * keyboard.c (tty_read_avail_input): New function.
28447         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
28448         (syms_of_keyboard): Defsubr them.
28449         (Fset_input_meta_mode, Fset_quit_char): New functions.
28450         (Fset_input_mode): Split to above functions.
28451         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
28452         parameter.  Use it in call to `read_char'.
28453         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
28454         Set wrong_kboard_jmpbuf correctly in recursive calls.
28455         Use current_kboard to access Vkeyboard_translate_table.
28456         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
28457         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
28458         Update longjmp invocations.  Remember the original current_kboard,
28459         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
28460         changes it.  Comment out unnecessary calls to
28461         `record_single_kboard_state' and `any_kboard_state'.
28462         Update recursive calls.
28463         (wrong_kboard_jmpbuf): Remove global variable.
28464         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
28465         Handle deleted interrupted_kboards correctly; that is a legal
28466         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
28467         and read_char calls.  Abort if interrupted_kboard died in read_char.
28468         (any_kboard_state, single_kboard_state)
28469         (push_frame_kboard): Remove function.
28470         (pop_kboard): Switch out of single_kboard mode if the kboard has
28471         been deleted.  Remove unused variable.  Help debugging by not
28472         changing current_kboard unnecessarily.  Set current_kboard to the
28473         kboard of the selected frame when the stored kboard object has
28474         been deleted before pop_kboard.
28475         (temporarily_switch_to_single_kboard): Change first parameter to a
28476         frame pointer.  Throw an error when caller wants to change kboards
28477         while in single_kboard mode.  Don't push_kboard if we weren't in
28478         single kboard state.  Don't pop_kboard if we popped into any
28479         kboard state.
28480         (restore_kboard_configuration): Abort if pop_kboard changed the
28481         kboard in single_kboard mode.  Call pop_kboard only after setting
28482         up single_kboard mode.
28483         (Frecursive_edit): Switch to single_kboard mode only in nested
28484         command loops.
28485         (cmd_error, command_loop, command_loop_1, timer_check):
28486         Comment out unnecessary call to `any_kboard_state' and
28487         `record_single_kboard_state'.
28488         (delete_kboard): Exit single_kboard mode if we have just deleted
28489         that kboard.  Use FRAME_KBOARD.
28490         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
28491         `fatal_error_signal'.
28492         (record_single_kboard_state): Don't push_kboard if we weren't in
28493         single kboard state.  Don't pop_kboard if we popped into any
28494         kboard state.
28495         (push_frame_kboard): Rename to push_kboard.
28496         (kbd_buffer_get_event): Use FRAME_TERMINAL.
28497         (read_avail_input): Read input from all terminals.
28498         (mark_kboards): Also mark Vkeyboard_translate_table.
28499         (kbd_buffer_store_event_hold): Simplify condition.
28500         (read_key_sequence): Reinitialize fkey and keytran at each replay.
28501         (Vkeyboard_translate_table): Move to struct kboard.
28502         (init_kboard): Initialize Vkeyboard_translate_table.
28503         (syms_of_keyboard): Use DEFVAR_KBOARD to define
28504         Vkeyboard_translate_table.  Update doc strings.  Update docs of
28505         local-function-key-map and function-key-map.
28507         * terminal.c: New file.
28509         * term.c: Include errno.h.
28510         (Vring_bell_function, device_list, initial_device)
28511         (next_device_id, ring_bell, update_begin, update_end)
28512         (set_terminal_window, cursor_to, raw_cursor_to)
28513         (clear_to_end, clear_frame, clear_end_of_line)
28514         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
28515         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
28516         (syms_of_term): Move their initialization to terminal.c.
28517         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
28518         (Ftty_display_color_cells)
28519         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
28520         (clear_tty_hooks, set_tty_hooks)
28521         (init_tty, maybe_fatal): New functions.
28522         (Ftty_type): Return nil if terminal is not on a tty instead of
28523         throwing an error.  Doc update.
28524         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
28525         Doc update.  Initialize new subrs and variables.
28526         (delete_tty): Use terminal->deleted.
28527         (tty_set_terminal_modes): Rename from set_terminal_modes.
28528         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
28529         (set_scroll_region): Rename to `tty_set_scroll_region'.
28530         (turn_on_insert): Rename to `tty_turn_on_insert'.
28531         (turn_off_insert): Rename to `tty_turn_off_insert'.
28532         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
28533         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
28534         (toggle_highligh): Rename to `tty_toggle_highlight'.
28535         (background_highlight): Rename to `tty_background_highlight'.
28536         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
28537         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
28538         (tty_set_scroll_region, tty_background_highlight)
28539         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
28540         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
28541         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
28542         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
28543         Add static modifier.
28544         (tty_reset_terminal_modes, tty_set_terminal_window)
28545         (tty_set_scroll_region, tty_background_highlight)
28546         (tty_highlight_if_desired, tty_cursor_to)
28547         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
28548         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
28549         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
28550         renames.
28552 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
28554         * keyboard.c: Qrtl is new.
28555         (parse_tool_bar_item): Handle :rtl keyword.
28556         (syms_of_keyboard): Intern :rtl keyword.
28558         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
28560         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
28561         so no Lisp code is executed.
28562         (file_for_image, find_rtl_image): New functions.
28563         (xg_get_image_for_pixmap): Use file_for_image.
28564         (update_frame_tool_bar): If direction is RTL, use RTL image if
28565         defined.  Use Gtk stock images if defined.
28567 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28569         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
28570         for nonexistent or zero-width glyph in composition glyph.
28572 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
28574         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
28576         * xdisp.c (Finvisible_p): New function.
28577         (syms_of_xdisp): defsubr it.
28579 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
28581         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
28582         Doc fixes.
28584 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28586         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
28588 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
28590         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
28591         whether decoding has modified buffer contents.
28593 2007-08-24  Jason Rumney  <jasonr@gnu.org>
28595         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
28596         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
28597         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
28598         (init_svg_functions) [HAVE_NTGUI]: New function.
28599         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
28600         (svg_load_image): Use them.
28601         (svg_load_image) [HAVE_NTGUI]: Implement background.
28603 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28605         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
28606         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
28607         (LIBX): Remove @RSVG_LIBS@.
28608         (LIBES): Add $(RSVG_LIBS).
28610         * image.c (svg_load_image): Blend with specified background if exists.
28611         Use IMAGE_BACKGROUND.  Add Mac OS Support.
28613         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
28614         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
28615         Remove macros.
28616         [MAC_OSX] (socket_callback): Do nothing.
28617         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
28618         ReceiveNextEvent.
28619         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
28620         socket_callback.
28621         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
28623 2007-08-22  Glenn Morris  <rgm@gnu.org>
28625         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
28627 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
28629         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
28631         * image.c: Add support for SVG images.  Some additional comments
28632         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
28633         (svg_image_p): New function to test for SVG image.
28634         (svg_load): New function to load SVG image.
28635         (svg_load_image): New function, helper for svg_load.
28636         (Qsvg): New Lisp_object.
28637         (svg_keyword_index): New enum.
28638         (svg_format): New static `image_keyword' struct.
28639         (svg_type): New static `image_type' struct.
28640         (librsvg/rsvg.h): Include it.
28642 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
28644         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
28646 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
28648         * lread.c (Qold_style_backquotes): New var.
28649         (syms_of_lread): Init and staticpro it.
28650         (load_warn_old_style_backquotes): New fun.
28651         (Fload): Use them to warn about old style backquotes.
28652         (end_of_file_error, Fload): Remove unused vars.
28654         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
28656         * lread.c (Vold_style_backquotes): New var.
28657         (syms_of_lread): Init and export it to Elisp.
28658         (read1): Set it when we find an old-style (back)quote.
28660 2007-08-22  Jason Rumney  <jasonr@gnu.org>
28662         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
28664 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
28666         * puresize.h (BASE_PURESIZE): Increase to 1140000.
28668 2007-08-19  Richard Stallman  <rms@gnu.org>
28670         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
28672 2007-08-19  Andreas Schwab  <schwab@suse.de>
28674         * alloc.c (pure): Round PURESIZE up.
28676 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
28678         * xterm.c (handle_one_xevent): Remove check that mouse click is in
28679         active frame.
28681 2007-08-16  Richard Stallman  <rms@gnu.org>
28683         * eval.c (Fcommandp): Add parens to clarify.
28685         * minibuf.c (Fall_completions): Use enum for type of table.
28687         * emacs.c (USAGE2): Improve text.
28689 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
28691         * term.c (tty_default_color_capabilities): Declare static
28692         variables in file scope, to avoid HPUX compiler problem.
28694 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
28696         * gtkutil.c (update_frame_tool_bar): Use -1 as index
28697         to gtk_toolbar_insert.
28699 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
28701         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
28703         * insdel.c (reset_var_on_error): New fun.
28704         (signal_before_change, signal_after_change):
28705         Use it to reset (after|before)-change-functions to nil in case of error.
28706         Bind inhibit-modification-hooks to t.
28707         Don't bind (after|before)-change-functions to nil while they run.
28709 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28711         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
28712         filling pixmap with stippled background.
28714 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28716         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
28717         Don't use invisible frame as parent window for repositioning.
28719 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
28721         * print.c (new_backquote_output): Rename from old_backquote_output.
28722         (print): Inverse its logic (according to its name) so as to match the
28723         behavior of new_backquote_flag in lread.c.
28725 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28727         * gmalloc.c (posix_memalign): New function.
28729         * macterm.c (frame_highlight, frame_unhighlight): Don't call
28730         ActivateControl/DeactivateControl here.
28731         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
28732         frame-notice-user-settings is non-nil.
28733         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
28734         for kEventParamFMFontStyle.
28735         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
28736         mac_pass_command_to_system and mac_pass_control_to_system here.
28737         (XTread_socket): Call ActivateControl/DeactivateControl here.
28738         (XTread_socket) [TARGET_API_MAC_CARBON]:
28739         Check mac_pass_command_to_system and mac_pass_control_to_system here.
28740         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
28741         for window repositioning.
28743 2007-08-08  Glenn Morris  <rgm@gnu.org>
28745         * Replace `iff' in doc-strings and comments.
28747 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
28749         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
28751 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
28753         * fileio.c (Finsert_file_contents): Run format-decode and
28754         after_insert_file_functions on entire buffer when REPLACE is
28755         non-nil and inhibit modification_hooks and point_motion_hooks.
28756         For consistency, run after_insert_file_functions iff something
28757         got inserted.  Move signal_after_change and update_compositions
28758         after code running after_insert_file_functions.  Make sure that
28759         undo_list doesn't record intermediate steps of the decoding process.
28761 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28763         * emacs.c (main)
28764         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
28765         Call malloc_enable_thread on interactive startup.
28767         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
28768         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
28769         [USE_PTHREAD]: Conditionalize with it.
28770         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
28771         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
28772         New functions.
28774 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
28776         * xdisp.c (redisplay_window): When restoring original buffer
28777         position, make sure it is still valid.
28779         * image.c (png_load): Ignore png-supplied background color.
28781 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28783         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
28784         Use kCFAbsoluteTimeIntervalSince1970.
28786         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
28787         New variable.
28788         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
28789         event loop should be quit.
28790         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
28791         Quit dialog event loop if quit_dialog_event_loop is set.
28793         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
28794         (Selection): New typedef.  Use instead of ScrapRef.
28795         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
28796         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
28797         (mac_clear_selection): Rename from clear_scrap.
28798         (get_flavor_type_from_symbol): New argument SEL and subsume function of
28799         scrap_has_target_type.  All uses changed.
28800         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
28801         (mac_selection_has_target_p): New functions.
28802         (mac_put_selection_value): Rename from put_scrap_string.
28803         (mac_get_selection_value): Rename from get_scrap_string.
28804         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
28805         (put_scrap_private_timestamp, scrap_has_target_type)
28806         (get_scrap_private_timestamp): Remove functions.
28807         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
28808         (x_own_selection, x_get_local_selection):
28809         Use mac_valid_selection_value_p.
28810         (x_own_selection): Don't use put_scrap_private_timestamp.
28811         Record OWNERSHIP-INFO into Vselection_alist instead.
28812         (x_get_local_selection): Don't check type if request is local.
28813         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
28814         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
28816 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
28818         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
28819         add comment explaining why.
28821 2007-08-03  Richard Stallman  <rms@gnu.org>
28823         * fileio.c (Fvisited_file_modtime): Use make_time.
28825 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
28827         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
28828         build.
28830 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
28832         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
28834 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
28836         * puresize.h (BASE_PURESIZE): Increase to 1130000.
28838 2007-07-30  Richard Stallman  <rms@gnu.org>
28840         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
28842 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
28844         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
28846 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
28848         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
28849         remote default-directory.
28851         * buffer.c (mode-line-format): Update doc string.
28853 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28855         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
28856         scroll bar gap.
28857         (x_scroll_bar_create): Set bar->fringe_extended_p.
28858         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
28859         on frame edge.  Check fringe background extension.  Don't clear
28860         extended fringe background area.
28862         * w32term.h (struct scroll_bar): New member fringe_extended_p.
28863         (w32_fill_area): Enclose multiple statements with do ... while (0).
28865         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
28866         Extend fringe background to scroll bar gap.
28867         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
28868         Set bar->fringe_extended_p.
28869         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28870         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
28871         background extension.  Don't clear extended fringe background area.
28873         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
28874         New member fringe_extended_p.
28876 2007-07-25  Glenn Morris  <rgm@gnu.org>
28878         * Relicense all FSF files to GPLv3 or later.
28880         * COPYING: Switch to GPLv3.
28882 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
28884         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
28886         * data.c (Finteractive_form): Check for the presence of an
28887         `interactive-form' symbol property more thoroughly.
28889         * data.c (Finteractive_form): Use an `interactive-form' property if
28890         present, analogous to the function-documentation property.
28892 2007-07-24  Jason Rumney  <jasonr@gnu.org>
28894         * w32fns.c (x_real_positions): Get real position from OS instead of
28895         calculating it.
28897 2007-07-23  Jason Rumney  <jasonr@gnu.org>
28899         * filelock.c (current_lock_owner): Allow for @ sign in username.
28901 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
28903         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
28904         remote default-directory.
28906         * buffer.c (mode-line-format): Describe above case in doc string.
28908 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
28910         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
28911         Define if not defined.
28913 2007-07-18  Jason Rumney  <jasonr@gnu.org>
28915         * w32proc.c (w32_executable_type): Handle 64 bit executables.
28917 2007-07-18  Richard Stallman  <rms@gnu.org>
28919         * data.c (Fsetq_default): Doc fix.
28921         * eval.c (Fsetq): Doc fix.
28923 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
28925         * coding.c (Ffind_operation_coding_system):
28926         * eval.c (For, Fand): Doc fixes.
28927         Reported by Johan Bockgård.
28929 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
28931         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
28933         * xterm.h: Declare x_ewmh_activate_frame.
28935         * xterm.c (x_ewmh_activate_frame): New function.
28936         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
28938 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
28940         * window.c (Fdisplay_buffer): If largest or LRU window is the
28941         only window, split it even if it is not eligible for splitting.
28942         This restores the original behavior broken by the 2007-07-15
28943         change.
28945 2007-07-17  Glenn Morris  <rgm@gnu.org>
28947         * abbrev.c (abbrev_check_chars): New function.
28948         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
28949         Call abbrev_check_chars to check abbrev characters are word
28950         constituents.  Doc fix.
28952 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
28954         * process.c (Fstart_process, Fmake_network_process)
28955         (read_process_output): Fix up last changes.
28957 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
28959         * makefile.w32-in (clean): Don't delete *~.
28961 2007-07-16  Andreas Schwab  <schwab@suse.de>
28963         * window.c (Fdisplay_buffer): Use NILP.
28964         (Fset_window_scroll_bars): Likewise.
28966 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
28968         * window.c (window_min_size_2): New function.
28969         (window_min_size_1, size_window, Fdisplay_buffer)
28970         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
28971         windows without mode- or header-lines when window-min-height is
28972         too small.
28973         (size_window): Reset nodelete_p after testing it, following an
28974         earlier note by Kim F. Storm.
28975         (display_buffer): Do not set split_height_threshold to twice the
28976         value of window_min_height to avoid changing the value of a
28977         customizable variable.  Rather explicitly check whether the
28978         height of the window that shall be splitted is at least as large
28979         as split_height_threshold.
28980         (Fwindow_full_width_p): New defun.
28981         (syms_of_window): Defsubr it.
28983         * window.h: Add EXFUN for Fwindow_full_width_p.
28985 2007-07-14  Jason Rumney  <jasonr@gnu.org>
28987         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
28989 2007-07-14  Richard Stallman  <rms@gnu.org>
28991         * eval.c (maybe_call_debugger): New function.
28992         (find_handler_clause): Use maybe_call_debugger.
28993         Call it when the handler says `debug'.
28994         Eliminate DEBUGGER_VALUE_PTR.
28995         (Fsignal): Eliminate debugger_value.
28996         (Qdebug): New variable.
28997         (syms_of_eval): Initialize it.
28999 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
29001         * eval.c (Fprogn):
29002         * keyboard.c (Ftrack_mouse):
29003         * print.c (Fwith_output_to_temp_buffer):
29004         * window.c (Fsave_window_excursion): Doc fix.
29006 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
29008         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
29010 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
29012         * process.h (struct Lisp_Process): Turn slots infd, outfd,
29013         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
29014         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
29015         read_output_delay, and read_output_skip from Lisp_Objects to ints.
29016         Remove unused encoding_carryover.
29017         * process.c: Adjust all functions accordingly.
29019 2007-07-12  Richard Stallman  <rms@gnu.org>
29021         * term.c: Include unistd.h only if HAVE_UNISTD_H.
29023 2007-07-11  Jason Rumney  <jasonr@gnu.org>
29025         * makefile.w32-in (LIBS): Include OLE32.
29027         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
29028         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
29030 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
29032         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
29033         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
29034         from a Lisp_Object into a bare pointer.
29035         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
29036         Adjust the code correspondingly.
29038         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
29040         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
29041         (term_show_mouse_face): Remove unused var `j'.
29042         (handle_one_term_event): Remove unused vars `i' and `j'.
29043         Don't cast return value of ttyname since it's not necessary.
29045 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
29047         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
29048         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
29050         * fns.c (map_char_table): Use an array of int for `indices' rather than
29051         an array of Lisp_Objects (which are only ever integers anyway).
29052         (Fmap_char_table): Update caller.
29053         * lisp.h: Update prototype.
29054         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
29055         * fontset.c (Ffontset_info):
29056         * casetab.c (set_case_table): Update callers.
29058         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
29060         * keymap.c (struct accessible_keymaps_data)
29061         (struct where_is_internal_data): New structures.
29062         (accessible_keymaps_1, where_is_internal_1): Use them to change
29063         interface to adhere to the one used by map_keymap.
29064         (Faccessible_keymaps, where_is_internal): Use map_keymap.
29065         (accessible_keymaps_char_table, where_is_internal_2): Remove.
29067         * keymap.h (map_keymap_function_t): More informative prototype.
29069 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
29071         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
29072         (looking_at_1): Don't change search_regs and last_thing_searched
29073         if `inhibit-changing-match-data' is non-nil.
29074         (string_match_1, search_buffer, set_search_regs): Likewise.
29075         (syms_of_search): Add Lisp level definition for
29076         `inhibit-changing-match-data' and set it to nil.
29077         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
29078         start and end of the match, instead of using values in search_regs.
29080 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
29082         * minibuf.c (Fcompleting_read): New value `confirm-only'
29083         for `require-match'.
29085 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
29087         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
29088         part of the 2007-06-27 change to syms_of_fileio.
29090 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29092         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
29093         Check WINDOWP before using XWINDOW.  Consolidate return statements.
29095 2007-06-27  Richard Stallman  <rms@gnu.org>
29097         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
29099 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
29101         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
29103 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29105         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
29106         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
29107         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
29108         (_free_internal, memalign): Use them.
29109         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
29110         Initialize to PTHREAD_MUTEX_INITIALIZER.
29111         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
29112         (morecore_nolock): Rename from morecore.  All uses changed.
29113         Use only nolock versions of internal allocation functions.
29114         (_malloc_internal_nolock, _realloc_internal_nolock)
29115         (_free_internal_nolock): New functions created from
29116         _malloc_internal, _realloc_internal, and _free_internal.
29117         (_malloc_internal, _realloc_internal, _free_internal): Use them.
29118         Copy hook value to automatic variable before its use.
29119         (memalign): Copy hook value to automatic variable before its use.
29121 2007-06-26  Kenichi Handa  <handa@m17n.org>
29123         * coding.c (Ffind_operation_coding_system): Docstring improved.
29124         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
29126 2007-06-25  David Kastrup  <dak@gnu.org>
29128         * keymap.c (Fcurrent_active_maps): Add `position' argument.
29129         (Fwhere_is_internal): Adjust call to `current-active-maps' to
29130         cater for additional parameter.
29132         * keymap.h: Adjust number of parameters to `current-active-maps'.
29134         * doc.c (Fsubstitute_command_keys): Adjust call of
29135         `current-active-maps'.
29137 2007-06-25  David Kastrup  <dak@gnu.org>
29139         * callint.c (Fcall_interactively): Make the parsing of interactive
29140         specs somewhat more readable.
29142 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29144         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
29145         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
29146         if extended background has already been filled.
29148 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29150         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
29151         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
29153         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
29154         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
29155         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
29156         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
29157         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
29158         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
29159         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
29160         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
29161         Run timers during dialog popup.
29162         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
29164 2007-06-21  Jason Rumney  <jasonr@gnu.org>
29166         * image.c (convert_mono_to_color_image): Swap fore and background.
29168 2007-06-20  Jason Rumney  <jasonr@gnu.org>
29170         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
29171         (w32_free_bdf_font): Unmap memory not handle.
29173 2007-06-20  Sam Steingold  <sds@gnu.org>
29175         * gmalloc.c (__morecore): Fix the declaration to comply with the
29176         definition.
29178 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
29180         * w32term.c (w32_delete_display): Remove leftover declaration.
29181         (w32_define_cursor, w32_initialize): Make static.
29183         * w32.c (_wsa_errlist): Fix typo in error message.
29184         (init_environment): Ignore any environment variable from the
29185         registry having a null value.
29187 2007-06-20  Glenn Morris  <rgm@gnu.org>
29189         * Makefile.in (LIBGIF): Default to -lgif.
29191 2007-06-17  Jason Rumney  <jasonr@gnu.org>
29193         * w32menu.c (add_menu_item): Don't use multibyte string functions on
29194         unicode strings.
29196 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
29198         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
29199         Fix typo in docstring.
29201 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
29203         * w32menu.c (add_menu_item): Escape `&' characters in menu items
29204         and their keybindings.
29206 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
29208         * composite.c (update_compositions): Fix last fix.
29210 2007-06-14  Jason Rumney  <jasonr@gnu.org>
29212         * w32.c (get_process_times_fn): New function pointer.
29213         (globals_of_w32): Intialize it if present in kernel32.dll.
29214         (w32_get_internal_run_time): New function.
29216         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
29218 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
29220         * composite.c (update_compositions): Check the validness of
29221         compositions.
29223 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29225         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
29226         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
29228         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
29229         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
29231         * macgui.h (USE_MAC_TOOLBAR): New define.
29233         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29234         Return immediately unless popup is activated.
29236         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
29237         background to scroll bar gap.
29238         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
29239         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
29240         scroll bars on frame edge.  Check fringe background extension.
29241         Don't clear extended fringe background area.
29242         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
29243         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
29244         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
29245         [USE_MAC_TOOLBAR]: New macros.
29246         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
29247         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
29248         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
29249         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
29250         [USE_MAC_TOOLBAR]: New functions.
29251         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
29252         manually if previous repositioning has failed.
29253         (mac_handle_keyboard_event): Use precomputed event kind.
29254         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
29255         as tool bar item click.  Handle mouse movement over tool bar items.
29257         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
29258         toolbar_win_gravity.
29259         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
29260         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
29261         Add externs.
29263         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
29264         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
29266 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
29268         * image.c (search_image_cache): Remove unused variable.
29270 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
29272         * xfns.c, xmenu.c: Link to xaw3d if available.
29274 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29276         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
29277         frame_foreground and frame_background.
29279         * image.c (lookup_image): Save frame foreground and background colors.
29280         (search_image_cache): Check if saved and current frame colors match.
29282 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
29284         * regex.c (regex_compile): Remove the `regnum' counter.
29285         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
29287 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
29289         * term.c: Include intervals.h to declare Fget_text_property.
29291 2007-06-10  Jason Rumney  <jasonr@gnu.org>
29293         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
29295 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
29297         * callint.c (Fcall_interactively):
29298         * editfns.c (Fdelete_and_extract_region):
29299         * fileio.c (Fread_file_name):
29300         * fns.c (Fmapconcat):
29301         * keyboard.c (cmd_error_internal):
29302         * keymap.c (Fkey_description):
29303         * lread.c (openp):
29304         * minibuf.c (read_minibuf):
29305         * search.c (wordify):
29306         * sunfns.c (sel_read):
29307         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
29308         * xfns.c (x_default_scroll_bar_color_parameter):
29309         * xmenu.c (menu_help_callback):
29310         * xselect.c (Fx_get_atom_name):
29311         * xterm.c (x_term_init): Use empty_unibyte_string.
29313 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
29315         * alloc.c (init_strings): Initialize canonical empty strings.
29316         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
29317         canonical empty string when the requested size is 0.
29319         * emacs.c (empty_unibyte_string): Rename from empty_string.
29320         (empty_multibyte_string): New canonical empty string.
29321         (syms_of_emacs): Don't initialize empty_string.
29323         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
29324         string, if appropriate.
29325         (empty_unibyte_string, empty_multibyte_string): New externs.
29326         (empty_string): Remove extern.
29328         * lread.c (syms_of_lread): Use empty_unibyte_string.
29330 2007-06-07  Jason Rumney  <jasonr@gnu.org>
29332         * s/ms-w32.h: Don't define HAVE_TZNAME.
29334         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
29336 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29338         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
29340         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
29341         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
29343         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
29344         Don't call next handler.
29345         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
29346         Remove argument.  Install handler to application.
29347         (set_frame_menubar): Don't change deep_p.
29348         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
29349         FRAME_OUTER_TO_INNER_DIFF_Y.
29350         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
29351         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
29352         [HAVE_DIALOGS]: New macros.
29353         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
29354         Use them.
29355         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
29357         * macselect.c [MAC_OSX] (install_service_handler): Rename from
29358         init_service_handler.  All callers changed.  Return OSStatus value.
29360         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
29361         All callers changed so as not to call SetPortWindowPort.
29362         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
29363         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
29364         mac_draw_string_common.
29365         (mac_draw_image_string_qd): Likewise.
29366         (mac_draw_string_common): Use them.  Add INLINE.
29367         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
29368         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
29369         GetGlobalMouse.
29370         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
29371         and FRAME_OUTER_TO_INNER_DIFF_Y.
29372         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
29373         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
29374         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
29375         repositioning window to mac_handle_window_event.
29376         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
29377         saving window location to mac_handle_window_event
29378         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
29379         (install_menu_target_item_handler): Remove argument in extern.
29380         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
29381         Also accept command events.
29382         (do_keystroke): New function created from XTread_socket.
29383         (init_command_handler): Remove functions.
29384         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
29385         and save window location by kEventWindowShowing and kEventWindowHiding
29386         handlers here.  Don't call next handler for window state change and
29387         focus events.
29388         (mac_handle_application_event, mac_handle_keyboard_event)
29389         [TARGET_API_MAC_CARBON]: New functions.
29390         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
29391         kEventWindowShowing and kEventWindowHiding events.  Move installation
29392         of mouse, font, text input and menu target item handlers to
29393         install_application_handler.
29394         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
29395         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29396         New function.
29397         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
29398         Register it.
29399         (XTread_socket) [TARGET_API_MAC_CARBON]:
29400         Consolidate SendEventToEventTarget calls.
29401         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
29402         Move application activation handler to mac_handle_application_event.
29403         Move keyboard handler to mac_handle_keyboard_event.
29404         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
29405         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
29406         init_command_handler.  Call install_application_handler.
29408         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
29409         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
29411 2007-06-07  Glenn Morris  <rgm@gnu.org>
29413         * emacs.c (main): Use `emacs-copyright' in --version output.
29415 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
29417         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
29419 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29421         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
29423         * macgui.h: Replace WindowPtr with WindowRef.
29425         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29426         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
29427         Replace ControlHandle with ControlRef.
29428         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
29430         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
29431         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
29432         Replace ControlHandle with ControlRef.
29433         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
29434         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
29436         * macterm.h (struct scroll_bar): Rename member control_handle_low
29437         and control_handle_high to control_ref_low and control_ref_high.
29438         All uses changed.
29439         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
29440         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
29441         respectively.  All uses changed.
29442         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
29443         (install_window_handler, remove_window_handler): Replace WindowPtr
29444         with WindowRef in externs.
29446 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
29448         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
29450 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
29452         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
29454         * frame.c (Fmouse_position, Fmouse_pixel_position):
29455         Condition on HAVE_GPM too.
29457         * term.c (term_mouse_highlight): Remove unused variables.
29458         (Fterm_open_connection): Set gpm_zerobased to 1.
29459         (term_mouse_movement, term_mouse_click, handle_one_term_event):
29460         Use zero based co-ordinates.
29461         (handle_one_term_event): Report a drag as mouse movement too.
29463         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
29465 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
29467         * image.c (search_image_cache): New function.  Require background
29468         color match if background color is unspecified in the image spec.
29469         (uncache_image, lookup_image): Use it.
29471 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
29473         * window.c (Fshrink_window): Reflow docstring.
29475 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
29477         * Version 22.1 released.
29479 2007-06-01  Richard Stallman  <rms@gnu.org>
29481         * xfns.c (x_encode_text): Add GCPRO.
29483 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29485         * xfns.c (x_set_name_internal): Save encoded name before
29486         x_encode_text in case string data is relocated.
29488 2007-05-31  Richard Stallman  <rms@gnu.org>
29490         * buffer.c (syms_of_buffer): Doc fix.
29492 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
29494         * sysdep.c (init_sys_modes): Add rather than replace with
29495         O_NONBLOCK.
29497         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
29498         term_mouse_moveto.
29500         * termhooks.h (term_mouse_moveto): New extern.
29502         * term.c (mouse_face_window): Rename...
29503         (Qmouse_face_window): ...to this.
29504         (term_show_mouse_face, term_clear_mouse_face)
29505         (term_mouse_highlight): Use Qmouse_face_window.
29506         (term_mouse_moveto): New function.
29507         (term_mouse_position): Make it work.
29508         (syms_of_term): Uncomment assignment to mouse_position_hook.
29509         Staticpro Qmouse_face_window.
29511 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29513         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
29514         around current_column call.
29516 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
29518         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
29519         * xdisp.c (next_element_from_buffer):
29520         * window.c (delete_window):
29521         * term.c (term_mouse_highlight):
29522         * msdos.c (getdefdir):
29523         * macterm.c (mac_create_bitmap_from_bitmap_data)
29524         (init_font_name_table):
29525         * fns.c (Fsxhash):
29526         * data.c (Fmake_local_variable):
29527         * ccl.c (ccl_driver): Likewise.
29529 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29531         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
29532         Call mac_wakeup_from_rne on window size change.
29534 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
29536         * image.c (uncache_image): Fix typo.
29538 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
29540         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
29542 2007-05-22  Richard Stallman  <rms@gnu.org>
29544         * xterm.c (x_connection_closed): Remove NO_RETURN.
29546 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
29548         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
29550 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
29552         * image.c (uncache_image): New function.
29553         (Fimage_refresh): New function.
29555 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
29557         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
29559 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
29561         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
29562         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
29564 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
29566         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
29567         conditional on [HAVE_GPM_H].
29569 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
29571         * syntax.c (skip_chars): Update syntax-table only after we checked that
29572         the new location is valid.
29574 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29576         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
29577         mac_get_window_bounds.
29579 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
29581         * Makefile.in (LIBGPM): Allow it to be set from configure.
29582         If set then link Emacs with it.
29584         * config.in: Regenerate.
29586         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
29587         New externs.
29589         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
29590         Include gpm.h.
29591         (handle_one_term_event, term_gpm): New externs.
29593         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
29594         and allow it to be interrupted by SIGIO.
29596         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
29597         (wait_reading_process_output): Wait on gpm_fd too.
29598         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
29599         (add_gpm_wait_descriptor_called_flag): New variable.
29600         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
29602         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
29603         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
29604         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
29605         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
29606         (make_lispy_event): Add case GPM_CLICK_EVENT.
29607         (read_avail_input): Handle mouse input.
29609         * term.c (write_glyphs_with_face): New function.
29610         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
29611         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
29612         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
29613         (mouse_face_face_id, term_gpm, pos_x, pos_y)
29614         (last_mouse_x, last_mouse_y): New variables.
29615         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
29616         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
29617         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
29618         (Fterm_close_connection): New functions.
29619         (term_init): Initialise mouse_face_window.
29621 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
29623         * xdisp.c (redisplay_window): If first window line is a
29624         continuation line, recompute the new window start instead of
29625         recentering.
29627 2007-05-18  Glenn Morris  <rgm@gnu.org>
29629         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
29630         Suggested by Alfred M. Szmidt <ams@gnu.org>.
29632 2007-05-17  Glenn Morris  <rgm@gnu.org>
29634         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
29636 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29638         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
29639         dead key repeat and up events.
29641 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
29643         * image.c (pbm_load): Check image size for monochrome pbm.
29645 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
29647         * xterm.c (XTread_socket): Revert last change.
29649 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
29651         * image.c (pbm_load): Correctly check image size for greyscale pbm.
29653         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
29655 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
29657         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
29658         mixup (YAILOM).
29660 2007-05-07  Andreas Schwab  <schwab@suse.de>
29662         * keymap.c (Flookup_key): Fix typo in last change.
29664 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
29666         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
29667         mapping for unibyte strings.
29669 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29671         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
29672         (Fx_popup_dialog) [MAC_OSX]: Likewise.
29674 2007-04-29  Richard Stallman  <rms@gnu.org>
29676         * insdel.c (replace_range): For undo, record insertion first.
29678 2007-04-29  Andreas Schwab  <schwab@suse.de>
29680         * lisp.h (VECSIZE): Use OFFSETOF.
29682 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
29684         * xdisp.c (try_window_reusing_current_matrix): Fix number of
29685         disabled lines.
29687 2007-04-28  Richard Stallman  <rms@gnu.org>
29689         * lread.c (read_escape): In a string, \s is always space.
29691 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
29693         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
29695         * gtkutil.c (xg_update_menubar, create_menus): Create empty
29696         submenu for menu bar items.
29698 See ChangeLog.10 for earlier changes.
29700 ;; Local Variables:
29701 ;; coding: utf-8
29702 ;; End:
29704   Copyright (C) 2007, 2008, 2009, 2010, 2011
29705     Free Software Foundation, Inc.
29707   This file is part of GNU Emacs.
29709   GNU Emacs is free software: you can redistribute it and/or modify
29710   it under the terms of the GNU General Public License as published by
29711   the Free Software Foundation, either version 3 of the License, or
29712   (at your option) any later version.
29714   GNU Emacs is distributed in the hope that it will be useful,
29715   but WITHOUT ANY WARRANTY; without even the implied warranty of
29716   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29717   GNU General Public License for more details.
29719   You should have received a copy of the GNU General Public License
29720   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.