* src/window.c (Fselect_window): Add missing return value.
[emacs.git] / src / ChangeLog
blob0ee89f646fe366a916e15d7f9e161c2028d9a186
1 2011-02-01  Andreas Schwab  <schwab@linux-m68k.org>
3         * window.c (Fselect_window): Add missing return value.
5 2011-01-29  Andreas Schwab  <schwab@linux-m68k.org>
7         * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
8         of int.  All uses adjusted.
9         (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
10         (svg_load_image): Remove casts.
12 2011-01-29  Chong Yidong  <cyd@stupidchicken.com>
14         * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
15         function definitions for compiling with libpng-1.5.
16         (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
17         (my_png_error, png_load): Use them.  Suggested by Thomas Klausner
18         (Bug#7908).
20 2011-01-28  Chong Yidong  <cyd@stupidchicken.com>
22         * m/intel386.h: Define NO_ARG_ARRAY.  Suggested by Dan Nicolaescu.
24 2011-01-27  Chong Yidong  <cyd@stupidchicken.com>
26         * font.c (font_parse_fcname): Require GTK-style font sizes to
27         occur at the end of the font string (Bug#7853).
29 2011-01-26  Chong Yidong  <cyd@stupidchicken.com>
31         * font.c (font_parse_fcname): Fix typo in string length.
33 2011-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
35         * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
36         the buffer's point-max (bug#7876).
38 2011-01-23  Chong Yidong  <cyd@stupidchicken.com>
40         * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
41         Remove unused HAVE_SHM branch (Bug#6811).
43 2011-01-23  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
45         * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
47 2011-01-22  Martin Rudalics  <rudalics@gmx.at>
49         * window.c (select_window): New function.
50         (Fselect_window): Call it.
51         (inhibit_point_swap): Variable deleted.
52         (Fset_window_configuration): Call select_window directly.
54 2011-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
56         * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
58 2011-01-16  Eli Zaretskii  <eliz@gnu.org>
60         * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE.  (Bug#7848)
62 2011-01-15  Martin Rudalics  <rudalics@gmx.at>
64         * window.c (inhibit_point_swap): New variable.
65         (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
66         point this time.
67         (Fset_window_configuration): Set inhibit_point_swap to 1 instead
68         of setting selected_window to nil (Bug#7728).
70 2011-01-12  Chong Yidong  <cyd@stupidchicken.com>
72         * config.in (TERMINFO): New definition.
74         * s/netbsd.h: Use it to choose between terminfo and termcap
75         (Bug#7642).
77 2011-01-03  Jan Djärv  <jan.h.d@swipnet.se>
79         * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
81         * nsfns.m (ns_set_name_iconic): Remove.
82         (ns_get_screen): Don't assign integer to f.
83         (ns_set_name_internal): New function (Bug#7517).
84         (Vicon_title_format): Extern declare.
85         (ns_set_name): Call ns_set_name_internal.
86         (x_explicitly_set_name): Remove call to ns_set_name_iconic.
87         (x_implicitly_set_name): Ditto.
88         (x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
89         (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
90         Always use buffer name for title and buffer filename only for
91         RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
93 2011-01-03  Eli Zaretskii  <eliz@gnu.org>
95         * image.c (png_jmpbuf): Remove definition.
96         (my_png_error, png_load): Don't use png_jmpbuf.
98 2010-12-31  Eli Zaretskii  <eliz@gnu.org>
100         * image.c <Qlibpng_version>: New variable.
101         (syms_of_image): Intern and staticpro it.  Set its value to the
102         version of PNG library we were compiled with.
103         (my_png_error, png_load): Avoid GCC warnings about direct access
104         to png_ptr->jmpbuf.  (Bug#7716)
105         (png_jmpbuf): New macro.
106         (my_png_error, png_load): Use it instead of #ifdef'ing according
107         to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
109 2010-12-27  Stefan Monnier  <monnier@iro.umontreal.ca>
111         * .gdbinit (xgetptr): Fix the union+lsb case.
112         (xbacktrace): Fix the union case.
114 2010-12-26  Stefan Monnier  <monnier@iro.umontreal.ca>
116         * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
117         different from selected-window's.
119 2010-12-25  Eli Zaretskii  <eliz@gnu.org>
121         * keyboard.c (parse_menu_item): Prepend "  " to the key sequence
122         equivalent of a menu item when the key sequence is given by the
123         `:keys' attribute.  (Bug#7662)
125         * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
126         the basic faces are supported.
128 2010-12-24  Jan Djärv  <jan.h.d@swipnet.se>
130         * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
132 2010-12-17  Eli Zaretskii  <eliz@gnu.org>
134         * xdisp.c (Fformat_mode_line): Fix last change.
136 2010-12-16  Chong Yidong  <cyd@stupidchicken.com>
138         * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
139         faces (Bug#7587).
141 2010-12-13  Eli Zaretskii  <eliz@gnu.org>
143         * fileio.c (Fexpand_file_name): One more doc fix.
145 2010-12-12  Eli Zaretskii  <eliz@gnu.org>
147         * fileio.c (Fexpand_file_name): Doc fix.  (Bug#7617)
149 2010-12-11  Eli Zaretskii  <eliz@gnu.org>
151         * w32fns.c (Fx_show_tip): Call try_window with last argument
152         TRY_WINDOW_IGNORE_FONTS_CHANGE.  Delete the TODO ifdef: problem
153         solved.  Round up the tip height to an integral multiple of the
154         frame's line height.  Add FRAME_COLUMN_WIDTH to the tip width.
155         (Bug#7398)
157         * xdisp.c (string_pos_nchars_ahead, c_string_pos)
158         (face_before_or_after_it_pos, next_element_from_string)
159         (next_element_from_c_string, produce_stretch_glyph): Remove unused
160         calculations of maximum string length before calling
161         string_char_and_length and STRING_CHAR_AND_LENGTH.
162         (string_char_and_length): Update commentary: MAXLEN is no longer
163         needed.
165 2010-12-10  Jan Djärv  <jan.h.d@swipnet.se>
167         * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
168         as (Qsave_session arg).
170         * xsmfns.c (smc_interact_CB): Set arg to Qnil.
171         (smc_die_CB): Make an event with arg Qt.
172         (Fhandle_save_session): If event has Qt as argument,
173         call Fkill_emacs (Bug#7552).
175 2010-12-07  Jan Djärv  <jan.h.d@swipnet.se>
177         * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
179 2010-12-06  Chong Yidong  <cyd@stupidchicken.com>
181         * dispextern.h (struct it): New member overlay_strings_charpos.
183         * xdisp.c (next_overlay_string, load_overlay_strings): Record the
184         charpos where we computed n_overlay_strings.
185         (next_overlay_string): Load overlay strings at recorded position,
186         which may not be the same as the iterator's charpos (Bug#7016).
188 2010-12-05  Jan Djärv  <jan.h.d@swipnet.se>
190         * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
191         with cursor color and draw a rectangle around the image (Bug#7412).
193 2010-12-05  Chong Yidong  <cyd@stupidchicken.com>
195         * xdisp.c (try_scrolling): Avoid infloop if the first line is
196         obscured due to a vscroll (Bug#7537).
198 2010-12-02  Jan Djärv  <jhd@zeplinf.localdomain>
200         * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
202         * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
203         Use FRAME_TOOLBAR_HEIGHT.
204         (x_set_offset): Handle XNegative and YNegative in
205         f->size_hint_flags (Bug#7510).
207 2010-11-25  Kenichi Handa  <handa@m17n.org>
209         * charset.c (emacs_mule_charset): Make it an array of charset ID;
210         i.e. integer.
211         (Fdefine_charset_internal): Adjusted for the above change.
212         (init_charset_once): Likewise.
214         * charset.h (emacs_mule_charset): Adjust the prototype.  Delete
215         duplicated extern.
217         * coding.c (emacs_mule_char): Adjust for the change of
218         emacs_mule_charset.
220         * lread.c (read_emacs_mule_char): Adjust for the change of
221         emacs_mule_charset.
223 2010-11-22  Eli Zaretskii  <eliz@gnu.org>
225         * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
226         of w32api >= 3.15.  (Bug#6989)  (Bug#7452)
228 2010-11-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
230         * alloc.c (mark_terminals): Ensure that the image cache is marked
231         even if the terminal object was marked earlier (Bug#6301).
233 2010-11-21  Chong Yidong  <cyd@stupidchicken.com>
235         * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
237 2010-11-20  Jan Djärv  <jan.h.d@swipnet.se>
239         * gtkutil.c (menubar_map_cb): New function (Bug#7425).
240         (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
241         Use 23 as menubar height if 0. (Bug#7425).
243 2010-11-14  Jan Djärv  <jan.h.d@swipnet.se>
245         * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
247         * config.in (HAVE_G_TYPE_INIT): New symbol.
249 2010-11-12  Eli Zaretskii  <eliz@gnu.org>
251         * lread.c (Fload): Mention `load-in-progress' and
252         `load-file-name'.  (Bug#7346)
254 2010-11-09  Eli Zaretskii  <eliz@gnu.org>
256         * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
257         (kbd_buffer_store_event_hold, kbd_buffer_get_event)
258         (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
259         subprocesses.  Use buffer_free only ifdef subprocesses.
261         * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
262         the subprocesses version, not in the non-subprocesses one.
264         * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
266         * xfns.c (x_real_positions): Fix declaration-after-statement
267         problem.
269 2010-11-05  Chong Yidong  <cyd@stupidchicken.com>
271         * image.c (free_image): Don't garbage the frame here, since this
272         function can be called while redisplaying (Bug#7210).
273         (uncache_image): Garbage the frame here (Bug#6426).
275 2010-11-04  Chong Yidong  <cyd@stupidchicken.com>
277         * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
278         Windows.
280 2010-11-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
282         * process.c (Fmake_network_process): Don't call turn_on_atimers around
283         `connect' (Bug#5723).
285 2010-11-04  Helmut Eller  <eller.helmut@gmail.com>
287         * process.c (Fmake_network_process): Call `select' for interrupted
288         `connect' rather than creating new socket (Bug#5173).
290 2010-11-04  Kenichi Handa  <handa@m17n.org>
292         * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
293         Don't sheck SPEC if it is nil.
294         (font_list_entities): Call font_delete_unmatched if
295         Vface_ignored_fonts is non-nil.
297 2010-11-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
299         * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
300         (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
302         * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
303         Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
304         set in FLAGS.  Callers with non-zero CHECK_MARGINS changed to use
305         TRY_WINDOW_CHECK_MARGINS.
307         * xfns.c (Fx_show_tip): Undo last change.  Call try_window with
308         TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
310 2010-11-04  Jan Djärv  <jan.h.d@swipnet.se>
312         * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
313         parent is the root window.  Check this after traversing window tree.
315         * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
317         * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
319         * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
320         before traversing window tree (Bug#5721).
322 2010-11-03  Glenn Morris  <rgm@gnu.org>
324         * Makefile.in (CRT_DIR): New variable, set by configure.
325         * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
326         Use $CRT_DIR rather than HAVE_LIB64_DIR.  (Bug#5655)
328 2010-11-01  Jan Djärv  <jan.h.d@swipnet.se>
330         * process.c (kbd_is_on_hold): New variable.
331         (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
332         New functions.
333         (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
334         select on empty input mask.
335         (init_process): Initialize kbd_is_on_hold to 0.
337         * process.h (hold_keyboard_input, unhold_keyboard_input)
338         (kbd_on_hold_p): Declare.
340         * keyboard.c (input_available_signal): Declare.
341         (kbd_buffer_nr_stored): New function.
342         (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
343         more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
344         (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
345         returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
346         (tty_read_avail_input): If input is on hold, return.
347         Don't read more that free slots in kbd_buffer (Bug#6571).
349 2010-10-31  Chong Yidong  <cyd@stupidchicken.com>
351         * xterm.c (x_connection_closed): Print informative error message
352         when aborting on GTK.  This requires using shut_down_emacs
353         directly instead of Fkill_emacs.
355 2010-10-25  Michael Albinus  <michael.albinus@gmx.de>
357         * dbusbind.c (Fdbus_call_method_asynchronously)
358         (Fdbus_register_signal, Fdbus_register_method): Check, whether
359         `dbus-registered-objects-table' is initialized.
361 2010-10-24  Chong Yidong  <cyd@stupidchicken.com>
363         * xterm.c (x_connection_closed): Kill Emacs unconditionally.
365 2010-10-22  Eli Zaretskii  <eliz@gnu.org>
367         * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
369         * dispnew.c (syms_of_display) <initial-window-system, window-system>:
370         Deprecate use as a boolean flag.
372 2010-10-18  Ken Brown  <kbrown@cornell.edu>
374         * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
376 2010-10-15  Kenichi Handa  <handa@m17n.org>
378         Fix incorrect font metrics when the same font is opened with
379         different pixelsizes.
381         * xftfont.c: Include composite.h.
382         (xftfont_shape): New function.
383         (syms_of_xftfont): Set xftfont_driver.shape.
385 2010-10-13  Damyan Pepper  <damyanp@gmail.com>
387         Fix handling of font properties on Windows (bug#6303).
388         * font.c (font_filter_properties): New function, refactored from
389         ftfont_filter_properties.
390         * font.h (font_filter_properties): Declare.
391         * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
392         * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
393         (w32font_filter_properties): New function.
394         (w32font_driver): Add w32font_filter_properties.
396 2010-10-12  Juanma Barranquero  <lekktu@gmail.com>
398         * font.c (Ffont_variation_glyphs):
399         * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
401 2010-10-10  Jan Djärv  <jan.h.d@swipnet.se>
403         * nsterm.m (Qleft): Declare.
404         (ns_right_alternate_modifier): New variable
405         (NSRightAlternateKeyMask): New define.
406         (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
407         ns_right_alternate_modifier isn't Qleft.
408         (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
409         as emacs modifier for NSRightAlternateKeyMask.
410         (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
412 2010-10-08  Michael Albinus  <michael.albinus@gmx.de>
414         * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
415         (xd_pending_messages): Catch xd_get_dispatch_status calls.
417 2010-10-08  Kenichi Handa  <handa@m17n.org>
419         * coding.c (complement_process_encoding_system): Fix previous change.
421 2010-10-03  Michael Albinus  <michael.albinus@gmx.de>
423         * dbusbind.c (syms_of_dbusbind): Move putenv call ...
424         (Fdbus_init_bus): ... here.  (Bug#7113)
426 2010-10-03  Glenn Morris  <rgm@gnu.org>
428         * buffer.c (before-change-functions, after-change-functions):
429         Three-year overdue doc fix following 2007-08-13 change.
431 2010-10-02  Kenichi Handa  <handa@m17n.org>
433         * coding.c (coding_inherit_eol_type): If parent doesn't specify
434         eol-format, inherit from the system's default.
435         (complement_process_encoding_system): Make a new coding system
436         inherit the original eol-format.
438 2010-09-30  Kenichi Handa  <handa@m17n.org>
440         * coding.c (complement_process_encoding_system): New function.
442         * coding.h (complement_process_encoding_system): Extern it.
444         * callproc.c (Fcall_process): Complement the coding system for
445         encoding arguments.
446         (Fcall_process_region): Complement the coding system for encoding
447         the input to the process.
449         * process.c (Fstart_process): Complement the coding system for
450         encoding arguments.
451         (send_process): Complement the coding system for encoding what
452         sent to the process.
454 2010-09-29  Kenichi Handa  <handa@m17n.org>
456         * xfont.c (xfont_open): Fix setting of font->average_width from
457         :avgwidth property (Bug#7123).
459 2010-09-28  Michael Albinus  <michael.albinus@gmx.de>
461         * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
462         is more portable.
464         * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
465         (kbd_buffer_get_event): ... here. This is needed for cygwin, which
466         has not defined SIGIO.
468 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
470         * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
471         (Bug#7113)
473 2010-09-26  Jan Djärv  <jan.h.d@swipnet.se>
475         * xgselect.c (xg_select): Clear file descriptors not set from
476         rfds and wfds.
478 2010-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
480         * syntax.c (back_comment): Detect the case where a 1-char comment
481         starter is also the 2nd char of a 2-char comment ender.
483 2010-09-17  Jan Djärv  <jan.h.d@swipnet.se>
485         * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
487 2010-09-12  Jan Djärv  <jan.h.d@swipnet.se>
489         * xterm.c (get_current_vm_state): New function.
490         (do_ewmh_fullscreen): Call get_current_vm_state and compare with
491         want_fullscreen so set_wm_state calls are few (Bug#7013).
492         (x_handle_net_wm_state): Move code to get_current_vm_state and
493         call that function.
495 2010-09-11  Courtney Bane  <emacs-bugs-7626@cbane.org>  (tiny change)
497         * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
499 2010-09-08  Kenichi Handa  <handa@m17n.org>
501         * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
502         we may use designation or locking-shift.
504 2010-09-07  Kenichi Handa  <handa@m17n.org>
506         * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
507         sequence when the source is multibyte.
509 2010-08-31  Kenichi Handa  <handa@m17n.org>
511         * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
512         characters.
514         * term.c (encode_terminal_code): Fix the previous change.
515         (produce_glyphs): Don't set it->char_to_display here.
516         Don't handle unibyte-display-via-language-environment here.
517         (produce_special_glyphs): Set temp_it.char_to_display before
518         calling produce_glyphs.
520         * xdisp.c (get_next_display_element): Set it->char_to_display
521         here.  Convert all 8-bit bytes from unibyte buffer/string to 8-bit
522         characters.
523         (get_overlay_arrow_glyph_row): Set it.char_to_display too before
524         calling PRODUCE_GLYPHS.
525         (append_space_for_newline): Save and store it->char_to_display.
526         Set it->char_to_display before calling PRODUCE_GLYPHS.
527         (extend_face_to_end_of_line): Set it->char_to_display before
528         calling PRODUCE_GLYPHS.
529         (get_glyph_face_and_encoding): Set the glyph code an 8-bit
530         character to its byte value.
531         (get_char_glyph_code): New function.
532         (produce_stretch_glyph): Set it2.char_to_display too before
533         calling x_produce_glyphs.
534         (x_produce_glyphs): Simplify by using the same code for ASCII and
535         non-ASCII characters.  Don't set it->char_to_display here.
536         Don't handle unibyte-display-via-language-environment here.  For a
537         character of no glyph, use font->space_width instead of FONT_WIDTH.
539 2010-08-29  Kenichi Handa  <handa@m17n.org>
541         * term.c (encode_terminal_code): Encode byte chars to the
542         correspnding bytes.
544 2010-08-17  Andreas Schwab  <schwab@linux-m68k.org>
546         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
547         instead of SAFE_ALLOCA.
549 2010-08-17  Chong Yidong  <cyd@stupidchicken.com>
551         * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
552         (Bug#6214).
554 2010-08-14  Jan Djärv  <jan.h.d@swipnet.se>
556         * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
558 2010-08-13  Jan Djärv  <jan.h.d@swipnet.se>
560         * doc.c (Fsnarf_documentation): Initialize skip_file before
561         build-files test.
563 2010-08-09  Peter O'Gorman <pogma@thewrittenword.com>  (tiny change)
565         * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
566         New definitions.
567         (HAVE_TERMIO): Remove.
569 2010-08-06  Kenichi Handa  <handa@m17n.org>
571         * charset.c: Include <stdlib.h>
572         (struct charset_sort_data): New struct.
573         (charset_compare): New function.
574         (Fsort_charsets): New function.
575         (syms_of_charset): Declare Fsort_charsets as a Lisp function.
577         * coding.c (decode_coding_iso_2022): Fix checking of dimension
578         number in CTEXT extended segment.
580 2010-08-01  Juanma Barranquero  <lekktu@gmail.com>
582         * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
583         * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
585 2010-07-30  Juanma Barranquero  <lekktu@gmail.com>
587         * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
588         (Fhash_table_size): Fix typos in docstrings.
589         (Fmake_hash_table): Doc fix.
591 2010-07-28  Juanma Barranquero  <lekktu@gmail.com>
593         * minibuf.c (syms_of_minibuf) <read-buffer-function>:
594         Doc fix (bug#5625).
596 2010-07-27  Ken Brown  <kbrown@cornell.edu>
598         * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
599         the MSDOS definition.
601 2010-07-25  Christoph Scholtes  <cschol2112@gmail.com>
603         * minibuf.c (Fread_buffer): Doc fix (bug#6528).
605 2010-07-22  Christoph Scholtes  <cschol2112@gmail.com>
607         * window.c (Fwindow_height): Doc fix (bug#6518).
609 2010-07-21  Juanma Barranquero  <lekktu@gmail.com>
611         * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
613 2010-07-17  Jan Djärv  <jan.h.d@swipnet.se>
615         * gtkutil.c (xg_event_is_for_menubar): Also check that event window
616         is related to the menu bar (Bug#6499).
618 2010-07-14  Jan Djärv  <jan.h.d@swipnet.se>
620         * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
622         * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
624         * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
625         i.e. don't put back ButtonRelease (Bug#6608).
627         * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
628         instead of Window.  Call xg_event_is_for_menubar when
629         USE_GTK (Bug#6499).
631         * gtkutil.h (xg_event_is_for_menubar): Declare.
633         * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
635 2010-07-14  Eli Zaretskii  <eliz@gnu.org>
637         * w32fns.c (x_set_foreground_color): Fix setting the cursor color
638         when it's the same as the old foreground.  (Bug#6609)
640 2010-07-10  Chong Yidong  <cyd@stupidchicken.com>
642         * xfaces.c (realize_face): Garbage the frame if a face is removed
643         (Bug#6593).
645 2010-07-05  Andreas Schwab  <schwab@linux-m68k.org>
647         * keyboard.c: Remove duplicate <setjmp.h>.
648         (read_key_sequence): Remove volatile qualifiers.
650 2010-07-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
652         * dispextern.h (FRINGE_HEIGHT_BITS): New define.
653         (struct glyph_row): New members left_fringe_offset and
654         right_fringe_offset.
656         * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
657         specially.
658         * w32term.c (w32_draw_fringe_bitmap): Likewise.
659         * nsterm.m (ns_draw_fringe_bitmap): Likewise.
661         * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
662         Take account of bitmap offset.
663         (draw_window_fringes): Take account of window vscroll.
664         (update_window_fringes): Likewise.  Extend top-aligned top indicator
665         or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
666         in one row.  Don't set redraw_fringe_bitmaps_p outside row comparison.
667         Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
669 2010-07-04  Juanma Barranquero  <lekktu@gmail.com>
671         * w32fns.c (Qtooltip): Declare.
672         Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
674 2010-07-03  Jan Djärv  <jan.h.d@swipnet.se>
676         * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
677         grab on just Press (Bug#6499).
679 2010-07-02  Chong Yidong  <cyd@stupidchicken.com>
681         * frame.c (Qtooltip): New var.
682         (delete_frame): Use it.  Fix faulty if statement.  Don't update
683         mode line for tooltip frames.  Suggested by Martin Rudalics.
685         * xfns.c (x_create_tip_frame):
686         * w32fns.c (x_create_tip_frame): Use it.
688 2010-06-30  Naohiro Aota  <naota@elisp.net>  (tiny change)
690         * xftfont.c (xftfont_open): Check font width one by one also when
691         spacing is dual.
693         * ftfont.c (ftfont_open): Ditto.
695 2010-06-26  Andreas Schwab  <schwab@linux-m68k.org>
697         * alloc.c (Fmake_byte_code): Don't access undefined argument
698         (Bug#6517).
700 2010-06-25  Chong Yidong  <cyd@stupidchicken.com>
702         * xdisp.c (next_element_from_image): Ensure that after-strings are
703         read the next time we hit handle_stop (Bug#1336).
705 2010-06-23  Andreas Schwab  <schwab@linux-m68k.org>
707         * lread.c (read1): Signal error if #s is not followed by paren.
709 2010-06-19  Chong Yidong  <cyd@stupidchicken.com>
711         * image.c (free_image): Mark frame as garbaged (Bug#6426).
713         * keymap.c (Fdefine_key): Doc fix (Bug#6460).
715 2010-06-15  Glenn Morris  <rgm@gnu.org>
717         * editfns.c (Fbyte_to_string): Pacify compiler.
719 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
721         * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
722         Check `object's type before accessing its guts.
724 2010-06-08  Andreas Schwab  <schwab@linux-m68k.org>
726         * minibuf.c (Fall_completions): Add more checks.
728 2010-06-08  Juanma Barranquero  <lekktu@gmail.com>
730         * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
732 2010-06-03  Andreas Schwab  <schwab@linux-m68k.org>
734         * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
735         address.  (Bug#6346)
737 2010-06-03  Juanma Barranquero  <lekktu@gmail.com>
739         * ccl.c (Fccl_program_p): Fix typo in docstring.
741 2010-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
743         * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
744         of bug#6305).
746 2010-05-27  Chong Yidong  <cyd@stupidchicken.com>
748         * xdisp.c (redisplay_window): After redisplay, check if point is
749         still valid before setting it (Bug#6177).
751 2010-05-20  enami tsugutomo  <tsugutomo.enami@jp.sony.com>
753         * s/netbsd.h: If terminfo is found, use it in preference to
754         termcap.  (Bug#6190)  [Backport from trunk]
756 2010-05-20  Kevin Ryde  <user42@zip.com.au>
758         * keyboard.c (Vlast_command, Vkeyboard_translate_table)
759         (Voverriding_terminal_local_map, Vsystem_key_alist)
760         (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
762 2010-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
764         * editfns.c (Fbyte_to_string): New function.
766 2010-05-18  Chong Yidong  <cyd@stupidchicken.com>
768         * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
769         prevent stack overflow if number of arguments is too large
770         (Bug#6214).
772 2010-05-11  Eli Zaretskii  <eliz@gnu.org>
774         * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
776         * w32fns.c: Include w32.h.
777         (Fw32_shell_execute): Decode the error message before passing it
778         to `error'.  (Bug#6126)
780 2010-05-11  Karel Klic  <kklic@redhat.com>
782         * ftfont.c: Fix incorrect parentheses of #if condition for
783         definining M17N_FLT_USE_NEW_FEATURE.
785 2010-05-07  Chong Yidong  <cyd@stupidchicken.com>
787         * Version 23.2 released.
789 2010-04-30  Andreas Schwab  <schwab@linux-m68k.org>
791         * composite.c (autocmp_chars): Save point as marker before calling
792         auto-composition-function (Bug#5984).
794         * lisp.h (restore_point_unwind): Add prototype.
796         * fileio.c (restore_point_unwind): Remove static attribute.
798 2010-04-23  Kenichi Handa  <handa@m17n.org>
800         * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
801         new feature of libotf and m17n-flt.
802         (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
803         Call OTF_check_features even if no specific feature is given.
804         (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
805         (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
806         that OUT is NULL.  Use OTF_drive_gsub_with_log and
807         OTF_drive_gpos_with_log instead of OTF_drive_gsub and
808         OTF_drive_gpos.
809         (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
810         (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
811         Setup mflt_enable_new_feature and mflt_try_otf.
813 2010-04-19  Juanma Barranquero  <lekktu@gmail.com>
815         * dired.c (Ffile_attributes): Fix typo in docstring.
817 2010-04-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
819         * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
820         NSInteger (Bug#5811).
822 2010-04-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
824         * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
825         (PTY_OPEN): New defines.  Use openpty (Bug#726, Bug#5819).
827 2010-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
829         * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
831 2010-04-07  Jan Djärv  <jan.h.d@swipnet.se>
833         * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
834         FRAME_LINE_TO_PIXEL_Y.
836         * xterm.c (x_set_window_size_1): Don't add border_width/height to
837         pixelwidth/height.
839 2010-04-05  Chong Yidong  <cyd@stupidchicken.com>
841         * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
842         terminal frames (Bug#5837).
844 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
846         * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
847         * nsterm.h: Fix prototype.
849 2010-03-31  Eli Zaretskii  <eliz@gnu.org>
851         * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
852         in this function.  (Bug#5703)
854 2010-03-31  Chong Yidong  <cyd@stupidchicken.com>
856         * nsterm.h: Fix last change.
858 2010-03-30  Bernhard Herzog  <bh@intevation.de>  (tiny change)
860         * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
862 2010-03-30  Jan Djärv  <jan.h.d@swipnet.se>
864         * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
865         invisible (Bug#5766).
867 2010-03-29  Adrian Robert  <adrian.b.robert@gmail.com>
869         * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
870         HAVE_NS conditionals.
871         (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
873         * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
874         filename for the title.
875         (ns_set_doc_edited): Do nothing if the selected window is a
876         minibuffer window.
878         * nsterm.h: Add prototypes for ns_set_name_as_filename and
879         ns_set_doc_edited.
881         * nsterm.m: Remove unneeded prototype.
883 2010-03-28  Glenn Morris  <rgm@gnu.org>
885         * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
886         in the DOC file.  (Bug#5336)
888 2010-03-24  Chong Yidong  <cyd@stupidchicken.com>
890         * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
892 2010-03-20  Jan Djärv  <jan.h.d@swipnet.se>
894         * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
896         * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
898         * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
900 2010-03-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
902         * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
903         XLoadQueryFont.
905 2010-03-16  Kenichi Handa  <handa@m17n.org>
907         * coding.c (decode_coding_ccl): Fix previous change for the
908         multibyte case.
909         (encode_coding_ccl): Don't setup ccl program here.  Fix for the
910         case that the output buffer is fullfilled.
911         (encode_coding): Setup ccl program here.
913 2010-03-15  Andreas Politz  <politza@fh-trier.de>  (tiny change)
915         * editfns.c (Fformat): Account for string precision when computing
916         field width (Bug#5710).
918 2010-03-05  Stefan Monnier  <monnier@iro.umontreal.ca>
920         Make it possible to C-g in a tight bytecode loop again (bug#5680).
921         * lisp.h (ELSE_PENDING_SIGNALS): New macro.
922         (QUIT): Use it to consolidate code and remove redundancy.
923         * bytecode.c (BYTE_CODE_QUIT): Use it as well.
925         * regex.c (regex_compile): Setup gl_state as well.
927         * syntax.c (skip_chars): Setup gl_state (bug#3823).
928         (in_classes): Use CONSP before XCAR/XCDR.
930 2010-03-03  Chong Yidong  <cyd@stupidchicken.com>
932         * keymap.c (Fwhere_is_internal): Use Fequal to compare
933         definitions, so that keyboard macros are correctly handled
934         (Bug#5481).
936 2010-03-02  Eli Zaretskii  <eliz@gnu.org>
938         * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
939         text that could be relocated inside the call to emacs_mule_char.
940         (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
941         (CODING_DECODE_CHAR): Add a comment describing its purpose.
943 2010-03-02  Kenichi Handa  <handa@m17n.org>
945         * character.c (parse_str_as_multibyte): Fix handling of the
946         multibyte form of raw-bytes.
947         (str_as_multibyte): Likewise.
949         * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
950         form of raw-bytes.
952 2010-02-28  Chong Yidong  <cyd@stupidchicken.com>
954         * charset.c (load_charset_map_from_file)
955         (load_charset_map_from_vector): Zero out allocated
956         charset_map_entries before using them.
958 2010-02-27  Andreas Schwab  <schwab@linux-m68k.org>
960         * w32uniscribe.c (uniscribe_check_otf): Fix length check.
962 2010-02-27  Chong Yidong  <cyd@stupidchicken.com>
964         * font.c (font_parse_fcname): Recognize "Book", "Condensed",
965         "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
967 2010-02-26  Kenichi Handa  <handa@m17n.org>
969         * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
971         * xdisp.c (reseat_to_string): Fix previous change.
973 2010-02-26  David Reitter  <david.reitter@gmail.com>
975         * nsfont.m (nsfont_draw): ns_antialias_text should be a
976         Lisp_Object (Bug#4736).
978 2010-02-25  Kenichi Handa  <handa@m17n.org>
980         * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
982 2010-02-24  Jan Djärv  <jan.h.d@swipnet.se>
984         * xterm.c (XTflash): Move declarations before statements.
986         * gtkutil.c (xg_get_gdk_display): Remove (unused).
987         (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
988         (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
989         (xg_create_tool_bar): Remove unused variables.
990         (x_wm_set_size_hint): Move declarations before statements.
991         (xg_create_frame_widgets): Remove variable grav.
993 2010-02-21  Chong Yidong  <cyd@stupidchicken.com>
995         * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
997 2010-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
999         * term.c (fatal): Add a final \n if needed (bug#5596).
1001 2010-02-18  Chong Yidong  <cyd@stupidchicken.com>
1003         * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1005 2010-02-18  Glenn Morris  <rgm@gnu.org>
1007         * callint.c (Finteractive): Doc fix.
1009 2010-02-18  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>  (tiny change)
1011         * coding.c (record_conversion_result):
1012         Handle CODING_RESULT_INSUFFICIENT_DST.
1013         (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1014         memory allocation error.
1016 2010-02-17  Kenichi Handa  <handa@m17n.org>
1018         * coding.c (decode_coding_ccl): Don't setup ccl program here.
1019         Fix for the case that the output buffer is fullfilled.
1020         (decode_coding): Setup ccl program here.  Keep looping when the
1021         decoder stopped because the output buffer is
1022         fullfilled (bug#5534).
1024         * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1026 2010-02-13  Jan Djärv  <jan.h.d@swipnet.se>
1028         * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
1029         bug #5571.
1030         (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
1031         overdrawn.
1033 2010-02-10  Jan Djärv  <jan.h.d@swipnet.se>
1035         * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1036         doing_interact here.
1037         (ice_connection_closed): New function.
1038         (x_session_check_input, smc_die_CB, ice_io_error_handler)
1039         (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1040         (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1041         returns I/O error.
1042         (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1043         bug #5512.
1045 2010-02-08  Francis Devereux  <francis@devrx.org>  (tiny change)
1047         * nsfont.m (nsfont_open): The system's value for the font descent
1048         is negative, so round it down to avoid clipping.
1050 2010-02-06  Chong Yidong  <cyd@stupidchicken.com>
1052         * charset.c (load_charset_map_from_file)
1053         (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
1054         instead of xmalloc (Bug#5526).  Suggested by Vivek Dasmohapatra.
1056 2010-02-05  Chong Yidong  <cyd@stupidchicken.com>
1058         * charset.c (load_charset_map_from_file): Allocate large
1059         charset_map_entries structure on the heap rather than the stack.
1060         (Bug#5526).
1062 2010-01-31  Kenichi Handa  <handa@m17n.org>
1064         * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
1065         size in NAME is invalid, return -1 (Bug#5396).
1067 2010-01-31  Chong Yidong  <cyd@stupidchicken.com>
1069         * nsterm.m (ns_defined_color): Block input.  Suggested by Mike
1070         <deactivated@gmail.com> (Bug#3605).
1072 2010-01-31  David De La Harpe Golden  <david@harpegolden.net>
1074         * fileio.c (Frename_file): Correctly rename symlinks to
1075         directories (Bug#5496).
1077 2010-01-31  Filipe Cabecinhas  <filcab@gmail.com>  (tiny change)
1079         * nsterm.m (ns_ring_bell): Handle visible bell like X.
1081 2010-01-30  Andreas Schwab  <schwab@linux-m68k.org>
1083         * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1085 2010-01-29  Chong Yidong  <cyd@stupidchicken.com>
1087         * frame.c (DEFAULT_ROWS): Change default to 35.
1089         * xfns.c (x_default_font_parameter): Change default XFT font to
1090         monospace-10 (Bug#3643).
1092 2010-01-29  Eli Zaretskii  <eliz@gnu.org>
1094         * w32inevt.c (key_event): Remove unnecessary comparison of
1095         event->uChar.AsciiChar with 128.
1097 2010-01-28  Chong Yidong  <cyd@stupidchicken.com>
1099         * fileio.c (Frename_file): Fix last change (Bug#5487).
1101         * m/mips.h: Remove DATA_START.  Suggested by Dan Nicolaescu.
1103         * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1105 2010-01-28  Jan Djärv  <jan.h.d@swipnet.se>
1107         * xfns.c (Fx_create_frame): Remove window size matching code from
1108         2010-01-15.
1109         (x_get_current_desktop, x_get_desktop_workarea): Remove.
1111 2010-01-27  Jason Rumney  <jasonr@gnu.org>
1113         * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
1114         (key_event): Use unicode for characters 128 and higher (Bug#4567).
1116 2010-01-27  Kenichi Handa  <handa@m17n.org>
1118         * regex.c (analyse_first): Fix setting of fastmap for unibyte
1119         pattern string (Bug#4209).
1121 2010-01-27  David De La Harpe Golden  <david@harpegolden.net>
1123         * fileio.c (Frename_file): Call copy-directory and
1124         delete-directory for directories, in order to handle cross-device
1125         renaming (Bug#3353).
1127 2010-01-25  Jan Djärv  <jan.h.d@swipnet.se>
1129         * xfns.c (Fx_create_frame): If frame height is too big, try
1130         sizes 24 and 10.  Bug #3643.
1132 2010-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
1134         Try and fix bug#788, hopefully for real this time.
1135         * keymap.c (shadow_lookup): Add `remap' arg.
1136         (describe_map, describe_vector): Update calls to shadow_lookup.
1137         (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1138         `remapped' so this flag is applicable to `sequence'.  Be careful to
1139         perform remapping during shadow_lookup check of remapped_sequences.
1141 2010-01-24  Eric Bélanger  <snowmaniscool@gmail.com>  (tiny change)
1143         * image.c (png_load): Use png_sig_cmp instead of the obsolete
1144         png_check_sig, which has been removed in libpng 1.4.
1146 2010-01-23  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
1148         * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1149         lacks this header file).
1151 2010-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1153         * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1154         as in Emacs 22.
1156 2010-01-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1158         * lisp.h (make_pure_string): String pointer arg now points to const.
1160         * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1161         args now point to const.
1163 2010-01-22  Eli Zaretskii  <eliz@gnu.org>
1165         * lread.c (Fload): Don't treat files without .elc extension as
1166         byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1167         them.  (bug#5303)
1169 2010-01-20  Kenichi Handa  <handa@m17n.org>
1171         * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1172         treat the source as actual byte sequence.
1174 2010-01-19  Alan Mackenzie  <acm@muc.de>
1176         Fix spurious before-change-functions invocation from (insert ?\n).
1177         * textprop.c (set_text_properties): Rename parameter
1178         `signal_after_change_p' to `coherent_change_p', and make the
1179         invocation of `modify_region' conditional on it.
1181 2010-01-19  Jan Djärv  <jan.h.d@swipnet.se>
1183         * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1184         for debug purpose.
1185         (syms_of_xsettings): Declare xft-settings.
1187 2010-01-18  Chong Yidong  <cyd@stupidchicken.com>
1189         * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1191 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
1193         * xterm.c (event_handler_gdk): Block input (Bug#5037).
1195 2010-01-16  Chong Yidong  <cyd@stupidchicken.com>
1197         * emacs.c (standard_args): Adjust arg priorities to reflect how
1198         they are processed in startup.el.
1200 2010-01-16  Andreas Schwab  <schwab@linux-m68k.org>
1202         * Makefile.in (lisp, shortlisp): Update.
1204 2010-01-16  Stefan Monnier  <monnier@iro.umontreal.ca>
1206         * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1207         code, link the new kboard into all_kboard before running Lisp code,
1208         and protect the new terminal with GCPRO (Bug#5365).
1209         (x_term_init): Remove unused var `atom'.
1210         (x_delete_display, x_delete_terminal): Remove unused var `i'.
1212 2010-01-15  Jan Djärv  <jan.h.d@swipnet.se>
1214         * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1215         (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1216         to find out usable size of the desktop.  Don't make frames larger than
1217         this.  Bug #3643.
1219 2010-01-15  Kenichi Handa  <handa@m17n.org>
1221         * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS.  Callers changed.
1223 2010-01-15  Chong Yidong  <cyd@stupidchicken.com>
1225         * nsterm.m (Qnone): Define.
1227         * nsfns.m (Qnone): Move definition to nsterm.m.
1229 2010-01-14  Kenichi Handa  <handa@m17n.org>
1231         * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1232         systems.
1234 2010-01-14  Kenichi Handa  <handa@m17n.org>
1236         Make auto-composition work on all buffers even if they are
1237         fundamental mode.
1239         * composite.c (Vauto_composition_mode): New variable.
1240         (composition_compute_stop_pos): Check Vauto_composition_mode
1241         instead of Vauto_composition_function.
1242         (composition_adjust_point, Ffind_composition_internal): Likewise.
1243         (syms_of_composite): Declare Lisp variable
1244         "auto-composition-mode" here.
1246 2010-01-13  Chong Yidong  <cyd@stupidchicken.com>
1248         * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1249         during call to vendor-specific-keysyms (Bug#5365).
1251 2010-01-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1253         * keyboard.c (input_available_signal) [SYNC_INPUT]:
1254         Call SIGNAL_THREAD_CHECK (Bug#5333).
1256         * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1257         Call SIGNAL_THREAD_CHECK.
1259 2010-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1261         Try to fix bug#5314.  This is probably not the final word, tho.
1262         * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1263         recent-auto-save-p as a side-effect.
1264         * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1265         * buffer.c (Fkill_buffer, reset_buffer):
1266         * editfns.c (Fsubst_char_in_region):
1267         * fileio.c (Finsert_file_contents, Fdo_auto_save)
1268         (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1270 2010-01-13  Kenichi Handa  <handa@m17n.org>
1272         Display buffer name, etc. in mode line by composing correctly.
1274         * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1275         STRING is not nil.
1276         (display_mode_element): Adjust for the change of
1277         decode_mode_spec and display_line.
1278         (decode_mode_spec): Change arg MULTIBYTE to STRING.
1279         (display_string): Handle the case that STRING is non-null and
1280         LISP_STRING is not nil.
1282         * xterm.c (x_draw_composite_glyph_string_foreground):
1283         Pay attention to s->face->overstrike.
1285         * composite.c (composition_reseat_it): Don't check PT if STRING is
1286         non nil.
1288 2010-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1290         * keyboard.c (read_char): Don't apply previous change when current
1291         buffer is unchanged by command execution.
1293 2010-01-12  Jan Djärv  <jan.h.d@swipnet.se>
1295         * keyboard.c (read_char): Return after executing from special map.
1297 2010-01-12  Glenn Morris  <rgm@gnu.org>
1299         * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1300         bug-gnu-emacs rather than emacs-pretest-bug.
1302 2010-01-11  Chong Yidong  <cyd@stupidchicken.com>
1304         * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1305         initializing the Lisp variables that depend on them.
1307 2010-01-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1309         * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1310         Clear areas that will not be updated after change of menu bar lines.
1311         Clear the menu bar window's current matrix when the window gets empty.
1313 2010-01-09  Chong Yidong  <cyd@stupidchicken.com>
1315         * intervals.h, textprop.c (extend_property_ranges): Return value
1316         and args changed.  Discard properties that begin at or after the
1317         new end (Bug#5306).
1319         * editfns.c (Fformat): Caller changed.
1321         * nsterm.m (ns_set_default_prefs): Delete function.
1322         (syms_of_nsterm): Initialize ns_command_modifier,
1323         ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1324         ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1326         * xdisp.c (pos_visible_p): Check for invisible text at the correct
1327         position (Bug#4040).
1329 2010-01-09  Eli Zaretskii  <eliz@gnu.org>
1331         * editfns.c (Ffloat_time): Doc fix.
1333 2010-01-09  Jan Djärv  <jan.h.d@swipnet.se>
1335         * xfns.c (Fx_create_frame): Don't create frame larger than display
1336         by default bug#3643.
1338 2010-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1340         * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1341         (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1342         windows above internal border.
1344         * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1345         (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1346         windows above internal border.
1348         * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1349         tool bar windows specially.
1351         * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1353         * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1354         specially.
1355         (XTflash): Take account of menu bar height.
1357         * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1358         specially.
1360 2010-01-08  Jan Djärv  <jan.h.d@swipnet.se>
1362         * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
1363         also be true before we can return early (bug #5339).
1365 2010-01-06  David Reitter  <david.reitter@gmail.com>
1367         * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1368         (Fns_display_usable_bounds): Rewrite, computing bounds properly
1369         (Bug#3233).
1371 2010-01-06  Jan Djärv  <jan.h.d@swipnet.se>
1373         * font.c (font_open_entity): Enable chache and call cached_font_ok
1374         for the driver if defined.
1375         (QCuser_spec): New symbol.
1376         (font_spec_from_name): Save name as user-spec.
1377         (font_load_for_lface): Keep user-spec instead of name.
1378         (font_open_by_name): Save name as user-spec.
1379         (syms_of_font): Initialize QCuser_spec.
1380         (font_clear_prop): Clear name if it exists in font (bug#5157).
1382         * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1383         (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1384         (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1386         * font.h (struct font_driver): Add cached_font_ok.
1388         * xterm.c (x_clear_frame): Queue draw for scroll bars.
1390 2010-01-05  Jan Djärv  <jan.h.d@swipnet.se>
1392         * xterm.c (x_new_font): Move code for setting rows/cols before
1393         resizing ...
1394         (x_set_window_size): ... to here.  Bug #2568.
1396         * gtkutil.c (xg_clear_under_internal_border): New function.
1397         (xg_frame_resized, xg_frame_set_char_size):
1398         Call xg_clear_under_internal_border.
1399         (xg_update_scrollbar_pos): Clear under old scroll bar position.
1401 2010-01-05  Chong Yidong  <cyd@stupidchicken.com>
1403         * keyboard.c (read_key_sequence): Catch keyboard switch after
1404         making a new tty frame (Bug#5095).
1406 2010-01-05  Kenichi Handa  <handa@m17n.org>
1408         * fontset.c (fontset_find_font): Fix getting the frame pointer.
1410 2010-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
1412         * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1413         Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1414         (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1416 2010-01-03  Michael Albinus  <michael.albinus@gmx.de>
1418         * dbusbind.c (xd_add_watch): Improve debug message.
1419         (xd_remove_watch): Improve debug message.  If DATA is the session
1420         bus, unset D-Bus session environment.
1421         (Fdbus_init_bus): Pass the bus as argument to
1422         dbus_connection_set_watch_functions.  (Bug#5283)
1424 2010-01-01  Chong Yidong  <cyd@stupidchicken.com>
1426         * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1428         * lread.c (syms_of_lread): Make it clearer that these are the
1429         names of loaded files (Bug#5068).
1431         * eval.c (run_hook_with_args): Handle the case where the global
1432         value has the obsolete single-function form (Bug#5026).
1434 2009-12-27  Chong Yidong  <cyd@stupidchicken.com>
1436         * minibuf.c (Fall_completions): Minor optimization.
1438 2009-12-26  Eli Zaretskii  <eliz@gnu.org>
1440         * .gdbinit (pgx): Fix display of composite glyphs.
1441         Display cmp.from and cmp.to as well.
1442         (pitx): Fix last change.
1444 2009-12-25  Kenichi Handa  <handa@m17n.org>
1446         * composite.h (composition_adjust_point): Update prototype.
1448         * composite.c (composition_reseat_it): Don't make a composition
1449         spanning over point.
1450         (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1451         composable characters.
1452         (composition_adjust_point): New arg NEW_PT.  Callers changed.
1454         * keyboard.c (command_loop_1): Force redisplay if the last point
1455         was within a composition.
1456         (adjust_point_for_property): Don't adjust point for automatic
1457         composition when called after buffer modification.
1459 2009-12-19  Eli Zaretskii  <eliz@gnu.org>
1461         * .gdbinit (pitx): Don't use enum names, use their values.
1462         Remove reference to non-existing value GET_FROM_COMPOSITION.
1463         (pgx): Don't use enum names, use their values.
1464         (pitmethod): New helper command.
1465         (pitx): Use it to display iteration method.
1466         (pgrowit): New command.
1468         * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1470         Update dependencies in Makefile.in.
1472         * Makefile.in (alloc.o): Depend on termhooks.h.
1473         (atimer.o): Depend on blockinput.h.
1474         (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1475         and frame.h.
1476         (callint.o): Depend on systime.h, coding.h, and composite.h.
1477         (callproc.o): Depend on buffer.h.
1478         (casefiddle.o): Don't depend on charset.h.
1479         (casetab.o): Depend on character.h.
1480         (ccl.o): Depend on composite.h.
1481         (chartab.o): Depend on ccl.h.
1482         (cm.o): Depend on dispextern.h.
1483         (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1484         (coding.o): Don't depend on $(INTERVALS_H).
1485         (composite.o): Don't depend on dispextern.h explicitly (it's in
1486         $(INTERVALS_H)).  Depend on ccl.h.
1487         (data.o): Depend on systime.h, coding.h, composite.h,
1488         dispextern.h, font.h, and ccl.h.
1489         (dired.o): Depend on composite.h.
1490         (dispnew.o): Depend on coding.h.  Don't depend explicitly on
1491         composite.h (it's in $(INTERVALS_H)).
1492         (doc.o): Depend on systime.h, coding.h, and composite.h.
1493         (editfns.o): Don't depend explicitly on dispextern.h.
1494         (emacs.o): Depend on frame.h and coding.h.
1495         (eval.o): Depend on coding.h, composite.h, and xterm.h.
1496         (fileio.o): Depend on frame.h and commands.h.  Don't depend
1497         explicitly on dispextern.h.
1498         (filelock.o): Don't depend on epaths.h and charset.h.  Depend on
1499         composite.h.
1500         (fns.o): Don't depend on termhooks.h.
1501         (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1502         (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1503         coding.h, $(INTERVALS_H), window.h, xterm.h.
1504         (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1505         (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1506         (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1507         fontset.h, ccl.h, and ftfont.h.
1508         (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1509         (gtkutil.o): Depend on dispextern.h and composite.h.
1510         (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1511         termhooks.h, and ccl.h.
1512         (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1513         (intervals.o): Depend on systime.h and coding.h.
1514         (keyboard.o): Depend on composite.h and coding.h.
1515         (keymap.o): Depend on coding.h and frame.h.
1516         (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1517         (macros.o): Depend on systime.h, coding.h, and composite.h.
1518         (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1519         and atimer.h.
1520         (minibuf.o): Depend on systime.h and coding.h.  Don't depend on
1521         dispextern.h explicitly.
1522         (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1523         Don't depend explicitly on dispextern.h and composite.h.
1524         (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1525         (regex.o): Don't depend on charset.h.
1526         (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1527         (search.o): Don't depend explicitly on composite.h.
1528         (sound.o): Depend on atimer.h and systime.h.
1529         (syntax.o): Don't depend explicitly on composite.h.
1530         (sysdep.o): Depend on coding.h and composite.h.
1531         (term.o): Depend on xterm.h and buffer.h.
1532         (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1533         (textprop.o): Don't depend on dispextern.h explicitly.
1534         (undo.o): Depend on dispextern.h.
1535         (window.o): Depend on coding.h and termhooks.h.  Don't depend on
1536         dispextern.h and composite.h explicitly.
1537         (xdisp.o): Depend on ccl.h.
1538         (xfaces.o): Depend on coding.h and ccl.h.
1539         (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1540         (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1541         (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1542         ftfont.h.
1543         (xgselect.o): New dependency.
1544         (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1545         (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1546         (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1547         coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1548         (xsmfns.o): Depend on frame.h and dispextern.h.
1549         (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1550         sysselect.h.
1552 2009-12-19  Andreas Schwab  <schwab@linux-m68k.org>
1554         * font.c (Fclear_font_cache): Pass correct cache argument to
1555         font_clear_cache.
1557 2009-12-16  Andreas Schwab  <schwab@linux-m68k.org>
1559         * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1560         twice.
1562 2009-12-15  Chong Yidong  <cyd@stupidchicken.com>
1564         * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1565         calling file-remote-p.  Reported by Jim Meyering.
1567 2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
1569         * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1570         avoid compiler warnings.  (Bug #5217)
1572 2009-12-14  Kenichi Handa  <handa@m17n.org>
1574         * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1575         in 8-bit encoding.
1577 2009-12-13  Pat Thoyts  <patthoyts@users.sourceforge.net>  (tiny change)
1579         * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1580         tooltip windows.
1582 2009-12-13  Jan Djärv  <jan.h.d@swipnet.se>
1584         * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1585         Xatom_net_window_type.
1587         * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1588         Xatom_net_window_type.
1590         * xterm.c (my_log_handler): New function.
1591         (x_term_init): Set my_log_handler as log handler during gtk_init
1592         so we can filter out buggy messages.  (Bug #5120).
1594         * xterm.c (xg_scroll_callback): Parameter list changed,
1595         use parameter GtkScrollType to determine scroll/line/page.
1596         Only allow dragging if a button < 4 is grabbed (bug #5177).
1597         (xg_end_scroll_callback): New function.
1598         (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1599         xg_create_scroll_bar.
1601         * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1602         (scroll_end_callback): Remove.
1603         (xg_create_scroll_bar): Add parameter end_callback, bind it to
1604         button-release-event.  Replace value-changed event with change-value,
1605         bug #5177,
1606         (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1607         bug #5177.
1609         * gtkutil.h (XG_LAST_SB_DATA): Remove.
1610         (xg_create_scroll_bar): Add GCallback end_callback.
1612         * xftfont.c (QClcdfilter): New variable.
1613         (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1614         (syms_of_xftfont): Initialize QClcdfilter.
1616 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
1618         * xsettings.c (struct xsettings): Add member seen.
1619         (parse_xft_settings): Update member seen with what we have read.
1620         Return non-zero if Xft-settings have been parsed, 0 otherwise.
1621         (apply_xft_settings): Only update Xft settings with what member seen
1622         indicates as new.
1624 2009-12-12  Eli Zaretskii  <eliz@gnu.org>
1626         * dispextern.h (struct text_pos): Use EMACS_INT;
1627         (struct glyph): Use EMACS_INT for charpos.
1628         (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1629         region_beg_charpos, region_end_charpos,
1630         redisplay_end_trigger_charpos, and also for
1631         iterator_stack_entry.end_charpos and
1632         iterator_stack_entry.stop_charpos.
1634 2009-12-12  Jan Djärv  <jan.h.d@swipnet.se>
1636         * gtkutil.c (scroll_end_callback): New function (bug #5177).
1637         (xg_create_scroll_bar): Call scroll_end_callback on button release
1638         event (bug #5177).
1639         (xg_event_is_for_scrollbar): != replaced with ==.
1641 2009-12-12  Kenichi Handa  <handa@m17n.org>
1643         * ftfont.c (struct ftfont_info): New member matrix.
1644         (ftfont_open): Setup xftfont_info->matrix.
1645         (MFLTFontFT): New member matrix.
1646         (FLOOR, CEIL, ROUND): New macros.
1647         (ftfont_get_metrics): Handle matrix transformation.
1648         (ftfont_shape_by_flt): New arg matrix.  Callers changed.
1650         * xftfont.c (struct xftfont_info): New member matrix.
1651         (xftfont_open): Setup xftfont_info->matrix.
1653 2009-12-10  Kenichi Handa  <handa@m17n.org>
1655         * xdisp.c (append_space_for_newline): Consider face-remapping.
1657 2009-12-09  Andreas Schwab  <schwab@linux-m68k.org>
1659         * xsettings.c: Include "keyboard.h".
1661         * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1663         Fix implicit function declarations.
1664         * cmds.c: Include "frame.h".
1665         * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1666         * frame.h: Move declaration of delete_frame outside of
1667         HAVE_WINDOW_SYSTEM.
1669 2009-12-09  Ken Brown  <kbrown@cornell.edu>  (tiny change)
1671         * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1673         * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1674         GTK builds.
1676 2009-12-07  Andreas Schwab  <schwab@linux-m68k.org>
1678         * unexelf.c (unexec): Don't search for .data twice.
1680 2009-12-05  Chong Yidong  <cyd@stupidchicken.com>
1682         * xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
1683         if push failed.
1684         (handle_line_prefix): Set avoid_cursor_p here.  Check return value
1685         of push_display_prop (Bug#5000).
1687         * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1688         value of font_list_entities (Bug#5085).
1690 2009-12-04  Juanma Barranquero  <lekktu@gmail.com>
1692         Fix `string-to-number' to deal consistently with integers and floats.
1693         * lread.c (isfloat_string): New argument ignore_trailing to accept all
1694         trailing characters, not just whitespace.
1695         (read1): Pass new arg 0 to keep old behavior.
1696         * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1697         trailing chars, as it is already done for integers.  Doc fixes.
1698         * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1700 2009-12-04  Eli Zaretskii  <eliz@gnu.org>
1702         * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1703         Delete unused enumeration value.
1705 2009-12-03  Eli Zaretskii  <eliz@gnu.org>
1707         * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1709 2009-12-03  Daniel Hackney  <dan@haxney.org>  (tiny change)
1711         * process.c (Fmake_network_process): Fix up the tests for
1712         "connectionless socket", so they DTRT for seqpacket sockets as well.
1714 2009-12-03  Stefan Monnier  <monnier@iro.umontreal.ca>
1716         * process.c (Qseqpacket): New symbol.
1717         (HAVE_SEQPACKET): New macro.
1718         (Fmake_network_process): Accept new :type `seqpacket'.
1719         (init_process): Add `seqpacket' feature when applicable.
1720         (syms_of_process): Initialize Qseqpacket.
1722 2009-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1724         * font.c (font_load_for_lface, font_open_by_name): Don't store name
1725         if entity is Qnil.
1727 2009-11-30  Stefan Monnier  <monnier@iro.umontreal.ca>
1729         * print.c (print_preprocess): Preprocess the key_and_value table of
1730         hashtables, even tho they're "hidden" (bug#5082).
1732 2009-11-29  Jan Djärv  <jan.h.d@swipnet.se>
1734         * frame.c (frame_make_pointer_invisible)
1735         (frame_make_pointer_visible): Declare f before statements.
1737 2009-11-28  Eli Zaretskii  <eliz@gnu.org>
1739         * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1740         omitted dependencies on lisp.h.
1742 2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
1744         * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1745         is NULL.
1747         * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1749         * frame.c (frame_make_pointer_invisible)
1750         (frame_make_pointer_visible): Just return if there isn't any selected
1751         frame.
1753         * search.c (simple_search): Remove warning by making *p const.
1755 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
1757         * xdisp.c (power_letter): Remove duplicate const.
1759 2009-11-25  Jan Djärv  <jan.h.d@swipnet.se>
1761         * term.c (delete_tty): Remove check for last terminal (bug#4970).
1763         * xsettings.c: Revert changes from 2009-11-23.  Just use Xft
1764         defaults (bug #5025).
1766 2009-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
1768         * insdel.c (adjust_markers_for_delete): Move it in the
1769         right direction!  (bug#4803)
1771 2009-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1773         * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1775         * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1777 2009-11-24  Glenn Morris  <rgm@gnu.org>
1779         * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1781 2009-11-23  Jan Djärv  <jan.h.d@swipnet.se>
1783         * Makefile.in: Must create deps for ecrt0.o in its rule.
1785         * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1786         because that is what Gtk+ font dialog understands.
1788         * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1789         of Fcopy_sequence.
1790         (font_open_by_name): Put name given into QCname for font-object returned.
1792         * frame.c (x_set_font): Save original font name as frame parameter
1793         font-parameter.
1795         * xsettings.c (set_default_xft_settings): New function.
1796         (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1797         is found.
1799 2009-11-22  Andreas Schwab  <schwab@linux-m68k.org>
1801         * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1802         searching backwards through multibyte buffer.
1804 2009-11-21  Jan Djärv  <jan.h.d@swipnet.se>
1806         * xterm.c: #include xgselect.h.
1807         (x_initialize): Call xgselect_initialize.
1809         * xsettings.c (something_changedCB): C++ comments => C comments.
1810         (init_gconf): Do not deal with any GLib file descriptors, xg_select
1811         does that now.
1813         * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1814         (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1815         (scroll_bar_button_cb): Remove.
1816         (create_menus): C++ comments => C comments.  Don't bind grab-notify
1817         event.
1818         (xg_create_scroll_bar): Don't bind button-press-event and
1819         button-release-event.
1821         * process.c: Include xgselect.h if defined (USE_GTK) ||
1822         defined (HAVE_GCONF).
1823         (wait_reading_process_output): Call xg_select for the same condition.
1825         * xgselect.c (xg_select): New function to better integrate with
1826         GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
1828         * xgselect.h: New file, declare xg_select, xgselect_initialize.
1830         * Makefile.in (XOBJ): Add xgselect.o.
1832 2009-11-21  Andreas Schwab  <schwab@linux-m68k.org>
1834         * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1835         Remove ignored second argument.  All callers changed.
1836         * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1837         (RE_STRING_CHAR_AND_LENGTH): Likewise.
1838         * xdisp.c (string_char_and_length): Likewise.
1840 2009-11-21  Dan Nicolaescu  <dann@ics.uci.edu>
1842         * xterm.c (x_new_font):
1843         * print.c (print_object):
1844         * cmds.c (Fself_insert_command): Move declarations before statements.
1846 2009-11-20  Ken Brown  <kbrown@cornell.edu>  (tiny change)
1848         * s/cygwin.h: Remove unneeded linker flags.
1850 2009-11-20  Jan Djärv  <jan.h.d@swipnet.se>
1852         * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1854         * xsettings.h: Declare xsettings_get_system_font.
1856         * xsettings.c (xsettings_get_system_font): New function.
1857         (init_gconf): No use initiating gconf unless we have Xft also.
1858         (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1859         HAVE_GCONF.
1861         * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1862         add a blank entry so it doesn't collapse into nothing.
1864 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1866         * lread.c (Funintern): Comment out last change.
1868 2009-11-19  Richard Stallman  <rms@gnu.org>
1870         * lread.c (Funintern): Error if symbol is t or nil.
1872 2009-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1874         * insdel.c (make_gap_larger): Don't make as many assumptions about the
1875         representation of Lisp integers.
1876         Reported by MJ Chan <mjchan.inbox@gmail.com>.
1878 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
1880         * lisp.h: Remove declaration of Ffont_get_system_font.
1881         * xfns.c: Move include of "xsettings.h".
1882         * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1884 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
1886         * xsettings.c (something_changedCB, Ffont_get_system_font):
1887         Check use_system_font.
1888         (syms_of_xsettings): DEFVAR font-use-system-font.
1890 2009-11-17  Andreas Schwab  <schwab@linux-m68k.org>
1892         * xfns.c (x_default_font_parameter): Remove dead assignment.
1894         * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1896 2009-11-17  Jan Djärv  <jan.h.d@swipnet.se>
1898         * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1899         not have FC_LCD_*.  #define them if not there.
1901         * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1903         * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1905         * xterm.c (handle_one_xevent): Call xft_settings_event for
1906         ClientMessage, PropertyNotify and DestroyNotify.
1907         (x_term_init): If we have XFT, get DPI from Xft.dpi.
1908         Call xsettings_initialize.
1910         * xftfont.c (xftfont_fix_match): New function.
1911         (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1912         Call xftfont_fix_match after XftFontMatch.
1914         * xfont.c (xfont_driver): Initialize all members.
1916         * xfns.c (x_default_font_parameter):
1917         Try font from Ffont_get_system_font.
1918         Do not get font from x_default_parameter if we got one from
1919         Ffont_get_system_font.
1920         (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1922         * w32font.c (w32font_driver): Initialize all members.
1924         * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1926         * lisp.h: Declare syms_of_xsettings.
1928         * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1929         Handle CONFIG_CHANGED_EVENT.
1931         * ftfont.c (ftfont_filter_properties): New function.
1933         * frame.c (x_set_font): Remove unused variable lval.
1935         * font.h (struct font_driver): Add filter_properties.
1937         * font.c (font_put_extra): Don't return if val is nil, it means
1938         boolean option is off.
1939         (font_parse_fcname): Collect all extra properties in extra_props
1940         and call filter_properties for all drivers with extra_props and
1941         font as parameter.
1942         (font_open_entity): Do not use cache, it does not pick up new
1943         fontconfig settings like hinting.
1944         (font_load_for_lface): If spec had a name in it, store it in entity.
1946         * emacs.c (main): Call syms_of_xsettings.
1948         * config.in: HAVE_GCONF is new.
1950         * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1951         xsettings.o is new.
1953 2009-11-17  Kenichi Handa  <handa@m17n.org>
1955         * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1956         back to the default font in case that no suitable font is found.
1958 2009-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
1960         * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1961         Suggested by Chad Brown <yandros@mit.edu>.
1962         (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1964 2009-11-16  Jan Djärv  <jan.h.d@swipnet.se>
1966         * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1968 2009-11-14  Andreas Schwab  <schwab@linux-m68k.org>
1970         * Makefile.in: Ignore errors from mkdir when creating deps directory.
1972 2009-11-14  Jan Djärv  <jan.h.d@swipnet.se>
1974         * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1975         has a parent.
1977         * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1978         dependency files in deps/.  Include those files into Makefile.
1980         * config.in: Generated (AUTO_DEPEND).
1982 2009-11-13  Michael Albinus  <michael.albinus@gmx.de>
1984         * dbusbind.c (Vdbus_registered_objects_table): Rename from
1985         Vdbus_registered_functions_table, because it contains also
1986         properties.  Fix docstring.
1987         (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1989 2009-11-13  Stefan Monnier  <monnier@iro.umontreal.ca>
1991         * alloc.c (mark_object): Don't reprocess marked strings.
1992         Check vector's markbit earlier.  Adjust calls to mark_vectorlike.
1993         (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1995 2009-11-13  Kenichi Handa  <handa@m17n.org>
1997         * category.c (word_boundary_p): Adjust for the change of the
1998         semantics of Vword_combining_categories.
1999         (Vword_combining_categories): Describe the slight change of the
2000         semantics.
2002 2009-11-13  Eli Zaretskii  <eliz@gnu.org>
2004         * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2006         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2008 2009-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2010         * xdisp.c (syms_of_xdisp): Fix typo in last change.
2012 2009-11-12  Juanma Barranquero  <lekktu@gmail.com>
2014         * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2016 2009-11-11  David Reitter  <david.reitter@gmail.com>
2018         * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2019         variables to fix 2009-11-09 change.
2021 2009-11-11  Dan Nicolaescu  <dann@ics.uci.edu>
2023         * process.c (ifflag_def): Make flag_sym constant.
2024         (Fnetwork_interface_info): Use a constant pointer.
2025         (ifflag_table):
2026         * xfns.c (cursor_bits):
2027         * xdisp.c (power_letter):
2028         * termcap.c (speeds, esctab):
2029         * sysdep.c (baud_convert):
2030         * keyboard.c (lispy_accent_codes, modifier_names):
2031         * image.c (xbm_format, xpm_format, pbm_format, png_format)
2032         (jpeg_format, tiff_format, gif_format, svg_format)
2033         (interlace_start, interlace_increment, gs_format):
2034         * gtkutil.c (separator_names):
2035         * fringe.c (swap_nibble):
2036         * fns.c (base64_value_to_char, base64_char_to_value):
2037         * fileio.c (make_temp_name_tbl):
2038         * coding.c (suffixes): Make constant.
2040         * frame.c (make_initial_frame):
2041         * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2042         build_string.
2043         * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2045         * s/freebsd.h:
2046         * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2048         * Makefile.in: Add dependencies to lisp.h.  Remove dependencies
2049         for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2051         * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2052         * xterm.c (syms_of_xterm):
2053         * xfaces.c (syms_of_xfaces):
2054         * xdisp.c (syms_of_xdisp):
2055         * lread.c (syms_of_lread):
2056         * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2057         build_string.
2059         * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2061 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2063         * fns.c (Fplist_get): Merge the active and the commented out code.
2065 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
2067         * keyboard.h: Declare timer_check.
2069         * keyboard.c (timer_check_2): New function that does what the old
2070         timer_check did.
2071         (timer_check): Call timer_check_2 until -1 or a non-zero time is
2072         returned, i.e. don't return -1 with timers pending.
2074         * process.c: Remove extern declaration of timer_check.
2076         * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2077         even if timer_check returned -1.
2079         * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2080         xg_dialog_data.
2081         (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2082         the event loop.
2083         (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2084         (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2085         Destroy the dialog after xg_dialog_run.
2087 2009-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2089         * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2091 2009-11-10  Jan Djärv  <jan.h.d@swipnet.se>
2093         * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2095 2009-11-09  Juanma Barranquero  <lekktu@gmail.com>
2097         * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2099 2009-11-09  Stefan Monnier  <monnier@iro.umontreal.ca>
2101         * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2102         w32menu.c, and nsmenu.m.
2103         Simplify the obsolete case where position is nil.
2104         (cleanup_popup_menu): New function, moved from nsmenu.m.
2105         (struct skp): Remove slot `notreal'.
2106         (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2107         adjust callers.
2108         (single_menu_item): Adjust call to parse_menu_item.
2109         (syms_of_menu): Defsubr x-popup-menu.
2110         * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2111         (keymap_panes): Don't export any more.
2112         (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2113         (xmenu_show): Declare.
2114         * keyboard.c (parse_menu_item): Remove arg `notreal'.
2115         (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2116         * keyboard.h (parse_menu_item): Update declaration.
2117         * xmenu.c (Fx_popup_menu): Remove.
2118         (syms_of_xmenu): Don't defsubr x-popup-menu.
2119         * w32menu.c (Fx_popup_menu): Remove.
2120         (syms_of_w32menu): Don't defsubr x-popup-menu.
2121         * nsmenu.m (cleanup_popup_menu): Remove.
2122         (ns_menu_show): Rename from ns_popup_menu and remove all the code
2123         moved to menu.c's Fx_popup_menu.
2124         (Fx_popup_menu): Remove.
2125         (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2126         menu_items (it's done in menu.c already).
2128 2009-11-08  Stefan Monnier  <monnier@iro.umontreal.ca>
2130         * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2131         Use `tem' less.  Make sure KEYEQ holds a string or nil (bug#4879).
2133 2009-11-08  Chong Yidong  <cyd@stupidchicken.com>
2135         * xmenu.c (Fx_popup_menu): Extract event timestamp.  Pass it to
2136         xmenu_show.  Hide any tooltip before opening a menu.
2137         (xmenu_show): New arg.  Pass it to create_and_show_popup_menu.
2138         (create_and_show_popup_menu): New arg.  Pass it to gtk_menu_popup.
2140 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
2142         Let integers use up 2 tags to give them one extra bit and thus double
2143         their range.
2144         * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2145         (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2146         New macros.
2147         (enum Lisp_Type): Use them.  Give explicit values.
2148         (Lisp_Type_Limit): Remove.
2149         (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2150         (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2151         Pay attention to USE_2_TAGS_FOR_INTS.
2152         (INTEGERP): Use LISP_INT_TAG_P.
2153         * fns.c (internal_equal): Simplify the default case.
2154         (sxhash): Use case_Lisp_Int.
2155         * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2156         any more.
2157         (Ftype_of): Use case_Lisp_Int.
2158         (store_symval_forwarding): Take into account the fact that Ints can
2159         now have more than one tag.
2160         * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2161         buffer_slot_type_mismatch):
2162         * xfaces.c (face_attr_equal_p):
2163         * print.c (print_object):
2164         * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2165         Use case_Lisp_Int.
2167 2009-11-06  Eli Zaretskii  <eliz@gnu.org>
2169         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2171         * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2172         warning.
2174 2009-11-06  Jan Djärv  <jan.h.d@swipnet.se>
2176         * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2178         * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2180         * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2181         ButtonPressRelease and MotionNotify (bug#4870).
2183 2009-11-06  Dan Nicolaescu  <dann@ics.uci.edu>
2185         * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2187         * xterm.c (syms_of_xterm):
2188         * xselect.c (syms_of_xselect):
2189         * xmenu.c (syms_of_xmenu):
2190         * xfns.c (syms_of_xfns):
2191         * xfaces.c (syms_of_xfaces):
2192         * xdisp.c (syms_of_xdisp):
2193         * window.c (syms_of_window):
2194         * w32fns.c (syms_of_w32fns):
2195         * undo.c (syms_of_undo):
2196         * textprop.c (syms_of_textprop):
2197         * terminal.c (syms_of_terminal):
2198         * syntax.c (syms_of_syntax):
2199         * sound.c (syms_of_sound):
2200         * search.c (syms_of_search):
2201         * print.c (syms_of_print):
2202         * minibuf.c (syms_of_minibuf):
2203         * macros.c (syms_of_macros):
2204         * keymap.c (syms_of_keymap, initial_define_key)
2205         (initial_define_lispy_key):
2206         * keyboard.c (syms_of_keyboard):
2207         * insdel.c (syms_of_insdel):
2208         * image.c (syms_of_image):
2209         * fringe.c (syms_of_fringe):
2210         * frame.c (syms_of_frame):
2211         * fontset.c (syms_of_fontset):
2212         * fns.c (syms_of_fns):
2213         * fns.c (syms_of_fns):
2214         * fileio.c (syms_of_fileio):
2215         * fileio.c (syms_of_fileio):
2216         * eval.c (syms_of_eval):
2217         * doc.c (syms_of_doc):
2218         * dispnew.c (syms_of_display):
2219         * dired.c (syms_of_dired):
2220         * dbusbind.c (syms_of_dbusbind):
2221         * data.c (syms_of_data):
2222         * composite.c (syms_of_composite):
2223         * coding.c (syms_of_coding):
2224         * cmds.c (syms_of_cmds):
2225         * charset.c (define_charset_internal, syms_of_character):
2226         * ccl.c (syms_of_ccl):
2227         * category.c (syms_of_category, init_category_once):
2228         * casetab.c (syms_of_casetab):
2229         * casefiddle.c (syms_of_casefiddle):
2230         * callint.c (syms_of_callint):
2231         * bytecode.c (syms_of_bytecode):
2232         * buffer.c (keys_of_buffer, syms_of_buffer):
2233         * alloc.c (syms_of_alloc):
2234         * process.c (syms_of_process, init_process):
2235         * lread.c (syms_of_lread, init_obarray):
2236         * font.c (build_style_table):
2237         * emacs.c (syms_of_emacs, main): Replace calls to intern with
2238         intern_c_string, calls to make_pure_string with
2239         make_pure_c_string.  Use pure_cons instead of Fcons.
2241         * process.c (socket_options): Make it const.
2242         (set_socket_option, init_process): Use a const pointer.
2244         * lread.c (intern_c_string): New function.
2245         (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2246         (defvar_int): Uset it.  Make the name const char*.
2248         * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2249         (defvar_int): Update prototypes.
2250         (DEFUN, EXFUN): Support for prototypes is now required.
2251         (intern_c_string): New prototype.
2252         (struct Lisp_Subr): Make symbol_name constant.
2254         * font.c (struct table_entry): Remove unused member.  Make NAMES
2255         constant.
2256         (weight_table, slant_table, width_table): Make constant.
2258         * emacs.c (struct standard_args): Make name and longname constant.
2260         * character.h (DEFSYM): Use intern_c_string.
2262 2009-11-06  Stefan Monnier  <monnier@iro.umontreal.ca>
2264         * alloc.c (make_pure_c_string): New function.
2266         * eval.c (Fautoload): Purecopy all arguments.
2268 2009-11-05  Kenichi Handa  <handa@m17n.org>
2270         * fileio.c (Finsert_file_contents): Be sure set coding-system of
2271         the buffer in case of replace.
2273 2009-11-04  Dan Nicolaescu  <dann@ics.uci.edu>
2275         * puresize.h (BASE_PURESIZE): Increase to 1620000.
2277 2009-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
2279         * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2280         when applicable (bug#4851).
2282         * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2283         (P_): Support for prototypes is now required.
2285 2009-10-31  Chong Yidong  <cyd@stupidchicken.com>
2287         * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2288         (Bug#4827).
2290 2009-10-30  Eli Zaretskii  <eliz@gnu.org>
2292         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
2294 2009-10-30  Dan Nicolaescu  <dann@ics.uci.edu>
2296         * puresize.h (BASE_PURESIZE): Increase to 1470000.
2298         * lread.c (Fload): Purecopy the file name when building
2299         Vpreloaded_file_list.
2301 2009-10-29  Jason Rumney  <jasonr@wanchan.jasonrumney.net>
2303         * w32fns.c (syms_of_w32fns): Change default value of
2304         w32-scroll-lock-modifier to nil.  (Bug#2827)
2306 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
2308         * minibuf.c (Fall_completions): Fix typos in docstring.
2310 2009-10-26  Andreas Schwab  <schwab@redhat.com>
2312         * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2314 2009-10-26  Juanma Barranquero  <lekktu@gmail.com>
2316         * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2317         For delta < 0, skip check that only makes sense when the mini-window
2318         is going to be enlarged.  (Bug#4534)
2320 2009-10-25  Chong Yidong  <cyd@stupidchicken.com>
2322         * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2323         string in menu maps (Bug#4471).
2325 2009-10-24  Chong Yidong  <cyd@stupidchicken.com>
2327         * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2328         FRAME_NS_VIEW on terminal frames (Bug#4765).
2330 2009-10-24  Andreas Schwab  <schwab@linux-m68k.org>
2332         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2333         DBUS_TYPE_UINTnn separately to get proper sign extension.
2335         * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2336         can properly handle unsigned types.
2337         (make_uid, make_gid): Remove.
2339         * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2340         types again.
2342         * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
2343         (system_process_attributes): Likewise.
2345 2009-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
2347         * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2349         * eval.c (Fautoload): Purecopy the filename.  Simplify.
2351         * category.c (Fdefine_category): Purecopy docstring.
2353 2009-10-23  Andreas Schwab  <schwab@linux-m68k.org>
2355         * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2357         * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2359 2009-10-23  Chong Yidong  <cyd@stupidchicken.com>
2361         * window.c (Fwindow_edges, Fwindow_pixel_edges)
2362         (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2363         (Bug#4775).
2365 2009-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
2367         * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2368         (init_fileio_once):
2369         * lisp.h (init_fileio_once): Remove.
2370         * emacs.c (main): Don't call init_fileio_once.
2372 2009-10-23  Dan Nicolaescu  <dann@ics.uci.edu>
2374         * puresize.h (BASE_PURESIZE): Increase to 1430000.
2376 2009-10-21  Andreas Schwab  <schwab@linux-m68k.org>
2378         * doprnt.c (doprnt): Fix overflow check.
2380 2009-10-21  Jan Djärv  <jan.h.d@swipnet.se>
2382         * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2384         * xterm.h (x_wait_for_event): Declare it.
2386         * xterm.c (pending_event_wait): New variable.
2387         (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2388         see pending_event_wait.eventtype.
2389         (handle_one_xevent): Don't change gravity when parent changes.
2390         (x_new_font): Call change_frame_size with new rows/columns before we
2391         try to resize the frame.
2392         (x_wait_for_event): New function.
2393         (x_set_window_size_1): Don't change gravity unless change_gravity
2394         is set.
2395         Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
2396         don't change frame size, instead wait for the ConfigureNotify.
2397         (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2398         (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2399         (x_initialize): Initialize pending_event_wait.
2401         * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2402         size.
2404         * widget.c (EmacsFrameSetValues): Add comment.
2405         (EmacsFrameSetCharSize): Just call x_set_window_size.
2407         * gtkutil.c (xg_frame_set_char_size): Flush events and call
2408         x_wait_for_event.
2409         (flush_and_sync): Remove again.
2410         (xg_get_font_name): Suggest monospace if no previous font is known.
2412 2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
2414         * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2415         8th bit, since that only made sense in the ASCII world (bug#4751).
2417 2009-10-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2419         * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2420         processing pending events when event is filtered for input method.
2421         (Bug#3681)
2423 2009-10-20  Juanma Barranquero  <lekktu@gmail.com>
2425         * fns.c: Add #endif accidentally removed in previous change.
2427 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
2429         * fns.c: Remove code for unsupported system: MAC_OS.
2430         * image.c: Likewise.  Include setjmp.h.
2432 2009-10-19  Jan Djärv  <jan.h.d@swipnet.se>
2434         * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2435         pixel -1 (bug #4742).
2437 2009-10-19  Dan Nicolaescu  <dann@ics.uci.edu>
2439         * process.c (create_pty): Remove conditionals for no longer
2440         supported systems: UNIPLUS and RTU.
2442         * xterm.c:
2443         * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2445         * alloc.c: Do not define struct catchtag.
2446         * eval.c: Move struct catchtag definition ...
2447         * lisp.h: ... here.
2449         * image.c: Move png.h #include earlier to avoid warnings.
2451         * xterm.c:
2452         * xsmfns.c:
2453         * xselect.c:
2454         * xrdb.c:
2455         * xmenu.c:
2456         * xftfont.c:
2457         * xfont.c:
2458         * xfns.c:
2459         * xfaces.c:
2460         * xdisp.c:
2461         * window.c:
2462         * widget.c:
2463         * w32xfns.c:
2464         * w32uniscribe.c:
2465         * w32term.c:
2466         * w32select.c:
2467         * w32reg.c:
2468         * w32proc.c:
2469         * w32menu.c:
2470         * w32inevt.c:
2471         * w32heap.c:
2472         * w32font.c:
2473         * w32fns.c:
2474         * w32console.c:
2475         * w32.c:
2476         * w16select.c:
2477         * vm-limit.c:
2478         * unexsol.c:
2479         * unexec.c:
2480         * unexcw.c:
2481         * unexaix.c:
2482         * undo.c:
2483         * tparam.c:
2484         * textprop.c:
2485         * terminfo.c:
2486         * terminal.c:
2487         * termcap.c:
2488         * term.c:
2489         * syntax.c:
2490         * sound.c:
2491         * sheap.c:
2492         * search.c:
2493         * scroll.c:
2494         * region-cache.c:
2495         * regex.c:
2496         * ralloc.c:
2497         * process.c:
2498         * print.c:
2499         * nsterm.m:
2500         * nsselect.m:
2501         * nsmenu.m:
2502         * nsimage.m:
2503         * nsfont.m:
2504         * nsfns.m:
2505         * msdos.c:
2506         * minibuf.c:
2507         * menu.c:
2508         * marker.c:
2509         * macros.c:
2510         * keymap.c:
2511         * keyboard.c:
2512         * intervals.c:
2513         * insdel.c:
2514         * indent.c:
2515         * gtkutil.c:
2516         * ftxfont.c:
2517         * ftfont.c:
2518         * fringe.c:
2519         * frame.c:
2520         * fontset.c:
2521         * font.c:
2522         * fns.c:
2523         * floatfns.c:
2524         * filelock.c:
2525         * fileio.c:
2526         * emacs.c:
2527         * editfns.c:
2528         * dosfns.c:
2529         * doprnt.c:
2530         * doc.c:
2531         * dispnew.c:
2532         * dired.c:
2533         * dbusbind.c:
2534         * data.c:
2535         * composite.c:
2536         * coding.c:
2537         * cmds.c:
2538         * cm.c:
2539         * chartab.c:
2540         * charset.c:
2541         * character.c:
2542         * ccl.c:
2543         * category.c:
2544         * casetab.c:
2545         * casefiddle.c:
2546         * callproc.c:
2547         * callint.c:
2548         * bytecode.c:
2549         * buffer.c:
2550         * atimer.c: Include setjmp.h.  (Bug#4643)
2552 2009-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
2554         Remove leftover table unibyte_to_multibyte_table.
2555         * character.c (unibyte_to_multibyte_table): Remove.
2556         (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2557         * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2558         * character.h (UNIBYTE_TO_CHAR): New macro.
2559         (MAKE_CHAR_MULTIBYTE): Use it.
2560         (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2561         * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2562         (message_dolog, set_message_1):
2563         * search.c (Freplace_match):
2564         * editfns.c (Fcompare_buffer_substrings):
2565         * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2566         (concat):
2567         * insdel.c (copy_text, count_size_as_multibyte):
2568         Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2569         * term.c (produce_glyphs):
2570         * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2571         * regex.c (RE_CHAR_TO_MULTIBYTE):
2572         * cmds.c (internal_self_insert):
2573         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2575         * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2577 2009-10-17  Dan Nicolaescu  <dann@ics.uci.edu>
2579         * puresize.h (BASE_PURESIZE): Increase to 1310000.
2581 2009-10-16  Juanma Barranquero  <lekktu@gmail.com>
2583         * buffer.c (Fbuffer_name): Doc fix.  (Bug#4728)
2585 2009-10-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
2587         * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2588         still needed under Tiger.
2590         * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2592         * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2593         __Apple__.
2595         * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2597 2009-10-15  Kenichi Handa  <handa@m17n.org>
2599         * print.c (print_object): Escape a symbol like "2E10" too.
2601 2009-10-11  Adrian Robert  <Adrian.B.Robert@gmail.com>
2603         Cleanups and changes for 64-bit compile under Snow Leopard.
2604         Based on suggestions by Erik Charlebois.
2606         * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2608         * nsfont.m (ns_char_width): Replace deprecated call.
2609         (ns_findfonts, nsfont_list_family): Use long format in printf, and
2610         cast argument.
2611         (nsfont_open): Use ns_char_width() everywhere.
2612         (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2614         * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2616         * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2617         where appropriate.
2619         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2620         where appropriate.
2621         (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2622         Use stringWithUTF8String.
2623         (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2625         * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2626         Add formal protocol mention to inheritance.
2627         [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2629         * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2630         Fix printf format.
2631         (ns_query_color): Use CGFloat where appropriate.
2632         (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2633         (EmacsScroller-mouseDown:): Use long format in printf, and cast
2634         argument.
2636         * config.in (NS_HAVE_NSINTEGER): Drop.
2638         * dbusbind.c (dbus-method-return-internal)
2639         (dbus-method-error-internal): Use long format in printf, and cast
2640         argument.
2642         * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2643         in printf, and cast argument.
2645         * process.c (list_processes_1): Use long format in printf, and
2646         cast argument.
2648 2009-10-11  Glenn Morris  <rgm@gnu.org>
2650         * frame.c (Fframe_pixel_height): Doc fix.  (Bug#4535)
2652 2009-10-08  Jan Djärv  <jan.h.d@swipnet.se>
2654         * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2655         menu bar with a small width so it doesn't enlarge the frame.
2657 2009-10-08  Juanma Barranquero  <lekktu@gmail.com>
2659         * fontset.c (Fset_fontset_font): Fix typos in error messages.
2661 2009-10-06  Glenn Morris  <rgm@gnu.org>
2663         * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2664         SOME_MACHINE_LISP (this enters indirectly via DOC).
2666 2009-10-05  Eli Zaretskii  <eliz@gnu.org>
2668         * dired.c (Ffile_attributes): Doc fix.  (Bug#4638)
2670 2009-10-04  Eli Zaretskii  <eliz@gnu.org>
2672         * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2673         Doc fix.
2675 2009-10-03  Martin Rudalics  <rudalics@gmx.at>
2677         * window.c (Fdelete_window): Check WINDOW argument.  (Bug#4618)
2679 2009-10-02  Michael Albinus  <michael.albinus@gmx.de>
2681         * lisp.h (Qdelete_directory_internal): Remove, because it is not
2682         used anymore outside fileio.c.
2684         * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2686 2009-10-01  Juanma Barranquero  <lekktu@gmail.com>
2688         * lisp.h (Qdelete_directory_internal):
2689         Declare, instead of Qdelete_directory.
2691         * w32fns.c (Fsystem_move_file_to_trash): Use it.
2693 2009-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
2695         * eval.c (Fcalled_interactively_p): Add `kind' argument.
2697 2009-10-01  Michael Albinus  <michael.albinus@gmx.de>
2699         * fileio.c (Fdelete_directory_internal): Rename from
2700         Fdelete_directory.  It is not a command anymore.  It has no file
2701         name handler.
2703 2009-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2705         * xdisp.c (get_next_display_element): Use an enum in last change.
2707 2009-09-28  Kenichi Handa  <handa@m17n.org>
2709         * xdisp.c (get_next_display_element): Pay attention to
2710         unibyte_display_via_language_environment in handling
2711         Vnobreak_char_display.
2713 2009-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
2715         * nsterm.h (ns_app_name): New extern variable.
2717         * nsterm.m (ns_app_name): New variable.
2718         (ns_term_init): Set and use it.
2719         (ns_term_shutdown): Use it.
2721         * nsmenu.m (ns_update_menubar): Use ns_app_name.  Sync with xmenu.c.
2722         (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2724         * nsfns.m (ns_set_name_iconic, ns_set_name)
2725         (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2726         (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2728         * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2729         Remove double-casting in client_data comparison.
2731 2009-09-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2733         * keyboard.c (make_lispy_event): Remember last wheel direction.
2734         (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2736 2009-09-26  Glenn Morris  <rgm@gnu.org>
2738         * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2739         internal.elc.  Add term/pc-win.elc.
2740         (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2741         term/x-win.elc.
2742         (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2743         term/w32-win.elc.
2744         (NS_SUPPORT): New.
2745         (lisp): Add NS_SUPPORT.
2746         (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2748 2009-09-25  David Reitter  <david.reitter@gmail.com>
2750         * nsmenu.m (EmacsMenu-clear): Recognize application menu
2751         on Mac OS X 10.6+ (bug#4513).
2753 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
2755         * frame.c (xrdb_get_resource): Return nil for empty string resources;
2756         some parts of Emacs code (like font selection) don't grok them.
2757         See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2759 2009-09-24  Andreas Schwab  <schwab@redhat.com>
2761         * coding.c (decode_coding_iso_2022): Fix operator precedence.
2763 2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
2765         * dired.c (Fdirectory_files): Fix typo in docstring.
2767 2009-09-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
2769         * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2770         (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2771         (EmacsScroller-setPosition:portion:whole:): Remove -display call
2772         under GNUstep.
2773         (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2775         * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2776         glyph advancement.
2778 2009-09-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
2780         * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2781         (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2783         * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2784         deleted (bug #4492).
2786         * nsfont.m (Vns_reg_to_script): New lisp variable.
2787         (syms_of_nsfont): Declare it.
2788         (ns_registry_to_script): New function.
2789         (ns_get_req_script): Call it.
2790         (ns_findfonts): Don't give up on non-unicode registry.
2792         * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2794 2009-09-20  Tom Tromey  <tromey@redhat.com>
2796         * eval.c (find_handler_clause): Make stack-trace-on-error work in
2797         batch mode (bug#4228).
2799 2009-09-18  Rob Christie  <robchristie@gmail.com>  (tiny change)
2801         * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2802         carefully.  (Bug #4339)
2804 2009-09-18  Chong Yidong  <cyd@stupidchicken.com>
2806         * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2808 2009-09-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
2810         * emacs.c (inhibit_x_resources): Update doc string for NS.
2811         (main) [HAVE_NS]: Don't process --no-init-file option.  Remove
2812         legacy code for -NXHost.  Fix error printf in daemon case.
2814         * nsterm.h (ns_no_defaults): Remove.
2816         * nsterm.m (ns_no_defaults): Remove.
2817         (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2818         (ns_use_qd_smoothing): Remove legacy variable.
2819         (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2820         don't update the NSWindow itself.
2821         (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2822         state detection and store user rect ourselves.  (Bug #3581)
2824         * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2825         ns_use_qd_smoothing.
2827         * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2828         platform versions.  Drop support for emacs-20-style face specs.
2829         (x-close-connection): Drop PSFlush() under OS X.
2830         (x-focus-frame): Activate the app first.  (Bug #4180)
2832 2009-09-17  Juanma Barranquero  <lekktu@gmail.com>
2834         * emacs.c (inhibit_x_resources): New variable.
2835         (main) [HAVE_NS]: Don't process --quick command line option.
2836         (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2838         * lisp.h (inhibit_x_resources): Declare it extern.
2840         * w32reg.c (x_get_string_resource):
2841         * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2843 2009-09-17  Eli Zaretskii  <eliz@gnu.org>
2845         * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2846         Add lisp/term/internal.elc.
2848 2009-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
2850         * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2851         (bug#4461).
2853 2009-09-17  Dan Nicolaescu  <dann@ics.uci.edu>
2855         * puresize.h (BASE_PURESIZE): Increase to 1290000.
2857         * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2858         (OBJECTS_MACHINE): Remove, unused.
2860 2009-09-16  Stefan Monnier  <monnier@iro.umontreal.ca>
2862         * frame.c (x_get_resource_string): Remove unused.
2864 2009-09-15  Jan Djärv  <jan.h.d@swipnet.se>
2866         * xterm.c (x_new_font): Call change_frame_size before calling
2867         x_set_window_size, in case frame size won't change.
2869         * frame.c (x_set_font): Remove dead code.
2871 2009-09-15  Stefan Monnier  <monnier@iro.umontreal.ca>
2873         * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2875 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2877         * lread.c (Fload): Don't output a message after loading an obsolete
2878         package any more (done in Lisp now).
2880 2009-09-12  Chong Yidong  <cyd@stupidchicken.com>
2882         * fns.c (syms_of_fns): Doc fix (Bug#4227).
2884 2009-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
2886         * keymap.c (Fwhere_is_internal): Use nconc2.
2888 2009-09-11  Alan Mackenzie  <acm@muc.de>
2890         * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2891         batch mode.
2893 2009-09-11  Andreas Schwab  <schwab@linux-m68k.org>
2895         * xdisp.c (display_mode_element): Detect cycles.
2897 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2899         * keymap.c (where_is_internal): Don't erroneously return nil right after
2900         filling the cache.
2901         (where_is_internal_1): Fix up typo.
2903 2009-09-11  Glenn Morris  <rgm@gnu.org>
2905         * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2906         share a common doc-string.
2908 2009-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2910         * keymap.c (get_keymap): Return the actual keymap symbol rather than
2911         t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2913         * keymap.c (QCadvertised_binding): New constant.
2914         (syms_of_keymap): Initialize it.
2915         (Fwhere_is_internal): Try and use bindings from :advertised-binding
2916         if applicable.
2918 2009-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
2920         * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2921         (parse_menu_item): Streamline since bindings are recomputed all the
2922         time anyway.  Don't bother checking Vdefine_key_rebound_commands any
2923         more and don't support lmenu's menu-alias any more either.
2925         * keymap.c (where_is_internal_data): Make noindirect a boolean.
2926         (where_is_internal): Strip it down to only traverse the keymaps.
2927         Move the cache handling from Fwhere_is_internal to here.
2928         (Fwhere_is_internal): Move the handling of remapping and the choice of
2929         the best binding from where_is_internal to here.
2930         Unify the cached/noncached paths, so remapping is also handled
2931         correctly when the cache is used, and so the cache can be used to
2932         speed up remap-handling when applicable.
2933         Give preference to non-remapped bindings.
2934         * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2935         non-remapped bindings.
2936         * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2937         command remapping.
2939         * xdisp.c (display_mode_element): Move list length limit from 50 to
2940         5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2942 2009-09-09  Adrian Robert  <Adrian.B.Robert@gmail.com>
2944         * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2946 2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
2948         * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2949         (Bug#4334)
2951         * keymap.c (where_is_internal): Filter out shadowed remappings.
2952         Assume that where_is_internal returns unshadowed bindings to simplify
2953         the code and get rid of the gotos.  Use ASIZE.
2955 2009-09-04  Jan Djärv  <jan.h.d@swipnet.se>
2957         * xterm.c (x_focus_changed): If we get a focusout and pointer
2958         is invisible, make it visible.
2960         * xterm.h: Remove condition for declaration of
2961         x_*_window_to_frame.
2963 2009-09-03  Stefan Monnier  <monnier@iro.umontreal.ca>
2965         * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2966         initial terminal as well.
2968 2009-09-02  Jan Djärv  <jan.h.d@swipnet.se>
2970         * xterm.h: Rename x_non_menubar_window_to_frame to
2971         x_menubar_window_to_frame.
2973         * xterm.c: Remove declarations also in xterm.h
2974         (XTmouse_position): Do not return valid positions
2975         for clicks in the menubar and the toolbar for Gtk+.
2977         * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2978         if the widget for the event has the same top level as a frame,
2979         return the frame.
2980         (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2981         internal windows, bug #4122.
2982         (x_non_menubar_window_to_frame): Remove.
2984 2009-09-02  Glenn Morris  <rgm@gnu.org>
2986         * buffer.c (default-major-mode): Move most of the doc from here...
2987         (major-mode): ... to here.
2989 2009-08-30  Nick Roberts  <nickrob@snap.net.nz>
2991         * process.c (wait_reading_process_output): Keep the descriptor
2992         when pty is used by a non-child process, e.g., in I/O buffer of
2993         GDB this allows inferior to be restarted.
2995 2009-08-29  Eli Zaretskii  <eliz@gnu.org>
2997         * xdisp.c (redisplay_internal): Remove redundant test and collapse
2998         both branches into one.
3000 2009-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
3002         * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3003         (main): Use enable-multibyte-characters rather than
3004         default-enable-multibyte-characters.  Output a warning message when
3005         running a unibyte session.
3007 2009-08-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3009         * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3010         LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3011         (copy_data_segment): Also copy __program_vars section.
3012         (copy_dyld_info) [LC_DYLD_INFO]: New function.
3013         (dump_it) [LC_DYLD_INFO]: Use it.
3015         * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3017 2009-08-28  Eli Zaretskii  <eliz@gnu.org>
3019         * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3020         $(SRC)/buildobj.h.
3021         (buildobj.h): Renamed from $(SRC)/buildobj.h.
3022         (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3023         $(SRC)/buildobj.h.
3024         (clean): Add buildobj.h.
3026 2009-08-28  Teodor Zlatanov  <tzz@lifelogs.com>
3028         * print.c (print_object): Set escapeflag to 1 when printing
3029         hashtable keys and values.
3031 2009-08-27  Stefan Monnier  <monnier@iro.umontreal.ca>
3033         * lread.c (read_integer): Use doubles (and potentially return a float
3034         number) as we do in string-to-number.
3035         (read1): Use strtol to read integers, signal errors on strtol's
3036         overflow and use floats if strtol's output is too large for
3037         Elisp integers.
3039 2009-08-27  Eli Zaretskii  <eliz@gnu.org>
3041         * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3042         (make-buildobj-SH): Fix last change.
3043         (SRC): Move to before where it's first used.
3045 2009-08-27  Kenichi Handa  <handa@m17n.org>
3047         * process.c (send_process): Use encode_coding_object instead of
3048         encode_coding_string to perform eol-conversion even if the string
3049         is unibyte.
3051         * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3052         character.
3054         * cmds.c (Fself_insert_command): Avoid unnecessay
3055         unibyte->multibyte conversion.  (Bug#4240)  (Bug#4037)
3057 2009-08-26  Dan Nicolaescu  <dann@ics.uci.edu>
3059         * callproc.c (Fcall_process): Remove always true #if.
3061         * lisp.h: Replace #if 0 code for checking with text pointing to
3062         the --enable-checking configure flag.
3064         * emacs.c (main): Mention the --enable-profiling configure flag
3065         instead of using CFLAGS.
3067 2009-08-26  Ken Raeburn  <raeburn@raeburn.org>
3069         * Makefile.in (buildobj.h): New target.
3070         (doc.o): Depend on it.
3071         (temacs${EXEEXT}): Don't generate buildobj.lst.
3072         (mostlyclean): Delete buildobj.h, not buildobj.lst.
3073         * makefile.w32-in ($(SRC)/buildobj.h): New target.
3074         ($(BLD)/doc.$(O)): Depend on it.
3075         (make-buildobj-CMD, make-buildobj-SH): New targets.  (Syntax help
3076         provided by Eli Zaretskii.)
3077         ($(TEMACS)): Don't generate buildobj.lst.
3078         * doc.c: Include buildobj.h.
3079         (buildobj): New static variable.
3080         (Fsnarf_documentation): Use it, instead of opening and reading
3081         buildobj.lst.
3083 2009-08-25  Michael Albinus  <michael.albinus@gmx.de>
3085         * dbusbind.c (Fdbus_call_method)
3086         (Fdbus_call_method_asynchronously): Use English numeric format for
3087         timeout values in doc string.
3089 2009-08-25  Kenichi Handa  <handa@m17n.org>
3091         * alloc.c (mark_char_table): New function.
3092         (mark_object): Use mark_char_table for a char-table.
3094         * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3095         (CHAR_TABLE_REF): Use it.
3097 2009-08-23  Ken Raeburn  <raeburn@raeburn.org>
3099         * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3100         before invoking the newly build emacs to check for load-path
3101         shadowing.
3103 2009-08-22  Glenn Morris  <rgm@gnu.org>
3105         * Makefile.in (bootstrap_exe): New variable.
3106         (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3107         Use ${bootstrap_exe}.
3109 2009-08-22  Eli Zaretskii  <eliz@gnu.org>
3111         * coding.h (encode_coding_string): Don't encode unibyte strings.
3112         (Bug#4047)
3114 2009-08-22  Michael Albinus  <michael.albinus@gmx.de>
3116         * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3118         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove.  It was
3119         intended as hotfix only.
3120         (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3122 2009-08-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
3124         * nsterm.m (ns_get_color): Update documentation properly for last
3125         change, and clean up loose ends in the code left by it.  Fix
3126         longstanding bug with 16-bit hex parsing, and add support for
3127         yet another X11 format (rgb:r/g/b) for compatibility.
3128         * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3129         timer_check() to avoid crash on Leopard/PPC.  Bug #2154.
3131 2009-08-21  Stefan Monnier  <monnier@iro.umontreal.ca>
3133         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3135 2009-08-20  Michael Albinus  <michael.albinus@gmx.de>
3137         * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3138         (xd_add_watch, xd_remove_watch): Use it.  Print debug messages.
3139         (xd_initialize, xd_pending_messages): Check, whether
3140         $DBUS_SESSION_BUS_ADDRESS is set.
3142 2009-08-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3144         * nsfns.m (Fxw_color_values): Return 3-element list.  Doc fix.
3146         * nsterm.m (ns_get_color): Remove incompatible color formats again.
3148 2009-08-20  Glenn Morris  <rgm@gnu.org>
3150         * emacs.c (system-type): Doc fix.
3152 2009-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3154         * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3155         enough for the most common situations.  Avoid SET_SYMBOL_VALUE.
3157 2009-08-18  Michael Albinus  <michael.albinus@gmx.de>
3159         * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3160         New functions.
3161         (xd_initialize): Revert change from 2009-08-16.
3163 2009-08-18  Kenichi Handa  <handa@m17n.org>
3165         * fontset.c (Ffontset_font): If a nil element is found in a
3166         font-group vector, return nil.
3168 2009-08-17  Chong Yidong  <cyd@stupidchicken.com>
3170         * process.c (status_notify): Don't perform redisplay.
3171         (Fdelete_process, list_processes_1, process_send_signal):
3172         Expliticly perform redisplay.
3173         (wait_reading_process_output): Always check process status, but
3174         don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3176 2009-08-17  Ken Raeburn  <raeburn@raeburn.org>
3178         * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
3179         (XFLOAT_INIT): New macro for storing a float value.
3180         * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3181         * fns.c (sxhash): Copy out the value of a float in order to
3182         examine its bytes.
3183         * dbusbind.c (xd_append_arg): Likewise.
3185         * emacs.c (main): Don't call syms_of_data twice.
3187 2009-08-16  Michael Albinus  <michael.albinus@gmx.de>
3189         * dbusbind.c (xd_initialize): Add connection file descriptor to
3190         input_wait_mask, in order to let select() detect, whether a new
3191         message has been arrived.
3192         (Fdbus_call_method_asynchronously): Allow nil HANDLER.
3194 2009-08-15  Michael Albinus  <michael.albinus@gmx.de>
3196         * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3197         New functions.
3199         * lisp.h (xd_pending_messages): Declare.
3201         * keyboard.c (readable_events): Call xd_pending_messages.
3203 2009-08-15  Chong Yidong  <cyd@stupidchicken.com>
3205         * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
3207         * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3209         * buffer.c (set_buffer_internal_1)
3210         (swap_out_buffer_local_variables): Check for unbound local
3211         variables (Bug#4138).
3213 2009-08-14  Eli Zaretskii  <eliz@gnu.org>
3215         * process.c (create_pty): Fix last change.
3217 2009-08-13  Chong Yidong  <cyd@stupidchicken.com>
3219         * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3220         (xbm_load_image): Caller changed.
3221         (xbm_file_p): Avoid signalling an image_error (Bug#4107).
3223 2009-08-13  Nick Roberts  <nickrob@snap.net.nz>
3225         * process.c (create_pty): New function.
3226         (Fstart_process): Use it to allow Emacs to just associate a pty
3227         with the buffer.  See associated change in gdb-mi.el.
3228         (list_processes_1): Deal with no program name.
3229         (start_process_unwind): Use pid == -2 to mean no process.
3231 2009-08-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3233         * cmds.c (nonundocount): New global variable.
3234         (keys_of_cmds): Initialize it.
3235         (Fself_insert_command): Use it to combine upto 20 sequential chars
3236         into a single undo entry, just like the Qself_insert_command code in
3237         keyboard.c does.
3238         Call frame_make_pointer_invisible, also like the Qself_insert_command
3239         code in keyboard.c does.
3240         * keyboard.c (command_loop_1): Use the new global nonundocount rather
3241         than its own local replacement for it.
3243 2009-08-10  Ken Raeburn  <raeburn@raeburn.org>
3245         * fns.c (concat): Don't re-set string length to its current value.
3247         * coding.h (decode_coding_string, encode_coding_string):
3248         Use SBYTES macro.
3250         * doprnt.c (doprnt_lisp): Delete unused function.
3251         (doprnt): Merge with doprnt1, discarding lispstrings code.
3252         * lisp.h (doprnt_lisp): Don't declare.
3254 2009-08-07  Juri Linkov  <juri@jurta.org>
3256         * puresize.h (BASE_PURESIZE): Increase to 1270000.
3258 2009-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
3260         * print.c (syms_of_print): Undo previous change.
3262 2009-08-05  Teodor Zlatanov  <tzz@lifelogs.com>
3264         * lread.c (read1, syms_of_lread): Read hashtables back from the
3265         readable format.
3267         * print.c (print_preprocess, print_object): Print hashtables fully
3268         and readably.
3269         (syms_of_print): Provide 'hashtable-print-readable.
3271 2009-08-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
3273         * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3274         no family set.
3275         (nsfont_open): Handle case when entity has no family.
3277 2009-07-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
3279         * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3280         element, not a list, for match case.
3282 2009-07-28  Kenichi Handa  <handa@m17n.org>
3284         * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3285         rigidly.
3287         * xfont.c (xfont_list_pattern): Don't ignore the return value of
3288         font_parse_xlfd.  Check font properties more rigidly.
3290 2009-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
3292         * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3293         bsd-common.h.
3295 2009-07-27  Kenichi Handa  <handa@m17n.org>
3297         * xfaces.c (face_with_height): Call font_clear_prop.
3299 2009-07-26  Chong Yidong  <cyd@stupidchicken.com>
3301         * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3303         * xterm.c (x_term_init): Use Qx.
3305         * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3307         * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
3308         (ns_get_color): Revert 2009-07-16 change.
3310 2009-07-25  Eli Zaretskii  <eliz@gnu.org>
3312         * lread.c (syms_of_lread) <force_load_messages>: New variable.
3313         (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
3315 2009-07-25  Ken Raeburn  <raeburn@raeburn.org>
3317         * coding.h (decode_coding_string, encode_coding_string):
3318         Use SCHARS macro.
3320         * lread.c: Rewrite 2009-07-21 changes.
3321         (load_depth): Delete.
3322         (Qload_in_progress): New variable.
3323         (load_unwind): Don't reference load_depth or load_in_progress.
3324         (Fload): Likewise; specbind Qload_in_progress instead.
3325         (init_lread): Don't initialize load_depth.
3326         (syms_of_lread): Initialize and protect Qload_in_progress.
3328 2009-07-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
3330         * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3332 2009-07-23  Yavor Doganov  <yavor@gnu.org>
3334         * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3336 2009-07-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
3338         * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
3339         Bugs 3792, 3720, 2402.
3340         (ns_lookup_indexed_color): Check for bad index.
3341         (ns_index_color): Init unused slot to 0.
3342         (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3343         Bug 3714, possibly 3082.
3345 2009-07-22  Jason Rumney  <jasonr@gnu.org>
3347         * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3348         Position IME window at cursor (Bug#2570).
3349         (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3350         (globals_of_w32fns): Dynamically load functions required above.
3352         * w32term.c (w32_draw_window_cursor): Send message to reposition
3353         any IME window.
3355 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
3357         * fileio.c: Revert 2009-07-16 changes.
3358         (Vauto_save_include_big_deletions): New variable.
3359         (Fdo_auto_save): Disable auto-save only if
3360         auto-save-include-big-deletions is nil.
3362 2009-07-21  Chong Yidong  <cyd@stupidchicken.com>
3364         * xdisp.c (move_it_to): For continued lines ending in a tab, take
3365         the overflowed pixels into account (Bug#3879).
3367 2009-07-21  Ken Raeburn  <raeburn@raeburn.org>
3369         * lread.c (load_depth): New variable.
3370         (Fload, load_unwind, init_lread): Set it to the load recursion
3371         depth; set load_in_progress as a simple boolean based on the
3372         current load_depth.  (Bug#3892)
3374 2009-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
3376         * nsfont.m (ns_has_attribute): Remove.
3377         (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3379 2009-07-18  Juri Linkov  <juri@jurta.org>
3381         * process.c (Fset_process_query_on_exit_flag): Mention killing
3382         a buffer in docstring.
3384 2009-07-17  Kenichi Handa  <handa@m17n.org>
3386         * casetab.c (shuffle): Fix the logic of setting up the cycle.
3388 2009-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3390         * nsfns.m (Fns_set_alpha): Remove function.
3391         (syms_of_nsfns): Don't defsubr it.
3393         * nsterm.m (ns_get_color): Remove incompatible color formats.
3394         (ns_color_to_lisp): Generate #rrggbb color format string.
3396 2009-07-16  Richard Stallman  <rms@gnu.org>
3398         * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3399         (Fset_buffer_auto_saved): Handle save_length = -2.
3401 2009-07-16  Chong Yidong  <cyd@stupidchicken.com>
3403         * xterm.c (Qx_gtk_map_stock): New var.
3405         * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3406         of calling intern each time.
3408 2009-07-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3410         * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3411         does tiling.
3413         * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3415 2009-07-14  Kenichi Handa  <handa@m17n.org>
3417         * font.c (font_vconcat_entity_vectors): New function.
3418         (struct font_sort_data): New member font_driver_preference.
3419         (font_compare): Check font_driver_preference.
3420         (font_sort_entities): The format of the first argument changed.
3421         (font_delete_unmatched): Likewise.
3422         (font_list_entities): The return type changed.
3423         (font_select_entity): The format of the second argument changed.
3424         (font_find_for_lface): Adjuste for the above changes.
3425         Don't suppress the checking of C even if the repertory supports it.
3426         (Flist_fonts): Adjust for the above changes.
3428         * ftfont.c (ftfont_spec_pattern): New arg langname.  Change caller.
3429         (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3430         Reject a font who has adstyle property that is different from a
3431         langname derived from registry property.
3432         (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3434 2009-07-13  Eli Zaretskii  <eliz@gnu.org>
3436         * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3437         local copy of dirfilename.
3439 2009-07-13  Kenichi Handa  <handa@m17n.org>
3441         * chartab.c (sub_char_table_ref_and_range): Fix the range check
3442         against max_char.
3444         * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3445         calling XSYMBOL (sym).
3447 2009-07-11  Eli Zaretskii  <eliz@gnu.org>
3449         * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3450         New function.
3451         (directory_files_internal) [WINDOWSNT]:
3452         Bind w32-get-true-file-attributes to either t or nil, depending whether
3453         the filesystem of the directory is fast or slow.
3455         * w32.c (logon_network_drive): Don't assume PATH is an absolute
3456         file name.
3457         (is_slow_fs): New function.
3458         (stat): Use it to determine whether to issue more system calls to
3459         get accurate file attributes, when w32-get-true-file-attributes is
3460         `local'.
3462 2009-07-10  Jan Djärv  <jan.h.d@swipnet.se>
3464         * xfns.c (Fx_select_font): Remember last font selected in
3465         x_last_font_name and use that the next time.  Also try the frame
3466         parameter font-parameter as default to the font dialog.
3468 2009-07-10  Kenichi Handa  <handa@m17n.org>
3470         * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3472 2009-07-09  Eli Zaretskii  <eliz@gnu.org>
3474         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3476         * w32.c (stat): Treat UNC file names as residing on remote
3477         drives.  (Bug#3542)
3479 2009-07-09  Kenichi Handa  <handa@m17n.org>
3481         * fontset.c (fontset_find_font): Fix previous change.
3483 2009-07-08  Michael Albinus  <michael.albinus@gmx.de>
3485         * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3486         (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3487         error flag.
3489 2009-07-08  Kenichi Handa  <handa@m17n.org>
3491         * fontset.c (fontset_find_font): Fix the logic of handling
3492         charset_matched.
3493         (font_for_char): Delete unused var.
3494         (generate_ascii_font_name): Delete it.
3496         * coding.h (JIS_TO_SJIS2): Fix the code range check.
3498         * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3499         (encode_coding_sjis): Fix the code range check.
3501 2009-07-07  Chong Yidong  <cyd@stupidchicken.com>
3503         * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3504         (Fexpand_file_name): Copy string data properly (Bug#3772).
3506 2009-07-07  Jan Djärv  <jan.h.d@swipnet.se>
3508         * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3509         first MapNotify.
3511 2009-07-07  Kenichi Handa  <handa@m17n.org>
3513         * character.h (unibyte_has_multibyte_table): Delete extern.
3514         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3516         * charset.c (Fset_charset_priority): Update charset_unibyte.
3517         (syms_of_charset): Initialize charset_unibyte.
3519         * character.c (unibyte_has_multibyte_table): Delete it.
3520         (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3521         charset_unibyte.
3522         (multibyte_char_to_unibyte_safe): Likewise.
3523         (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3525         * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3526         (x_produce_glyphs): Likewise.
3528         * .gdbinit (xcharset): Fix the treating $arg0.
3530 2009-07-04  Eli Zaretskii  <eliz@gnu.org>
3532         Emulation of `getloadavg' on MS-Windows.
3533         * w32.c: Include float.h
3534         (g_b_init_get_native_system_info, g_b_init_get_system_times)
3535         (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3536         (get_native_system_info, get_system_times): New functions.
3537         (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3538         (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3539         (globals_of_w32): Initialize g_b_init_get_native_system_info,
3540         g_b_init_get_system_times, and num_of_processors.
3542 2009-07-03  Jason Rumney  <jasonr@gnu.org>
3544         * w32term.c (w32_initialize): Use standard types.
3546 2009-07-03  Eli Zaretskii  <eliz@gnu.org>
3548         * dired.c (Ffile_attributes): Decode user and group names by the
3549         locale's encoding.  (Bug#3443)
3551 2009-07-03  Dan Nicolaescu  <dann@ics.uci.edu>
3553         * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3554         (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3556         * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3558         * term.c (init_tty): Remove spurious #ifdef.
3560         * m/mips.h: Mention this file is also used for netbsd.
3561         * m/pmax.h: Remove file.
3563 2009-07-03  Jan Djärv  <jan.h.d@swipnet.se>
3565         * xterm.h (struct x_display_info): Add invisible_cursor.
3566         (struct x_output): Add current_cursor.
3568         * xterm.c (XTtoggle_invisible_pointer): New function.
3569         (x_define_frame_cursor): Don't define cursor if invisible or the
3570         same as before.  Set current_cursor.
3571         (x_create_terminal): Set toggle_invisible_pointer_hook.
3573         * xfns.c (make_invisible_cursor): New function.
3574         (x_set_mouse_color): Call make_invisible_cursor.
3575         Set current_cursor.
3576         (x_window): Set current_cursor.
3578         * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3580         * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3581         inserting a character.
3582         (read_avail_input): Call frame_make_pointer_visible.
3584         * frame.c (Vmake_pointer_invisible): New variable.
3585         (frame_make_pointer_invisible, frame_make_pointer_visible):
3586         New functions.
3587         (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3589         * frame.h: Declare frame_make_pointer_invisible and
3590         frame_make_pointer_visible.
3591         (struct frame): Add pointer_invisible.
3593 2009-07-02  Jan Djärv  <jan.h.d@swipnet.se>
3595         * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3596         frame isn't visible.
3597         (xg_frame_resized): If width/height is -1, get size of window
3598         from X server.
3600         * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3601         for MapNotify.
3603         * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3604         here or call change_frame_size.  Just call flush_and_sync.
3605         (flush_and_sync): Reintroduce.
3607 2009-07-01  Jan Djärv  <jan.h.d@swipnet.se>
3609         * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3611         * xterm.c (x_handle_net_wm_state): Also look for sticky.
3612         (x_term_init): Initialize Xatom_net_wm_state_sticky.
3614         * frame.h: Declare Qsticky.
3616         * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3618         * nsfns.m (ns_frame_parm_handlers): Ditto.
3620         * frame.c: Declare Qsticky.
3621         (frame_parms): Add sticky.
3623         * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3625         * xterm.h: Declare x_set_sticky.
3627         * xterm.c (x_set_sticky): New function.
3629         * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3630         (xg_tool_bar_menu_proxy): Attach enter/leave events to
3631         xg_tool_bar_proxy_help_callback.
3633         * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3635         * frame.c: Qmaximized is new.
3636         (x_set_frame_parameters): Do not handle fullscreen specially.
3637         Only set width and height if explicitly set.
3638         (x_set_fullscreen): Handle Qmaximized.
3639         (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3640         (syms_of_frame): Initialize Qmaximized.
3642         * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3643         Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3645         * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3646         for Expose event.  Add call to x_check_fullscreen for MapNotify event.
3647         Remove all code w.r.t. fullscreen from ConfigureNotify event.  Do not
3648         set gravity to NorthWestGravity when USE_GTK.
3649         (set_wm_state): New function.
3650         (do_ewmh_fullscreen): Use set_wm_state.  Also handle FULLSCREEN_MAXIMIZED.
3651         (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3652         (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3653         or the case when no window manager is running.  That means remove calls
3654         to x_real_positions and x_fullscreen_adjust.
3656         * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3657         (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3658         flush_and_sync.
3659         (xg_height_changed): New function.
3660         (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3661         and gtk_window_set_policy.  Set frame gravity after parsing the
3662         geometry string.
3663         (xg_update_frame_menubar, free_frame_menubar)
3664         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3665         (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3666         Remove calls to xg_frame_set_char_size.
3668 2009-07-01  Kenichi Handa  <handa@m17n.org>
3670         * keyboard.c (decode_keyboard_code): New function.
3671         (tty_read_avail_input): Decode the input bytes if necessary.
3673         * coding.c (setup_coding_system):
3674         Initialize coding->carryover_bytes to 0.
3675         (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3676         use Qno_conversion.
3678 2009-07-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3680         * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3682 2009-06-30  Chong Yidong  <cyd@stupidchicken.com>
3684         * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3686 2009-06-30  Jason Rumney  <jasonr@gnu.org>
3688         * w32term.c (w32_initialize): Use GetModuleHandle for library that
3689         is already loaded.
3690         Set user model ID if supported (bug#1849).
3692 2009-06-29  Jim Meyering  <meyering@redhat.com>
3694         Remove useless if-before-xfree test.
3695         * nsfont.m (nsfont_close): Remove useless test.
3696         * term.c (delete_tty): Likewise.
3697         * w32.c (system_process_attributes): Likewise.
3698         * w32font.c (w32font_close): Likewise.
3699         * xfaces.c (x_free_gc): Likewise.
3700         * xselect.c (buffer): Likewise.
3702 2009-06-28  Andreas Schwab  <schwab@linux-m68k.org>
3704         * process.c (send_process): Keep decoded string in a local
3705         variable and protect it from GC.  (Bug#3521)
3707 2009-06-28  Eli Zaretskii  <eliz@gnu.org>
3709         * term.c (create_tty_output) [MSDOS]: #ifdef away.
3710         (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3712 2009-06-28  Chong Yidong  <cyd@stupidchicken.com>
3714         * xdisp.c (start_display, handle_face_prop)
3715         (move_it_vertically_backward, cursor_row_fully_visible_p)
3716         (redisplay_window, try_window_id, produce_image_glyph):
3717         Delete some #ifdef-ed out code chunks that are now obsolete.
3719         * xterm.c (x_update_window_begin, x_new_focus_frame)
3720         (x_scroll_bar_handle_click, handle_one_xevent)
3721         (handle_one_xevent, XTread_socket, x_focus_on_frame)
3722         (x_make_frame_visible, x_make_frame_invisible)
3723         (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3724         code chunks that are now obsolete.
3726 2009-06-28  Michael Albinus  <michael.albinus@gmx.de>
3728         * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3729         xd_symbol_to_dbus_type.  With Solaris 2.11, it was said to compile
3730         for hours, when optimzation is enabled.
3731         (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3732         (xd_read_message): Make them static.
3734 2009-06-27  Chuck Blake  <cblake@pdos.csail.mit.edu>  (tiny change)
3736         * term.c (turn_on_face): Allow simultaneously bold and dim
3737         terminal faces (Bug#3530).
3739 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
3741         * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3743         * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3744         truncation glyphs (Bug#3686).
3746 2009-06-27  Glenn Morris  <rgm@gnu.org>
3748         * m/pmax.h: Restore file, with only netbsd portions.
3750 2009-06-26  David Reitter  <david.reitter@gmail.com>
3752         * nsterm.m (keydown): Avoid infinite loop.
3754 2009-06-26  Peter Jolly  <peter@jollys.org>  (tiny change)
3756         * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3757         the arg FORCE_SYMBOL.
3759 2009-06-25  Kenichi Handa  <handa@m17n.org>
3761         * fontset.c (fontset_find_font): When a usable rfont_def is found
3762         in a fallback font-group, make it the first element of the group.
3764 2009-06-24  Chong Yidong  <cyd@stupidchicken.com>
3766         * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3768 2009-06-24  Kenichi Handa  <handa@m17n.org>
3770         * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3771         set for C.
3772         (fontset_font): Record the availability of a font for C both in
3773         the realized fontsets of the current one and the default one.
3775 2009-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
3777         * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3778         conditional, it is always defined on AIX.
3780 2009-06-23  Miles Bader  <miles@gnu.org>
3782         * window.c (Vrecenter_redisplay): New variable.
3783         (syms_of_window): Initialize it.
3784         (Qtty): New extern declaration.
3785         (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3787 2009-06-23  Jim Meyering  <meyering@redhat.com>
3789         * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3790         Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3791         pointer dereferences are guaranteed to be valid.
3793 2009-06-23  Kenichi Handa  <handa@m17n.org>
3795         * emacs.c (main): Call init_font ().
3797         * font.h (Vfont_log): Extern it.
3798         (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3800         * font.c (font_sort_entities, font_list_entities)
3801         (font_matching_entity, font_open_entity)
3802         (font_close_object): Change font_add_log to FONT_ADD_LOG.
3803         (Vfont_log): Delete static.
3804         (font_log_env_checked): Delete this variable.
3805         (font_add_log): Don't check font_log_env_checked.
3806         (font_deferred_log): Check Vfont_log.
3807         (init_font): New function.
3809         * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3811         * w32font.c: Change font_add_log to FONT_ADD_LOG.
3813         * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3815         * xfont.c: Change font_add_log to FONT_ADD_LOG.
3817         * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3818         (face_for_char): Don't call font_deferred_log here.
3819         (font_for_char): Likewise.
3821 2009-06-22  Chong Yidong  <cyd@stupidchicken.com>
3823         * w32term.c (x_draw_glyph_string): Use the glyph string's width
3824         rather than its background_width for drawing the overline and
3825         underline (Bug#489).
3827         * xterm.c (x_draw_glyph_string): Use the glyph string's width
3828         rather than its background_width for drawing the overline and
3829         underline (Bug#489).
3830         (xg_default_icon_file): New variable.
3831         (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3832         (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3834         * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3835         (load_overlay_strings): Remove externs.
3836         (fast_find_position): Function deleted.
3837         (mouse_face_from_buffer_pos): New function, based on
3838         fast_find_position.  Correctly handle before-strings,
3839         display-strings, and after-strings (Bug#1220).
3840         (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3842 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
3844         * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3845         (move_it_in_display_line_to, move_it_in_display_line_to)
3846         (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3848 2009-06-21  Chong Yidong  <cyd@stupidchicken.com>
3850         * Branch for 23.1.
3852 2009-06-21  Jason Rumney  <jasonr@gnu.org>
3854         * w32term.c (keyboard_codepage): New static variable.
3855         (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3856         (w32_read_socket) [WM_CHAR]: Use it to decode character
3857         input (bug#3237).
3858         (w32_initialize): Initialize it.
3859         (codepage_for_locale): New function.
3861 2009-06-20  Ken Raeburn  <raeburn@raeburn.org>
3863         * process.c (status_message): Pass Faset index argument as a lisp
3864         object, so as to work with USE_LISP_UNION_TYPE.
3866 2009-06-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3868         * coding.c (Ffind_coding_systems_region_internal):
3869         Cache checked characters.
3871 2009-06-18  Kenichi Handa  <handa@m17n.org>
3873         * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3875 2009-06-18  Andreas Schwab  <aschwab@redhat.com>
3877         * xdisp.c (redisplay_internal): Check that the frame is still
3878         live after redisplay of its windows.
3879         (redisplay_windows): Check that the window is still live.
3881 2009-06-17  Andreas Schwab  <schwab@linux-m68k.org>
3883         * coding.c (detect_coding_utf_16): Fix previous change.
3885 2009-06-16  Kenichi Handa  <handa@m17n.org>
3887         * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3888         UTF-16 by checking the dispersion of Eth and Oth bytes.
3890 2009-06-15  Andreas Schwab  <schwab@linux-m68k.org>
3892         * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3894 2009-06-15  Kenichi Handa  <handa@m17n.org>
3896         * process.c (status_message): Fix previous change.  Be sure to
3897         decode a localized string.
3899 2009-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3901         * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3902         add comment explaining why.
3904 2009-06-14  Sidney Markowitz  <sidney@sidney.com>
3906         * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3908 2009-06-14  Adrian Robert  <Adrian.B.Robert@gmail.com>
3910         * nsfont.m (ns_attribute_value): Remove.
3911         (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3912         (ns_has_attribute): Shrink the normal range.
3913         (ns_findfonts): Don't worry about requested spec in determining
3914         need for synthItal.
3915         (ns_get_covering_families): Retain scriptToFamilies.
3917 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
3919         * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3921 2009-06-11  Kenichi Handa  <handa@m17n.org>
3923         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3924         overhang for the static composition case.
3926 2009-06-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3928         * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3929         overhang for the automatic composition case.
3931         * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3932         composition case.
3934 2009-06-10  Chong Yidong  <cyd@stupidchicken.com>
3936         * xdisp.c (get_next_display_element): When handling wrap-prefix
3937         and line-prefix, treat \n as a control character (bug#3502).
3939 2009-06-10  Kenichi Handa  <handa@m17n.org>
3941         * font.c (font_parse_family_registry): Fix for one-char foundry.
3942         (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3944 2009-06-09  Dmitry Dzhus  <dima@sphinx.net.ru>  (tiny change)
3946         * process.c (status_message): Fix handling of multibyte signal
3947         string (Bug#3499).
3949 2009-06-09  Jim Meyering  <meyering@redhat.com>
3951         * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3952         color name is missing.
3954 2009-06-09  Kenichi Handa  <handa@m17n.org>
3956         * charset.c (Fmap_charset_chars): In docstring, state clearly that
3957         FROM-CODE and TO-CODE are codepoints of CHARSET.
3959 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
3961         * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3963 2009-06-08  Adrian Robert  <Adrian.B.Robert@gmail.com>
3965         Changes to support :script/:lang/:otf in NS font driver.
3966         * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3967         (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3968         indicate not part of font driver interface, and change callers.
3969         (ns_get_family): Remove pointless null check.
3970         (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3971         ns_spec_to_descriptor, ns_descriptor_to_entity.
3972         (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3973         (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3974         (ns_spec_to_descriptor, ns_descriptor_to_entity)
3975         (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3976         (ns_get_req_script, ns_accumulate_script_ranges)
3977         (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3978         New functions.
3979         (nsfont_list, nsfont_match): Use ns_findfonts.
3980         (nsfont_open): Use font descriptor instead of traits.
3981         (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3982         (dump_glyphstring): Rename to ns_dump_glyphstring.
3984         * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3986         * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3988         * fontset.c (fontset_from_font): Remove NS-specific code.
3990 2009-06-08  Peter Jones  <pjones@pmade.com>  (tiny change)
3992         * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3993         nonactive windows.
3995 2009-06-08  Felix Mueller  <felix@enqueue.eu>  (tiny change)
3997         * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3999 2009-06-08  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
4001         * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4003 2009-06-07  Chong Yidong  <cyd@stupidchicken.com>
4005         * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4006         account for the overflowing of newlines into the last glyph on the
4007         display line (Bug#3482).
4009 2009-06-05  David Reitter  <david.reitter@gmail.com>
4011         * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4012         (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
4013         Fns_selection_exists_p, Fns_selection_owner_p.
4015 2009-06-03  Jason Rumney  <jasonr@gnu.org>
4017         * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4018         available.  (Bug#3379)
4020 2009-05-29  Kenichi Handa  <handa@m17n.org>
4022         * coding.c (get_translation_table):
4023         Check Venable_character_translation.
4025 2009-05-26  David Reitter  <david.reitter@gmail.com>
4027         * nsterm.m (ns_raise_frame): Only raise frame if visible.
4028         (x_make_frame_visible): Move frame to front rather than calling
4029         ns_raise_frame().
4030         (keyDown:): Do not swallow events that aren't re-sent if frame
4031         isn't key window.
4032         (drawRect:): Do not set visibility/iconified flags because
4033         drawRect may be called by NSView even if the frame is hidden.
4035         * nsfns.m (Fx_create_frame): Follow other ports in
4036         determining visibility; default to t.  Ensure async_visible is set.
4038 2009-05-23  Eli Zaretskii  <eliz@gnu.org>
4040         * dired.c (Ffile_attributes): Doc fix.
4042 2009-05-22  Chong Yidong  <cyd@stupidchicken.com>
4044         * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4046 2009-05-21  Stefan Monnier  <monnier@iro.umontreal.ca>
4048         * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4049         and xfont_scratch_props.
4050         (syms_of_xfont): Do it here instead.
4051         (xfont_find_ccl_program): Delete, unused.
4052         (xfont_open): Delete unused var `i'.
4054 2009-05-21  Kenichi Handa  <handa@m17n.org>
4056         * fontset.c (Qlatin): Don't make it static.
4058         * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4059         New functions.
4060         (xfont_scripts_cache, xfont_scratch_props): New variables.
4061         (Qlatin, Vscalable_fonts_allowed): Extern it.
4062         (xfont_list_pattern): Argument changed.  Callers changed.
4063         Check Vscalable_fonts_allowed.  Check the support of a script.
4064         (xfont_list): Don't reject a font spec with :script property.
4065         (xfont_has_char): Fix setting of encoding.
4066         (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4067         xfont_scratch_props.
4069 2009-05-19  Kenichi Handa  <handa@m17n.org>
4071         * font.c (font_sort_entities): Rename from font_sort_entites.
4072         Callers changed.
4074 2009-05-18  Kenichi Handa  <handa@m17n.org>
4076         * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4078 2009-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
4080         * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4081         (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4083 2009-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4085         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4086         (x_delete_terminal): Dissociate resource database from display and
4087         then call XrmDestroyDatabase before closing display.
4089 2009-05-18  Adrian Robert  <Adrian.B.Robert@gmail.com>
4091         * nsterm.m (ns_read_socket): Remove unused variable.
4092         * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4093         whether selected frame is viable before raising it (based on patch
4094         by David Reitter), and improve commentary.
4095         * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
4097 2009-05-15  Kenichi Handa  <handa@m17n.org>
4099         * font.c (Ffont_spec): Check arguments.
4101 2009-05-14  Chong Yidong  <cyd@stupidchicken.com>
4103         * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4104         weight when testing attributes (Bug#3282).
4106 2009-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4108         * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4109         what we expect to get in the next ConfigureNotify event.
4111         * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4112         before Xft one (Bug#1696).
4114 2009-05-07  David Reitter  <david.reitter@gmail.com>
4116         * nsfns.m (Fx_display_planes): Compute bitplanes using
4117         NSBitsPerPixelFromDepth (Bug#3207).
4119 2009-05-10  Chong Yidong  <cyd@stupidchicken.com>
4121         * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4123 2009-05-10  Ulrich Mueller  <ulm@gentoo.org>
4125         * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4127 2009-05-07  David Reitter  <david.reitter@gmail.com>
4129         * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4130         Respect mouse face background.
4132 2009-05-07  David Reitter  <david.reitter@gmail.com>
4134         * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4135         Mouse movement/highlight: bracket drawing operations
4136         in ns_update_begin and ns_update_end.
4138 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
4140         * nsfns.m (ns_get_screen): Rewrite.
4141         Don't presume selected-frame is of type `ns'.
4143         * font.c (font_update_drivers): Sanity fallback to avoid disabling
4144         all drivers.
4146         * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4148 2009-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4150         * keyboard.h (add_user_signal): Fix typo in extern.
4152         * lisp.h (add_user_signal): Remove extern.
4154         * unexelf.c (unexec): Consider a section to precede the .bss section
4155         if its addresses overlap that of .bss.
4156         (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4157         instead of dumping process.
4159 2009-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
4161         * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4163 2009-05-04  Stefan Monnier  <monnier@iro.umontreal.ca>
4165         * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4167 2009-05-02  Dan Nicolaescu  <dann@ics.uci.edu>
4169         * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4170         any statements.
4172 2009-05-02  Andreas Schwab  <schwab@linux-m68k.org>
4174         * process.c (read_process_output): Make sure the current buffer is
4175         always restored.
4177         * coding.c (record_conversion_result): Don't modify
4178         Vlast_code_conversion_error for successful result.
4179         (alloc_destination): Don't clobber conversion result.  (Bug#1650)
4181 2009-05-01  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
4183         * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
4184         (load_charset_map): Remove unnecessary code.
4186 2009-04-30  David Reitter  <david.reitter@gmail.com>
4188         * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4189         through f24.
4191 2009-04-30  Chong Yidong  <cyd@stupidchicken.com>
4193         * xfaces.c (face_at_buffer_position): New arg base_face_id.
4195         * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4196         face_at_buffer_position.
4197         (face_before_or_after_it_pos, get_next_display_element)
4198         (note_mouse_highlight): Update face_at_buffer_position call.
4200         * term.c (term_mouse_highlight):
4201         * msdos.c (IT_note_mouse_highlight):
4202         * fontset.c (Finternal_char_font):
4203         * font.c (font_at, font_range): Update face_at_buffer_position call.
4205         * dispextern.h (face_at_buffer_position): Update prototype.
4207 2009-04-30  Kenichi Handa  <handa@m17n.org>
4209         * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
4211 2009-04-29  Andreas Schwab  <schwab@linux-m68k.org>
4213         * callproc.c (Fcall_process): Fix GC protection.  Make sure
4214         current buffer is always restored.
4216 2009-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4218         * atimer.c (init_atimer): Also clear stopped_atimers.
4220         * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4222         * process.c (create_process): Clean up merger residues of
4223         2008-07-17 change.
4225 2009-04-29  Ulrich Mueller  <ulm@gentoo.org>
4227         * lread.c (Vread_circle): New variable.
4228         (read1): Disable recursive read if Vread_circle is nil.
4230 2009-04-29  Kenichi Handa  <handa@m17n.org>
4232         * fontset.h (set_default_ascii_font): Delete extern.
4234         * fontset.c (set_default_ascii_font): Delete this unused function.
4236         * frame.c (x_set_font): When ARG is a font-object, check if the
4237         font-object matches with the ASCII font-spec of the frame's
4238         fontset.  If not, create a new fontset for the frame.  (Bug #3075)
4240 2009-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4242         * fns.c (Flocale_info): Protect vector from GC during decoding.
4244         * process.c (Fstart_process): Protect argv strings from GC during
4245         encoding.
4247 2009-04-27  Andreas Schwab  <schwab@linux-m68k.org>
4249         * sysdep.c: Include <ctype.h>.
4251 2009-04-27  David Reitter  <david.reitter@gmail.com>
4253         * nsfont.m (nsfont_open): Remove unused variable shrink.
4254         Remove commented-out code.
4256 2009-04-26  Johan Bockgård  <bojohan@gnu.org>
4258         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4260 2009-04-25  Jason Rumney  <jasonr@gnu.org>
4262         * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4264 2009-04-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4266         * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4267         Swap bytes in short integer if fringe bitmap width > 8.
4269 2009-04-23  Kenichi Handa  <handa@m17n.org>
4271         * xfaces.c (Fx_list_fonts): If a font size is specified in
4272         PATTERN, set it in returned scalable fonts.
4274 2009-04-22  Chong Yidong  <cyd@stupidchicken.com>
4276         * keyboard.c (Fset_input_meta_mode): Doc fix.
4278         * dispnew.c (Fsend_string_to_terminal): Doc fix.
4280         * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
4282         * coding.c (Fterminal_coding_system): Doc fix.
4284         * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4285         (Fx_display_pixel_height, Fx_display_planes)
4286         (Fx_display_color_cells, Fx_server_max_request_size)
4287         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4288         (Fx_display_mm_height, Fx_display_mm_width)
4289         (Fx_display_backing_store, Fx_display_visual_class)
4290         (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4291         Doc fixes, replacing "terminal id" with "terminal object".
4292         (check_x_display_info): Handle terminal objects instead of
4293         terminal ids.
4295         * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4296         (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
4297         (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4298         Doc fixes, replacing "terminal id" with "terminal object".
4300 2009-04-21  Kenichi Handa  <handa@m17n.org>
4302         * font.c (font_load_for_lface): Cancel previous change (bug#2994).
4303         (font_score): Check AVGWIDTH too.
4305         * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4306         worst case.
4307         (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4308         (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
4310 2009-04-19  Jason Rumney  <jasonr@gnu.org>
4312         The following changes fix Bug#3005 for wide glyphs on each platform,
4313         without reintroducing Bug#1258 for stretch glyphs.
4315         * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4316         BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR using
4317         get_phys_cursor_geometry.
4319         * w32term.c (x_draw_bar_cursor): Limit cursor width differently
4320         for BAR_CURSOR and HBAR_CURSOR.  Calculate width of HBAR_CURSOR
4321         using get_phys_cursor_geometry.
4323         * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4324         correctly calculated.
4326 2009-04-19  Jan Djärv  <jan.h.d@swipnet.se>
4328         * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4329         Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
4330         (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4331         is deprecated.
4333 2009-04-18  Andreas Schwab  <schwab@linux-m68k.org>
4335         * font.c (font_put_frame_data): Use xfree instead of free.
4337 2009-04-17  Juanma Barranquero  <lekktu@gmail.com>
4339         * w32font.c (Qja, Qko): Remove declarations.
4340         (syms_of_w32font): Don't DEFSYM them.
4342 2009-04-17  Chong Yidong  <cyd@stupidchicken.com>
4344         * font.c (Qja, Qko): Move definitions here from ftfont.c.
4346         * font.h (Qja, Qko): Extern them.
4348         * ftfont.c (Qja, Qko): Remove declarations.
4350         * xfont.c (Qja, Qko): Remove declarations.
4352 2009-04-17  Kenichi Handa  <handa@m17n.org>
4354         * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4355         string from a vector to handle Latin-1 characters correctly.
4357         * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4358         entity even if the cache hits.
4360 2009-04-16  Andreas Schwab  <schwab@linux-m68k.org>
4362         * search.c (boyer_moore): Use zero as marker value for a possible
4363         match instead of depending on overflow behavior.  (Bug#2844)
4365         * search.c: Use EMACS_INT for buffer positions.  Add prototypes.
4366         * lisp.h: Adjust prototypes.
4368 2009-04-16  Chong Yidong  <cyd@stupidchicken.com>
4370         * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4371         change (Bug#3003).
4373 2009-04-16  Kenichi Handa  <handa@m17n.org>
4375         * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
4377         * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4378         adstyle.
4380         * ftfont.c (Qja, Qko): Don't make them static.
4381         (enum ftfont_cache_for): New enum.
4382         (fc_charset_table): Undo the previous change.
4383         (ftfont_get_latin1_charset): Delete it.
4384         (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4385         Set FONT_SIZE_INDEX of the entity to 0 for a scalable font.  For a
4386         non-scarable font, try to get AVERAGE_WIDTH.
4387         (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4388         Change ft_face_cache from a list of a hash-table.  Don't check
4389         `ja' and `ko' adstyle here.
4390         (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4391         FTFONT_CACHE_FOR_CHARET.
4392         (ftfont_get_charset): Undo the previous change.
4393         (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
4394         (ftfont_close): Likewise.
4395         (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4397         * font.c (font_sort_entites): Change the meaning of the arg
4398         BEST-ONLY.  Don't optimize for VEC of lenght 1.
4399         (font_select_entity): Just return the value of font_sort_entites.
4401         * xfaces.c (merge_face_vectors): Reflect font properties in
4402         to[LFACE_FONT_INDEX] to the other face attributes.  Don't call
4403         font_clear_prop if a face attribute doesn't change.
4405         * charset.h (charset_ksc5601): Extern it.
4407         * charset.c (charset_ksc5601): New variable.
4408         (Fdefine_charset_internal): Set charset_ksc5601.
4409         (init_charset_once): Initialize charset_ksc5601 to -1.
4411 2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
4413         * fileio.c (history_delete_duplicates): Remove unused declaration.
4415         * callint.c (history_delete_duplicates): New declaration.
4416         (Fcall_interactively): Remove command history duplicates when
4417         history_delete_duplicates is true.
4419 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
4421         * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4423 2009-04-14  Kenichi Handa  <handa@m17n.org>
4425         * font.c (Ffont_info): Fix docstring.  Fix the second element of
4426         the returned value (bug#2949).
4428 2009-04-14  Chong Yidong  <cyd@stupidchicken.com>
4430         * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4432 2009-04-14  Kenichi Handa  <handa@m17n.org>
4434         * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4435         encoding charset is ascii_compatible.
4437         * charset.c (Fdefine_charset_internal): Make charset
4438         ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4439         code_offset is 0, and covers all ASCII characters.
4441 2009-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
4443         * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4444         (ns_string_to_pasteboard_internal):
4445         * nsmenu.m (process_dialog):
4446         * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4447         * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4448         * lisp.h (Fx_load_color_file): Declare.
4450 2009-04-13  Kenichi Handa  <handa@m17n.org>
4452         * font.c (font_delete_unmatched): Preserve the order of list elements.
4453         (font_select_entity): Suppress the code to optimize for the same
4454         kind of fonts.
4455         (font_load_for_lface): Get a font that supports at least ASCII
4456         characters.
4458         * ftfont.c (Qja, Qko): New variables.
4459         (fc_charset_table): Delete uniquifier data for iso8859-1.
4460         (ftfont_get_latin1_charset): New function.
4461         (get_adstyle_property): New function.
4462         (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4463         bitmap fonts.
4464         (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4465         Delete iso-8859-1 range from the charset of fonts whose adstyle is
4466         `ko' or `ja'.
4467         (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4468         (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4469         (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4470         property.
4471         (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4472         (syms_of_ftfont): DEFSYM Qja and Qko.
4474 2009-04-09  Kenichi Handa  <handa@m17n.org>
4476         * charset.c (map_charset_chars): For a charset of `superset'
4477         method, fix calculation of code range.
4479         * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4480         from the list of extra properties.
4481         (font_clear_prop): Be sure to delete `:name' font property.
4483 2009-04-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4485         * dispnew.c (redraw_overlapping_rows): Fix detection of
4486         overlapping for topmost and bottommost rows.
4488         * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4490 2009-04-06  Jason Rumney  <jasonr@gnu.org>
4492         * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4494 2009-04-06  Kenichi Handa  <handa@m17n.org>
4496         * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4498         * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4500 2009-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4502         * ftfont.c (ftfont_open): Fix checking of the return value of
4503         FT_Load_Char.  Fix setting font->underline_thickness.
4505 2009-04-04  Chong Yidong  <cyd@stupidchicken.com>
4507         * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4508         (Fterminal_parameters, Fterminal_parameter)
4509         (Fset_terminal_parameter): In doc string, refer to terminal
4510         objects rather than terminal ids.
4512 2009-04-04  Eli Zaretskii  <eliz@gnu.org>
4514         * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4515         ret_lim_data.  (Bug#2867)
4517 2009-04-03  Chong Yidong  <cyd@stupidchicken.com>
4519         * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4520         so they don't get wider than the window, matching 2006-01-23
4521         change to the partner function in xdisp.c (Bug#2800).
4523 2009-04-03  Kenichi Handa  <handa@m17n.org>
4525         * print.c (print_object): Make each lowest sub_char_table start a
4526         new line (Bug#2866).
4528 2009-04-02  Kenichi Handa  <handa@m17n.org>
4530         * fontset.c (fontset_font): Record no-font when a fontset
4531         explicitly tells not to try another font-specs.
4533 2009-03-30  Pierre Poissinger  <pierre.poissinger@gmail.com>  (tiny change)
4535         * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4537 2009-03-30  Kenichi Handa  <handa@m17n.org>
4539         * fontset.c (fontset_from_font): Specify only registry in a
4540         font-spec for all characters supported by that registry.
4542         * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
4543         even if HAVE_M17N_FLT is not defined.
4545 2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
4547         * ftfont.c: Conditionalize prototyping and use of
4548         ftfont_variation_glyphs.
4550 2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
4552         * frame.c (delete_frame): Work around compiler bug.
4554         * editfns.c (general_insert_function): Adjust to insdel.c changes.
4555         * insdel.c (prepare_to_modify_buffer, signal_before_change):
4556         Some more EMACS_INT.
4557         * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4559         * xdisp.c (dump_glyph): Fix typo.
4561         * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4562         (adjust_markers_gap_motion, adjust_markers_for_delete)
4563         (adjust_markers_for_insert, adjust_point)
4564         (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4565         (make_gap, copy_text, count_size_as_multibyte, insert)
4566         (insert_and_inherit, insert_before_markers)
4567         (insert_before_markers_and_inherit, insert_1)
4568         (count_combining_before, count_combining_after, insert_1_both)
4569         (insert_from_string, insert_from_string_before_markers)
4570         (insert_from_string_1, insert_from_gap, insert_from_buffer)
4571         (insert_from_buffer_1, adjust_after_replace)
4572         (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4573         (replace_range_2, del_range, del_range_1, del_range_byte)
4574         (del_range_both, del_range_2, modify_region)
4575         (prepare_to_modify_buffer, signal_before_change)
4576         (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4577         for buffer positions and sizes.
4578         * lisp.h: Adjust prototypes accordingly.
4580         * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4581         (non_regular_inserted, non_regular_nbytes, read_non_regular)
4582         (Finsert_file_contents): Use EMACS_INT for buffer positions.
4584         * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4586 2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
4588         * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4589         lines and columns so we keep the same pixel height and width.
4591         * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4592         the property _NET_WM_STATE has changed.
4593         (x_handle_net_wm_state): New function to update frame parameter
4594         fullscreen.
4595         (x_term_init): Initialize atoms for _NET_WM_STATE.
4597         * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4599 2009-03-27  Kevin Ryde  <user42@zip.com.au>
4601         * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4602         Gpm_GetEvent as an error that justifies closing the filedescriptor.
4603         * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4604         (Fgpm_mouse_stop): Pass that new parameter.
4605         * termhooks.h (close_gpm): Adjust prototype.
4607 2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
4609         * lisp.h (Fx_focus_frame): Declare.
4611         * callint.c (Fcall_interactively): For '^' just delegate the work to
4612         handle-shift-selection.
4613         (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4615 2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
4617         * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4619         * data.c (Qinteractive_form): New variable.
4620         (Finteractive_form): Use it.
4622         * eval.c (Fcommandp): Use Qinteractive_form.
4624 2009-03-24  Jason Rumney  <jasonr@gnu.org>
4626         * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4627         Calculate total size precisely.  Decode environment variables
4628         before substituting.  (Bug#38)
4630 2009-03-24  Kenichi Handa  <handa@m17n.org>
4632         * font.c (find_font_encoding): Return Qnil for unsupported
4633         encoding (Bug#2722).
4635 2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
4637         * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4638         that gdpy is set.
4640 2009-03-22  Alan Mackenzie  <acm@muc.de>
4642         * callint.c (Finteractive): Clarify the doc string - even
4643         promptless elements need \n separators.
4645 2009-03-22  Jason Rumney  <jasonr@gnu.org>
4647         * w32term.c (syms_of_w32term): Doc fix for
4648         x-use-underline-position-properties.
4650 2009-03-21  Eli Zaretskii  <eliz@gnu.org>
4652         * w32.c (getpwuid): Change argument type to unsigned.
4653         (struct w32_id): Change type of `rid' member to unsigned.
4654         (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4655         argument ID to unsigned.  All callers changed.
4656         (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4658 2009-03-20  Eli Zaretskii  <eliz@gnu.org>
4660         * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4661         negative, produce a float value.
4663         * dired.c (make_uid, make_gid): New functions.
4664         (Ffile_attributes): Use them to avoid negative UID and GID.
4666 2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
4668         * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4669         (syms_of_keyboard) <command-hook-internal, input-method-function>:
4670         Fix typos in docstrings.
4672 2009-03-19  Kenichi Handa  <handa@m17n.org>
4674         * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4675         changed, use font_load_for_lface to get a new font object.
4676         Call free_realized_fontset after handling ASCII font change.
4678         * frame.c (x_set_font): Handle the case that ARG is a cons.
4680 2009-03-19  Glenn Morris  <rgm@gnu.org>
4682         * fileio.c (Fsubstitute_in_file_name): Doc fix.
4684 2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
4686         * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4688 2009-03-19  Kenichi Handa  <handa@m17n.org>
4690         * charset.c (load_charset_map_from_file): When a mapfile can't be
4691         loaded, signal an error.
4693 2009-03-18  Eli Zaretskii  <eliz@gnu.org>
4695         * dired.c (Ffile_attributes): Make sure UID and GID are always
4696         positive, even if the value is too large for a positive EMACS_INT.
4697         Doc fix.
4699         * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
4701 2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4703         * xmenu.c (xdialog_show): Move Fredisplay call ...
4704         (Fx_popup_dialog): ... here.
4706 2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
4708         * dired.c (file_name_completion): Disable the first optimization just
4709         installed, since it is not implemented correctly.
4711 2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
4713         * dired.c (file_name_completion): Check completion-ignored-extensions
4714         only if the entry can affect bestmatch.
4715         Stop the search early, as Ftry_completion already does.
4717 2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
4719         * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4721 2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
4723         * keyboard.c (parse_menu_item): Don't display remappings as menu
4724         equivalent bindings (Bug#788).
4726 2009-03-15  Jason Rumney  <jasonr@gnu.org>
4728         * w32term.h (WM_EMACS_PAINT): New message.
4729         * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4730         * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4731         before passing to lisp thread.  (Bug#950)
4733 2009-03-14  David Reitter  <david.reitter@gmail.com>
4735         * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4736         variable as it was never reset.
4737         (ns_term_init): Remove initialization of Lisp-settable defaults
4738         and ns_expand_space.
4739         (-setPanelFromDefaultValues): Remove ns_expand_space.
4740         (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4741         * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4742         i.e. no additional spacing, similar to Carbon port.
4744         * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4745         * nsfns.m (ns-popup-prefs-panel): Remove.
4747 2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
4749         * sound.c (alsa_configure): Remove call to deprecated
4750         snd_pcm_sw_params_set_xfer_align.
4752 2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
4754         * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4755         after clicking in a detached tool bar.
4756         (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4758 2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
4760         * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4761         int/Lisp_Object mixup).
4763 2009-03-13  Kenichi Handa  <handa@m17n.org>
4765         * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4766         Handle NAME nil and t correctly.  Callers changed.
4767         (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4768         (set_fontset_font): Change ARG to a vector.  Handle range_list in
4769         ARG correctly.
4770         (Fset_fontset_font): Fix the case that TARGET is both a script
4771         name and charset name.  Adjust the arg to set_fontset_font for
4772         the above change.
4773         (fontset_from_font): Fix previous change.
4774         (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4775         entry.  If FONTSET is the default fontset, don't set the extra
4776         slot of the returning char-table.
4778 2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
4780         * nsfns.m (Fx_close_connection): Doc fix.
4781         (Fns_do_applescript): Reflow docstring.
4782         (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4783         (Fx_display_pixel_width, Fx_display_pixel_height)
4784         (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4785         Fix typos in docstrings.
4786         (Fns_set_alpha): Fix typos in error messages.
4788 2009-03-12  David Reitter  <david.reitter@gmail.com>
4790         * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4791         non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
4792         were used for such events.
4794         * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4795         (toggleToolbar, performDragOperation, runHelp): Use it.
4797         * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4798         NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4800 2009-03-11  Kenichi Handa  <handa@m17n.org>
4802         * font.h (font_open_by_spec): Extern it.
4804         * font.c (font_open_by_spec): New function.
4805         (font_open_by_name): Use font_open_by_spec.
4807         * frame.c (x_set_font): When ARG is a font-object, don't alter the
4808         fontset of the frame.
4810         * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4811         modify the default font of frames that use this fontset.
4812         (num_auto_fontsets): New variable.
4813         (fontset_from_font): Use num_auto_fontsets to decide a fontset
4814         name.  Be sure to set FONTSET_ASCII to the correct font name.
4815         (update_auto_fontset_alist): New function.
4817 2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
4819         * makefile.w32-in: Update dependencies.
4821 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
4823         * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4825 2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
4827         * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4829 2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
4831         * lread.c (Feval_buffer): Doc fix.
4833 2009-03-09  Kenichi Handa  <handa@m17n.org>
4835         * charset.c (Qfile_name_handler_alist): Extern it.
4836         (load_charset_map_from_file): Temporarily bind
4837         `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
4839 2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
4841         * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4842         not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
4844 2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
4846         * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4847         (x_set_window_size): Change back to calculated method of setting
4848         toolbar height under Cocoa.  (Bug#2546)
4849         (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4850         (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4852         * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4854         * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4855         accelerator in parens under GNUstep.
4857 2009-03-06  Kenichi Handa  <handa@m17n.org>
4859         These changes are to detect incorrect composition sequence without
4860         looking ahead the source.  (Bug#2370)
4862         * coding.h: Include "composite.h".
4863         (enum compisition_state): New enum.
4864         (struct compisition_status): New struct.
4865         (struct iso_2022_spec): New member cmp_status.
4866         (struct emacs_mule_spec): New struct.
4867         (struct coding_system): New members ctext_extended_segment_len and
4868         embedded_utf_8.  Change the union member
4869         spec.emacs_mule_full_support to spec.emacs_mule.
4871         * coding.c (CODING_ISO_CMP_STATUS): New macro.
4872         (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4873         (MAX_ANNOTATION_LENGTH): Define to 5.
4874         (ADD_COMPOSITION_DATA): New arg nbytes.
4875         (emacs_mule_char): New arg cmp_status.
4876         (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4877         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4878         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4879         (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4880         (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4881         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4882         (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4883         (EMACS_MULE_COMPOSITION_END): New macro.
4884         (emacs_mule_finish_composition): New function.
4885         (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4886         (decode_coding_emacs_mule): Avoid long looking ahead while
4887         handling composition.
4888         (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4889         (ENCODE_COMPOSITION_RULE): New macro.
4890         (finish_composition): New function.
4891         (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4892         (DECODE_COMPOSITION_START): New implementation.
4893         (DECODE_COMPOSITION_END): Likewise.
4894         (STORE_COMPOSITION_RULE): New macro.
4895         (decode_coding_iso_2022): Avoid long looking ahead while handling
4896         composition, CTEXT extended segment, and embedded UTF-8.
4897         (setup_coding_system): For a coding of type iso-2022, reset
4898         CODING_ISO_EXTSEGMENT_LEN (coding) and
4899         CODING_ISO_EMBEDDED_UTF_8 (coding).
4900         (get_translation): Delete arguments last_block, from_nchars,
4901         to_nchars.  Callers changed.
4902         (produce_chars): Don't modify charbuf.  Adjusted for the change of
4903         get_translation.
4904         (produce_composition): Adjust for the new annotation sequence.
4905         (handle_composition_annotation): Likewise.
4906         (consume_chars): Adjust for the change of get_translation.
4908 2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
4910         * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
4912 2009-03-05  Kenichi Handa  <handa@m17n.org>
4914         * font.c (font_select_entity): New function.
4915         (font_find_for_lface): Use font_select_entity to select a font.
4917         * fontset.c (fontset_find_font): If a font found without
4918         restricting to the characters C doesn't support C, try to find a
4919         font with C restriction.
4921 2009-03-04  Nikolaj Schumacher  <me@nschum.de>
4923         * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4925 2009-03-04  Jason Rumney  <jasonr@gnu.org>
4927         * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4928         characters that have already been read.  (Bug#2569)
4930         * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4931         Log an error message if check_image_size failed.
4932         (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4933         (gs_load): Mention max-image-size in size error message.  (Bug#2560)
4935 2009-03-02  Eli Zaretskii  <eliz@gnu.org>
4937         * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4938         when decoding process output.
4940 2009-03-01  Richard M Stallman  <rms@gnu.org>
4942         * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4944         * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4946 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
4948         * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4949         (decode_coding_emacs_mule, decode_coding_iso_2022)
4950         (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4951         (decode_coding_raw_text, decode_coding_charset)
4952         (setup_coding_system, decode_eol, decode_coding, consume_chars):
4953         Honor inhibit-eol-conversion.  (Bug #2186)
4955 2009-02-28  Jason Rumney  <jasonr@gnu.org>
4957         * coding.c (detect_coding_charset): If not checking latin extra,
4958         fail on characters between 0x80 and 0xA0.  (Bug#2354)
4960 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
4962         * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4963         Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
4965 2009-02-27  Glenn Morris  <rgm@gnu.org>
4967         * callint.c (Finteractive): Doc fix.
4969 2009-02-27  Kenichi Handa  <handa@m17n.org>
4971         * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4973 2009-02-27  Chong Yidong  <cyd@stupidchicken.com>
4975         * font.c (font_style_to_value): Set value for unknown symbols to
4976         100 instead of 255.
4977         (weight_table, slant_table, width_table): Treat "unspecified" as
4978         the default value.
4980 2009-02-26  Juanma Barranquero  <lekktu@gmail.com>
4982         * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4984 2009-02-25  Juanma Barranquero  <lekktu@gmail.com>
4986         * lread.c (Fload): Stop checking Vloads_in_progress and signal
4987         error as soon as a recursive load is detected.
4989 2009-02-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
4991         * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4992         before caching.
4994 2009-02-24  Kenichi Handa  <handa@m17n.org>
4996         * fontset.c (fontset_find_font): Fix the condition for checking
4997         unavailable font.
4999 2009-02-24  Glenn Morris  <rgm@gnu.org>
5001         * xfaces.c (Finternal_set_font_selection_order): Remove leading
5002         whitespace that confuses documentation.
5004 2009-02-23  Miles Bader  <miles@gnu.org>
5006         * process.c (Flist_system_processes, Fprocess_attributes)
5007         (syms_of_process): Rename `system-process-attributes' to
5008         `process-attributes'.
5010 2009-02-22  Andreas Schwab  <schwab@linux-m68k.org>
5012         * coding.h (struct coding_system): Make safe_charsets a pointer to
5013         unsigned char.
5014         * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5015         being 255.
5016         (SAFE_CHARSET_P): Likewise.
5017         (setup_iso_safe_charsets): Properly setup safe_charsets.
5018         (Fdefine_coding_system_internal): Likewise.
5019         (setup_coding_system): Likewise.  Remove unneeded casts.
5020         (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5021         CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.  Remove
5022         unneeded casts.
5024         * insdel.c (del_range_2): Don't modify gap contents when called
5025         from decode_coding_object.  (Bug#1809)
5027 2009-02-21  Chong Yidong  <cyd@stupidchicken.com>
5029         * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5030         Qfont_object.
5031         (Ftype_of): Recognize font objects.
5033         * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5035         * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5036         moved to data.c.
5038 2009-02-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
5040         * nsterm.m (x_make_frame_invisible): Unset async_visible,
5041         async_iconified.  Based on a patch by Christian Lynbech
5042         <christian.lynbech@tieto.com>.
5043         (EmacsView-windowDidMiniaturize:): Unset async_visible.
5045 2009-02-20  Glenn Morris  <rgm@gnu.org>
5047         * syntax.c (Fskip_chars_forward): Fix doc typo.
5049 2009-02-20  Chong Yidong  <cyd@stupidchicken.com>
5051         * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5053 2009-02-19  Chong Yidong  <cyd@stupidchicken.com>
5055         * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5057 2009-02-19  Kenichi Handa  <handa@m17n.org>
5059         * coding.c (detect_coding): Preserve coding->mode.
5060         Don't overflow coding->carryover.  (Bug#2370)
5062 2009-02-18  Dan Nicolaescu  <dann@ics.uci.edu>
5064         * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5066 2009-02-18  Kenichi Handa  <handa@m17n.org>
5068         * font.c (font_check_otf_features): Fix handling of `nil' element.
5069         (Ffont_spec): Describe :lang and :otf in the docstring.
5071 2009-02-16  Andreas Schwab  <schwab@suse.de>
5073         * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5074         string.
5076 2009-02-16  Kenichi Handa  <handa@m17n.org>
5078         * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
5079         (Bug#1723)
5081 2009-02-14  Chong Yidong  <cyd@stupidchicken.com>
5083         * dispextern.h (struct iterator_stack_entry): New line_wrap member.
5085         * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5086         (handle_line_prefix): Suppress wrapping of wrap prefixes.
5088 2009-02-14  Eli Zaretskii  <eliz@gnu.org>
5090         * msdos.c (MAX_SCREEN_BUF): New macro.
5091         (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5092         Encode the entire run of glyphs sharing the same face, instead of
5093         doing that one glyph at a time (fixes a bug with displaying
5094         double-size characters).
5096 2009-02-13  Adrian Robert  <Adrian.B.Robert@gmail.com>
5098         * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5100         * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5101         (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
5102         pop_down_menu do the cleanup work as it is always called.  (Bug#2154)
5104         * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
5105         set fontset font for "mathematical-" sub-scripts.  (Bug #2218)
5107 2009-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
5109         * keyboard.c (adjust_point_for_property): Allow stopping between two
5110         invisible areas.
5112 2009-02-12  Jason Rumney  <jasonr@gnu.org>
5114         * w32font.c (check_face_name): Check for fake helv.  (Bug#2275)
5115         (add_font_entity_to_list): Call check_face_name even when family
5116         is unspecified.
5118         * w32term.c (x_display_pixel_height, x_display_pixel_width):
5119         Release DC when finished.  Use NULL window to refer to desktop.
5120         (w32_term_init): Use NULL window to refer to desktop.  (Bug#460)
5122         * w32font.c (add_font_entity_to_list): Fix check for substituted
5123         raster fonts.  (Bug#2219)
5125 2009-02-12  Kenichi Handa  <handa@m17n.org>
5127         * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5128         (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5129         (autocmp_chars): Use fast_looking_at.  Don't compose more
5130         characters than MAX_COMPOSITION_COMPONENTS.
5131         (find_automatic_composition): While looking forward and backward,
5132         check static composition.  Fix where to stop looking forward.
5133         (composition_adjust_point): Fix checking of static composition.
5134         (Fcomposition_get_gstring): Pay attention to
5135         MAX_COMPOSITION_COMPONENTS.
5137         * lisp.h (fast_looking_at): Extern it.
5139         * search.c (fast_looking_at): New function.
5141         * term.c (encode_terminal_code): Adjust for the change of
5142         <struct glyph>.u.cmp.to.
5143         (append_composite_glyph): Likewise.
5145         * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
5146         <struct glyph>.u.cmp.to.  Check if the glyph belongs to the same
5147         composition.
5148         (append_composite_glyph): Adjust for the change of
5149         <strcut glyph>.u.cmp.to.
5151 2009-02-11  Juanma Barranquero  <lekktu@gmail.com>
5153         * casetab.c (init_casetab_once):
5154         * coding.c (ALLOC_CONVERSION_WORK_AREA):
5155         * font.c (font_update_lface):
5156         * fontset.c (Fnew_fontset):
5157         * ftfont.c (ftfont_drive_otf):
5158         * xfont.c (xfont_open):
5159         * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5161 2009-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
5163         * fileio.c (Fwrite_region): !NILP -> CONSP.
5165 2009-02-10  Andreas Schwab  <schwab@suse.de>
5167         * process.c (send_process): Properly relocate pointer into data
5168         when using encoded data.  (Bug#2272)
5170 2009-02-08  ARISAWA Akihiro  <ari@mbf.sphere.ne.jp>
5172         * coding.c (detect_coding_charset): Fix previous change.
5174 2009-02-08  Jason Rumney  <jasonr@gnu.org>
5176         * w32fns.c (w32_hide_hourglass): Handle case where frame
5177         disappeared while hourglass was displayed.  (Bug #2193)
5179 2009-02-07  Andreas Schwab  <schwab@suse.de>
5181         * unexelf.c (unexec): Fix error message.
5183 2009-02-07  Adrian Robert  <Adrian.B.Robert@gmail.com>
5185         * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
5186         when modal window is active.  (Bug #2152)
5187         (applicationShouldTerminate:): Remove now-unneeded while loop
5188         around NSRunAlertPanel.
5190         * nsmenu.m (popupSession): New file-global variable.
5191         (pop_down_menu): End the popupSession before closing dialog.
5192         (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5193         (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5194         don't query NSApp for events (just sleep instead).
5196 2009-02-07  Eli Zaretskii  <eliz@gnu.org>
5198         * coding.c (syms_of_coding) <translation-table-for-input>:
5199         Modify doc string to discourage use for character code unification.
5201 2009-02-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5203         * atimer.c (run_timers): Update pending_atimers.
5205 2009-02-06  Chong Yidong  <cyd@stupidchicken.com>
5207         * image.c (svg_load_image): Fix last change.
5209         * xfns.c (Fx_create_frame): Signal an error if no font is
5210         found (Bug#2147).
5212 2009-02-05  Juanma Barranquero  <lekktu@gmail.com>
5214         * character.c (syms_of_character) <script-representative-chars>:
5215         Fix typo in docstring.
5217 2009-02-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
5219         * nsmenu.m (pop_down_menu): New function.
5220         (ns_popup_dialog): Call it on unwind.
5221         (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5222         call timer_check() (Bug#2154).
5223         (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5224         handling_signal is set.
5225         (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5227         * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
5229         * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5231         * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5233         * keyboard.c (poll_for_input_1, handle_async_input):
5234         Set handling_signal under HAVE_NS.
5236 2009-02-04  Glenn Morris  <rgm@gnu.org>
5238         * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5240 2009-02-04  Kenichi Handa  <handa@m17n.org>
5242         * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5244         * charset.c (Fchar_charset): New optional arg restriction.
5246         * coding.h (coding_system_charset_list): Extern it.
5248         * coding.c (coding_system_charset_list): New function.
5250         * composite.c: Include coding.h and termhooks.h.
5251         (composition_gstring_p): Fix for the terminal case.
5252         (composition_gstring_width): Likewise.
5253         (fill_gstring_body): Likewise.
5254         (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5255         the frame.
5256         (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5257         is within a composition.
5258         (Fcomposition_get_gstring): Fix the terminal case.
5260         * term.c (encode_terminal_code): Fix handling of composition.
5261         (produce_composite_glyph): For static composition, get pixel_width
5262         from struct composition.
5264 2009-02-02  Andreas Schwab  <schwab@suse.de>
5266         * unexelf.c (unexec): Handle unaligned bss offset.
5268 2009-02-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
5270         * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5271         XT,w32read_socket changes to ns_read_socket.
5273         * keyboard.c (handle_interrupt): Don't call
5274         quit_throw_to_read_char() under NS.
5276         * blockinput.h: Remove NS-specific code.
5278 2009-01-30  Dan Nicolaescu  <dann@ics.uci.edu>
5280         * dispnew.c (window_change_signal): Don't try to get the size of a
5281         suspended tty frame.
5282         * term.c (Fresume_tty): Resize if the size has changed while the
5283         tty was suspended.
5285         * alloc.c (mark_stack): Properly conditionalize previous change.
5287 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
5289         * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5290         * w32term.c (w32_read_socket) [SYNC_INPUT]:
5291         Remove; this code is not used on Windows.
5293 2009-01-30  Eli Zaretskii  <eliz@gnu.org>
5295         * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5296         EOLs that also has stray ^M characters.
5298 2009-01-30  Juanma Barranquero  <lekktu@gmail.com>
5300         * atimer.c (run_timers, alarm_signal_handler):
5301         * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5302         * w32inevt.c (w32_console_read_socket):
5303         * w32term.c (w32_read_socket):
5304         * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5306 2009-01-30  Chong Yidong  <cyd@stupidchicken.com>
5308         * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5309         Initialize it as a relative filename pattern.
5310         (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5311         (Fcall_process_region): Simplify temp file creation using
5312         temporary-file-directory.
5314 2009-01-29  Eli Zaretskii  <eliz@gnu.org>
5316         * msdos.c: Rename pending_signals to msdos_pending_signals.
5317         (sig_suspender, sigprocmask): Adjust.
5319 2009-01-29  Chong Yidong  <cyd@stupidchicken.com>
5321         * keyboard.c (pending_signals): New var.
5322         (poll_for_input, input_available_signal, init_keyboard): Set it.
5323         (process_pending_signals): New function.
5325         * lisp.h (QUIT): Check pending_signals instead of
5326         interrupt_input_pending.  Use process_pending_signals.
5328         * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
5330         * process.c (wait_reading_process_output): Use process_pending_signals.
5332         * sysdep.c (emacs_write): Use process_pending_signals.
5334         * xterm.c (XTread_socket): Update pending_signals.
5336         * w32term.c (w32_read_socket): Update pending_signals.
5338         * w32inevt.c (w32_console_read_socket): Update pending_signals.
5340 2009-01-29  Kenichi Handa  <handa@m17n.org>
5342         * xftfont.c (xftfont_has_char): New function.
5343         (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5345 2009-01-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
5347         * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5348         under GNUstep.
5349         (ns_query_color): New declaration.
5351         * nsterm.m (ns_confirm_quit): New variable.
5352         (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5353         (EmacsApp-applicationShouldTerminate:): Use it.
5354         (EmacsPrefsController): Let user set it.
5355         (ns_query_color): New function.
5356         (ns_defined_color): Use it.
5357         (ns_initialize): Drop.
5358         (ns_term_init): Add two lines from ns_initialize(), and set
5359         input_interrupt_mode to nil.
5361         * image.c (svg_load_image): Don't right-shift background RGB when
5362         obtained from FRAME_BACKGROUND_PIXEL.  Under HAVE_NS use ns_query_color.
5364 2009-01-28  Kenichi Handa  <handa@m17n.org>
5366         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5367         (fontset_get_font_group): Remember that no font-group is specified
5368         for C.
5370 2009-01-27  Chong Yidong  <cyd@stupidchicken.com>
5372         * fns.c (concat): Check for string overflow (bug#1787).
5374         * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5375         Quadruple undo limits (bug#1501).
5377 2009-01-27  Kenichi Handa  <handa@m17n.org>
5379         * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5380         directly use GT_Get_Char_index.
5382         * xftfont.c (struct xftfont_info): New member `index'.
5384         * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
5385         (Ffontset_font): Adjust for the change of fontset entry.
5387 2009-01-26  Kenichi Handa  <handa@m17n.org>
5389         * fontset.c (fontset_find_font): Fix handling of non-cons return
5390         value of fontset_get_font_group.
5391         (fontset_font): Revert last change.
5393 2009-01-26  Jason Rumney  <jasonr@gnu.org>
5395         * w32font.c (w32font_list_internal): Return quickly if registry is
5396         unknown.  Simplify final return.
5397         (add_font_entity_to_list): Break complex logic down into more
5398         manageable chunks.  Move unknown registry check to
5399         w32font_list_internal.
5401 2009-01-25  Adrian Robert  <Adrian.B.Robert@gmail.com>
5403         Changes to remove Feval calls from GUI under NS.
5405         * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5406         Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5407         Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5409         * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5410         (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5411         (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5412         instead of NON_ASCII_KEYSTROKE_EVENT.
5413         (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5414         (EmacsApp-applicationShouldTerminate:): Query user.
5415         (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5416         instead of Feval.
5418         * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5420         * keyboard.c (kbd_buffer_get_event): Check for it.
5421         (keys_of_keyboard): Define lispy keys for
5422         ns-put/unput-working-text.
5424         * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5425         versions.
5426         (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5428 2009-01-25  Chong Yidong  <cyd@stupidchicken.com>
5430         * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5431         setting current_buffer directly.  (Bug#2044)
5433 2009-01-24  Chong Yidong  <cyd@stupidchicken.com>
5435         * fontset.c (fontset_font): If we know there is no font, don't do
5436         any work.  (Bug#1952, bug#1990).
5438         * font.c (font_parse_xlfd): Handle patterns of length < 2.  (Bug#1802)
5440 2009-01-23  Adrian Robert  <Adrian.B.Robert@gmail.com>
5442         * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5443         (ns_no_defaults): New declaration.
5444         (main): Use it.
5446         * nsterm.h (ns_no_defaults): New declaration.
5448         * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5450         * nsterm.m (ns_no_defaults): New variable.
5451         (ns_initialize): Don't read defaults when ns_no_defaults.
5452         (EmacsView-readSelectionFromPasteboard:)
5453         (writeSelectionToPasteboard:types:): New stubbed-out methods for
5454         NSServicesRequests protocol.  (Bug#1435)
5455         (ns_dumpglyphs_stretch): New function.
5456         (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5457         of 2008-11-15 to other terms.  (Bug#615)
5459         * nsimage.m (setPixmapData:): Set to ignore image DPI.
5461 2009-01-23  Giorgos Keramidas  <keramida@freebsd.org>  (tiny change)
5463         * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5464         call for Sparc64.
5466 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
5468         * nsfns.m:
5469         * nsgui.h:
5470         * nsmenu.m:
5471         * nsselect.m:
5472         * nsterm.h:
5473         * nsterm.m: Remove '23' comments that indicated code added during
5474         update from emacs-20 -> emacs-23.
5476 2009-01-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
5478         * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5479         ns_alternate_modifier.  (Bug#1217)
5481         * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5482         Display all shortcuts, including those w/o super modifier.
5484         * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5486 2009-01-22  Chong Yidong  <cyd@stupidchicken.com>
5488         * fileio.c (Vwrite_region_post_annotation_function)
5489         (Vwrite_region_annotation_buffers): New vars.
5490         (build_annotations_unwind): Just reset
5491         Vwrite_region_annotation_buffers.
5492         (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5493         Call write-region-post-annotation-function.
5494         (build_annotations): Add to Vwrite_region_annotation_buffers if
5495         buffer changes.
5497 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
5499         * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5500         Tiger.
5501         * nsfns.m (ns_do_applescript):
5502         Conditionalize typeUTF16ExternalRepresentation on Tiger.
5504 2009-01-21  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
5506         * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5508 2009-01-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
5510         * nsmenu.m (NSMENUPROFILE): Change #if style.
5512         * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5514         * nsterm.m (x_set_frame_alpha): Add prototype.
5515         (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5516         handle Ctrl-tab.  (Bug#1841)
5517         (ns_get_color): Use unsigned long long for scanned hex string value.
5518         (ns_term_shutdown): Abort on non SIGTERM signals.
5519         (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5520         (EmacsPrefsController-setPanelFromDefaultValues): New function.
5521         (EmacsPrefsController-resetToDefaults:): Use it.  (Bug#1801)
5522         (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5523         (ns_defined_color): Fix settings of the XColor variable fields:
5524         red,green,blue scale to 2-byte, pixel's parts to 1-byte.  (Bug#1663)
5526         * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5527         DPI.  (Bug#1316)
5528         (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5529         values in onTiger section.
5531 2009-01-19  Chong Yidong  <cyd@stupidchicken.com>
5533         * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5534         Check return value of font_spec_from_name.
5535         (Fx_list_fonts): Doc fix.  (Bug#1951)
5537         * font.c (font_spec_from_name): Return Qnil if font name could not
5538         be parsed.
5539         (font_parse_name): Treat a `?' character as part of an XLFD.
5541         * fns.c (Fsubstring): Doc fix.
5543 2009-01-19  Kenichi Handa  <handa@m17n.org>
5545         * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5546         (ftfont_list): Likewise.
5548 2009-01-18  Juanma Barranquero  <lekktu@gmail.com>
5550         * dbusbind.c (Fdbus_register_signal):
5551         * process.c (conv_sockaddr_to_lisp):
5552         * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5554         * callproc.c (Fgetenv_internal): Doc fix.
5556 2009-01-16  Chong Yidong  <cyd@stupidchicken.com>
5558         * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5559         it is not even used.
5561 2009-01-16  Glenn Morris  <rgm@gnu.org>
5563         * font.c (Ffont_variation_glyphs): Silence compiler.
5565 2009-01-15  Juanma Barranquero  <lekktu@gmail.com>
5567         * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5568         Reported by David Robinow <drobinow@gmail.com>.
5570 2009-01-15  Kenichi Handa  <handa@m17n.org>
5572         * coding.c (detect_coding_system): Fix handling of null_byte_found.
5574 2009-01-14  Jason Rumney  <jasonr@gnu.org>
5576         * frame.c (x_set_font): Always store a font to the font parameter,
5577         never a fontset.  (Bug#1562)
5579 2009-01-14  Kenichi Handa  <handa@m17n.org>
5581         * coding.c (TWO_MORE_BYTES): New macro.
5582         (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5584 2009-01-13  Chong Yidong  <cyd@stupidchicken.com>
5586         * font.c (font_clear_prop): If clearing the family, clear the font
5587         width index too.
5589         * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5591 2009-01-12  Juanma Barranquero  <lekktu@gmail.com>
5593         * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5594         (do_play_sound): Use it.  Don't pass a hardcoded buffer size to mci
5595         functions, use sizeof.
5597 2009-01-12  Martin Rudalics  <rudalics@gmx.at>
5599         * keyboard.c (read_char): Fix case where last_nonmenu_event
5600         returned a bad value with submenus.  (Bug#447)
5602 2009-01-12  Chong Yidong  <cyd@stupidchicken.com>
5604         * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5605         family, clear the font width index too.
5607 2009-01-11  Jason Rumney  <jasonr@gnu.org>
5609         * keyboard.c (cmd_error_internal): Exit when errors occur before
5610         frame creation and not in daemon mode.  (Bug#1836)
5612 2009-01-10  Chong Yidong  <cyd@stupidchicken.com>
5614         * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5615         of a display vector, backtrack.
5616         (try_window_reusing_current_matrix): Check glyph type before
5617         referencing charpos member.
5619 2009-01-10  Eli Zaretskii  <eliz@gnu.org>
5621         Fix Bug #876:
5623         * coding.c (inhibit_null_byte_detection): New variable.
5624         (detect_coding, detect_coding_system): Don't pay attention to null
5625         bytes if inhibit_null_byte_detection is non-zero.
5626         (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5627         <inhibit-iso-escape-detection>: Doc fix.
5629 2009-01-09  Jason Rumney  <jasonr@gnu.org>
5631         * w32font.c (add_font_entity_to_list): Don't report unknown
5632         Windows charset as any unrecognized registry.  (Bug#1548)
5633         Only report Unicode Plane 2 fonts as unicode-sip.
5635 2009-01-09  Chong Yidong  <cyd@stupidchicken.com>
5637         * xfaces.c (Fx_font_family_list): Delete function.
5638         Move compatibility version to faces.el.
5640         * font.c (Ffont_family_list): Return a list of strings, not symbols.
5642 2009-01-09  Martin Rudalics  <rudalics@gmx.at>
5644         * frame.c (x_set_frame_parameters): Remember requested value for
5645         fullscreen before it's reset by the parameter handler.
5647 2009-01-09  Glenn Morris  <rgm@gnu.org>
5649         * keyboard.c (last_command_char): For clarity, rename to...
5650         (last_command_event): ... and update all users.
5651         (last_input_char): For clarity, rename to...
5652         (last_input_event): ... and update all users.
5653         (last-command-char, last-input-char): Move to subr.el as aliases.
5654         * cmds.c, commands.h: Update for last_command_char rename.
5656 2009-01-08  Chong Yidong  <cyd@stupidchicken.com>
5658         * font.c (font_open_for_lface): Handle unspecified height attribute.
5660 2009-01-08  Jason Rumney  <jasonr@gnu.org>
5662         * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5663         (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5664         (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5665         Don't declare.
5666         (syms_of_w32fns): Don't define x-pointer-shape variable.  (Bug#1485)
5667         (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5669 2009-01-07  Kenichi Handa  <handa@m17n.org>
5671         * fileio.c (Finsert_file_contents): In the case of replace,
5672         remember the coding system used for decoding in
5673         coding_system (Bug#1039).
5675         * coding.c (decode_coding_utf_8): Check byte_after_cr before
5676         breaking the loop.  (Bug#870)
5677         (decode_coding_utf_16, decode_coding_emacs_mule)
5678         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5679         (decode_coding_charset): Likewise.
5681 2009-01-05  Martin Rudalics  <rudalics@gmx.at>
5683         * frame.c (x_set_frame_parameters): Make sure height (width) get
5684         applied when fullwidth (fullheight) is set.  (Bug#1522)
5686 2009-01-04  Juanma Barranquero  <lekktu@gmail.com>
5688         * w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
5689         (utc_base): Declare as ULONGLONG, not long double.
5690         (convert_time_raw): Delete.
5691         (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5692         (initialize_utc_base): New function.
5693         (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5694         (convert_from_time_t): Use initialize_utc_base; compute result with
5695         64-bit arithmetic.
5696         (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5698 2009-01-03  Eli Zaretskii  <eliz@gnu.org>
5700         * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5701         (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5702         (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5703         (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5704         [!subprocesses]: Define.
5705         (syms_of_process) [!subprocesses]: Intern and staticpro them.
5706         (Flist_system_processes, Fsystem_process_attributes)
5707         [!subprocesses]: Call list_system_processes and
5708         system_process_attributes instead of returning Qnil.
5710         * dosfns.c (system_process_attributes, list_system_processes):
5711         New functions.
5713         * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5715         * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5716         Don't use the default (no-op) implementation.
5718 2009-01-03  Jason Rumney  <jasonr@gnu.org>
5720         * keyboard.c (parse_modifiers_uncached): Wheel events are
5721         clicks (bug#687).
5723         * w32term.c (x_query_colors, x_query_color): New functions.
5725         * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5726         (svg_load_image): Cast returned pointers from dynamically loaded
5727         functions.  Eliminate W32 specific code.
5729 2009-01-02  Dan Nicolaescu  <dann@ics.uci.edu>
5731         * nsfns.m (x_set_foreground_color, x_set_background_color)
5732         (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5733         (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5734         x_ prefix instead of ns_.  Update references.
5735         (syms_of_nsfns): Add a FIXME comment.
5737         * nsterm.m (x_set_cursor_type): New prototype.
5738         (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5740         * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5741         for Solaris instead of incorrectly providing Qutime and Qcutime.
5743 2009-01-02  Eli Zaretskii  <eliz@gnu.org>
5745         * w32.c (process_times): Compute sum of utime and stime.
5746         (system_process_attributes): Add Qtime to the alist.
5748         * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5749         and add them to the alist.
5751         * process.c (top level) <Qtime, Qctime>: New variables.
5752         (syms_of_process): staticpro them.
5753         (Fsystem_process_attributes): Add their documentation to the doc
5754         string.
5756         * process.h: Declare Qtime and Qctime.
5758 2009-01-02  Jason Rumney  <jasonr@gnu.org>
5760         * image.c (Qgobject): New symbol.
5761         (syms_of_image): Initialize it.
5762         (init_svg_functions): Load some functions from gobject library.
5764 2009-01-01  Dan Nicolaescu  <dann@ics.uci.edu>
5766         * frame.c (make_terminal_frame): Remove redundant code and useless
5767         block.
5769 2009-01-01  Andreas Schwab  <schwab@suse.de>
5771         * process.c (conv_sockaddr_to_lisp): Add workaround for
5772         getsockname bug on BSD.
5774 2009-01-01  Chong Yidong  <cyd@stupidchicken.com>
5776         * xfns.c (x_create_tip_frame): Set border width of the X window.
5778         * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5780 2009-01-01  Jason Rumney  <jasonr@gnu.org>
5782         * w32term.c (x_new_font): Return font object, not fontset.  (Bug#119)
5783         Don't block input, as per earlier xterm.c changes.
5785 2008-12-31  Adrian Robert  <Adrian.B.Robert@gmail.com>
5787         * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5788         (ns_appkit_version_int): New function.
5789         (x-server-version): Use ns_appkit_version_int and follow 21+
5790         convention of returning 3 integers.
5792 2008-12-30  Kenichi Handa  <handa@m17n.org>
5794         * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5795         (CHAR_SURROGATE_PAIR_P): New macro.
5797         * font.h (struct font_driver): New member get_variation_glyphs.
5799         * font.c (font_range): Don't require a font for a variation selector.
5800         (Ffont_variation_glyphs): New function.
5801         (syms_of_font): Defsubr it.
5803         * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5804         ftfont_variation_glyphs.
5805         (setup_otf_gstring): New function.
5806         (ftfont_drive_otf): Use it.
5807         (ftfont_shape_by_flt): Handle variation selector.
5808         (ftfont_variation_glyphs): New function.
5810 2008-12-30  Martin Rudalics  <rudalics@gmx.at>
5812         * frame.c (Vemacs_iconified): Remove.
5814 2008-12-30  Jason Rumney  <jasonr@gnu.org>
5816         * frame.c (store_frame_param, x_get_arg): Enable newer code on
5817         WINDOWSNT too, as related changes have already been synced.  (Bug#117)
5819 2008-12-30  Chong Yidong  <cyd@stupidchicken.com>
5821         * indent.c (Fvertical_motion): Don't advance iterator if we have
5822         reseated to the desired position.
5824         * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5825         checking for pos match.
5827 2008-12-30  Kenichi Handa  <handa@m17n.org>
5829         * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5830         just get the low 8-bit of the code.
5832         * font.c (font_intern_prop): Validate str as multibyte.
5834 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
5836         * dispextern.h (struct face): Move lface and hash from the middle
5837         of bitfields.
5839         * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5841 2008-12-29  Dan Nicolaescu  <dann@ics.uci.edu>
5843         * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5844         (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5845         instead of intervals.h.
5847 2008-12-26  Andreas Schwab  <schwab@suse.de>
5849         * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5850         cons.
5852 2008-12-26  Martin Rudalics  <rudalics@gmx.at>
5854         * textprop.c (Qminibuffer_prompt): New variable.
5855         (syms_of_textprop): Initialize it.
5856         * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5857         in minibuffer-prompt face.  (Bug#1662)
5859 2008-12-25  Jason Rumney  <jasonr@gnu.org>
5861         * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5863 2008-12-24  Jason Rumney  <jasonr@gnu.org>
5865         * ralloc.c (r_alloc_reset_variable): New function.
5867         * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5868         record of what points where.  (Bug#716)
5870 2008-12-22  Dan Nicolaescu  <dann@ics.uci.edu>
5872         * minibuf.c (read_minibuf): Follow the non-interactive case when
5873         running as a daemon, before detaching.
5875 2008-12-22  Andreas Schwab  <schwab@suse.de>
5877         * buffer.c (init_buffer): Use realloc instead of xrealloc.
5878         * gtkutil.c (free_widget_value): Use xfree instead of free.
5880 2008-12-22  Martin Rudalics  <rudalics@gmx.at>
5882         * frame.c (delete_frame): New function derived from
5883         Fdelete_frame to handle Qnoelisp value for FORCE argument.
5884         Delete last frame iff FORCE equals Qnoelisp.  (Bug#1450)
5885         (Fdelete_frame): Call delete_frame.  Remove line from doc-string
5886         saying that FORCE non-nil doesn't run `delete-frame-functions'.
5887         * frame.h: Extern delete_frame.
5888         * window.c (window_loop):
5889         * terminal.c (delete_terminal):
5890         * xterm.c (x_connection_closed):
5891         * xfns.c (Fx_hide_tip):
5892         * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5894 2008-12-21  Jason Rumney  <jasonr@gnu.org>
5896         * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5897         when character maps to .notdef character.
5899 2008-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
5901         * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5903 2008-12-20  Jason Rumney  <jasonr@gnu.org>
5905         * frame.c (Fmake_terminal_frame): Raise an error when called from
5906         a graphical frame on Windows.  (Bug#1325)
5908 2008-12-20  Jan Djärv  <jan.h.d@swipnet.se>
5910         * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5912 2008-12-20  Chong Yidong  <cyd@stupidchicken.com>
5914         * minibuf.c (Fread_buffer): Doc fix.
5916 2008-12-20  Jason Rumney  <jasonr@gnu.org>
5918         * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5919         server name in UNC paths.  (Bug#719)
5921         * coding.c (decode_coding): Clear chars_at_source flag when using
5922         charbuf.  (Bug#1035)
5924 2008-12-19  Daniel Engeler  <engeler@gmail.com>
5926         * sysdep.c (serial_configure): Fix typo.
5928 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
5930         * sysdep.c: Include alloca.h.
5931         (system_process_attributes): Add implementation for Solaris.
5933         * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5935 2008-12-19  Dan Nicolaescu  <dann@ics.uci.edu>
5937         Reorganize implementation of Flist_system_processes and
5938         Fsystem_process_attributes.  No functional changes.
5939         * process.c: Don't #include pwd.h, grp.h and limits.h.
5940         (Flist_system_processes): Just call list_system_processes.
5941         (Fsystem_process_attributes): Just call system_process_attributes.
5942         (procfs_list_system_processes, time_from_jiffies)
5943         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5944         (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5946         * sysdep.c: ... here.  Include pwd.h, grp.h and limits.h.
5947         (list_system_processes): Rename from
5948         procfs_list_system_processes.  Enclose in #ifdef HAVE_PROCFS.
5949         Provide a do nothing implementation.
5950         (system_process_attributes): Rename from
5951         procfs_list_system_processes.
5952         (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5953         (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5955         * w32.c (list_system_processes): Rename from
5956         w32_list_system_processes.
5957         (system_process_attributes): Rename from
5958         w32_system_process_attributes.
5960         * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5962         * process.h (w32_list_system_processes)
5963         (w32_system_process_attributes): Remove.
5964         (list_system_processes, system_process_attributes):
5965         New prototypes.
5967 2008-12-19  Kenichi Handa  <handa@m17n.org>
5969         * xfont.c (xfont_decode_coding_xlfd): New function.
5970         (xfont_encode_coding_xlfd): New function.
5971         (xfont_list_pattern): Decode XLFD by iso-8859-1.
5972         (xfont_list): Decode and encode XLFD by iso-8859-1.
5973         (xfont_match): Likewise.
5974         (xfont_list_family): Likewise.
5975         (xfont_open): Likewise.
5977         * ftfont.c (ftfont_open): Generate a multibyte string if given
5978         names are utf-8.
5980         * xftfont.c (xftfont_open): Generate a multibyte string if given
5981         names are utf-8.
5983 2008-12-18  Jan Djärv  <jan.h.d@swipnet.se>
5985         * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5986         changed.
5987         (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5988         clicked on a detached tool bar button.
5990 2008-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
5992         * emacs.c (main): Print and error and exit when no data is read
5993         from the pipe.
5995 2008-12-17  Jason Rumney  <jasonr@gnu.org>
5997         * w32font.c (w32font_has_char): Always return -1.
5999 2008-12-16  Kenichi Handa  <handa@m17n.org>
6001         * font.c (font_open_entity): Fix previous change.
6003 2008-12-16  Dan Nicolaescu  <dann@ics.uci.edu>
6005         * process.c: Include <limits.h>.
6007 2008-12-16  Chetan Pandya  <pandyacus@sbcglobal.net>  (tiny change)
6009         * font.c (font_update_drivers): Fix mistake in reconstructing the
6010         driver list.
6012 2008-12-16  Chong Yidong  <cyd@stupidchicken.com>
6014         * font.c (font_clear_cache): Fix format of font cache data.
6016 2008-12-15  Chong Yidong  <cyd@stupidchicken.com>
6018         * xftfont.c (xftfont_open): Free Xft font pattern if
6019         XftFontOpenPattern fails.
6021         * xterm.c (x_free_frame_resources): Remove extraneous call to
6022         free_frame_faces.
6024 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
6026         * xterm.c (x_delete_display): Move xim_close_dpy call to
6027         x_delete_terminal.
6028         (x_delete_terminal): Call xim_close_dpy.
6030 2008-12-13  Jason Rumney  <jasonr@gnu.org>
6032         * w32font.c (intern_font_name): New function.
6033         (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6034         (w32font_open_internal, Fx_select_font): Decode font name.
6035         (fill_in_logfont, list_all_matching_fonts): Encode font name.
6037         * w32font.h (intern_font_name): Declare new function.
6039         * w32uniscribe.c (add_opentype_font_name_to_list):
6040         Use intern_font_name.
6042 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
6044         * frame.c (Fdelete_frame): Call free_font_driver_list.
6046         * font.c (free_font_driver_list): Implement missing function.
6048         * w32term.c (w32_term_init): Don't initialize the image cache
6049         here; it will be done in init_frame_faces.
6051         * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6052         (struct x_display_info): Remove unused member null_pixel.  New
6053         member xim_callback_data.
6055         * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6056         (xim_initialize): Save pointer to callback function data.
6057         (xim_close_dpy): Free callback function data.  Call XCloseIM,
6058         reverting 2008-11-04 change by David Smith.
6059         (x_term_init): Don't initialize the image cache here; it will be
6060         done in init_frame_faces.  Remove ancient "null_pixel" cruft.
6061         (x_delete_display): Free x_dnd_atoms member.
6063 2008-12-13  Kenichi Handa  <handa@m17n.org>
6065         * font.c (font_rescale_ratio): Moved from xfaces.c.
6066         Argument type changed.  Handle a font-spec too.
6067         (font_score): Check Vface_font_rescale_alist.
6068         (font_open_entity): Likewise.  (Bug#1547)
6070         * xfaces.c (font_rescale_ratio): Moved to font.c.
6072 2008-12-13  Chong Yidong  <cyd@stupidchicken.com>
6074         * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6076 2008-12-12  Jason Rumney  <jasonr@gnu.org>
6078         * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6079         Vwindow_system_version to the real w32 major version.
6081 2008-12-12  Dan Nicolaescu  <dann@ics.uci.edu>
6083         * term.c (init_tty): Move setting the terminal name before the
6084         potential user: maybe_fatal.
6086 2008-12-11  Chong Yidong  <cyd@stupidchicken.com>
6088         * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6089         all callers changed.  Call free_frame_faces to free the face cache.
6091 2008-12-11  Jason Rumney  <jasonr@gnu.org>
6093         * w32font.c (fill_in_logfont): Don't assume symbol script means
6094         SYMBOL_CHARSET.  (Bug#547)
6096         * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
6097         size for surrogates.  (Bug#1096, bug#872)
6099 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
6101         * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6103 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
6105         * process.c (Fsystem_process_attributes, syms_of_process):
6106         Fix typo in name of Ssystem_process_attributes.
6107         Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6109 2008-12-11  Juanma Barranquero  <lekktu@gmail.com>
6111         * syntax.c (Fmodify_syntax_entry): Doc fix.
6113 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
6115         * font.c (Ffont_spec): Move usage to end of docstring.
6117 2008-12-10  Jason Rumney  <jasonr@gnu.org>
6119         * w32font.c (Qcham): New symbol.
6120         (font_supported_scripts): Add cham, and comments for other new
6121         scripts in bitfield from OpenType spec.
6122         (add_font_entity_to_list): Limit unicode-sip fonts to those that
6123         contain characters beyond the bmp.
6125 2008-12-10  Kenichi Handa  <handa@m17n.org>
6127         * ftfont.c (fc_charset_table): Add "unicode-sip".
6128         (ftfont_spec_pattern): Lookup fc_charset_table for the registry
6129         Qunicode_sip.
6131 2008-12-10  Juanma Barranquero  <lekktu@gmail.com>
6133         * coding.c (QCdefault_char): Rename from QCdefalut_char.
6134         (Fcoding_system_put): Use QCdefault_char.
6135         (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6137 2008-12-09  Chong Yidong  <cyd@stupidchicken.com>
6139         * xftfont.c (syms_of_xftfont): Fix typo.
6141         * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
6143 2008-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
6145         * emacs.c (main): Close daemon_pipe on exec.
6147 2008-12-08  Chong Yidong  <cyd@stupidchicken.com>
6149         * termchar.h (struct tty): New members termcap_term_buffer and
6150         termcap_strings_buffer.
6152         * term.c (encode_terminal_code): Free any previous memory blocks
6153         before calling xmalloc for encode_terminal_src or encode_terminal_dst.
6154         (maybe_fatal): Buffer argument deleted.  Don't free buffer here.
6155         All callers changed.
6156         (init_tty): Store termcap data and string buffers in new struct
6157         tty members termcap_term_buffer and termcap_strings_buffer.
6158         (delete_tty): Free them.
6159         (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
6161 2008-12-07  Seiji Zenitani  <zenitani@mac.com>
6163         * nsfns.m (ns_set_background_color): Remove code duplication.
6164         It was a substitute for face-transparency on OS X 10.3.
6166 2008-12-06  Chong Yidong  <cyd@stupidchicken.com>
6168         * coding.c (make_conversion_work_buffer): Disable buffer
6169         modification hooks in the work buffer.
6171 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
6173         * process.c (procfs_system_process_attributes): If `nread' has a
6174         negative value, assign zero to it.
6176 2008-12-05  Chong Yidong  <cyd@stupidchicken.com>
6178         * eval.c (Vdebug_on_error): Doc fix.
6180 2008-12-05  Kenichi Handa  <handa@m17n.org>
6182         * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6183         second character is a combining character.
6185 2008-12-05  Eli Zaretskii  <eliz@gnu.org>
6187         * process.c (procfs_system_process_attributes): Don't use cmd,
6188         cmdsize, and q without initializing them first.
6190 2008-12-04  Jason Rumney  <jasonr@gnu.org>
6192         * w32font.c (w32font_draw): Initialize orig_clip before getting
6193         it, and delete it when finished.
6195 2008-12-04  Dan Nicolaescu  <dann@ics.uci.edu>
6197         * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6198         case when running as a daemon before detaching.
6200 2008-12-03  Juanma Barranquero  <lekktu@gmail.com>
6202         * w32.c (init_environment): Don't unload library shell32.dll.
6204 2008-12-03  Kenichi Handa  <handa@m17n.org>
6206         * font.c (font_at): Set `multibyte' at first.
6208         * coding.c (decode_coding_charset): Check type of an element of
6209         vector VALIDS.
6210         (encode_coding_emacs_mule): Be sure to set `code'.
6212         * fontset.c (face_for_char): Handle invalid charset property correctly.
6213         (font_for_char): Likewise.
6215 2008-12-03  Chong Yidong  <cyd@stupidchicken.com>
6217         * font.c (Fopen_font): Compute pixel size correctly.
6218         (font_update_lface): Handle fonts with corrupted size specs,
6219         i.e. non-int and non-float.
6221         * ftfont.c (ftfont_match): Initialize entity variable.
6222         (ftfont_resolve_generic_family): Avoid using uninitialized var.
6223         (ftfont_list_family): Initialize list var earlier.
6225         * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6227         * xterm.c (x_draw_glyph_string): Fall back on
6228         underline_minimum_offset for underline position.
6230 2008-12-03  Dan Nicolaescu  <dann@ics.uci.edu>
6232         * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6234         * character.c (c_string_width): Specify the type for LEN.
6236 2008-12-03  Kenichi Handa  <handa@m17n.org>
6238         * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
6239         (decode_coding_utf_8): Likewise.
6240         (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
6241         (produce_chars): Initialize consumed_chars to 0.
6243 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
6245         * keyboard.c (make_lispy_position): Only use PT if the selected
6246         window is current.
6248 2008-12-02  Andreas Schwab  <schwab@suse.de>
6250         * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6252         * doprnt.c (doprnt1): Fix size of charbuf.
6254 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
6256         * keyboard.c (timer_check): Revert last change.
6258 2008-12-02  Juanma Barranquero  <lekktu@gmail.com>
6260         * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6262 2008-12-01  Juanma Barranquero  <lekktu@gmail.com>
6264         * makefile.w32-in: Update dependencies.
6265         (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6267 2008-12-01  Andreas Schwab  <schwab@suse.de>
6269         * font.c (register_font_driver): Use xmalloc.
6270         (font_put_frame_data): Likewise.
6272 2008-12-01  Chong Yidong  <cyd@stupidchicken.com>
6274         * xfaces.c (realize_x_face): Make abort condition clearer.
6276         * gtkutil.c (update_frame_tool_bar): Initialize variable.
6278 2008-11-30  Chong Yidong  <cyd@stupidchicken.com>
6280         * keyboard.c (timer_check): After a timer runs, ensure that the
6281         selected window's buffer is current.
6283 2008-11-30  Juanma Barranquero  <lekktu@gmail.com>
6285         * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6286         It was accidentally restored by the Unicode merge.
6288         * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6290 2008-11-29  Juanma Barranquero  <lekktu@gmail.com>
6292         * w32proc.c: Include "coding.h".
6293         (Fw32_short_file_name): Encode filename passed to Windows API.
6294         (Fw32_long_file_name): Encode filename passed to Windows API and
6295         decode back the result.  (Bug#1433)
6297 2008-11-29  Kenichi Handa  <handa@m17n.org>
6299         * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6300         not before accessing it.
6302         * charset.c (Fdefine_charset_internal): After calculating
6303         min_char, max_char, and fastmap, copy the charset structure again.
6304         (encode_char): Fix the previous change.
6306 2008-11-28  Seiji Zenitani  <zenitani@mac.com>
6308         * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6310         * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6312         * nsterm.m (x_set_frame_alpha): New function.
6314 2008-11-27  Eli Zaretskii  <eliz@gnu.org>
6316         * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6318 2008-11-27  Juanma Barranquero  <lekktu@gmail.com>
6320         * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6321         pointer to check_face_name.
6323 2008-11-27  Kenichi Handa  <handa@m17n.org>
6325         * category.h (SET_CATEGORY_SET): Call set_category_set.
6326         (set_category_set): Extern it.
6328         * category.c (hash_get_category_set): New function.
6329         (Fmodify_category_entry): Adjusted for the change of
6330         char_table_ref_and_range.  Call hash_get_category_set to get a
6331         category set to store in the table.
6333         * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6334         Funify_charset.
6336         * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
6337         (DECODE_CHAR): Check if the decoder vector is ready.
6338         (ENCODE_CHAR): Check if the encoder char-table is ready.
6339         (maybe_unify_char): Extern it.
6341         * charset.c (Vchar_unified_charset_table): Delete it.
6342         (inhibit_load_charset_map): New variable.
6343         (temp_charset_work): New variable.
6344         (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6345         (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6346         New macros.
6347         (load_charset_map): Meaning of control_flag changed.  If
6348         inhibit_load_charset_map is nonzero, setup a table in
6349         temp_charset_work.
6350         (load_charset): New argument control_flag.
6351         (map_charset_for_dump): New function.
6352         (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6353         map_charset_for_dump.
6354         (Fdefine_charset_internal): If the charset method is MAP, load
6355         mapping tables by calling load_charset.
6356         (Funify_charset): Don't load a mapping table but directly set
6357         Vchar_unify_table.
6358         (maybe_unify_char): New function.
6359         (decode_char): Don't handle the deleted method MAP_DEFERRED.
6360         Handle the case of inhibit_load_charset_map being nonzero.
6361         (encode_char): Don't handle the deleted method MAP_DEFERRED.
6362         Handle the case of inhibit_load_charset_map being nonzero.
6363         (Fclear_charset_maps): Just free temp_charset_work.
6364         (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6365         variable.
6367         * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6368         change of char_table_ref_and_range.
6369         (char_table_ref_and_range): Change the meaning of argument FROM
6370         and TO.  Now the caller must provide initial values for *FROM
6371         and *TO.
6373         * fontset.c (fontset_add): Adjusted for the change of
6374         char_table_ref_and_range.
6375         (fontset_get_font_group): Likewise.
6376         (Ffontset_info): Likewise.
6378         * keymap.c (describe_vector): Adjusted for the change of
6379         char_table_ref_and_range.  For char-table, put boundary between
6380         non-ASCII and 8-bit characters.
6382         * print.c (print_object): For bool-vector, delete unnecessary
6383         check of ASCII_BYTE_P.
6385 2008-11-26  Jason Rumney  <jasonr@gnu.org>
6387         * w32font.c (w32font_open_internal): Don't include external
6388         leading in font height.  (Bug#879)
6390 2008-11-26  Glenn Morris  <rgm@gnu.org>
6392         * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6393         redefinition with ifdef.  (Bug#1383)
6395 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
6397         * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6399 2008-11-24  Wolfgang Lux  <wolfgang.lux@gmail.com>  (tiny change)
6401         * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6402         New EmacsView methods.
6403         (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6404         Fixes bug #1048,1357,1414.
6406 2008-11-24  Adrian Robert  <Adrian.B.Robert@gmail.com>
6408         Fix bug #1362.
6409         * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6410         is not an indexed color.
6411         * nsterm.m (free_indexed_color): Add argument checking.
6412         * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6414 2008-11-24  Chong Yidong  <cyd@stupidchicken.com>
6416         * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6417         Document confirm-after-completion value for
6418         minibuffer-completion-confirm.
6420 2008-11-24  Jason Rumney  <jasonr@gnu.org>
6422         * w32font.c (check_face_name): Use xstrcasecmp.  Avoid compiler
6423         warning.
6425 2008-11-23  Jason Rumney  <jasonr@gnu.org>
6427         * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6428         restored before returning.
6430         * w32font.c (check_face_name): New function.
6431         (add_font_entity_to_list): Use it to filter out common substituted
6432         fonts.  (Bug#642)
6434 2008-11-22  Martin Rudalics  <rudalics@gmx.at>
6436         * buffer.c (Fswitch_to_buffer): Reword and mention new option
6437         confirm-nonexistent-file-or-buffer in doc-string.
6439 2008-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
6441         * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6442         Fix copy/paste typo.  Add checks.
6444 2008-11-21  Kenichi Handa  <handa@m17n.org>
6446         * coding.c (detect_coding_iso_2022): Reject invalid composition
6447         sequence.
6448         (DECODE_COMPOSITION_START): If the current source is the last
6449         block, and the current composition doesn't end, regard this
6450         sequence as invalid.
6451         (decode_coding_iso_2022): Handle invalid composition sequence.
6453 2008-11-20  Martin Rudalics  <rudalics@gmx.at>
6455         * window.c (coordinates_in_window): Don't return
6456         ON_VERTICAL_BORDER for the rightmost position of a mode/header
6457         line when the window is not the rightmost one.  (Bug#1372)
6459 2008-11-16  Ben North  <ben@redfrontdoor.org>  (tiny change)
6461         * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6463 2008-11-15  Eli Zaretskii  <eliz@gnu.org>
6465         * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6466         and bright_bg if noninteractive is non-zero.
6468 2008-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6470         * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6471         x_draw_glyph_string_background.
6473         * w32term.c (x_draw_glyph_string): Likewise.
6475 2008-11-15  Chong Yidong  <cyd@stupidchicken.com>
6477         * xterm.c (x_draw_glyph_string): Stop drawing the background of
6478         the next glyph string once past the overhang width.
6480         * nsterm.m (ns_draw_glyph_string): Likewise.
6482         * w32term.c (x_draw_glyph_string): Likewise.
6484 2008-11-14  Fabrice Popineau  <fabrice.popineau@supelec.fr>  (tiny change)
6486         * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6487         double file close.
6489 2008-11-14  Martin Rudalics  <rudalics@gmx.at>
6491         * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6492         dedicated status of window before attempting to display another
6493         buffer in it.
6495 2008-11-14  Juanma Barranquero  <lekktu@gmail.com>
6497         * msdos.c (Fmsdos_long_file_names):
6498         (syms_of_msdos) <dos-unsupported-char-glyph>:
6499         * dosfns.c (Fint86): Fix typos in docstrings.
6501 2008-11-14  Eli Zaretskii  <eliz@gnu.org>
6503         * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6505 2008-11-14  Katsumi Yamaoka  <yamaoka@jpl.org>
6507         * puresize.h (BASE_PURESIZE): Increase to 1260000.
6509 2008-11-12  Michal Nazarewicz  <mina86@tlen.pl>  (tiny change)
6511         * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6513         * frame.h: Negative alpha means "don't touch".
6515         * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6517         * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6519 2008-11-12  Dan Nicolaescu  <dann@ics.uci.edu>
6521         * hftctl.c:
6522         * chpdef.h:
6523         * acldef.h: Remove files used only for systems no longer supported.
6525         * Makefile.in: Fix .o alphabetical ordering.
6526         (hftctl.o): Remove dependency, file removed.
6527         (keymap.o, print.o): Depend on charset.h.
6529 2008-11-10  Kenichi Handa  <handa@m17n.org>
6531         * character.c (Fget_byte): Fix and make it faster for unibyte target.
6533 2008-11-08  Chong Yidong  <cyd@stupidchicken.com>
6535         * dired.c (file_name_completion): If completion_ignore_case is
6536         enabled, ignore case when checking completion-regexp-list.
6538 2008-11-08  Eli Zaretskii  <eliz@gnu.org>
6540         * vm-limit.c (get_lim_data): Fix last change.
6542 2008-11-08  Kenichi Handa  <handa@m17n.org>
6544         * character.c (Fget_byte): New function.
6545         (syms_of_character): Defsubr Fget_byte.
6547 2008-11-07  Chong Yidong  <cyd@stupidchicken.com>
6549         * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6550         cursor position is valid after scrolling.
6552 2008-11-06  Juanma Barranquero  <lekktu@gmail.com>
6554         * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6556 2008-11-06  Glenn Morris  <rgm@gnu.org>
6558         * xterm.c (handle_one_xevent): Don't let popup menus cause
6559         mouse-autoselect-window related window switching.  (Bug#1261)
6561 2008-11-04  David Smith  <davidsmith@acm.org>  (tiny change)
6563         * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6565 2008-11-04  Andreas Schwab  <schwab@suse.de>
6567         * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6569 2008-11-03  Chong Yidong  <cyd@stupidchicken.com>
6571         * xfns.c (Fx_wm_set_size_hint): New function.
6573 2008-11-03  Martin Rudalics  <rudalics@gmx.at>
6575         * textprop.c (Fprevious_single_char_property_change): Return 0
6576         when there's no change in a string.  (Bug#1301)
6578 2008-11-02  Martin Rudalics  <rudalics@gmx.at>
6580         * frame.c (do_switch_frame): New argument NORECORD passed to
6581         Fselect_window.
6582         (Fselect_frame): New argument NORECORD passed to
6583         do_switch_frame.
6584         (Fset_frame_selected_window): New argument NORECORD passed to
6585         Fselect_frame.
6586         (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6587         in call of do_switch_frame.
6588         (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6589         Handle NORECORD argument in call of Fselect_frame.
6590         * lisp.h (do_switch_frame, Fselect_frame)
6591         (Fset_frame_selected_window): Adjust declarations.
6592         * window.c (select_frame_norecord): New function.
6593         (run_window_configuration_change_hook): Use it and call
6594         Fselect_frame with NORECORD set.
6595         (Fselect_window): Pass NORECORD to Fselect_frame.
6596         (Fset_window_configuration): Handle NORECORD argument in call of
6597         do_switch_frame.
6598         * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6599         Fset_frame_selected_window.
6600         * keyboard.c (command_loop_1): Handle NORECORD in call of
6601         Fselect_frame (currently ifdefd).
6603 2008-11-02  Ulrich Mueller  <ulm@kph.uni-mainz.de>
6605         * emacs.c (USAGE2): Untabify.
6607 2008-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
6609         * composite.c (fill_gstring_header): Fix copy/paste typo.
6611 2008-10-31  Martin Rudalics  <rudalics@gmx.at>
6613         * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6614         (Fother_window): Rename argument and rewrite doc-string.
6615         (select_window_norecord): Fix return value.  (Bug#1276)
6617 2008-10-30  Juanma Barranquero  <lekktu@gmail.com>
6619         * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6620         new frames overriding foreground for tooltips.  Based on similar patch
6621         from Martin Rudalics <rudalics@gmx.at>.  (Bug#1032)
6623 2008-10-29  Chong Yidong  <cyd@stupidchicken.com>
6625         * emacs.c (Fdaemon_initialized): Initialize nfd.
6627 2008-10-29  Martin Rudalics  <rudalics@gmx.at>
6629         * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6630         (Fwindow_text_height): Clarify doc-strings.
6631         * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6632         doc-string of window-scroll-functions.
6634 2008-10-28  Reiner Steib  <Reiner.Steib@gmx.de>
6636         * category.c (syms_of_category): Fix typo in docstring.
6638 2008-10-28  Juanma Barranquero  <lekktu@gmail.com>
6640         * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6641         (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6642         Fix typos in docstrings.
6644 2008-10-28  Dan Nicolaescu  <dann@ics.uci.edu>
6646         * emacs.c (daemon_pipe): Make non-static.
6647         (IS_DAEMON): Move definition ...
6648         * lisp.h (IS_DAEMON): ... here.
6649         (daemon_pipe): Declare.
6650         (is_daemon): Remove.
6651         * dispnew.c (init_display): Use IS_DAEMON.
6653 2008-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
6655         * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6656         (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6658         * emacs.c (is_daemon): Remove.
6659         (main): Don't set is_daemon.
6660         (IS_DAEMON): New macro.
6661         (Fdaemonp, Fdaemon_initialized): Use it.
6662         (Fdaemon_initialized): Write a char into the pipe to make sure the
6663         parent exits.
6664         (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6666 2008-10-27  Chong Yidong  <cyd@stupidchicken.com>
6668         * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6669         over-sized glyph, draw it with the default glyph width.
6671         * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6672         glyph, draw it with the default glyph width.
6674         * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6675         glyph, draw it with the default glyph width.
6677         * xdisp.c (try_scrolling): When computing the distance from the
6678         scroll margin to PT, try moving some distance past the window
6679         bottom before giving up.
6681 2008-10-27  Martin Rudalics  <rudalics@gmx.at>
6683         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6684         (Fset_window_buffer): Explain in doc-string that a window can be
6685         "strongly" dedicated to its buffer.
6687 2008-10-27  Dan Nicolaescu  <dann@ics.uci.edu>
6689         * emacs.c (daemon_name): New variable.
6690         (main): Deal with --daemon=SERVER_NAME.
6691         (Fdaemonp): Return a name if one was passed to --daemon.
6693 2008-10-26  Romain Francoise  <romain@orebokech.com>
6695         * emacs.c (daemon_pipe): New variable.
6696         (main): Create a pipe before forking, make the parent exit only after
6697         the child has closed its end of the pipe.  Move closing the
6698         descriptors ...
6699         (Fdaemon_initialized): ... here.  New function.
6701 2008-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
6703         * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6704         the previous unoptimized table.
6706         * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6707         the distinction between non-nil and non-t value of `dedicated'.
6709 2008-10-25  Chong Yidong  <cyd@stupidchicken.com>
6711         * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6712         read_char_minibuf_menu_text is large enough to hold the menu string.
6714 2008-10-25  Martin Rudalics  <rudalics@gmx.at>
6716         * window.c (Fget_buffer_window, Fdelete_windows_on)
6717         (Freplace_buffer_in_windows): Make buffer argument optional and
6718         rename to buffer_or_name.
6720 2008-10-24  Chong Yidong  <cyd@stupidchicken.com>
6722         * xdisp.c (handle_single_display_spec, handle_display_prop):
6723         Undo 2005-05-16 change.
6724         (handle_stop): Pop iterator if it's loaded with an empty string.
6725         (get_overlay_strings_1): Don't save iterator if it's loaded with
6726         an empty string (bug#1201).
6728 2008-10-24  Kenichi Handa  <handa@m17n.org>
6730         * ftfont.c (ftfont_otf_features): Fix previous change.
6731         (ftfont_otf_capability): Check FeatureList.FeatureCount before
6732         calling ftfont_otf_features.
6734 2008-10-24  Kenichi Handa  <handa@m17n.org>
6736         * font.c (font_match_p): Fix for the case that a vector of
6737         characters is in script-representative-chars.
6739 2008-10-24  Michael Albinus  <michael.albinus@gmx.de>
6741         * dbusbind.c (xd_in_read_queued_messages): New variable.
6742         (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros.  Throw Qdbus_error.
6743         (xd_read_queued_messages): Catch Qdbus_error from the macros.
6744         (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6745         macro.  (Bug#1186)
6747 2008-10-23  Ali Bahrami  <ali_gnu@emvision.com>  (tiny change)
6749         * s/sol2-10.h: New file.
6751 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
6753         * xdisp.c (fill_glyph_string): Fix typo in source (though the
6754         poor beast has survived 9+ years and the jump from xterm.c!).
6756 2008-10-23  Martin Rudalics  <rudalics@gmx.at>
6758         * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6759         Reword doc-string.
6760         (Fbury_buffer): In doc-string say what happens to the buffer's window.
6762 2008-10-23  Juanma Barranquero  <lekktu@gmail.com>
6764         * character.c (syms_of_character) <script-representative-chars>:
6765         <unicode-category-table>: Doc fixes.
6767 2008-10-23  Noah Friedman  <friedman@splode.com>
6769         * coding.c (make_conversion_work_buffer): Check that
6770         Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6771         Fget_buffer_create.
6773 2008-10-23  Kenichi Handa  <handa@m17n.org>
6775         * font.c (font_add_log): Check the values of extra properties.
6777 2008-10-22  Martin Rudalics  <rudalics@gmx.at>
6779         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6780         Reword doc-string.
6781         (Fset_window_parameter): Use NILP.
6782         (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6783         (Frecenter): Use "selected" instead of "current" window in doc-strings.
6785 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
6787         * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6789 2008-10-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
6791         * nsfns.m (ns_appkit_version): New function.
6792         (x-server-version): Use it.
6793         (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6794         (x-server-vendor): Don't check_ns().
6796         * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6798 2008-10-22  Juanma Barranquero  <lekktu@gmail.com>
6800         * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6801         Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6803 2008-10-22  Kenichi Handa  <handa@m17n.org>
6805         * syntax.c (scan_words): Call word_boundary_p instead of comparing
6806         scripts.
6808         * category.c (word_boundary_p): Check scripts instead of charset.
6809         Handle nil value in word-separating-categories and
6810         word-combining-categories.
6811         (syms_of_category): Fix docstrings of word-separating-categories
6812         and word-combining-categories.
6814 2008-10-21  Eli Zaretskii  <eliz@gnu.org>
6816         * coding.c (Fencode_coding_region, Fdecode_coding_region)
6817         (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6819 2008-10-21  Martin Rudalics  <rudalics@gmx.at>
6821         * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6822         Rename arg "buffer" to "buffer_or_name".
6823         (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6824         it optional.
6825         (no_switch_window): Remove since the return value is not used.
6826         (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6827         Consider window as dedicated when Fwindow_dedicated_p returns a
6828         non-nil value.
6829         * lisp.h: Remove prototype for no_switch_window.
6831 2008-10-21  Jan Djärv  <jan.h.d@swipnet.se>
6833         * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6834         temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6836 2008-10-21  Kenichi Handa  <handa@m17n.org>
6838         * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6839         check Vlatin_extra_code_table.
6841 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
6843         * fileio.c (Fset_file_modes): Doc fix.
6845 2008-10-19  Michael Albinus  <michael.albinus@gmx.de>
6847         * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6848         in arrays.
6850 2008-10-19  Martin Rudalics  <rudalics@gmx.at>
6852         * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6853         Mention kill-buffer in doc-string.
6854         (Fset_window_buffer): Reinsert tem check removed in last commit.
6855         (Fenlarge_window, Fshrink_window): Have argument names and
6856         doc-string follow Elisp manual more closely.
6858 2008-10-18  Eli Zaretskii  <eliz@gnu.org>
6860         * fileio.c (Fset_file_modes): Doc fix.
6862 2008-10-18  Martin Rudalics  <rudalics@gmx.at>
6864         * window.c (Fwindow_width, Fset_window_start)
6865         (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6866         (Fdelete_windows_on, Freplace_buffer_in_windows):
6867         Make doc-strings follow code and Elisp manual more closely.
6868         (Fwindow_dedicated_p): Make window argument optional.
6869         (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6870         (Fset_window_buffer): Respect any non-nil dedicated value for
6871         window.  Rename "buffer" argument to "buffer_or_name".
6873 2008-10-18  Ulrich Mueller  <ulm@gentoo.org>
6875         * m/sh3.h: New file, machine description for SuperH.
6877 2008-10-17  Martin Rudalics  <rudalics@gmx.at>
6879         * window.c (Fsplit_window): Rename arg horflag to horizontal.
6881 2008-10-17  Kenichi Handa  <handa@m17n.org>
6883         * ftfont.c (ftfont_otf_features): Fix indexing
6884         gsub_gpos->FeatureList.Feature.  Check the validity of indices.
6886 2008-10-16  Magnus Henoch  <mange@freemail.hu>
6888         * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6889         (Fdbus_call_method_asynchronously): Ditto.
6890         This change makes C-h f display the argument list.
6892 2008-10-16  Chong Yidong  <cyd@stupidchicken.com>
6894         * fileio.c (Fexpand_file_name): Doc fix.
6896         * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6897         of :foreground and :background equivalent to unspecified (20.x
6898         compatibility).
6900 2008-10-15  Eli Zaretskii  <eliz@gnu.org>
6902         * buffer.c (syms_of_buffer): Doc fix.
6904 2008-10-14  Kenichi Handa  <handa@m17n.org>
6906         * font.c (font_clear_prop): When clearing font width, clear the
6907         average width field too.
6909 2008-10-12  Andreas Schwab  <schwab@suse.de>
6911         * ftfont.c (ftfont_shape_by_flt): Make static.
6912         * ftfont.h (ftfont_shape_by_flt): Don't declare.
6914         * font.c: Don't include <m17n-flt.h>.
6916 2008-10-10  Eli Zaretskii  <eliz@gnu.org>
6918         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6920 2008-10-09  Eli Zaretskii  <eliz@gnu.org>
6922         * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6923         away code.
6925 2008-10-09  Chong Yidong  <cyd@stupidchicken.com>
6927         * dispnew.c (update_text_area): Avoid looping due to large glyph
6928         overhangs (bug#1070).
6930 2008-10-09  Kenichi Handa  <handa@m17n.org>
6932         * fontset.c (face_for_char): If face->fontset is negative, just
6933         return ascii_face.
6935         * font.c (font_delete_unmatched): Fix previous change.
6936         Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6938 2008-10-09  Martin Rudalics  <rudalics@gmx.at>
6940         * frame.c (Fraise_frame): On text-only terminals select frame in
6941         order to make it visible.  (Bug#1061)
6943 2008-10-08  Chong Yidong  <cyd@stupidchicken.com>
6945         * fontset.c (fontset_find_font): Check frame validity.
6947 2008-10-07  Chong Yidong  <cyd@stupidchicken.com>
6949         * gtkutil.c (xg_display_open): Reset default display if none exists.
6950         (xg_display_close): Allow Emacs to close all displays (bug#985).
6952 2008-10-06  Andreas Schwab  <schwab@suse.de>
6954         * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6956 2008-10-06  Chong Yidong  <cyd@stupidchicken.com>
6958         * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6960         * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6962         * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6963         during initialization.
6965 2008-10-04  Eli Zaretskii  <eliz@gnu.org>
6967         * xdisp.c (redisplay_internal): If frame switched, redisplay the
6968         whole thing on MSDOS frames as well as on a TTY.
6970         * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6971         well as for TTY.
6972         (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6973         well as on a TTY.
6975         * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6976         as well as for TTY.
6978         * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6980         * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6981         MSDOS frames as well.
6983 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
6985         * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6986         correct arguments.
6987         * menu.c (find_and_return_menu_selection): Add cast.
6989 2008-10-03  Glenn Morris  <rgm@gnu.org>
6991         * emacs.c (USAGE1): Add --daemon.
6993 2008-10-02  Eli Zaretskii  <eliz@gnu.org>
6995         * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6996         100, so it's in percents as advertised.
6998 2008-10-02  Adrian Robert  <Adrian.B.Robert@gmail.com>
7000         * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7001         (ns_output.current_cursor, ns_output.desired_cursor)
7002         (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7003         (FRAME_NEW_CURSOR_COLOR): Remove.
7005         * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
7006         (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
7007         enumeration (HOLLOW_BOX_CURSOR, etc.).
7009         * nsterm.m (ns_frame_rehighlight): Remove commented code.
7010         (draw_window_cursor): Simplify code.
7011         (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7012         Don't change cursor type.  In latter, call rehighlight instead of doing
7013         updates manually.
7014         (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7015         Use core Emacs cursor types.
7017         * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
7019 2008-10-02  Martin Rudalics  <rudalics@gmx.at>
7021         * process.c (Faccept_process_output): Fix doc-string.
7023 2008-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
7025         * gmalloc.c (__sbrk): Also define for uClibc.
7027         * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7028         for uClibc.
7030 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
7032         * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7033         styles.
7034         (nsfont_open): Reenable the cache.
7036 2008-10-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
7038         * font.c (font_matching_entity): Reflect ATTRS in font selection.
7039         (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7041 2008-09-30  Stefan Monnier  <monnier@iro.umontreal.ca>
7043         * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7044         a suspended terminal.
7046 2008-09-30  Michael Albinus  <michael.albinus@gmx.de>
7048         * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7050 2008-09-30  Eli Zaretskii  <eliz@gnu.org>
7052         * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7054 2008-09-30  Chong Yidong  <cyd@stupidchicken.com>
7056         * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7057         in a continued line coincides with a line beginning.
7059 2008-09-29  Adrian Robert  <Adrian.B.Robert@gmail.com>
7061         * nsfont.m (nsfont_trait_distance): Fix bug.
7062         (nsfont_list): Return a list rather than a vector (syncs with Handa
7063         changes of 2008-05-14).
7064         (nsfont_open): Improve logging.
7066 2008-09-29  Andreas Schwab  <schwab@suse.de>
7068         * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7070 2008-09-28  Martin Rudalics  <rudalics@gmx.at>
7072         * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7073         name as char-resolve-modifiers.
7074         Reported by: Markus Triska <markus.triska@gmx.at>
7076 2008-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
7078         * dispnew.c (init_display): Return earlier when running as a daemon.
7080 2008-09-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
7082         * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7084 2008-09-27  Eli Zaretskii  <eliz@gnu.org>
7086         * composite.c (Fcomposition_get_gstring)
7087         (Fcompose_region_internal, Fcompose_string_internal)
7088         (Ffind_composition_internal): Doc fix.
7089         (syms_of_composite) <compose-chars-after-function>: Doc fix.
7090         (syms_of_composite) <auto-composition-function>: Doc fix.
7091         (syms_of_composite) <composition-function-table>: Doc fix.
7093 2008-09-25  Chong Yidong  <cyd@stupidchicken.com>
7095         * search.c (wordify): New argument for lax word-ends.
7096         (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7098 2008-09-24  Dan Nicolaescu  <dann@ics.uci.edu>
7100         * lisp.h (is_daemon): Declare.
7101         * dispnew.c (init_display): Do not try to initialize the terminal
7102         when running as a daemon.
7104 2008-09-22  Chong Yidong  <cyd@stupidchicken.com>
7106         * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7107         x_display_pixel_height.
7109 2008-09-22  Martin Rudalics  <rudalics@gmx.at>
7111         * undo.c (record_point): Don't call Fundo_boundary for first
7112         change.  (Bug#731)
7114 2008-09-22  Juanma Barranquero  <lekktu@gmail.com>
7116         * emacs.c (Fdaemonp): Doc fix.
7118 2008-09-22  Dan Nicolaescu  <dann@ics.uci.edu>
7120         * emacs.c (main): Place #ifdef in the proper place.
7122 2008-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
7124         * emacs.c (standard_args): Add --daemon.
7125         (main): Disconnect from the terminal when --daemon is passed.
7126         (is_daemon): New variable.
7127         (Fdaemonp): New function.
7128         (syms_of_emacs): Defsubr it.
7130 2008-09-20  Chong Yidong  <cyd@stupidchicken.com>
7132         * xdisp.c (get_next_display_element): Handle string display
7133         correctly when checking for the end of a box run.
7135 2008-09-20  Glenn Morris  <rgm@gnu.org>
7137         * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7138         (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7139         (Frename_file): Avoid copying to trash if a rename involves
7140         a delete.  (Bug#964).
7142 2008-09-20  Eli Zaretskii  <eliz@gnu.org>
7144         * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7145         (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7146         frames as well as termcap frames.
7147         (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7148         get_named_tty.
7150 2008-09-19  Eli Zaretskii  <eliz@gnu.org>
7152         * process.c (procfs_system_process_attributes): Fix cmdline in
7153         case /proc/PID/cmdline is empty.
7155         * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7156         x_display_pixel_height.
7158 2008-09-19  Juanma Barranquero  <lekktu@gmail.com>
7160         * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7162         * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7163         (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7165 2008-09-19  Dan Nicolaescu  <dann@ics.uci.edu>
7167         * dispextern.h (struct it): Move line_wrap away from the middle of
7168         bitfields.  Move voffset in struct iterator_stack_entry after the
7169         bitfields.  Move tab_width near after another short.
7171 2008-09-18  Dan Nicolaescu  <dann@ics.uci.edu>
7173         * frame.h (struct frame): Move alpha from the middle of bitfields.
7175         * window.h (struct window): Move frozen_window_start_p after the
7176         rest of the bitfields to reduce padding.
7178 2008-09-18  Chong Yidong  <cyd@stupidchicken.com>
7180         * xterm.h (x_display_info): Remove `height' and `width' members.
7182         * nsterm.h (ns_display_info): Remove `height' and `width' members.
7184         * w32term.h (w32_display_info): Remove `height', `width',
7185         `height_in', and `width_in' members.
7187         * xterm.c (x_display_pixel_height, x_display_pixel_width):
7188         New functions.
7189         (x_calc_absolute_position): Use them.
7190         (x_term_init): Omit removed `height' and `width' members.
7192         * w32term.c (x_display_pixel_height, x_display_pixel_width):
7193         New functions.
7194         (w32_read_socket, x_calc_absolute_position): Use them.
7195         (w32_initialize_display_info, w32_term_init): Omit removed members
7196         of w32_display_info.
7198         * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7199         New functions.
7200         (ns_initialize_display_info): Omit removed members of ns_display_info.
7202         * xterm.c (x_display_pixel_height, x_display_pixel_width):
7203         New functions.
7204         (x_calc_absolute_position): Use them.
7205         (x_term_init): Omit removed `height' and `width' members.
7207         * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7208         (compute_tip_xy):
7209         * frame.c (x_fullscreen_adjust):
7210         * xmenu.c (menu_position_func): Use x_display_pixel_height and
7211         x_display_pixel_width.
7213 2008-09-18  Kenichi Handa  <handa@m17n.org>
7215         * composite.c (fill_gstring_header): Don't check FROM and TO here.
7216         (composition_compute_stop_pos): Fix handling of static composition.
7217         (Fcomposition_get_gstring): Check FROM and TO at first.
7219 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
7221         * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
7222         mixup (YAILOM).
7224 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
7226         * indent.c (Fvertical_motion): Use position reported by iterator
7227         instead of PT for determining screen motion (bug#943).
7229 2008-09-17  Romain Francoise  <romain@orebokech.com>
7231         * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7233 2008-09-17  Kenichi Handa  <handa@m17n.org>
7235         * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7237         * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7238         if necessary.
7240 2008-09-16  Kenichi Handa  <handa@m17n.org>
7242         * coding.c (make_conversion_work_buffer): Avoid calling
7243         Fget_buffer_create if it is not necessary.
7245 2008-09-15  Martin Rudalics  <rudalics@gmx.at>
7247         * window.c (Fselect_window): Don't update window_select_count and
7248         use_time when norecord is not nil.
7250 2008-09-14  Kenichi Handa  <handa@m17n.org>
7252         * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7253         specpdl_ptr.
7255 2008-09-12  Kenichi Handa  <handa@m17n.org>
7257         * indent.c (scan_for_column): Don't handle automatic composition
7258         if the current buffer is not associated with a window.
7260         * composite.c (composition_reseat_it): If the current buffer is
7261         not associated with a window, ignore the automatic composition.
7262         (find_automatic_composition): Likewise.
7264 2008-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
7266         * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7267         (Fgpm_mouse_stop): Use it.
7268         * termhooks.h (close_gpm): Declare.
7269         * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7270         connection if Gpm_GetEvent fails.
7272         * window.c (set_window_buffer): Always preserve current-buffer.
7274 2008-09-12  Glenn Morris  <rgm@gnu.org>
7276         * charset.c (init_charset): Warn if etc/charsets not found.  (Bug#909)
7278 2008-09-11  Glenn Morris  <rgm@gnu.org>
7280         * charset.c (charset-map-path): Doc fix.
7282 2008-09-10  Kenichi Handa  <handa@m17n.org>
7284         * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7286         * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7287         compose a grapheme cluster with the preceding base glyph.
7289         * composite.c (composition_compute_stop_pos): Fix previous change.
7290         Reset cmp_it->id to -1 at first.
7292 2008-09-10  Glenn Morris  <rgm@gnu.org>
7294         * Makefile.in (character.o, chartab.o): Fix config.h typo.
7296 2008-09-09  Chong Yidong  <cyd@stupidchicken.com>
7298         * keyboard.c (read_key_sequence): Reapply translation maps when
7299         switching keyboards.
7301 2008-09-09  Kenichi Handa  <handa@m17n.org>
7303         * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7304         characters.
7306         * composite.c (FORWARD_CHAR): Fix calculation
7307         of (POSITION).pos_byte.
7308         (composition_compute_stop_pos): Limit the search of composition to
7309         at most 500 characters ahead.  If we reach the limit or find a
7310         newline, set cmp_it->ch to -2 and return 0.
7311         (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7313 2008-09-08  Kenichi Handa  <handa@m17n.org>
7315         * indent.c (Fvertical_motion): Be sure to set
7316         it_overshoot_expected if it.cmp_it.id is non-negative.
7318 2008-09-07  Andreas Schwab  <schwab@suse.de>
7320         * callproc.c (Fcall_process): Don't hold references to string data
7321         across garbage collection.  Move initialisation of new_argv down
7322         to avoid compiler bug.
7324 2008-09-07  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
7326         * process.c (Fsystem_process_attributes): Doc fix.
7328 2008-09-07  Chong Yidong  <cyd@stupidchicken.com>
7330         * callproc.c (Fcall_process): Canonicalize current directory name.
7332         * xdisp.c (move_it_to): When moving by vpos, ensure that the
7333         iterator advances to the next line if the current line ends in a
7334         continued tab.
7336 2008-09-07  Teodor Zlatanov  <tzz@lifelogs.com>
7338         * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7339         member to point to cmp_from.
7341         * xdisp.c: Doc fix for references to gidx data member.
7343 2008-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
7345         * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7347 2008-09-07  Kenichi Handa  <handa@m17n.org>
7349         * composite.c (FORWARD_CHAR): Check STOP after
7350         incrementing (POSITION).pos.
7352 2008-09-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
7354         * process.c (Fsystem_process_attributes): Doc fix.
7356 2008-09-06  Chong Yidong  <cyd@stupidchicken.com>
7358         * keyboard.c (Ftop_level): Doc fix.
7360 2008-09-06  Eli Zaretskii  <eliz@gnu.org>
7362         * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7363         minibuffer, don't let lower part of menu invade the echo area.
7365         * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7366         "char *q" to access menu text and advance through it.  Revert the
7367         change that displayed ">" instead of ASCII character 0x10.
7369 2008-09-05  Eli Zaretskii  <eliz@gnu.org>
7371         * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7372         toggle boxes and radio buttons on MS-DOS as well.
7374 2008-09-05  Kenichi Handa  <handa@m17n.org>
7376         * composite.c (autocmp_chars): Check lookback count.
7377         (composition_compute_stop_pos): Set cmp_it->lookback.
7378         (composition_reseat_it): Check lookback count.
7379         (struct position_record): New struct.
7380         (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7381         (find_automatic_composition): New function.
7382         (composition_adjust_point): Use find_automatic_composition.
7384         * dispextern.h (struct composition_it): New member lookback.
7386 2008-09-02  Chong Yidong  <cyd@stupidchicken.com>
7388         * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7389         if moving by a single line.
7391 2008-09-02  Andreas Schwab  <schwab@suse.de>
7393         * xterm.c (x_delete_display): Fix merge error.
7395         * fileio.c (Fexpand_file_name): Remove unused variables.
7397 2008-09-02  Eli Zaretskii  <eliz@gnu.org>
7399         * fileio.c (Fexpand_file_name): Copy argument `name' into local
7400         storage on all platforms, not just on DOS_NT.
7402 2008-09-02  Jason Rumney  <jasonr@gnu.org>
7404         * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7405         Ensure mouse is not grabbed after menu is finished.
7407 2008-09-01  Chong Yidong  <cyd@stupidchicken.com>
7409         * xfaces.c (Finternal_set_alternative_font_family_alist)
7410         (Finternal_set_alternative_font_registry_alist): Properly copy
7411         entire alist structure.
7413 2008-09-01  Kenichi Handa  <handa@m17n.org>
7415         * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7416         representative chars of the script is a vector.
7417         (ftfont_list): Handle the case where the representative chars of
7418         the script is a vector.
7420         * character.c (syms_of_character): Docstring of
7421         script-representative-chars fixed.
7423 2008-08-31  Eli Zaretskii  <eliz@gnu.org>
7425         * msdos.c (BUILD_CHAR_GLYPH): New macro.
7426         (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7427         the menu.  Allocate larger buffer for `text', to account for
7428         possible ^C characters.
7430 2008-08-31  Martin Rudalics  <rudalics@gmx.at>
7432         * xdisp.c (prepare_menu_bars): Don't call
7433         Vwindow_size_change_functions with arg Qt.
7435 2008-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
7437         * font.h (font_range):
7438         * fileio.c (report_file_error):
7439         * composite.c (composition_update_it): Yet another int/Lisp_Object
7440         mixup (YAILOM).
7442 2008-08-30  Glenn Morris  <rgm@gnu.org>
7444         * data.c (Fmake_variable_frame_local): Doc fix.
7446         * frame.c (Fmodify_frame_parameters): Doc fix.
7448 2008-08-30  Eli Zaretskii  <eliz@gnu.org>
7450         * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7451         needed by GetTokenInformation.
7452         (w32_system_process_attributes): Check return values of all system
7453         APIs.
7455         * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7456         only when the state changes.
7457         (IT_update_begin, IT_update_end): Add termscript trace.
7459         * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7460         clipboard is unavailable.  Set dst to NULL if it doesn't point to
7461         malloc'ed data.
7462         (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7463         passing random values to xfree.
7465         * dispnew.c (init_display): Set `tty's association in frame's
7466         parameters alist to the name of the terminal device, if that is known.
7468 2008-08-29  Jason Rumney  <jasonr@gnu.org>
7470         * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7472 2008-08-29  Eli Zaretskii  <eliz@gnu.org>
7474         * composite.c (fill_gstring_body): Avoid compiler warnings.
7476         * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7477         LGLYPH_SET_CODE to avoid compiler warnings.
7479         * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7481         * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7483         * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7484         LGLYPH_SET_CODE.
7486 2008-08-29  Kenichi Handa  <handa@m17n.org>
7488         * fileio.c (report_file_error): Don't downcase the first character
7489         of errstring if it is still unibyte.
7491 2008-08-29  Kenichi Handa  <handa@m17n.org>
7493         These changes are to re-implement the automatic composition so
7494         that it doesn't use text properties.
7496         * Makefile.in (ftfont.o): Depend on composite.h.
7497         (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7499         * character.h (Vunicode_category_table): Extern it.
7501         * character.c (Vunicode_category_table): New variable.
7502         (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7504         * chartab.c (optimize_sub_char_table): Perform more greedy
7505         optimization.
7507         * composite.h (enum composition_method):
7508         Delete COMPOSITION_WITH_GLYPH_STRING.
7509         (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7510         (Vcomposition_function_table): Extern it.
7511         (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7512         (composition_gstring_put_cache, composition_gstring_from_id)
7513         (composition_gstring_p, composition_gstring_width)
7514         (composition_compute_stop_pos, composition_reseat_it)
7515         (composition_update_it, composition_adjust_point): Extern them.
7516         (Fcomposition_get_gstring): EXFUN it.
7518         * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7519         (Vcomposition_function_table)
7520         (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7521         (gstring_hash_table, gstring_work, gstring_work_headers):
7522         New variables.
7523         (gstring_lookup_cache, composition_gstring_put_cache)
7524         (composition_gstring_from_id, composition_gstring_p)
7525         (composition_gstring_width, fill_gstring_header)
7526         (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7527         (composition_reseat_it, composition_update_it)
7528         (composition_adjust_point, Fcomposition_get_gstring): New functions.
7529         (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7530         and gstring_work_headers.  DEFVAR_LISP composition-function-table.
7531         Defsubr composition_get_gstring.
7533         * dispextern.h (struct glyph): New union u.cmp.  Delete the member
7534         cmp_id.
7535         (struct glyph_string): Delete the member gidx.  New members
7536         cmp_id, cmp_from, and cmp_to.
7537         (enum it_method): Delete GET_FROM_COMPOSITION.
7538         (struct composition_it): New struct.
7539         (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7540         Delete c, len, cmp_id, cmp_len in u.comp.
7542         * font.h (enum lgstring_indices): Delete it.
7543         (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7544         (enum lglyph_indices): Likewise.
7545         (font_range): Adjust extern.
7546         (font_fill_lglyph_metrics): Extern it.
7548         * font.c (QCf): New variable.
7549         (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7550         (font_prepare_composition): Delete this function.
7551         (font_range): Type and arguments changed.
7552         (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7553         (font_fill_lglyph_metrics): New function.
7554         (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7555         (syms_of_font): DEFSYM QCf.  Delete defsubr for
7556         Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7557         Defsubr Sfont_shape_gstring.
7559         * fontset.h (font_for_char): Extern it.
7561         * fontset.c (font_for_char): New function.
7563         * ftfont.c: Include composite.h.
7564         (ftfont_resolve_generic_family): Add langset "en" to pattern.
7565         (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7567         * indent.c: Include composite.h and dispextern.h.
7568         (check_composition): Delete this function.
7569         (scan_for_column): Handle composition by
7570         composition_compute_stop_pos, composition_reseat_it, and
7571         composition_update_it.
7572         (compute_motion): Likewise.
7573         (Fvertical_motion): Fix checking of composition.
7575         * keyboard.c (adjust_point_for_property): Check composition by
7576         composition_adjust_point.
7578         * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7579         struct glyph_string.
7581         * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7582         (append_composite_glyph): Adjust for the change of struct it and
7583         struct glyph.
7584         (produce_composite_glyph): Likewise.
7586         * w32term.c (x_draw_composite_glyph_string_foreground):
7587         Adjust for the change of struct glyph_string.
7588         (x_draw_glyph_string): Likewise.
7590         * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7591         (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7593         * xdisp.c: Include font.h.
7594         (it_props): Delete the entry for Qauto_composed.
7595         (init_iterator): Initialize it->cmp_it.id to -1.
7596         (compute_stop_pos): Call composition_compute_stop_pos.
7597         (face_before_or_after_it_pos): Adjust for the change of struct it.
7598         (handle_auto_composed_prop): Delete it.
7599         (handle_composition_prop): Handle only static composition.
7600         (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7601         from xassert.  Initialize it->cmp_it.stop_pos.
7602         (push_it): Adjust for the change of struct it.
7603         (pop_it): Likewise.
7604         (get_next_element): Delete next_element_from_composition.
7605         (CHAR_COMPOSED_P): New macro.
7606         (get_next_display_element): For automatic composition, get a face
7607         from the font in the glyph-string.
7608         (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7609         check composition by it->cmp_it.id.  Delete GET_FROM_COMPOSITION case.
7610         (next_element_from_string): Check if the character at the current
7611         position is composed by CHAR_COMPOSED_P.
7612         (next_element_from_buffer): Likewise.
7613         (next_element_from_composition): Adjust for the change of struct it.
7614         Update it->cmp_it.
7615         (dump_glyph): Adjust for the change of struct glyph.
7616         (fill_composite_glyph_string): Adjust for the change of struct
7617         it and struct glyph.  Don't handle automatic composition here.
7618         (fill_gstring_glyph_string): New function.
7619         (x_get_glyph_overhangs): Handle automatic composition.
7620         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7621         (BUILD_GSTRING_GLYPH_STRING): New macro.
7622         (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7623         automatic composition.
7624         (append_composite_glyph): Adjust for the change of struct it and
7625         struct glyph.
7626         (x_produce_glyphs): Adjust for the change of struct it.
7628         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7629         the change of struct glyph_string.
7630         (x_draw_glyph_string): Likewise.
7632 2008-08-29  Glenn Morris  <rgm@gnu.org>
7634         * buffer.c (word-wrap): Doc fix.
7635         * xdisp.c (truncate-partial-width-windows): Doc fix.
7636         Increase default to 50.
7638 2008-08-29  Chong Yidong  <cyd@stupidchicken.com>
7640         * xdisp.c (update_tool_bar_unwind): New function.
7641         (update_tool_bar): Temporarily set selected frame before building
7642         tool-bar items.
7644 2008-08-28  Michael Albinus  <michael.albinus@gmx.de>
7646         * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7647         snprintf, respectively.
7648         (xd_append_arg): Convert strings with Fstring_make_unibyte.
7650 2008-08-28  Chong Yidong  <cyd@stupidchicken.com>
7652         * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7653         LDFLAGS to GNUstep CC invocation.
7655 2008-08-27  Chong Yidong  <cyd@stupidchicken.com>
7657         * indent.c (Fvertical_motion): Revert last change.  Handle the
7658         general case where we are moving forward, and PT spans multiple
7659         screen lines.
7661         * eval.c (find_handler_clause): Temporarily increase
7662         max-lisp-eval-depth while printing the backtrace buffer, to
7663         guarantee that help-mode code can run.
7665 2008-08-27  Eli Zaretskii  <eliz@gnu.org>
7667         * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7668         colors under -rv.
7669         (IT_set_frame_parameters): Don't swap foreground and background
7670         colors if `(reverse . t)' is present in the frame properties.
7671         (internal_terminal_init): Call init_frame_faces only for the
7672         initial frame.
7674 2008-08-27  Andreas Schwab  <schwab@suse.de>
7676         * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7678 2008-08-27  Andreas Schwab  <schwab@suse.de>
7680         * search.c (search_buffer): Set char_base to zero only at the end.
7682 2008-08-27  Kenichi Handa  <handa@m17n.org>
7684         * fileio.c (report_file_error): Fix handling of multibyte error string.
7686 2008-08-27  Andreas Seltenreich  <seltenreich@gmx.de>
7688         * xterm.c (x_term_init): Temporarily hide the partially
7689         initialized terminal while calling vendor-specific-keysyms.
7691 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
7693         * msdos.c (internal_terminal_init): Most initializations done only
7694         once, especially initial_screen_colors[] and termscript open.
7696 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
7698         * eval.c (Fcondition_case): Doc fix.
7700         * widgetprv.h (EmacsFramePart): Change font member to the new font
7701         struct.
7703         * widget.c: Include character.h and font.h for XSETFONT.
7704         (setup_frame_gcs): Compute X font id from font struct, just once.
7706 2008-08-26  Eli Zaretskii  <eliz@gnu.org>
7708         * term.c (get_named_tty): Fix last change.
7710 2008-08-26  Chong Yidong  <cyd@stupidchicken.com>
7712         * indent.c (Fvertical_motion): If moving forward starting from a
7713         multi-line string, move the iterator to the last line of that string.
7715 2008-08-25  Eli Zaretskii  <eliz@gnu.org>
7717         * frame.c (do_switch_frame): Mark previously displayed frame as
7718         obscured for FRAME_MSDOS_P frames as well.
7720 2008-08-24  Eli Zaretskii  <eliz@gnu.org>
7722         * frame.c (make_terminal_frame): Initialize f->terminal,
7723         f->terminal->reference_count, and scroll bars on MS-DOS as well.
7724         Set the top frame to newly created frame.
7725         (Fmake_terminal_frame): Reuse the_only_display_info.
7727         * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7728         estimating available memory.
7730 2008-08-23  David Reitter  <david.reitter@gmail.com>
7732         * nsterm.m (ns_draw_window_cursor): Don't call
7733         NSDisableScreenUpdates and NSEnableScreenUpdates on
7734         non-NS_IMPL_COCOA systems.
7736 2008-08-23  Andreas Schwab  <schwab@suse.de>
7738         * process.c (procfs_system_process_attributes): Fix use of
7739         uninitialized variables.
7741 2008-08-23  Eli Zaretskii  <eliz@gnu.org>
7743         * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7745         * dispnew.c (init_display): Remove MS-DOS specific conditions for
7746         calling tty-set-up-initial-frame-faces.
7748         * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7749         Allow MSDOS frames along with X frames.
7751         * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7752         addition to output_termcap.
7754         * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7756         * termchar.h (FRAME_TTY): Support output_msdos_raw.
7757         (struct tty_display_info) [MSDOS]: Add fields related to mouse
7758         highlight.
7760         * process.c [!subprocesses]: Define QCname.
7761         (syms_of_process): Intern and staticpro it.
7763         * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7764         Adjust for changes in encoding/decoding routines.
7765         Use encode_coding_object and decode_coding_object instead of
7766         encode_coding and decode_coding.
7768         * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7770         * dosfns.c: Include frame.h before termhooks.h.
7771         (dos_cleanup): Use CURTTY ()->termscript instead of a global
7772         variable termscript.
7774         * s/msdos.h (USER_FULL_NAME): Define.
7775         (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7777         * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7778         (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7779         pw->pw_gecos.
7781         * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7782         SELECTED_FRAME as additional (1st) argument.
7783         (tty_read_avail_input): Handle output_msdos_raw in
7784         addition to output_termcap.
7786         * msdos.c: Include frame.h before termhooks.h.
7787         (mouse_on, mouse_off, mouse_moveto, mouse_init)
7788         (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7789         (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7790         (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7791         (IT_set_terminal_modes, IT_reset_terminal_modes)
7792         (IT_set_frame_parameters): Use tty->termscript instead of a global
7793         variable termscript.
7794         (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7795         global variable terminal_coding.  Don't refer to
7796         Vnonascii_translation_table.
7797         (internal_terminal_init): Set Vwindow_system in current_kboard.
7798         Don't use TTY_CHAR_INS_DEL_OK.  Set Vinitial_window_system.
7799         Announce date and time of session start, if termscript is open.
7800         Don't zero out the_only_display_info (it is done in
7801         term.c:init_tty).  Open termscript only of not already open.
7802         Log "SCREEN SAVED" here, instead of IT_set_terminal_modes.  Init mouse
7803         here instead of dos_ttraw.  Don't initialize display if this is an
7804         initial tty.  Don't set FRAME_FONT.
7805         (Vwindow_system_version): Bump to 23.
7806         (dos_ttraw): Accept a TTY argument; all callers fixed.  If mouse
7807         is available, set up mouse_position_hook.
7808         (dos_ttraw, IT_set_terminal_modes): If called with initial
7809         terminal, do nothing.
7810         (IT_set_frame_parameters): Handle the Qtty_type frame
7811         parameter by calling internal_terminal_init.
7812         (dos_set_window_size, show_mouse_face)
7813         (clear_mouse_face, IT_note_mode_line_highlight)
7814         (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7815         (dos_rawgetc): Use tty_display_info instead of x_display_info.
7816         (initialize_msdos_display): New function.
7817         (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7818         (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7819         (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7820         (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7821         Accept additional argument: a pointer to a frame.  Update all callers.
7822         (request_sigio, unrequest_sigio): Don't define, now defined on
7823         sysdep.c.
7824         (IT_write_glyphs): Rewrite to use encode_terminal_code.
7826         * term.c [MSDOS]: Include msdos.h.
7827         (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch.  Change cpp
7828         conditional to DOS_NT.  Allow only one call to this function in a
7829         session.  Don't allocate a new struct tty_display_info; instead,
7830         reuse the_only_display_info.  Call get_tty_size to get screen
7831         dimensions.  Call init_baud_rate to set bad_rate.
7832         (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7833         (Fsuspend_tty) [MSDOS]: Don't close input and output.
7834         (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7835         (get_tty_terminal, get_named_tty, Ftty_type)
7836         (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7837         output_termcap.
7838         (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7839         Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7840         only when subprocesses are supported.
7842         * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7843         f->output_data.x.
7844         (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7845         terminal devices.
7847         * msdos.h: Remove definition of struct x_display_info and struct
7848         x_output.
7849         (FRAME_FONT): Use output_data.tty.
7850         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7851         (struct x_display_info): Rename from display_info.  Update all users in
7852         msdos.c.
7853         (struct x_output): Remove background_pixel and foreground_pixel.
7854         (the_only_display_info): Rename from the_only_x_display.
7855         (dos_ttraw): Update prototype.
7857         * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7858         (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7860 2008-08-23  Jason Rumney  <jasonr@gnu.org>
7862         * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7863         (fn_TIFFSetDirectory): New library function used.
7864         (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7865         (tiff_load): Use :index to select among multiple images.  Set count
7866         property when multiple images exist.
7867         (gif_format): Use :index, not :image.
7869 2008-08-23  Chong Yidong  <cyd@stupidchicken.com>
7871         * xdisp.c (try_scrolling): Check INT_MAX instead of
7872         MOST_POSITIVE_FIXNUM for maximum integer value.  Include limits.h
7873         to obtain INT_MAX.
7875 2008-08-21  İsmail Dönmez  <ismail@namtrac.org>  (tiny change)
7877         * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7879 2008-08-21  Christian Faulhammer  <opfer@gentoo.org>  (tiny change)
7881         * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7882         GNUstep library location.
7884 2008-08-21  Chong Yidong  <cyd@stupidchicken.com>
7886         * xfaces.c (x_update_menu_appearance): Check validity of menu font
7887         before using it.
7889         * puresize.h (BASE_PURESIZE): Increase to 1250000.
7891 2008-08-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
7893         * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7894         (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7895         * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7896         * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7897         (EmacsApp-cursor_blink_handler): Remove declaration.
7898         * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7899         match 01 Feb 2008 changes in xterm.c.
7900         (ns_read_socket): Add cast to avoid warning.
7901         (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7902         GNUstep.
7904 2008-08-20  Chong Yidong  <cyd@stupidchicken.com>
7906         * xselect.c (x_get_foreign_selection): Return nil if desired
7907         selection could not be obtained, instead of signalling an error.
7909 2008-08-20  David Reitter  <david.reitter@gmail.com>
7911         * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7912         * nsterm.m: Remove ns-specific code for cursor blinking.
7913         (ns_draw_window_cursor): Clear cursor properly rather than
7914         redrawing the area.  Respect width of bar cursors.
7915         These changes enable the use of generic blink-cursor-mode and
7916         generic cursor types in NS and support smooth cursor movements (do
7917         not blink off after command).
7918         * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7919         Nextstep, too.
7921 2008-08-19  Kenichi Handa  <handa@m17n.org>
7923         * font.c (Vfont_log_deferred): New variable.
7924         (font_add_log): Check Vfont_log_deferred.
7925         (font_deferred_log): New function.
7927         * font.h (font_deferred_log): Extern it.
7929         * fontset.c (reorder_font_vector): Use encoding charset of fonts
7930         for sorting.
7931         (face_for_char): Use deferred log.
7933 2008-08-18  Kenichi Handa  <handa@m17n.org>
7935         * fontset.c (face_for_char): Add font log.
7937         * font.c (font_add_log): Add the font properties :script, :lang,
7938         and :otf in the log.
7940 2008-08-17  Chong Yidong  <cyd@stupidchicken.com>
7942         * xdisp.c: Remove dead code.
7943         (handle_invisible_prop, next_overlay_string): Defer call to
7944         setup_for_ellipsis.
7945         (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7947 2008-08-15  Chong Yidong  <cyd@stupidchicken.com>
7949         * xfaces.c (lookup_derived_face): Properly handle possible zero
7950         return value of get_lface_attributes.
7951         (merge_faces): Don't tell lookup_derived_face to signal an error
7952         if face is not found.
7954         * dired.c (Fdirectory_files): Doc fix.
7956         * process.c (make_process): Initialize kill_without_query struct
7957         member.
7959 2008-08-15  Eli Zaretskii  <eliz@gnu.org>
7961         * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7962         Alternative calculation of totphys for Visual Studio 6.
7964         * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7966         * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7967         Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7968         All users changed.
7969         (stat): Only root directory passed to GetDriveType.  Allow RAM
7970         disk as well as local fixed disk when w32-get-true-file-attributes
7971         is set to `local'.
7972         (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7973         (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7974         (w32_cached_id, w32_add_to_cache): New functions.
7975         (get_name_and_id): Look account names in the cache before calling
7976         lookup_account_sid.
7977         (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7978         New initialization flags.
7979         (globals_of_w32): Initialize them to zero.
7980         (w32_system_process_attributes): Use w32_cached_id and
7981         w32_add_to_cache.
7983 2008-08-14  Lawrence Mitchell  <wence@gmx.li>
7985         * lread.c (Fread_char, Fread_char_exclusive): If no character
7986         event is read before timeout is reached, return nil, rather than
7987         converting to a number.
7989 2008-08-14  Chong Yidong  <cyd@stupidchicken.com>
7991         * fns.c (use_dialog_box): Doc fix.
7993         * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7994         on OS X.
7996 2008-08-13  Chong Yidong  <cyd@stupidchicken.com>
7998         * frame.c (Qns_parse_geometry): New var.
7999         (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8001 2008-08-11  Chong Yidong  <cyd@stupidchicken.com>
8003         * xdisp.c (x_produce_glyphs): Handle the case when font has no
8004         space character in calculating tabs.
8006 2008-08-11  Dan Nicolaescu  <dann@ics.uci.edu>
8008         * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8010 2008-08-10  Glenn Morris  <rgm@gnu.org>
8012         * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8013         silence gcc "limited range of data type" warnings in some
8014         make_fixnum_or_float calls.
8016 2008-08-09  Eli Zaretskii  <eliz@gnu.org>
8018         * w32.c (w32_system_process_attributes): If the process does not
8019         exist, return nil.
8021         * w32.c: Include thelp32.h, psapi.h and coding.h.
8022         (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8023         declarations.
8024         (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8025         (Process32Next_Proc): New typedefs.
8026         (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8027         (g_b_init_process32_next, g_b_init_open_thread_token)
8028         (g_b_init_impersonate_self, g_b_init_revert_to_self)
8029         (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8030         (g_b_init_get_process_working_set_size)
8031         (g_b_init_global_memory_status_ex): New static variables.
8032         (globals_of_w32): Initialize them.
8033         (create_toolhelp32_snapshot, process32_first, process32_next)
8034         (open_thread_token, impersonate_self, revert_to_self)
8035         (get_process_memory_info, get_process_working_set_size)
8036         (global_memory_status, global_memory_status_ex): New wrapper
8037         functions.
8038         (w32_list_system_processes, w32_system_process_attributes)
8039         (enable_privilege, restore_privilege, ltime, process_times):
8040         New functions.
8041         (convert_time_raw): New function.
8042         (convert_time): Remove conversion of FILETIME into time in 100
8043         nsec units, call convert_time_raw instead.
8045         * process.h (w32_list_system_processes, w32_system_process_attributes):
8046         Add prototypes.
8047         (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8048         (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8049         (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8050         (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8052         * process.c (Fsystem_process_attributes): Doc fix.
8054 2008-08-08  Chong Yidong  <cyd@stupidchicken.com>
8056         * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8057         a continued multi-char glyph; if so, advance to the actual glyph.
8059 2008-08-07  Dan Nicolaescu  <dann@ics.uci.edu>
8061         * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8063         * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8064         (.m.o): Use it.
8065         * config.in: Regenerate.
8067 2008-08-07  Chong Yidong  <cyd@stupidchicken.com>
8069         * xdisp.c (redisplay_window): Revert last change.
8070         (try_window): Check bottom scroll margin too.
8072 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
8074         * config.in: Regenerate.
8076         * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8077         -list-load-path-shadows'.
8078         (nsgui.h): Reduce number of things depending on it.
8080 2008-08-06  Chong Yidong  <cyd@stupidchicken.com>
8082         * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8083         instead of window-end which does the wrong thing at eob.
8084         (try_cursor_movement): Minor optimization.
8085         (redisplay_window): If scroll margin is defined, don't assume
8086         window doesn't need scrolling.
8088 2008-08-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
8090         * config.in: Regenerate.
8092         * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8093         (mostlyclean): Don't delete *.d under NS.
8095         * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8097 2008-08-06  Kenichi Handa  <handa@m17n.org>
8099         * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8101 2008-08-06  Andreas Schwab  <schwab@suse.de>
8103         * config.in: Regenerate.
8105 2008-08-05  Chong Yidong  <cyd@stupidchicken.com>
8107         * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8108         forcing a window start.
8110         * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8111         (auto_save_1): Update modtime when auto-save-list-file-name is on.
8113 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
8115         * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8116         argument.
8118 2008-08-05  Juanma Barranquero  <lekktu@gmail.com>
8120         * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8121         <scroll-down-aggressively, before-change-functions>:
8122         <after-change-functions>: Reflow docstrings.
8124 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
8125             Ken Raeburn  <raeburn@gnu.org>
8127         Dock menu customization, based on a patch by Ken Raeburn, plus some
8128         other fixes.
8129         * nsmenu.m (dockMenu): New variable.
8130         (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8132         * nsterm.h (dockMenu): Declare.
8134         * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8135         (ns_term_init): Initialize dockMenu.
8136         (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8137         (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8138         left.
8140         * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8142 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
8144         * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8146         * config.in: Regenerate.
8148 2008-08-04  Seiji Zenitani  <zenitani@mac.com>
8150         * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8152 2008-08-04  Chong Yidong  <cyd@stupidchicken.com>
8154         * nsterm.h (find_and_call_menu_selection): Fix prototype.
8156 2008-08-04  Adrian Robert  <Adrian.B.Robert@gmail.com>
8158         * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8160         * keyboard.h: Comment an #endif.
8162         * lisp.h (have_menus_p): Adjust comment.
8164         * menu.c (find_and_return_menu_selection): Fix comparison with
8165         client_data.
8167         * nsmenu.m (popup_activated_flag): New variable.
8168         (popup_activated): New function.
8169         (menu-or-popup-active-p): New exported lisp definition.
8170         (ns_popup_menu): Set popup_activated_flag.  Call discard_menu_items()
8171         when popup done.
8172         (ns_popup_dialog): Set popup_activated_flag.
8174         * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8175         version for GNUstep (handled by conditional typedef in nsterm.m).
8176         (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8177         in rgb.txt).
8179         * process.c (init_process): Use DARWIN_OS, not DARWIN.
8181         * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8183         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8185         * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8186         shortcircuit if popup_activated like GTK and X toolkit.
8188         * m/inter386.h: Change DARWIN to DARWIN_OS.
8190         * s/darwin.h: Add #define DARWIN_OS.  Get rid of C_SWITCH_SYSTEM def.
8191         Change LIBS_MACGUI to LIBS_NSGUI.  Move temacs-conditionalized defs
8192         closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.  Expand
8193         comment on NO_SOCK_SIGIO.
8195 2008-08-03  Chong Yidong  <cyd@stupidchicken.com>
8197         * nsterm.m (windowDidResize): Remove stopModal call.
8199 2008-08-03  Andreas Schwab  <schwab@suse.de>
8201         * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8202         (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8204 2008-08-02  Chong Yidong  <cyd@stupidchicken.com>
8206         * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8207         Don't use uninitialized pointer variable when using getrlimit.
8209 2008-08-02  Jason Rumney  <jasonr@gnu.org>
8211         * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8213 2008-08-02  Eli Zaretskii  <eliz@gnu.org>
8215         * alloc.c (NSTATICS): Bump to 0x640.
8217         * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8219         * lisp.h: Add prototype for directory_files_internal.
8221         * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8222         New functions.
8223         (syms_of_process): Defsubr them.  Add initializations for various
8224         Q* symbols used in procfs_system_process_attributes.
8225         (procfs_list_system_processes, procfs_system_process_attributes)
8226         [HAVE_PROCFS]: New functions.
8227         (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8228         (procfs_get_total_memory): New functions.
8230 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
8232         * xfaces.c (Fx_load_color_file): Fix previous change;
8233         it is #ifdef WINDOWSNT, not WINDOWS_NT.
8235 2008-08-01  Michael Albinus  <michael.albinus@gmx.de>
8237         * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8239 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
8241         * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8243 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
8245         * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8247         * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8248         define NSApplicationDelegateReplySuccess.
8249         (EmacsView -converstationIdentifier): Use long instead of
8250         NSInteger for GNUstep, since it doesn't have NSInteger.
8252         * xmenu.c: Revert last change.
8254         * keyboard.h: Fix last change.
8256 2008-08-01  Juanma Barranquero  <lekktu@gmail.com>
8258         * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8259         on Windows.
8261 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
8263         Warning clearing and clean-up in NS port.
8264         * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8265         Add prototypes.
8266         * nsgui.h (FACE_DEFAULT): Remove, unused.
8267         (XGCValues): Change colors to unsigned long.
8268         * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8269         nsterm.m.
8270         (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8271         (ns_list_fonts): Remove, unused.
8272         (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8273         * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8274         * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8275         (nsfont_draw): Compare face colors to 0, not nil.
8276         * nsmenu.m (struct widget_value): Drop unneeded declaration.
8277         (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8278         (-addSubmenuWithTitle:): Use NSMenuItem class.
8279         (ns_popup_menu): Use NO, not NULL, for enabled setting.
8280         * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8281         (ns_clip_to_row): Make gc arg a BOOL.
8282         (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8283         ns_clip_to_row() call.
8284         (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8285         used).  Cast FRAME_FONT assignments.
8286         (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8287         (ns_string_to_lispmod): Change arg to const char.
8288         (ns_term_init): Use NSMenuItem class.
8289         (EmacsApp -openFile:): Move to different section of file.
8290         (EmacsApp -application:openFiles:): Don't return a value, call
8291         -replyToOpenOrPrint:.
8292         (EmacsView -keyDown:): Fix up cast.
8293         (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8294         (EmacsView -menuDown:): Cast tag in call to
8295         find_and_call_menu_selection().
8296         (ns_list_fonts): Remove, unused.
8297         (ns_font_to_xlfd): Make static.  Cast result of UTF8String.
8298         (ns_fontname_to_xlfd): Make static.
8299         * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8300         Remove prototypes (now in keyboard.h).
8301         (next_menubar_widget_id): Remove, unused.
8302         * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8303         Remove prototypes (now in keyboard.h).
8304         * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8306 2008-08-01  Dan Nicolaescu  <dann@ics.uci.edu>
8308         * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8309         (floatfns.o): Depend on syssignal.h.
8310         (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8312         * systty.h: Fix previous change that removed BSD_TERMIOS.
8313         Add comments to #ifdefs.
8315 2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
8317         * w32fns.c (w32-load-color-file): Remove.
8318         (x-open-connection): Use renamed Fx_load_color_file.
8319         * xfaces.c (x-load-color-file): Add.
8320         * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8321         Emacs.clr.
8322         (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8324 2008-07-31  Michael Albinus  <michael.albinus@gmx.de>
8326         * dbusbind.c (Fdbus_call_method_asynchronously)
8327         (Fdbus_method_error_internal): New defuns.
8328         (xd_read_message): Handle also reply messages.
8329         (Vdbus_registered_functions_table): Extend docstring.
8331 2008-07-31  Juanma Barranquero  <lekktu@gmail.com>
8333         * keyboard.c (gobble_input): Fix previous change.
8335 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
8337         * bitmaps/README:
8338         * xfns.c:
8339         * termcap.c:
8340         * term.c:
8341         * syswait.h:
8342         * systty.h:
8343         * systime.h:
8344         * syssignal.h:
8345         * sysdep.c:
8346         * process.h:
8347         * process.c:
8348         * print.c:
8349         * ndir.h:
8350         * lread.c:
8351         * keyboard.c:
8352         * getpagesize.h:
8353         * floatfns.c:
8354         * fileio.c:
8355         * emacs.c:
8356         * doc.c:
8357         * dispnew.c:
8358         * dired.c:
8359         * data.c:
8360         * callproc.c:
8361         * buffer.c:
8362         * README:
8363         * Makefile.in:
8364         * s/template.h:
8365         * s/msdos.h:
8366         * m/vax.h: Remove VMS support.
8367         * s/vms.h:
8368         * vlimit.h:
8369         * uaf.h:
8370         * temacs.opt:
8371         * param.h:
8372         * ioctl.h: Remove file.
8374 2008-07-31  Dan Nicolaescu  <dann@ics.uci.edu>
8376         * s/ms-w32.h (MULTI_KBOARD): Remove.
8377         * xterm.c:
8378         * xselect.c:
8379         * xfns.c:
8380         * window.c:
8381         * w32term.c:
8382         * w32fns.c:
8383         * terminal.c:
8384         * termhooks.h:
8385         * term.c:
8386         * sysdep.c:
8387         * keyboard.h:
8388         * keyboard.c:
8389         * frame.h:
8390         * frame.c:
8391         * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8392         * config.in: Regenerate.
8394 2008-07-30  Jason Rumney  <jasonr@gnu.org>
8396         * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8398         * w32font.c (w32font_encode_char): Leave as unicode if in range.
8399         (w32font_open_internal): Get unicode version of textmetrics.
8400         Don't enable or disable glyph indices here.
8401         (w32font_open): Disable use of glyph indices.
8403         * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8405 2008-07-30  Chong Yidong  <cyd@stupidchicken.com>
8407         * minibuf.c (Vread_buffer_function): Doc fix.
8409 2008-07-30  John Paul Wallington  <jpw@pobox.com>
8411         * minibuf.c (read_buffer_completion_ignore_case): New var.
8412         (Fread_buffer): Use it.
8414 2008-07-30  Dan Nicolaescu  <dann@ics.uci.edu>
8416         * systty.h (sensemode): Remove empty #if.  Remove reference to
8417         BSD_TERMIOS, unused.
8419         * sysdep.c: Remove reference to DGUX.
8420         (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8422         * config.in: Regenerate.
8424 2008-07-30  Jason Rumney  <jasonr@gnu.org>
8426         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8428 2008-07-29  Jason Rumney  <jasonr@gnu.org>
8430         * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8431         is populated.
8432         (uniscribe_encode_char): Always use uniscribe.
8433         Avoid using context if cache is populated.
8435 2008-07-29  Jan Djärv  <jan.h.d@swipnet.se>
8437         * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8438         open menu.
8440         * gtkutil.c (menu_nav_ended): Remove.
8441         (create_menus): Remove signal connect for menu_nav_ended.
8443 2008-07-28  Chong Yidong  <cyd@stupidchicken.com>
8445         * xdisp.c (redisplay_window): Check return value of
8446         compute_window_start_on_continuation_line before forcing a window
8447         start.
8449 2008-07-28  Jason Rumney  <jasonr@gnu.org>
8451         * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8453         * w32term.c (w32_enable_unicode_output, cleartype_active):
8454         Remove obsolete display options.
8455         (x_draw_glyph_string_background): Don't use old cleartype_active
8456         workaround.
8457         (w32_initialize): Remove cleartype_active initialization.
8458         (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8460 2008-07-28  Andreas Schwab  <schwab@suse.de>
8462         * lisp.h (init_weak_hash_tables, syms_of_font)
8463         (xd_read_queued_messages, syms_of_dbusbind): Declare.
8464         (remove_hash_entry): Don't declare.
8465         * eval.c (maybe_call_debugger): Make static and move before use.
8466         * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8467         * xdisp.c: Include "gtkutil.h" if USE_GTK.
8468         * xterm.h (x_set_frame_alpha): Declare.
8470 2008-07-28  Jan Djärv  <jan.h.d@swipnet.se>
8472         * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8473         (create_menus): Connect selection-done to menu_nav_ended.
8475 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
8477         * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8478         Set Vx_resource_name to a fallback.  Replace read of 'buffered'
8479         parameter with read of 'alpha' one.
8480         (Qns_frame_parameter): Remove.
8481         * nsselect.m (selection-coding-system)
8482         (next-selection-coding-system, Vselection_coding_system)
8483         (Vnext_selection_coding_system): Drop.
8485 2008-07-27  Adrian Robert  <Adrian.B.Robert@gmail.com>
8487         * nsfns.m (do-applescript, do_applescript): Rename to
8488         ns-do-applescript, ns_do_applescript, and move within file.
8490 2008-07-27  Dan Nicolaescu  <dann@ics.uci.edu>
8492         Remove support for Mac Carbon.
8493         * mactoolbox.c:
8494         * macterm.h:
8495         * macterm.c:
8496         * macselect.c:
8497         * macmenu.c:
8498         * macgui.h:
8499         * macfns.c:
8500         * mac.c: Remove file.
8501         * s/darwin.h:
8502         * m/intel386.h:
8503         * xfaces.c:
8504         * xdisp.c:
8505         * window.c:
8506         * tparam.c:
8507         * termhooks.h:
8508         * termcap.c:
8509         * term.c:
8510         * syssignal.h:
8511         * sysselect.h:
8512         * sysdep.c:
8513         * process.c:
8514         * lread.c:
8515         * lisp.h:
8516         * keyboard.c:
8517         * image.c:
8518         * fringe.c:
8519         * frame.h:
8520         * frame.c:
8521         * fontset.c:
8522         * font.h:
8523         * font.c:
8524         * fns.c:
8525         * fileio.c:
8526         * emacs.c:
8527         * dispnew.c:
8528         * dispextern.h:
8529         * config.in:
8530         * atimer.c:
8531         * Makefile.in: Remove code for Carbon.
8533 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8535         * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8537 2008-07-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8539         * macterm.h (kCGBitmapByteOrder32Host): New define for
8540         non-universal SDKs.
8542         * image.c (mac_create_cg_image_from_image, image_load_image_io)
8543         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8545         * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8546         [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8548 2008-07-26  David Robinow  <drobinow@gmail.com>  (tiny change)
8550         * w32inevt.c: Include dispextern.h.
8552 2008-07-26  Andreas Schwab  <schwab@suse.de>
8554         * print.c (print_object): Fix off-by-one in last change.
8556 2008-07-25  Juanma Barranquero  <lekktu@gmail.com>
8558         * term.c (syms_of_term): Don't initialize default_orig_pair,
8559         default_set_foreground and default_set_background on Windows.
8561 2008-07-25  Jason Rumney  <jasonr@gnu.org>
8563         * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8564         ScriptItemize.  Clean up return value checking.  Remove unused
8565         variables.
8566         (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8567         shaping engine.
8569         * w32font.c (w32font_has_char): Handle the case where we can't
8570         determine the script for a character.
8572 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8574         * term.c (syms_of_term): Initialize default_orig_pair,
8575         default_set_foreground, and default_set_background.
8577         * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8578         clash (bug#86).
8579         (getloadavg): Callers changed.
8581         * image.c (svg_load_image): Fix last change.
8582         (svg_load_image): Use rsvg_handle_get_dimensions to check that
8583         image size is valid.  Use g_object_unref instead of deprecated
8584         rsvg_handle_free to free rsvg handle.
8585         (x_from_xcolors): Don't initialize pixmap (silence compiler).
8587 2008-07-25  Jason Rumney  <jasonr@gnu.org>
8589         * w32font.c (w32font_encode_char): Encode characters outside BMP as
8590         surrogates before looking up glyph index.
8591         (w32font_text_extents): Encode as surrogates if falling back to
8592         functions that need UTF-16 wide chars.
8594         * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8595         BMP as surrogates before looking up glyph index.
8597 2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8599         * image.c (svg_load_image): Check for failure in return value of
8600         rsvg_handle_get_pixbuf.  Free rsvg handle when done.
8602 2008-07-25  Jason Rumney  <jasonr@gnu.org>
8604         * w32font.c (Fx_select_font): Reverse sense of second arg.
8606 2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8608         * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8609         (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8611         * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8612         (PURESIZE): Use it.
8614 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
8616         * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8617         * m/alpha.h (TEXT_END):
8618         * m/ibmrs6000.h (TEXT_END):
8619         * m/macppc.h (TEXT_END):
8620         * s/darwin.h (TEXT_END):
8621         * s/msdos.h (TEXT_END): Remove, unused.
8622         * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8623         * s/cygwin.h: Remove comment.
8625         * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8626         (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8627         * m/intel386.h (DOT_GLOBAL_START):
8628         * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8629         (USG): Remove, file not used on USG platforms.
8631         * Makefile.in (HAVE_X11): Remove empty #else.
8633 2008-07-24  Andreas Schwab  <schwab@suse.de>
8635         * fileio.c (Finsert_file_contents): Properly adjust undo list
8636         after format conversion.
8638 2008-07-24  Jan Djärv  <jan.h.d@swipnet.se>
8640         * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8641         (menu_nav_ended): Remove.
8642         (create_menus): Remove signal connect for menu_nav_ended.
8643         (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8644         create_menus.
8645         (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8647 2008-07-23  Jason Rumney  <jasonr@gnu.org>
8649         * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8650         with opened font.
8651         (w32font_open): Set font type to gdi.
8653         * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8655 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
8657         * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8658         * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8659         defines it.
8660         * unexec.c (ADDR_CORRECT): Define unconditionally.
8662         * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8664         * unexec.c: Remove code depending on !COFF and USG, the file is
8665         not used for such systems.
8667         * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8668         * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8669         (LD_SWITCH_SYSTEM_1): Remove, update users.
8671         * s/darwin.h (DATA_END):
8672         * m/intel386.h (DATA_END):
8673         * m/ibmrs6000.h (DATA_END):
8674         * m/alpha.h (DATA_END): Remove, unused.
8676         * config.in: Regenerate.
8677         * s/ms-w32.h (subprocesses): Define unconditionally.
8678         * s/template.h (subprocesses): Update comment.
8679         * s/vms.h (subprocesses):
8680         * s/usg5-4.h (subprocesses):
8681         * s/hpux10-20.h (subprocesses):
8682         * s/gnu-linux.h (subprocesses):
8683         * s/cygwin.h (subprocesses):
8684         * s/bsd-common.h (subprocesses):
8685         * s/aix4-2.h (subprocesses):
8686         * s/darwin.h (subprocesses): Do not define, defined by default now.
8688         * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8689         Remove all references.
8690         (temacs): Add GNUstep specific ld flags.
8692         * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8693         similarly to what X does.
8695 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
8697         * nsfns.m (x-list-fonts): Remove.
8698         (syms_of_nsfns): Drop the x-list-fonts declaration.
8699         * nsterm.m: Get rid of remaining "//" comments.
8701 2008-07-22  Chong Yidong  <cyd@stupidchicken.com>
8703         * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8705         * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8706         (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8707         (Fns_own_selection_internal, Fx_disown_selection_internal)
8708         (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8710         * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8711         ... */' style of docstrings.  Doc fixes.
8713 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
8715         * terminfo.c (UP, BC, PC): Undo previous change.
8717         * nsfns.m: Rename ns prefixed functions/variables to the
8718         corresponding x versions.  Update references.
8720 2008-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
8722         * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8724 2008-07-22  Dan Nicolaescu  <dann@ics.uci.edu>
8726         * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8727         Remove forwarding functions.
8728         (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8729         non-static.
8730         (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8731         non-static.
8732         (ns_frame_parm_handlers): Use the new names.
8733         (syms_of_nsfns): Move to the end of file.
8735         * nsterm.m (syms_of_nsterm): Move to the end of file.
8737         * dispnew.c (init_display): Remove code for X10.
8739 2008-07-22  Jason Rumney  <jasonr@gnu.org>
8741         * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8742         bare drive.
8744 2008-07-22  Adrian Robert  <Adrian.B.Robert@gmail.com>
8746         * nsterm.m (syms_of_nsterm): Remove debugging println.
8748 2008-07-22  David Reitter  <david.reitter@gmail.com>
8750         * nsfns.m (do_applescript, F_do_applescript): NS version of the
8751         Carbon implementation of the same functionality: execute arbitrary
8752         AppleScript code.
8754 2008-07-21  Adrian Robert  <Adrian.B.Robert@gmail.com>
8756         * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8757         (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8758         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8759         (Fx_display_mm_height, Fx_display_mm_width)
8760         (Fx_display_backing_store, Fx_display_visual_class)
8761         (Fx_display_save_under, Fx_open_connection)
8762         (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8763         (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8764         (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8765         (Fx_display_pixel_width, Fx_display_pixel_height)
8766         (Fx_display_usable_bounds, Fx_display_planes)
8767         (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8768         ... */' style of docstrings.
8770 2008-07-21  Dan Nicolaescu  <dann@ics.uci.edu>
8772         * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8773         on this platform.
8774         (mips):
8775         * m/iris4d.h (mips): Do not define.
8776         * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8778         * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8780         * image.c:
8781         * nsfns.m:
8782         * nsselect.m:
8783         * nsterm.h:
8784         * nsterm.m: Rename ns prefixed functions/variables to the
8785         corresponding x versions.  Update references.
8787         * m/ibms390x.h (NO_REMAP): Do not undefine.
8789         * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8791 2008-07-21  Chong Yidong  <cyd@stupidchicken.com>
8793         * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8794         (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8795         (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8796         (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8797         (Fns_display_mm_height, Fns_display_mm_width)
8798         (Fns_display_backing_store, Fns_display_visual_class)
8799         (Fns_display_save_under, Fns_open_connection)
8800         (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8801         (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8802         (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8803         (Fns_display_pixel_width, Fns_display_pixel_height)
8804         (Fns_display_usable_bounds, Fx_display_planes)
8805         (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8807 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
8809         * print.c (print_object): Check print_depth before searching for
8810         circularities.
8812 2008-07-21  Michael Albinus  <michael.albinus@gmx.de>
8814         * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8815         only sprintf.
8817 2008-07-21  Kenichi Handa  <handa@m17n.org>
8819         * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8821 2008-07-20  Andreas Schwab  <schwab@suse.de>
8823         * syntax.c (find_start_pos, find_start_value)
8824         (find_start_value_byte, find_start_begv, find_defun_start)
8825         (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8827 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
8829         * s/sol2-3.h: Insert contents of s/sol2.h.
8830         (LD_SWITCH_SYSTEM): Remove redundant definition.
8831         * s/sol2.h: Remove, unused.
8833 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
8835         * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8837 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
8839         * Makefile.in (ns_appdir): Fix typo in find command.
8841 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
8843         * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8845         * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8846         added not supported anymore.
8848         * s/usg5-4-2.h (LIBS_SYSTEM):
8849         * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8851         * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8852         * s/lynxos.h (GETPGRP_NO_ARG):
8853         * s/hpux10-20.h (NO_SIOCTL_H):
8854         * s/gnu.h (GETPGRP_NO_ARG):
8855         * s/gnu-linux.h (NO_SIOCTL_H):
8856         * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8857         * s/cygwin.h (GETPGRP_NO_ARG):
8858         * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8859         (C_DEBUG_SWITCH): Remove duplicate definition.
8861         * m/ibms390.h: Remove boilerplate comments.
8863         * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8865         * process.c (HAVE_SERIAL): Consolidate ifdefs.
8866         (wait_reading_process_output): Remove code for SunOS, platform not
8867         supported anymore.  Use SOLARIS2 instead of sun.
8869 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
8871         * font.c (font_open_by_name): Under NS, default lface height to zero.
8872         (font_open_for_lface): Under NS, set size based on frame fontsize.
8873         * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8874         * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8876 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
8878         * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8879         (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8880         DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8881         YES/NO.
8882         * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8883         * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8884         * Makefile.in (clean): Clear out build destination dir.
8886 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
8888         * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8889         xterm, xselect.
8890         * lisp.h: Remove declaration of hash_remove.
8891         * nsgui.h: Remove redefinitions of hash_remove.
8892         * fns.c (hash_remove): Rename to hash_remove_from_table.
8894 2008-07-19  Seiji Zenitani  <zenitani@mac.com>
8896         * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8897         strdup() the family UTF8String before modifying it.
8899 2008-07-19  Adrian Robert  <Adrian.B.Robert@gmail.com>
8901         * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8902         NS_FACE_BACKGROUND with 0 instead of nil.
8903         * nsfont.m (nsfont_draw): Same.
8905 2008-07-19  Chong Yidong  <cyd@stupidchicken.com>
8907         * nsfns.m (ns_set_background_color): Fix crash.
8909 2008-07-18  Chong Yidong  <cyd@stupidchicken.com>
8911         * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8913 2008-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
8915         * puresize.h (BASE_PURESIZE): Increase to 1240000.
8917 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8919         * gtkutil.c: Include <config.h> instead of "config.h".
8921         * lisp.h (Foverlay_buffer): Add EXFUN.
8923         * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8924         child process to complete child_setup.  Undo 2005-09-21 change.
8926         * s/darwin.h: Mention setsid after vfork.
8928 2008-07-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8930         * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8931         Depend on macgui.h.
8933         * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8934         gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8936         * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8937         and f19.
8938         [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8940         * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8941         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8942         Remove enumerators.
8944         * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8945         Check if FACE_FROM_ID returns NULL.
8947 2008-07-17  David Robinow  <drobinow@gmail.com>  (tiny change)
8949         * w32inevt.c (change_frame_size): Remove extern declaration.
8950         (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8951         change_frame_size.
8953 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
8955         * getloadavg.c: Revert last change (2008-07-15).
8957 2008-07-17  Adrian Robert  <Adrian.B.Robert@gmail.com>
8959         * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8960         set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8961         from configure.
8963 2008-07-17  Dan Nicolaescu  <dann@ics.uci.edu>
8965         * s/sol2.h:
8966         * s/sol2-4.h: Reorganize conditionals.
8968         * ecrt0.c: Remove code depending on m68000, not used anymore.
8970         * fns.c (hash_remove): Make static.
8971         * lisp.h (hash_remove): Don't prototype.
8973         * m/ibmrs6000.h:
8974         * m/ibms390x.h:
8975         * m/macppc.h: Remove boilerplate comments.
8977         * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8978         Solaris, which does not need them.
8980         * m/vax.h: Remove comments about unsupported systems.
8982         * s/darwin.h: Reorganize ifdefs.
8984 2008-07-17  Andreas Schwab  <schwab@suse.de>
8986         * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8988 2008-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
8990         Use SDATA.  Follow coding convention of placing operators at
8991         beginning of next line rather than end of previous line, and placing
8992         spaces around infix operators.
8994         * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8995         in case it was defined already.
8996         USE @GNUSTEP_MAKEFILES@ rather than envvars.
8997         * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8998         ns_default.
8999         (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9000         Lisp_Objects.
9001         * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9002         (ns_defined_color, ns_color_to_lisp): Declare.
9003         * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9004         (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9005         it's accepted even with USE_LISP_UNION_TYPE.
9006         * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9007         (update_frame_tool_bar): Remove apparently obsolete tests for
9008         non-integerness of f->tool_bar_lines.
9009         (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9010         hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9011         * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9012         (nsfont_open): Don't confuse NULL for Qnil.
9013         * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9014         * menu.h (find_and_call_menu_selection):
9015         * menu.c (find_and_call_menu_selection): Use just int for vector size.
9016         (find_and_return_menu_selection): Always return something.
9017         * frame.h: Include dispextern.h for Display_Info.
9018         (display_x_get_resource): Declare.
9020 2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
9022         * syntax.c: Remove stdio.h include accidentally introduced in
9023         Emacs.app commit.
9024         * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9025         NS_IMPL_COCOA.
9026         * keyboard.c (handle_async_input, input_available_signal): Remove
9027         BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9029 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
9031         * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9032         (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9033         (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9034         Use SDATA.
9036         * keymap.c: Remove all NS-specific code.
9037         (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9038         (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9039         where_is_preferred_modifier, return a different value depending on how
9040         preferred is the binding.
9041         (where_is_internal): Adjust accordingly.
9042         (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9043         Adjust to new preferred_sequence_p.
9044         (syms_of_keymap): Declare `where-is-preferred-modifier'.
9045         * keyboard.c (parse_solitary_modifier): Not static any more.
9046         * keyboard.h (parse_solitary_modifier): Declare.
9048 2008-07-16  Andreas Schwab  <schwab@suse.de>
9050         * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9051         of easymenu.
9053 2008-07-16  Chong Yidong  <cyd@stupidchicken.com>
9055         * xdisp.c (move_it_in_display_line): Account for word wrap, so
9056         that we don't move off the line.
9058 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
9060         * keyboard.c (Qsuper): Remove.
9061         (parse_menu_item): Don't call where_is_internal specially for NS.
9063 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
9065         * s/gnu-linux.h: Remove boilerplate comments.
9067         * m/alpha.h (__ELF__): Consolidate conditions.
9069         * m/m68k.h (linux): Use GNU_LINUX instead.
9070         Remove boilerplate comments.
9072         * m/intel386.h: Undo refactoring from previous change.
9073         (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9074         too, remove dead code.
9075         (linux): Use GNU_LINUX instead.
9077 2008-07-16  Jason Rumney  <jasonr@gnu.org>
9079         * w32gui.h: Repeat 26 June changes lost by last change.
9081 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
9083         * systty.h: Remove code for Aix on 386, unsupported platform.
9085         * s/ms-w32.h: Remove boilerplate comments.
9086         (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9088         * s/gnu-linux.h (TERM): Remove support.
9089         (HAVE_SYSVIPC): Remove, unused.
9090         (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9091         for this system.
9093         * process.c: Remove support for IRIS, unused.
9094         Remove support for TERM, not relevant anymore.
9096         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9097         used with the definition.
9099         * s/aix4-2.h (static): Do not undef.
9101         * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9102         only used on Aix.
9103         (HAVE_SYSVIPC): Remove, unused.
9105         * m/hp800.h (CANNOT_DUMP): Do not undef.
9107         * m/alpha.h: Fix comment.
9109         * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9110         (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9111         used by this configuration.
9112         * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9113         * unexec.c: Remove code depending on HPUX and
9114         USG_SHARED_LIBRARIES, not used with this file.  Remove code
9115         depending on IRIS, unused.  Remove if 0-ed code.
9117         * s/template.h: Remove comments about static.
9119         * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9120         Remove if 0-ed code.
9121         (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9122         were the same as the default.
9123         * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9124         Remove boilerplate comments.
9125         * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9126         (HAVE_SYSVIPC): Remove, unused.
9127         (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9129         * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9130         Remove boilerplate comments.
9131         * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9132         Remove boilerplate comments.
9133         * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9134         Remove boilerplate comments.
9135         * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9137         * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9138         USG systems which do not use DATA_SEG_BITS.
9139         Refactor code.  Remove boilerplate comments.
9141         * m/ibms390.h:
9142         * m/m68k.h:
9143         * s/bsd-common.h:
9144         * s/cygwin.h:
9145         * s/darwin.h:
9146         * s/freebsd.h:
9147         * s/gnu.h:
9148         * s/msdos.h: Remove boilerplate comments.
9150         * m/iris4d.h: Remove boilerplate comments and code for systems that
9151         do not use this file.
9152         (IRIS_4D): Remove, unused.
9154         * m/mips.h: Remove boilerplate comments and code for systems that
9155         do not use this file.
9156         (SIGN_EXTEND_CHAR):
9157         * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9158         * unexmips.c: Remove file, unused.
9160         * editfns.c (Fuser_full_name): Replace the only use of
9161         USER_FULL_NAME with its value.
9162         * config.in: Regenerate.
9164 2008-07-16  David Reitter  <david.reitter@gmail.com>
9166         * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9167         easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9169 2008-07-16  Glenn Morris  <rgm@gnu.org>
9171         * emacs.c (system-type): Doc fix.
9173 2008-07-15  Stefan Monnier  <monnier@iro.umontreal.ca>
9175         * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9176         If the cache doesn't work, let's fix it, rather than work around it.
9178 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
9180         * Makefile.in: Correct additions for nsfont.o in last commit.
9181         * nsfont.m: New file (forgot last commit).
9183 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
9185         * callproc.c (set_initial_environment): Initialize
9186         Vprocess_environment under CANNOT_DUMP (fixes crash when
9187         batch-compiling for bootstrap).
9189 2008-07-15  Chris Hall  <chris@web.workinglinux.com>  (tiny change)
9190             YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9192         (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9193         fix crash due to different init order.
9195 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
9197         Changes and additions for NeXTstep windowing system (Cocoa and
9198         GNUstep) support.
9200         * Makefile.in:
9201         * config.in: Support defines and build commands for NS port.
9202         * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9203         (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9204         * dispextern.h: Include nsgui.h and add needed typedefs under NS
9205         windowing.
9206         (struct face): Add synth_ital field.
9207         * dispnew.c: Include nsterm.h when compiling under NS windowing.
9208         (init_display): Initialize Vinitial_window_system to "ns" when so
9209         compiled.
9210         * emacs.c: Include GSConfig.h when compiling under GNUstep.
9211         (display_arg): Use under NS.
9212         (main): Under NS, allocate autorelease pool and handle command line
9213         args.  Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9214         (standard_args): Add NS-specific args.
9215         (shut_down_emacs): Shut down NS terminal if compiled under NS.
9216         * font.c (DEFAULT_ENCODING): New variable.
9217         (font_find_for_lface): Use it.
9218         (syms_of_font): Load syms_of_nsfont under NS.
9219         * font.h: Declare nsfont_driver when compiled under NS.
9220         * fontset.c: When compiling under NS, include nsterm.h.
9221         (fontset_from_font): Autoconstruct fontset under NS.
9222         * frame.c (various): Under NS, include nsterm.h, add Qns window system
9223         symbol, document and use it.
9224         (do_switch_frame): When for_deletion under Cocoa, add
9225         Fraise_frame(Qnil).
9226         (x_set_frame_parameters): Ensure font attribute changes are picked up.
9227         (x_get_arg): Allow "yes" and "no" as boolean values.
9228         (syms_of_frame): Declare Qns.  Init Vdefault_frame_scroll_bars to
9229         Qright under Cocoa.
9230         (focus-follows-mouse): Default to 0 under NS.
9231         * frame.h (enum output_method): Add output_ns.
9232         (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9233         (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9234         (FRAME_WINDOW_P): NS-specific definition.
9235         * fringe.c (max_used_fringe_bitmap): Make public.
9236         * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9237         (getloadavg): Use NeXT code under descendant OS's.
9238         * image.c (includes and header section, x_create_bitmap_from_data)
9239         (x_create_bitmap_from_file, free_bitmap_record, image_background)
9240         (image_background_transparent, x_clear_image_1)
9241         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9242         (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9243         (x_to_xcolors, x_from_xcolors, x_disable_image)
9244         (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9245         other GUIs, including XPM support using code originally written for
9246         Carbon GUI.
9247         (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9248         using NS API.
9249         (image_ascent): Use font metrics macros instead of direct struct field
9250         access.
9251         * keyboard.c (includes): Add nsterm.h when compiling under NS.
9252         (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9253         Also, handle NS as GTK for menu bar purposes.
9254         (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9255         toolkit where they differ.
9256         (parse_menu_item): Prefer keybindings using 'super' modifier.  Also,
9257         use cachelist, still needed under NS.
9258         * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9259         (struct widget_value): Define it here for menu.c.
9260         * keymap.c (includes): Include modifier internals.
9261         (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9262         NS.
9263         (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9264         support for preferring sequences using certain modifiers, specified by
9265         the FIRSTONLY argument.
9266         * lisp.h (hash_remove): Rename to avoid name clash when compiling
9267         under NS GNUstep implementation.
9268         (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9269         * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9270         * menu.c: Include nsterm.h under NS.
9271         (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9272         (free_menubar_widget_tree_value, update_submenu_strings)
9273         (find_and_call_menu_selection): Treat NS as X and NT.
9274         (find_and_return_menu_selection): New function, used for popup menus.
9275         * nsgui.h:
9276         * nsterm.h:
9277         * nsfns.m:
9278         * nsimage.m:
9279         * nsmenu.m:
9280         * nsselect.m:
9281         * nsterm.m: New files.
9282         * process.c (wait_reading_process_output): Under NS, call ns_select()
9283         instead of plain select().
9284         * syntax.c (char_quoted): Under NS, avoid a crash when called near
9285         beginning of buffer.
9286         * sysselect.h (init_process): Rename when compiling under Cocoa to
9287         avoid name conflict.
9288         * termhooks.h (display_info): Add ns_display_info to union.
9289         * terminal.c (Fterminal_live_p): Add ns to terminal types.
9290         * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9291         COCOA environment.
9292         * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9293         unexec() signature.  (Note, this will dump, but the resulting file
9294         crashes; unexosx is used instead; keeping around for reference and
9295         possible aid in getting dump working under GNUstep.)
9296         * w32gui.h (button_type, widget_value): Remove definitions (now in
9297         keyboard.h).
9298         * window.c: Include nsterm.h when compiling under NS.
9299         * xdisp.c (includes): Include nsterm.h when compiling under NS.
9300         (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9301         other GUI windowing systems.
9302         (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9303         GTK.
9304         (x_consider_frame_title): Under NS, set icon type and frame
9305         modified-state indicator; use ns_set_name_as_filename() when using
9306         formatted title.
9307         (update_window_cursor): Make public when compiling under NS.
9308         (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9309         (hourglass_atimer, Vhourglass_delay
9310         * xfaces.c (header section, init_frame_faces, clear_font_table)
9311         (defined_color, unload_color, x_face_list_fonts)
9312         (prepare_face_for_display): Add NS support parallel to other GUIs.
9313         Emulate GCs like other non-X GUIs.
9314         (split_font_name): Don't lowercase font name under NS.
9315         (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9316         under NS.
9317         * s/darwin.h: Add support for compilation under NS.
9319 2008-07-15  Jason Rumney  <jasonr@gnu.org>
9321         * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9322         (w32_show_hourglass): Rename from show_hourglass.
9323         (w32_hide_hourglass): Rename from hide_hourglass.
9324         (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9325         (Vhourglass_delay): Declare extern.
9326         (hourglass_started): Remove.
9328         * xdisp.c (Vhourglass_delay): Remove static.
9329         (hourglass_started, start_hourglass, cancel_hourglass):
9330         Don't include these versions on WINDOWSNT.
9332 2008-07-15  Adrian Robert  <Adrian.B.Robert@gmail.com>
9334         * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9335         variables (formerly in xfns.c).
9336         (show_hourglass, hide_hourglass): New prototypes (same).
9337         * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9338         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9339         in xfns.c).
9340         (syms_of_xdisp): Declare/initialize display-hourglass,
9341         hourglass-delay.  Initialize hourglass_atimer, hourglass_shown_p.
9342         (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9343         formerly in xfns.c.
9344         * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9345         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9346         (start_hourglass, cancel_hourglass): Remove.
9347         (show_hourglass, hide_hourglass): Remove prototypes and static
9348         modifiers.
9349         (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9350         hourglass_atimer, hourglass_shown_p declaration/initialization.
9351         * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9352         (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9353         (start_hourglass, cancel_hourglass): Remove.
9354         (show_hourglass, hide_hourglass): Remove prototypes and static
9355         modifiers.
9356         (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9357         hourglass_atimer, hourglass_shown_p declaration/initialization.
9358         * w32fns.c (display_hourglass_p, Vhourglass_delay)
9359         (DEFAULT_HOURGLASS_DELAY): Remove.
9360         (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9361         hourglass_shown_p declaration/initialization.
9363 2008-07-14  Jason Rumney  <jasonr@gnu.org>
9365         * w32fns.c (w32_get_arg): Remove wrapper function.
9366         (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9367         directly.
9368         (Fx_create_frame): Sync with xfns.c.  Use x_get_arg directly.
9370 2008-07-14  Kenichi Handa  <handa@m17n.org>
9372         * xfont.c (xfont_open): Add workaround for X's bug.
9374 2008-07-14  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
9376         * fontset.c: Include <stdio.h> unconditionally.
9378 2008-07-13  Michael Albinus  <michael.albinus@gmx.de>
9380         * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9381         for filtering.
9383 2008-07-13  Dan Nicolaescu  <dann@ics.uci.edu>
9385         * s/vms.h: Use __GNUC__ instead of _GNUC_.
9387         * m/macppc.h:
9388         * m/alpha.h: Use GNU_LINUX instead of LINUX.  Reorganize conditionals.
9390         * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9391         (SPECIAL_EMACS_INT):
9392         * m/ia64.h (SPECIAL_EMACS_INT):
9393         * m/amdx86-64.h (SPECIAL_EMACS_INT):
9394         * s/gnu.h (NLIST_STRUCT):
9395         * s/aix4-2.h (X11R5_INHIBIT_I18N):
9396         * s/gnu-linux.h (LINUX):
9397         * s/msdos.h (HAVE_FACES):
9398         * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9400         * systty.h:
9401         * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9402         anymore.
9404 2008-07-12  Dan Nicolaescu  <dann@ics.uci.edu>
9406         * syswait.h: Remove old if 0 code.  Do not define WAITTYPE, it was
9407         always defined as int.
9409         * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9410         * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9411         * s/gnu-linux.h (HAVE_WAIT_HEADER):
9412         * s/freebsd.h (HAVE_WAIT_HEADER):
9413         * s/bsd-common.h (HAVE_UNION_WAIT):
9414         * s/aix4-2.h (HAVE_WAIT_HEADER):
9415         * m/mips.h (HAVE_UNION_WAIT):
9416         * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9417         (COFF, static): Do not define, they are undefined later in the file.
9419         * process.c (update_status): Don't use a union.
9420         (status_convert):
9421         (sigchld_handler): Use int instead of WAITTYPE.
9423 2008-07-12  Chong Yidong  <cyd@stupidchicken.com>
9425         * indent.c (Fvertical_motion): Restore hscroll before moving to
9426         goal column.
9428 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
9430         * lisp.h: Remove left over code.
9432 2008-07-11  Andreas Schwab  <schwab@suse.de>
9434         * lisp.h: Fix logic in last change.
9436         * menu.h: New file.
9437         * menu.c: Include it.
9438         * xmenu.c: Likewise.
9439         * Makefile.in: Update dependencies.
9441 2008-07-11  Kenichi Handa  <handa@m17n.org>
9443         * fontset.c (fontset_from_font): Cancel the previous change.
9445 2008-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
9447         * lisp.h:
9448         * w32heap.c:
9449         * emacs.c:
9450         * alloc.c: Replace all references of NO_UNION_TYPE with
9451         USE_LISP_UNION_TYPE.
9453         * m/xtensa.h (NO_UNION_TYPE):
9454         * m/vax.h (NO_UNION_TYPE):
9455         * m/template.h (NO_UNION_TYPE):
9456         * m/sparc.h (NO_UNION_TYPE):
9457         * m/mips.h (NO_UNION_TYPE):
9458         * m/macppc.h (NO_UNION_TYPE):
9459         * m/m68k.h (NO_UNION_TYPE):
9460         * m/iris4d.h (NO_UNION_TYPE):
9461         * m/intel386.h (NO_UNION_TYPE):
9462         * m/ibms390x.h (NO_UNION_TYPE):
9463         * m/ibms390.h (NO_UNION_TYPE):
9464         * m/ibmrs6000.h (NO_UNION_TYPE):
9465         * m/ia64.h (NO_UNION_TYPE):
9466         * m/hp800.h (NO_UNION_TYPE):
9467         * m/arm.h (NO_UNION_TYPE):
9468         * m/amdx86-64.h (NO_UNION_TYPE):
9469         * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9470         defining it the same.
9472 2008-07-10  Chong Yidong  <cyd@stupidchicken.com>
9474         * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9476 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
9478         * fileio.c:
9479         * sysdep.c
9480         * systty.h:
9481         * m/ibmrs6000.h:
9482         * m/iris4d.h:
9483         * s/aix4-2.h:
9484         * s/freebsd.h:
9485         * s/gnu-linux.h:
9486         * s/hpux10-20.h:
9487         * s/hpux11.h:
9488         * s/netbsd.h:
9489         * s/sol2-3.h:
9490         * s/sol2-4.h:
9491         * s/sol2.h:
9492         * s/usg5-4.h:
9493         * s/vms.h: Remove references to unused variables.
9495 2008-07-10  Andreas Schwab  <schwab@suse.de>
9497         * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9498         pattern before matching the generic family.
9500 2008-07-10  Dan Nicolaescu  <dann@ics.uci.edu>
9502         * unexec.c:
9503         * s/vms.h:
9504         * s/usg5-4-2.h:
9505         * s/sol2-5.h:
9506         * s/freebsd.h:
9507         * s/darwin.h: Remove dead code.
9509         * m/template.h:
9510         * m/sparc.h:
9511         * m/mips.h:
9512         * m/m68k.h:
9513         * m/iris4d.h:
9514         * m/intel386.h:
9515         * m/ibms390x.h:
9516         * m/ibms390.h:
9517         * m/ia64.h:
9518         * m/hp800.h:
9519         * m/arm.h:
9520         * m/amdx86-64.h: Remove dead code and references to unused
9521         and compiler defined symbols.
9523         * unexmips.c:
9524         * unexelf.c: Remove references to desupported systems.
9526         * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9528         * m/powermac.h: Remove boilerplate comments.
9529         (NO_REMAP): Remove unused definition.
9531         * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9532         define them.
9534 2008-07-10  Kenichi Handa  <handa@m17n.org>
9536         * xfont.c (xfont_open): Log the reason of failure.
9538 2008-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
9540         * fontset.c (fontset_get_font_group):
9541         * font.c (font_check_otf): Specify argument types.
9543 2008-07-09  Kenichi Handa  <handa@m17n.org>
9545         * coding.c (detect_coding_utf_8): Set detect_info->found only when
9546         non-ASCII char is found.
9548         * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9549         (reorder_font_vector): Change the arg preferred_family to font.
9550         Prefer the spec matching with font.
9551         (fontset_get_font_group): New function.
9552         (fontset_find_font): Change the format of an element of a realized
9553         fontset.  Use fontset_get_font_group.
9554         (fontset_font): Try the current fontset, the default fontset, the
9555         fallbacks of the current fontset, and the fallbacks of the default
9556         fontset in this order.
9557         (face_for_char): Delete the shortcut to use the current font.
9558         (fontset_from_font): Don't set fonts for Latin in the fontset.
9560         * font.h (font_make_object, font_match_p): Adjust prototypes.
9562         * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9564         * font.c (font_make_object): New arg entity and pixelsize.
9565         (font_check_otf_features, font_check_otf): New functions.
9566         (font_match_p): Check :lang, :script, and :otf properties.
9568         * xfont.c (xfont_open): Adjust it for the change of
9569         font_make_object.
9570         (xfont_text_extents): Fix initial setting of metrics.
9572         * ftfont.c (struct ftfont_info): New member index, delete member
9573         fc_charset_idx.  Make the member order compatible with struct
9574         xftfont_info.
9575         (fc_charset_table): Change charset names to registry names.
9576         (ftfont_pattern_entity): Delete the args registry and
9577         fc_charset_idx.  Change the value of :font-entity property
9578         to (FONTNAME . INDEX).  Always set :registry property to
9579         `iso10646-1'.
9580         (struct ftfont_cache_data): New struct.
9581         (ftfont_lookup_cache): New arg for_face.
9582         (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9583         (ftfont_driver): Set the member otf_capability.
9584         (ftfont_get_charset): Adjust it for the change of
9585         fc_charset_table.
9586         (OTF_TAG_SYM): New macro.
9587         (ftfont_spec_pattern): Delete the arg fc_charset_idx.  Adjust it
9588         for the change of fc_charset_table.
9589         (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9590         ftfont_pattern_entity.  Add FC_INDEX to objset.
9591         (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9592         and ftfont_pattern_entity.
9593         (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9594         font_make_object, struct ftfont_info.
9595         (ftfont_has_char): Use ftfont_get_fc_charset.
9596         (ftfont_otf_features, ftfont_otf_capability): New functions.
9597         (ftfont_shape): Use ftfont_get_otf.
9598         (ftfont_text_extents): Fix initial setting of metrics.
9600         * xftfont.c (struct xftfont_info): New member ft_size.  Make the
9601         member order compatible with struct ftfont_info.
9602         (xftfont_open): Add FC_CHARSET to the pattern.  Set
9603         xftfont_info->ft_size.  Don't unlock the face.  Check BDF
9604         properties if appropriate.
9605         (xftfont_close): Unlock the face.
9606         (xftfont_anchor_point, xftfont_shape): Deleted.
9607         (syms_of_xftfont): Don't set members anchor_point and shape of
9608         xftfont_driver.
9610         * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9611         font_make_object.
9613         * w32font.c (w32font_open): Adjust it for the change of
9614         font_make_object.
9615         (w32font_open_internal): Don't set properties of font_object here.
9617 2008-07-08  Chong Yidong  <cyd@stupidchicken.com>
9619         * macfns.c (x_create_tip_frame):
9620         * w32fns.c (x_create_tip_frame):
9621         * xfns.c (x_create_tip_frame): Pass parameter argument to
9622         face-set-after-frame-default.
9624         * xfaces.c (Finternal_merge_in_global_face): Save merged
9625         attributes for the default face back into the face vector.
9627 2008-07-08  Andreas Schwab  <schwab@suse.de>
9629         * fontset.h: Declare fontset_from_font.  Don't declare
9630         new_fontset_from_font and fontset_from_font_name.
9631         * xterm.c: Include "fontset.h".
9632         * Makefile.in (xterm.o): Update dependencies.
9634 2008-07-08  Glenn Morris  <rgm@gnu.org>
9636         * m/sparc.h: Define __sparc__ rather than sparc.  (Bug#507.)
9637         * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9639 2008-07-07  Chong Yidong  <cyd@stupidchicken.com>
9641         * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9642         (x_set_frame_parameters): Don't bind it.
9644 2008-07-07  Juanma Barranquero  <lekktu@gmail.com>
9646         * w32fns.c (map_w32_filename): Declare extern.
9648 2008-07-07  Jason Rumney  <jasonr@gnu.org>
9650         * w32term.c (WS_EX_LAYERED): Define if not already.
9652 2008-07-06  Chong Yidong  <cyd@stupidchicken.com>
9654         * xfaces.c (set_font_frame_param): Don't try to set the font
9655         parameter if it is still unspecified in the lface.
9657 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
9659         * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9660         face if it didn't already exist.
9662         * xdisp.c (try_window_id): Give up if word-wrapping is on.
9664 2008-07-05  Andreas Schwab  <schwab@suse.de>
9666         * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9668 2008-07-05  Chong Yidong  <cyd@stupidchicken.com>
9670         * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9671         word-wrapping.
9672         (IT_DISPLAYING_WHITESPACE): New macro.
9673         (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9674         when word-wrapping.  Simplify word-wrapping logic.  Use correct
9675         pixel positions when saving copies of the iterator.
9676         (display_line): Use proper wrap point if the last character on a
9677         line was preceded by whitespace.
9679 2008-07-04  Stefan Monnier  <monnier@iro.umontreal.ca>
9681         * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9683 2008-07-04  Kenichi Handa  <handa@m17n.org>
9685         * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9687         * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9689 2008-07-02  Jason Rumney  <jasonr@gnu.org>
9691         * xfns.c (syms_of_xfns): Only define x-select-font when both
9692         HAVE_FREETYPE and USE_GTK.
9694         * xdisp.c (next_element_from_display_vector): Move assignment out
9695         of if statement.
9697 2008-07-02  Toru Tsuneyoshi  <t_tuneyosi@hotmail.com>
9699         * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9701         * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9702         (syms_of_fileio): Initialize and export them.
9703         (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9705         * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9706         (Fsystem_move_file_to_trash): New function.
9707         (syms_of_w32fns): Export it to lisp.
9709 2008-07-01  Jason Rumney  <jasonr@gnu.org>
9711         * w32font.c (w32font_text_extents): Don't count overhang as part
9712         of width.
9714 2008-06-30  Miles Bader  <miles@gnu.org>
9716         * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9717         Add `avoid_cursor_p' field.
9719         * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9720         (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9721         (append_glyph, append_composite_glyph, produce_image_glyph)
9722         (append_stretch_glyph): Initialize avoid_cursor_p.
9723         (get_it_property): Rename from `get_line_height_property'.
9724         (x_produce_glyphs): Use get_it_property.
9725         (handle_line_prefix, push_display_prop): New functions.
9726         (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9727         (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9728         New variables.
9729         (syms_of_xdisp): Initialize them.
9731 2008-06-30  Kenichi Handa  <handa@m17n.org>
9733         * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9734         XftDefaultSubstitute (they are called in XftFontMatch).
9735         (xftfont_open): Fix args to ftfont_font_format.
9737         * ftfont.c (fc_charset_table): New member lang.
9738         (ftfont_resolve_generic_family): New arg pattern.
9739         (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9740         (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9741         (ftfont_open): Fix args to ftfont_font_format.
9742         (ftfont_font_format): New arg filename.
9744 2008-06-30  Chong Yidong  <cyd@stupidchicken.com>
9746         * xfaces.c (Finternal_merge_in_global_face): If default face was
9747         modified, realize it again.  Update the font face attribute.
9749 2008-06-29  Jason Rumney  <jasonr@gnu.org>
9751         * w32term.c (x_set_frame_alpha): Fix logic.
9753 2008-06-29  Kenichi Handa  <handa@m17n.org>
9755         * fontset.c (Finternal_char_font): Return font-object instead of
9756         font-name.
9758         * composite.c (get_composition_id): Fix the width calculation for TAB.
9760 2008-06-29  Stefan Monnier  <monnier@iro.umontreal.ca>
9762         * indent.c (Fvertical_motion): Properly handle float column arg.
9764 2008-06-28  Jason Rumney  <jasonr@gnu.org>
9766         * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9767         (pfnSetLayeredWindowAttributes): New function pointer.
9768         (w32_initialize): Initialize it when supported.
9769         (x_set_frame_alpha): New function.
9771         * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9772         (w32_frame_parm_handlers): Set alpha handler.
9774         * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9776 2008-06-27  Jason Rumney  <jasonr@gnu.org>
9778         * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9779         (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9780         (w32_to_x_charset, x_to_w32_charset)
9781         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9782         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9783         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9784         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9785         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9786         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9787         (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9788         (Qw32_charset_unicode): Remove.
9789         (syms_of_w32fns): Update for above changes.
9791         * w32font.c (w32_to_x_charset, x_to_w32_charset)
9792         (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9793         (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9794         (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9795         (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9796         (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9797         (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9798         (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9799         (syms_of_w32font): Update for above changes.
9801 2008-06-27  Dan Nicolaescu  <dann@ics.uci.edu>
9803         * s/usg5-4.h: Fix previous change: keep the correct branch of a
9804         removed #if.
9805         (USG_SHARED_LIBRARIES): Remove duplicate definition.
9807 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
9808             Eli Zaretskii  <eliz@gnu.org>
9810         * makefile.w32-in (LOCAL_FLAGS):
9811         Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9813         * sysdep.c (_spawnlp, _getpid):
9814         Declare with explicit _cdecl instead of _CRTAPI1.
9816         * editfns.c (Fget_internal_run_time):
9817         Check for WINDOWSNT with #ifdef, not #if.
9819 2008-06-26  Jason Rumney  <jasonr@gnu.org>
9821         * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9823         * w32term.c (x_draw_glyph_string_foreground)
9824         (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9825         Use FONT_HANDLE macro.
9826         (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9828         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9829         (uniscribe_encode_char): Use FONT_HANDLE macro.
9831         * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9832         (w32font_text_extents): Use precast w32_font.
9833         (w32font_close): Free cached metrics.
9834         (w32font_open_internal): Allocate space for name on stack.
9836 2008-06-26  Chong Yidong  <cyd@stupidchicken.com>
9838         * xdisp.c (extend_face_to_end_of_line): Fix last change.
9840 2008-06-26  Jason Rumney  <jasonr@gnu.org>
9842         * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9843         (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9845 2008-06-26  Juanma Barranquero  <lekktu@gmail.com>
9847         * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9849 2008-06-26  Jason Rumney  <jasonr@gnu.org>
9851         * w32bdf.c, w32bdf.h: Remove obsolete files.
9853         * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9855         * w32gui.h: Don't include w32bdf.h.
9856         (XCharStruct, enum w32_char_font_type, W32FontStruct):
9857         Remove obsolete font support.
9859         * w32font.h (struct w32font_info): Remove compat_w32_font.
9860         Add hfont member.
9861         (FONT_COMPAT): Remove obsolete macro.
9863         * w32font.c (w32font_close): Remove compat code.  Delete hfont member.
9864         (w32font_encode_char, w32font_text_extents): Use new hfont member.
9865         (w32font_open_internal): Remove compat code.  Set new hfont member.
9866         (Fx_select_font): Use new hfont member.
9868         * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9869         (uniscribe_encode_char): Use new hfont member.
9871         * w32term.c (x_draw_glyph_string_foreground)
9872         (x_draw_composite_glyph_string_foreground): Use new hfont member.
9873         (x_draw_glyph_string): Use metrics in w32font_info.
9875 2008-06-26  Kenichi Handa  <handa@m17n.org>
9877         * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9879 2008-06-26  Dan Nicolaescu  <dann@ics.uci.edu>
9881         * unexnext.c:
9882         * m/ews4800.h:
9883         * m/hp9000s300.h:
9884         * m/ibm370aix.h:
9885         * m/mips-siemens.h:
9886         * m/ncr386.h:
9887         * m/next.h:
9888         * m/pmax.h:
9889         * m/powerpcle.h:
9890         * m/tandem-s2.h:
9891         * s/386bsd.h:
9892         * s/bsd386.h:
9893         * s/bsd4-1.h:
9894         * s/bsd4-2.h:
9895         * s/bsdos2-1.h:
9896         * s/bsdos2.h:
9897         * s/bsdos3.h:
9898         * s/bsdos4.h:
9899         * s/nextstep.h:
9900         * s/ultrix4-3.h:
9901         * s/usg5-0.h:
9902         * s/usg5-2-2.h:
9903         * s/usg5-2.h:
9904         * s/usg5-4-3.h:
9905         * s/ux4800.h:
9906         * s/uxpds.h:
9907         * s/uxpv.h: Remove support for obsolete systems.
9908         * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9909         Remove, insert contents in s/hpux10-20.h.
9910         * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9911         Remove, insert contents in s/aix4-2.h.
9912         * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9913         * s/bsd4-3.h: Rename to ...
9914         * s/bsd-common.h: ... this.
9915         * data.c:
9916         * doc.c:
9917         * ecrt0.c:
9918         * emacs.c:
9919         * fileio.c:
9920         * floatfns.c:
9921         * keyboard.c:
9922         * mem-limits.h:
9923         * print.c:
9924         * process.c:
9925         * sysdep.c:
9926         * syssignal.h:
9927         * systty.h:
9928         * syswait.h:
9929         * term.c:
9930         * unexec.c:
9931         * unexelf.c:
9932         * unexhp9k800.c:
9933         * m/hp800.h:
9934         * m/ibmrs6000.h:
9935         * m/mips.h:
9936         * m/vax.h:
9937         * s/darwin.h:
9938         * s/freebsd.h:
9939         * s/gnu.h:
9940         * s/ms-w32.h:
9941         * s/msdos.h:
9942         * s/netbsd.h:
9943         * s/template.h: Remove references to obsolete variables.
9945         * Makefile.in: Add dependencies for all unexec files.
9946         (admindir): Remove unused variable.
9947         (UNEXEC_SRC): Remove references.
9949 2008-06-25  Chong Yidong  <cyd@stupidchicken.com>
9951         * xfns.c (x_default_font_parameter): If Xft is available, first
9952         try Monospace-12 for the default font.
9954 2008-06-25  Jason Rumney  <jasonr@gnu.org>
9956         * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9958 2008-06-25  Stefan Monnier  <monnier@iro.umontreal.ca>
9960         * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9962         * buffer.c (syms_of_buffer): Remove default-word-wrap.
9964 2008-06-25  Juanma Barranquero  <lekktu@gmail.com>
9966         * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9967         <scroll-conservatively>: Fix typo in docstring.
9969         * xselect.c (Fx_send_client_event): Doc fix.
9971 2008-06-25  Kenichi Handa  <handa@m17n.org>
9973         * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9975         * font.c (font_parse_fcname): Remove unused variables.
9976         (font_sort_entites): Delete the arg SPEC.  Caller changed.
9977         Fix for the case of ! best_only.
9978         (font_delete_unmatched): Check DPI and AVGWIDTH too.
9980         * lisp.h (Fstring_to_unibyte): EXFUN it.
9982         * character.h (str_to_unibyte): Extern it.
9984         * character.c (str_to_unibyte): New function.
9986         * fns.c (Fstring_to_unibyte): New function.
9987         (syms_of_fns): Defsubr it.
9989 2008-06-24  Kenichi Handa  <handa@m17n.org>
9991         * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9992         DPI too.
9993         (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9995 2008-06-24  Andreas Schwab  <schwab@suse.de>
9997         * Makefile.in (${lispsource}loaddefs.el): Rename from
9998         ../lisp/loaddefs.el.
9999         (bootstrap-clean): Do what distclean does but don't remove
10000         Makefile.
10001         (distclean): Depend on bootstrap-clean and remove Makefile.
10003 2008-06-24  Chong Yidong  <cyd@stupidchicken.com>
10005         * buffer.h (struct buffer): New member word_wrap.
10007         * buffer.c (syms_of_buffer): New variables default-word-wrap and
10008         word-wrap.
10009         (init_buffer_once): Initialize them.
10011         * dispextern.h (struct it): Replace bool truncate_lines_p with a
10012         line_wrap enum possessing three possible values.
10014         * termopts.h: Replace truncate_partial_width_windows with
10015         Vtruncate_partial_width_windows.
10017         * dispnew.c (direct_output_for_insert): Avoid direct output when
10018         inserting a space with word wrap on.
10020         * indent.c (compute_motion): Obey integer values of
10021         truncate-partial-width-windows.
10023         * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10024         replacing truncate_partial_width_windows.
10025         (init_iterator): If Vtruncate_partial_width_windows is an integer,
10026         truncate only if the window width is below that integer.
10027         (start_display, resize_mini_window, produce_stretch_glyph)
10028         (display_string, move_it_in_display_line_to): Use line_wrap.
10029         (back_to_previous_visible_line_start, reseat_1): Reset
10030         string_from_display_prop_p.
10031         (display_line): Extend default face to end of line when wrapping.
10033 2008-06-24  Kim F. Storm  <storm@cua.dk>
10035         * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10036         to wrap continued lines at word boundaries.
10038 2008-06-24  Jason Rumney  <jasonr@gnu.org>
10040         * font.c (Ffont_face_attributes): Multiply pixel size before point
10041         conversion to avoid multiplying rounding error.
10043 2008-06-23  Jason Rumney  <jasonr@gnu.org>
10045         * w32term.c (x_draw_glyph_string_background)
10046         (x_draw_glyph_string): Remove old bdf font code.
10048         * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10050 2008-06-22  Kenichi Handa  <handa@m17n.org>
10052         * font.c (font_find_for_lface): Try the adstyle specified in
10053         the property of LFACE_FONT of LFACE (if any).
10055 2008-06-21  Seiji Zenitani  <zenitani@mac.com>
10056             Ryo Yoshitake  <ryo@shiftmode.net>
10058         * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10060 2008-06-22  Stefan Monnier  <monnier@iro.umontreal.ca>
10062         * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10063         Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10064         (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10065         (witness-emacs): Remove.
10066         (lisp, shortlisp): Move loaddefs.el earlier.
10067         (mostlyclean): Forget about witness-emacs.
10069 2008-06-22  Glenn Morris  <rgm@gnu.org>
10071         * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10072         (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10074 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10076         * Makefile.in (PRECOMP): Remove.
10077         (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10078         (witness-emacs): Run `compile-first'.
10079         (.el.elc): Use the new compile-onefile target.
10081 2008-06-21  Kenichi Handa  <handa@m17n.org>
10083         * xftfont.c (xftfont_open): Handle QCembolden only when
10084         FC_EMBOLDEN is defined.
10086 2008-06-21  Andreas Schwab  <schwab@suse.de>
10088         * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10089         (.el.elc): Likewise.
10091 2008-06-21  Miles Bader  <miles@gnu.org>
10093         * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10094         build dir, not the lisp source dir.
10096 2008-06-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10098         * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10099         (bootstrapclean): Remove.
10100         (.el.elc): New rule.
10101         (PRECOMP): New var.
10102         (../lisp/subdirs.el): Remove.
10103         (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10104         (witness-emacs): New target.
10105         (mostlyclean): Remove witness-emacs as well.
10106         (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10107         Add witness-emacs dependency.
10109 2008-06-20  Chong Yidong  <cyd@stupidchicken.com>
10111         * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10112         defined by the font.
10114 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10116         * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10117         (bootstrap-clean): New target that keeps TAGS around.
10118         (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10119         (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10121 2008-06-20  Jason Rumney  <jasonr@gnu.org>
10123         * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10124         Remove obsolete font code.
10126         * w32font.c (font_matches_spec): Use csb bitfield from font signature
10127         to determine language support.
10129 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10131         * sysdep.c (cfsetspeed): New fun extracted from the code.
10132         (cfmakeraw): Move before first use.
10134 2008-06-20  Angelo Graziosi  <angelo.graziosi@alice.it>  (tiny change)
10136         * sysdep.c (cfmakeraw): Provide fallback implementation.
10137         (serial_configure): Provide fallback implementation of cfsetspeed.
10139 2008-06-20  Kenichi Handa  <handa@m17n.org>
10141         * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10142         the pattern.
10144         * fontset.c (fontset_from_font): Copy font_spec before changing
10145         the elements.
10147         * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10149 2008-06-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10151         * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10152         for explicit `font' parameters.
10154         * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10156 2008-06-19  Kenichi Handa  <handa@m17n.org>
10158         * frame.c: Include <ctype.h>.
10159         (x_set_font_backend): Allow spacing characters in the X resource
10160         for FontBackend.
10162 2008-06-19  Stefan Monnier  <monnier@iro.umontreal.ca>
10164         * w32fns.c, xfns.c (Qfont_param): New var.
10165         (syms_of_w32fns): Initialize it.
10166         (x_default_font_parameter): Record explicit `font' into
10167         `font-parameter'.
10169 2008-06-18  Kenichi Handa  <handa@m17n.org>
10171         * font.c (font_parse_xlfd): Fix previous change.
10172         (font_parse_fcname): Don't use :fc-unknown-spec.
10173         (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10174         (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10175         (font_add_log): Prepend the driver name to the resulting fonts.
10177         * ftfont.c (ftfont_pattern_entity): New arg extra.  Caller changed.
10178         (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10179         (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10181         * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10182         (QCembolden): New variables.
10183         (syms_of_xftfont): DEFSYM them.
10184         (xftfont_open): Call XftFontMatch.  Don't trust the result of
10185         XftTextExtents8 if the pixel_size is less than 5.
10187 2008-06-18  Andreas Schwab  <schwab@suse.de>
10189         * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10190         (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10192 2008-06-18  Jason Rumney  <jasonr@gnu.org>
10194         * w32font.c (w32font_list, w32font_match): Add logging.
10196         * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10198 2008-06-17  Chong Yidong  <cyd@stupidchicken.com>
10200         * font.c (font_parse_fcname): Store divider characters for
10201         unknown-spec list.  For known key symbols, intern using correct
10202         symbol name.
10204 2008-06-17  Kenichi Handa  <handa@m17n.org>
10206         * xfaces.c (realize_default_face): If the frame is not on window
10207         system, set the fontset of face to nil.
10209 2008-06-17  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
10211         * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10213 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
10215         * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10216         (build_font_name_from_vector): Delete externs.
10218         * xfaces.c (struct font_name): Don't declare.
10220 2008-06-16  Stefan Monnier  <monnier@iro.umontreal.ca>
10222         * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10224 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
10226         * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10228 2008-06-16  Juanma Barranquero  <lekktu@gmail.com>
10230         * font.c (Ffont_spec): Fix usage in docstring.
10231         (Ffont_face_attributes): Doc fix.
10233 2008-06-16  Andreas Schwab  <schwab@suse.de>
10235         * font.c (Ffont_face_attributes): Fix definition.
10237 2008-06-16  Jason Rumney  <jasonr@gnu.org>
10239         * font.h (font_style_symbolic_from_value): Remove.
10241         * font.c (font_style_symbolic_from_value): Remove.
10242         (font_style_symbolic): Revert to pre 2008-06-13 version.
10244         * w32font.c (w32_to_fc_weight): New function.
10245         (w32font_full_name, logfont_to_fcname): Use it.
10247 2008-06-16  Kenichi Handa  <handa@m17n.org>
10249         * font.c (font_check_object): Delete it.
10250         (font_clear_cache): Check if a font-object is alive.
10251         (font_open_entity): Likewise.  Set FONT_OBJLST_INDEX of a
10252         font-object to nil.
10253         (font_close_object): Don't check FONT_CLOSE_OBJECT.
10254         (font_at): Don't call font_check_object.
10255         (Ffont_get): Return a symbol for :weight, :slant, and :width.
10257 2008-06-16  Katsumi Yamaoka  <yamaoka@jpl.org>
10259         * puresize.h (BASE_PURESIZE): Increase to 1230000.
10261 2008-06-16  Chong Yidong  <cyd@stupidchicken.com>
10263         * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10265 2008-06-15  Chong Yidong  <cyd@stupidchicken.com>
10267         * font.c (font_parse_fcname): Only one decimal point.
10268         (font_unparse_fcname): Handle data in family and foundry indices
10269         as symbols, not strings.
10270         (font_unparse_gtkname, Ffont_face_attributes): New functions.
10272         * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10274         * font.h (font_unparse_gtkname): Add prototype.
10276 2008-06-15  Naohiro Aota  <nao.aota@gmail.com>  (tiny change)
10278         * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10280 2008-06-15  Andreas Schwab  <schwab@suse.de>
10282         * font.c (font_update_drivers): Fix crash when no drivers match.
10284 2008-06-15  Stefan Monnier  <monnier@iro.umontreal.ca>
10286         * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10287         * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10289 2008-06-14  Stefan Monnier  <monnier@iro.umontreal.ca>
10291         * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10293 2008-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
10295         * process.c (Fserial_process_configure, Fprocess_send_eof):
10296         Use EQ to compare Lisp_Objects.
10298 2008-06-13  Jason Rumney  <jasonr@gnu.org>
10300         * w32fns.c (Fw32_select_font): Remove old font API function.
10302         * w32font.c (logfont_to_fcname): New function.
10303         (Fx_select_font): New font dialog function compatible with
10304         GTK/fontconfig version.
10306         * font.c (font_style_symbolic_from_value): New function.
10307         (font_style_symbolic): Use it.
10309         * font.h (font_style_symbolic_from_value): Declare new function.
10311 2008-06-13  Juanma Barranquero  <lekktu@gmail.com>
10313         * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10314         <font-width-table>: Fix typos in docstrings.
10316 2008-06-13  Daniel Engeler  <engeler@gmail.com>
10318         These changes add serial port access.
10319         * process.c: Add HAVE_SERIAL.
10320         (Fdelete_process, Fprocess_status, Fset_process_buffer)
10321         (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10322         (list_processes_1, select_wrapper, Fstop_process)
10323         (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10324         (status_notify): Modify to handle serial processes.
10325         [HAVE_SERIAL] (Fserial_process_configure)
10326         [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10327         New functions.
10328         * process.h (struct Lisp_Process): Add `type'.
10329         * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10330         New functions.
10331         * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10332         serial ports.
10333         (serial_open, serial_configure): New functions.
10334         * w32.h: Add FILE_SERIAL.
10335         (struct _child_process): Add ovl_read, ovl_write.
10337 2008-06-13  Kenichi Handa  <handa@m17n.org>
10339         * dispextern.h (enum lface_attribute_index): New member
10340         LFACE_FOUNDRY_INDEX.
10342         * font.c (font_score): Delete arg alternate_families.  Check only
10343         weight, slant, width, and size.  Ignore the difference of alias
10344         style symbols.
10345         (font_sort_entites): Adjust for the above change.  Reflect the
10346         order of font-driver to scores.
10347         (font_list_entities): Don't check alternate_familes here.
10348         (font_clear_prop): Handle foundry.
10349         (font_update_lface): Don't parse "foundry-family" form here.
10350         Handle FONT_FOUNDRY_INDEX.
10351         (font_find_for_lface): Likewise.  Handle alternate families here.
10352         If registry is nil, try iso8859-1 and ascii-0.
10353         (font_open_for_lface): Pay attention to size in ENTITY.
10354         (font_open_by_name): Simplify by calling font_load_for_lface.
10355         (free_font_driver_list): Delete it.
10356         (font_update_drivers): Preserve the order of backends.
10357         (syms_of_font): Setting of sort_shift_bits adjusted for the change
10358         of font_score and font_sort_entites.
10359         (font_update_sort_order): Likewise.
10361         * xfaces.c (LFACE_FOUNDRY): New macro.
10362         (check_lface_attrs): Check foundry.
10363         (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10364         (merge_face_vectors): Check foundry.
10365         (merge_face_ref): Likewise.
10366         (Finternal_set_lisp_face_attribute): Likewise.
10367         (x_update_menu_appearance): Likewise.
10368         (Finternal_get_lisp_face_attribute): Likewise.
10369         (lface_hash): Likewise.
10370         (lface_same_font_attributes_p): Likewise.
10371         (x_supports_face_attributes_p): Likewise.
10372         (tty_supports_face_attributes_p): Likewise.
10373         (Finternal_set_alternative_font_family_alist): Intern strings.
10374         (Finternal_set_alternative_font_registry_alist): Downcase strings.
10375         (realize_default_face): Set LFACE_FOUNDRY (lface).
10377         * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10378         font-driver at first.
10380         * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10382 2008-06-12  Emanuele Giaquinta  <emanuele.giaquinta@gmail.com>  (tiny change)
10384         * lread.c (Fload): Use xfree, not free on saved_doc_string.
10386 2008-06-12  Jim Meyering  <meyering@redhat.com>
10388         Make unexec_free handle NULL the same way free does.
10389         * unexmacosx.c (unexec_free): Ignore a NULL argument.
10391 2008-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
10393         * character.h (CHAR_TO_BYTE_SAFE): New macro.
10394         * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10395         * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10396         (WEAK_ALIAS): Simplify.
10397         * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10398         when searching a unibyte buffer.
10400 2008-06-12  Chong Yidong  <cyd@stupidchicken.com>
10402         * xfns.c (Fx_select_font): Rename from x-font-dialog.
10404 2008-06-12  Juanma Barranquero  <lekktu@gmail.com>
10406         * w32font.c: Include ctype.h.
10408 2008-06-11  Jason Rumney  <jasonr@gnu.org>
10410         * w32font.c (w32font_encode_char): Detect missing glyphs that are
10411         misreported as space.
10412         (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10413         as aliases for registry iso10646-1.
10415 2008-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10417         * buffer.c (clone_per_buffer_values): Skip `name'.
10419 2008-06-11  Chong Yidong  <cyd@stupidchicken.com>
10421         * font.c (font_parse_fcname): Fix last change; accept decimal
10422         points in font size.
10424 2008-06-10  Jason Rumney  <jasonr@gnu.org>
10426         * w32uniscribe.c (add_opentype_font_name_to_list):
10427         Skip non unicode fonts.
10429 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
10431         * xfns.c (Fx_font_dialog): New function.
10433         * gtkutil.c (xg_dialog_response_cb): Rename from
10434         xg_file_response_callback.
10435         (pop_down_dialog): Rename from pop_down_file_dialog.
10436         (xg_get_file_name): Callers changed.
10437         (xg_get_font_name): New function.
10439         * gtkutil.h (xg_get_font_name): Insert prototype.
10441 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10443         * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10444         x_underline_minimum_display_offset.
10445         (syms_of_xdisp): Declare it here rather than in xterm.c.
10446         * dispextern.h (underline_minimum_offset): Declare it.
10447         * w32term.c (x_draw_glyph_string): Use it.
10448         * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10449         (syms_of_xterm): Don't declare it any more.
10450         (x_draw_glyph_string): Adjust to the new name.
10452 2008-06-10  David De La Harpe Golden  <david@harpegolden.net>
10454         * xterm.c (x_underline_minimum_display_offset): New var.
10455         (x_draw_glyph_string): Use it.
10456         (syms_of_xterm): Declare it.
10458 2008-06-10  Chong Yidong  <cyd@stupidchicken.com>
10460         * font.c (font_parse_fcname): Accept GTK-style font names too.
10462 2008-06-10  Stefan Monnier  <monnier@iro.umontreal.ca>
10464         * dired.c (file_name_completion): Don't return t if the match is exact
10465         but with different capitalization.
10466         * minibuf.c (Ftry_completion): Simplify.
10468         * window.c (Vwindow_point_insertion_type): New var.
10469         (set_window_buffer): Use it.
10470         (syms_of_window): Init and export it to Lisp.
10472 2008-06-10  Kenichi Handa  <handa@m17n.org>
10474         * font.h (font_intern_prop): Prototype adjusted.
10476         * font.c (font_intern_prop): New arg force_symbol.
10477         (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10478         Adjust for the change of font_intern_prop.
10480         * ftfont.c (ftfont_pattern_entity):
10481         * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10482         (w32_registry):
10483         * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10484         the change of font_intern_prop.
10486 2008-06-09  Juanma Barranquero  <lekktu@gmail.com>
10488         * w32menu.c (digest_single_submenu): Declare extern.
10490 2008-06-09  Jason Rumney  <jasonr@gnu.org>
10492         * w32term.c (x_make_frame_visible): Use alternate restore flags.
10494         * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10495         (parse_single_submenu): Remove.
10496         (digest_single_submenu): Remove.
10497         (syms_of_w32menu): Don't initialise variables that have moved
10498         to menu.c.
10499         (set_frame_menubar): Sync with version in xmenu.c.
10500         (w32_menu_show): Sync with xmenu_show in xmenu.c.
10502         * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10503         Make static again.
10505 2008-06-09  Jason Rumney  <jasonr@gnu.org>
10507         Changes to w32 files related to the move of common menu code
10508         to menu.c on 2008-06-08 by Chong Yidong.
10510         * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10511         defs to w32gui.h.
10512         (single_keymap_panes, push_menu_item, push_menu_pane):
10513         Make globally visible.
10515         * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10516         (local_free, malloc_widget_value, free_widget_value)
10517         (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10518         (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10519         (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10520         (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10521         (menu_items, menu_items_allocated, menu_items_used)
10522         (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10523         (init_menu_items, finish_menu_items, discard_menu_items)
10524         (grow_menu_items, push_submenu_start, push_submenu_end)
10525         (push_left_right_boundary, push_menu_pane, push_menu_item)
10526         (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10527         (free_menubar_widget_tree_value, parse_single_submenu)
10528         (update_submenu_strings): Remove functions.
10529         (xmalloc_widget_value): Remove and declare extern.
10531         * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10532         (OBJ1): Build it.
10534         * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10535         (local_heap, local_alloc, local_free, malloc_widget_value)
10536         (free_widget_value): Define here.
10538 2008-06-09  Kenichi Handa  <handa@m17n.org>
10540         * font.h (Qascii_0): Extern it.
10542         * font.c (Qascii_0): New variable.
10543         (syms_of_font): DEFSYM it.
10544         (font_open_by_name): If the registry "iso8859-1" fails, try also
10545         "ascii-0".
10547         * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10549 2008-06-08  Kenichi Handa  <handa@m17n.org>
10551         * .gdbinit (xfont): New command.
10553 2008-06-08  Andreas Schwab  <schwab@suse.de>
10555         * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10556         * Makefile.in (menu.o): Update dependencies.
10558         * Makefile.in (obj): Always add menu.o.
10559         * emacs.c (main): Always call syms_of_menu.
10560         * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10562 2008-06-08  Chong Yidong  <cyd@stupidchicken.com>
10564         * Makefile.in: Compile menu.c.
10566         * lisp.h: Declare syms_of_menu.
10568         * emacs.c (main): Call syms_of_menu.
10570         * keyboard.h: Relocate platform-independent menu definitions from
10571         xmenu.c.
10573         * menu.c: New file.  Relocate platform-independent menu
10574         definitions from xmenu.c.  Suggested by Adrian Robert.
10576         * xmenu.c: Remove platform-independent menu definitions.
10577         (menu_items menu_items_inuse, menu_items_allocated)
10578         (menu_items_used, menu_items_n_panes)
10579         (menu_items_submenu_depth): Move to keyboard.h.
10580         (init_menu_items, finish_menu_items, unuse_menu_items)
10581         (discard_menu_items, restore_menu_items, save_menu_items)
10582         (grow_menu_items, push_submenu_start, push_submenu_end)
10583         (push_left_right_boundary, push_menu_pane, push_menu_item)
10584         (keymap_panes, single_keymap_panes, single_menu_item)
10585         (list_of_panes, list_of_items, find_and_call_menu_selection)
10586         (xmalloc_widget_value, free_menubar_widget_value_tree)
10587         (parse_single_submenu, digest_single_submenu)
10588         (update_submenu_strings): Move to menu.c.
10590 2008-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
10592         * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10594 2008-06-06  Miles Bader  <miles@gnu.org>
10596         * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10597         face, not frame default.
10599 2008-06-05  Martin Rudalics  <rudalics@gmx.at>
10601         * window.c (pop_up_windows, pop_up_frames)
10602         (display_buffer_reuse_frames, Vpop_up_frame_function)
10603         (Vdisplay_buffer_function, Veven_window_heights)
10604         (Vspecial_display_buffer_names, Vspecial_display_regexps)
10605         (Vspecial_display_function, Vsame_window_buffer_names)
10606         (Vsame_window_regexps, split_height_threshold)
10607         (Vsplit_window_preferred_function): Move those vars to window.el.
10608         (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10609         (Fdisplay_buffer): Move those functions to window.el.
10610         (syms_of_window): Remove corresponding declarations.
10611         (display_buffer): New function.
10612         (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10613         * dispnew.c (Flast_nonminibuf_frame): New function.
10614         * buffer.c (Fpop_to_buffer): Move to window.el.
10616 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
10618         * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10620 2008-06-05  Kenichi Handa  <handa@m17n.org>
10622         * coding.c (detect_coding): Fix previous change.
10623         (detect_coding_system): Likewise.
10625 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
10627         * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10629         * keymap.c (Vminibuffer_local_filename_must_match_map):
10630         Rename from Vminibuffer_local_must_match_filename_map.
10631         (syms_of_keymap):
10632         * minibuf.c (Fcompleting_read): Adjust accordingly.
10633         * commands.h: Rename declaration as well.
10635 2008-06-05  Kenichi Handa  <handa@m17n.org>
10637         * font.c (Ffont_spec): Don't use font_parse_family_registry for
10638         family name.
10639         (Ffont_put): Likewise.
10641         * fontset.c (fontset_find_font): Call font_open_for_lface with the
10642         current font-spec.
10644         * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10645         is unspecified.
10647         * xfaces.c (realize_x_face): If the font-related face attributes
10648         are the same as those of default face, realize a new fontset from
10649         default->fontset.
10650         (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10652 2008-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
10654         * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10655         (move_it_in_display_line): New wrapper.
10657         * window.c (window_scroll_pixel_based_preserve_x)
10658         (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10659         (window_scroll_pixel_based, window_scroll_line_based):
10660         Use them to preserve column positions.
10661         (syms_of_window): Initialize them.
10663         * indent.c (Fvertical_motion): Extend first arg to allow passing an
10664         (HPOS . VPOS) pair.
10666         * dispextern.h (move_it_in_display_line): Declare.
10668 2008-06-05  Juanma Barranquero  <lekktu@gmail.com>
10670         * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10671         (Fwindow_parameters): Return copy of parameter alist.  Doc fix.
10672         (Fset_window_parameter): Return VALUE, not parameter alist.  Doc fix.
10674 2008-06-04  Juanma Barranquero  <lekktu@gmail.com>
10676         * window.c (Fset_window_parameter): Doc fix.
10677         (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10679 2008-06-04  Joakim Verona  <joakim@verona.se>
10681         * window.h (struct window): Add new member window_parameters.
10683         * window.c (Fwindow_parameters, Fwindow_parameter)
10684         (Fset_window_parameter): New defuns.
10685         (syms_of_window): Defsubr the new defuns.
10686         (make_window): Initialize window_parameters to nil.
10688 2008-06-04  John Paul Wallington  <jpw@pobox.com>
10690         * eval.c (Fdefmacro): Doc fix.
10692 2008-06-04  Kenichi Handa  <handa@m17n.org>
10694         * coding.c (detect_coding): Fix handling of coding->head_ascii.
10695         Be sure to call setup_coding_system when we find a proper coding system.
10696         (detect_coding_system): Fix handling of coding->head_ascii.
10698 2008-06-03  Andreas Schwab  <schwab@suse.de>
10700         * font.c (font_prop_validate_spacing): Fix last change.
10702 2008-06-03  Kenichi Handa  <handa@m17n.org>
10704         * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10705         (font_parse_fcname): Fix handling of unknown key.
10707         * xfont.c (xfont_list): Try an alias.
10709         * charset.c (char_charset): Return NULL if the arg charset_list is
10710         specified and C doesn't belong to any of them.
10712 2008-06-02  Chip Coldwell  <coldwell@redhat.com>
10714         * font.c (font_pixel_size): Don't take cdr of an integer.
10716 2008-06-02  Jim Meyering  <meyering@redhat.com>
10718         Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10719         * alloc.c (xfree): Return right away for a NULL arg.
10720         * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10721         * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10722         * mac.c (create_apple_event_from_event_ref): Likewise.
10723         (create_apple_event_from_drag_ref, cfstring_create_normalized):
10724         Likewise.
10725         * doprnt.c (doprnt1): Likewise.
10726         * frame.c (frame): Likewise.
10727         * keyboard.c (wipe_kboard): Likewise.
10728         * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10729         (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10730         * term.c (tty_default_color_capabilities, maybe_fatal)
10731         (delete_tty): Likewise.
10732         * w16select.c (string): Likewise.
10733         * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10734         * w32bdf.c (w32_free_bdf_font): Likewise.
10735         * w32fns.c (w32_unload_font): Likewise.
10736         * w32font.c (w32font_close): Likewise.
10737         * window.c (size_window): Likewise.
10738         * xselect.c (receive_incremental_selection): Likewise.
10739         * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10740         * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10741         * w32.c (stat): Likewise.
10743         Remove useless if-before-free tests.
10744         * editfns.c (Fset_time_zone_rule): Likewise.
10745         * lread.c (nosuffix): Likewise.
10746         * ralloc.c (get_bloc): Likewise.
10747         * regex.c (reg_free): Likewise.
10748         * xftfont.c (xftfont_open, xftfont_close): Likewise.
10749         * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10750         * xsmfns.c (smc_save_yourself_CB): Likewise.
10752 2008-06-02  Kenichi Handa  <handa@m17n.org>
10754         * font.c (font_find_for_lface): Handle float font size.
10755         (font_open_for_lface): Likewise.
10757         * xfaces.c (x_supports_face_attributes_p): Check face->font before
10758         comparing the properties.
10760 2008-06-01  Jason Rumney  <jasonr@gnu.org>
10762         * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10763         Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10764         Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10765         Don't add empty script list.
10766         (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10768 2008-06-01  Dan Nicolaescu  <dann@ics.uci.edu>
10770         * Makefile.in (dot, dotdot): Remove, update users.
10771         ".." has been used elsewhere in the file for a long time.
10772         (LIBXT_STATIC): Remove conditional based on unused variable.
10774 2008-06-01  Miles Bader  <miles@gnu.org>
10776         * xfaces.c (Vface_remapping_alist): New variable.
10777         (syms_of_xfaces): Initialize it.
10778         (enum named_merge_point_kind): New type.
10779         (struct named_merge_point): Add `named_merge_point_kind' field.
10780         (push_named_merge_point): Make cycle detection respect different
10781         named-merge-point kinds.
10782         (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10783         Remove face-name alias resolution.
10784         (lface_from_face_name): New definition using
10785         `lface_from_face_name_no_resolve'.
10786         (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10787         Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10788         (get_lface_attributes): New definition that layers face-remapping on
10789         top of get_lface_attributes_no_remap.  New arg `named_merge_points'.
10790         (lookup_basic_face): New function.
10791         (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10792         (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10793         `get_lface_attributes'.
10794         (face_at_buffer_position): Use `lookup_basic_face' to lookup
10795         DEFAULT_FACE_ID if necessary.  When optimizing the default-face case,
10796         return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10798         * xdisp.c (init_iterator): Pass base_face_id through
10799         `lookup_basic_face' when we actually use it as a face-id.
10800         (handle_single_display_prop): Use `lookup_basic_face' to lookup
10801         DEFAULT_FACE_ID.
10803         * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10804         lookup the initial face-id.
10806         * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10808 2008-06-01  Juanma Barranquero  <lekktu@gmail.com>
10810         * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10811         (Fremove_text_properties): Fix typos in docstrings.
10813 2008-05-31  Kenichi Handa  <handa@m17n.org>
10815         * font.c (font_list_entities): Fix the car part of data to be
10816         stored in the cache.
10818         * ftfont.c (ftfont_font_format): Don't use strcasestr.
10820 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
10822         * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10823         Add a `test' argument so another predicate than `equal' can be used.
10824         (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10825         (map_char_table): Remove unused vars `c' and `i'.
10826         * lisp.h (Foptimize_char_table): Adjust declaration.
10827         * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10829 2008-05-30  Kenichi Handa  <handa@m17n.org>
10831         * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10832         (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10833         defined.
10835 2008-05-30  Stefan Monnier  <monnier@iro.umontreal.ca>
10837         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10838         (Fmake_variable_frame_local): Disallow mixing buffer-local and
10839         frame-local settings for the same variable.
10841 2008-05-30  Kenichi Handa  <handa@m17n.org>
10843         * fontset.c (Ffont_info): Move to font.c.
10844         (syms_of_fontset): Delete defsubr of Sfont_info.
10846         * font.c (font_style_to_value, font_score): Delete casting of the
10847         args to xstcasecmp.
10848         (register_font_driver): Increment num_font_drivers only when
10849         registering the driver globally.
10850         (Ffont_info): Move from fontset.c.  Handle a font object too.
10851         (syms_of_font): Defsubr Sfont_info.
10853 2008-05-29  Kenichi Handa  <handa@m17n.org>
10855         * coding.h (enum define_coding_utf8_arg_index): New enum.
10856         (enum coding_attr_index): Change coding_attr_utf_16_bom to
10857         coding_attr_utf_bom.
10858         (enum utf_bom_type): Rename from utf_16_bom_type.
10859         (struct utf_16_spec): Adjust for the above change.
10860         (struct coding_system): Add utf_8_bom in `spec' union.
10862         * coding.c (CODING_UTF_8_BOM): New macro.
10863         (enum coding_category): Delete coding_category_utf_8, add
10864         coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10865         coding_category_utf_8_sig.
10866         (CATEGORY_MASK_UTF_8): Delete it.
10867         (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10868         (CATEGORY_MASK_UTF_8_SIG): New macros.
10869         (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10870         CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10871         CATEGORY_MASK_UTF_8_SIG.
10872         (CATEGORY_MASK_UTF_8): New macro.
10873         (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10874         (detect_coding_utf_8): Check BOM.
10875         (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10876         (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10877         (encode_coding_utf_16): Likewise.
10878         (setup_coding_system): Likewise.  Set CODING_UTF_8_BOM (coding).
10879         (detect_coding, detect_coding_system): Handle utf-8-auto.
10880         (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10881         (syms_of_coding): Fix setting up of Vcoding_category_table.
10883 2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
10885         * process.c (Faccept_process_output): If `millisec' is non-nil,
10886         `seconds' default to 0.
10887         (wait_reading_process_output): Also return non-nil if we read output
10888         from a non-running process.
10890 2008-05-29  Jason Rumney  <jasonr@gnu.org>
10892         * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10893         `raster' specified.
10894         (add_font_entity_to_list): Allow non-opentype truetype fonts back
10895         in the uniscribe backend, but disallow any font that has no
10896         unicode subrange support.
10898 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
10900         * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10901         Fix typos in docstrings.
10903 2008-05-29  Kenichi Handa  <handa@m17n.org>
10905         * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10906         (Fx_family_fonts): Set frame correctly.
10908 2008-05-28  Jason Rumney  <jasonr@gnu.org>
10910         * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10912 2008-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
10914         * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10915         calling build_annotations.
10917 2008-05-28  Juanma Barranquero  <lekktu@gmail.com>
10919         * coding.c (Fdecode_coding_region, Fencode_coding_region)
10920         (Fencode_coding_string):
10921         (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10922         <latin-extra-code-table>: Fix typos in docstrings.
10923         (syms_of_coding) <coding-system-alist>: Doc fix.
10924         (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10926 2008-05-28  Kenichi Handa  <handa@m17n.org>
10928         * fontset.c (Ffont_info): Don't call font_close_object.
10930         * font.c (font_parse_family_registry): Use Ffont_put to validate
10931         foundry and family.
10932         (font_delete_unmatched): Don't check spacing.
10933         (font_list_entities): Add spacing to the spec to list fonts.
10935         * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10936         (ftfont_list): Check spacing here.  Don't include FC_CHARSET in objset.
10938         * coding.c (encode_coding_raw_text): Fix previous change.
10939         (encode_coding_object): When the dst_object is a buffer and is
10940         different from src_object, move gap to PT.
10942 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
10944         * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10946 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
10948         * coding.c (encode_coding_raw_text): Set coding->produced_char for
10949         all branches.  Compute it differently.
10951         * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10953 2008-05-27  Juanma Barranquero  <lekktu@gmail.com>
10955         * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10956         into "else if () ... else ...".
10958 2008-05-27  Jason Rumney  <jasonr@gnu.org>
10960         * w32font.c (w32font_open_internal): Determine if glyph indices
10961         are likely to work here.
10963 2008-05-27  Chong Yidong  <cyd@stupidchicken.com>
10965         * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10966         draw overlap glyphs with appropriate highlighting.
10968 2008-05-27  Kenichi Handa  <handa@m17n.org>
10970         * xfont.c (xfont_open): Fix calculation of font->average_width.
10972 2008-05-27  Stefan Monnier  <monnier@iro.umontreal.ca>
10974         * casefiddle.c (casify_object): Try to guess better whether the
10975         argument is a byte or a char.
10977 2008-05-26  Andreas Schwab  <schwab@suse.de>
10979         * xselect.c (x_reply_selection_request): Properly handle format == 32.
10980         Always send multiples of format size.
10982         * xterm.c (x_set_frame_alpha): Fix type mismatch.
10984 2008-05-26  Jason Rumney  <jasonr@gnu.org>
10986         * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10987         (compute_metrics): Don't set failure if we just cleared the cache.
10988         (w32_weight_table): Remove unused variable.
10989         (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10990         backwards compatibility.
10992 2008-05-25  Kenichi Handa  <handa@m17n.org>
10994         * w32term.c (x_draw_glyph_string):
10995         * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10997         * xfaces.c: Delete unused function prototypes.
10998         (xstrlwr, font_frame): Delete them.
10999         (clear_face_cache): Delete unused variable.
11001         * xftfont.c (xftfont_open): Delete unused variable.
11002         If underline_thickness is not 1, adjust underline_position.
11004         * ftxfont.c (ftxfont_open): Delete unused variable.
11006         * fontset.c (face_for_char): Optimize for the case of no charset
11007         property.
11009         * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11010         (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11011         (otf_open, font_otf_capability, generate_otf_features)
11012         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11013         Comment out by surrounding "#if 0" and "#endif" for the moment.
11014         (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11015         (syms_of_font): Codes for accessing above commented out.
11017 2008-05-24  Eli Zaretskii  <eliz@gnu.org>
11019         * w32proc.c: Include dispextern.h.
11021         * w32.c: Include dispextern.h.
11023 2008-05-23  Juanma Barranquero  <lekktu@gmail.com>
11025         * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11026         (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11027         Fix typos in docstrings.
11029 2008-05-23  Jason Rumney  <jasonr@gnu.org>
11031         * xsmfns.c: Remove includes that are already included by config.h.
11033 2008-05-23  Kenichi Handa  <handa@m17n.org>
11035         * charset.c (Qemacs, charset_emacs): New variables.
11036         (char_charset): Fix for non-Unicode characters.
11037         (syms_of_charset): Define charset_emacs.
11039         * w32term.c (x_draw_glyph_string): Be sure to update
11040         s->underline_thickness and s->underline_position.  Be sure to draw
11041         underline within the current line area.
11043         * xterm.c (x_draw_glyph_string): Be sure to update
11044         s->underline_thickness and s->underline_position.  Be sure to draw
11045         underline within the current line area.
11047         * fontset.c: Delete unused variables and add casting for char *
11048         throughout the file.
11049         (fontset_font): Try the fallback fonts of the current fontset
11050         before consulting the default fontset.
11052         * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11054         * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11056 2008-05-22  Jason Rumney  <jasonr@gnu.org>
11058         * font.c: Don't include strings.h.
11060         * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11062         * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11063         * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11064         * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11065         to call xstrcasecmp.
11067         * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11069         * fontset.c (fs_query_fontset): Use xstrcasecmp.
11071         * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11073         * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11075 2008-05-22  Kenichi Handa  <handa@m17n.org>
11077         * puresize.h (BASE_PURESIZE): Increase to 1220000.
11079         * font.c (font_prop_validate_style): Adjust for the format
11080         change of font_style_table.
11082         * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11083         two args.
11085         * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11086         two args.
11088 2008-05-22  Stefan Monnier  <monnier@iro.umontreal.ca>
11090         * minibuf.c (keys_of_minibuf): Delete.
11091         * lisp.h (keys_of_minibuf): Delete.
11092         * emacs.c (main): Don't call keys_of_minibuf.
11094 2008-05-22  Kenichi Handa  <handa@m17n.org>
11096         * ftfont.c (ftfont_resolve_generic_family): Rename from
11097         ftfont_list_generic_family.  Return a single family for each
11098         generic family.
11099         (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11100         (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11101         Call font_add_log.
11102         (ftfont_match): Call font_add_log.
11104         * font.h (Ffont_xlfd_name): EXFUN adjusted.
11105         (FONT_DEBUG): Define it.
11106         (font_add_log): Extern it.
11107         (font_assert): Rename from xassert.
11109         * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11110         (xfont_list_family): Call font_add_log.
11111         (xfont_match): Likewise.
11112         (memq_no_quit): Delete.
11114         * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11115         call of Ffont_xlfd_name.
11117         * xfaces.c (struct table_entry, slant_table, weight_table)
11118         (swidth_table): Move to font.c.
11120         * font.c: Checking of FONT_DEBUG is moved to font.h.  All calls of
11121         xassert are changed to font_assert.  Delete many unused variables.
11122         (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11123         New variables.
11124         (struct table_entry): Move from xfaces.c and modified.
11125         (weight_table, slant_table, width_table): Move from xfaces.c and
11126         contents adjusted for the change of struct table_entry.
11127         (font_style_to_value, font_style_symbolic): Adjust for the
11128         format change of font_style_table.
11129         (font_parse_family_registry): Don't overwrite existing foundry and
11130         family of font_spec.
11131         (font_score): Fix calculation of diff for sizes.
11132         (font_sort_entites): Call font_add_log.
11133         (font_delete_unmatched): Return a newly created list.
11134         (font_list_entities): Fix previous change.  Call font_add_log.
11135         (font_matching_entity, font_open_entity, font_close_entity):
11136         Call font_add_log.
11137         (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11138         (Finternal_set_font_style_table): Delete.
11139         (BUILD_STYLE_TABLE): New macro.
11140         (build_style_table): New function.
11141         (Vfont_log, font_log_env_checked): New variables.
11142         (font_add_log): New function.
11143         (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11144         Declare Lisp variables "font-weight-table", "font-slant-table",
11145         "font-width-table", and "font-log".  Initialize font_style_table.
11147 2008-05-21  Dan Nicolaescu  <dann@ics.uci.edu>
11149         * xterm.c (x_set_frame_alpha): Move declarations before statements.
11151 2008-05-21  Seiji Zenitani  <zenitani@mac.com>
11152             Ryo Yoshitake  <ryo@shiftmode.net>
11154         * frame.c (Qalpha): Add a new frame parameter `alpha'.
11155         (Vframe_alpha_lower_limit): New variable.
11156         (x_set_alpha): New function.
11158         * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11160         * xfns.c (x-create-frame, Qalpha):
11161         Initialize the frame parameter `alpha'.
11162         * xterm.c (OPAQUE, OPACITY): New.
11163         (x_set_frame_alpha): New function.
11164         (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11166         * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11167         * w32fns.c (w32_frame_parm_handlers): Likewise.
11169 2008-05-20  Jason Rumney  <jasonr@gnu.org>
11171         * w32font.c (add_font_entity_to_list): Don't add non-opentype
11172         truetype fonts to opentype list.
11174 2008-05-20  Juanma Barranquero  <lekktu@gmail.com>
11176         * fontset.c (Ffontset_info): Doc fix.
11177         (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11178         <ignore-relative-composition>: Fix typos in docstrings.
11180         * font.c (syms-of-font) <font-encoding-alist>:
11181         (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11182         (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11183         (Ffont_otf_alternates): Doc fixes.
11185 2008-05-20  Kenichi Handa  <handa@m17n.org>
11187         * Makefile.in (FONTSRC): Delete it.  Change all $(FONTSRC) to
11188         font.h through out the file.
11189         (FONT_DRIVERS): Rename from FONTOBJ.
11190         (obj): Change $(FONTOBJ) to $(FONT_DRIVERS).  Add font.o.
11191         (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11193         * emacs.c (main): Call syms_of_font unconditionally.
11195         * font.h (find_font_encoding): Extern it.
11197         * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11198         fontset.c.
11199         (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
11200         (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11201         FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11202         only when HAVE_WINDOW_SYSTEM is defined.
11203         (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11204         when HAVE_WINDOW_SYSTEM is defined.
11206         * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11207         (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11209         * xfaces.c: Include font.h unconditionally.
11210         (merge_face_ref, merge_face_vectors)
11211         (Finternal_set_lisp_face_attribute): Cancel the previous change.
11213 2008-05-20  Stefan Monnier  <monnier@iro.umontreal.ca>
11215         * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11216         indirect_variable.
11217         * eval.c (lisp_indirect_variable): New fun.
11218         (Fuser_variable_p): Use it.
11220 2008-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
11222         * lisp.h (indirect_variable):
11223         * data.c (indirect_variable, let_shadows_buffer_binding_p):
11224         Use Lisp_Symbol pointers rather than Lisp_Object.
11225         Adjust callers.
11226         * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11227         To this end, change calling-convention.
11229         * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11230         if some non-hidden buffers are selected by string&pred.
11232 2008-05-19  Chong Yidong  <cyd@stupidchicken.com>
11234         * process.c (wait_reading_process_output): Always check status
11235         when in batch mode.
11237 2008-05-19  Kenichi Handa  <handa@m17n.org>
11239         * font.c (font_list_entities): Fix handling of cache.
11240         (font_matching_entity): Likewise.
11242         * ftfont.c (cs_iso8859_1): Delete.
11243         (ft_face_cache): New variable.
11244         (struct ftfont_info): New member fc_charset_idx.
11245         (ftfont_build_basic_charsets): Delete.
11246         (fc_charset_table): New variable.
11247         (ftfont_pattern_entity): New arg fc_charset_idx.  Store (FILENAME
11248         . FC_CHARSET_IDX) as :font-entity property in the font entity.
11249         Callers changed.
11250         (ftfont_lookup_cache, ftfont_get_charset): New functions.
11251         (ftfont_spec_pattern): New argument fc_charset_idx.
11252         Check registry more rigidly.  Change callers.
11253         (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11254         change of :font-entity property of the font.
11256         * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11257         property of the font.
11259 2008-05-18  Juanma Barranquero  <lekktu@gmail.com>
11261         * coding.c (Fcoding_system_p): Rename argument to match docstring.
11262         (Funencodable_char_position, Fcheck_coding_systems_region)
11263         (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11264         (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11265         (Ffind_operation_coding_system, Fset_coding_system_priority)
11266         (Fcoding_system_eol_type): Doc fixes.
11268 2008-05-17  Glenn Morris  <rgm@gnu.org>
11270         * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11272 2008-05-16  Eli Zaretskii  <eliz@gnu.org>
11274         * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11275         and st_gid.
11277         * frame.c (Fdelete_frame): Don't call font_update_drivers if
11278         HAVE_WINDOW_SYSTEM is not defined.
11280         * xfaces.c (merge_face_ref, merge_face_vectors)
11281         (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11282         HAVE_WINDOW_SYSTEM is defined.
11283         (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11285 2008-05-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11287         * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11289 2008-05-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11291         * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11293 2008-05-15  Kenichi Handa  <handa@m17n.org>
11295         * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11296         preference.
11298 2008-05-15  Glenn Morris  <rgm@gnu.org>
11300         * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11302 2008-05-15  Chong Yidong  <cyd@stupidchicken.com>
11304         * fns.c (init_fns): Don't initialize weak_hash_tables here.
11305         (init_weak_hash_tables): New fun.  Initialize weak_hash_tables.
11307         * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11309 2008-05-15  Kenichi Handa  <handa@m17n.org>
11311         * ftfont.c (ftfont_list): Downcase family name to check generic
11312         families.
11314         * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11315         font-spec for QCfont value.
11317         * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11318         buffer.  Check the return value of it.
11320 2008-05-14  Jason Rumney  <jasonr@gnu.org>
11322         * w32term.c (w32_get_glyph_overhangs): Remove.
11323         (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11325 2008-05-14  Kenichi Handa  <handa@m17n.org>
11327         * font.c (font_prop_validate): Make nil a valid value.
11328         (font_clear_cache): Check if the cached vector of entities is nil
11329         or not.
11331 2008-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11333         * emacs.c (main_thread): Conditionalize on
11334         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11335         (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11337         * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11338         (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11339         FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11341 2008-05-14  Kenichi Handa  <handa@m17n.org>
11343         * coding.c (detect_coding_iso_2022): Ignore a coding category that
11344         has no corresponding coding system.
11346 2008-05-14  Jason Rumney  <jasonr@gnu.org>
11348         * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11350         * w32font.h (w32font_open_internal): Update declaration.
11352         * w32font.c (w32font_open_internal): Change last argument from
11353         w32font_info struct to font object.  Fill in font object from
11354         font_entity.  Get Outline metrics if possible.  Use them to
11355         calculate underline position and thickness.  Use xlfd name as name
11356         property.  Don't set codepage.
11357         (w32font_open): Pass font_object to w32font_open_internal.  Don't
11358         update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11359         (w32font_draw): Use s->font.
11360         (clear_cached_metrics): Don't clear non-existent blocks.
11362         * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11363         font was not found.
11364         (x_draw_glyph_string): Use underline position and thickness from font.
11366         * w32uniscribe.c (uniscribe_open): Pass font_object to
11367         w32font_open_internal.
11369 2008-05-14  Kenichi Handa  <handa@m17n.org>
11371         These changes are to delete all legacy font-handling codes, and
11372         make Emacs use only font-backends.
11374         * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11375         (frame.o, image.o, print.o): Depend on $(FONTSRC).
11377         * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11379         * charset.h (Vcharset_non_preferred_head)
11380         (Vcurrent_iso639_language): Extern them.
11382         * charset.c (Vcharset_non_preferred_head): New variable.
11383         (Vcurrent_iso639_language): New variable.
11384         (syms_of_charset): Declare it as a Lisp variable.
11385         (char_charset): Don't check non preferred charsets.  As a last
11386         resort, return charset_unicode.
11387         (Fset_charset_priority): Update Vcharset_non_preferred_head.
11389         * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11390         conditionals.  Don't check enable_font_backend.  Delete all codes
11391         used only when USE_FONT_BACKEND is not defined.
11393         * dispextern.h (struct glyph_string): Change type of `font' to
11394         `struct font *'.
11395         (struct glyph_string): New member underline_position and
11396         underline_thickness.
11397         (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11398         (struct face): Change type of `font' to `struct font *'.  Remove
11399         members `font_name', `font_info_id'.
11400         (per_char_metric, encode_char): Delete externs.
11401         (calc_pixel_width_or_height): Adjust the prototype.
11403         * emacs.c (enable_font_backend): Delete extern.
11404         (main): Don't set enable_font_backend.  Don't check the command
11405         line argument "-disable-font-backend".
11407         * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11408         (enum font_property_index): New members FONT_DPI_INDEX,
11409         FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11410         FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11411         FONT_OBJECT_MAX.  Delete FONT_FRAME_INDEX.
11412         (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11413         (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11414         (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11415         (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11416         (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11417         (struct font_spec, struct font_entity): New structs.
11418         (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11419         (struct font): Many members from old "struct font_info" moved to
11420         here.  Members font and entity deleted.
11421         (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11422         the new font-related objects.
11423         (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11424         (CHECK_FONT_GET_OBJECT): Likewise.
11425         (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11426         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11427         (struct font_driver): New members case_sensitive anc check.  Type
11428         of the member list and open changed.
11429         (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11430         (font_symbolic_width, font_find_object, font_get_spec)
11431         (font_set_lface_from_name): Delete extern.
11432         (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11434         * font.c: Include <strings.h>.
11435         (enable_font_backend): Delete it.
11436         (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11437         (CHECK_VALIDATE_FONT_SPEC): Delete it.
11438         (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11439         (null_string): Delete it.
11440         (null_vector): Make it static.
11441         (font_family_alist): Delete it.
11442         (Qnormal): Extern it.
11443         (QCextra, QClanguage): Delete it.
11444         (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11445         (font_make_spec, font_make_entity, font_make_object)
11446         (font_intern_prop): Renamed from intern_downcase.  Don't downcase
11447         the string.  Callers changed.
11448         (font_pixel_size): Adjusted for the format change of font-related
11449         objects.
11450         (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11451         (font_style_to_value, font_style_symbolic): New function.
11452         (build_font_family_alist): Delete it.
11453         (font_registry_charsets): Use Fassoc_string instead of
11454         assq_no_quit.
11455         (font_prop_validate_symbol): Don't return null_string.
11456         (font_prop_validate_style): Adjusted for the change of
11457         style-related values in a font vector.
11458         (font_property_table): Delete entries for QClanguage and
11459         QCantialias, add entries for QCavgwidth.
11460         (get_font_prop_index): Delete the 2nd argument FROM.
11461         (font_prop_validate): Arguments changed.
11462         (font_put_extra): Adjusted for the change of font-related objects.
11463         (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11464         (font_parse_fcname, font_unparse_fcname)
11465         (font_prepare_composition): Likewise.
11466         (font_parse_family_registry): Renamed from font_merge_old_spec.
11467         (otf_open): Delete the 1st arg entity.
11468         (font_otf_capability): Adjusted for the above change.
11469         (font_score): New arg alternate_families.  Adjusted for the change
11470         of font-related objects.
11471         (font_sort_entites): New arg best_only.
11472         (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11473         Delete them.
11474         (font_match_p): Check alternate families.
11475         (font_find_object): Delete it.
11476         (font_check_object): New function.
11477         (font_clear_cache): Adjusted for the change of font-related objects.
11478         (font_delete_unmatched): New arg.
11479         (font_list_entities): Call font_driver->list with a spec that
11480         doesn't specify style-related properties.
11481         (font_matching_entity): Arguments changed.  Caller changed.
11482         (font_open_entity): Adjusted for the change of font-related objects.
11483         (font_close_object, font_has_char, font_encode_char)
11484         (font_get_name, font_get_spec): Likewise.
11485         (font_spec_from_name, font_clear_prop, font_update_lface):
11486         New functions.
11487         (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11488         (font_prepare_for_face, font_done_for_face, font_open_by_name)
11489         (font_at): Adjusted for the change of font-related objects.
11490         (font_range): New function.
11491         (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11492         (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11493         (Fcopy_font_spec, Fmerge_font_spec): New function.
11494         (Ffont_family_list): Renamed from list-families.
11495         (Finternal_set_font_style_table): Arguments changed.
11496         (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11497         (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11498         change of font-related objects.
11499         (syms_of_font): Delete "ifdef USE_FONT_BACKEND".  DEFSYM new symbols.
11501         * fontset.h (struct font_info): Delete it.  Most members go to
11502         struct font.
11503         (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11504         (enum FONT_SPEC_INDEX): Delete it.
11505         (font_info, list_fonts_func, load_font_func, query_font_func)
11506         (set_frame_fontset_func, find_ccl_program_func)
11507         (get_font_repertory_func, new_fontset_from_font_name): Delete
11508         externs.
11509         (fontset_from_font_name): Extern it.
11510         (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11511         (FONT_INFO_FROM_FACE): Deleted.
11512         (face_for_font): Adjust prototype.
11514         * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11515         conditionals.  Don't check enable_font_backend.  Delete all codes
11516         used only when USE_FONT_BACKEND is not defined.
11517         (get_font_info_func, list_font_func, load_font_func)
11518         (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11519         (get_font_repertory_func): Delete them.
11520         (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11521         (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11522         (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11523         (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11524         (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11525         (fontset_compare_rfontdef): New function.
11526         (reorder_font_vector): Remove the argument CHARSET-ID.  Sort
11527         rfont-defs by qsort.  Adjusted for the change of font-group vector.
11528         (load_font_get_repertory): Deleted.
11529         (fontset_find_font): Use new macros to ref/set elements of
11530         font-def and rfont-def.
11531         (fontset_font): Fix the timing of remembering that no font for C.
11532         (free_face_fontset): Do nothing if the face has no fontset.
11533         (face_suitable_for_char_p): Use new macros to ref/set elements of
11534         rfont-def.
11535         (face_for_char): Likewise.  Call face_for_char with font_object.
11536         (fs_load_font): Delete.  Delete #pragma surrounding it.
11537         (fs_query_fontset): Use strcasecmp instead of strcmp.
11538         (generate_ascii_font_name): Adjusted for the format change of
11539         font-spec.
11540         (Fset_fontset_font): Likewise.  Use new macros to set elements of
11541         font-def.
11542         (Fnew_fontset): Use font_unparse_xlfd to generate
11543         FONTSET_ASCII (fontset).
11544         (new_fontset_from_font_name): Deleted.
11545         (fontset_from_font): Renamed from new_fontset_from_font.  Check if
11546         a fontset is already created for the font.  FIx updating of
11547         Vfontset_alias_alist.
11548         (fontset_ascii_font): Deleted.
11549         (Ffont_info): Adjusted for the format change of font-spec.
11550         (Finternal_char_font): Likewise.
11551         (Ffontset_info): Likewise.
11552         (syms_of_fontset): Don't check load_font_func.
11554         * fns.c (internal_equal): Handle PREV_FONT.
11556         * frame.h: Delete USE_FONT_BACKEND conditional.
11558         * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11559         conditionals.  Don't check enable_font_backend.  Delete all codes
11560         used only when USE_FONT_BACKEND is not defined.
11561         (x_set_font): Call x_new_font, not x_new_fontset2.
11562         (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11563         already set for the frame.
11565         * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.  Make
11566         a font-entity by font_make_entity.  Use font_intern_prop instead
11567         of intern_downcase.  Use FONT_SET_STYLE to set a style-related
11568         font property.  If a font is scalable, set avgwidth property to 0.
11569         Set font-entity property by font_put_extra.
11570         (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11571         (ffont_driver): Adjusted for the change of struct font_driver.
11572         (ftfont_spec_pattern): New function.
11573         (ftfont_list): Return a list, not vector.
11574         (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11575         (ftfont_list_family): Don't downcase names.
11576         (ftfont_free_entity): Deleted.
11577         (ftfont_open): Return a font-object.  Adjusted for the change of
11578         struct font.  Get underline_thickness and underline_position from
11579         font property.  Don't update dpyinfo->smallest_font_height and
11580         dpyinfo->smallest_char_width.
11581         (ftfont_close): Don't free `struct font'.
11582         (ftfont_has_char): Adjusted for the format change of font-entity.
11583         (ftfont_encode_char, ftfont_text_extents): Likewise.
11585         * ftxfont.c (ftxfont_list): Return a list, not vector.
11586         (ftxfont_open): Return a font-object.  Adjusted for the change of
11587         struct font.  Get underline_thickness and underline_position from
11588         font property.  Don't update dpyinfo->smallest_font_height and
11589         dpyinfo->smallest_char_width.
11590         (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11591         (ftxfont_draw): Adjusted for the change of struct font.
11593         * image.c (image_ascent): Don't include "charset.h".  Include
11594         "character.h" and "font.h".
11596         * lisp.h (enum pvec_type): New member PREV_FONT.
11597         (Fassoc_string): EXFUN it.
11599         * print.c: Include font.h.
11600         (print_object): Handle font-related objects.
11602         * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11603         conditionals.  Don't check enable_font_backend.  Delete all codes
11604         used only when USE_FONT_BACKEND is not defined.
11605         (handle_auto_composed_prop): Do nothing if it->f is not on a
11606         window system.  Check how many following characters can be
11607         displayed by the same font.
11608         (calc_pixel_width_or_height): Type of the 4th arg is changed to
11609         'struct font *'.
11610         (get_char_face_and_encoding): Assign the whole encoding task to
11611         the `encode-char' method of a font driver.
11612         (fill_composite_glyph_string): Adjusted for the change of `struct
11613         face' and `struct glyph_string'.
11614         (fill_glyph_string): Likewise.
11615         (get_per_char_metric): Arguments changed.
11616         (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11617         and `struct glyph_string'.
11618         (produce_stretch_glyph, calc_line_height_property)
11619         (x_produce_glyphs): Likewise.
11621         * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11622         conditionals.  Don't check enable_font_backend.  Delete all codes
11623         used only when USE_FONT_BACKEND is not defined.  Use
11624         FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11625         (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11626         (Qp): Extern them.
11627         (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11628         Deleted.
11629         (struct font_name): Deleted.
11630         (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11631         (compare_fonts_by_sort_order): New function.
11632         (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11633         (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11634         Deleted.
11635         (Fx_family_fonts): Use font_list_entities, and sort fonts by
11636         compare_fonts_by_sort_order.
11637         (Fx_font_family_list): Call Ffont_family_list.
11638         (face_numeric_value, face_numeric_weight, face_numeric_slant)
11639         (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11640         (face_symbolic_slant, face_symbolic_swidth)
11641         (split_font_name_into_vector, build_font_name_from_vector)
11642         (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11643         (font_rescale_ratio, split_font_name, build_font_name)
11644         (free_font_names, sort_fonts, x_face_list_fonts)
11645         (face_font_available_p, sorted_font_list, cmp_font_names)
11646         (font_list_1, concat_font_list, font_list, remove_duplicates):
11647         Deleted.
11648         (Fx_list_fonts): Use Ffont_list.
11649         (LFACE_AVGWIDTH): Deleted.
11650         (check_lface_attrs): Don't check LFACE_AVGWIDTH.  Check LFACE_FONT
11651         by FONTP.
11652         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11653         (set_lface_from_font_name): Delete it.
11654         (set_lface_from_font): Renamed from
11655         set_lface_from_font_and_fontset.  Caller changed.  Don't set
11656         LFACE_AVGWIDTH.  Use FONT_XXX_FOR_FACE to get a symbol suitable
11657         for face.
11658         (merge_face_vectors): Copy font-spec if necessary.
11659         Clear properties of the font-spec if necessary.
11660         (merge_face_ref): Clear properties of the font-spec if necessary.
11661         (Finternal_set_lisp_face_attribute): Likewise.
11662         (set_font_frame_param): Use font_load_for_lface to load a
11663         font-object, and call Fmodify_frame_parameters with it.
11664         (x_update_menu_appearance): Don't check LFACE_AVGWIDTH.  Get XLFD
11665         font name by Ffont_xlfd_name.
11666         (Finternal_lisp_face_attribute_values): Don't check QCweight,
11667         QCslant, and QCwidth.
11668         (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11669         (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11670         Compare fonts by EQ.
11671         (lookup_non_ascii_face): Deleted.
11672         (face_for_font): The 2nd argument changed.
11673         (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11674         Check atomic font properties by case insensitive.
11675         (realize_non_ascii_face): Set face->overstrike correctly.
11676         (realize_x_face): Likewise.  Check if LFACE_FONT is a font_object.
11677         (dump_realized_face): Get font name from
11678         font->props[FONT_NAME_INDEX].  Don't print font_info_id.
11680         * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11681         conditionals.  Don't check enable_font_backend.  Delete all codes
11682         used only when USE_FONT_BACKEND is not defined.
11683         (xic_create_xfontset): Original code deleted and renamed from
11684         xic_create_xfontset2.  Use FRAME_FONT, not FRAME_FONT_OBJECT.
11685         (x_make_gc): Don't set GCFont in GCs.
11686         (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11687         opened by "fixed".
11688         (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11689         find_ccl_program_func, query_font_func, set_frame_fontset_func,
11690         get_font_repertory_func.
11692         * xfont.c: Include <stdlib.h> and "ccl.h".
11693         (struct xfont_info): New structure.
11694         (xfont_query_font): Deleted.
11695         (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11696         moved from xterm.c.
11697         (xfont_driver): Adjusted for the change of struct font_driver.
11698         (compare_font_names): New function.
11699         (xfont_list_pattern): Sort font names case insensitively.  Make
11700         font_entity by calling font_make_entity.  Avoid auto-scaled fonts.
11701         (xfont_list): Return a list, not vector.
11702         (xfont_match): If the font doesn't have QCname property, generate
11703         a name from the other font properties.
11704         (xfont_open): Return a font-object.  Adjusted for the change of
11705         struct font.  Get underline_thickness and underline_position from
11706         font property.  Don't update dpyinfo->smallest_font_height and
11707         dpyinfo->smallest_char_width.
11708         (xfont_close): Don't free struct font.
11709         (xfont_prepare_face): Adjusted for the change of struct font.
11710         (xfont_done_face): Deleted.
11711         (xfont_has_char): Adjusted for the change of struct font.
11712         (xfont_encode_char, xfont_draw): Likewise.
11713         (xfont_check): New function.
11715         * xftfont.c (xftfont_list): Adjusted for the change of `list'
11716         callback function.
11717         (xftfont_match): Adjusted for the format change of font-entity.
11718         (xftfont_open): Adjusted for the format change of font-entity and
11719         font-object.  Adjusted for the change of struct font.  Return a
11720         font-object.  Don't update dpyinfo->smallest_font_height and
11721         dpyinfo->smallest_char_width.
11722         (xftfont_close): Block input while calling XftFontClose.
11723         (xftfont_prepare_face): Don't block input while calling
11724         xftfont_get_colors.  Adjusted for the change of struct font.
11725         (xftfont_shape): Return value of error case fixed.
11727         * xrdb.c (x_load_resources): Don't setup a fontset resource.
11729         * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11730         conditionals.
11731         (FONT_WIDTH): Return (f)->max_width.
11732         (struct x_display_info): Delete member `font'.
11733         (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11734         (x_find_ccl_program, x_get_font_repertory): Delete externs.
11735         (struct x_output): Change type of `font' to `struct font *'.
11737         * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11738         conditionals.  Don't check enable_font_backend.  Delete all codes
11739         used only when USE_FONT_BACKEND is not defined.  Don't include ccl.h.
11740         (x_per_char_metric, x_encode_char): Deleted.
11741         (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11742         (x_compute_glyph_string_overhangs): Adjusted for the change of
11743         `struct face'.
11744         (x_draw_glyph_string_foreground)
11745         (x_draw_composite_glyph_string_foreground): Likewise.
11746         (x_draw_glyph_string): Likewise.  Use font->underline_position and
11747         font->underline_thickness.
11748         (x_new_font): Renamed from x_new_fontset2.
11749         (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11750         (x_check_font): Call `check' method of a font driver.
11751         (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11752         (x_query_font, x_get_font_repertory): Deleted.
11753         (x_find_ccl_program): Renamed and moved to xfont.c.
11754         (x_redisplay_interface): Adjusted for the change of `struct
11755         redisplay_interface'.
11757         * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11758         conditionals.  Don't check enable_font_backend.  Delete all codes
11759         used only when USE_FONT_BACKEND is not defined.  Surround non-used
11760         code by "#ifdef OLD_FONT" and "endif".
11761         (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11763         * w32font.h (struct w32font_info): New member.
11764         (FONT_COMPAT): New macro.
11765         (w32font_open_internal): Prototype adjusted.
11767         * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11768         OLD_FONT" and "endif".
11770         * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11771         conditionals.  Don't check enable_font_backend.  Delete all codes
11772         used only when USE_FONT_BACKEND is not defined.
11773         (w32font_open): Return a font-object.  Make a font-object by
11774         font_make_object.  Adjusted for the change of struct w32font_info.
11775         (w32font_close): Don't free struct font.  Adjusted for the change
11776         of struct w32font_info.
11777         (w32font_encode_char, w32font_text_extents, w32font_draw):
11778         Adjusted for the change of struct w32font_info.
11779         (w32font_draw): Likewise.
11780         (w32font_list_internal): Return a list, not vector.
11781         (w32font_open_internal): Change the 4th arg to font-object.
11782         Adjusted for the change of struct w32font_info and font-object format.
11783         (add_font_name_to_list): Don't downcase names.
11784         (w32_enumfont_pattern_entity): Make a font-entity by
11785         font_make_entity.  Adjusted for the format change of font-entity.
11786         Use FONT_SET_STYLE to set a style-related font property.  If a
11787         font is scalable, set avgwidth property to 0.  Set font-entity
11788         property by font_put_extra.
11789         (font_matches_spec): Adjusted for the format change of font-entity.
11790         (w32_weight_table, w32_decode_weight): New variables.
11791         (w32_encode_weight): New function.
11792         (fill_in_logfont): Adjusted for the format change of font-spec.
11793         (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11794         weight value.
11795         (w32font_driver): Adjusted for the change of struct font_driver.
11797         * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11798         conditionals.  Don't check enable_font_backend.  Surround non-used
11799         code by "#ifdef OLD_FONT" and "endif".
11800         (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11801         (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11803         * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11804         conditionals.  Don't check enable_font_backend.  Delete all codes
11805         used only when USE_FONT_BACKEND is not defined.  Surround non-used
11806         code by "#ifdef OLD_FONT" and "endif".
11808         * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11809         (uniscribe_open): Return value changed to font-object.
11810         Adjusted for the format change of font-object.
11811         (uniscribe_otf_capability): Adjusted for the change of struct font.
11812         (add_opentype_font_name_to_list): Don't downcase names.
11813         (uniscribe_font_driver): Adjusted for the change of struct
11814         font_driver.
11816 2008-05-13  Chong Yidong  <cyd@stupidchicken.com>
11818         * dispnew.c (update_frame_1): Check if tty output is still valid
11819         before flushing it.
11821 2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
11823         * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11824         to Gtk+ menus.
11826 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11828         * dired.c (file_name_completion): Tweak the code so as to always do it
11829         in a single pass.  Tighten the scope of some variables.
11831         * dired.c (Qdefault_directory): New var.
11832         (file_name_completion): Use it instead of Fexpand_file_name.
11833         (syms_of_dired): Initialize it.
11835 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
11837         * fileio.c (double_dollars): Remove dead code.
11839 2008-05-10  Eli Zaretskii  <eliz@gnu.org>
11841         * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11842         Mention w32-get-true-file-attributes in doc string.
11844         * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11846 2008-05-09  Glenn Morris  <rgm@gnu.org>
11848         * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11849         2008-04-23.
11851 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
11853         Support for reporting owner and group of each file on MS-Windows:
11854         * dired.c (stat_uname, stat_gname): New functions, with special
11855         implementation for w32.
11856         (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11858         * w32.c: Rename the_passwd_* to dflt_passwd_*.
11859         (dflt_group_name): New static variable.
11860         (dflt_group): Rename from the_group.
11861         (init_user_info): Init dflt_group fields.  Get user's group name
11862         from LookupAccountSid.
11863         (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11864         (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11865         New initialization states.
11866         (globals_of_w32): Initialize them to zero.  Initialize the default
11867         group name to "None".
11868         (GetFileSecurity_Name): New global var, the name of the function
11869         to call for GetFileSecurity.
11870         (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11871         (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11872         (get_file_security, get_security_descriptor_owner)
11873         (get_security_descriptor_group, is_valid_sid)
11874         (get_file_security_desc, get_rid, get_name_and_id)
11875         (get_file_owner_and_group): New functions.
11876         (stat): Use get_file_security_desc and get_file_owner_and_group to
11877         report the owner and primary group of each file.  Don't ignore the
11878         high 32 bits of file's size, now that st_size is 64-bit wide.
11879         Fix test when to get true file attributes.
11880         (init_user_info): Use get_rid instead of equivalent inline code.
11881         (fstat): Don't ignore the high 32 bits of file's size.
11883 2008-05-09  Chong Yidong  <cyd@stupidchicken.com>
11885         * image.c (png_load): Use correct bit-depth for setting background
11886         color.
11888 2008-05-08  Eli Zaretskii  <eliz@gnu.org>
11890         * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11891         epa-hook.elc.
11893 2008-05-08  Juanma Barranquero  <lekktu@gmail.com>
11895         * font.c (Ffont_match_p): Don't use `iff' in docstring.
11897 2008-05-07  Dan Nicolaescu  <dann@ics.uci.edu>
11899         * macfns.c (Fx_create_frame): Make a copy of frame parameters
11900         because the original parameters are in pure storage now.
11901         (mac_window): Remove unused params.  Update callers.
11903 2008-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
11905         * lread.c (substitute_object_recurse): Use lower-level primitives.
11906         Don't signal errors when traversing sub-char-tables.
11907         Don't loop over all the possible characters when traversing char-tables.
11909         * print.c (print_preprocess): Add sub-char-tables to the print-table,
11910         just like we do in print.c.
11912 2008-05-05  Stefan Monnier  <monnier@iro.umontreal.ca>
11914         * minibuf.c (Ftry_completion): Remove code left over from when we used
11915         scmp instead of Fcompare_strings.
11917 2008-05-04  Juanma Barranquero  <lekktu@gmail.com>
11919         * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11921 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11923         * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11924         Create bitmap context in native byte order.
11926         * macterm.c (XDrawLine)
11927         (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11928         context in native byte order.
11930 2008-05-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11932         * config.in: Regenerate.
11934         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11935         New definitions for Image I/O support.
11936         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11937         (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11938         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11939         (mac_data_provider_release_data, image_load_image_io)
11940         [USE_MAC_IMAGE_IO]: New functions.
11941         (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11942         (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11943         (init_image_func_pointer) [MAC_OSX]: Remove function.
11944         (image_load_quartz2d) [MAC_OSX]: Check availability of
11945         CGImageCreateWithPNGDataProvider at compile time.
11946         Use lowercase `false' for boolean constant.
11947         (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11948         Use image_load_image_io.
11949         (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11950         Don't check MyCGImageCreateWithPNGDataProvider.
11951         (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11952         Don't call init_image_func_pointer.
11954         * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11956         * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11957         Make variable non-static.
11958         (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11959         [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11961         * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11962         (RED_FROM_ULONG): Mask off higher bits.
11963         (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11965         * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11966         Include AvailabilityMacros.h.
11967         (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11968         (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11970 2008-05-03  Stefan Monnier  <monnier@iro.umontreal.ca>
11972         * chartab.c (Fset_char_table_range): If range is t, really set all
11973         chars to that value.
11975 2008-05-03  Eli Zaretskii  <eliz@gnu.org>
11977         * dired.c (Ffile_attributes): Don't allow the device number become
11978         negative.
11980 2008-05-02  Daiki Ueno  <ueno@unixuser.org>
11982         * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11984 2008-05-02  Juri Linkov  <juri@jurta.org>
11986         * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11987         (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11988         DEFAULT argument as a list of default values in docstrings.
11990 2008-05-01  Chong Yidong  <cyd@stupidchicken.com>
11992         * puresize.h (BASE_PURESIZE): Increase to 1210000.
11994 2008-05-01  Martin Rudalics  <rudalics@gmx.at>
11996         * dispnew.c (change_frame_size_1): Preserve small windows when
11997         shrinking frames by calling set_window_height|width with third
11998         arg 2.
12000         * window.h (struct window): Replace field too_small_ok by field
12001         resize_proportionally.
12003         * window.c (make_window): Initialize resize_proportionally.
12004         (enlarge_window): Temporarily set resize_proportionally to make
12005         sure that shrink_windows does scale the window proportionally.
12006         (shrink_windows): When window has resize_proportionally set try
12007         to shrink it proportionally by stealing from other windows.
12008         (struct saved_window, Fset_window_configuration)
12009         (compare_window_configurations): Handle resize_proportionally.
12010         (WINDOW_TOTAL_SIZE): New macro.
12011         (window_min_size, shrink_windows, size_window): Use it.
12012         (check_min_window_sizes): Remove.  Invalid values of
12013         window-min-height|width are handled by window_min_size_2 now.
12014         (size_window, Fsplit_window, enlarge_window)
12015         (adjust_window_trailing_edge, grow_mini_window): Don't call
12016         check_min_window_sizes.
12017         (window_min_size_2, window_min_size_1, window_min_size):
12018         New argument safe_p for retrieving "safe" minimum sizes.
12019         (Fdisplay_buffer, Fsplit_window, enlarge_window)
12020         (adjust_window_trailing_edge, grow_mini_window):
12021         Adjust arguments of window_min_size... functions.
12022         (shrink_windows): Argument min_size removed.  New argument
12023         safe_p allows shrinking windows to their safe minimum sizes.
12024         Calculate minimum size and decide whether a window shall be
12025         deleted for each window individually.
12026         (size_window): When nodelete_p equals 2, tell shrink_windows to
12027         delete windows only if their new minimum size is no more safe.
12028         (shrink_window_lowest_first): Call window_min_size_1 to make
12029         sure to preserve modeline of bottom-most window when resizing
12030         the minibuffer.
12031         (Fset_window_configuration, Fcurrent_window_configuration)
12032         (compare_window_configurations): Do not handle
12033         window-min-height|width any more.
12034         (syms_of_window): Clarify window-min-height|width doc-strings.
12036 2008-04-30  Stefan Monnier  <monnier@iro.umontreal.ca>
12038         * dired.c (file_name_completion): Fix up the encoding/decoding issue
12039         some more.  Copy some of the code from Ftry_completions.
12040         Remove special case code that dates back to initial revision when the
12041         slash was only added when necessary and that can't trigger nowadays.
12043 2008-04-27  Kenichi Handa  <handa@m17n.org>
12045         * font.c (font_prop_validate): Signal `error' instead of `font'.
12047 2008-04-29  Jason Rumney  <jasonr@gnu.org>
12049         * w32fns.c (Fw32_battery_status): New defun.
12050         (syms_of_w32fns): Defsubr it.
12052 2008-04-28  Andreas Schwab  <schwab@suse.de>
12054         * dired.c (file_name_completion): Fix another mixing of encoded
12055         and decoded names.
12057 2008-04-28  Juanma Barranquero  <lekktu@gmail.com>
12059         * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12061 2008-04-27  Juanma Barranquero  <lekktu@gmail.com>
12063         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12065 2008-04-27  Andreas Schwab  <schwab@suse.de>
12067         * dired.c (file_name_completion): Fix inappropriate mixing of
12068         encoded and decoded names.
12070         * xterm.c (XTread_socket): Fix use of uninitialized variable.
12072         * puresize.h (BASE_PURESIZE): Increase to 1200000.
12074 2008-04-26  Eli Zaretskii  <eliz@gnu.org>
12076         * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12077         2008-03-31, it's not needed anymore with `struct stat' definition
12078         on nt/inc/sys/stat.h.  Undo changes from 2007-01-12 and 2007-01-13
12079         for the same reasons.
12081 2008-04-25  Dennis Gilmore  <ausil@fedoraproject.org>  (tiny change)
12083         * m/sparc.h: Additional redefinitions for GNU/Linux.
12085 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12087         * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12088         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12089         (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12090         (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12091         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12092         (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12093         (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12094         Likewise.
12096         * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12097         (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12098         (mac_ax_number_of_characters): Add externs.
12099         (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12100         [USE_MAC_TSM]: Likewise.
12101         (mac_handle_text_input_event) [MAC_OSX]:
12102         Handle kEventTextInputOffsetToPos for no active input area case.
12103         Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12104         (mac_handle_document_access_event)
12105         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12106         (install_application_handler) [MAC_OSX]: Register handlers for
12107         kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12108         (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12109         Register mac_handle_document_access_event.
12111         * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12112         Make functions non-static.
12114 2008-04-23  Stefan Monnier  <monnier@iro.umontreal.ca>
12116         * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12117         (read_file_name_completion_ignore_case, insert_default_directory)
12118         (Qdefault_directory): Move to minibuffer.el.
12119         (Fread_file_name): Call the new `read-file-name' instead.
12121 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12123         * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12124         Make function non-static.
12125         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12126         Remove function.
12127         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12128         Move to mactoolbox.c.
12129         (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12131         * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12132         (mac_rect_make): New macro.
12134         * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12135         instead of float.
12136         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12137         (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12138         (XSetBackground) [USE_CG_DRAWING]: Likewise.
12139         (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12140         CGRectMake.
12141         (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12142         (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12143         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12144         (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12145         instead of WindowRef in argument type.
12146         (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12147         (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12148         (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12149         instead of DISPLAY.  All uses changed.
12150         (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12151         (x_calc_absolute_position): Simplify so as not to use
12152         FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12154         * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12155         instead of WindowRef in argument type.
12156         (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12157         [TARGET_API_MAC_CARBON]: Remove externs.
12158         (create_apple_event, mac_event_parameters_to_lisp)
12159         [TARGET_API_MAC_CARBON]: Add externs.
12161         * mactoolbox.c (Vmac_ts_script_language_on_focus)
12162         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12163         (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12164         is clicked.
12165         (x_activate_menubar): Remove extern for saved_menu_event_location.
12166         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12167         Move from mac.c.
12169 2008-04-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12171         * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12172         [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12174 2008-04-23  Jason Rumney  <jasonr@gnu.org>
12176         * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12177         attributes only for local files.
12179         * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12180         default to Qlocal.
12182 2008-04-22  Juri Linkov  <juri@jurta.org>
12184         * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12185         read-buffer-to-switch instead of using the letter "B".
12187 2008-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12189         * fileio.c (Qdefault_directory): New variable.
12190         (Fread_file_name): Use it to pass `dir' to the completion functions.
12192 2008-04-20  Chong Yidong  <cyd@stupidchicken.com>
12194         * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12196 2008-04-19  Stefan Monnier  <monnier@iro.umontreal.ca>
12198         * keyboard.c (Vpre_help_message): Remove.
12199         (show_help_echo): Remove default C code.
12201         * dired.c (directory_files_internal, file_name_completion):
12202         Only call ENCODE_FILE if the string is indeed decoded.
12204 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
12206         * Makefile.in (TOOLKIT_DEFINES): Remove.
12207         (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12209 2008-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12211         * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12212         (mactoolbox.o): New target.
12214         * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12215         Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12217         * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12218         Use mac_set_frame_window_background instead of XSetWindowBackground.
12219         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12220         Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12221         (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12222         instead of SetWindowTitleWithCFString.
12223         (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12224         Move function to mactoolbox.c.
12225         (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12226         Use mac_set_window_modified instead of SetWindowModified.
12227         Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12228         (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12229         (Fx_focus_frame): Use mac_front_non_floating_window instead of
12230         FrontNonFloatingWindow.  Use mac_activate_window instead of
12231         ActivateWindow.  Use mac_active_non_floating_window instead of
12232         ActiveNonFloatingWindow.
12233         (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12234         Use mac_show_hourglass and mac_hide_hourglass.
12235         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12236         instead of GetGlobalMouse.
12237         (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12238         instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12239         Use mac_bring_window_to_front instead of BringToFront.
12240         (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12241         mactoolbox.c.
12242         (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12243         mac_file_dialog in mactoolbox.c.  Use mac_file_dialog.
12244         (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12245         mactoolbox.c.
12247         * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12248         (XtPointer): Move typedef from macmenu.c.
12249         (enum button_type): Move enum from macmenu.c.
12250         (widget_value): Move typedef from macmenu.c.
12251         (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12252         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12253         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12254         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12255         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12256         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12257         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12258         (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12259         (Selection): Move typedef from macselect.c.
12260         (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12261         macterm.c.
12262         (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12263         (mac_is_window_collapsed, mac_bring_window_to_front)
12264         (mac_send_window_behind, mac_hide_window, mac_show_window)
12265         (mac_collapse_window, mac_front_non_floating_window)
12266         (mac_active_non_floating_window, mac_activate_window)
12267         (mac_move_window_structure, mac_move_window, mac_size_window)
12268         (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12270         * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12271         (enum mac_menu_kind): Move enum to mactoolbox.c.
12272         (min_menu_id): Move variable to mactoolbox.c.
12273         (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12274         (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12275         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12276         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12277         [TARGET_API_MAC_CARBON]: Likewise.
12278         (XtPointer): Move typedef to macgui.h.
12279         (enum button_type): Move enum to macgui.h.
12280         (widget_value): Move typedef to macgui.h.
12281         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12282         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12283         (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12284         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12285         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12286         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12287         (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12288         (popup_activated_flag): Make variable non-static.
12289         (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12290         (add_menu_item, fill_menu, dispose_menus):
12291         Move functions to mactoolbox.c.
12292         (restore_show_help_function, menu_target_item_handler)
12293         (install_menu_target_item_handler, mac_handle_dialog_event)
12294         (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12295         [TARGET_API_MAC_CARBON]: Likewise.
12296         (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12297         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12298         (find_and_call_menu_selection, name_is_separator): Make function
12299         non-static.
12300         (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12301         to mactoolbox.c.
12302         (set_frame_menubar): Don't call install_menu_quit_handler.
12303         (menu_item_selection): New variable.
12304         (mac_menu_show): Use create_and_show_popup_menu.
12305         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12306         selection but set variable menu_item_selection.  All uses changed.
12307         (mac_fill_menubar): Rename from fill_menubar.  All uses changed.
12308         Call install_menu_quit_handler.  Move to mactoolbox.c.
12310         * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12311         (Selection): Move typedef to macgui.h.
12312         (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12313         (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12314         Make variables non-static.
12315         (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12316         (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12317         Make functions non-static.
12318         (Vmac_service_selection) [MAC_OSX]: Likewise.
12319         (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12320         (mac_valid_selection_target_p, mac_clear_selection)
12321         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12322         (mac_put_selection_value, mac_selection_has_target_p)
12323         (mac_get_selection_value, mac_get_selection_target_list)
12324         (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12325         Move functions to mactoolbox.c.
12326         (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12327         Likewise.
12328         (copy_scrap_flavor_data, mac_handle_service_event)
12329         (install_service_handler) [MAC_OSX]: Likewise.
12330         (syms_of_macselect) <Vmac_dnd_known_types>:
12331         Use mac_dnd_default_known_types.
12333         * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12334         Move to mactoolbox.c.
12335         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12336         (Fx_selection_owner_p): Add EXFUN.
12337         (install_window_handler, remove_window_handler, XSetWindowBackground):
12338         Remove externs.
12339         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12340         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12341         (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12342         (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12343         (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12344         (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12345         (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12346         (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12347         (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12348         (create_and_show_popup_menu, mac_get_selection_from_symbol)
12349         (mac_valid_selection_target_p, mac_clear_selection)
12350         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12351         (mac_put_selection_value, mac_selection_has_target_p)
12352         (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12353         (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12354         (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12355         (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12356         (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12357         (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12358         (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12359         (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12360         (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12362         * mactoolbox.c: New file.
12364 2008-04-18  Jason Rumney  <jasonr@gnu.org>
12366         * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12368 2008-04-18  Stefan Monnier  <monnier@iro.umontreal.ca>
12370         * character.c (Fmultibyte_char_to_unibyte):
12371         Return latin1 chars unchanged.
12373         * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12374         relocated if it points to `name'.
12376 2008-04-17  Kenichi Handa  <handa@m17n.org>
12378         * data.c (Faset): Allow setting a multibyte character in an
12379         ASCII-only unibyte string.
12381         * lisp.h (STRING_SET_MULTIBYTE): New macro.
12383 2008-04-16  Stefan Monnier  <monnier@iro.umontreal.ca>
12385         * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12386         done in config.h.
12388 2008-04-16  Juanma Barranquero  <lekktu@gmail.com>
12390         * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12391         (Fchar_direction): Add usage in the docstring.
12393 2008-04-15  Chong Yidong  <cyd@stupidchicken.com>
12395         * keyboard.c (read_key_sequence): Remove always-true checks.
12397 2008-04-14  Jason Rumney  <jasonr@gnu.org>
12399         * w32font.c (w32font_open_internal): Set max_bounds.descent in
12400         compatibility struct, for better underline positioning.
12402 2008-04-13  David Hansen  <david.hansen@gmx.net>
12404         * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12405         string.
12407 2008-04-12  Dan Nicolaescu  <dann@ics.uci.edu>
12409         * m/hp800.h (XUINT, XSET): Remove.
12411 2008-04-12  Juanma Barranquero  <lekktu@gmail.com>
12413         * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12414         previous change.
12416 2008-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
12418         * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12419         Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12421 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
12423         * keymap.h (map_keymap_canonical): Declare.
12424         * xmenu.c (single_keymap_panes): Use it.
12426 2008-04-11  Glenn Morris  <rgm@gnu.org>
12428         * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12429         set the target's value to that of the alias.
12431 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
12433         * term.c (set_tty_color_mode): Left over typo.
12435 2008-04-10  Michael Albinus  <michael.albinus@gmx.de>
12437         * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12438         only after check for file name handler functions.  Signal, when
12439         native functionality is not supported.
12440         (syms_of_fileio): Declare it unconditionally.
12442 2008-04-10  Jason Rumney  <jasonr@gnu.org>
12444         * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12445         (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12447         * w32.c (logon_network_drive): Also logon to remote drives that
12448         are mapped to drive letters.
12450 2008-04-10  Glenn Morris  <rgm@gnu.org>
12452         * xdisp.c (truncate-partial-width-windows): Doc fix.
12454 2008-04-10  Stefan Monnier  <monnier@iro.umontreal.ca>
12456         * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12457         Move functions to minibuffer.el.
12458         (syms_of_fileio): Don't declare them.
12460 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
12462         * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12463         (syms_of_minibuf): Remove its initialization.
12465         * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12467 2008-04-09  Juanma Barranquero  <lekktu@gmail.com>
12469         * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12471 2008-04-09  Jason Rumney  <jasonr@gnu.org>
12473         * makefile.w32-in (distclean): Delete makefile too.
12474         (maintainer-clean): New target.
12476         * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12478         * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12479         for new font backend and composite cases.
12481 2008-04-09  Jan Djärv  <jan.h.d@swipnet.se>
12483         * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12484         Most of the code moved to run_timers.
12485         (do_pending_atimers): Call run_timers.
12486         (run_timers): New function.
12488         * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12489         run atimers.
12491         * process.c (wait_reading_process_output): The same as above.
12493 2008-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
12495         * minibuf.c (last_exact_completion): Remove variable.
12496         (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12497         (complete_and_exit_1, complete_and_exit_2)
12498         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12499         (Fdisplay_completion_list, display_completion_list_1)
12500         (Fminibuffer_completion_help, Fself_insert_and_exit)
12501         (Fexit_minibuffer, Fminibuffer_message): Move functions to
12502         minibuffer.el.
12503         (syms_of_minibuf): Remove corresponding initializations.
12505         * keyboard.c (Qdeactivate_mark): New var.
12506         (command_loop_1): Use it to call `deactivate-mark'.
12507         (syms_of_keyboard): Initialize it.
12509         * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12510         to another frame.
12511         * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12512         Don't call set_tty_color_mode.
12513         (store_frame_param): Reset previous_frame rather than call
12514         set_tty_color_mode.
12515         * term.c (set_tty_color_mode): Rewrite.
12516         * dispextern.h (set_tty_color_mode): New type.
12517         * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12519 2008-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
12521         * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12522         for generic chars, which do not exist any more in emacs-unicode.
12524 2008-04-08  Michael Albinus  <michael.albinus@gmx.de>
12526         * coding.c (detect_coding_emacs_mule)
12527         (Ffind_operation_coding_system): Fix typo.
12529 2008-04-08  Jason Rumney  <jasonr@gnu.org>
12531         * w32uniscribe.c (SNAME): Extract only symbol name.
12533         * w32font.h (struct w32_metric_cache): New struct.
12534         (w32font_info): Use it.
12535         (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12536         (CACHE_BLOCKSIZE): New constants.
12538         * w32font.c (Qja, Qko, Qzh): New symbols.
12539         (syms_of_w32font): Initialise them.
12540         (font_matches_spec): Use them to filter by language.
12541         (recompute_cached_metrics): Remove function.
12542         (compute_metrics, clear_cached_metrics): New functions.
12543         (w32font_encode_char): Use them to manage metric cache.
12544         (w32font_text_extents): Cache metrics for all glyphs on demand.
12545         Delay converting glyph indices to WORD until needed.
12546         (w32font_open_internal): Initialize metric cache to empty.
12547         (registry_to_w32_charset): Charset should always be a symbol.
12548         (fill_in_logfont, list_all_matching_fonts): Family should
12549         always be a symbol.
12551 2008-04-06  Jason Rumney  <jasonr@gnu.org>
12553         * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12554         Give up if glyph indices not supported.  Use uniscribe obtained
12555         ABC widths for individual metrics.  Map glyph clusters back to
12556         characters using fClusterStart flag.  Return number of glyphs
12557         produced, not chars processed.
12558         (uniscribe_shape): Map char at FROM to current glyph.
12560 2008-04-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12562         * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12563         Use SetMenuItemHierarchicalMenu.
12565 2008-04-05  Jason Rumney  <jasonr@gnu.org>
12567         * image.c (pbm_load): Allow color values up to 65535.
12568         Throw an error if max_color_idx is outside the supported range.
12569         Report an error when image size is invalid.
12570         Read two bytes at a time when raw images have max_color_idx above 255.
12572 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
12574         * w32.c (readdir): If FindFirstFile/FindNextFile return in
12575         cFileName a file name that includes `?' characters, use the 8+3
12576         alias in cAlternateFileName instead.
12578 2008-04-05  Kenichi Handa  <handa@ni.aist.go.jp>
12580         * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12581         append "CCL: Quitted" when the CCL program is quitted.
12582         (setup_ccl_program): Initialize ccl->quit_silently to zero.
12584         * ccl.h (struct ccl_program): New member quit_silently.
12586 2008-04-05  Chong Yidong  <cyd@stupidchicken.com>
12588         * search.c (compile_pattern_1): Treat non-nil and non-string of
12589         search-spaces-regexp as nil.
12591         * minibuf.c (Fassoc_string): Tweak docstring.
12593 2008-04-05  Eli Zaretskii  <eliz@gnu.org>
12595         * dired.c (Ffile_attributes): Support inode numbers wider than 32
12596         bits.  Remove ugly WINDOWSNT-specific kludge introduced on
12597         2008-03-14 to force inode be positive.
12599         * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12600         _S_* ones, since we now use our own sys/stat.h.
12601         (stat, fstat): Don't mangle the inode number.
12602         (init_user_info): Don't restrict UID and GID to 0-60000 range.
12604 2008-04-04  Stefan Monnier  <monnier@iro.umontreal.ca>
12606         * frame.h (struct frame): Give one more bit to `visible' since we use
12607         values larger than 1 to indicate obscured frames on ttys.
12609         * keymap.c (Qkeymap_canonicalize): New var.
12610         (Fmap_keymap_internal): New fun.
12611         (describe_map): Use keymap-canonicalize.
12613         * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12614         (Fundo_boundary): Set them.
12615         (syms_of_undo): Initialize them.
12616         (record_point): Use them instead of last_point_position*.
12617         (last_undo_buffer): Change type.
12619 2008-04-04  Jason Rumney  <jasonr@gnu.org>
12621         * w32font.c (w32font_text_extents): Use font's ascent and descent.
12622         (recompute_cached_metrics): Don't set ascent and descent per char.
12624         * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12625         (uniscribe_check_otf): Add GC protection before consing.
12626         Rearrange loop for counting features.
12628 2008-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
12630         * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12631         buffer with byte-size of source buffer.
12633 2008-04-03  Chong Yidong  <cyd@stupidchicken.com>
12635         * callint.c (Fcall_interactively): Handle temporary region even
12636         when shift-select-mode is off.
12638 2008-04-03  Jason Rumney  <jasonr@gnu.org>
12640         * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12642 2008-04-03  Kenichi Handa  <handa@m17n.org>
12644         * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12645         (CATEGORY_MASK_UTF_16): Likewise.
12646         (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12647         binary file.
12648         (detect_coding): Add null-byte detection for a binary file.
12649         (detect_coding_system): Likewise.
12651 2008-04-03  Jason Rumney  <jasonr@gnu.org>
12653         * w32uniscribe.c: New file.
12655         * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12657         * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12659         * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12660         (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12661         (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12662         (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12663         (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12664         (Qphonetic): New symbols.
12665         (syms_of_w32font): Initialize them.
12666         (font_supported_scripts): Use them.
12667         (w32font_list_family): List all charsets.
12668         (w32font_text_extents, recompute_cached_metrics): Fix metric
12669         calculations.
12670         (w32_enumfont_pattern_entity): Make full_type a DWORD.
12671         Give opentype fonts their own format.
12672         (font_matches_spec): New arguments backend and logfont.
12673         Handle :otf spec for uniscribe backend.
12674         (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12675         (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12677         * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12678         font backend.
12679         (globals_of_w32fns): Initialize uniscribe font backend.
12681         * makefile.w32-in (CONFIG_H): New variable.  Use it to clean up
12682         dependencies.
12683         (w32uniscribe.$(O)): New file to build.
12684         (FONT_OBJ): Include w32uniscribe.$(O).
12685         (LIBS): Add uniscribe libraries.
12687         * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12689 2008-04-02  Chong Yidong  <cyd@stupidchicken.com>
12691         * callint.c (Vshift_select_mode): New var.
12692         (Finteractive): Document new ^ spec.
12693         (Fcall_interactively): Call handle-shift-selection if the ^ spec
12694         is present.
12696         * keyboard.c (Vthis_command_keys_shift_translated): New var.
12697         (command_loop_1): Avoid running the direct display versions of
12698         forward-char and backward-char if shift-selection may occur.
12699         (read_key_sequence): Set Vthis_command_keys_shift_translated if
12700         shift-translation takes place.
12702         * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12703         avoid clobbering by define-minor-mode.
12705         * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12706         (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12708         * syntax.c (Fforward_word): Add ^ interactive spec.
12710         * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12711         (Fscroll_right): Add ^ interactive spec.
12713 2008-04-01  Stefan Monnier  <monnier@iro.umontreal.ca>
12715         * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12717         * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12719         * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12721 2008-03-31  Juri Linkov  <juri@jurta.org>
12723         * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12725 2008-03-30  Jan Djärv  <jan.h.d@swipnet.se>
12727         * gtkutil.c (xg_set_geometry): Fix indentation.
12728         (xg_resize_outer_widget): Remove.
12729         (x_wm_size_hint_off): Fix indentation.
12730         (xg_frame_set_char_size): Call flush_and_sync after
12731         gtk_window_resize.
12732         (x_wm_set_size_hint): Pass NULL as geometry window to
12733         gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12734         Add menu bar and tool bar height to base height.
12735         (xg_update_frame_menubar, free_frame_menubar)
12736         (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12737         (update_frame_tool_bar, free_frame_tool_bar):
12738         Change xg_resize_outer_widget to xg_frame_set_char_size.
12740 2008-03-30  Michael Albinus  <michael.albinus@gmx.de>
12742         * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12743         (Fdbus_call_method): New parameter TIMEOUT.
12744         (dbus-send-signal): Optimize UNGCPRO call.
12746 2008-03-29  Juri Linkov  <juri@jurta.org>
12748         * window.c (Fdisplay_buffer): Move call to
12749         Vsplit_window_preferred_function out of conditions that check
12750         if window is eligible for vertical splitting.
12751         When Vsplit_window_preferred_function is non-nil, call it and use
12752         its non-nil return value as window.  Otherwise, continue doing
12753         vertical splitting using Fsplit_window with arg horflag=nil.
12754         (syms_of_window) <Vsplit_window_preferred_function>: Change the
12755         default value from `split-window' to nil.
12757 2008-03-29  Juri Linkov  <juri@jurta.org>
12759         * callint.c (Fcall_interactively): Revert 2008-03-16 change
12760         for interactive code letters 'b' and 'B'.
12762 2008-03-29  Eli Zaretskii  <eliz@gnu.org>
12764         * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12765         multibyte string.
12767 2008-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
12769         * keyboard.c (pending_funcalls): New var.
12770         (timer_check): Run it.
12771         (syms_of_keyboard): Initialize it.
12772         * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12773         (Vdelete_terminal_functions): New vars.
12774         (syms_of_terminal): Initialize them.
12775         (Fdelete_terminal): Run delete-terminal-functions.
12776         * xdisp.c (safe_eval): Rewrite.
12777         (safe_call2): New fun.
12778         * frame.c (Qdelete_frame_functions): New var.
12779         (syms_of_frame): Initialize it.
12780         (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12781         * lisp.h (safe_call2, pending_funcalls): Declare.
12783 2008-03-28  Andreas Schwab  <schwab@suse.de>
12785         * indent.c (Fmove_to_column): Move declaration before statements.
12787 2008-03-27  Stefan Monnier  <monnier@iro.umontreal.ca>
12789         * frame.h (enum fullscreen_type): Give it a name.  Move it before use.
12790         (struct frame): Use bit fields for boolean vars.
12792         * process.c (server_accept_connection): Simplify naming.
12793         (emacs_get_tty_pgrp): Use SDATA.
12795         * coding.c (decode_coding_object): Fix last change.
12797 2008-03-27  Jason Rumney  <jasonr@gnu.org>
12799         * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12801 2008-03-27  Kenichi Handa  <handa@ni.aist.go.jp>
12803         * charset.c (Fdefine_charset_internal): Change the way of
12804         registering charsets in Vcharset_order_list.
12805         (syms_of_charset): Make the charset `eight-bit' supplementary.
12807 2008-03-26  Alexandre Oliva  <aoliva@redhat.com>  (tiny change)
12809         * regex.c (EXTEND_BUFFER): Change order of pointer addition
12810         operations, to avoid having the difference between pointers
12811         overflow.
12813 2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
12815         * indent.c (check_display_width): New fun.
12816         (scan_for_column): Use it.
12818         * data.c (syms_of_data): Mark most-positive-fixnum and
12819         most-negative-fixnum as constants.
12821         * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12823         * indent.c (scan_for_column): Extract from current_column_1.
12824         Merge with the same code from Fmove_to_column.
12825         (current_column_1, Fmove_to_column): Use it.
12827 2008-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
12829         * keymap.c (map_keymap_internal): New fun.
12830         (map_keymap): Use it.
12831         (Fmap_keymap_internal): New fun.
12832         (Fmap_keymap): Remove left-out test from before make_save_value.
12834         * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12836         * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12837         Use XCAR/XCDR.
12839         * process.h (struct Lisp_Process): Remove filter_multibyte.
12840         * process.c (QCfilter_multibyte): Remove.
12841         (setup_process_coding_systems): Don't use filter_multibyte.
12842         (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12843         (read_process_output): Don't adjust multibyteness to filter_multibyte.
12844         (Fset_process_filter_multibyte): Change the coding-system to
12845         approximate the previous behavior.
12846         (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12847         coding-system.
12849         * coding.c (decode_coding_object): When not decoding into a buffer,
12850         obey the coding system's preference of (uni|multi)byte.
12852 2008-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
12854         * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12855         every char is changed and has a different byte-length.
12856         (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12857         Fix int -> EMACS_INT.
12859 2008-03-23  David Hansen  <david.hansen@gmx.net>
12861         * dbusbind.c (xd_read_message): Remove extra copying of message
12862         strings.  Check for NULL `interface' or `member'.
12864 2008-03-22  Eli Zaretskii  <eliz@gnu.org>
12866         * w32.c (readdir): If FindFirstFile/FindNextFile return in
12867         cFileName a file name that includes `?' characters, use the 8+3
12868         alias in cAlternateFileName instead.
12870 2008-03-21  Stefan Monnier  <monnier@iro.umontreal.ca>
12872         * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12874 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
12876         * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12877         (set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
12878         work on current_buffer only instead (that was already the case
12879         for some of the code anyway).
12880         * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12881         (temp_set_point, temp_set_point_both): Use EMACS_INT.
12882         (SET_PT, SET_PT_BOTH): Adjust.
12883         * intervals.h (set_point, temp_set_point, set_point_both)
12884         (temp_set_point_both): Remove redundant declarations.
12886 2008-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
12888         * fileio.c (Finsert_file_contents):
12889         * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12890         * buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
12891         when buffer != current_buffer anyway.
12893 2008-03-20  Andreas Schwab  <schwab@suse.de>
12895         * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12896         as default.
12898 2008-03-19  Jason Rumney  <jasonr@gnu.org>
12900         * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12901         (syms_of_w32fns): Initialize them.
12902         (HOURGLASS_ID): New constant.
12903         (x_window_to_frame): Don't check hourglass_window.
12904         (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12905         (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12906         (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12907         (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12908         Only change the cursor if hourglass is not active.
12909         (Fx_create_frame): Initialize frame's current_cursor.
12910         (hourglass_atimer): Remove.
12911         (hourglass_started): New function.
12912         (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12913         (show_hourglass): Adapt to w32, changing argument to frame.
12915         * w32term.h (struct w32_output): Remove hourglass_window.
12916         Add current_cursor.
12918         * eval.c (call_debugger, Fsignal):
12919         * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12920         (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12921         (Fexecute_extended_command, cancel_hourglass_unwind):
12922         * minibuf.c (read_minibuf):
12923         * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12925 2008-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
12927         * window.c (run_funs): New fun.
12928         (run_window_configuration_change_hook): Use it to run the buffer-local
12929         and the global part of the hook.
12931         * xdisp.c (format_mode_line_unwind_data): Add window argument.
12932         (unwind_format_mode_line): Restore selected window.
12933         (x_consider_frame_title, Fformat_mode_line): Set selected window.
12935 2008-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
12937         * editfns.c (Fchar_equal): Check they are valid characters.
12939         * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12941 2008-03-17  Andreas Schwab  <schwab@suse.de>
12943         * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12944         against a charset.
12946         * lisp.h (Fbuffer_list): Declare.
12948 2008-03-17  Jan Djärv  <jan.h.d@swipnet.se>
12950         * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12951         handlebox_widget is != 0.
12953 2008-03-16  Juri Linkov  <juri@jurta.org>
12955         * callint.c (Fcall_interactively): For interactive code letters
12956         'b' and 'B' put the buffer list into the list of default "future"
12957         values of the minibuffer.
12959 2008-03-16  Andreas Schwab  <schwab@suse.de>
12961         * keyboard.c (read_key_sequence): Fix downcasing of letters with
12962         modifiers.
12964         * regex.c (re_match_2_internal): Correct matching of a charset
12965         against latin-1 characters.
12967 2008-03-16  Kenichi Handa  <handa@m17n.org>
12969         * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12970         (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12971         (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12972         (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12973         (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12974         CHAR_STRING_ADVANCE.
12975         (produce_chars): Fix for the case that the source and the
12976         destination are the same buffer.  Use CHAR_STRING_ADVANCE_NO_UNIFY
12977         instead of CHAR_STRING_ADVANCE.
12978         (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12979         STRING_CHAR_ADVANCE.
12981 2008-03-15  Andreas Schwab  <schwab@suse.de>
12983         * regex.c (re_match_2_internal): Correct matching of eight bit
12984         characters in unibyte strings.
12986 2008-03-15  Martin Rudalics  <rudalics@gmx.at>
12988         * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12989         at end of range when it coincides with the end of the buffer.
12991 2008-03-14  Eli Zaretskii  <eliz@gnu.org>
12993         * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12995         * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12997 2008-03-14  Jason Rumney  <jasonr@gnu.org>
12999         * editfns.c (initial_tz): New variable.
13000         (syms_of_editfns): Initialize it.
13001         (Fset_time_zone_rule): Set it when first called.
13002         Use it when TZSTRING is nil.
13004         * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13005         (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13006         (monitor_from_point_fn, get_monitor_info_fn): New globals.
13007         (globals_of_w32fns): Initialize them.
13008         (compute_tip_xy): Use them to position tooltips.
13010 2008-03-14  Glenn Morris  <rgm@gnu.org>
13012         * emacs.c (main): Revert previous change.
13013         (standard_args): Revert -internal-script back to -scriptload,
13014         and remove the long-option form.
13016 2008-03-13  Glenn Morris  <rgm@gnu.org>
13018         * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13019         Remove option -enable-font-backend.
13021 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
13023         * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13025 2008-03-11  Jan Djärv  <jan.h.d@swipnet.se>
13027         * xterm.c (x_connection_closed): For GTK: If this is the last
13028         terminal just exit without closing the display.
13030 2008-03-11  Jason Rumney  <jasonr@gnu.org>
13032         * w32font.c (w32font_full_name): Use floor to round.
13034 2008-03-10  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
13036         * sound.c (alsa_configure): Declare vol at beginning of block.
13038         * fontset.c (Ffontset_info): Remove extra semicolon.
13040 2008-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13042         * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13043         size of resulting string.
13045 2008-03-10  Jason Rumney  <jasonr@gnu.org>
13047         * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13049 2008-03-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13051         * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13052         Don't pretend as if characters with display property haven't been
13053         consumed for string-replacing-string case.
13055 2008-03-08  Kim F. Storm  <storm@cua.dk>
13057         * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13058         (get_next_display_element, next_element_from_string)
13059         (next_element_from_ellipsis, next_element_from_buffer): Use it.
13061 2008-03-08  Andreas Schwab  <schwab@suse.de>
13063         * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13065 2008-03-06  Jason Rumney  <jasonr@gnu.org>
13067         * w32font.c (w32_registry): Take font_type argument.  Use ANSI
13068         when charset not specified.  Only translate ANSI to unicode when
13069         font_type is truetype.
13070         (w32font_coverage_ok): New function.
13071         (add_font_entity_to_list): Use it to filter unsuitable fonts.
13073 2008-03-05  Kenichi Handa  <handa@ni.aist.go.jp>
13075         * lread.c (Fread_char): Resolve modifiers.
13076         (Fread_char_exclusive): Likewise.
13078         * character.c (char_resolve_modifier_mask): New function.
13079         (char_string): Use char_resolve_modifier_mask.
13080         (Fchar_resolve_modifiers): New function.
13081         (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13082         function.
13084 2008-03-04  Jason Rumney  <jasonr@gnu.org>
13086         * makefile.w32-in: Always include w32font.c in the build.
13087         * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13089 2008-03-04  Andreas Schwab  <schwab@suse.de>
13091         * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13092         (versionclean): Likewise.
13094 2008-03-04  Juanma Barranquero  <lekktu@gmail.com>
13096         * .cvsignore: Add oo.
13098 2008-03-03  Andreas Schwab  <schwab@suse.de>
13100         * coding.c (decode_coding_object): Inhibit gap shrinking while
13101         decoding in place.
13103 2008-03-03  Dan Nicolaescu  <dann@ics.uci.edu>
13105         * w32term.c: Remove unused include "gnu.h".
13106         * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13108         * gnu.h: Rename to ...
13109         * emacs-icon.h: ... this.
13110         * xterm.c: Use emacs-icon.h instead of gnu.h.
13111         * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13113 2008-03-03  Juanma Barranquero  <lekktu@gmail.com>
13115         * w32font.c: Include math.h.
13117 2008-03-03  Jason Rumney  <jasonr@gnu.org>
13119         * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13120         Compute options separately.
13121         (w32font_open_internal): Set glyph_idx before caching metrics.
13123         * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13124         Define if system headers don't.
13125         (struct w32font_info): Enlarge ascii_metrics.  Add glyph_idx.
13126         (w32font_encode_char): Don't declare here.
13128         * w32font.c (Quniscribe, QCformat): New symbols.
13129         (syms_of_w32font): Define them.
13130         (w32font_has_char): Indicate uncertainty.
13131         (w32font_encode_char): Encode as glyph point.  Make static.
13132         (recompute_cached_metrics): New function.
13133         (w32font_open_internal): Use it.  Set font to use glyph points
13134         initially.  Set format based on type of font.
13135         (w32font_text_extents, w32font_draw): Optionally use glyph points.
13136         (w32_enumfont_pattern_entity): Accept backend arg.  Set type based
13137         on it.  Set format based on information available here.
13138         (add_font_entity_to_list): Identify backend based on opentype_only.
13140 2008-03-02  Andreas Schwab  <schwab@suse.de>
13142         * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13144         * coding.c (decode_coding_big5, produce_chars):
13145         Fix typos in last change.
13147 2008-03-02  Kentaro Ohkouchi  <nanasess@fsm.ne.jp>
13149         * gnu.h: New icon.
13151 2008-03-02  Kenichi Handa  <handa@m17n.org>
13153         * coding.c (decode_coding_utf_8): When eol-type of CODING is
13154         `dos', don't decode '\r' if that is the last in the source.
13155         (decode_coding_utf_16, decode_coding_emacs_mule)
13156         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13157         (decode_coding_raw_text, decode_coding_charset): Likewise.
13158         (produce_chars): Don't decode EOL here.  Use EMACS_INT.
13160 2008-03-01  Jason Rumney  <jasonr@gnu.org>
13162         * w32font.c (w32font_full_name): Report point size for scalable fonts.
13164 2008-03-01  Kim F. Storm  <storm@cua.dk>
13166         * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13168 2008-03-01  Jason Rumney  <jasonr@gnu.org>
13170         * w32font.c (w32font_full_name): New function.
13171         (w32font_open_internal): Use it.
13173 2008-03-01  Kim F. Storm  <storm@cua.dk>
13175         * dispnew.c (line_draw_cost): Fix invalid glyph check.
13177 2008-03-01  Jason Rumney  <jasonr@gnu.org>
13179         * font.c (font_unparse_fcname): Increase len when style is a symbol.
13181 2008-03-01  Jan Djärv  <jan.h.d@swipnet.se>
13183         * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13184         xg_frame_resized when the event is for the edit widget.
13186         * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13188         * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13189         set_char_size.
13190         (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
13191         operations on widgets here.  Just set frame size if needed.
13192         (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13193         (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13194         (x_wm_set_size_hint): Set size hints on the edit widget only, not
13195         the whole frame.
13196         (xg_create_tool_bar): Move attachment of the tool bar to
13197         xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
13198         (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13200 2008-03-01  Jason Rumney  <jasonr@gnu.org>
13202         * w32fns.c (w32_msg_pump): Disable debug code.
13204 2008-03-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13206         * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13208 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
13210         * xdisp.c (next_overlay_string): Don't set
13211         overlay_strings_at_end_processed_p if we're currently reading from
13212         a display string.
13214 2008-02-29  Stefan Monnier  <monnier@iro.umontreal.ca>
13216         * xdisp.c (get_overlay_strings_1): Fix typo.
13218 2008-02-29  Chong Yidong  <cyd@stupidchicken.com>
13220         * xdisp.c (get_overlay_strings_1): Add missing argument type.
13222 2008-02-28  Kenichi Handa  <handa@ni.aist.go.jp>
13224         * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13226         * xdisp.c (display_mode_element): Cancel the previous change.
13227         (decode_mode_spec): Likewise.
13228         (handle_auto_composed_prop): Don't make composition if it->string
13229         is a string.
13231 2008-02-27  Kim F. Storm  <storm@cua.dk>
13233         * lisp.h (GLYPH): Change type from int to struct with separate char
13234         and face_id members.
13235         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13236         (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13237         (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13238         (GLYPH_CHAR, GLYPH_FACE): ... these.  Change users.
13239         (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove.  Rewrite users to use ...
13240         (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13241         (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13242         (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13243         handle new Lisp glyph code encoding, either an integer or a cons.
13245         * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13246         (GLYPH_ALIAS): Delete.
13247         (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13248         (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13249         (GLYPH_FROM_CHAR): Replace macro by ...
13250         (SET_GLYPH_FROM_CHAR): ... this macro.  Change users.
13252         * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13253         (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13254         (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro.  Change users.
13255         (GLYPH_INVALID_P): New macro.
13256         (spec_glyph_lookup_face): Update prototype.
13258         * dispnew.c (line_draw_cost): Adapt to new glyph type.
13259         (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13260         new glyph code encoding.
13261         (spec_glyph_lookup_face): No return value; update passed glyph instead.
13262         (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13264         * xdisp.c (get_next_display_element, next_element_from_display_vector):
13265         Adapt to new glyph type and new glyph code encoding.
13267         * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13269         * indent.c (current_column, current_column_1, Fmove_to_column)
13270         (compute_motion): Adapt to new glyph code encoding.
13272         * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13274 2008-02-27  Chong Yidong  <cyd@stupidchicken.com>
13276         * process.c (wait_reading_process_output): Check for window
13277         changes caused by timers.
13278         Suggested by Johan Bockgård.
13280 2008-02-27  Glenn Morris  <rgm@gnu.org>
13282         * emacs.c (USAGE1): Add `--disable-font-backend'.
13284 2008-02-27  Stefan Monnier  <monnier@iro.umontreal.ca>
13286         * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13287         is made to the buffer.
13289 2008-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
13291         * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13292         (face_at_string_position):
13293         * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13294         (face_at_string_position):
13295         * xdisp.c (display_string, next_overlay_change):
13296         * buffer.h (overlays_at):
13297         * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13298         Update callers.
13300 2008-02-26  Chong Yidong  <cyd@stupidchicken.com>
13302         * editfns.c (Fformat): Doc fix.
13304 2008-02-26  Juanma Barranquero  <lekktu@gmail.com>
13306         * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13307         (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13308         (Ffont_otf_alternates, Fquery_font): Doc fixes.
13310 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
13312         * buffer.c (Fbuffer_swap_text): New function.
13313         (syms_of_buffer): Defsubr it.
13315 2008-02-25  Chong Yidong  <cyd@stupidchicken.com>
13317         * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13319 2008-02-25  Jason Rumney  <jasonr@gnu.org>
13321         * w32font.c (w32font_draw): Draw one character at a time when padding.
13323 2008-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
13325         * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13326         Handle a nil arg.  Use run_window_configuration_change_hook.
13327         (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13328         (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13329         Use run_window_configuration_change_hook.
13331 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
13333         * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13334         1-pixel width.
13336 2008-02-25  Kenichi Handa  <handa@ni.aist.go.jp>
13338         * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13339         (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13340         if the glyph in the font is zero pixel with.
13342         * dispextern.h (struct glyph_string): New member padding_p.
13344         * w32font.c (w32font_draw): Pay attention to s->padding_p.
13346         * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13348         * xfont.c (xfont_draw): Pay attention to s->padding_p.
13350         * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13352         * font.c: If the font driver doesn't have `shape' function, return Qnil.
13354 2008-02-25  Jason Rumney  <jasonr@gnu.org>
13356         * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13358 2008-02-24  Stefan Monnier  <monnier@iro.umontreal.ca>
13360         Allow fine-grained image-cache flushing.
13361         * dispextern.h (struct image): Add `dependencies' field.
13362         (clear_image_caches): Change arg to Lisp_Object.
13363         * image.c (make_image): Initialize `dependencies' field.
13364         (clear_image_cache): Change arg to allow fine-grained flushing.
13365         Perform the flush even if image-cache-eviction-delay is nil.
13366         (clear_image_caches): Change arg to Lisp_Object.
13367         (Fclear_image_cache): Expand meaning of the argument.
13368         (mark_image): Mark `dependencies' field.
13369         * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13370         (lface_hash): Use XHASH rather than XFASTINT.
13371         (face_at_buffer_position): Fix int -> EMACS_INT position.
13372         * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13373         (select_frame_for_redisplay): Remove code duplication.
13374         (redisplay_internal): Adapt arg to call to clear_image_caches.
13376 2008-02-24  Dan Nicolaescu  <dann@ics.uci.edu>
13378         * s/vms4-0.h:
13379         * s/vms4-2.h:
13380         * s/vms4-4.h:
13381         * s/vms5-5.h: Remove, unused.
13383         * s/irix5-2.h:
13384         * s/irix6-0.h:
13385         * s/riscos5.h:
13386         * s/mach-bsd4-3.h:
13387         * m/mips4.h: Remove files for obsolete systems.
13389         * Makefile.in:
13390         * filelock.c:
13391         * unexmips.c:
13392         * m/hp9000s300.h:
13393         * m/iris4d.h:
13394         * s/aix3-1.h:
13395         * s/hpux.h:
13396         * s/msdos.h:
13397         * s/usg5-0.h:
13398         * s/usg5-2-2.h:
13399         * s/usg5-2.h:
13400         * s/usg5-3.h: Remove references to obsolete variables.
13402         * s/irix5-0.h: Remove, move all the contents ...
13403         * s/irix6-5.h: ... here.  Simplify.
13404         * config.in: Regenerate.
13406 2008-02-24  Jason Rumney  <jasonr@gnu.org>
13408         * w32term.c (x_draw_glyph_string_background): Clear the background
13409         manually when cleartype is in use.
13410         (x_draw_glyph_string_foreground): Draw text transparently when
13411         cleartype is in use.
13413         * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13414         a font into it unless we have to.
13416 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
13418         * intervals.h (INT_LISPLIKE): Remove.  It may misfire.
13419         (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13421 2008-02-18  Jason Rumney  <jasonr@gnu.org>
13423         * w32fns.c (Fw32_shell_execute): Encode parameters.
13425 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
13427         * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13429 2008-02-05  Juanma Barranquero  <lekktu@gmail.com>
13431         * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13433 2008-02-24  Ulrich Neumerkel  <ulrich@complang.tuwien.ac.at>  (tiny change)
13435         * xterm.c (x_set_offset): Don't change the gravity if
13436         CHANGE_GRAVITY is -1.
13438 2008-02-23  Chong Yidong  <cyd@stupidchicken.com>
13440         * fileio.c (auto_save_error_occurred): New var.
13441         (auto_save_error): Set it.
13442         (Fdo_auto_save): Don't overwrite the error message if an auto-save
13443         error occurred.
13445 2008-02-23  Eli Zaretskii  <eliz@gnu.org>
13447         * w32.c (globals_of_w32): Add initializations for
13448         g_b_init_get_sid_sub_authority and
13449         g_b_init_get_sid_sub_authority_count.
13451 2008-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
13453         * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13454         (font_parse_xlfd): Use them for sanity check.
13455         (Finternal_set_font_style_table): Make sure the table is bijective.
13457         Consolidate the image_cache to the terminal struct.
13458         * termhooks.h (P_): Remove redundant def.
13459         (struct terminal): New field `image_cache'.
13460         * frame.h (FRAME_IMAGE_CACHE): New macro.  Use it everywhere in place
13461         of FRAME_X_IMAGE_CACHE.
13462         * xterm.h (struct x_display_info): Remove image_cache field.
13463         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
13464         * w32term.h (struct w32_display_info): Remove image_cache field.
13465         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
13466         * macterm.h (struct mac_display_info): Remove image_cache field.
13467         (FRAME_X_IMAGE_CACHE): Remove.  Use FRAME_IMAGE_CACHE instead.
13468         * xterm.c (x_term_init):
13469         * w32term.c (w32_term_init):
13470         * macterm.c (mac_term_init): Set the image_cache in the terminal.
13471         * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13472         Remove declarations.
13473         (clear_image_caches, mark_image_cache): New declarations.
13474         * xfaces.c (clear_face_cache):
13475         * xdisp.c (redisplay_internal): Use clear_image_caches.
13476         * image.c (clear_image_cache): Don't check that a frame is on
13477         a window-system before checking if it shares the same cache.
13478         (clear_image_caches): New function.
13479         (Fclear_image_cache): Use it.
13480         (mark_image): Move from allo.c.
13481         (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13482         * alloc.c (mark_image, mark_image_cache): Move to image.c.
13483         (mark_object): Don't call mark_image_cache for frames.
13484         (mark_terminals): Call mark_image_cache.
13486         * lisp.h (Fdelete_terminal): Declare.
13488         * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13489         (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13490         wrong_type_argument.
13492 2008-02-22  Kenichi Handa  <handa@ni.aist.go.jp>
13494         * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13495         malayalam.el, and tamil.el.  Add sinhala.el.
13497 2008-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13499         * xterm.c (x_connection_closed): Consolidate identical tests.
13500         (x_delete_terminal): Don't crash if called via x_connection_closed.
13502 2008-02-21  Kenichi Handa  <handa@ni.aist.go.jp>
13504         * xdisp.c (decode_mode_spec): New arg string.
13505         (display_mode_element): Adjust for the above change.
13507 2008-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
13509         * callint.c (Fcall_interactively): Use AREF.
13511 2008-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
13513         * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13515 2008-02-18  Jan Djärv  <jan.h.d@swipnet.se>
13517         * xfns.c (Fx_show_tip): Set string to " " if empty.
13519 2008-02-17  Dan Nicolaescu  <dann@ics.uci.edu>
13521         * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13522         with Qt.
13524 2008-02-17  Kenichi Handa  <handa@m17n.org>
13526         * ftfont.c (ftfont_shape): Return Lispy number.
13528         * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13529         for GCs.
13530         (Finternal_set_font_selection_order): Call font_update_sort_order
13531         only when enable_font_backend is set.
13532         (realize_x_face): Set face->font_info to that of default face only
13533         when enable_font_backend is set.
13535         * xdisp.c (handle_composition_prop): Set it->c to the fist
13536         character of the composed region.
13537         (fill_composite_glyph_string): Set base_face->font_info to
13538         s->font_info.  Get a face for ascii from base_face->ascii_face.
13539         (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13540         with a face already decided.
13541         (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13542         non-negative.
13543         (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13544         call font_prepare_composition unconditionally.
13546         * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13548         * xterm.h (struct x_display_info): New member font.
13550         * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13551         (x_set_mouse_face_gc, x_new_font): Likewise.
13552         (x_term_init): Setup display_info->font.
13553         (x_delete_terminal): Free display_info->font.
13555         * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13557         * ftxfont.c (ftxfont_default_fid): Delete it.
13558         (ftxfont_open): Set xfont->fid to 0.
13559         (ftxfont_end_for_frame): Clear data specific to the frame and the
13560         font-driver.
13562         * xftfont.c (xftfont_default_fid): Delete it.
13563         (xftfont_open): Set xfont->fid to 0.
13565         * fontset.c (FONTSET_OBJLIST): New macro.
13566         (fontset_find_font): Update font-object list of the fontset.
13567         (free_realized_fontset): New function.
13568         (free_face_fontset): Call free_realized_fontset.
13569         (Ffont_info): Call font_close_object only when enable_font_backend
13570         is set.
13572         * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13573         [HAVE_NTGUI]: Include w32term.h.
13574         [MAC_OS]: Include macterm.ch.
13575         (font_otf_ValueRecord): Use make_number.
13576         (font_finish_cache): Fix handling of reference count.
13577         (font_clear_cache): Update num_fonts.
13578         (font_open_entity): Update smallest_char_width and
13579         smallest_font_height of the frame.
13580         (font_close_object): Update num_fonts.
13581         (Fclear_font_cache): Fix finding the target cache data.
13583 2008-02-16  Glenn Morris  <rgm@gnu.org>
13585         * fontset.c (Finternal_char_font): Fix compilation warning.
13587 2008-02-16  Eli Zaretskii  <eliz@gnu.org>
13589         * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13590         instead of char arrays.  Enlarge the size of array passed to
13591         get_token_information.
13593         * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13594         warnings.
13596 2008-02-15  Dan Nicolaescu  <dann@ics.uci.edu>
13598         * .gdbinit: Don't set `args', it breaks gdb --args.
13600 2008-02-14  Stefan Monnier  <monnier@iro.umontreal.ca>
13602         * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13603         within a narrowed buffer.
13605 2008-02-14  Kenichi Handa  <handa@ni.aist.go.jp>
13607         * coding.c (decode_coding_object, encode_coding_object):
13608         Preserve Vdeactivate_mark.  Delete unnecessary call of Fcurrent_buffer.
13610 2008-02-12  Stefan Monnier  <monnier@iro.umontreal.ca>
13612         * coding.c (coding_set_destination): Use BEG_BYTE rather than
13613         hardcoding 1.
13614         (detect_coding_system):
13615         * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13616         (string_char_to_byte, string_byte_to_char, insert_from_gap):
13617         * insdel.c (insert_from_gap):
13618         * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13619         (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13620         (string_to_multibyte):
13621         * character.c (chars_in_text, multibyte_chars_in_text):
13622         * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13624         * character.h (FETCH_STRING_CHAR_ADVANCE)
13625         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13626         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13627         (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13629         * casefiddle.c (casify_region): Only call after-change and composition
13630         functions on the part of the region that was changed.
13632         * keyboard.c (read_avail_input):
13633         * frame.c (Fdelete_frame): Call Fdelete_terminal.
13635 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
13637         * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13638         (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13640 2008-02-11  Juanma Barranquero  <lekktu@gmail.com>
13642         * w32menu.c (push_submenu_start, push_submenu_end)
13643         (push_left_right_boundary, push_menu_pane, push_menu_item):
13644         * keyboard.c (read_key_sequence): Don't pass args with side effects
13645         to AREF, it fails when compiling with -DENABLE_CHECKING.
13647 2008-02-11  Kenichi Handa  <handa@ni.aist.go.jp>
13649         * Makefile.in (${lispsource}international/charprop.el):
13650         Delete this target.
13652         * search.c (boyer_moore): Fix incorrect synching of the trunk and
13653         emacs-unicode-2.
13655 2008-02-11  Stefan Monnier  <monnier@iro.umontreal.ca>
13657         * terminal.c (Fdelete_terminal): Clean up the `force' path.
13659 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13661         * frame.c (Qnoelisp): New symbol.
13662         (syms_of_frame): Initialize it.
13663         (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13664         harmless Elisp code, from a strong `force' from x_connection_closed.
13665         * frame.h (Qnoelisp): Declare.
13666         * xterm.c (x_connection_closed): Pass `noelisp'.
13668         * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13669         (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13670         (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13671         rather than `int' for the type of `type'.
13673 2008-02-10  Dan Nicolaescu  <dann@ics.uci.edu>
13675         * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13677         * Makefile.in (GNUC): Remove support for gcc-1.x.
13679 2008-02-10  Richard Stallman  <rms@gnu.org>
13681         * lisp.h (ASET): Use AREF, not ASLOT.
13683 2008-02-10  Stefan Monnier  <monnier@iro.umontreal.ca>
13685         * lisp.h (ASET): Check bounds.
13687 2008-02-10  Glenn Morris  <rgm@gnu.org>
13689         * buffer.c (mode-name): Doc fix.
13691 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
13693         * Makefile.in:
13694         * emacs.c:
13695         * gmalloc.c:
13696         * keyboard.c:
13697         * lisp.h:
13698         * m/ibm370aix.h:
13699         * process.c:
13700         * regex.c:
13701         * s/hpux.h:
13702         * sysdep.c:
13703         * sysselect.h:
13704         * systty.h:
13705         * unexec.c:
13706         * w32term.c:
13707         * xsmfns.c:
13708         * xterm.c: Remove code that deals with obsolete variables.
13710         * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13712         * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13713         nothing else needs it anymore.
13715 2008-02-09  Eli Zaretskii  <eliz@gnu.org>
13717         * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13718         instead of unibyte_char_to_multibyte.
13720 2008-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
13722         * s/gnu-linux.h: Remove commented out code.
13724         * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13726         * Makefile.in: Update what RMS says about using autoconf.
13727         (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13728         (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13729         (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13730         (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13732 2008-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
13734         * keymap.c (Fkey_description): Move side effect outside of macro call.
13736         * xfaces.c (Finternal_make_lisp_face):
13737         * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13739         * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13740         (syms_of_fontset): Use ASET.
13742         * fns.c (concat): Move side effect outside of macro call.
13743         (hash_clear): Use ASET.
13745 2008-02-08  Richard Stallman  <rms@gnu.org>
13747         * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13748         If FORCE, and frame has a surrogate minibuffer for another frame,
13749         delete the other frame first.
13751 2008-02-07  Timo Savola  <timo.savola@iki.fi>
13753         * xterm.c (x_detect_focus_change): Handle embed client message.
13754         (handle_one_xevent): Ditto.
13755         (handle_one_xevent): If embedded and we get a button press/release,
13756         request focus.
13757         (xembed_set_info, xembed_send_message): New functions.
13758         (x_make_frame_visible): Call xembed_set_info if embedded.
13759         (x_make_frame_invisible): Call xembed_set_info if embedded.
13760         (x_term_init): Initialize Xatom_XEMBED.
13761         (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13762         (x_iconify_frame): Ditto.
13764         * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13765         (enum xembed_info, enum xembed_message, enum xembed_focus)
13766         (enum xembed_modifier, enum xembed_accelerator): New.
13767         (xembed_set_info, xembed_send_message): Declare.
13768         (FRAME_X_EMBEDDED_P): New.
13770         * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13771         gtk_plug_new.
13773         * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13774         window ID of a frame.
13775         (x_window): Reparent frame if embedded.
13776         (Fx_create_frame): Don't set border width if embedded.
13778         * emacs.c (USAGE3): Add --parent-id.
13779         (standard_args): Ditto.
13781 2008-02-07  Jan Djärv  <jan.h.d@swipnet.se>
13783         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13785 2008-02-07  Jim Meyering  <meyering@redhat.com>
13787         Use "do...while (0)", not "if (1)...else" in macro definitions.
13788         The latter provokes a warning from gcc about the empty else, when
13789         followed by ";".  Also, without that trailing semicolon, it would
13790         silently swallow up any following statement.
13791         * syntax.h (SETUP_SYNTAX_TABLE)
13792         (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13793         * buffer.h (DECODE_POSITION): Likewise.
13794         * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13795         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13796         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13797         (FETCH_CHAR_ADVANCE): Likewise.
13798         (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13800 2008-02-07  Jim Meyering  <meyering@redhat.com>
13802         * lread.c [lint]: Don't include <sys/inode.h>.
13804 2008-02-07  Stefan Monnier  <monnier@iro.umontreal.ca>
13806         * xselect.c (x_handle_dnd_message):
13807         * xmenu.c (digest_single_submenu, xmenu_show):
13808         * xdisp.c (with_echo_area_buffer_unwind_data)
13809         (format_mode_line_unwind_data, unwind_format_mode_line)
13810         (display_menu_bar):
13811         * eval.c (Ffetch_bytecode):
13812         * doc.c (store_function_docstring):
13813         * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13814         (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13815         * buffer.c (add_overlay_mod_hooklist): Use ASET.
13817 2008-02-07  Kenichi Handa  <handa@m17n.org>
13819         * ftxfont.c (ftxfont_open): Don't set
13820         dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13822         * ftfont.c (ftfont_open): Fix previous change.
13824 2008-02-06  Jason Rumney  <jasonr@gnu.org>
13826         * w32font.c (w32font_text_extents): Fill in lbearing metric.
13827         Use cached metrics for ASCII characters.
13828         (w32font_open_internal): Don't set font's owning_frame.
13829         Cache metrics for ASCII characters.
13831         * w32font.h (struct w32font_info): Add ascii_metrics.
13832         Remove owning_frame.
13834 2008-02-06  Kenichi Handa  <handa@ni.aist.go.jp>
13836         * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13837         to negative value.
13839         * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13841         * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13843         * charset.c (syms_of_charset): Set QCtest and Qeq.
13845 2008-02-06  Stefan Monnier  <monnier@iro.umontreal.ca>
13847         * process.c (Fstart_process):
13848         * callproc.c (Fcall_process): Handle the case where
13849         Funhandled_file_name_directory returns nil.
13851         * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13852         (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13853         * font.c (check_gstring): Use them and AREF to access the vector before
13854         we know it's really a gstring.
13855         (Ffont_shape_text): Fix typo.
13856         (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13858         * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13859         Declare.
13861         * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13863 2008-02-05  Jason Rumney  <jasonr@gnu.org>
13865         * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13866         Set smallest_font_height and smallest_char_width in display info.
13868 2008-02-05  Kenichi Handa  <handa@ni.aist.go.jp>
13870         * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13872 2008-02-05  Miles Bader  <miles@gnu.org>
13874         * xfaces.c (get_lface_attributes, merge_named_face)
13875         (lookup_named_face, lookup_derived_face, realize_named_face):
13876         Revert 2008-02-01 change by cyd@stupidchicken.com.
13878 2008-02-04  Kenichi Handa  <handa@ni.aist.go.jp>
13880         * fontset.c (Ffontset_info): Handle the case of inhibitting the
13881         fallback fonts.
13882         (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13884 2008-02-04  Jason Rumney  <jasonr@gnu.org>
13886         * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13887         set full_name.
13888         (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13890 2008-02-03  Jason Rumney  <jasonr@gnu.org>
13892         * makefile.w32-in (OBJ1): Include font.o here.
13893         (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13895 2008-02-02  Jason Rumney  <jasonr@gnu.org>
13897         * makefile.w32-in (temacs): Bump EMHEAP to 21.
13899 2008-02-01  Jason Rumney  <jasonr@gnu.org>
13901         * s/cygwin.h: Define VIRT_ADDR_VARIES.
13903         * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13905 2008-02-01  Andreas Schwab  <schwab@suse.de>
13907         * Makefile.in (shortlisp, lisp): Update for rename of
13908         ../lisp/language/myanmar.el.
13910 2008-02-01  Chong Yidong  <cyd@stupidchicken.com>
13912         * xfaces.c (get_lface_attributes): Delete function.
13913         (merge_named_face, lookup_named_face, lookup_derived_face)
13914         (realize_named_face): Call lface_from_face_name directly, and use
13915         the fact that merge_face_vectors does not alter its FROM argument.
13917 2008-02-01  Jason Rumney  <jasonr@gnu.org>
13919         * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13920         input in the default locale.  Handle non-Unicode multibyte input.
13922 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13924         * fontset.c (reorder_font_vector): Exclude nil elements from the
13925         font group.  Don't try multiple fonts.
13926         (fontset_font): Adjust for the above change.
13927         (Finternal_char_font): Return nil if the found font doesn't
13928         contain the character ch.
13930         * Makefile.in (lisp, shortlisp): Add cham.el.
13932 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13934         * font.h (FONTP): Make it return 1 also for a font-object.
13936         * .gdbinit (xfontset): New function.
13938         * font.c (font_find_for_lface): Check if the character C is
13939         supported or not only for the first font.
13941         * fontset.c (reorder_font_vector): Fix typo.
13942         (fontset_find_font): Don't add a font-spec specifying a script.
13943         Use 0 (not Qt) for the indication of empty font-group.  Change the
13944         format of RFONT-DEF.  Return Qt if no font in the font-group
13945         support the character.
13946         (fontset_font): Adjust for the above change.  If no font was
13947         found the character, remember that.
13948         (face_for_char): Adjust for the change of RFONT-DEF.
13949         (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13950         no font for the target.
13951         (Finternal_char_font): Adjust for the change of RFONT-DEF.
13953 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13955         * font.c (font_load_for_face): Handle the case that the font in
13956         face->lface is a string.
13958 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13960         * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13962 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13964         * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13965         Fix previous change.  If the frame is not on a window system,
13966         signal an error.
13968 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13970         * coding.c (decode_coding_object, encode_coding_object): Adjust
13971         marker positions after conversion.
13973         * lisp.h (struct Lisp_Marker): New member need_adjustment.
13975 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13977         * font.c (font_find_for_lface): Fix the handling of the return
13978         value of font_has_char.
13979         (Ffont_shape_text): Fix previous change.
13981         * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13982         (fontset_ref_and_range): Delete it.
13983         (fontset_find_font): Call char_table_ref_and_range instead of
13984         FONTSET_REF_AND_RANGE.
13985         (make_fontset): Don't setup font groups of Latin here.
13986         (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13987         (new_fontset_from_font): Make the specified font the default for
13988         all Latin characters.
13990 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13992         * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13993         is on a window system before accessing the fontset of the frame.
13995 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
13997         * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13999         * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14000         when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14002         * font.c (Ffont_shape_text): If the font driver doesn't have a
14003         shaper function, make zero-width glyphs to have at least one-pixel
14004         width.  Fix setting of `to' field of glyphs.
14006 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14008         * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14009         glyphs.
14011         * font.h (struct font_driver): Improve docstring of member `shape'.
14013 2008-02-01  Kenichi Handa  <handa@m17n.org>
14015         * composite.c (syms_of_composite): Fix docstring of
14016         auto-composition-function.
14018         * font.h (LGLYPH_SIZE): New macro.
14020         * font.c (Ffont_fill_gstring): Stop filling when a character not
14021         supported by the font is found.
14022         (Ffont_shape_text): When a shape callback function returns nil,
14023         try at most two more times with larger gstring.
14024         (Ffont_at): Fix getting of w.  Call font_at with correct 5th argument.
14026         * xdisp.c (handle_auto_composed_prop): Change the argument to
14027         auto-composition-function.
14029         * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14030         (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14031         Lispy glyph and store it in the lgstring.
14033         * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14035         * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14037 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14039         * font.c (Ffont_shape_text): Avoid unnecessary composition.
14041         * fontset.c (Vfont_encoding_charset_alist): New variable.
14042         (syms_of_fontset): DEFVAR it.
14043         (reorder_font_vector, fontset_find_font): Optimize for the case of
14044         no need of reordering.
14045         (face_for_char): Map the charset property by
14046         Vfont_encoding_charset_alist.
14048 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14050         * w32font.c (logfonts_match): Don't check adstyle here.
14051         (font_matches_spec): Check here against physical font instead.
14052         (add_font_entity_to_list): Avoid some substitutions.
14054         * font.c (font_parse_fcname): Default weight and slant to normal.
14055         (font_score): Prefer normal fonts if weight or slant unspecified.
14056         (font_score) [WINDOWSNT]: Scale weight difference down to closer
14057         match freetype scores.
14059 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14061         * w32font.c (w32font_text_extents): Don't use the frame stored in the
14062         font, as it may have been deleted.
14063         (w32_enumfont_pattern_entity): Map generic family to adstyle using
14064         most common hyphenless variation.
14065         (logfonts_match): Check generic family.
14066         (font_matches_spec): Don't check generic family here.
14067         (fill_in_logfont): Set generic family based on adstyle.
14069         * w32font.h (w32font_get_cache): Update declaration.
14071 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14073         * ftfont.c (ftfont_get_cache): Adjust the argument type.
14075         * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14076         If none of the new drivers are available, call font_update_drivers
14077         with the old drivers.
14079         * w32font.c (w32font_get_cache): Adjust the argument type.
14081         * xfont.c (xfont_get_cache): Adjust the argument type.
14083         * font.h (struct font_driver): Change argument type of get_cache.
14085         * xftfont.c (xftfont_start_for_frame): Delete prototype.
14087         * font.c (Ffont_get): Fix arguments to Fassoc.
14088         (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14089         (font_clear_cache): New function.
14090         (font_list_entities, font_matching_entity): Use font_get_cache.
14091         (font_update_drivers): Call font_clear_cache when finishing a driver.
14093         * fontset.c (fontset_find_font): Fix previous change.
14095 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14097         * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14098         dpyinfo->font_table.
14099         (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14100         (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14102         * font.c (font_at): Handle the case that the arg C is negative.
14103         Handle the unibyte case.
14104         (Ffont_at): Call font_at with the arg C -1.
14106         * xdisp.c (handle_auto_composed_prop): Don't get a character at
14107         the position here, and call font_at with the arg C -1.
14108         Don't check the range of the existing composition at the point.
14110 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14112         * fontset.c (fontset_add): New args charset_id and family.
14113         Change caller.
14114         (load_font_get_repertory, fontset_find_font): Assume that
14115         font_spec is always a font-spec object.
14116         (Fset_fontset_font): Always store a font-spec object in a fontset.
14118         * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14119         instead of get_property_and_range.
14121 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14123         * xftfont.c (struct xftfont_info): Delete the member ft_face.
14124         (xftfont_open): Don't keep locking face.
14125         (xftfont_close): Don't unlock face.
14126         (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14128         * fontset.c (fontset_find_font): Don't prefer a font of
14129         supplementary charset.
14131 2008-02-01  Kenichi Handa  <handa@m17n.org>
14133         * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14134         script, langsys_tag to langsys, new member script.
14135         (OTF_TAG_STR): Terminate by '\0'.
14136         (ftfont_get_open_type_spec): If :otf prop is spec, limit the
14137         listing to the script specified in that property.  Fix arg to
14138         OTF_check_features.
14140 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14142         * w32font.h: New file.
14144         * w32font.c: Include it.
14145         (struct w32font_info): Add owning_frame field.  Move to w32font.h.
14146         (w32font_open): Set owning_frame.
14147         (w32font_text_extents): Use owning_frame.
14148         (struct font_callback_data): Add opentype_only field.
14149         (add_font_entity_to_list): Use it to filter fonts.
14150         Don't check against full name.
14151         (w32font_list_internal): New function.
14152         (w32font_list): Use it.
14153         (w32font_match_internal): New function.
14154         (w32font_match): Use it.
14155         (w32font_open_internal): New function.
14156         (w32font_open): Use it.
14157         (w32font_get_cache, w32font_close, w32font_has_char)
14158         (w32font_encode_char, w32font_text_extents, w32font_draw):
14159         Make non-static.
14161         * makefile.w32-in (w32font.o): Depend on w32font.h.
14163 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14165         * charset.c (Fdefine_charset_internal): Record a supplementary
14166         charset at the tail of Vcharset_order_list.
14168         * font.c (Ffont_shape_text): Fix the return value.
14170         * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14172         * xdisp.c (handle_auto_composed_prop): Fix previous change.
14174 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14176         * ftfont.c (struct OpenTypeSpec): New struct.
14177         (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14178         (ftfont_get_open_type_spec): New function.
14179         (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14181         * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14183 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14185         * w32font.c (add_font_entity_to_list): Compare only the beginning
14186         of full name.
14188 2008-02-01  Kenichi Handa  <handa@m17n.org>
14190         * xdisp.c (handle_auto_composed_prop): Simplify the code.
14191         Never return HANDLED_RECOMPUTE_PROPS.
14193 2008-02-01  Kenichi Handa  <handa@m17n.org>
14195         * font.c (font_gstring_produce): Delete it.
14197         * composite.h (COMPOSITION_METHOD):
14198         Handle COMPOSITION_WITH_GLYPH_STRING.
14200 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14202         * xfont.c (Qx): Delete.
14203         (syms_of_xfont): Don't initialize Qx.
14205         * composite.h (enum composition_method):
14206         Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14208 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14210         * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14211         (choose_face_font): Accept new form of font-spec.
14213         * frame.h (font_driver_list): Declare it unconditionally.
14214         (struct frame): Define members font_driver_list and font_data_list
14215         unconditionally.
14217         * fontset.c: Include "font.h" unconditionally.
14218         (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14219         (Fset_fontset_font): Accept a font-spec object.
14221         * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14222         PIXEL_SIZE part a wild card.
14224         * dispextern.h (struct glyph_string): Define members clip and
14225         num_clips unconditionally.
14226         (struct face): Define members font_info and extra unconditionally.
14228         * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14229         ftfont_info only when HAVE_LIBOTF is defined.
14231 2008-02-01  Andreas Schwab  <schwab@suse.de>
14233         * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14234         and end.
14236 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14238         * w32font.c (w32font_driver): Add new fields.
14240 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14242         * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14243         (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14244         (LIBES): Add @M17N_FLT_CFLAGS@.
14246         * composite.c (compose_text): Don't treat the new style
14247         composition specially.
14249         * emacs.c (main): Call syms_of_font unconditionally.
14251         * font.h (FONT_ENTITY_NOT_LOADABLE)
14252         (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14253         (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14254         (struct font_driver): New member shape.
14255         (font_registry_charsets): Extern it.
14256         (font_find_for_lface, font_prepare_composition): Adjust prototype.
14257         (font_otf_capability, font_drive_otf): Delete their externs.
14259         * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14260         (font_charset_alist, font_registry_charsets): Move from xfont.c
14261         and rename.
14262         (font_prop_validate_otf): New function.
14263         (font_property_table): Register it for QCotf.
14264         (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14265         (font_drive_otf): Delete.
14266         (font_prepare_composition): New arg F.  Adjust for the change of
14267         lispy gstring.
14268         (font_find_for_lface): New arg C.
14269         (font_load_for_face): Adjust for the change of font_find_for_lface.
14270         (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14271         lispy gstring.
14272         (Ffont_shape_text): New function.
14273         (Fopen_font): If the font size is not given, use 12-pixel.
14274         (Ffont_at): New arg STRING.
14275         (syms_of_font): Initialize font_charset_alist.
14276         Declare Ffont_shape_text as a Lisp function.  Call syms_of_XXfont
14277         conditionally.
14279         * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14280         fonts of the same font-spec.  Change the format of RFONT-DEF.
14281         (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14282         Adjust for the change of RFONT-DEF.
14283         (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14285         * ftfont.h: New file.
14287         * ftfont.c: Don't include Freetype headers.  Include "ftfont.h".
14288         (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14289         (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14290         (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14291         font_otf_capability and font_drive_otf, set ftfont_shape.
14292         (ftfont_list): Adjust for the change of :otf property value.
14293         (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14294         (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14295         (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14296         (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14297         (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14298         (otf_gstring, gstring, m17n_flt_initialized): New variables.
14300         * w32term.c (x_draw_composite_glyph_string_foreground):
14301         Adjust for the change of lispy gstring.
14303         * xdisp.c (handle_composition_prop): Adjust for the change of
14304         lispy gstring.  Call a function for auto-composition with the
14305         third arg it->window.
14306         (fill_composite_glyph_string): Adjust for the change of lispy string.
14307         (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14309         * xfaces.c (set_font_frame_param): Adjust for the change of
14310         font_find_for_lface.
14312         * xfont.c (x_font_charset_alist): Move to font.c and rename.
14313         (xfont_registry_charsets): Likewise.  Change caller.
14314         (syms_of_xfont): Don't handle x_font_charset_alist.
14316         * xftfont.c: Include "ftfont.h".
14317         (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14318         (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14319         (xftfont_close) [HAVE_LIBOTF]: Close otf.
14320         (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14321         (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14322         Set xftfont_driver.shape to xftfont_shape.
14324         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14325         the change of lispy gstring.
14327 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14329         * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14331 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14333         * w32font.c (w32font_draw): Fill background manually.
14335 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14337         * font.c (Qfontp): Remove unused symbol.
14338         (QCantialias): New symbol.
14339         (syms_of_font): Define it.
14340         (font_property_table): Set a validator for QCantialias.
14342         * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14343         Define if not already.
14344         (QCfamily): Share with xfaces.c.
14345         (Qstandard, Qsubpixel, Qnatural): New symbols.
14346         (syms_of_w32font): Define them.  Don't define QCfamily here.
14347         (w32_antialias_type, lispy_antialias_type): New functions.
14348         (w32_enumfont_pattern_entity): New arg requested_font.
14349         Set antialias parameter if non-default was requested.
14350         (fill_in_logfont): Fill in lfQuality if :antialias specified.
14352 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14354         * lread.c (read1): Undo the previous change.
14356 2008-02-01  CHENG Gao  <chenggao@gmail.com>  (tiny change)
14358         * frame.c (Fdelete_frame): Call font_update_drivers only when
14359         USE_FONT_BACKEND is defined.
14361 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14363         * font.h (struct font_bitmap): New member bits_per_pixel.
14364         (struct font_driver): New members start_for_frame and end_for_frame.
14365         (struct font_data_list): New struct.
14366         (font_put_frame_data, font_get_frame_data): Extern them.
14368         * frame.h (struct frame): New member font_data_list.
14370         * font.c (font_update_drivers): Call driver->start_for_frame and
14371         driver->end_for_frame at proper timings.
14372         (font_put_frame_data, font_get_frame_data): New functions.
14373         (Ffont_spec): Add usage in the docstring.
14375         * frame.c (make_frame): Initialize f->font_data_list to NULL.
14376         (Fdelete_frame): Call font_update_drivers.
14378         * xftfont.c (struct xftface_info): Delete the member xft_draw.
14379         (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14380         (xftfont_get_xft_draw): New function.
14381         (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14382         (xftfont_end_for_frame): New function.
14383         (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14385         * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14386         Change argument.  Cache GCs in the per-frame data.
14387         (struct ftxfont_frame_data): New struct.
14388         (ftxfont_draw_bitmap): New arg gc_fore and flush.
14389         (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14390         (ftxfont_draw): Get GCs by ftxfont_get_gcs.  Reflect s->clip in GCs.
14391         (ftxfont_end_for_frame): New function.
14392         (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14394         * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14396 2008-02-01  Kenichi Handa  <handa@m17n.org>
14398         * xselect.c (Vselection_coding_system)
14399         (Vnext_selection_coding_system): Delete them.
14400         (syms_of_xselect): Don't declare selection-coding-system and
14401         next-selection-coding-system.  They are declared in select.el.
14403 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14405         * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14407         * w32fns.c: Include imm.h.
14408         (get_composition_string_fn, get_ime_context_fn): New optional
14409         system functions.
14410         (globals_of_w32fns): Load them from imm32.dll.
14411         (ignore_ime_char): New flag.
14412         (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14413         WM_IME_ENDCOMPOSITION messages.
14415         * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14416         MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14418 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14420         * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14421         (READCHAR_REPORT_MULTIBYTE): New macro.
14422         (readchar): New 2nd arg MULTIBYTE.
14423         (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14424         Make symbol's name multibyte according to the multibyteness of the
14425         source.
14427 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14429         * xfaces.c (face_for_overlay_string): Call lookup_face with
14430         correct arguments (fix of synching with the trunk).
14432 2008-02-01  Kenichi Handa  <handa@m17n.org>
14434         * font.c (font_prop_validate_symbol, font_prop_validate_style)
14435         (font_prop_validate_non_neg, font_prop_validate_spacing):
14436         Delete argument prop_index.
14437         (font_property_table): Change arguments to validater.  Change Callers.
14438         (font_lispy_object): Delete.
14439         (font_at): Use font_find_object instead fo font_lispy_object.
14441 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
14443         * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14444         and file names.
14446 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14448         * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14449         (font_matches_spec): Remove debug output.
14450         (add_font_entity_to_list): Avoid using substituted fonts.
14452 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14454         * doc.c (Fsnarf_documentation):
14455         * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14457 2008-02-01  Miles Bader  <miles@gnu.org>
14459         * dispextern.h (struct glyph_row): Only define "clip" field if
14460         HAVE_WINDOW_SYSTEM is defined.
14462 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
14464         Fix up multi-tty merge.
14466         * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14467         and indentation.
14469         * xfaces.c (free_realized_face, clear_face_gcs):
14470         Include font_done_for_face in the input_blocked section, just in case.
14472         * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14473         (get_char_face_and_encoding): Undo last change and remove the *other*
14474         duplicate definition (i.e. keep the one that's better scoped and that
14475         includes code for the font-backend).
14477         * terminal.c (create_terminal): Default keyboard_coding to
14478         `no-conversion' and terminal_coding to `undecided'.
14480         * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14482         * fontset.c (free_realized_fontsets): Check that the table entry does
14483         contain a fontset before trying to compare it to `base'.
14485         * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14486         syms_of_charset, and syms_of_coding earlier because init_window_once
14487         now needs Vcoding_system_hash_table to be setup.
14489         * coding.h (default_buffer_file_coding): Remove.
14491         * coding.c (default_buffer_file_coding): Remove.
14492         (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14493         than ->symbol, and use the terminal-local coding system.
14494         (syms_of_coding): Don't setup the coding-systems that are not
14495         terminal-local.
14496         (Fdefine_coding_system_internal): Use XCAR/XCDR.
14498         * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14499         Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14501         * alloc.c (Fmake_char_table, make_sub_char_table): Remove.  They're now
14502         in chartab.c and were re-added here by mistake.
14503         (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14505         * doc.c (Fsnarf_documentation):
14506         * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14507         src to etc.
14509         * ChangeLog.10: Add mistakenly removed entry.
14511 2008-02-01  Dan Nicolaescu  <dann@ics.uci.edu>
14513         * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14515 2008-02-01  Miles Bader  <miles@gnu.org>
14517         * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14518         Add extra args to FACE_FOR_CHAR.
14520 2008-02-01  Kenichi Handa  <handa@m17n.org>
14522         * keymap.c (where_is_internal_1): If key is a cons, store the copy
14523         in sequence.
14525         * chartab.c (map_sub_char_table, map_char_table): If the range
14526         contains just one character, call the function with that character
14527         even if the depth is not 3.
14529 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14531         * w32font.c (w32font_text_extents): Calculate metrics for the
14532         whole string.
14534 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14536         * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14538 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14540         * w32term.c (x_set_glyph_string_clipping): Use
14541         get_glyph_string_clip_rects.
14542         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14543         Adjust for the change of struct glyph_string.
14545         * w32font.c (w32font_draw): Do clipping here.
14547 2008-02-01  Kenichi Handa  <handa@m17n.org>
14549         * xftfont.c (xftfont_draw): Adjust for the change of struct
14550         glyph_string.
14552         * xterm.c (x_set_glyph_string_clipping): Use
14553         get_glyph_string_clip_rects.
14554         (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14555         Adjust for the change of struct glyph_string.
14557         * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14558         the resulting clip(s}.
14559         (expose_overlaps): Add arg r.  Change callers.  Set it to
14560         row->clip temporarily.
14561         (expose_window): Redraw rows overlapping the exposed area.
14563         * dispextern.h (struct glyph_row): New member clip.
14564         (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14565         clip_height, new member clip, and num_clips.
14567 2008-02-01  Kenichi Handa  <handa@m17n.org>
14569         * data.c (Fchar_or_string_p): Fix docstring.
14571 2008-02-01  Kenichi Handa  <handa@m17n.org>
14573         * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14574         create a temporary XftDraw object.
14576 2008-02-01  Kenichi Handa  <handa@m17n.org>
14578         * font.c (Ffontp): Fix docstring.
14580         * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14581         strong evidence of ISO-2022.
14583 2008-02-01  Kenichi Handa  <handa@m17n.org>
14585         * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14586         SYNTAX_ENTRY_FOLLOW_PARENT.
14588 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
14590         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14591         its type.
14592         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14593         Update to the new type of weak_hash_tables and next_weak.
14595         * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14596         a plain C pointer to Lisp_Hash_Table.
14598         * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14599         (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14600         (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14601         (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14602         (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14603         (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14604         (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14605         (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14606         (GC_EQ): Remove since they've been identical to their non-GC_
14607         alter-egos ever since the markbit was eradicated.
14609         * alloc.c:
14610         * buffer.c:
14611         * buffer.h:
14612         * data.c:
14613         * fileio.c:
14614         * filelock.c:
14615         * fns.c:
14616         * frame.h:
14617         * lisp.h:
14618         * macterm.c:
14619         * print.c:
14620         * process.c:
14621         * w32fns.c:
14622         * w32menu.c:
14623         * w32term.c:
14624         * xfns.c:
14625         * xmenu.c:
14626         * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14628 2008-02-01  Kenichi Handa  <handa@m17n.org>
14630         * chartab.c (map_sub_char_table): Make it work for the top-level
14631         char-table.  Fix handling of parent char-table.
14632         (map_char_table): Adjust for the above change.
14634 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14636         * w32font.c (Qgdi): Rename from Qw32.
14638 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14640         * w32bdf.c (get_quoted_string): Make function static.
14642 2008-02-01  Kenichi Handa  <handa@m17n.org>
14644         * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14645         bigger ascent and descent than those of the font, use them as
14646         font's ascent and descent.
14648 2008-02-01  Kenichi Handa  <handa@m17n.org>
14650         * Makefile.in (${lispsource}international/charprop.el): Move this
14651         target within "#ifdef HAVE_UNIDATA" and "#endif".
14653 2008-02-01  Kenichi Handa  <handa@m17n.org>
14655         * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14656         (shortlisp): Add ../lisp/language/tai-viet.el.
14658 2008-02-01  Ulrich Mueller  <ulm@gentoo.org>
14660         * Makefile.in (${lispsource}international/charprop.el): Depend on
14661         temacs${EXEEXT}.
14663 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14665         * w32font.c (w32font_close): Delete the GDI font object.
14667         * w32menu.c: Include character.h.
14669         * w32proc.c: Likewise.
14671         * w32select.c: Likewise.
14673         * makefile.w32-in (w32proc.o): Depend on character.h.
14675 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14677         * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14679         * w32menu.c (syms_of_w32menu): Likewise.
14681         * w32proc.c (syms_of_ntproc): Likewise.
14683         * w32select.c (syms_of_w32select): Likewise.
14685         * w32term.c (syms_of_w32term): Likewise.
14687 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14689         * w32font.c (w32font_draw): Delete brush after using it.
14691 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14693         * w32font.c (w32font_open): Don't set font_idx.
14694         (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14695         to font settings.
14696         (w32font_draw): Fill background explicitly.
14698 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14700         * w32term.c (w32_initialize): Don't call w32font_initialize.
14702         * w32font.c (w32font_info): Remove subranges.
14703         (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14704         (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14705         (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14706         (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14707         (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14708         (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14709         (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14710         (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14711         (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14712         (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14713         New symbols.
14714         (font_callback_data): New struct.
14715         (w32font_list, w32font_match): Use it.
14716         (w32font_open): Don't populate subranges.
14717         (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14718         (w32font_encode_char): Always return unicode code-point as-is.
14719         (w32font_text_extents): Supply a transformation matrix to
14720         GetGlyphOutline.  Never look up by glyph index.  Avoid looping
14721         twice.  Use unicode version of GetTexExtentPoint32 instead of
14722         glyph index version.
14723         (set_fonts_frame): Remove.
14724         (w32_enumfont_pattern_entity): Add frame parameter, use it to
14725         set frame parameter.  Use backward compatible fake foundries.
14726         Save generic family in extra slot under QCfamily.  Make width slot
14727         constant.  Save QCspacing value.  Save list of scripts instead of
14728         binary subranges.
14729         (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14730         (add_font_entity_to_list): Use font_callback_data struct.  Filter
14731         unwanted fonts.
14732         (add_one_font_entity_to_list): Use font_callback_data struct.
14733         (w32_registry): Default to iso10646_1.
14734         (fill_in_logfont): Use dpi from extra slot.  Don't bother with
14735         string font registries.  Don't fill in font name if it is a generic
14736         family name, fill family instead.  Use spacing, family and script
14737         extra info to fill pitch, family and charset fields.
14738         (list_all_matching_fonts): Use font_callback_data struct.
14739         (unicode_range_for_char): Remove.
14740         (font_supported_scripts): New function.
14741         (w32font_initialize): Remove.
14742         (syms_of_w32font): Update which symbols are defined.
14744 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14746         * font.c (font_pixel_size): Reverse assq_no_quit args.
14748         * w32term.h (FONT_WIDTH): Report max width, not average.
14749         (FONT_MAX_WIDTH): Remove.
14750         (FONT_AVG_WIDTH): New macro.
14752         * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14753         redefinition of FONT_WIDTH.
14755         * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14756         (w32_cache_char_metrics): Use FONT_WIDTH.
14758         * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14760 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14762         * w32font.c (w32font_open): Make lfHeight negative.
14764         * w32fns.c (x_default_font_parameter): Use new style font name.
14765         (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14767 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14769         * w32font.c (QCsubranges): New symbol.
14770         (w32font_open, w32font_has_char): Get subranges from subproperty
14771         of extra.
14772         (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14773         (syms_of_w32font): Define :subranges symbol.
14775         * font.c (font_put_extra): Expose externally.
14777         * font.h (font_put_extra): Move declaration from font.c.
14779         * font.c (Ffont_get): Use font driver to determine otf capability.
14780         (adjust_anchor): Check if driver defines anchor_point before using.
14782         * w32font.c (w32font_open): Handle size, height and pixel_size better.
14783         (w32font_draw): Use options.
14784         (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14785         Fix detection of truetype fonts.
14786         (registry_to_w32_charset): Handle charsets other than iso8859-1
14787         expressed as lisp symbols.
14788         (w32_registry): Express charset as lisp symbol.
14789         (fill_in_logfont): Reverse pixel and point height logic.
14790         Don't set width here.  Set quality to default.
14792         * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14793         (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14795         * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14796         Remove redundant loop and allocation.
14798         * makefile.w32-in (font.o, w32font.o): New objects.
14799         (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14800         (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14802         * xdisp.c (fill_composite_glyph_string): Make the first arg to
14803         STORE_XCHARB a valid l-value.
14805         * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14806         calculations for non-Truetype fonts.
14807         (x_draw_glyph_string): Sync with xterm.c.
14808         (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14809         Remove redundant code.
14810         (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14812         * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14813         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14815         * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14816         (x_to_w32_charset, w32_to_x_charset): Expose externally.
14818         * w32font.c: New file for w32 font backend.
14820 2008-02-01  Kenichi Handa  <handa@m17n.org>
14822         * term.c: Don't include "buffer.h" twice.
14824 2008-02-01  Kenichi Handa  <handa@m17n.org>
14826         * character.c (Funibyte_string): New function.
14827         (syms_of_character): Defsubr it.
14829 2008-02-01  Jason Rumney  <jasonr@gnu.org>
14831         * w32term.c [USE_FONT_BACKEND]:
14832         (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14833         (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14834         (x_draw_glyph_string, x_draw_glyph_string_foreground)
14835         (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14836         (x_free_frame_resources): Sync with xterm.c.
14838 2008-02-01  Andreas Schwab  <schwab@suse.de>
14840         * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14841         char-table size.
14843 2008-02-01  Kenichi Handa  <handa@m17n.org>
14845         * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14847 2008-02-01  Kenichi Handa  <handa@m17n.org>
14849         * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14850         font_otf_gpos, add font_drive_otf.
14852         * fontset.c (fontset_find_font): Pay attention to font size
14853         specified for a font.
14854         (reorder_font_vector): Check contents of font_def.
14856         * font.c (struct otf_list): Delete it.
14857         (otf_list): Make it a lisp variable.
14858         (otf_open): Use lispy otf_list.
14859         (generate_otf_features): Rename from parse_gsub_gpos_spec.
14860         (check_otf_features): New function.
14861         (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14862         New functions.
14863         (font_drive_otf): New function merging font_otf_gsub and
14864         font_otf_gpos.
14865         (font_open_for_lface): New arg spec.  Change argument order.
14866         (font_load_for_face): Adjust for the change of font_open_for_lface.
14867         (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14868         Ffont_otf_gpos.
14869         (syms_of_font): Staticpro otf_list.  Delete defsubr of
14870         Sfont_otf_gsub and Sfont_otf_gpos.  Defsubr Sfont_drive_otf.
14872         * xfaces.c (set_font_frame_param): Adjust for the change of
14873         font_open_for_lface.
14875         * font.h (font_open_for_lface): Adjust prototype.
14876         (struct font_driver): Delete members otf_gsub and otf_gpos, add
14877         member otf_drive.
14878         (font_otf_gsub, font_otf_gpos): Delete externs.
14879         (font_drive_otf): Extern it.
14881 2008-02-01  Kenichi Handa  <handa@m17n.org>
14883         * font.c (font_at): If the window W is not on a window system,
14884         return Qnil.
14886         * coding.c (produce_chars, encode_coding): Don't call
14887         insert_from_gap if no characters to produce.
14889 2008-02-01  Kenichi Handa  <handa@m17n.org>
14891         * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14892         Fclear_face_cache.
14894         * xfaces.c (face_for_font): Check also face->font==font->font.font.
14896 2008-02-01  Miles Bader  <miles@gnu.org>
14898         * emacs.c (main): Change default value of `enable_font_backend' to 1.
14899         Parse "--disable-font-backend" option.
14900         (standard_args): Add "--disable-font-backend" option.
14902 2008-02-01  Kenichi Handa  <handa@m17n.org>
14904         * fontset.c (fontset_find_font): New function.
14905         (fontset_font): Use fontset_find_font.
14906         (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14907         Register the specified font for all Latin characters.
14908         (new_fontset_from_font): Register the specified font for all Latin
14909         characters.
14910         (dump_fontset): For a realized fontset, include the base fontset
14911         name in the returned vector.
14913 2008-02-01  Kenichi Handa  <handa@m17n.org>
14915         * character.h (CHAR_STRING): Cast C to unsigned on calling
14916         char_string.
14918         * character.c (char_string): Type of arg C changed to unsigned.
14919         Signal an error if C is an invalid character code.
14921         * editfns.c (general_insert_function, Fchar_to_string):
14922         Use CHARACTERP, not INTEGERP.
14924 2008-02-01  Kenichi Handa  <handa@m17n.org>
14926         * character.h (MIN_MULTIBYTE_LEADING_CODE)
14927         (MAX_MULTIBYTE_LEADING_CODE): New macros.
14929         * regex.c (analyse_first): Fix for multibyte characters in "case
14930         charset:" and "case categoryspec:".
14932 2008-02-01  Andreas Schwab  <schwab@suse.de>
14934         * Makefile.in (LIBES): Move standard libraries to the end.
14936 2008-02-01  Kenichi Handa  <handa@m17n.org>
14938         * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14939         nonzero, don't shrink the buffer nextb.
14941         * buffer.h (struct buffer_text): New member inhibit_shrinking.
14943         * coding.c (coding_alloc_by_making_gap): New arg offset.
14944         (alloc_destination): Call coding_alloc_by_making_gap with the arg
14945         offset.
14946         (decode_coding_iso_2022): Update coding->safe_charsets.
14947         (decode_coding_gap): Temporarily set
14948         current_buffer->text->inhibit_shrinking to 1.
14950 2008-02-01  Kenichi Handa  <handa@m17n.org>
14952         * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14953         indexing into elements of s->cmp and s->char2b.
14955 2008-02-01  Juanma Barranquero  <lekktu@gmail.com>
14957         * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14959 2008-02-01  Kenichi Handa  <handa@m17n.org>
14961         * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14962         target_multibyte instead of multibyte.
14963         (re_match_2_internal): Call bcmp_translate with target_multibyte.
14964         (bcmp_translate): Change the argument name from multibyte to
14965         target_multibyte.
14967 2008-02-01  Kenichi Handa  <handa@m17n.org>
14969         These changes are to compile a regexp into a pattern that can be
14970         used both for multibyte and unibyte targets.
14972         * Makefile.in (search.o): Depend on charset.h.
14974         * character.c (multibyte_char_to_unibyte_safe): New function.
14976         * search.c: Include "charset.h".
14977         (compile_pattern_1): Delete argument multibyte.  Don't set
14978         cp->buf.target_multibyte here.  Set cp->buf.charset_unibyte.
14979         (compile_pattern): Don't compare cp->buf.target_multibyte.
14980         Compare cp->buf.charset_unibyte.
14981         (compile_pattern): Set cp->buf.target_multibyte.
14983         * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14985         * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14987         * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14988         multibyte.  Change callers.
14989         (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14990         (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete.  Change callers
14991         to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14992         (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14993         (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14994         (regex_compile): Make the compiled pattern usable both for
14995         multibyte and unibyte targets.
14996         (analyse_first): Make the fastmap usable both for multibyte and
14997         unibyte targets.
14998         (TRANSLATE_VIA_MULTIBYTE): Delete.
14999         (re_match_2_internal): Pay attention to the case that the
15000         multibyteness of bufp and target may be different.
15002 2008-02-01  Kenichi Handa  <handa@m17n.org>
15004         * xdisp.c (x_produce_glyphs): When a font is not found, make the
15005         empty box occupy at least one column width.
15007 2008-02-01  Miles Bader  <miles@gnu.org>
15009         * Makefile.in: Remove redundant HAVE_XFT clause.
15011 2008-02-01  Kenichi Handa  <handa@m17n.org>
15013         * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15015 2008-02-01  Kenichi Handa  <handa@m17n.org>
15017         * fontset.c (Finternal_char_font): Fix for the case of POSITION
15018         being nil.
15020 2008-02-01  Kenichi Handa  <handa@m17n.org>
15022         * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15024 2008-02-01  Kenichi Handa  <handa@m17n.org>
15026         * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15028 2008-02-01  Kenichi Handa  <handa@m17n.org>
15030         * search.c (simple_search): Fix previous change.
15032 2008-02-01  Kenichi Handa  <handa@m17n.org>
15034         * xftfont.c (ftfont_font_format): Extern declaration.
15036         * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15038         * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15039         (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15041         * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15042         (ftfont_font_format): Fix previous change.
15044         * font.h (Ffont_xlfd_name): EXFUN it.
15046         * font.c (font_parse_xlfd): Fix the array size of `f'.
15047         (register_font_driver): Use EQ to compare driver->type.
15049         * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15050         (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15051         (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15053 2008-02-01  Kenichi Handa  <handa@m17n.org>
15055         * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15056         (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15058 2008-02-01  Kenichi Handa  <handa@m17n.org>
15060         * xfont.c (xfont_open): Set font->format.
15062         * xftfont.c (xftfont_open): Set font->format.
15064         * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15065         (ftfont_list): Include FC_FONTFORMAT in FcObject.
15066         (ftfont_open): Set font->format.
15067         (ftfont_font_format): New function.
15069         * font.h (struct font): New member format.
15071         * font.c (Qopentype): New variable.
15072         (syms_of_font): Defsym it.
15073         (Fquery_font): Change the format of the last element of the return
15074         value.
15076 2008-02-01  Kenichi Handa  <handa@m17n.org>
15078         * xfns.c (xic_create_xfontset): Try the default fontset name as a
15079         last resort.
15081 2008-02-01  Kenichi Handa  <handa@m17n.org>
15083         * coding.c (detect_coding_charset): Fix detection of multi-byte
15084         charset.
15086 2008-02-01  Bob Halley  <halley@play-bow.org>  (tiny change)
15088         * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15090 2008-02-01  Kenichi Handa  <handa@m17n.org>
15092         * xdisp.c (get_next_display_element): Set it->face_id for the
15093         first component of a composition.
15094         (x_produce_glyphs): Check if the font is changed or not for composition.
15096 2008-02-01  Kenichi Handa  <handa@m17n.org>
15098         * fontset.c (Qlatin): New variable.
15099         (syms_of_fontset): Define it as a lisp symbol.
15100         (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15102 2008-02-01  Kenichi Handa  <handa@m17n.org>
15104         * font.c (font_unparse_fcname): Pay attention to the case that
15105         some of font property is a null string.
15107 2008-02-01  Kenichi Handa  <handa@m17n.org>
15109         * term.c: Include "composite.h".
15110         (encode_terminal_code): Output all components of composition.
15111         Check the size of encode_terminal_src.
15112         (produce_glyphs): For composition, call produce_composite_glyph.
15113         (append_composite_glyph, produce_composite_glyph): New functions.
15115         * xdisp.c (x_produce_glyphs): In handling composition, if a font
15116         is not found, get font_info from the current ascii face.
15118 2008-02-01  Kenichi Handa  <handa@m17n.org>
15120         * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15121         buffer-file-name to Qnil before calling insert_from_buffer.
15123         * font.c (font_unparse_fcname): Pay attention to the case that
15124         foundry is a null string.
15126 2008-02-01  Kenichi Handa  <handa@m17n.org>
15128         * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15130         * font.c (Qunicode_sip): New variable.
15131         (syms_of_font): Declare it as a Lisp symbol.
15133         * font.h (Qunicode_sip): Extern it.
15135 2008-02-01  Kenichi Handa  <handa@m17n.org>
15137         * composite.c (get_composition_id): Pay attention to TAB component.
15139         * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15140         TAB.  Adjust for the change of s->char2b which always points to
15141         the first element of allocated memory.
15143         * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15145         * xdisp.c (handle_composition_prop): Set it->c to the first
15146         non-TAB component.
15147         (fill_composite_glyph_string): Change argument.
15148         (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15149         (x_produce_glyphs): Fix handling of left/right padding.
15151 2008-02-01  Kenichi Handa  <handa@m17n.org>
15153         * coding.c (detect_coding_system): Fix for handling off
15154         inhibit_iso_escape_detection.  Fix for the case that no coding
15155         system is defined for a specific coding category.
15157 2008-02-01  Kenichi Handa  <handa@m17n.org>
15159         * font.c (font_matching_entity): Delete unused local var.
15161         * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15162         opening a font.
15164         * fileio.c (Finsert_file_contents): On recovering a file, assume
15165         Unix-like eol.
15166         (choose_write_coding_system): On auto-saving a file, force
15167         Unix-like eol.
15169         * coding.c (setup_coding_system): Fix setting of
15170         coding->common_flags based on eol_type.
15171         (coding_inherit_eol_type): If PARENT is not nil, be sure to
15172         inherit from it.
15174 2008-02-01  Kenichi Handa  <handa@m17n.org>
15176         * alloc.c (NSTATICS): Increas to 0x600.
15178 2008-02-01  Kenichi Handa  <handa@m17n.org>
15180         * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15181         (ftfont_list): Don't check :name property.
15182         (ftfont_match): New function.
15183         (ftfont_pattern_entity): If the pattern doesn't contain
15184         FC_SPACING, don't assume FC_MONO.
15186         * font.h (struct font_driver): New member `match'.
15187         (font_update_drivers): Adjust prototype.
15189         * font.c (font_parse_fcname, font_parse_name): Don't change :name
15190         property of FONT.
15191         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15192         them unconditionally.
15193         (font_matching_entity): New function.
15194         (font_open_by_name): Try font_matching_entity if exact match is
15195         not found.
15196         (font_update_drivers): Delete the arg FONT.  Return a list of
15197         actually used backends.  Don't free faces, font caches here.
15198         Don't store data in frame parameters.  Don't call x_set_font.
15199         (Ffont_spec): Store :name property as is.
15200         (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15201         (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15202         (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15203         (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15204         Call font->driver->otf_gsub instead of font_otf_gsub.
15206         * frame.c (x_set_font_backend): Do more works that were done in
15207         font_update_drivers before.
15209         * xfont.c (xfont_match): New function.
15210         (xfont_driver): Set xfont_driver.match to xfont_match.
15211         (xfont_draw): Set font in GC if necessary.
15213         * ftxfont.c (ftxfont_match): New function.
15214         (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15216         * xftfont.c (xftfont_match): New function.
15217         (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15219 2008-02-01  Kenichi Handa  <handa@m17n.org>
15221         * font.h (struct font): New member scalable.
15222         (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15223         (font_otf_gsub): Adjust prototype.
15225         * font.c (font_otf_capability): Fix handling of the default langsys.
15226         (parse_gsub_gpos_spec): Change type to void.  New arg nbytes.
15227         Check the contents of SPEC.
15228         (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15229         (check_gstring): New function.
15230         (REPLACEMENT_CHARACTER): New macro.
15231         (font_otf_gsub): New arg alternate_subst.  Be sure to set all
15232         glyph codes of GSTRING.
15233         (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15234         (font_prepare_composition): Set cmp->glyph_len.
15235         (font_open_entity): Set font->scalable.
15236         (Ffont_get): Handle :otf property.
15237         (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15238         functions.
15239         (Fquery_font): Use font->font.full_name.
15240         (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15241         Sfont_otf_alternates.
15243         * ftfont.c (ftfont_open): Set font->font.full_name and
15244         font->font.name properly.  Fix calculation of font->font.height
15245         and font->min_width.
15247         * ftxfont.c (ftxfont_create_gcs): New function.
15248         (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15249         (ftxfont_draw_backgrond): Fix filling region.
15250         (ftxfont_default_fid): New function.
15251         (ftxfont_open): Set xfont->fid to the return value of
15252         ftxfont_default_fid.
15253         (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15254         (ftxfont_done_face): Free only GCs that are created by
15255         ftxfont_create_gcs.
15256         (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15258         * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15259         Clip to src->width, etc (not src->clip_XXX).
15261         * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15262         FontBackend frame parameter.
15264 2008-02-01  Kenichi Handa  <handa@m17n.org>
15266         * font.h (struct font_driver_list): New member `on'.
15267         (Fclear_font_cache): EXFUN it.
15268         (font_update_drivers): Extern it.
15270         * font.c (font_unparse_fcname): Fix typo (swidth->width).
15271         (font_list_entities): Check driver_list->on.
15272         (register_font_driver): Initialize `on' member to 0.
15273         (font_update_drivers): New function.
15274         (Fclear_font_cache): Check driver_list->on.
15276         * frame.h (Qfont_backend): Extern it.
15277         (x_set_font_backend): Extern it.
15279         * frame.c (Qfont_backend): New variable.
15280         (frame_parms): New element for font-backend.
15281         (x_set_font_backend): New function.
15283         * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15284         FontBackend frame parameter.
15285         (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15286         x_set_font_backend.
15288         * xfont.c (xfont_list): Don't try listing by :name property if the
15289         name is not for XLFD.
15291 2008-02-01  Kenichi Handa  <handa@m17n.org>
15293         * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15294         (LGLYPH_SET_TO): New macros.
15295         (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15296         element of G is vector or not.
15297         (font_at): Extern it.
15299         * font.c: Include window.h.
15300         (font_lispy_object): New function.
15301         (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15302         end of valid glyph.
15303         (font_close_object): Fix getting (struct font *).
15304         (font_at): New function.
15305         (Ffont_get): If FONT is a font-object, get entity from it.
15306         (Ffont_make_gstring): Initialize elements of glyphs with nil.
15307         (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
15308         range check.
15309         (Ffont_at): New function.
15310         (syms_of_font): Defsubr Sfont_at.
15312         * xdisp.c (it_props): Move the entry for Qauto_composed to just
15313         before the entry for Qcomposition.
15314         (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15315         (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15316         the font in gstring.
15317         (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15318         LGLYPH_FORM (g) to detect the end of valid glyph.
15319         (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15320         we are composing with gstring.
15322         * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15323         Check if adjustment is vector or not.
15325         * Makefile.in (font.o): Make it depends on window.h.
15327 2008-02-01  Kenichi Handa  <handa@m17n.org>
15329         * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15330         adjustment is vector or not.
15332 2008-02-01  Miles Bader  <miles@gnu.org>
15334         * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15336 2008-02-01  Kenichi Handa  <handa@m17n.org>
15338         * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15339         (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15340         (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15342         * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15343         (DEVICE_DELTA): Fix typo.
15344         (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15345         LGLYPH format.
15347         * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15348         the change of LGLYPH format.
15350 2008-02-01  Kenichi Handa  <handa@m17n.org>
15352         * ftfont.c (ftfont_list): Fix typo.
15353         (ftfont_build_basic_charsets): Don't include letters with diacritics.
15355 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
15357         * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15359         * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15360         xftface_info is non-NULL.
15362 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
15364         * ftfont.c (ftfont_list): Move misplaced #endif.
15366 2008-02-01  Kenichi Handa  <handa@m17n.org>
15368         * ftfont.c (ftfont_list): Pay attention to the case that
15369         FC_CAPABILITY is not defined.
15371 2008-02-01  Kenichi Handa  <handa@m17n.org>
15373         * xftfont.c (xftfont_open): Set charset related members to -1.
15375         * ftfont.c (ftfont_list): Handle QCotf property.  Fix handling of
15376         QCname.
15377         (ftfont_open): Set charset related members to -1.
15379         * fontset.c (Votf_script_alist): New variable.
15380         (syms_of_fontset): Initialize it.
15381         (fontset_font): Delete unused variable.
15383         * fontset.h (Votf_script_alist): Extern it.
15385         * font.c (font_find_for_lface): Optimize code.
15387         * font.h (font_close_object, font_merge_old_spec): Extern them.
15389 2008-02-01  Kenichi Handa  <handa@m17n.org>
15391         * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15392         (syms_of_font): Initialize them.
15393         (font_pixel_size): Allow float value in dpi.
15394         (font_prop_validate_type): Delete.
15395         (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15396         Change caller.
15397         (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15398         (font_prop_validate_extra): Delete.
15399         (font_prop_validate_spacing): New function.
15400         (font_property_table): Add elements for all known properties.
15401         (get_font_prop_index): Rename from check_font_prop_name.  New
15402         argument FROM.  Change caller.
15403         (font_prop_validate): Validate all known properties.
15404         (font_put_extra): Delete argument force.  Change caller.
15405         (font_expand_wildcards): Make it static.  Fix the way of shrinking
15406         the possible range.
15407         (font_parse_xlfd): Delete argument merge.  Fix handling of RESX,
15408         RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
15409         Change caller.
15410         (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15411         (font_parse_fcname): Delete argument merge.  Fix parsing of point
15412         size.  Don't validate properties values here.  Change caller.
15413         (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15414         (font_open_by_name): Delete unused variable.
15415         (Ffont_spec): Likewise.  Validate property values.
15416         (Ffont_match_p): New function.
15418         * font.h (QCscalable): Extern it.
15419         (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15421         * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15423         * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15424         (xfont_list_pattern): New function.
15425         (xfont_list): Use xfont_list_pattern.
15427 2008-02-01  Kenichi Handa  <handa@m17n.org>
15429         * font.h (Flist_fonts): EXFUN it.
15431 2008-02-01  Jason Rumney  <jasonr@gnu.org>
15433         * w32term.c (w32_initialize): Add back smoothing_type and
15434         smoothing_enabled definitions.
15436 2008-02-01  Kenichi Handa  <handa@m17n.org>
15438         * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15439         s->face->font on determining underline position.
15441 2008-02-01  Kenichi Handa  <handa@m17n.org>
15443         * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15444         (font_has_char): Accept font-object too.
15445         (font_find_for_lface): Try at first with a size specified in face.
15447 2008-02-01  Kenichi Handa  <handa@m17n.org>
15449         * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15450         font_open_by_name.
15452 2008-02-01  Kenichi Handa  <handa@m17n.org>
15454         * font.h (QCspacing, QCdpi): Extern them.
15455         (enum font_spacing): New enum.
15456         (FONT_PIXEL_SIZE_QUANTUM): New macro.
15458         * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15459         (QCspacing, QCdpi): New variables.
15460         (syms_of_font): Initialize them.
15461         (font_pixel_size): New function.
15462         (font_put_extra): New function.
15463         (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
15464         in FONT_EXTRA.
15465         (font_parse_fcname): Handle enumerated values (e.g. bold).
15466         Fix handling font size.  Add QCname property that contains only
15467         unknown properties.
15468         (font_score): Change argument.  Change caller.  Pay attention to
15469         FONT_PIXEL_SIZE_QUANTUM.
15470         (font_sort_entites, font_list_entities, font_find_for_lface)
15471         (font_open_for_lface, font_open_by_name): Fix handling of font size.
15472         (Ffont_spec): Add QCname property that contains only unknown properties.
15474         * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.  Don't
15475         include weight in listing pattern, instead check weight of each
15476         listed font.  Don't include scalable in pattern.  Pay attention to
15477         FONT_PIXEL_SIZE_QUANTUM.
15479 2008-02-01  Kenichi Handa  <handa@m17n.org>
15481         * font.c (font_parse_fcname): Fix parsing of point-size.
15482         (font_unparse_fcname): Produce symbolic names for style properties.
15483         (font_list_entities): Handle float size correctly.
15484         (font_open_by_name): Prefer `normal' property values if the name
15485         doesn't specify them.
15487         * fontset.c (Finternal_char_font): Use font_get_name, not
15488         Ffont_xlfd_name.
15490         * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15491         FC_WEIGHT_REGULAR.  Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15492         pattern.  Don't force scalable.
15494         * xftfont.c (xftfont_open): For generating a name, start from
15495         96-byte buffer.
15497 2008-02-01  Jan Djärv  <jan.h.d@swipnet.se>
15499         * frame.h (x_new_fontset2): Fix prototype.
15501 2008-02-01  Kenichi Handa  <handa@m17n.org>
15503         * font.h (struct font_driver): Delete member parse_name.
15504         (font_match_p, font_get_spec, font_parse_fcname)
15505         (font_unparse_fcname): Extern them.
15506         (font_get_name): Adjust prototype.
15508         * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15509         (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15510         (font_expand_wildcards): Fix handling ENCODING field.  Avoid
15511         unnecessary checks for weight, slant, and swidth.
15512         (font_parse_fcname): New function.
15513         (font_unparse_fcname): New function.
15514         (font_parse_name): New function.
15515         (font_match_p): New function.
15516         (font_get_name): Change return value to Lisp string.
15517         (font_get_spec): New function.
15518         (Qunspecified, Qignore_defface): Don't extern them.
15519         (font_find_for_lface): Assume that LFACE is fully specified.
15520         (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15521         object, use it for FACE.
15522         (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
15523         driver->parse_name.
15524         (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15526         * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15527         prototype.
15529         * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15530         argument F.  Don't call Fnew_fontset.  Instead, directly call
15531         make_fontset.
15533         * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15535         * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15536         of x_new_fontset2.
15538         * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15539         (Qsans__serif): New variables.
15540         (ftfont_generic_family_list): New variable.
15541         (syms_of_ftfont): Initialize the above variables.
15542         (ftfont_pattern_entity): Delete argument NAME.
15543         (ftfont_list_generic_family): New function.
15544         (ftfont_parse_name): Delete this function.
15545         (ftfont_list): Try generic family only when FcFontList found no font.
15546         (ftfont_list_family): Fix args to FcObjectSetBuild.
15548         * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15549         object in attrs[LFACE_FONT_INDEX].
15550         (set_lface_from_font_name): Cancel all changes for font-backend.
15551         (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15552         function.
15553         (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15554         font object in QCfont attribute.
15555         (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15556         (realize_default_face) [USE_FONT_BACKEND]: Call
15557         set_lface_from_font_and_fontset.
15559         * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15560         "fixed", and signal error here if no suitable font was found.
15562         * xfont.c (xfont_parse_name): Delete this function.
15564         * xftfont.c (xftfont_open): Change coding style of error
15565         handling.  Generate fontconfig's fontname pattern.
15567         * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15568         (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15570         * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15571         Both args FONTSET and FONT_OBJECT must be existing ones.
15573 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15575         * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15577 2008-02-01  Kenichi Handa  <handa@m17n.org>
15579         * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15581         * font.h (struct font): Fix typo.
15583         * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15584         XLFD_XXX_INDEX.
15585         (enum xlfd_field_mask): New enum.
15586         (intern_font_field): Changed argument.  Change caller.  If digits
15587         are followed by non-digits, return a symbol.
15588         (font_expand_wildcards): New function.
15589         (font_parse_xlfd): Fix wildcard handling.
15590         (Ffont_spec): If :name is specified, reflect the info in the other
15591         properties.
15593         * ftfont.c (ftfont_pattern_entity): Fix typo.
15594         (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15595         locale.
15597 2008-02-01  Kenichi Handa  <handa@m17n.org>
15599         * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15601         * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15602         (font_unparse_xlfd): Fix argument type declaration.  Append "*" if
15603         registry doesn't specify encoding part.
15604         (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15605         (font_open_by_name): At first try parsing the name.
15606         (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15607         as Lisp symbols.
15609         * fontset.c (reorder_font_vector): Pay attention to the case that
15610         the 3rd element of font_def is nil.
15611         (fontset_font): For the default fontset, append one more fontset
15612         elements for a script-based font specification.  Don't add script
15613         attribute on finding a font.
15614         (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15615         font name.
15616         (fontset_ascii_font): If a font can't be opened, return nil.
15618         * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15619         (ftfont_pattern_entity): New function.
15620         (ftfont_get_cache): Assume that freetype_font_cache is already
15621         initialized.
15622         (ftfont_list): Handle the case that a file is specified in font
15623         name.  Use ftfont_pattern_entity to generate entities.
15624         (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15625         (syms_of_ftfont): Initialize freetype_font_cache.
15627         * xftfont.c (xftfont_open): Make the font name fontconfig's
15628         style.  Add BLOCK_INPUT and UNBLOCK_INPUT.
15629         (xftfont_close): Free font->font.name if not NULL.
15631         * xfont.c (xfont_list): If script is specified for a font, return
15632         null_vector.
15633         (xfont_list_family): Declare argument type.
15635         * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15636         name, set LFACE_FONT (lface) to nil.
15638         * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15639         return Qnil.
15641 2008-02-01  Kenichi Handa  <handa@m17n.org>
15643         * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15644         (standard_args): Add "-enable-font-backend".
15646 2008-02-01  Kenichi Handa  <handa@m17n.org>
15648         * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15649         (struct xftdraw_list, xftdraw_list): Delete them.
15650         (register_xftdraw, check_xftdraw): Delete them.
15651         (xftfont_prepare_face): Don't call register_xftdraw.
15652         (xftfont_done_face): Don't call check_xftdraw.
15653         (xftfont_draw): Get background color only when with_background is
15654         nonzero.
15656         * xfont.c (xfont_encode_char): Fix calculation of char2b.
15658 2008-02-01  Kenichi Handa  <handa@m17n.org>
15660         These changes are for the new font handling codes.
15662         * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15663         @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15664         (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15665         (FONTSRC, FONTOBJ): New variables.
15666         (obj): Add $(FONTOBJ).
15667         (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15668         (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15669         @LIBOTF_LIBS@.
15670         (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15671         (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15673         * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15675         * character.h (Vscript_representative_chars): Extern it.
15677         * character.c (Vscript_representative_chars): New variable.
15678         (syms_of_character): Declare it as a Lisp variable.
15680         * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15681         enable_font_backend is nonzero, accept the composition method
15682         COMPOSITION_WITH_GLYPH_STRING.
15684         * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15685         enumeration COMPOSITION_WITH_GLYPH_STRING.
15687         * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15688         members clip_x, clip_y, clip_width, and clip_height.
15689         (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15691         * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15692         --enable-font-backend.  Call syms_of_font.
15694         * fns.c (assoc_no_quit): New function.
15696         * fontset.h (FONT_INFO_FROM_FACE): New macro.
15697         (face_for_font, new_fontset_from_font)
15698         (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15700         * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15701         (fontset_font, fontset_ascii, face_for_char)
15702         (make_fontset_for_ascii_face, Ffont_info)
15703         (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15704         is nonzero, use font-backend mechanism.
15705         (find_font_encoding): Make it non-static.
15706         (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15707         New functions.
15709         * frame.h (struct frame): New members resx and resy.
15710         (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15711         (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15713         * frame.c [USE_FONT_BACKEND]: Include "font.h".
15714         (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15716         * lisp.h (assoc_no_quit): Extern it.
15718         * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15719         Through out the file, use FONT_INFO_FROM_FACE instead of
15720         FONT_INFO_FROM_ID, use get_per_char_metric instead of
15721         rif->per_char_metric.
15722         (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15723         method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15724         (get_glyph_face_and_encoding, fill_composite_glyph_string)
15725         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15726         (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15727         nonzero, use font-backend mechanism.
15728         (get_per_char_metric): New function.
15730         * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15731         (set_lface_from_font_name)
15732         (set_font_frame_param, free_realized_face)
15733         (prepare_face_for_display, clear_face_gcs)
15734         (Finternal_set_font_selection_order, realize_x_face)
15735         [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15736         font-backend mechanism.
15737         (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15738         (load_face_font) [USE_FONT_BACKEND]: Abort.
15739         (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15740         (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15742         * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15743         (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15744         (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15745         nonzero, register all available font drivers.  Call
15746         x_default_font_parameter for deciding a font.
15747         (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15749         * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15750         (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15751         (x_set_glyph_string_clipping_exactly)
15752         (x_compute_glyph_string_overhangs)
15753         (x_draw_glyph_string_foreground)
15754         (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15755         (x_free_frame_resources) [USE_FONT_BACKEND]: If
15756         enable_font_backend is nonzero, use font-backend mechanism.
15757         (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15759 2008-02-01  Kenichi Handa  <handa@m17n.org>
15761         * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15762         system_eol_type.
15763         (syms_of_coding): Initialize system_eol_type.
15765         * process.c (Fset_process_coding_system): Inherit system's eol
15766         format if necessary.
15768 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15770         * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15772 2008-02-01  Kenichi Handa  <handa@m17n.org>
15774         * coding.c (decode_eol): Pay attention to buffer relocation in
15775         del_range_2.
15776         (decode_coding): Call decode_eol before restoring undo_list.
15778 2008-02-01  Kenichi Handa  <handa@m17n.org>
15780         * charset.c (Fdefine_charset_internal): Fix setting of
15781         emacs_mule_bytes.
15783 2008-02-01  Kenichi Handa  <handa@m17n.org>
15785         * keyboard.c (read_char): Check if C is a character or not before
15786         looking up Vkeyboard_translate_table.
15788 2008-02-01  Kenichi Handa  <handa@m17n.org>
15790         * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15791         condition to terminate the loop.
15793 2008-02-01  Kenichi Handa  <handa@m17n.org>
15795         * coding.c (produce_composition): Compare charbuf[i] instead of
15796         args[i] against 0.
15797         (Fterminal_coding_system): Use EQ to compare Lisp objects.
15799 2008-02-01  Kenichi Handa  <handa@m17n.org>
15801         * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15802         coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15803         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15804         detect_coding.
15805         (emacs_mule_char): Handle old style (Emacs 20) component character
15806         of a composition.
15807         (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15808         (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15809         composition rule.
15810         (decode_coding_emacs_mule): Handle invalid bytes correctly.
15812 2008-02-01  Kenichi Handa  <handa@m17n.org>
15814         * coding.c (encode_coding_ccl): Allocate destination dynamically
15815         when necessary.
15817 2008-02-01  Kenichi Handa  <handa@m17n.org>
15819         * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15820         the loop.  When quitted, show a proper error message.
15822 2008-02-01  Kenichi Handa  <handa@m17n.org>
15824         * xterm.c (x_set_glyph_string_clipping_exactly): Set
15825         src->clip_head and src->clip_tail temporarily instead of src->hl.
15827         * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15828         character sequence.
15829         (Fccl_execute_on_string): Use ASET, not XSET.
15831 2008-02-01  Kenichi Handa  <handa@m17n.org>
15833         * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15835 2008-02-01  Kenichi Handa  <handa@m17n.org>
15837         * coding.c (decode_coding): Fix the condition of terminating the
15838         decoding loop.
15840 2008-02-01  Kenichi Handa  <handa@m17n.org>
15842         * data.c (Faset): On setting a character bigger than 255 in a
15843         unibyte string, signal an error instead of make the string multibyte.
15845 2008-02-01  Kenichi Handa  <handa@m17n.org>
15847         * charset.c (map_charset_chars): Fix for ascii-compatible charset
15848         made by a mapping table.
15850 2008-02-01  Kenichi Handa  <handa@m17n.org>
15852         * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15853         not.
15854         (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15855         (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15857         * xterm.c (x_draw_composite_glyph_string_foreground): Check
15858         s->face is NULL or not.
15860 2008-02-01  Kenichi Handa  <handa@m17n.org>
15862         * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15863         (x_draw_glyph_string): Fix drawing of right_overhang and
15864         left_overhang around/on cursor.
15866         * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15868 2008-02-01  Kenichi Handa  <handa@m17n.org>
15870         * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15872 2008-02-01  Kenichi Handa  <handa@m17n.org>
15874         * coding.c (Fdefine_coding_system_internal)
15875         (Fdefine_coding_system_alias): Avoid a duplicated element in
15876         Vcoding_system_alist.
15878 2008-02-01  Kenichi Handa  <handa@m17n.org>
15880         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15882         * coding.c (Qcoding_system_define_form): New variable.
15883         (syms_of_coding): Intern and staticpro it.
15884         (Fcoding_system_p): Check Qcoding_system_define_form.
15885         (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15887         * coding.h (CODING_SYSTEM_P): If ID is not available, call
15888         Fcoding_system_p.
15889         (CHECK_CODING_SYSTEM): If ID is not available, call
15890         Fcheck_coding_system.
15891         (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15892         Try also Fcheck_coding_system.
15894 2008-02-01  Kenichi Handa  <handa@m17n.org>
15896         * coding.c (code_conversion_restore): GCPRO arg.
15898 2008-02-01  Kenichi Handa  <handa@m17n.org>
15900         * character.c (lisp_string_width): Check multibyteness of STRING.
15902 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15904         * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15905         Qnil.  Use JIS_TO_SJIS instead of ENCODE_SJIS.
15906         (decode_mac_font_name): Use decode_coding_c_string instead of
15907         decode_coding.
15908         (x_load_font): Initialize fontp->fontset to -1.  Set
15909         fontp->encoding_type.
15911 2008-02-01  Kenichi Handa  <handa@m17n.org>
15913         * search.c (search_buffer): Give up BM search on case-fold-search
15914         if one of a target character has a case-equivalence of different
15915         byte length even if that target charcter is an ASCII.
15916         (simple_search): Fix calculation of byte length of matched text.
15917         (boyer_moore): Fix handling of case-equivalent multibyte characters.
15919 2008-02-01  Kenichi Handa  <handa@m17n.org>
15921         * coding.c (decode_coding): Fix handling of invalid bytes.
15923 2008-02-01  Kenichi Handa  <handa@m17n.org>
15925         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15926         Unicode characters.
15928 2008-02-01  Kenichi Handa  <handa@m17n.org>
15930         * coding.c (encode_coding_object): If a pre-write-conversion
15931         function makes a new buffer, kill it.
15933 2008-02-01  Kenichi Handa  <handa@m17n.org>
15935         * coding.c (QCascii_compatible_p): New variable.
15936         (syms_of_coding): Initialize it.
15937         (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15938         calling string_char.
15939         (record_conversion_result): Add `default:' case.
15940         (coding_charset_list): Delete unused variable `coding_type'.
15941         (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15942         property in the plist of the coding system.
15943         (Fcoding_system_put): Check QCascii_compatible_p.
15945 2008-02-01  Miles Bader  <miles@gnu.org>
15947         * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15948         removed calculation of frame `f', as it's now used.
15950 2008-02-01  Kenichi Handa  <handa@m17n.org>
15952         * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15953         (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15954         (UNIDATA): New variable.
15955         (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15956         (bootstrap-emacs${EXEEXT}): Depends on charprop.el.  Run
15957         $(RUN_TEMACS) unconditionally.
15959 2008-02-01  Kenichi Handa  <handa@m17n.org>
15961         * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15962         (admindir): New variable.
15963         ($(lispsource)international/charprop.el): New target.
15965 2008-02-01  Miles Bader  <miles@gnu.org>
15967         * character.c (chars-in-region): Remove obsolete function.
15968         (syms_of_character): Remove its initialization.
15970 2008-02-01  Benjamin Riefenstahl  <b.riefenstahl@turtle-trading.net>
15972         * w32select.c (validate_coding_system)
15973         (setup_windows_coding_system): New functions.
15974         (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15975         setup_windows_coding_system.
15976         (setup_config, Fw32_get_clipboard_data): Use
15977         validate_coding_system.
15978         (Fx_selection_exists): Move call to setup_config to a place
15979         where signals are allowed.
15981         * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15982         (Fcheck_coding_system): Add declarations.
15984 2008-02-01  Kenichi Handa  <handa@m17n.org>
15986         * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15988 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
15990         * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15991         string as the second argument for x_new_fontset.
15993 2008-02-01  Kenichi Handa  <handa@m17n.org>
15995         * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15996         (encode_coding_object): Use safe_call instead of call2.
15998 2008-02-01  Kenichi Handa  <handa@m17n.org>
16000         * fontset.c (Fset_fontset_font): Check family element of a given vector.
16002         * Makefile.in (lisp): Include charprop.el.
16004 2008-02-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16006         * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16007         Not sure if it's unnecessary.
16009 2008-02-01  Steven Tamm  <steventamm@mac.com>
16011         * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16012         some possibly unnecessary fontset checking code that crashed
16013         when creating a new frame.
16015 2008-02-01  Kenichi Handa  <handa@m17n.org>
16017         * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16018         lookup_face.
16020         * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16022         * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16024 2008-02-01  Kenichi Handa  <handa@m17n.org>
16026         * coding.c: Cancel the change done in HEAD on 2008-02-01.
16027         (coding_charset_list): New function.
16029         * coding.h (coding_charset_list): Extern it.
16031 2008-02-01  Kenichi Handa  <handa@m17n.org>
16033         * fontset.c (Fset_fontset_font): Call find_font_encoding with
16034         concatenation of family and registry.
16036 2008-02-01  Kenichi Handa  <handa@m17n.org>
16038         * character.h (BYTE8_STRING): Fix typo.
16040         * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16041         string to multibyte (sync to HEAD).
16043         * casefiddle.c (casify_region): Handle changes in byte-length
16044         using replace_range_2 (sync to HEAD).
16046 2008-02-01  Andreas Schwab  <schwab@suse.de>
16048         * chartab.c (map_char_table): GCPRO table and arg.
16050 2008-02-01  Kenichi Handa  <handa@m17n.org>
16052         * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16053         already at limit.
16055 2008-02-01  Kenichi Handa  <handa@m17n.org>
16057         * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16058         instead of fast_c_string_match_ignore_case.
16059         (find_font_encoding): Change argument to Lisp_Object.  Use
16060         fast_string_match_ignore_case instead of
16061         fast_c_string_match_ignore_case.  Change caller.
16063 2008-02-01  Kenichi Handa  <handa@m17n.org>
16065         * xdisp.c (get_next_display_element): In unibyte case, decide to
16066         display in octal form by checking a character by
16067         UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16069         * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16071         * character.c (unibyte_has_multibyte_table): New variable.
16073         * character.h (unibyte_has_multibyte_table): Extern it.
16074         (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16076 2008-02-01  Kenichi Handa  <handa@m17n.org>
16078         * coding.c (encode_coding_iso_2022): Fix handling of charset
16079         annotation.
16081 2008-02-01  Kenichi Handa  <handa@m17n.org>
16083         * coding.c (setup_coding_system): If coding_system is nil, use
16084         Qundecided.
16085         (Fterminal_coding_system): Return nil if terminal coding system is
16086         `undecided'.
16087         (syms_of_coding): Define coding-system `undecided' here.  Setup
16088         terminal_coding as `undecided'.
16090 2008-02-01  Kenichi Handa  <handa@m17n.org>
16092         * xdisp.c (message_dolog, set_message_1): Call
16093         unibyte_char_to_multibyte with arg type int.
16095         * lread.c (read1): Fix reading of a char-table.
16097         * print.c (print_object): Include sub char-table in circularities
16098         detection.
16100 2008-02-01  Kenichi Handa  <handa@m17n.org>
16102         * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16103         Append the found sequences in car of ARGS instead of prepending.
16105 2008-02-01  Kenichi Handa  <handa@m17n.org>
16107         * fileio.c (report_file_error): Make a unibyte string from
16108         strerror (errorno).
16109         (Fsubstitute_in_file_name): Fix the arg to
16110         unibyte_char_to_multibyte.  It is evaluated twice.
16112 2008-02-01  Kenichi Handa  <handa@m17n.org>
16114         * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16116 2008-02-01  Kenichi Handa  <handa@m17n.org>
16118         * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16119         BOM is not found.
16120         (detect_coding, detect_coding_system): Optimization for ISO-2022
16121         when no 8-bit data is found.
16123 2008-02-01  Jason Rumney  <jasonr@gnu.org>
16125         * w32fns.c (x_to_w32_font): Update to use new coding struct.
16127 2008-02-01  Kenichi Handa  <handa@m17n.org>
16129         * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16130         CHARS.
16132 2008-02-01  Steven Tamm  <steventamm@mac.com>
16134         * macterm.c (mac_encode_char): Add charset argument and update
16135         to use encoding_type.
16136         (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16137         switch to pure fontset.
16138         (decode_mac_font_name): Temporarily remove decoding.
16139         (x_font_name_to_mac_font_name): Temporarily remove encoding.
16140         (x_load_font): Temporarily remove encoding.
16142 2008-02-01  Kenichi Handa  <handa@m17n.org>
16144         * xfaces.c (Fface_font): If frame is not on a window system,
16145         ignore CHARACTER arg.  If HAVE_WINDOW_SYSTEM is not defined, don't
16146         refer to face->font.
16147         (split_font_name_into_vector, build_font_name_from_vector)
16148         (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16149         when HAVE_WINDOW_SYSTEM is defined.
16151 2008-02-01  Kenichi Handa  <handa@m17n.org>
16153         * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16154         (x_produce_glyphs): Fix setting of members of cmp in case
16155         cmp->glyph_len is zero.
16157         * fontset.c (Fset_fontset_font): Fix docstring.
16158         (Ffontset_info): Make it backward compatible.  New arg ALL.
16160 2008-02-01  Kim F. Storm  <storm@cua.dk>
16162         * process.c (read_process_output): Grow decoding_buf when needed;
16163         this could cause a crash in allocate_string and compact_small_strings.
16165 2008-02-01  Kenichi Handa  <handa@m17n.org>
16167         * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16169 2008-02-01  Kenichi Handa  <handa@m17n.org>
16171         * coding.c (setup_coding_system): Set coding->common_flags
16172         correctly for raw-text.
16173         (consume_chars): On encoding unibyte text by raw-text, don't check
16174         multibyte form.
16175         (encode_coding): On encoding by raw-text, never use translation tables.
16177         * fileio.c (e_write): Short cut for the case of no encoding.
16179 2008-02-01  Kenichi Handa  <handa@m17n.org>
16181         * coding.c (detect_coding, detect_coding_system): Delete unused
16182         variables.
16184 2008-02-01  Kenichi Handa  <handa@m17n.org>
16186         * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16187         (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16189 2008-02-01  Kenichi Handa  <handa@m17n.org>
16191         * coding.c (Ffind_coding_systems_region_internal): Include
16192         raw-text and no-conversion in the result.
16194 2008-02-01  Kenichi Handa  <handa@m17n.org>
16196         * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16197         (load_font_get_repertory): Delete unnecessary check of ENCODING of
16198         FONT_DEF.
16199         (font_def_arg, add_arg, from_arg, to_arg): New args.
16200         (set_fontset_font): Change argument.
16201         (Fset_fontset_font): Fix for the case that TARGET is a script
16202         name and charset name.
16203         (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16205 2008-02-01  Kenichi Handa  <handa@m17n.org>
16207         * fontset.c (fontset_font): Rename from fontset_face.  Change return
16208         value.
16209         (face_suitable_for_char_p, face_for_char): Adjust for the change
16210         of fontset_font.
16211         (make_fontset_for_ascii_face): Fix setting of the fontset element
16212         for ASCII.
16213         (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16214         to get a font name.
16215         (Ffontset_info): Adjust for the change of fontset_font.
16217         * coding.c (emacs_mule_char): Check invalid code more rigidly.
16219         * character.h (LEADING_CODE_LATIN_1_MIN)
16220         (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16222 2008-02-01  Kenichi Handa  <handa@m17n.org>
16224         * editfns.c (check_translation): New function.
16225         (Ftranslate_region_internal): Handle M:N mapping.
16227 2008-02-01  Kenichi Handa  <handa@m17n.org>
16229         * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16231 2008-02-01  Kenichi Handa  <handa@m17n.org>
16233         * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16234         goto invalid_code.
16235         (decode_coding_iso_2022): Fix handling of invalid designation.
16237         * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16238         after calling code_conversion_save.
16240 2008-02-01  Kenichi Handa  <handa@m17n.org>
16242         * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16244         * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16246         * fontset.c: Include "intervals.h".
16247         (fontset_face): Fix comparing of Lisp_Objects.
16248         (free_face_fontset, new_fontset_from_font_name): Fix
16249         Lisp_Object/int mixup.
16251         * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16253         * coding.c: Add many prototypes for static functions.
16254         (get_translation_table): Allow max_lookup to be NULL.
16255         (decode_coding, Ffind_coding_systems_region_internal)
16256         (Funencodable_char_position, Fcheck_coding_systems_region): Call
16257         get_translation_table with max_lookup NULL.
16259 2008-02-01  Kenichi Handa  <handa@m17n.org>
16261         * coding.c (get_translation_table): Declare it as Lisp_Object.
16262         (LOOKUP_TRANSLATION_TABLE): New macro.
16263         (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16264         instead of CHAR_TABLE_REF.
16266 2008-02-01  Kenichi Handa  <handa@m17n.org>
16268         * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16269         annotation data format.
16270         (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16271         Change arguments FROM and TO to single argument NCHARS.  Change caller.
16272         (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16273         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16274         (decode_coding_ccl, decode_coding_charset): Pay attention to
16275         coding->charbuf_used.
16276         (get_translation): New function.
16277         (produce_chars): New arguments translation_table and last_block.
16278         Translate characters here.  Return number of carryover chars.
16279         Change caller.
16280         (produce_composition): New argument pos.  Change caller.
16281         Adjust for the change of annotation data format.
16282         (produce_charset, produce_annotation): Likewise.
16283         (decode_coding, encode_coding): Don't call translate_chars.
16284         (consume_chars): New arg translation_table.  Change caller.
16285         (translate_chars): Delete.
16286         (syms_of_coding): Make translation-table's number of extra slots 2.
16288 2008-02-01  Kenichi Handa  <handa@m17n.org>
16290         * search.c (simple_search): Fix setting this_pos_byte in backward
16291         search.
16293         * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16294         byte sequence.
16295         (detect_coding_ccl): Fix setting of the variable valids.
16297 2008-02-01  Kenichi Handa  <handa@m17n.org>
16299         * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16301         * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16303         * editfns.c (Ftranslate_region_internal): Rename from
16304         Ftranslate_region.  Accept a char-table in TABLE.
16305         (syms_of_editfns): Defsubr Stranslate_region_internal.
16307         * xfaces.c (set_lface_from_font_name): If a font is specified for
16308         a frame, generate a fontset from the font.
16309         (build_scalable_font_name): If the scalable font is requested for
16310         a specific size, don't change that size.
16311         (try_font_list): Try a scalable font also in the case that a
16312         pattern string is specified.
16314 2008-02-01  Kenichi Handa  <handa@m17n.org>
16316         * xfaces.c (Fface_font): New optional arg CHARACTER.
16318 2008-02-01  Kenichi Handa  <handa@m17n.org>
16320         * charset.h (CHARSET_OFFSET): New macro.
16322 2008-02-01  Kenichi Handa  <handa@m17n.org>
16324         * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16326         * fontset.c (fontset_face): Handle the case that repertory is a
16327         char-table.
16328         (find_font_encoding): Return nil for unknown encoding.
16329         (Fset_fontset_font): Ignore a font of unknown encoding.
16331 2008-02-01  Kenichi Handa  <handa@m17n.org>
16333         * keymap.c (describe_vector): Handle default value of a char table.
16335         * fontset.c (fontset_face): Handle fallback fonts correctly.
16336         (Ffontset_info): Return infomation about fallback fonts.
16338 2008-02-01  Kenichi Handa  <handa@m17n.org>
16340         * fontset.c (FONTSET_DEFAULT): New macro.
16341         (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16342         (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16343         the case that it is nil.
16344         (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16345         (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16347         * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16348         subset or superset.
16350 2008-02-01  Kenichi Handa  <handa@m17n.org>
16352         * emacs.c (main): Call init_charset after syms_of_XXX.
16354         * charset.c (Vcharset_map_directory): Delete.
16355         (Vcharset_map_path): New variable.
16356         (load_charset_map_from_file): Use Vcharset_map_path instead.
16357         (init_charset): Initialize Vcharset_map_path.
16358         (syms_of_charset): Delete declaration of "charset-map-directory",
16359         add declaration of "charset-map-path".
16361 2008-02-01  Kenichi Handa  <handa@m17n.org>
16363         * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16364         ASCII only string.
16366         * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16368         * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16369         (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16371 2008-02-01  Kenichi Handa  <handa@m17n.org>
16373         * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16375         * coding.c (QCmnemonic, QCdefalut_char)
16376         (QCdecode_translation_table, QCencode_translation_table)
16377         (QCpost_read_conversion, QCpre_write_conversion): New variables.
16378         (get_translation_table): Return a list of translation tables if
16379         necessary.
16380         (decode_coding): Call get_translation_table with ENCODEP 0.
16381         (char_encodable_p): If translation_table is non-nil, always call
16382         translate_char.
16383         (Fdefine_coding_system_internal): Accept list of translation
16384         tables as :encode-translation-table and :decode-translation-table.
16385         (Fcoding_system_put): New function.
16386         (syms_of_coding): Declare new symbols.  Defsubr
16387         Scoding_system_put.
16388         (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16389         typically JISX0212.
16391         * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16392         when the charset is superset type.
16394         * character.c (translate_char): Accept list of translation tables.
16396 2008-02-01  Kenichi Handa  <handa@m17n.org>
16398         * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16399         (CODING_ATTR_TRANS_TBL): New macro.
16401         * coding.c (get_translation_table): New function.
16402         (translate_chars): Fix the bug of skipping annotation data.
16403         (decode_coding, encode_coding): Utilize get_translation_table.
16404         (char_encodable_p, Funencodable_char_position): Translate char if
16405         necessary.
16406         (Ffind_coding_systems_region_internal)
16407         (Fcheck_coding_systems_region): Setup translation table for encode
16408         in a coding system attribute vector in advance.
16409         (Fdefine_coding_system_internal): Allow a symbol as translation
16410         table.  For shift-jis type coding system, allow 4th charset.
16412 2008-02-01  Kenichi Handa  <handa@m17n.org>
16414         * coding.c (decode_coding_sjis): Check the first byte rigidly.
16416         * xdisp.c (get_next_display_element): Pass -1 as POS to
16417         FACE_FOR_CHAR if displaying a C-string.
16419 2008-02-01  Kenichi Handa  <handa@m17n.org>
16421         * composite.c (get_composition_id): Handle xoff and yoff in a
16422         composition rule.
16424         * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16425         (struct composition): New member lbearing and rbearing.
16427         * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16428         (x_get_glyph_overhangs): Handle a composition glyph.
16429         (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16431         * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16432         composition glyph.
16434 2008-02-01  Kenichi Handa  <handa@m17n.org>
16436         * print.c: Include charset.h.
16437         (Vprint_charset_text_property): New variable.
16438         (Qdefault): Extern it.
16439         (PRINT_STRING_NON_CHARSET_FOUND)
16440         (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16441         (print_check_string_result): New variable.
16442         (print_check_string_charset_prop): New function.
16443         (print_prune_charset_plist): New variable.
16444         (print_prune_string_charset): New function.
16445         (print_object): Call print_prune_string_charset if
16446         Vprint_charset_text_property is not t.
16447         (print_interval): Print nothing if interval->plist is nil.
16448         (syms_of_print): Declare Vprint_charset_text_property as a lisp
16449         variable.  Init and staticpro print_prune_charset_plist.
16451 2008-02-01  Kenichi Handa  <handa@m17n.org>
16453         * fontset.c (new_fontset_from_font_name): Use the specified font
16454         for all characters in the new fontset.
16456         * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16457         OBJECT args.
16459         * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16460         OBJECT args for composition too.
16462         * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16463         OBJECT args.
16465 2008-02-01  Kenichi Handa  <handa@m17n.org>
16467         * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16469         * fontset.c (reorder_font_vector): Adjust for the change of
16470         FONT_DEF format.
16471         (fontset_face): New arg id.  Change caller.
16472         (face_for_char): New args pos and object.
16473         (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16474         (fs_query_fontset): Check NAME by Fassoc too.
16475         (Fset_fontset_font): Allow non-XLFD font name.
16476         (Ffontset_info): Adjust for the change of FONT_DEF format.
16478         * fontset.h (face_for_char): Adjust prototype.
16480         * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16481         (append_space, extend_face_to_end_of_line)
16482         (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16483         (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16485         * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16486         POS and OBJECT args.
16488         * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16489         POS and OBJECT args.
16491 2008-02-01  Jason Rumney  <jasonr@gnu.org>
16493         * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16494         of GlobalAlloc'ed memory.
16496 2008-02-01  Kenichi Handa  <handa@m17n.org>
16498         * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16500         * charset.h (charset_table_used): Delete extern.
16502         * charset.c (charset_table_used): Make it static.
16503         (map_charset_chars): Fix args to c_function with.
16505         * chartab.c (map_sub_char_table_for_charset): Fix args to
16506         c_function with.
16508         * coding.h (enum coding_result_code): Delete
16509         CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16511         * coding.c (Qinsufficient_source, Qinconsistent_eol)
16512         (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16513         (Vlast_code_conversion_error): New variables.
16514         (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16515         (ONE_MORE_BYTE): Record error if any instead of signaling an
16516         error.  If non-ASCII multibyte char is found, return the negative
16517         value of the code.  All callers changed to check it.
16518         (ONE_MORE_BYTE_NO_CHECK): Likewise.
16519         (record_conversion_result): New function.  Change all codes setting
16520         coding->result to call this function.
16521         (detect_coding_utf_8, decode_coding_utf_8)
16522         (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16523         Don't use the local variable incomplete.
16524         (emacs_mule_char): Change the second arg to `const'.
16525         (decode_coding): Fix of flushing out unprocessed data.
16526         (make_conversion_work_buffer): Fix making of a work buffer.
16527         (decode_coding_object): Return coding->dst_object.
16529         * fontset.c (set_fontset_font): Fix args.
16531         * lisp.h (CHARACTERBITS): Define as 22.
16533         * process.c (send_process): Be sure to set coding->src_multibyte.
16535         * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16537 2008-02-01  Kenichi Handa  <handa@m17n.org>
16539         * xdisp.c (handle_auto_composed_prop): Give limit to
16540         Fnext_single_char_property_change.
16542 2008-02-01  Kenichi Handa  <handa@m17n.org>
16544         * composite.c (syms_of_composite): Don't make the composition hash
16545         table weak.
16547         * fontset.c (Fset_fontset_font): Fix docstring.
16549         * lisp.h (detect_coding_system): Adjust prototype.
16551         * fileio.c (kill_workbuf_unwind): Delete this function.
16552         (Finsert_file_contents): Adjust the call of detect_coding_system.
16553         Get conversion_buffer by code_conversion_save.  Use the macro
16554         CODING_MAY_REQUIRE_DECODING.  After decoding, update
16555         coding_system.
16557         * coding.h (make_conversion_work_buffer): Delete extern.
16558         (code_conversion_save): Extern it.
16560         * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16561         (CODING_GET_INFO): Delete argument eol_type.  Change callers.
16562         (decode_coding_utf_8): Don't do eol converion.
16563         (detect_coding_utf_16): Check coding->src_chars, not
16564         coding->src_bytes.  Add heuristics for those that have no signature.
16565         (decode_coding_emacs_mule, decode_coding_iso_2022)
16566         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16567         Don't do eol converion.
16568         (adjust_coding_eol_type): Return a new coding system.
16569         (detect_coding): Don't detect eol.  Fix for utf-16 detection.
16570         (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16571         each change.
16572         (decode_coding): Pay attention to undo_list.  Do eol conversion for
16573         all types of coding-systems (if necessary).
16574         (Vcode_conversion_work_buf_list): Delete it.
16575         (Vcode_conversion_reused_workbuf): Rename from
16576         Vcode_conversion_reused_work_buf.
16577         (Vcode_conversion_workbuf_name): New variable.
16578         (reused_workbuf_in_use): New variable.
16579         (make_conversion_work_buffer): Delete the arg DEPTH.
16580         (code_conversion_restore): Change argument to cons.
16581         (code_conversion_save): Delete the argument BUFFER.  Change callers.
16582         (detect_coding_system): New argument src_chars.  Change callers.
16583         Fix for utf-16 detection.
16584         (init_coding_once): Don't use ISO_carriage_return.
16585         (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16586         reused_workbuf_in_use.
16588 2008-02-01  Kenichi Handa  <handa@m17n.org>
16590         * keymap.c (store_in_keymap): Pay attention to the case that idx
16591         is a cons specifying a character range.
16593 2008-02-01  Kenichi Handa  <handa@m17n.org>
16595         * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16596         HANDLED_RECOMPUTE_PROPS.
16598         * coding.c (Fdefine_coding_system_internal): Fix checking of
16599         ascii compatibility.
16601 2008-02-01  Kenichi Handa  <handa@m17n.org>
16603         * charset.c (find_charsets_in_text): Delete unused locale variable.
16604         (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16606         * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16607         Resync charset_list to Vemacs_mule_charset_list.
16609         * keymap.c (store_in_keymap): Pay attention to the case that idx
16610         is a cons specifying a character range.
16612 2008-02-01  Kenichi Handa  <handa@m17n.org>
16614         * composite.c (update_compositions): Bind inhibit-read-only, etc
16615         to t before calling remove-list-of-text-properties.
16617         * print.c (print_object): Always print ASCII chars as is.
16619 2008-02-01  Kenichi Handa  <handa@m17n.org>
16621         * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16623         * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16624         is a char table.
16626 2008-02-01  Kenichi Handa  <handa@m17n.org>
16628         * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16630 2008-02-01  Kenichi Handa  <handa@m17n.org>
16632         * xfaces.c (set_lface_from_font_name): Fix for the case that
16633         FONTNAME is not fontset name.
16635 2008-02-01  Kenichi Handa  <handa@m17n.org>
16637         * fns.c (base64_encode_1): Fix previous change.
16639 2008-02-01  Kenichi Handa  <handa@m17n.org>
16641         * fontset.c (set_fontset_font): New function.
16642         (Fset_fontset_font): If a font is specified for a charset, use
16643         map_charset_chars to store the font spec in a fontset.
16645 2008-02-01  Kenichi Handa  <handa@m17n.org>
16647         * fontset.c (fontset_face): Create a fallback fontset on demand.
16648         (make_fontset): Don't create a fallback fontset here.
16649         (free_face_fontset): Free a fallback fontset (if any) too.
16650         (n_auto_fontsets): Delete this variable.
16651         (auto_fontset_alist): New variable.
16652         (new_fontset_from_font_name): Check auto_fontset_alist.
16653         (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16654         (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16655         (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16656         Defsubr Sfontset_list_all.
16658 2008-02-01  Kenichi Handa  <handa@m17n.org>
16660         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16662 2008-02-01  Kenichi Handa  <handa@m17n.org>
16664         * fontset.c (Fnew_fontset): Check NAME more rigidly.
16666 2008-02-01  Kenichi Handa  <handa@m17n.org>
16668         * editfns.c (Fgoto_char): Fix docstring.
16670 2008-02-01  Kenichi Handa  <handa@m17n.org>
16672         * insdel.c (insert_from_gap): Adjust intervals correctly.
16674 2008-02-01  Jason Rumney  <jasonr@gnu.org>
16676         * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16677         (pfnGetFontUnicodeRanges): New dynamically loaded function.
16678         (w32_initialize): Try to load it.
16679         (x_get_font_repertory): Use it if available.
16680         (w32_encode_char): Add shortcut for unicode output.
16682         * w32fns.c (w32_load_system_font): Default charset to -1.
16683         (x_to_w32_charset): Match all fonts for unicode.
16684         (w32_to_x_charset): New parameter matching.  Don't return partial
16685         or wildcard charsets.
16686         (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16687         (w32_codepage_for_font): Return CP_UNICODE for unicode.
16688         (w32_to_x_font): Match charset to real charset.
16689         (enum_font_cb2): Always list unicode versions.
16691         * makefile.w32-in (temacs): Increase EMHEAP.
16693 2008-02-01  Jason Rumney  <jasonr@gnu.org>
16695         * w32term.c (w32_encode_char): New charset parameter.
16696         font_info.encoding becomes encoding_type.
16697         (x_get_font_repertory): New function.  Warning: stub only!
16698         (x_new_font): Return quickly if font already set.
16699         (x_new_fontset): fontsetname parameter is Lisp_Object.
16700         Use new fs_query_fontset.  Try new_fontset_from_font_name.
16701         Use fontset_name for return value.
16703         * w32term.h: Declare x_get_font_repertory.
16705         * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16706         place of find_charset_in_text.  Use encode_coding_object in place
16707         of encode_coding.
16708         (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16709         decode_coding.
16711         * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16712         of x_new_fontset.
16713         (w32_load_system_font): Initialize charset as unicode.
16714         font_info.encoding becomes encoding_type.
16715         (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16716         (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16717         (syms_of_w32fns): Set get_font_repertory_func.
16719         * w32console.c: Include character.h.  Use terminal_encode_buffer
16720         from term.c.
16721         (write_glyphs): Use new version of encode_terminal_code.  Use
16722         encode_coding_object in place of encode_coding.
16724         * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16725         encoding becomes encoding_type.
16727         * term.c (terminal_encode_buffer): Make externally visible.
16729         * makefile.w32-in: Add character.h dependancies.
16730         (character.o, chartab.o): New targets.
16732 2008-02-01  Kenichi Handa  <handa@m17n.org>
16734         * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16735         CODING_ID_EOL_TYPE.
16737 2008-02-01  Andreas Schwab  <schwab@suse.de>
16739         * coding.c (produce_chars): Revert last change.
16741 2008-02-01  Kenichi Handa  <handa@m17n.org>
16743         * charset.h (charset_unicode): Extern it.
16745         * charset.c (string_xstring_p): Check by (C >= 0x100).
16746         (find_charsets_in_text): Change format of the arc CHARSETS.  New
16747         arg MULTIBYTE.
16748         (Ffind_charset_region, Ffind_charset_string): Adjust for the
16749         change of find_charsets_in_text.
16750         (Fsplit_char): Fix doc.  Never return unknown.
16752         * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16754         * coding.c (Fdefine_coding_system_alias): Update
16755         Vcoding_system_list.
16757         * fontset.c (load_font_get_repertory): Pay attention to the case
16758         that ENCODING of a font is specified by a char-table.
16760         * xterm.c (x_get_font_repertory): Handle the case that the
16761         encoding of font is other than Unicode.
16763 2008-02-01  Kenichi Handa  <handa@m17n.org>
16765         * term.c (encode_terminal_code): Don't handle glyph-table.  Check
16766         if a character is encodable by the terminal coding system.  If
16767         not, produces proper number of `?'s.  Update
16768         terminal_encode_buffer and terminal_encode_buf_size if necessary.
16769         (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16771 2008-02-01  Kenichi Handa  <handa@m17n.org>
16773         * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16774         variables.
16775         (encode_terminal_code): Change argument.  Encode multiple
16776         characters at once.  Store the result of encoding in
16777         terminal_encode_buffer.
16778         (write_glyphs, insert_glyphs): Adjust for the change of
16779         encode_terminal_code.
16780         (term_init): Initialize terminal_encode_buffer and
16781         terminal_encode_buf_size.
16783         * coding.c (consume_chars): If coding->src_object is nil, don't
16784         check annotation.
16786 2008-02-01  Kenichi Handa  <handa@m17n.org>
16788         * character.c (char_string): Use ASCII_CHAR_P instead of
16789         SINGLE_BYTE_CHAR_P.
16791 2008-02-01  Kenichi Handa  <handa@m17n.org>
16793         * xdisp.c (handle_auto_composed_prop): Check if the last
16794         characters of auto-composed region is newly composed with the
16795         following characters.
16796         (handle_composition_prop): Fix checking of point being inside
16797         composition.
16799 2008-02-01  Kenichi Handa  <handa@m17n.org>
16801         * fns.c (concat): Don't change multibyteness of the result by
16802         concatenating an 8-bit character.
16804         * data.c (Faset): Check newelt by CHECK_CHARACTER.  Don't change
16805         multibyteness of the result when newelt is an 8-bit character.
16807 2008-02-01  Dave Love  <fx@gnu.org>
16809         * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16810         EMACS_INT.
16812         * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16814         * xfaces.c (face_numeric_value): Declare dim size_t.
16815         (Finternal_lisp_face_equal_p): Remove unused f.
16817         * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16818         (MATRIX_ROW): Remove unused vars.
16819         (draw_glyphs, x_insert_glyphs, fast_find_position)
16820         (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16821         byte/char counts.
16823         * regex.c (regex_compile): Remove unused var.
16825         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16827         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16828         (Faccessible_keymaps, where_is_internal): Remove unused vars.
16830         * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16832         * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16834         * fileio.c (Fwrite_region): Remove unused var.
16836         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16837         (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16839         * composite.c (Fremove_list_of_text_properties): Declare.
16841         * coding.c (inhibit_pre_post_conversion): Remove (unused).
16842         (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16843         (coding_inherit_eol_type): Remove unused attrs.
16844         (detect_coding): Cast arg of detect_eol.
16846         * charset.c (syms_of_charset): Remove unused var p.
16847         (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16848         byte/char counts.
16850         * casetab.c (set_case_table): Remove unused var.
16852         * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16853         unused vars.
16855 2008-02-01  Dave Love  <fx@gnu.org>
16857         * xterm.c (x_bitmap_mask): Declare.
16859 2008-02-01  Dave Love  <fx@gnu.org>
16861         * xterm.c (x_term_init): Fix type error.
16863         * lisp.h: Add Funibyte_char_to_multibyte.
16865         * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16866         (Fset_coding_system_priority): Doc fix.
16868         * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16870         * indent.c (check_composition): Make start and end EMACS_INT.
16872         * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16874         * xdisp.c (handle_composition_prop, check_point_in_composition):
16875         Make buffer positions EMACS_INT.
16877         * composite.c (find_composition, run_composition_function)
16878         (update_compositions, Ffind_composition_internal): Make buffer
16879         positions EMACS_INT.
16881         * composite.h (find_composition, update_compositions): Make
16882         position args EMACS_INT.
16884         * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16886         * intervals.c (get_property_and_range):
16887         * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16889         * unexalpha.c: Don't include varargs.h.
16891 2008-02-01  Dave Love  <fx@gnu.org>
16893         * coding.h (ENCODE_UTF_8): New.
16895         * Makefile.in (gtkutil.o): Depend on coding.h.
16897         * coding.c (Fset_coding_system_priority): Doc fix.
16899 2008-02-01  Kenichi Handa  <handa@m17n.org>
16901         * fileio.c (Finsert_file_contents): Call setup_coding_system in
16902         the case of auto saving.
16904 2008-02-01  Andreas Schwab  <schwab@suse.de>
16906         * chartab.c (map_char_table, map_char_table_for_charset): Protect
16907         `range' from GC.
16909 2008-02-01  Kenichi Handa  <handa@m17n.org>
16911         * coding.c (decode_coding_sjis): Check bytes more rigidly.
16913 2008-02-01  Kenichi Handa  <handa@m17n.org>
16915         * fileio.c (choose_write_coding_system): Return a decided coding system.
16916         (Fwrite_region): Set Vlast_coding_system_used to the return value
16917         of choose_write_coding_system.
16919 2008-02-01  Kenichi Handa  <handa@m17n.org>
16921         * charset.c (Fset_charset_priority): Pay attention to duplicated
16922         arguments.
16924         * coding.c (QCcategory): New variable.
16925         (syms_of_coding): Defsym it.  Set all elements of
16926         Vcoding_category_table and their symbol values.
16927         (Fset_coding_system_priority): Doc fix.  Update symbol qvalues of
16928         coding-category-XXX, and coding-category-list.
16929         (Fdefine_coding_system_internal): Add category in the plist.
16931 2008-02-01  Kenichi Handa  <handa@m17n.org>
16933         * callproc.c (Fcall_process): Handle carryover correctly.
16935         * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16936         (raw_text_coding_system): Check NILP (coding_system).
16937         (coding_inherit_eol_type): Check NILP (coding_system) and
16938         NILP (parent).
16939         (consume_chars): Fix for the case of raw-text.
16941         * process.c (read_process_output): Handle carryover correctly.
16943 2008-02-01  Dave Love  <fx@gnu.org>
16945         * regex.c (re_search_2): Fix last change.
16947 2008-02-01  Kenichi Handa  <handa@m17n.org>
16949         * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16950         target_multibyte.  Even in a unibyte case, return a converted
16951         multibyte char.
16952         (GET_CHAR_AFTER): New macro.
16953         (PATFETCH): Translate via multibyte char.
16954         (HANDLE_UNIBYTE_RANGE): Delete this macro.
16955         (SETUP_MULTIBYTE_RANGE): New macro.
16956         (regex_compile): Setup compiled code so that its multibyteness
16957         matches that of a target.  Fix the handling of "[X-YZ]" using
16958         SETUP_MULTIBYTE_RANGE.
16959         (analyse_first) <charset>: For filling fastmap for all multibyte
16960         characters, don't check by BASE_LEADING_CODE_P.
16961         (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp).  It is
16962         the same as RE_MULTIBYTE_P (bufp) now.
16963         (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16964         (TARGET_CHAR_AND_LENGTH): Delete this macro.
16965         (TRANSLATE_VIA_MULTIBYTE): New macro.
16966         (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16967         It is the same as RE_MULTIBYTE_P (bufp) now.
16968         <exactn>: Translate via multibyte.
16969         <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.  Don't
16970         translate it.
16971         <charset, charset_not>: Fetch a character by
16972         RE_STRING_CHAR_AND_LENGTH.  Translate via multibyte.
16973         <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16974         <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16975         notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16976         by GET_CHAR_AFTER.
16977         (bcmp_translate): Likewise.
16979         * search.c (compile_pattern): Check the member target_multibyte,
16980         not the member multibyte of buf.
16982         * lread.c (read1): While reading a string, set force_singlebyte
16983         and force_multibyte correctly.
16985         * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16986         up of unibyte_to_multibyte_table.
16988 2008-02-01  Kenichi Handa  <handa@m17n.org>
16990         * coding.c (setup_coding_system): If coding has
16991         post-read-conversion or pre-write-conversion, set
16992         CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16993         respectively.
16994         (decode_coding_gap): Run post-read-conversion if any.
16996         * fileio.c (Finsert_file_contents): Even if we read into a
16997         unibyte buffer, check if we must decode the result or not.
16999 2008-02-01  Kenichi Handa  <handa@m17n.org>
17001         * coding.c (make_conversion_work_buffer): Change the work buffer
17002         name to the same one as that of Emacs 21.
17004 2008-02-01  Kenichi Handa  <handa@m17n.org>
17006         * coding.h (make_conversion_work_buffer): Adjust prototype.
17007         (code_conversion_restore): Don't extern it.
17009         * coding.c (detected_mask): Delete unused variable.
17010         (decode_coding_iso_2022): Pay attention to the byte sequence of
17011         CTEXT extended segment, and retain those bytes as is.
17012         (decode_coding_ccl): Delete unused variable `valids'.
17013         (setup_coding_system): Delete unused variable `category'.
17014         (consume_chars): Delete unused variable `category'.  Make it work
17015         for non-multibyte case.
17016         (make_conversion_work_buffer): Change argument.
17017         (saved_coding): Delete unused variable.
17018         (code_conversion_restore): Don't check saved_coding->destination.
17019         (code_conversion_save): New function.
17020         (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17021         instead of record_unwind_protect.
17022         (decode_coding_object, encode_coding_object): Likewise.  Recover PT.
17023         (detect_coding_system): Delete unused variable `mask'.
17024         (Fdefine_coding_system_internal): Delete unused variable id.
17026         * fileio.c (kill_workbuf_unwind): New function.
17027         (Finsert_file_contents): On replacing, call
17028         make_conversion_work_buffer with correct args, and call
17029         record_unwind_protect with the first arg kill_workbuf_unwind.
17031         * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17033 2008-02-01  Kenichi Handa  <handa@m17n.org>
17035         * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17036         (fontset_add): Fix for the case that TO is less than TO1.
17037         (Ffontset_info): Don't use fallback fontset on checking the
17038         default fontset.
17039         (dump_fontset): New function for debugging.
17041         * coding.c (Fdefine_coding_system_internal): Fix for the case that
17042         coding_type is Qcharset.
17044 2008-02-01  Kenichi Handa  <handa@m17n.org>
17046         * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17047         (map_char_table): Don't inherit the value from the parent on
17048         initializing VAL.  Adjust for the above change.
17050 2008-02-01  Kenichi Handa  <handa@m17n.org>
17052         * coding.c (Qsignature, Qendian): Delete these variables.
17053         (syms_of_coding): Don't initialize them.
17054         (CATEGORY_MASK_UTF_16_AUTO): New macro.
17055         (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17056         detect_info->found.
17057         (decode_coding_utf_16): Don't detect BOM here.
17058         (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17059         is NOT utf_16_without_bom.
17060         (setup_coding_system): For a coding system of type utf-16, check
17061         if the attribute :endian is Qbig or not (not nil or not), and set
17062         CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17063         (detect_coding): If coding type is utf-16 and BOM detection is
17064         required, detect it.
17065         (Fdefine_coding_system_internal): For a coding system of type
17066         utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17068 2008-02-01  Kenichi Handa  <handa@m17n.org>
17070         * coding.c (coding_set_source): Fix for the case that the current
17071         buffer is different from coding->src_object.
17072         (decode_coding_object): Don't use the conversion work buffer if
17073         DST_OBJECT is a buffer.
17075 2008-02-01  Dave Love  <fx@gnu.org>
17077         * lread.c (read_emacs_mule_char) [len==2]: Index
17078         emacs_mule_charset correctly.
17080 2008-02-01  Dave Love  <fx@gnu.org>
17082         * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17083         (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17084         (Fdecode_big5_char, Fencode_big5_char): Delete.  (Big5 no longer
17085         treated specially.)
17086         (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17087         (detected_mask): Remove Big5 bits.
17089 2008-02-01  Kenichi Handa  <handa@m17n.org>
17091         The following changes are to make the font rescaling facility
17092         compatible with Emacs 21.
17094         * xfaces.c (Vface_font_rescale_alist): Rename from
17095         Vface_resizing_fonts.
17096         (struct font_name): Rename member resizing_ratio to rescale_ratio.
17097         (font_rescale_ratio): Rename from font_resizing_ratio.
17098         (split_font_name): Set font->rescale_ratio.
17099         (better_font_p): Pay attention to font->rescale_ratio.
17100         (build_scalable_font_name): Likewise.  Change RESX, and RESY
17101         fields.
17102         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17104 2008-02-01  Kenichi Handa  <handa@m17n.org>
17106         * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17107         (Qutf_16_le): Remove these variables.
17108         (syms_of_coding): Don't DEFSYM them.
17109         (decode_coding_utf_16): Fix handling of BOM.
17110         (encode_coding_utf_16): Fix handling of BOM.
17112 2008-02-01  Kenichi Handa  <handa@m17n.org>
17114         * fileio.c (Finsert_file_contents): On replacing, before decoding
17115         the file into the work buffer, set point of the work buffer to the end.
17117 2008-02-01  Dave Love  <fx@gnu.org>
17119         * coding.c (Fcheck_coding_systems_region): Fix type errors.
17121 2008-02-01  Dave Love  <fx@gnu.org>
17123         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17124         and fix C types.
17126 2008-02-01  Kenichi Handa  <handa@m17n.org>
17128         * xdisp.c (SKIP_GLYPHS): New macro.
17129         (set_cursor_from_row): Pay attention to string display properties.
17131         * category.c (copy_category_entry): Fix for the case that RANGE
17132         is an integer.
17134         * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17136         * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17138 2008-02-01  Kenichi Handa  <handa@m17n.org>
17140         * charset.c (Fcharset_id_internal): New function.
17141         (syms_of_charset): Defsubr it.
17143         * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17144         with the last arg charset_list acquired from coding.
17145         (Fdefine_coding_system_internal): For ccl-based coding system, fix
17146         the attribute coding_attr_ccl_valids.
17148         * coding.h (enum define_coding_ccl_arg_index): Set the first
17149         member coding_arg_ccl_decoder to coding_arg_max.
17151         * ccl.h (ccl_driver): Adjust prototype.
17153         * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17154         (ccl_driver): New arg CHARSET_LIST.  Use the above macros instead
17155         of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
17156         (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17157         last arg Qnil.
17159 2008-02-01  Kenichi Handa  <handa@m17n.org>
17161         * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17162         call encode_char.
17164         * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17166 2008-02-01  Dave Love  <fx@gnu.org>
17168         * composite.c (syms_of_composite): Make composition_hash_table weak.
17170 2008-02-01  Kenichi Handa  <handa@m17n.org>
17172         * dispextern.h (check_face_attributes, generate_ascii_font_name)
17173         (font_name_registry): Don't extern them.
17174         (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17176         * fontset.h (Qfontset): Don't extern it.
17177         (new_fontset_from_font_name): Extern it.
17179         * fontset.c: Give 8 extra slots to fontset objects.
17180         (Qfontset_info): New variable.
17181         (syms_of_fontset): Defsym it.
17182         (FONTSET_FALLBACK): New macro.
17183         (fontset_face): Try also the default fontset.
17184         (make_fontset): Realize a fallback fontset from the default fontset.
17185         (generate_ascii_font_name): Move from xfaces.c.  Rewritten by
17186         using split_font_name_into_vector and build_font_name_from_vector.
17187         (Fset_fontset_font): Access the elements of font_spec by enum
17188         FONT_SPEC_INDEX.  If font_spec is a string, extract the registry
17189         name by using split_font_name_into_vector.
17190         (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17191         generate a proper font name from the fontset name.  Update
17192         Vfontset_alias_alist.
17193         (n_auto_fontsets): New variable.
17194         (new_fontset_from_font_name): New function.
17195         (Ffont_info): Store the information about fonts generated from the
17196         default fontset in the first extra slot of the returned char-table.
17198         * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17199         (font_name_registry): Delete function.
17200         (split_font_name_into_vector): New function.
17201         (build_font_name_from_vector): New function.
17202         (font_list): The argument REGISTRY is now a list of registry names.
17203         (choose_face_font): If we are choosing an ASCII font, and ATTRS
17204         specifies an explicit font name, return the name as is.  Make a
17205         list of registy names.
17207         * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17208         of x_new_fontset.
17209         (Fx_create_frame): Don't call x_new_fontset here.  Just use
17210         x_list_fonts to check the existence of fonts.
17212         * xterm.h (x_new_fontset): Adjust prototype.
17214         * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17215         string.  Use new_fontset_from_font_name to create a fontset from a
17216         font name.
17218 2008-02-01  Kenichi Handa  <handa@m17n.org>
17220         * syntax.c (Vfind_word_boundary_function_table): New name for
17221         Vnext_word_boundary_function_table.
17222         (find-word-boundary-function-table): New name for
17223         next-word-boundary-function-table.
17225 2008-02-01  Dave Love  <fx@gnu.org>
17227         * Makefile.in: Fix some dependencies.
17229         * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17230         set it to nil before returning.
17232         * composite.c (update_compositions): Fix type error.
17234         * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17236 2008-02-01  Kenichi Handa  <handa@m17n.org>
17238         * xterm.c (x_new_font): Optimize for the case that the font is
17239         already set for the frame.
17241 2008-02-01  Kenichi Handa  <handa@m17n.org>
17243         * chartab.c (char_table_ascii): Check if the char table contents
17244         is sub-char-table or not.
17245         (char_table_set, char_table_set_range): Fix argument to
17246         char_table_ascii.
17248         * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17249         (detect_coding_utf_8, detect_coding_utf_16)
17250         (detect_coding_emacs_mule, detect_coding_iso_2022)
17251         (detect_coding_sjis, detect_coding_big5)
17252         (detect_coding_ccl, detect_coding_charset): Change argument MASK
17253         to DETECT_INFO.  Update DETECT_INFO and return 1 if the byte
17254         sequence is valid in this coding system.  Change callers.
17255         (MAX_ANNOTATION_LENGTH): New macro.
17256         (ADD_ANNOTATION_DATA): New macro.
17257         (ADD_COMPOSITION_DATA): Change argument.  Change callers.  Call
17258         ADD_ANNOTATION_DATA.  Change the format of annotation data.
17259         (ADD_CHARSET_DATA): New macro.
17260         (emacs_mule_char): New argument ID.  Change callers.
17261         (decode_coding_emacs_mule, decode_coding_iso_2022)
17262         (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17263         Produce charset annotation data in coding->charbuf.
17264         (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17265         to charset annotation data in coding->charbuf.
17266         (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17267         coding->common_flags if the coding system is iso-2022 based and
17268         uses designation.
17269         (produce_composition): Adjust for the new annotation data format.
17270         (produce_charset): New function.
17271         (produce_annotation): Handle charset annotation.
17272         (handle_composition_annotation, handle_charset_annotation): New
17273         functions.
17274         (consume_chars): Handle charset annotation.  Utilize the above two
17275         functions.
17276         (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17277         buffer, get the deleted text as a string and set
17278         coding->src_object to that string.
17279         (detect_coding, detect_coding_system): Use the new struct
17280         coding_detection_info.
17282         * coding.h (struct coding_detection_info): New structure.
17283         (struct coding_system): Adjust prototype of the member `detector'.
17284         (CODING_ANNOTATE_CHARSET_MASK): New macro.
17286 2008-02-01  Kenichi Handa  <handa@m17n.org>
17288         * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17290 2008-02-01  Dave Love  <fx@gnu.org>
17292         * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17293         (Fapropos_internal): Don't gcpro apropos_accumulate.  Set result
17294         to new local and nullify apropos_accumulate before returning.
17295         (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17297 2008-02-01  Kenichi Handa  <handa@m17n.org>
17299         * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17300         correctly.
17302 2008-02-01  Dave Love  <fx@gnu.org>
17304         * fns.c (Flanginfo): Call synchronize_system_time_locale.
17306 2008-02-01  Kenichi Handa  <handa@m17n.org>
17308         The following changes are to make character composition happen
17309         automatically on displaying.
17311         * Makefile.in (lisp, shortlisp): Add composite.elc.
17313         * composite.h (Qauto_composed, Vauto_composition_function)
17314         (Qauto_composition_function): Extern them.
17316         * composite.c (Vcomposition_function_table)
17317         (Qcomposition_function_table): Delete variables.
17318         (Qauto_composed, Vauto_composition_function)
17319         (Qauto_composition_function): New variables.
17320         (run_composition_function): Don't call
17321         compose-chars-after-function.
17322         (update_compositions): Clear `auto-composed' text property.
17323         (compose_chars_in_text): Delete this function.
17324         (syms_of_composite): Staticpro Qauto_composed and
17325         Qauto_composition_function.  Declare Vauto_composition_function as
17326         a Lisp variable.
17328         * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17330         * xdisp.c (it_props): Add an entry for Qauto_composed.
17331         (handle_auto_composed_prop): New function.
17333         * xselect.c (selection_data_to_lisp_data): Don't call
17334         compose_chars_in_text.
17336 2008-02-01  Dave Love  <fx@gnu.org>
17338         * keyboard.c (read_char): Modify checking around use of
17339         Vkeyboard_translate_table.
17341         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17342         and fix C types.
17344 2008-02-01  Kenichi Handa  <handa@m17n.org>
17346         * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17347         (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17348         (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17349         the case that the last byte is '\r' correctly.
17350         (decode_coding): Flush out the unprocessed data correctly.
17351         (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17353 2008-02-01  Dave Love  <fx@gnu.org>
17355         * xterm.c (XTread_socket): Fix changes for defined keysyms.
17356         Add XK_ISO... case.
17357         (xaw_scroll_callback): Revert last change.
17359 2008-02-01  Kenichi Handa  <handa@m17n.org>
17361         * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17363 2008-02-01  Kenichi Handa  <handa@m17n.org>
17365         * xfaces.c (Vface_resizing_fonts): New variable.
17366         (struct font_name): New member `resizing_ratio'.
17367         (font_resizing_ratio): New function.
17368         (split_font_name): Set font->resizing_ratio.
17369         (better_font_p): Pay attention to font->resizing_ratio.
17370         (build_scalable_font_name): Likewise.  Don't change POINT_SIZE,
17371         RESX, and RESY fields.
17372         (try_alternative_families): Try scalable fonts if
17373         Vscalable_fonts_allowed is not Qt.
17374         (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17376 2008-02-01  Dave Love  <fx@gnu.org>
17378         * xterm.c (xaw_scroll_callback): Cast correctly.
17380 2008-02-01  Dave Love  <fx@gnu.org>
17382         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17383         (lispy_kana_keys): Comment out.
17384         (make_lispy_event) [XK_kana_A]: Comment out.
17386         * xterm.c (xaw_scroll_callback): Cast call_data.
17387         (XTread_socket): Deal with ASCII keysyms.
17388         (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17390 2008-02-01  Dave Love  <fx@gnu.org>
17392         * xterm.c (Vx_keysym_table): New.
17393         (syms_of_xterm): Initialize it.
17394         (XTread_socket): Use it.
17395         From head: Eliminate incorrect optimization that tried to avoid
17396         decoding the output of X*LookupString.
17397         (x_get_font_repertory): Delete charset declaration.
17399 2008-02-01  Kenichi Handa  <handa@m17n.org>
17401         * coding.c (detect_coding_charset): If only ASCII bytes are found,
17402         return 0.
17403         (Fdefine_coding_system_internal): Setup
17404         CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17406 2008-02-01  Dave Love  <fx@gnu.org>
17408         * coding.c (Fcheck_coding_system): Doc fix.
17410         * editfns.c (Finsert_byte): Return a proper value.
17412 2008-02-01  Kenichi Handa  <handa@m17n.org>
17414         * coding.c (decode_coding): Fix args to translate_chars.  Pay
17415         attention to Vstandard_translation_table_for_decode.
17416         (encode_coding): Fix args to translate_chars.  Pay attention to
17417         Vstandard_translation_table_for_encode.
17419         * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17420         SINGLE_BYTE_CHAR_P.
17422         * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17423         not by SINGLE_BYTE_CHAR_P.
17425         * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17426         SINGLE_BYTE_CHAR_P.
17428         * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17429         SINGLE_BYTE_CHAR_P.
17431         * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17432         by SINGLE_BYTE_CHAR_P.
17434         * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17435         SINGLE_BYTE_CHAR_P.
17437 2008-02-01  Dave Love  <fx@gnu.org>
17439         * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17441 2008-02-01  Dave Love  <fx@gnu.org>
17443         * fns.c (Flanginfo): Fix typo.
17445         * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17447 2008-02-01  Kenichi Handa  <handa@m17n.org>
17449         * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17450         (detect_coding_emacs_mule, detect_coding_iso_2022)
17451         (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17452         incomplete byte sequence.  Don't update *mask when correctly detected.
17453         (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17454         (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17455         (detect_coding, detect_coding_system): Adjust for the changes above.
17457 2008-02-01  Kenichi Handa  <handa@m17n.org>
17459         * character.c (char_string): Rename from
17460         char_string_with_unification.  Pay attention to CHAR_MODIFIER_MASK.
17461         (string_char): Rename from string_char.
17463         * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17464         if C is greater than MAX_3_BYTE_CHAR.
17465         (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17466         string_char instead of string_char_with_unification.
17468 2008-02-01  Dave Love  <fx@gnu.org>
17470         * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17472 2008-02-01  Kenichi Handa  <handa@m17n.org>
17474         * keymap.c (push_key_description): Pay attention to force_multibyte.
17476         * regex.c (re_search_2): Fix for the case of unibyte buffer.
17478 2008-02-01  Dave Love  <fx@gnu.org>
17480         * charset.c (define_charset_internal): Rename `supprementary'.
17482         * Makefile.in (lisp, shortlisp): Remove latin-N.
17484 2008-02-01  Dave Love  <fx@gnu.org>
17486         * xfns.c (x_window, x_window): Use use_xim.
17488         * xterm.c (use_xim): Initialize.
17489         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17490         (x_term_init): Maybe set use_xim.
17492         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17494 2008-02-01  Kenichi Handa  <handa@m17n.org>
17496         * search.c (search_buffer): Fix case-fold-search of multibyte
17497         characters.
17498         (boyer_moore): Rename the last argument to char_high_bits.
17500 2008-02-01  Kenichi Handa  <handa@m17n.org>
17502         * xdisp.c (display_string): Fix for the case of zero width glyph.
17504         * xfns.c (x_set_font): Change the error message of the case that
17505         x_new_fontset returns Qt.
17507         * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17508         (Finternal_set_lisp_face_attribute): Use signal_error for the
17509         error of invalid fontset.
17511         * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17512         fontset, return Qt.
17514 2008-02-01  Dave Love  <fx@gnu.org>
17516         * unexelf.c (unexec): Make .got handling not SGI-specific.
17518         * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17520         * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17522         * keyboard.c (read_key_sequence): Fix type error.
17524         * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17525         type error.
17527         * fontset.c (fontset_add): Return Lisp_Object.
17529 2008-02-01  Dave Love  <fx@gnu.org>
17531         * charset.h (charset_ordered_list_tick): Declare extern.
17533 2008-02-01  Kenichi Handa  <handa@m17n.org>
17535         The following changes (and some of 2008-02-01 changes of mine) are
17536         for handling syntax, category, and case conversion for unibyte
17537         characters by converting them to multibyte on the fly.  With these
17538         changes, we don't have to setup syntax and case tables for unibyte
17539         characters in each language environment.
17541         * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17542         multibyte if necessary.
17544         * bytecode.c (Fbyte_code): Likewise.
17546         * character.h (LEADING_CODE_LATIN_1_MIN)
17547         (LEADING_CODE_LATIN_1_MAX): New macros.
17548         (unibyte_to_multibyte_table): Extern it.
17549         (unibyte_char_to_multibyte): New macro.
17550         (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17551         (CHAR_LEADING_CODE): New macro.
17552         (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17554         * character.c (unibyte_to_multibyte_table): New variable.
17555         (unibyte_char_to_multibyte): Move to character.h and define as macro.
17556         (multibyte_char_to_unibyte): If C is an eight-bit character,
17557         convert it to the corresponding byte value.
17559         * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17560         not 1, signals an error.  Update the elements of
17561         unibyte_to_multibyte_table.
17562         (init_charset_once): Initialize unibyte_to_multibyte_table.
17563         (syms_of_charset): Define the charset `iso-8859-1'.
17565         * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17566         as is without converting it to unibyte.  In a unibyte buffer,
17567         convert C to multibyte before checking the syntax.
17569         * lisp.h (unibyte_char_to_multibyte): Delete extern.
17571         * minibuf.c (Fminibuffer_complete_word): Use the macro
17572         FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17574         * regex.h (struct re_pattern_buffer): New member target_multibyte.
17576         * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17577         (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.  If
17578         that is zero, convert an eight-bit char to multibyte.
17579         (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17580         non-emacs case.
17581         (PATFETCH): Convert an eight-bit char to multibyte.
17582         (HANDLE_UNIBYTE_RANGE): New macro.
17583         (regex_compile): Setup the compiled pattern for multibyte chars
17584         even if the given regex string is unibyte.  Use PATFETCH_RAW
17585         instead of PATFETCH in many places.  To handle `charset'
17586         specification of unibyte, call HANDLE_UNIBYTE_RANGE.  Use bitmap
17587         only for ASCII chars.
17588         (analyse_first) <exactn>: Simplify because the compiled pattern
17589         is multibyte.
17590         <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17591         <charset>: Use CHAR_LEADING_CODE to get leading codes.
17592         <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17593         (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17594         multibyte always 1.
17595         (re_search_2): In emacs, set the locale variable multibyte to 1,
17596         otherwise to 0.  New local variable target_multibyte.  Check it
17597         to decide the multibyteness of STR1 and STR2.  If
17598         target_multibyte is zero, convert unibyte chars to multibyte
17599         before translating and checking fastmap.
17600         (TARGET_CHAR_AND_LENGTH): New macro.
17601         (re_match_2_internal): In emacs, set the locale variable multibyte
17602         to 1, otherwise to 0.  New local variable target_multibyte.  Check
17603         it to decide the multibyteness of STR1 and STR2.  Use
17604         TARGET_CHAR_AND_LENGTH to fetch a character from D.
17605         <charset, charset_not>: If multibyte is nonzero, check fastmap
17606         only for ASCII chars.  Call bcmp_translate with
17607         target_multibyte, not with multibyte.
17608         <begline>: Declare the local variable C as `unsigned'.
17609         (bcmp_translate): Change the last arg name to target_multibyte.
17611         * search.c (compile_pattern_1): Don't adjust the multibyteness of
17612         the regexp pattern and the matching target.  Set cp->buf.multibyte
17613         to the multibyteness of the regexp pattern.  Set
17614         cp->but.target_multibyte to the multibyteness of the matching target.
17615         (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17616         FETCH_STRING_CHAR_ADVANCE.
17617         (Freplace_match): Convert unibyte chars to multibyte.
17619         * syntax.c (char_quoted, back_comment, scan_words)
17620         (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17621         (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17622         unibyte chars to multibyte.
17623         (skip_chars): Delete the arg syntaxp, and move the code for
17624         handling syntaxes to skip_syntaxes.  Change callers.
17625         Fix the case that the multibyteness of STRING and the current
17626         buffer doesn't match.
17627         (skip_syntaxes): New function.
17628         (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17629         SINGLE_BYTE_CHAR_P.
17631 2008-02-01  Kenichi Handa  <handa@m17n.org>
17633         * xfaces.c (QCfontset): New variable.
17634         (LFACE_FONTSET): New macro.
17635         (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17636         (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17637         (Finternal_set_lisp_face_attribute)
17638         (Finternal_get_lisp_face_attribute): Handle QCfontset.
17639         (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17640         check also LFACE_FONTSET_INDEX.
17641         (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17642         attrs[LFACE_FONT_INDEX].
17643         (syms_of_xfaces): Intern and staticpro QCfontset.
17645         * dispextern.h (enum lface_attribute_index): New member
17646         LFACE_FONTSET_INDEX.
17648         * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17650 2008-02-01  Kenichi Handa  <handa@m17n.org>
17652         * coding.c (coding_set_destination): Fix coding->destination for
17653         the case converting a region.
17654         (encode_coding_utf_8): Encode eight-bit chars as single byte.
17655         (encode_coding_object): Fix coding->dst_pos and
17656         coding->dst_pos_byte for the case converting a region.
17658         * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17660         * character.h (BYTE8_STRING): New macro.
17662         * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17664 2008-02-01  Kenichi Handa  <handa@m17n.org>
17666         * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17667         characters by octal form.
17669         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17671         * buffer.h (_fetch_multibyte_char_len): Delete extern.
17672         (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17673         _fetch_multibyte_char_len.
17674         (FETCH_CHAR_AS_MULTIBYTE): New macro.
17676         * casetab.c (set_canon, set_identity, shuffle): Simplify.
17678         * casefiddle.c (casify_object): Simplify.  Handle the case that
17679         the case conversion change the byte length.
17680         (casify_region): Likewise.
17682         * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17684         * character.c (_fetch_multibyte_char_len): Delete this variable.
17685         (syms_of_character): Setup Vprintable_chars.
17687         * editfns.c (Fchar_equal): Fix for the unibyte case.
17688         (Finsert_byte): New function.
17689         (syms_of_editfns): Defsubr it.
17691         * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17692         of direct code 0x3ffff.
17694         * search.c (Freplace_match): Fix for the unibyte case.
17696 2008-02-01  Kenichi Handa  <handa@m17n.org>
17698         * lread.c (safe_to_load_p): Fix the logic.
17700         * syntax.c (scan_words): Don't treat characters belonging to
17701         different scripts as constituting a word.
17703         * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17705         * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17707         * emacs.c (main): In the case of --unibyte, instead of aborting on
17708         finding non-empty buffer, make it unibyte.
17710 2008-02-01  Kenichi Handa  <handa@m17n.org>
17712         * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17713         to create a fontset.
17715 2008-02-01  Dave Love  <fx@gnu.org>
17717         * character.c (Funibyte_char_to_multibyte): Doc fix.
17719         * xfns.c [HAVE_STDLIB_H]: Fix last change.
17721 2008-02-01  Kenichi Handa  <handa@m17n.org>
17723         * fontset.c (fontset_add): Make the type `int'.
17724         (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17726         * character.c (unibyte_char_to_multibyte)
17727         (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17728         charset_unibyte, not charset_primary.
17730         * charset.h (charset_unibyte): Extern it instead of charset_primary.
17732         * charset.c (charset_unibyte): Rename from charset_primary.
17733         (Funibyte_charset): Rename from Fprimary_charset.
17734         (Fset_unibyte_charset): Rename from Fset_primary_charset.
17735         (syms_of_charset): Adjust for the above changes.
17737         * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17738         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
17739         it->multibyte_p is zero.
17741         * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17742         Delete extern.
17744 2008-02-01  Kenichi Handa  <handa@m17n.org>
17746         * coding.c (Fdefine_coding_system_internal): Fix category setting
17747         for a coding system of type iso-2022.
17749 2008-02-01  Kenichi Handa  <handa@m17n.org>
17751         * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17753 2008-02-01  Kenichi Handa  <handa@m17n.org>
17755         * syntax.c (Vnext_word_boundary_function_table): New variable.
17756         (next-word-boundary-function-table): Declare it as a Lisp variable
17757         in syms_of_syntax.
17758         (scan_words): Call functions in Vnext_word_boundary_function_table
17759         if any.
17761         * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17763         * fontset.c (fs_load_font): If fontp->charset is not negative,
17764         return fontp without setting its members.
17766 2008-02-01  Dave Love  <fx@gnu.org>
17768         * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17770         * m/sparc.h (HAVE_ALLOCA): Delete.
17772         * s/irix6-5.h: Don't include strings.h.
17773         (bcopy, bzero, bcmp): Don't undef.
17775         * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17777         * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17778         (TIOCSIGSEND): Don't test IRIX6.
17779         (bcopy, bzero, bcmp): Define conditionally.
17781 2008-02-01  Kenichi Handa  <handa@m17n.org>
17783         * buffer.c (Qas, Qmake, Qto): New variables.
17784         (Fset_buffer_multibyte): New optional arg METHOD.  Change caller.
17785         (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17787         * callproc.c (Fcall_process): Don't call insert_1_both directly if
17788         we are inserting a process output into a multibyte buffer.
17790         * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17791         multibyte_char_to_unibyte.
17793         * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17794         by the primary charset, make it eight-bit char.
17795         (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17797         * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17798         (charset_8_bit__control, charset_8_bit_graphic)
17799         (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17800         (define_charset_internal): New function.
17801         (syms_of_charset): Call define_charset_internal for pre-defined
17802         charsets.
17804         * charset.h (charset_8_bit): Extern it.
17806         * coding.c (make_conversion_work_buffer): Adjust for the change
17807         of Fset_buffer_multibyte.
17808         (encode_coding_raw_text): Increment p0 in the loop.
17810         * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17812         * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17813         for the change of Fset_buffer_multibyte.
17815         * fns.c (Fstring_to_multibyte): New function.
17816         (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17818 2008-02-01  Dave Love  <fx@gnu.org>
17820         * xfns.c (x_put_x_image): Declare args.
17822         * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17823         (try_font_list): Declare an arg.
17825         * xdisp.c (message2_nolog, set_message): Declare an arg.
17827         * terminfo.c (tparam): Declare an arg.  Use P_ to declare tparm.
17829         * syntax.c (scan_sexps_forward): Declare an arg.
17831         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17832         Declare an arg.
17834         * lisp.h (Fnew_fontset): Declare.
17836         * keymap.c (push_key_description): Call CHARACTERP correctly.
17838         * fontset.c (fontset_add): Declare args.  Call make_number correctly.
17839         (face_for_char): Delete unused vars.
17840         (Fset_fontset_font): Doc fix.  Delete unused vars.
17842         * doc.c (Fsubstitute_command_keys): Delete unused vars.
17844         * composite.c (update_compositions): Declare arg.
17846         * cm.c (calccost, cmgoto): Declare args.
17848         * charset.c: Remove `emacs' conditional.  Doc fixes.
17849         (map_char_table_for_charset): Declare.
17851         * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17853         * ccl.c: Remove `emacs' conditional.
17855 2008-02-01  Kenichi Handa  <handa@m17n.org>
17857         The following changes are to allow specifying multiple font
17858         patterns for a character range (specified by script or charset).
17860         * Makefile.in (abbrev.o): Depend on syntax.h.
17861         (xfaces.o): Depend on charset.h.
17863         * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17864         SINGLE_BYTE_CHAR_P.
17866         * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17868         * character.h (Vchar_script_table): Extern it.
17870         * character.c (Vscript_alist): Delete.
17871         (Vchar_script_table, Qchar_script_table): New variable.
17872         (syms_of_character): Declare Vchar_script_table as a lisp variable
17873         and initialize it.
17875         * chartab.c (Fmake_char_table): Doc fix.  If PURPOSE doesn't
17876         have property char-table-extra-slots, make no extra slot.
17878         * dispextern.h (struct face): Delete member `charset'.
17879         (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17880         SINGLE_BYTE_CHAR_P.
17881         (choose_face_font, lookup_non_ascii_face, font_name_registry):
17882         Add prototypes.
17883         (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17884         (generate_ascii_font_name): Rename from generate_ascii_font.
17886         * fontset.h (get_font_repertory_func): New prototype.
17887         (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17888         (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17890         * fontset.c (Qprepend, Qappend): New variables.
17891         (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17892         (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17893         (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17894         (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17895         (fontset_ref_and_range, fontset_add, reorder_font_vector)
17896         (load_font_get_repertory): New functions.
17897         (fontset_set): Delete.
17898         (fontset_face): New arg FACE.  Return face ID, not face.
17899         Complete re-write to handle new fontset structure.  Change caller.
17900         (free_face_fontset): Use ASET istead of AREF (X) = Y.
17901         (face_for_char): Don't call lookup_face.
17902         (make_fontset_for_ascii_face): New arg FACE.
17903         (fs_load_font): New arg CHARSET_ID.  Don't check
17904         Vfont_encoding_alist here.
17905         (find_font_encoding): New function.
17906         (list_fontsets): Use STRINGP, not ! NILP.
17907         (accumulate_script_ranges): New function.
17908         (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17909         re-written to handle new fontset structure.
17910         (Ffontset_font): Return a copy of element.
17911         (syms_of_fontset): Define symbols Qprepend and Qappend.  Fix
17912         docstring of font-encoding-alist.
17914         * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17915         (Fset_fotset_font): Fix arguments to 5.
17917         * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17919         * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17920         Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17921         (highlight_trailing_whitespace): Adjust for the change of
17922         lookup_named_face.
17924         * xfaces.c: Include charset.h.
17925         (load_face_font): Delete argument C.  Change caller.
17926         (generate_ascii_font_name): Rename from generate_ascii_font.
17927         (font_name_registry): New function.
17928         (cache_face): Store ascii faces before non-ascii faces in buckets.
17929         (lookup_face): Delete arguments C and BASE_FACE.  Change caller.
17930         Lookup only ascii faces.
17931         (lookup_non_ascii_face): New function.
17932         (lookup_named_face): Delete argument C.  Change caller.
17933         (lookup_derived_face): Delete argument C.  Change caller.
17934         (try_font_list): New arg PATTERN.  Change caller.  If PATTERN is
17935         a string, just call font_list with it.
17936         (choose_face_font): Delete arguments FACE and C.  New arg
17937         FONT_SPEC.  Change caller.
17938         (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17939         Change caller.
17940         (realize_non_ascii_face): New function.
17941         (realize_x_face): Call load_face_font here.
17942         (realize_tty_face): Delete argument C.  Change caller.
17943         (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17944         get a face ID.
17945         (dump_realized_face): Don't print charset of FACE.
17947         * xfns.c (x_set_font): Always call x_new_fontset and
17948         store_frame_parameter.
17949         (Fx_create_frame): Call x_new_fontset, not x_new_font.
17950         (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17952         * xterm.h (x_get_font_repertory): Extern it.
17954         * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17955         SINGLE_BYTE_CHAR_P.  Fix the logic of handling non-ASCII char when
17956         it->multibyte_p is zero.
17957         (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17958         (x_new_fontset): If FONTSETNAME doesn't match any existing
17959         fontsets, create a new one.
17960         (x_get_font_repertory): New function.
17962 2008-02-01  Kenichi Handa  <handa@m17n.org>
17964         * coding.c (Ffind_coding_systems_region_internal): Detect an
17965         ASCII only string correctly.
17967         * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17968         version is 0.
17970 2008-02-01  Kenichi Handa  <handa@m17n.org>
17972         * lread.c: Include "coding.h".
17973         (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17974         (load_each_byte, unread_char): New variables.
17975         (readchar_backlog): Delete.
17976         (readchar): Return a character unless load_each_byte is nonzero.
17977         Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17978         cons.  If unread_char is not -1, simply return it.
17979         (unreadchar): Handle the case that readcharfun is
17980         Qget_emacs_mule_file_char or a cons.  Set unread_char if necessary.
17981         (read_multibyte): Delete.
17982         (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17983         (read_emacs_mule_char): New functions.
17984         (Fload): Even if the file doesn't have the extension ".elc", if
17985         safe_to_load_p returns a positive version number, assume that the
17986         file contains bytecompiled code.  If the version is less than 22,
17987         load the file while decoding multibyte sequences by emacs-mule.
17988         (readevalloop): Don't use readchar_backlog.
17989         (Fread): Likewise.  Pay attention to the case that STREAM is a cons.
17990         (Fread_from_string): Pay attention to the case that STREAM is a cons.
17991         (read_escape): Delete the arg BYTEREP.
17992         (read1): Set load_each_byte to 1 temporarily while handling
17993         #@NUMBER.  Don't call read_multibyte.
17994         (read_vector): Call Fread with a cons.  If readcharfun is
17995         Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17996         (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17997         (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17998         and Qload_force_doc_strings.
18000 2008-02-01  Kenichi Handa  <handa@m17n.org>
18002         * xdisp.c (face_before_or_after_it_pos): Call
18003         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18005 2008-02-01  Kenichi Handa  <handa@m17n.org>
18007         * character.h (TRAILING_CODE_P): New macro.
18008         (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18009         (string_char_with_unification): Fix prototype.
18010         (Vscript_alist): Extern it.
18012         * character.c (Vscript_alist): New variable.
18013         (string_char_with_unification, str_as_unibyte)
18014         (string_escape_byte8): Add `const' to local variables.
18015         (syms_of_character): Declare script-alist as a Lisp variable.
18017         * charset.h (Vcharset_ordered_list): Extern it.
18018         (charset_ordered_list_tick): Extern it.
18019         (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18020         (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18021         (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18022         (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18023         (Funify_charset): Adjust for the change of Funify_charset.
18025         * charset.c (charset_ordered_list_tick): New variable.
18026         (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18027         (Funify_charset): New optional arg DEUNIFY.  If it is non-nil,
18028         deunify intead of unify a charset.
18029         (string_xstring_p): Add `const' to local variables.
18030         (find_charsets_in_text): Add `const' to arguments and local variables.
18031         (encode_char): Adjust for the change of Funify_charset.  Fix
18032         detecting of invalid code.
18033         (Fset_charset_priority): Increment charset_ordered_list_tick.
18034         (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18035         and TO_CODE.
18037         * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18038         (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18039         Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18040         (decode_coding_ccl, consume_chars)
18041         (Ffind_coding_systems_region_internal)
18042         (Fcheck_coding_systems_region): Add `const' to local variables.
18044         * print.c (print_object): Use octal form for printing the
18045         contents of a bool vector.
18047 2008-02-01  Dave Love  <fx@gnu.org>
18049         * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18050         <version == 20>: Refuse to load.
18052 2008-02-01  Dave Love  <fx@gnu.org>
18054         * fns.c: Move coding.h.
18055         (Qcodeset, Qdays, Qmonths): New.
18056         (concat): Use CHARACTERP instead of INTEGERP.
18057         (Flocale_codeset): Delete.
18058         (Flanginfo): New function.
18059         (syms_of_fns): Change accordingly.
18061         * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18063 2008-02-01  Dave Love  <fx@gnu.org>
18065         * casetab.c (init_casetab_once, init_casetab_once): Fix
18066         CHAR_TABLE_SET call.
18068         * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18070         * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18072         * charset.c (Fmap_charset_chars): Check args.  Convert Lisp types.
18073         (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18074         (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18076         * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18078         * coding.c (ENCODE_DESIGNATION, decode_eol)
18079         (make_conversion_work_buffer, code_conversion_restore)
18080         (Fdefine_coding_system_internal): Convert Lisp types.
18081         (code_conversion_restore): Use EQ, not ==.
18082         (Fencode_coding_string): Fix code_convert_string call.
18084         * coding.h (code_convert_region): Fix prototype.
18086         * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18088         * fontset.c (fontset_ref, fontset_set, fs_load_font)
18089         (Ffontset_info): Convert Lisp types.
18091         * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18093         * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18095         * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18097         * chartab.c: Include "...h", not <...h> in some cases.
18099         * callproc.c (Fcall_process): Remove unused variables.
18101 2008-02-01  Dave Love  <fx@gnu.org>
18103         * coding.c (Fset_coding_system_priority): Allow null arg list.
18105 2008-02-01  Dave Love  <fx@gnu.org>
18107         * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18108         (Fself_insert_and_exit): Use CHARACTERP.
18110         * callproc.c (Fcall_process): Remove unused vars.
18112         * xterm.c (XTread_socket): Add extra dead keysyms.
18114         * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18116         * dispextern.h: Remove prototypes for redraw_frame,
18117         redraw_garbaged_frames.
18119         * cmds.c (Fself_insert_command): Use CHARACTERP.
18121         * chartab.c (make_sub_char_table): Remove unused var.
18122         (Fset_char_table_default, Fmap_char_table): Doc fix.
18124         * keymap.c (access_keymap): Remove generic char code.
18125         (push_key_description): Use CHARACTERP.
18127 2008-02-01  Dave Love  <fx@gnu.org>
18129         * charset.c: Doc fixes.
18130         (Funify_charset): Extra checking.
18132 2008-02-01  Dave Love  <fx@gnu.org>
18134         * lread.c: Remove some unused variables.
18135         (safe_to_load_p): If safe, return the magic number version byte.
18136         (Fload): Maybe use load-with-code-conversion.
18138 2008-02-01  Kenichi Handa  <handa@m17n.org>
18140         * category.c (Fmodify_category_entry): Don't modify the contents
18141         of category_set for characters out of the range.  Avoid
18142         unnecessary modification.
18144         * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18145         Vchar_unify_table.  The default value of the table is now nil.
18147         * character.c (syms_of_character): Setup Vchar_width_table for
18148         eight-bit-control and raw-byte chars.
18150         * charset.h (enum define_charset_arg_index): Delete
18151         charset_arg_parents and add charset_arg_subset and
18152         charset_arg_superset.
18153         (enum charset_attr_index): Delete charset_parents and add
18154         charset_subset and charset_superset.
18155         (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18156         CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18157         (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18158         (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18159         (CHARSET_SUPERSET): New macros.
18160         (charset_work): Extern it.
18161         (ENCODE_CHAR): Use charset_work.
18162         (CHAR_CHARSET_P): Adjust for the change of encoder format.
18163         (map_charset_chars): Extern it.
18165         * charset.c (load_charset_map): Set the default value of encoder
18166         and deunifier char-tables to nil.
18167         (map_charset_chars): Change argument.  Change callers.  Use
18168         map_char_table_for_charset instead of map_char_table.
18169         (Fmap_charset_chars): New optional args from_code and to_code.
18170         (Fdefine_charset_internal): Adjust for the change of
18171         `define-charset' (:parents -> :subset or :superset).
18172         (charset_work): New variable.
18173         (encode_char, syms_of_charset): Adjust for the change of
18174         Fdefine_charset_internal.
18175         (Ffind_charset_string): Setup the vector `charsets' correctly.
18177         * chartab.c (sub_char_table_ref_and_range): New arg default.  Fix
18178         the previous change.
18179         (char_table_ref_and_range): Adjust for the above change.
18180         (map_sub_char_table_for_charset): New function.
18181         (map_char_table_for_charset): New function.
18183         * keymap.c (describe_vector): Handle a char-table directly here.
18184         (describe_char_table): Delete.
18186         * lisp.h (map_charset_chars): Delete.
18188 2008-02-01  Dave Love  <fx@gnu.org>
18190         * fns.c (count_combining): Comment out (unused).
18191         (Flocale_codeset): New.
18192         (syms_of_fns): Defsubr it.
18194         * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18195         (size_t): Remove.
18197 2008-02-01  Dave Love  <fx@gnu.org>
18199         * Makefile.in (chartab.o): Depend on charset.h.
18201 2008-02-01  Kenichi Handa  <handa@m17n.org>
18203         * character.c (syms_of_character): Set the default value of
18204         Vprintable_chars to Qnil.
18206 2008-02-01  Dave Love  <fx@gnu.org>
18208         * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18210 2008-02-01  Kenichi Handa  <handa@m17n.org>
18212         * charset.c (load_charset_map): Handle the case that from < to
18213         correctly.
18215         * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18216         (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18217         Pay attention to raw-8-bit chars.
18219 2008-02-01  Kenichi Handa  <handa@m17n.org>
18221         * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18222         It is not bytecompiled now.
18224         * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18225         (charset_jisx0208): New variables.
18226         (Fdefine_charset_internal): Setup them if appropriate.
18227         (init_charset_once): Initialize them to -1.
18229         * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18230         (charset_jisx0208): Extern them.
18232         * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18233         (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18234         (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18235         (setup_iso_safe_charsets): Fix arguments to Fassq.
18236         (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18237         (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18238         CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18239         (encode_coding_iso_2022): Change the 1st arg to
18240         ENCODE_ISO_CHARACTER to a variable.
18242 2008-02-01  Kenichi Handa  <handa@m17n.org>
18244         * charset.h (enum define_charset_arg_index): New enums
18245         charset_arg_min_code and charset_arg_max_code.
18246         (struct charset): New member char_index_offset.
18248         * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18249         Take charset->char_index_offset into account.
18250         (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18251         args[charset_arg_max_code].  Setup charset.char_index_offset.
18252         (syms_of_charset): Fix args to Fdefine_charset_internal.
18254 2008-02-01  Dave Love  <fx@gnu.org>
18256         * coding.c (decode_coding_utf_8): Reject overlong sequences.
18258 2008-02-01  Dave Love  <fx@gnu.org>
18260         * coding.c: Doc fixes.
18261         (Fcoding_system_aliases): Fix return value.
18262         (Qmac): Remove (duplicated) definition.
18264 2008-02-01  Dave Love  <fx@gnu.org>
18266         * charset.c (Fcharset_priority_list, Fset_charset_priority):
18267         New functions.
18269         * character.c (Fstring): Doc fix.
18271         * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18273         * fontset.c (Ffontset_info): Doc fix.  Return charset names, not ids.
18274         (font-encoding-alist): Doc fix.
18276 2008-02-01  Dave Love  <fx@gnu.org>
18278         * term.c (costs_set): Declare static, non-initialized for pcc.
18279         (encode_terminal_code): Remove unused var.
18281         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18282         for K&R.
18284         * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18286         * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18287         (suffixes): Move out of make_subsidiaries for K&R.
18289         * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18291         * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18293 2008-02-01  Dave Love  <fx@gnu.org>
18295         * data.c (Fchar_or_string_p): Doc fix.  Use CHARACTERP.
18297         * category.c (Fmodify_category_entry): Doc fix.  Remove unused vars.
18299 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
18301         * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18303         * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18305 2008-02-01  Kenichi Handa  <handa@m17n.org>
18307         * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18308         vietnamese.elc to vietnamese.el.  They are not bytecompiled now.
18310 2008-02-01  Kenichi Handa  <handa@m17n.org>
18312         * coding.c (decode_coding_charset): Adjust for the change of
18313         Fdefine_coding_system_internal.
18314         (Fdefine_coding_system_internal): For a coding system of
18315         `charset' type, store a list of charset IDs in
18316         `charset_attr_charset_valids' element of coding attributes.
18318 2008-02-01  Kenichi Handa  <handa@m17n.org>
18320         * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18321         (emacs_mule_char): New arg src.  Delete arg `composition'.  Change
18322         caller.  Handle 2-byte and 3-byte charsets correctly.
18323         (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18324         DECODE_EMACS_MULE_COMPOSITION_RULE.  Change caller.
18325         (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18326         (DECODE_EMACS_MULE_21_COMPOSITION): Call
18327         DECODE_EMACS_MULE_COMPOSITION_RULE_21.  Produce correct annotation
18328         sequence.
18329         (decode_coding_emacs_mule): Handle composition correctly.  Rewind
18330         `src' and `consumed_chars' correctly before calling emacs_mule_char.
18331         (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18332         and alt&rule composition.
18333         (decode_coding_iso_2022): Handle composition correctly.
18334         (init_coding_once): Setup emacs_mule_bytes for private charsets.
18336         * charset.c (Fdefine_charset_internal): Fix bug for the case of
18337         re-defining a charset.  If the charset has :emacs-mule-id, setup
18338         emacs_mule_bytes.
18339         (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18341 2008-02-01  Kenichi Handa  <handa@m17n.org>
18343         * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18344         (encode_coding_big5, encode_coding_charset): If coding requires safe
18345         encoding, produce a character specified by
18346         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18348 2008-02-01  Dave Love  <fx@gnu.org>
18350         * xterm.c (XSetIMValues): Declare.
18352         * process.c: Conditionally include sys/wait.h, pty.h.
18354         * print.c (print_object): Fix print format for 64-bit systems.
18356         * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18358         * buffer.c (emacs_strerror): Declare.
18360         * fontset.c (Fclear_face_cache): Declare.
18361         (accumulate_font_info): Comment-out (unused).
18362         (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18363         variables.
18365         * character.h (string_escape_byte8): Declare.
18367         * charset.c (load_charset_map, load_charset_map_from_file): Remove
18368         unused vars.
18369         (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18370         (Fmap_charset_chars): Doc fix.
18372         * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18373         (Fset_coding_system_priority, Fset_coding_system_priority)
18374         (Fdefine_coding_system_internal): Doc fix.
18376 2008-02-01  Dave Love  <fx@gnu.org>
18378         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18380 2008-02-01  Kenichi Handa  <handa@m17n.org>
18382         * character.c (string_escape_byte8): Make multibyte string with
18383         correct size.
18385         * charset.c (Fmake_char): Delete unnecessary code.
18387 2008-02-01  Kenichi Handa  <handa@m17n.org>
18389         * xfns.c (x_encode_text): Allocate coding.destination here, and
18390         call encode_coding_object with dst_object Qnil.
18392         * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18393         multibyte form correctly.
18395         * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18396         against Vfont_encoding_alist.
18398         * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF).  Fix the
18399         handling of charset list.
18400         (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18401         (decode_coding_object): Move point to coding->dst_pos before
18402         calling post-read-conversion function.
18403         (encode_coding_object): Give correct arguments to
18404         pre-write-conversion.  Ignore the return value of
18405         pre-write-conversion function.  Pay attention to the case that
18406         pre-write-conversion changes the current buffer.  If dst_object is
18407         Qt, even if coding->src_bytes is zero, allocate at least one byte
18408         to coding->destination.
18410         * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18412         * charset.c (Fmake_char): Make it more backward compatible.
18413         (Fmap_charset_chars): Fix docstring.
18415 2008-02-01  Dave Love  <fx@gnu.org>
18417         * coding.c: Doc fixes.
18418         (Fdefine_coding_system_alias): Use names, not symbols, in
18419         coding-system-alist.
18421 2008-02-01  Kenichi Handa  <handa@m17n.org>
18423         * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18424         of calling free_realized_face.
18426 2008-02-01  Yong Lu  <lyongu@asia-infonet.com>
18428         * charset.c (read_hex): Don't treat SPC as a comment starter.
18429         (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18430         (Fdecode_char): Fix typo.
18432 2008-02-01  Kenichi Handa  <handa@m17n.org>
18434         * charset.h (struct charset): New member `code_space_mask'.
18436         * coding.c (coding_set_source): Delete the local variable beg_byte.
18437         (encode_coding_charset, Fdefine_coding_system_internal):
18438         Delete the local variable charset.
18439         (Fdefine_coding_system_internal): Setup
18440         attrs[coding_attr_charset_valids] correctly.
18442         * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18443         member to check if CODE is valid or not.
18444         (Fdefine_charset_internal): Initialize `code_space_mask' member.
18445         (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18446         is within the range of charset->min_code and carset->max_code.
18448 2008-02-01  Dave Love  <fx@gnu.org>
18450         * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18452         * dispextern.h (generate_ascii_font): Fix return type.
18454         * xfaces.c (generate_ascii_font): Fix arg declaration.
18456         * coding.c (coding_inherit_eol_type)
18457         (Fset_terminal_coding_system_internal)
18458         (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18460 2008-02-01  Kenichi Handa  <handa@m17n.org>
18462         * coding.c (decode_coding_charset, encode_coding_charset): Handle
18463         multiple charsets correctly.
18465 2008-02-01  Kenichi Handa  <handa@m17n.org>
18467         * search.c (boyer_moore): Fix handling of multibyte character
18468         translation.
18470         * xdisp.c (display_mode_element): When the variable `elt' is
18471         changed, update `this' and `lisp_string'.
18473 2008-02-01  Kenichi Handa  <handa@m17n.org>
18475         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18477         * callproc.c (Fcall_process): Be sure to give the current buffer
18478         to decode_coding_c_string.  Update PT and PT_BYTE after the insertion.
18480         * charset.c (struct charset_map_entries): New struct.
18481         (load_charset_map): Rename from parse_charset_map.  New args
18482         entries and n_entries.  Change caller.
18483         (load_charset_map_from_file): Rename from load_charset_map.
18484         Change caller.  New arg control_flag.  Call load_charset_map at
18485         the tail.
18486         (load_charset_map_from_vector): New function.
18487         (Fdefine_charset_internal): Setup charset.compact_codes_p.
18488         (encode_char): If the charset is compact, change a character index
18489         to a code point.
18491         * coding.c (coding_alloc_by_making_gap): Check the case that the
18492         source and destination are the same correctly.
18493         (decode_coding_raw_text): Set coding->consumed_char and
18494         coding->consumed to 0.
18495         (produce_chars): If coding->chars_at_source is nonzero, update
18496         coding->consumed_char and coding->consumed before calling
18497         alloc_destination.
18498         (Fdefine_coding_system_alias): Register ALIAS in
18499         Vcoding_system_alist.
18500         (syms_of_coding): Define `no-conversion' coding system at the tail.
18502         * fileio.c (Finsert_file_contents): Set coding_system instead of
18503         val.  If the current buffer is multibyte, always call
18504         decode_coding_gap.
18506         * xfaces.c (try_font_list): Give higher priority to fontset's
18507         family than face's family.
18509 2008-02-01  Kenichi Handa  <handa@m17n.org>
18511         * callproc.c (Fcall_process): Be sure to give the current buffer
18512         to decode_coding_c_string.
18514         * xfaces.c (try_font_list): Give a family specified in a fontset
18515         higher priority than a family specified in a face.
18517 2008-02-01  Kenichi Handa  <handa@m17n.org>
18519         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18520         Fix arguments to insert_from_buffer.
18522         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18524 2008-02-01  Kenichi Handa  <handa@m17n.org>
18526         * coding.c (produce_chars): Set the variable `multibytep' correctly.
18527         (decode_coding_gap): Set coding->dst_multibyte correctly.
18529 2008-02-01  Kenichi Handa  <handa@m17n.org>
18531         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18532         (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18533         (encode_coding_utf_16): Substitute coding->default_char for
18534         non-Unicode characters.
18535         (decode_coding): Don't call record_insert here.
18536         (setup_coding_system): Initialize `surrogate' of
18537         coding->spec.utf_16 to 0.
18538         (EMIT_ONE_BYTE): Fix for multibyte case.
18540         * insdel.c (insert_from_gap): Call record_insert.
18542 2008-02-01  Kenichi Handa  <handa@m17n.org>
18544         * casefiddle.c (casify_region): Fix multibyte case.
18546         * character.c (c_string_width): Add return type `int'.
18547         (char_string_with_unification): Delete arg ADVANCED.
18549         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18550         (CHAR_STRING): Adjust for the change of char_string_with_unification.
18551         (CHAR_STRING_ADVANCE): Make it do-while statement.
18553         * chartab.c (sub_char_table_set_range): Optimize for the case
18554         DEPTH == 3.  Add workaround code for a GCC optimization bug.
18556         * charset.c (parse_charset_map): Remove an unused variable.
18558         * coding.c: Delete unused variables.
18560         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18561         earlier.  If inserted is zero and the coding system doesn't
18562         require flushing, don't call decode_coding_gap.
18564         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18566 2008-02-01  Kenichi Handa  <handa@m17n.org>
18568         The following changes are for using Unicode as an internal
18569         character model, and use UTF-8 format for buffer/string
18570         representation.
18572         * .gdbinit (xchartable): Adjust for the change of char table structure.
18573         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18575         * Makefile.in (obj): Add character.o and chartab.o.
18576         (lisp, shortlisp): Remove utf-8.elc.
18577         (*.o): For many files, change dependency on charset.h to
18578         character.h, and add dependency on character.h.
18579         (character.o, chartab.o): New targets.
18581         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18582         * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18583         * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18584         of "charset.h".
18586         * dired.c, filelock.c: Include "character.h".
18588         * alloc.c: Include "character.h" instead of "charset.h".
18589         (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18590         (syms_of_alloc): Remove defsubr for Smake_char_table.
18592         * buffer.c: Include "character.h" instead of "charset.h", don't
18593         include "coding.h".
18594         (Fset_buffer_multibyte): Adjust for UTF-8.
18596         * buffer.h: EXFUN Fbuffer_live_p.
18598         * callproc.c: Include "character.h" instead of "charset.h".
18599         (Fcall_process): Big change for the new code-conversion APIs.
18601         * casetab.c: Include "character.h" instead of "charset.h".
18602         (set_canon, set_identity, shuffle): Adjust for the new
18603         map_char_table spec.
18604         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18605         accessing the char table structure.
18607         * chartab.c: New file that implements char table.
18609         * category.c: Include "character.h".
18610         (copy_category_entry): New function.
18611         (copy_category_table): Call map_char_table and copy_category_entry.
18612         (Fmake_category_table): Initialize all top-level slots.
18613         (char_category_set): New function.
18614         (modify_lower_category_set): Delete.
18615         (Fmodify_category_entry): Call char_table_ref_and_range.
18617         * category.h (CATEGORY_SET): Just call char_category_set.
18619         * ccl.c: Include "character.h".
18620         (Qccl, Qcclp): New variables.
18621         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18622         it's less than 256.
18623         (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18624         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18625         and DST type.
18626         (ccl_driver): Change types of argument, adjust code accordingly.
18627         (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18628         ccl_driver.
18629         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18631         * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18632         New members src_multibyte, dst_multibyte, consumed, and produced.
18633         (struct ccl_spec): Delete members decoder and encoder.  New member ccl.
18634         (CODING_SPEC_CCL_PROGRAM): New macro.
18635         (ccl_driver): Update prototype.
18636         (Qccl, Qcclp, Fccl_program_p): Extern them.
18637         (CHECK_CCL_PROGRAM): New macro.
18639         * character.c, character.h, chartab.c: New files.
18641         * charset.c: Mostly re-written.  Move character and multibyte sequence
18642         handling codes to character.c.
18644         * charset.h: Mostly re-written.  Move character and multibyte sequence
18645         handling codes to character.h.
18647         * coding.c, coding.h: Mostly re-written.
18649         * composite.c: Include "character.h" instead of "charset.h".
18650         (CHAR_WIDTH): Move to character.h.
18651         (HASH_KEY, HASH_VALUE): Delete.
18653         * composite.h (enum composition_method): Change order of enumeration
18654         symbols.
18656         * data.c: Include "character.h" instead of "charset.h".
18657         (Faref): Call CHAR_TABLE_REF for a char table.
18658         (Faset): Call CHAR_TABLE_SET for a char table.
18660         * dispextern.h (free_realized_face, check_face_attribytes)
18661         (generate_ascii_font): Extern them.
18662         (free_realized_multibyte_face): Delete extern.
18664         * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18665         table structure.
18667         * editfns.c: Include "character.h" instead of "charset.h".
18668         (Fchar_to_string): Always call CHAR_STRING.
18670         * emacs.c (main): Call init_charset_once, init_charset,
18671         syms_of_chartab, and syms_of_character.
18673         * fileio.c: Include "character.h" instead of "charset.h".
18674         (Finsert_file_contents): Big change for the new code-conversion API.
18675         (choose_write_coding_system, Fwrite_region): Likewise.
18676         (build_annotations_2): Delete.
18677         (e_write): Big change for the new code-conversion API.
18679         * fns.c: Include "character.h" instead of "charset.h".
18680         (copy_sub_char_table): Move to chartab.c.
18681         (Fcopy_sequence): Call copy_char_table for a char table.
18682         (concat): Delete codes calling count_multibyte.
18683         (string_char_to_byte, string_byte_to_char): Adjust for the new
18684         multibyte form.
18685         (internal_equal): Adjust for the change of char table structure.
18686         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18687         (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18688         (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18689         (char_table_translate, optimize_sub_char_table)
18690         (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18691         chartab.c.
18692         (char_table_ref_and_index): Delete.
18693         (HASH_KEY, HASH_VALUE): Move to lisp.h.
18694         (Fmd5): Call preferred_coding_system instead of accessing
18695         Vcoding_category_list.  Adjust for the new code-conversion API.
18696         (syms_of_fns): Move defsubr for char table related functions to
18697         chartab.c.
18699         * fontset.c: Mostly re-written.
18701         * fontset.h (struct font_info): Change type of the member encoding_type.
18702         (enum FONT_SPEC_INDEX): New enum.
18703         (fontset_font_pattern, fs_load_font): Update prototype.
18704         (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18706         * indent.c: Include "character.h" instead of "charset.h".
18707         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18709         * insdel.c: Include "character.h" instead of "charset.h".
18710         (copy_text): Don't refer to Vnonascii_translation_table.
18711         (insert_from_gap): New function.
18713         * keyboard.c: Include "character.h" instead of "charset.h".
18714         (command_loop_1): Never call direct_output_forward_char before
18715         a non-ASCII character.
18716         (read_char): If Vkeyboard_translate_table is a char table, always
18717         translate a character.
18719         * keymap.c: Include "character.h".
18720         (store_in_keymap): Handle the case that IDX is a cons.
18721         (Fdefine_key): Handle the case that KEY is a cons and the car part
18722         is also a cons (range).
18723         (push_key_description): Adjust for the new character code.
18724         (describe_vector): Call describe_char_table for a char table.
18725         (describe_char_table): New function.
18727         * keymap.h (describe_char_table): Extern it.
18729         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18730         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18731         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18732         (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18733         Delete.
18734         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18735         structure.
18736         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18737         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18738         (CHARTAB_SIZE_BITS_3): New macros.
18739         (chartab_size): Extern it.
18740         (struct Lisp_Char_Table): Re-design.
18741         (struct Lisp_Sub_Char_Table): New structure.
18742         (HASH_KEY, HASH_VALUE): Move from fns.c.
18743         (CHARACTERBITS): Define as 22.
18744         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18745         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18746         (GC_SUB_CHAR_TABLE_P): New macro.
18747         (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18748         (code_convert_string_norecord): Deleted extern.
18749         (init_character_once, syms_of_character, init_charset)
18750         (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18752         * lread.c: Include "character.h".
18753         (read_multibyte): New arg NBYTES.
18754         (read_escape): Change the meaning of returned *BYTEREP.
18755         (to_multibyte): Delete.
18756         (read1): Adjust the handling of char table and string.
18758         * print.c: Include "character.h" instead of "charset.h".
18759         (print_string): Convert 8-bit raw bytes to octal form by
18760         string_escape_byte8.
18761         (print_object): Adjust for the new multibyte form.  Print 8-bit
18762         raw bytes always in octal form.  Handle sub char table correctly.
18764         * process.c: Include "character.h" instead of "charset.h".
18765         (read_process_output, send_process): Adjust for the new
18766         code-conversion API.
18768         * puresize.h (BASE_PURESIZE): Increase.
18770         * regex.c: Include "character.h" instead of "charset.h".
18771         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18772         (regex_compile): Accept a range whose starting and ending
18773         character have different leading bytes.
18774         (analyse_first): Adjust for the above change.
18776         * search.c: Include "character.h" instead of "charset.h".
18777         (search_buffer, boyer_moore): Adjust for the new multibyte form.
18778         (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18780         * syntax.c: Include "character.h" instead of "charset.h".
18781         (syntax_parent_lookup): Delete.
18782         (Fmodify_syntax_entry): Accept a cons as CHAR.
18783         (skip_chars): Adjust for the new multibyte form.
18784         (init_syntax_once): Call char_table_set_range instead of directly
18785         accessing the structure of a char table.
18787         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18788         (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18789         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18790         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18792         * term.c: Include "buffer.h" and "character.h".
18793         (encode_terminal_code, write_glyphs): Adjust for the new
18794         code-conversion API.
18795         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18797         * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18799         * xdisp.c: Include "character.h".
18800         (get_next_display_element): Adjust for the new multibyte form.
18801         (disp_char_vector): Adjust for the new char table structure.
18802         (decode_mode_spec_coding): Adjust for the new structure of
18803         coding system.
18804         (decode_mode_spec): Adjust for the new code-conversion API.
18806         * xfaces.c: Include "character.h" instead of "charset.h".
18807         (load_face_font): Adjust for the change of choose_face_font and
18808         FS_LOAD_FONT.
18809         (generate_ascii_font): New function.
18810         (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18811         (set_font_frame_param): Adjust for the change of choose_face_font.
18812         (free_realized_face): Make it public.
18813         (free_realized_faces_for_fontset): Rename from
18814         free_realized_multibyte_face.  Free also faces realized for ASCII.
18815         (choose_face_font): Change arguments.  Adjust for the change of
18816         fontset_font_pattern and FS_LOAD_FONT.
18818         * xfns.c: Include "character.h".
18819         (x_encode_text): Adjust for the new code-conversion API.
18821         * xselect.c: Don't include "charset.h".
18822         (selection_data_to_lisp_data): Adjust for the new code conversion API.
18824         * xterm.c: Include "character.h".
18825         (x_encode_char): New argument CHARSET.  Change caller.
18826         (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18827         Call ENCODE_CHAR instead of SPLIT_CHAR.
18828         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18829         CHAR_WIDTH instead of CHARSET_WIDTH.
18830         (XTread_socket): Adjust for the new code-conversion API.
18831         (x_new_font): Adjust for the change of FS_LOAD_FONT.
18832         (x_load_font): Adjust for the change of struct font.
18834 2008-02-01  Stefan Monnier  <monnier@iro.umontreal.ca>
18836         * xfaces.c (face_at_buffer_position): Remove unused vars.
18838 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
18840         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18841         Fix overflow checking.
18843 2008-02-01  Kenichi Handa  <handa@ni.aist.go.jp>
18845         * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18846         Cancel previous change.
18848 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
18850         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18851         ccl->eight_bit_control.  Fix check for buffer overflow.
18852         (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18853         (ccl_driver): Initialize extra_bytes to 0.
18855 2008-01-31  Kenichi Handa  <handa@ni.aist.go.jp>
18857         * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18858         return it ORed with ctrl_modifier.
18860 2008-01-29  Miles Bader  <miles@gnu.org>
18862         * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18864 2008-01-28  Jason Rumney  <jasonr@gnu.org>
18866         * w32.c (stat): Don't double check for networked drive.
18868 2008-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
18870         * window.c (run_window_configuration_change_hook): New function.
18871         Code extracted from set_window_buffer.  Set the selected frame.
18872         (set_window_buffer): Use it.
18873         * window.h (run_window_configuration_change_hook): Declare.
18874         * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18876         * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18878 2008-01-27  Dan Nicolaescu  <dann@ics.uci.edu>
18880         * Makefile.in: Remove references to unused macros.
18882 2008-01-26  Eli Zaretskii  <eliz@gnu.org>
18884         * w32.c (g_b_init_get_sid_sub_authority)
18885         (g_b_init_get_sid_sub_authority_count): New static variables.
18886         (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18887         (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18888         (init_user_info): Use them to retrieve uid and gid.
18889         Use 500/513, the Windows defaults, as Administrator's uid/gid.
18890         (fstat): Use pw_uid and pw_gid from the_passwd structure for
18891         st_uid and st_gid of the file.
18893 2008-01-26  Jason Rumney  <jasonr@gnu.org>
18895         * w32.c (logon_network_drive): New function.
18896         (stat): Use it.
18898 2008-01-26  Chong Yidong  <cyd@stupidchicken.com>
18900         * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18901         invisible text covered with an ellipsis.
18903 2008-01-25  Richard Stallman  <rms@gnu.org>
18905         * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18906         jump back to beginning.  Move some other initializations after that.
18907         (Qwindow_text_change_functions, Vwindow_text_change_functions):
18908         New variables.
18909         (syms_of_xdisp): Init them.
18911         * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18913         * buffer.c (reset_buffer_local_variables):
18914         Implement `permanent-local-hook'.
18915         (Qpermanent_local_hook): New variable.
18916         (syms_of_buffer): Init and staticpro it.
18918 2008-01-25  Michael Albinus  <michael.albinus@gmx.de>
18920         * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18922 2008-01-25  Thien-Thi Nguyen  <ttn@gnuvola.org>
18924         * fns.c (Fclrhash): Return TABLE.
18926 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18928         * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18929         (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18930         is set even without positional changes.
18931         (x_scroll_bar_clear): Set bar->redraw_needed_p.
18933         * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18935 2008-01-23  Jason Rumney  <jasonr@gnu.org>
18937         * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18939         * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18940         the unicode range available in MULE by locale-coding-system.
18941         Improve dbcs lead byte detection.  Set event timestamp and modifiers
18942         earlier.
18944 2008-01-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
18946         * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18947         [MAC_OSX] (init_mac_osx_environment): Initialize it.
18948         [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18949         when used on child processes.
18951 2008-01-21  Michael Albinus  <michael.albinus@gmx.de>
18953         * dbusbind.c (Fdbus_method_return_internal): Rename from
18954         Fdbus_method_return.
18955         (Fdbus_unregister_object): Move to dbus.el.
18956         (Fdbus_call_method, Fdbus_method_return_internal)
18957         (Fdbus_send_signal): Improve debug messages.
18959 2008-01-20  Martin Rudalics  <rudalics@gmx.at>
18961         * undo.c (undo_inhibit_record_point): New variable.
18962         (syms_of_undo): Initialize it.
18963         (record_point): Don't record point when undo_inhibit_record_point
18964         is set.
18966 2008-01-19  Stefan Monnier  <monnier@iro.umontreal.ca>
18968         * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18970         * xdisp.c (Qauto_hscroll_mode): New var.
18971         (syms_of_xdisp): Initialize it.
18972         (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18973         window's buffer.
18974         (hscroll_windows): Don't check automatic_hscrolling_p here.
18976         * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18977         vscroll if we're setting window-buffer to the value it already has.
18979 2008-01-18  Dan Nicolaescu  <dann@ics.uci.edu>
18981         * m/intel386.h: Remove references to XENIX.
18983 2008-01-17  Andreas Schwab  <schwab@suse.de>
18985         * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18986         instead of HAVE_X86_64_LIB64_DIR.
18987         * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18989 2008-01-17  Glenn Morris  <rgm@gnu.org>
18991         * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18992         to HAVE_X86_64_LIB64_DIR.
18994 2008-01-16  Dan Nicolaescu  <dann@ics.uci.edu>
18996         * s/irix3-3.h:
18997         * s/irix4-0.h:
18998         * s/386-ix.h:
18999         * s/domain.h:
19000         * s/hpux9-x11r4.h:
19001         * s/hpux9shxr4.h: Remove files for systems no longer supported.
19003         * sysdep.c: Remove code containing references to symbols defined
19004         by unsupported systems.
19006 2008-01-16  Glenn Morris  <rgm@gnu.org>
19008         * coding.c (select-safe-coding-system-function): Doc fix.
19010 2008-01-15  Glenn Morris  <rgm@gnu.org>
19012         * config.in: Revert 2008-01-13 change: this is a generated file.
19014 2008-01-13  Tom Tromey  <tromey@redhat.com>
19016         * lisp.h: Fix typo.
19018 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
19020         * m/sequent-ptx.h:
19021         * m/sequent.h:
19022         * s/ptx.h:
19023         * s/ptx4-2.h:
19024         * s/ptx4.h: Remove files for systems no longer supported.
19026         * callproc.c (Fcall_process): Fix previous change.
19028 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
19030         * unexsunos4.c: Remove file, system not supported anymore.
19032         * m/mips.h:
19033         * m/intel386.h:
19034         * callproc.c:
19035         * config.in:
19036         * ecrt0.c:
19037         * emacs.c:
19038         * fileio.c:
19039         * frame.c:
19040         * getpagesize.h:
19041         * keyboard.c:
19042         * lread.c:
19043         * process.c:
19044         * puresize.h:
19045         * sysdep.c:
19046         * systty.h:
19047         * syswait.h:
19048         * unexec.c:
19049         * xdisp.c:
19050         * alloc.c: Remove code containing references to symbols defined by
19051         unsupported systems.
19053 2008-01-11  Kenichi Handa  <handa@ni.aist.go.jp>
19055         * coding.c (detect_coding_mask): Fix previous change.
19057 2008-01-09  Kenichi Handa  <handa@ni.aist.go.jp>
19059         * coding.c (detect_coding_iso2022): New arg
19060         latin_extra_code_state.  Allow Latin extra codes only
19061         when *latin_extra_code_state is nonzero.
19062         (detect_coding_mask): If there is a NULL byte, detect the encoding
19063         as UTF-16 or binary.  If Latin extra codes exist, detect the
19064         encoding as ISO-2022 only when there's no other proper encoding is
19065         found.
19067 2008-01-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19069         * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19070         #ifdef MAC_OS.
19072 2008-01-08  Richard Stallman  <rms@gnu.org>
19074         * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19076 2008-01-06  Nick Roberts  <nickrob@snap.net.nz>
19078         * keyboard.c (parse_menu_item): Don't enclose key bindings on
19079         menu bar in parentheses.
19081 2008-01-06  Dan Nicolaescu  <dann@ics.uci.edu>
19083         * m/7300.h:
19084         * m/acorn.h:
19085         * m/alliant-2800.h:
19086         * m/alliant.h:
19087         * m/alliant1.h:
19088         * m/alliant4.h:
19089         * m/altos.h:
19090         * m/amdahl.h:
19091         * m/apollo.h:
19092         * m/att3b.h:
19093         * m/aviion-intel.h:
19094         * m/aviion.h:
19095         * m/celerity.h:
19096         * m/clipper.h:
19097         * m/cnvrgnt.h:
19098         * m/convex.h:
19099         * m/cydra5.h:
19100         * m/delta88k.h:
19101         * m/dpx2.h:
19102         * m/dual.h:
19103         * m/elxsi.h:
19104         * m/f301.h:
19105         * m/gould-np1.h:
19106         * m/gould.h:
19107         * m/i860.h:
19108         * m/ibmps2-aix.h:
19109         * m/ibmrt-aix.h:
19110         * m/ibmrt.h:
19111         * m/irist.h:
19112         * m/is386.h:
19113         * m/isi-ov.h:
19114         * m/mega68.h:
19115         * m/mg1.h:
19116         * m/news-r6.h:
19117         * m/news-risc.h:
19118         * m/news.h:
19119         * m/nh3000.h:
19120         * m/nh4000.h:
19121         * m/ns16000.h:
19122         * m/ns32000.h:
19123         * m/nu.h:
19124         * m/orion.h:
19125         * m/orion105.h:
19126         * m/paragon.h:
19127         * m/pfa50.h:
19128         * m/plexus.h:
19129         * m/pyramid.h:
19130         * m/pyrmips.h:
19131         * m/sh3el.h:
19132         * m/sps7.h:
19133         * m/sr2k.h:
19134         * m/stride.h:
19135         * m/sun1.h:
19136         * m/sun2.h:
19137         * m/sun3-68881.h:
19138         * m/sun3-fpa.h:
19139         * m/sun3-soft.h:
19140         * m/sun3.h:
19141         * m/sun386.h:
19142         * m/symmetry.h:
19143         * m/tad68k.h:
19144         * m/tahoe.h:
19145         * m/targon31.h:
19146         * m/tek4300.h:
19147         * m/tekxd88.h:
19148         * m/tower32.h:
19149         * m/tower32v3.h:
19150         * m/ustation.h:
19151         * m/wicat.h:
19152         * m/xps100.h:
19153         * s/cxux.h:
19154         * s/cxux7.h:
19155         * s/dgux.h:
19156         * s/dgux4.h:
19157         * s/dgux5-4-3.h:
19158         * s/dgux5-4r2.h:
19159         * s/esix.h:
19160         * s/esix5r4.h:
19161         * s/hiuxmpp.h:
19162         * s/hiuxwe2.h:
19163         * s/iris3-5.h:
19164         * s/iris3-6.h:
19165         * s/isc2-2.h:
19166         * s/isc3-0.h:
19167         * s/isc4-0.h:
19168         * s/isc4-1.h:
19169         * s/newsos5.h:
19170         * s/newsos6.h:
19171         * s/osf1.h:
19172         * s/osf5-0.h:
19173         * s/riscix1-1.h:
19174         * s/riscix12.h:
19175         * s/sco4.h:
19176         * s/sco5.h:
19177         * s/sunos4-0.h:
19178         * s/sunos4-1.h:
19179         * s/sunos413.h:
19180         * s/sunos4shr.h:
19181         * s/umax.h:
19182         * s/unipl5-2.h:
19183         * s/xenix.h:
19184         * cxux-crt0.s:
19185         * unexapollo.c:
19186         * unexconvex.c:
19187         * unexenix.c:
19188         * unexsni.c: Remove files for systems no longer supported.
19190         * m/intel386.h: Remove references to unsupported systems.
19192         * w32.c (get_emacs_configuration): Remove reference to i860.
19194         * sysdep.c: Remove dead code.
19196 2008-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
19198         * s/rtu.h:
19199         * m/masscomp.h: Remove files.  Platform is obsolete.
19201 2008-01-04  Michael Albinus  <michael.albinus@gmx.de>
19203         * dbusbind.c (Fdbus_method_return): New function.
19204         (xd_read_message): Add the serial number to the event.
19205         (Fdbus_register_method): Activate the function.
19207 2008-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
19209         * keyboard.c (read_key_sequence): Fix typo.
19211 2008-01-03  Michael Albinus  <michael.albinus@gmx.de>
19213         * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19214         (xd_signature, xd_append_arg): Handle element type detection for
19215         empty arrays.
19216         (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19217         SDATA () calls; this must be solved more general.
19218         (Fdbus_register_signal): Use SBYTES instead of strlen.
19220 2008-01-03  Magnus Henoch  <magnus@zemdatav>
19222         * dbusbind.c (xd_append_arg): Use unsigned char instead of
19223         unsigned int for byte values (necessary for big-endian platform).
19224         (Fdbus_call_method): Handle the case of no returned arguments.
19226 2007-12-31  Tom Tromey  <tromey@redhat.com>  (tiny change)
19228         * dbusbind.c (xd_read_message): Use non-static input_event struct.
19230 2007-12-31  Magnus Henoch  <mange@freemail.hu>
19232         * dbusbind.c (xd_signature): Signature of variant is just "v".
19234 2007-12-30  Michael Albinus  <michael.albinus@gmx.de>
19236         * dbusbind.c: Fix several errors and compiler warnings.
19237         Reported by Tom Tromey <tromey@redhat.com>.
19238         (XD_ERROR, XD_DEBUG_MESSAGE)
19239         (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19240         (xd_append_arg): Part for basic D-Bus types rewritten.
19241         (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19242         DBUS_TYPE_(U)INT16.  Don't call XD_DEBUG_MESSAGE with "%f" if not
19243         appropriate.
19244         (xd_read_message): Return Qnil.  Don't signal an error; it is not
19245         useful during event reading.
19246         (Fdbus_register_signal): Signal an error if the check for
19247         FUNCTIONP fails.
19248         (Fdbus_register_method): New function.  The implementation is not
19249         complete, the call of the function signals an error therefore.
19250         (Fdbus_unregister_object): New function, renamed from
19251         Fdbus_unregister_signal.  The initial check signals an error, if
19252         the object is not well formed.
19254 2007-12-30  Richard Stallman  <rms@gnu.org>
19256         * textprop.c (get_char_property_and_overlay):
19257         Signal error if POSITION is out of range in a buffer.
19259 2007-12-29  Martin Rudalics  <rudalics@gmx.at>
19261         * w32fns.c (Fx_create_frame): Make copy of frame parameters
19262         because the original parameters are in pure storage now.
19264 2007-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19266         * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19268 2007-12-22  Eli Zaretskii  <eliz@gnu.org>
19270         * callint.c (syms_of_callint) <command-history>: Add reference to
19271         history-length in the doc string.
19273 2007-12-17  Jason Rumney  <jasonr@gnu.org>
19275         * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19276         before passing as wParam.
19278 2007-12-22  Michael Albinus  <michael.albinus@gmx.de>
19280         * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19281         DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19282         DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19283         Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19284         as number.
19285         (Fdbus_call_method): Fix docstring.
19287 2007-12-21  Michael Albinus  <michael.albinus@gmx.de>
19289         * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19290         New macros.
19291         (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19292         (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19293         Simplify.
19294         (xd_signature): New function.
19295         (xd_append_arg): Compute also signatures.  Major rewrite.
19296         (xd_retrieve_arg): Make debug messages friendly.
19297         (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19298         Check for signatures of arguments.
19300 2007-12-19  Michael Albinus  <michael.albinus@gmx.de>
19302         * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19303         (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19304         (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19305         (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19306         (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19307         (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19308         (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19309         (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19310         (xd_retrieve_value): Remove.  Functionality included in ...
19311         (xd_append_arg): New function.
19312         (Fdbus_call_method, Fdbus_send_signal): Apply it.
19314 2007-12-16  Michael Albinus  <michael.albinus@gmx.de>
19316         * dbusbind.c (top): Include <stdio.h>.
19317         (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19318         dbus_message_new_method_call and dbus_message_new_signal.
19319         (Fdbus_register_signal): Rename unique_name to uname.
19320         Check handler for FUNCTIONP instead of CHECK_SYMBOL.  Handle case of
19321         non-existing unique name.  Fix typos in matching rule.  Return an
19322         object which is useful in Fdbus_unregister_signal.
19323         (Fdbus_unregister_signal): Reimplementation, in order to remove
19324         only the corresponding entry.
19325         (Vdbus_registered_functions_table): Change the order of entries.
19326         Apply these changes in xd_read_message and Fdbus_register_signal.
19328 2007-12-16  Andreas Schwab  <schwab@suse.de>
19330         * fileio.c (Finsert_file_contents): Fix overflow check to not
19331         depend on undefined integer overflow.
19333 2007-12-14  Jason Rumney  <jasonr@gnu.org>
19335         * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19336         for characters above 127.
19338 2007-12-13  Jason Rumney  <jasonr@gnu.org>
19340         * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19341         before dereferencing array.
19342         (lookup_vk_code): Remove zero comparison.
19344 2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
19346         * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19347         (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19348         Use `unsigned int' instead of `uint'.
19349         (xd_read_message, Fdbus_register_signal): Split expressions into
19350         multiple lines before operators "&&" and "||", according to the
19351         GNU Coding Standards.
19353 2007-12-14  Eli Zaretskii  <eliz@gnu.org>
19355         * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19357 2007-12-12  Juri Linkov  <juri@jurta.org>
19359         * buffer.c (Frename_buffer): In interactive spec replace
19360         `read-buffer' with `read-string' that uses `buffer-name-history'
19361         as history, and the current buffer's name as default.
19363 2007-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19365         * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19366         manipulating the backtrace manually.
19367         (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19368         (struct backtrace, backtrace_list): Remove.
19369         (command_loop_1): Remove dead var `no_direct'.
19371         * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19372         preserve non-built-in buffer-local variables.
19373         (Fkill_all_local_variables): Don't re-create&re-set permanent
19374         buffer-local variables.
19376 2007-12-09  Juri Linkov  <juri@jurta.org>
19378         * buffer.c (Frename_buffer): Change interactive spec from "s" to
19379         Lisp code that uses `read-buffer' with current buffer as default.
19381 2007-12-08  Michael Albinus  <michael.albinus@gmx.de>
19383         * dbusbind.c (xd_read_message): Generate an event for every
19384         registered handler.  There might be several handlers registered
19385         for the same signal.
19386         (Fdbus_register_signal): Don't overwrite a registration for the
19387         same signal.  Add a new registration if handlers are different.
19388         (Vdbus_registered_functions_table): Rework doc string.
19390 2007-12-07  Michael Albinus  <michael.albinus@gmx.de>
19392         * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19393         (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19394         DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19395         (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19396         Unify argument lists.
19397         (xd_read_message, Fdbus_register_signal): Reorder and extend event
19398         arguments and hash table keys.  Use unique name for service.
19399         (Fdbus_unregister_signal): Remove checks.
19400         (Vdbus_registered_functions_table): Fix doc string.
19402 2007-12-05  Magnus Henoch  <mange@freemail.hu>
19404         * process.c (make_process): Initialize pty_flag to 0.
19406 2007-12-05  Jason Rumney  <jasonr@gnu.org>
19408         * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19409         specified XBMs.
19411 2007-12-05  Richard Stallman  <rms@gnu.org>
19413         * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19415 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19417         * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19418         New variable.
19419         (mac_try_close_socket) [MAC_OSX]: New function.
19420         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19421         Update cfsockets_for_select.  Replace invalid CFRunLoop source.
19423         * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19424         Use mac_try_close_socket.
19426 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19428         * unexmacosx.c (unrelocate): New argument BASE.  Use it instead of
19429         reloc_base.
19430         (copy_dysymtab): Compute relocation base here.
19431         (rebase_reloc_address) [__ppc64__]: New function.
19432         (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19433         changed.
19435 2007-12-05  Jason Rumney  <jasonr@gnu.org>
19437         * w32proc.c (sys_spawnve): Quote args with wildcards.
19439 2007-12-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19441         * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19442         __objc_* sections.
19443         (unrelocate) [_LP64]: Set relocation base to address of data segment.
19445 2007-12-05  Michael Albinus  <michael.albinus@gmx.de>
19447         * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19448         Move check for Vdbus_registered_functions_table to
19449         xd_read_queued_messages.
19450         (xd_read_queued_messages): Protect xd_read_message calls by
19451         internal_condition_case_1.
19453 2007-12-04  Michael Albinus  <michael.albinus@gmx.de>
19455         * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19456         Qdbus_system_bus and Qdbus_session_bus, respectively.
19457         (Vdbus_intern_symbols): Remove.
19458         (Vdbus_registered_functions_table): New hash table.
19459         (XD_SYMBOL_INTERN_SYMBOL): Remove.
19460         (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19461         Rewrite in order to manage registered functions by hash table
19462         Vdbus_registered_functions_table.
19464 2007-12-03  Jan Djärv  <jan.h.d@swipnet.se>
19466         * xterm.c: Update URL to Window Manager Specification in comment.
19468 2007-12-02  Michael Albinus  <michael.albinus@gmx.de>
19470         * config.in (HAVE_DBUS): Add.
19472         * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19473         (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19474         (obj): Add $(DBUS_OBJ).
19475         (LIBES): Add $(DBUS_LIBS).
19476         (dbusbind.o): New target.
19478         * dbusbind.c: New file.
19480         * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19482         * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19483         (Qdbus_event): New Lisp symbol.
19484         (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19485         (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19486         (keys_of_keyboard): Define dbus-event.
19488         * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19490 2007-12-01  Richard Stallman  <rms@gnu.org>
19492         * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19494 2007-11-30  Jason Rumney  <jasonr@gnu.org>
19496         * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19497         (w32con_reset_terminal_modes): Clear screen buffer.
19498         (w32_face_attributes): Don't use color indexes that are out of range.
19499         Only reverse the default colors.
19501         * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19502         WINDOWSNT.
19504         * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19506 2007-11-29  Jason Rumney  <jasonr@gnu.org>
19508         * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19509         (w32_face_attributes): Use Vtty_defined_color_alist to determine
19510         if the terminal colors are initialized.
19511         (unspecified_fg, unspecified_bg): Remove unused declarations.
19513 2007-11-29  Andreas Schwab  <schwab@suse.de>
19515         * keyboard.c (apply_modifiers): Fix typo.
19517 2007-11-29  Richard Stallman  <rms@gnu.org>
19519         * keymap.c (Fcurrent_local_map): Doc fix.
19521 2007-11-28  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19523         * s/gnu-kfreebsd.h: New file.
19525 2007-11-28  Stefan Monnier  <monnier@iro.umontreal.ca>
19527         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19528         Don't cast redundantly.
19530         * keyboard.c (KEY_TO_CHAR): New macro.
19531         (parse_modifiers, apply_modifiers): Accept integer arguments.
19532         (read_key_sequence): Use them to unify the "shift->unshift" mapping
19533         for chars and symbol keys.
19534         After doing such remapping, apply function-key-map again.
19536 2007-11-27  Dan Nicolaescu  <dann@ics.uci.edu>
19538         * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19539         compiled anymore.
19541 2007-11-26  Andreas Schwab  <schwab@suse.de>
19543         * process.c (list_processes_1): Fix indentation level of the
19544         command column.
19546 2007-11-23  Andreas Schwab  <schwab@suse.de>
19548         * editfns.c (Fformat): Handle %c specially since it requires the
19549         argument to be of type int.
19551 2007-11-23  Markus Triska  <markus.triska@gmx.at>
19553         * emacs.c (main): Call init_editfns before init_process, since
19554         init_process sets Vprocess_connection_type depending on OS release.
19556 2007-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
19558         * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19559         (find_symbol_value): Use do_symval_forwarding.
19561         * data.c (set_internal): Set the value in the `cons-cell' (for
19562         Buffer_Local_values) not only for frame-local variables.
19564 2007-11-22  Andreas Schwab  <schwab@suse.de>
19566         * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19567         values to sprintf.
19568         * keymap.c (Fsingle_key_description): Likewise.
19569         * print.c (print_object): Likewise.
19571 2007-11-22  Jan Djärv  <jan.h.d@swipnet.se>
19573         * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19574         file for image is nil.
19576 2007-11-22  Dan Nicolaescu  <dann@ics.uci.edu>
19578         * term.c: Include stdarg.h.
19579         (fatal): Implement using varargs.
19580         * lisp.h (fatal): Add argument types.  (Restore 2005-09-30 change).
19582 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19584         * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19585         * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19586         Update call to buffer_slot_type_mismatch.
19587         * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19588         (buffer_slot_type_mismatch): Update.
19589         * buffer.c (buffer_local_types): Remove.
19590         (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19591         (defvar_per_buffer): Set the type in the buffer_objfwd.
19593 2007-11-21  Jason Rumney  <jasonr@gnu.org>
19595         * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19596         CreateFileMapping returns NULL on failure.
19598 2007-11-21  Stefan Monnier  <monnier@iro.umontreal.ca>
19600         * search.c (Fset_match_data): Remove the `evaporate' feature.
19601         (unwind_set_match_data): Don't use the `evaporate' feature.
19603 2007-11-21  Jason Rumney  <jasonr@gnu.org>
19605         * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19607         * w32console.c (w32con_write_glyphs): Remove unused variables.
19609 2007-11-20  Dan Nicolaescu  <dann@ics.uci.edu>
19611         * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19613         * s/darwin.h (MULTI_KBOARD): Remove.
19615         * macfns.c (x_create_tip_frame, Fx_create_frame)
19616         (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19618 2007-11-19  Stefan Monnier  <monnier@iro.umontreal.ca>
19620         * buffer.c (Fbuffer_local_value): Remove redundant test.
19621         (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19622         than in `current-buffer' to match the comment.
19623         Do the swap using swap_in_global_binding.
19625         * data.c (store_symval_forwarding, set_internal):
19626         * eval.c (specbind): Remove dead code.
19628         * coding.c (detect_coding, Fupdate_coding_systems_internal):
19629         * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19630         Since we do not want to see internal Lisp_*fwd objects here.
19632 2007-11-18  Jan Djärv  <jan.h.d@swipnet.se>
19634         * sysdep.c (init_system_name): Use getaddrinfo if available.
19636         * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19637         (x_scroll_bar_note_movement): start, end, with, height in struct
19638         scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19640 2007-11-17  Dan Nicolaescu  <dann@ics.uci.edu>
19642         * puresize.h (BASE_PURESIZE): Increase to 1190000.
19644 2007-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
19646         * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19647         This undoes Richard's change of 14-Oct-2002.
19649         * alloc.c (allocate_other_vector):
19650         * lisp.h (allocate_other_vector): Remove.
19652         * window.c (struct save_window_data): Move non-lisp data to the end
19653         and make it `int' rather than Lisp_Object.
19654         (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19655         Done wrap/unwrap integer values.
19656         (Fset_window_configuration, compare_window_configurations):
19657         Update use of fields to their new types.
19659         * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19660         Turn integer fields into `int'.  Merge x_window_low and x_window_high.
19661         (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19662         (SET_SCROLL_BAR_X_WINDOW): Remove.
19663         (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19664         Access the new x_window field directly.
19665         * xterm.c (x_scroll_bar_create): Use a pseudovector.
19666         Don't wrap/unwrap integers into Lisp_Objects.
19667         (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19668         (x_scroll_bar_report_motion):
19669         Don't wrap/unwrap integers into Lisp_Objects.
19670         (x_term_init): Use SDATA.
19671         (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19672         (x_scroll_bar_set_handle, x_scroll_bar_remove)
19673         (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19674         (x_scroll_bar_report_motion, x_scroll_bar_clear):
19675         * xfns.c (x_set_background_color):
19676         * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19677         Access the new x_window field directly.
19679         * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19680         (allocate_pseudovector): Make non-static.
19682         * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19683         (allocate_pseudovector): Declare.
19684         (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19686 2007-11-15  Andreas Schwab  <schwab@suse.de>
19688         * editfns.c (Fformat): Correctly format EMACS_INT values.
19689         Also take precision into account when formatting an integer.
19691         * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19693 2007-11-15  Stefan Monnier  <monnier@iro.umontreal.ca>
19695         * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19696         (syms_of_keyboard): Defsubr it.
19698         * data.c (swap_in_global_binding): Fix longstanding bug where
19699         store_symval_forwarding was not called with the right second argument,
19700         thus causing objfwd-ing from being dropped.
19702 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
19704         * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19705         (Fx_display_pixel_height, Fx_display_planes)
19706         (Fx_display_color_cells, Fx_server_max_request_size)
19707         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19708         (Fx_display_visual_class, Fx_display_save_under):
19709         * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19710         (Fx_display_pixel_height, Fx_display_planes)
19711         (Fx_display_color_cells, Fx_server_max_request_size)
19712         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19713         (Fx_display_mm_height, Fx_display_mm_width)
19714         (Fx_display_backing_store, Fx_display_visual_class)
19715         (Fw32_select_font, Fx_display_save_under):
19716         * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19717         (Fx_display_pixel_height, Fx_display_planes)
19718         (Fx_display_color_cells, Fx_server_max_request_size)
19719         (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19720         (Fx_display_save_under): Fix typos in docstrings.
19722 2007-11-14  Juanma Barranquero  <lekktu@gmail.com>
19724         * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19725         corresponding to deleted entries; they are an implementation detail.
19726         (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19727         Remove variables.
19728         (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19729         (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19730         (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19731         (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19732         (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19733         (Fw32_define_rgb_color, Fw32_load_color_file)
19734         (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19735         Fix typos in docstrings.
19736         (Fx_server_version): Reflow docstring.
19737         (Fw32_shell_execute): Doc fixes.
19739 2007-11-13  Juanma Barranquero  <lekktu@gmail.com>
19741         * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19742         if w32_parse_hot_key returned nil.
19744 2007-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
19746         * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19748 2007-11-09  Jason Rumney  <jasonr@gnu.org>
19750         * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19752         * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19754         * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19755         Remove W32_SCROLL_BAR_CLICK_EVENT.
19757         * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19758         Add MULTIMEDIA_KEY_EVENT.
19760         * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19761         (lispy_multimedia_keys) [WINDOWSNT]: New array.
19762         (make_lispy_event) [WINDOWSNT]: Use it to translate
19763         MULTIMEDIA_KEY_EVENT.
19765         * w32term.h (WM_APPCOMMAND): Define if not already.
19766         (GET_APPCOMMAND_LPARAM): Likewise.
19768         * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19769         WM_APPCOMMAND.
19771         * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19772         (syms_of_w32fns): Export and initialize it.
19773         (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19775 2007-11-09  Chong Yidong  <cyd@stupidchicken.com>
19777         * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19778         twice.
19780         * xdisp.c (handle_face_prop): Fix last change.
19782 2007-11-09  Richard Stallman  <rms@gnu.org>
19784         * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19785         not just for after-strings and before-strings.
19786         Call face_for_overlay_string and pass the overlay to it.
19787         (handle_display_prop): Determine whether property came from an overlay.
19788         Pass OVERLAY arg to handle_single_display_spec.
19789         (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19790         (load_overlay_strings): Fill in it->string_overlays.
19791         (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19793         * xfaces.c (face_for_overlay_string): Function renamed from
19794         face_at_buffer_position_no_overlays, and add arg OVERLAY.
19796         * dispextern.h (struct it): New elt string_overlays.
19797         New elt from_overlay, also in stack.
19798         Rearrange a few elements.
19799         (face_for_overlay_string): Decl renamed from
19800         face_at_buffer_position_no_overlays, and add argument.
19802 2007-11-09  Richard Stallman  <rms@gnu.org>
19804         * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19805         to get the base face for an overlay string.
19807         * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19809         * xfaces.c (face_at_buffer_position_no_overlays): New function.
19811         * xdisp.c (handle_stop): Move some code out of loop.
19813 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19815         * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19816         Fix conversion from Lisp object to ATSUFontID.
19818 2007-11-09  Jason Rumney  <jasonr@gnu.org>
19820         * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19822 2007-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
19824         * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19825         Don't assume regions are aligned to page boundary.
19826         (print_load_command_name): Add LC_UUID if defined.
19828 2007-11-09  Richard Stallman  <rms@gnu.org>
19830         * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19832 2007-11-07  Jason Rumney  <jasonr@gnu.org>
19834         * s/windows95.h: Remove.
19836 2007-11-06  Jan Djärv  <jan.h.d@swipnet.se>
19838         * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19839         abort with a message on unhandled store_type values.
19841 2007-11-01  Jan Djärv  <jan.h.d@swipnet.se>
19843         * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19844         Remove HAVE_X11R5 and HAVE_X11R4.
19846 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
19848         * Makefile.in: Remove references to sunfns.c and sunfns.o.
19850 2007-11-01  Johan Bockgård  <bojohan@gnu.org>
19852         * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19853         Don't set s->stippled_p here, since it has already been set by
19854         x_set_glyph_string_gc from x_draw_glyph_string.
19856 2007-11-01  Dan Nicolaescu  <dann@ics.uci.edu>
19858         * sunfns.c: Remove file.
19860         * m/sun386.h:
19861         * m/sun2.h:
19862         * m/sparc.h: Remove Sun windows code.
19864 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
19866         * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19867         (init_keyboard): Set current_kboard's window-system to nil.
19868         (tty_read_avail_input): Typo.
19869         * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19871 2007-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
19873         * s/usg5-4.h:
19874         * s/usg5-3.h:
19875         * s/ptx.h:
19876         * m/is386.h:
19877         * m/ibmps2-aix.h:
19878         * Makefile.in: Remove all mentions of X10.
19880         * dispnew.c (syms_of_display): Don't mention version 10.
19882 2007-10-28  Juanma Barranquero  <lekktu@gmail.com>
19884         * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19885         ($(BLD)/abbrev.$(O)): Remove.
19887 2007-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
19889         Rewrite abbrev.c in Elisp.
19890         * image.c (Qcount): Don't declare as extern.
19891         (syms_of_image): Initialize and staticpro `Qcount'.
19892         * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19893         * emacs.c (main): Don't call syms_of_abbrev.
19894         * Makefile.in (obj): Remove abbrev.o.
19895         (abbrev.o): Remove.
19896         * abbrev.c: Remove.
19898 2007-10-26  Martin Rudalics  <rudalics@gmx.at>
19900         * window.c (window_min_size_2): Don't count header-line.
19902 2007-10-26  Dan Nicolaescu  <dann@ics.uci.edu>
19904         * frame.h (struct frame): Move all bit fields after the first bit
19905         field to take advantage of the available space.  Group all the
19906         chars together to reduce wasted space due to padding.
19908 2007-10-26  Juanma Barranquero  <lekktu@gmail.com>
19910         * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19912         * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19913         (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19914         (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19915         (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19916         (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19917         (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19918         (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19919         (last_marked, mark_object_loop_halt): Make static.
19921         * frame.c (syms_of_frame) <delete-frame-functions>:
19922         Fix typo in docstring.
19924 2007-10-25  Juanma Barranquero  <lekktu@gmail.com>
19926         * w32.c (init_environment): Fix tiny memory leak.
19927         (w32_get_resource): Remove unused variable `ok'.
19929 2007-10-25  Stefan Monnier  <monnier@iro.umontreal.ca>
19931         Make `window-system' into a keyboard-local variable (rather than
19932         frame-local as done originally by multi-tty).
19934         * keyboard.h (struct kboard): Add Vwindow_system.
19935         * keyboard.c (init_kboard): Set a default for Vwindow_system.
19936         (mark_kboards): Mark Vwindow_system.
19938         * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19939         (init_display): Don't set the obsolete `window-system' frame-param.
19941         * xterm.c (x_term_init):
19942         * w32term.c (w32_create_terminal):
19943         * term.c (init_tty): Set Vwindow_system.
19944         * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19945         multi-tty merge maybe?), copied from w32term.c.  Set Vwindow_system.
19947         * xfns.c (Fx_create_frame, x_create_tip_frame):
19948         * w32fns.c (Fx_create_frame, x_create_tip_frame):
19949         * macfns.c (Fx_create_frame):
19950         Don't set the obsolete `window-system' frame-param.
19952         * frame.h (Qwindow_system): Remove.
19953         * frame.c (Qwindow_system): Remove.  In `syms_of_frame' as well.
19954         (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19956 2007-10-24  Richard Stallman  <rms@gnu.org>
19958         * frame.c (x_figure_window_size): For fullscreen case,
19959         set USPosition | PPosition without clobbering rest of window_prompting.
19961         * keyboard.c (Fcurrent_idle_time): Doc fix.
19963         * print.c (Fwith_output_to_temp_buffer): Doc fix.
19965 2007-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
19967         * process.c (unwind_request_sigio): Only define if __ultrix__.
19969         * callproc.c (child_setup): Remove spurious *.
19971         * lisp.h (Fget_text_property): Declare.
19972         (have_menus_p): Declare it here rather than in sys-dep header files.
19973         * macterm.h (have_menus_p):
19974         * msdos.h (have_menus_p):
19975         * xterm.h (have_menus_p): Remove.
19977         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19978         (Fmake_variable_frame_local): Just check the variable's const-ness
19979         rather than checking nil or t.
19981 2007-10-22  Jason Rumney  <jasonr@gnu.org>
19983         * w32fns.c: Include math.h.
19984         (w32_abort): Declaration moved to nt/config.nt.
19986         * s/ms-w32.h (HAVE_STDLIB_H): Define.
19987         (abort): Redefinition moved to nt/config.nt.
19989         * m/windowsnt.h: Remove.
19991 2007-10-22  Juanma Barranquero  <lekktu@gmail.com>
19993         * emacs.c (Fdump_emacs): Fix typo in message.
19994         (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19995         <installation-directory>: Reflow docstring.
19997 2007-10-22  Juri Linkov  <juri@jurta.org>
19999         * minibuf.c: Allow minibuffer default to be a list of default values.
20000         With empty input use the first element of this list as returned default.
20001         (string_to_object)
20002         (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20003         (read_minibuf): If defalt is cons, set histstring to its car.
20004         (Fread_string): If default_value is cons, set val to its car.
20005         (Fread_buffer): If def is cons, use its car.
20006         (Fcompleting_read): If defalt is cons, set val to its car.
20008 2007-10-21  Michael Albinus  <michael.albinus@gmx.de>
20010         * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20012 2007-10-20  Juanma Barranquero  <lekktu@gmail.com>
20014         * doc.c (Fdocumentation): Check for advice in all cases.
20016 2007-10-19  Chong Yidong  <cyd@stupidchicken.com>
20018         * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20020 2007-10-19  Richard Stallman  <rms@gnu.org>
20022         * doc.c (Fdocumentation): Check for and handle an advised function.
20024 2007-10-19  Juanma Barranquero  <lekktu@gmail.com>
20026         * process.c (Fset_process_filter): Doc fix.
20028 2007-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
20030         * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20031         which caused key-translation-map to applied repeatedly (thus breaking
20032         double-mode).
20034 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
20036         * xselect.c (x_own_selection, x_handle_selection_clear)
20037         (x_clear_frame_selections):
20038         * w32menu.c (list_of_panes, list_of_items):
20039         * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20040         * textprop.c (validate_plist, interval_has_all_properties)
20041         (interval_has_some_properties, interval_has_some_properties_list)
20042         (add_properties, text_property_list):
20043         * process.c (Fget_buffer_process, list_processes_1, status_notify):
20044         * minibuf.c (Fassoc_string):
20045         * macselect.c (x_own_selection, x_clear_frame_selections)
20046         (Fx_disown_selection_internal):
20047         * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20048         Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20050 2007-10-17  Chong Yidong  <cyd@stupidchicken.com>
20052         * process.c: Link to libs for calling res_init() if available.
20053         (Fmake_network_process): Call res_init() before getaddrinfo or
20054         gethostbyname, if possible.
20056 2007-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
20058         * lread.c (read1): Set pvectype for char_tables.
20060         * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20061         (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20062         Add type checks.
20063         (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20065         * alloc.c (free_misc): Use XMISCTYPE.
20066         (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20068 2007-10-17  Glenn Morris  <rgm@gnu.org>
20070         * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20071         (syms_of_minibuf): Add Qcompletion_ignore_case.
20072         * dired.c (Qcompletion_ignore_case): Change to external.
20073         (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20074         * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20075         (Fread_file_name): Use it rather than intern'ing.
20077         * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20078         (Fread_coding_system): Ignore case of user input.
20080 2007-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20082         * xdisp.c (handle_display_prop): Ignore display specs after
20083         replacing one when string text is being replaced.
20084         (handle_single_display_spec): Pretend as if characters with display
20085         property haven't been consumed only when buffer text is being replaced.
20087 2007-10-16  Stefan Monnier  <monnier@iro.umontreal.ca>
20089         * xfns.c (Fx_create_frame, Fx_display_list):
20090         * window.c (window_fixed_size_p, enlarge_window)
20091         (shrink_window_lowest_first):
20092         * macterm.c (init_font_name_table):
20093         * macfns.c (Fx_create_frame, Fx_display_list):
20094         * lread.c (close_load_descs):
20095         * keyboard.c (read_char_x_menu_prompt):
20096         * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20097         * coding.c (code_convert_region_unwind): Test the type of an object
20098         rather than just !NILP before extracting data from it.
20100         * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20102         * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20103         (XMISCANY): New macro.
20104         (XMISCTYPE): Use it.
20105         (struct Lisp_Misc_Any): New type.
20106         (union Lisp_Misc): Use it.
20107         (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20108         * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20109         (find_symbol_value, set_internal, default_value, Fset_default)
20110         (Fmake_variable_buffer_local, Fmake_local_variable)
20111         (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20112         (Flocal_variable_if_set_p, Fvariable_binding_locus):
20113         The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20114         * alloc.c (allocate_buffer): Set the size and tag.
20115         (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20116         Use XMISCANY.
20117         (die): Follow the GNU convention for error messages.
20118         * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20119         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20120         tag any more.
20121         (set_buffer_internal_1):
20122         * frame.c (store_frame_param):
20123         * eval.c (specbind):
20124         * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20126         * doc.c (Fsnarf_documentation): Simplify.
20128 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
20130         * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20131         (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20133 2007-10-14  Stefan Monnier  <monnier@iro.umontreal.ca>
20135         * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20137 2007-10-14  Juanma Barranquero  <lekktu@gmail.com>
20139         * eval.c (do_autoload): Don't save autoloads.
20141         * data.c (Ffset): Save autoload of the function being set.
20143 2007-10-07  John Paul Wallington  <jpw@pobox.com>
20145         * xfns.c (x_create_tip_frame): Set the `display-type' frame
20146         parameter before setting up faces.
20148 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
20150         * ccl.c (Fregister_code_conversion_map):
20151         * keyboard.c (append_tool_bar_item): Reformat last change.
20153         * lisp.h (eabs): Rename from `abs'.  All callers changed.
20155 2007-10-05  Dmitry Antipov  <dmantipov@yandex.ru>
20157         * buffer.c (add_overlay_mod_hooklist):
20158         * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20159         * fontset.c (make_fontset):
20160         * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20161         (append_tool_bar_item):
20162         * macmenu.c (grow_menu_items):
20163         * w32menu.c (grow_menu_items):
20164         * xmenu.c (grow_menu_items): Use larger_vector.
20166 2007-10-13  Eli Zaretskii  <eliz@gnu.org>
20168         * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20169         selected frame'' on MSDOS).
20171 2007-10-12  Martin Rudalics  <rudalics@gmx.at>
20173         * frame.c (Qexplicit_name): New variable.
20174         (x_report_frame_params): Report it in parameter alist.
20175         (syms_of_frame): Intern and staticpro it.
20177 2007-10-10  Patrick Mahan  <mahan@mahan.org>  (tiny change)
20179         * macfns.c (x_create_tip_frame): Set terminal for frame.
20181 2007-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20183         * frame.c (Qenvironment): Remove.
20184         (syms_of_frame) <Qenvironment>: Don't initialize.
20185         (Fdelete_frame): Don't treat the `environment' param specially.
20186         * frame.h (Qenvironment): Don't declare.
20187         * callproc.c (set_initial_environment): Don't set unused frame param.
20189         * frame.c (Fframe_with_environment): Remove.
20190         (syms_of_frame) <Sframe_with_environment>: Don't declare.
20192         * lisp.h (Fframe_with_environment): Don't declare.
20194 2007-10-10  Juanma Barranquero  <lekktu@gmail.com>
20196         * indent.c (indent_tabs_mode, last_known_column)
20197         (last_known_column_modified): Make static.
20198         (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20200 2007-10-10  Katsumi Yamaoka  <yamaoka@jpl.org>
20202         * puresize.h (BASE_PURESIZE): Increase to 1170000.
20204 2007-10-09  Jason Rumney  <jasonr@gnu.org>
20206         * w32term.c (x_set_window_size): Disable code that attempts to tell
20207         Lisp code about a size change before it actually happens.
20209 2007-10-09  Richard Stallman  <rms@gnu.org>
20211         * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20212         return HANDLED_RETURN.
20214 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
20216         * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20217         when there's an unread command event.
20219         * frame.c (focus_follows_mouse): Move here from frame.el to allow
20220         window autoselection act appropriately when leaving selected frame.
20221         (syms_of_frame): Initialize focus_follows_mouse.
20222         * frame.h (focus_follows_mouse): Extern it.
20223         * macterm.c (XTread_socket): When focus_follows_mouse is nil
20224         make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20225         * msdos.c (dos_rawgetc): Likewise.
20226         * w32term.c (w32_read_socket): Likewise.
20227         * xterm.c (handle_one_xevent): Likewise.
20228         * xdisp.c (syms_of_xdisp): In doc-string of
20229         mouse-autoselect-window mention focus-follows-mouse.
20231 2007-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
20233         * macterm.c (mac_load_query_font): Fix missing return value.
20234         [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20235         Add BLOCK_INPUT.
20237 2007-10-08  Richard Stallman  <rms@gnu.org>
20239         * xdisp.c (get_window_cursor_type): Implement documented behavior
20240         for cursor-in-non-selected-windows = t.
20242 2007-10-08  Jason Rumney  <jasonr@gnu.org>
20244         * w32.c (w32_get_resource): Always close registry keys.
20246 2007-10-08  Jason Rumney  <jasonr@gnu.org>
20248         * makefile.w32-in (LIBS): Add COMCTL32.
20250         * w32fns.c (globals_of_w32fns): Init common controls.
20252 2007-10-08  Richard Stallman  <rms@gnu.org>
20254         * image.c (our_memory_buffer): Rename from omfib_buffer.
20256 2007-10-08  Richard Stallman  <rms@gnu.org>
20258         * buffer.c (Foverlays_at): Doc fix.
20260 2007-10-08  Stefan Monnier  <monnier@iro.umontreal.ca>
20262         * fns.c (Fplist_put): Preserve uneven tail data.
20264 2007-10-08  Peter O'Gorman  <bug-gnu-emacs@mlists.thewrittenword.com>  (tiny change)
20266         * termhooks.h (enum event_kind): Remove trailing comma.
20268         * frame.h (enum): Remove trailing comma.
20270 2007-10-08  Dhruva Krishnamurthy  <dhruvakm@gmail.com>  (tiny change)
20272         * w32proc.c (delete_child): Don't terminate threads of zombies.
20274 2007-10-08  Martin Rudalics  <rudalics@gmx.at>
20276         * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20278         * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20279         last-repeatable-command.
20280         (init_kboard): Initialize Vlast_repeatable_command.
20281         (command_loop_1): Set it to real_this_command unless that was
20282         bound to an input event.
20283         (mark_kboards): Mark it.
20285 2007-10-08  Richard Stallman  <rms@gnu.org>
20287         * eval.c (condition-case): Doc fix.
20289 2007-10-08  Masatake YAMATO  <jet@gyve.org>
20291         * xfaces.c (tty_supports_face_attributes_p): Fix code
20292         for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20293         was copied and not edited.
20295 2007-10-09  Stefan Monnier  <monnier@iro.umontreal.ca>
20297         Add new `input-decode-map' keymap and use it for terminal
20298         escape sequences.
20299         * keyboard.h (struct kboard): Add Vinput_decode_map.
20300         Remove Vlocal_key_translation_map.
20301         * keyboard.c (read_key_sequence): Add support for input-decode-map.
20302         (init_kboard): Init input-decode-map.
20303         Replace local-key-translation-map back with key-translation-map.
20304         (syms_of_keyboard): Declare input-decode-map.
20305         Remove local-key-translation-map.  Update docstrings.
20306         (mark_kboards): Mark Vinput_decode_map.
20307         Don't mark Vlocal_key_translation_map.
20308         * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20309         Replace local-key-translation-map back with key-translation-map.
20310         * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20311         Bind in input-decode-map rather than function-key-map.
20313         * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20314         This was made redundant by the previous introduction of XSETPVECTYPE.
20316 2007-10-09  Richard Stallman  <rms@gnu.org>
20318         * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20320 2007-09-29  Richard Stallman  <rms@gnu.org>
20322         * eval.c (internal_condition_case_2, internal_condition_case_1)
20323         (internal_condition_case): Reenable abort if x_catching_errors ()
20324         to see if that really happens and why.
20326 2007-10-06  Andreas Schwab  <schwab@suse.de>
20328         * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20330 2007-10-04  Juanma Barranquero  <lekktu@gmail.com>
20332         * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20334 2007-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
20336         * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20338 2007-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>
20340         * window.h (struct window):
20341         * window.c (struct save_window_data, struct saved_window):
20342         * termhooks.h (struct terminal):
20343         * process.h (struct Lisp_Process):
20344         * frame.h (struct frame):
20345         * buffer.h (struct buffer):
20346         * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20347         (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20348         The size field of (pseudo)vectors is now unsigned.
20349         (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20351         * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20352         Turn `count' into an integer.
20354         * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20355         (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20356         * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20357         * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20358         (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20360         * alloc.c (allocate_pseudovector): New fun.
20361         (ALLOCATE_PSEUDOVECTOR): New macro.
20362         (allocate_window, allocate_terminal, allocate_frame)
20363         (allocate_process): Use it.
20364         (mark_vectorlike): New function.
20365         (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20366         (mark_terminals): Use it.
20367         (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20368         (Fmake_byte_code): Use XSETPVECTYPE.
20370         * frame.c (Fframe_parameters): Minor simplification.
20372         * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20374         * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20376         * buffer.c (Fget_buffer_create, init_buffer_once):
20377         * lread.c (defsubr):
20378         * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20380         * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20381         defined differently in the m/*.h files.
20382         (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20383         (XSETPVECTYPE): New macro.
20384         (XSETPSEUDOVECTOR): Use it.
20386         * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20387         (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20389         * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20390         * lread.c (defvar_per_buffer):
20391         * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20393         * window.c (candidate_window_p): Only consider as visible frames that
20394         are on the same terminal.
20396         * m/ibms390x.h (MARKBIT): Remove unused macro.
20398 2007-10-01  Juanma Barranquero  <lekktu@gmail.com>
20400         * lread.c (Fload): Fix typo in docstring.
20402 2007-10-01  Michaël Cadilhac  <michael@cadilhac.name>
20404         * floatfns.c (Fexpt): Manually check for overflows, so that a power
20405         of a non-zero value can't yield zero.
20407 2007-09-29  Stefan Monnier  <monnier@iro.umontreal.ca>
20409         * term.c (term_clear_mouse_face, term_mouse_highlight)
20410         (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20412         * print.c (safe_debug_print): Use XHASH.
20414         * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20415         Lisp elements such as tags.
20416         (XHASH): New macro.
20417         (EQ): Use it.
20418         (SREF, SSET, STRING_COPYIN): Use SDATA.
20419         (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20421         * alloc.c (mark_terminal): Remove left-over declaration.
20422         (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20423         (allocate_vectorlike): Remove type argument.  Adjust callers.
20424         (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20425         Only handle the one remaining MEM_TYPE_VECTORLIKE.
20427         * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20428         to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20429         (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20430         (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20431         (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20432         Use them.
20434         * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20435         Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20436         (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20438 2007-09-28  Dan Nicolaescu  <dann@ics.uci.edu>
20440         * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20441         loaded by default.
20443 2007-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
20445         * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20446         on this tty.
20447         (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20449         * term.c (mouse_face_window): Rename from Qmouse_face_window.
20450         Update all users.
20451         (handle_one_term_event): Use Gpm_DrawPointer.
20452         (Fgpm_mouse_start): Rename from Fterm_open_connection.
20453         Signal errors instead of returning nil.  Always return nil.
20454         (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20455         Make it a noop if gpm-mouse was not activated.
20456         (syms_of_term): Update names.
20458 2007-09-27  Stefan Monnier  <monnier@iro.umontreal.ca>
20460         * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20461         (init_sys_modes): Check that gpm_tty is the current tty.
20463         * alloc.c (allocate_terminal): Set the vector size to only count the
20464         lisp fields.  Initialize those to nil.
20465         (mark_object): Don't treat terminals specially.
20466         (mark_terminal): Remove.
20467         (mark_terminals): Use mark_object instead.
20469         * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20470         the GC to the beginning.
20472         * indent.h:
20473         * indent.c: Use EMACS_INT for ints coming from Elisp data.
20475         * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20477 2007-09-25  Jason Rumney  <jasonr@gnu.org>
20479         * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20481         * w32console.c (create_w32cons_output): Remove.
20483         * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20485         * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20486         (reset_sys_modes): Use reset_terminal_modes_hook.
20488 2007-09-24  Stefan Monnier  <monnier@iro.umontreal.ca>
20490         * eval.c (do_autoload): Don't output any message.
20492 2007-09-24  Juri Linkov  <juri@jurta.org>
20494         * emacs.c (standard_args): Change priority of "--no-splash"
20495         from 40 to 3.  Add "--no-desktop" with the same priority.
20497 2007-09-23  Dmitry Antipov  <dmantipov@yandex.ru>
20499         * alloc.c (gc_sweep): Check cons cell mark bits word by word
20500         and optimize the case where they are all 1.
20502 2007-09-23  Johannes Weiner  <hannes@saeurebad.de>
20504         * lisp.h (abs): Define if not defined.
20505         * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20506         Don't define `abs', since it's defined in lisp.h.
20508 2007-09-22  Eli Zaretskii  <eliz@gnu.org>
20510         * term.c (DEV_TTY): New macro.  Provide a definition for MS-Windows.
20511         (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20512         (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20513         (init_tty): Use DEV_TTY instead of "/dev/tty".
20514         [WINDOWSNT]: No need to protect from NAME arg being null.
20516 2007-09-21  Dan Nicolaescu  <dann@ics.uci.edu>
20518         * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20519         up the tty state.
20521 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
20523         * termhooks.h (term_gpm): Delete.  Use gpm_tty's NULLness instead.
20524         (gpm_tty): Change its type.
20525         * term.c (term_gpm): Delete.  Use gpm_tty's NULLness instead.
20526         (gpm_tty): Change its type and initialize it.
20527         (Fterm_open_connection): Check the frame is indeed a tty.
20528         Use the new gpm_tty.
20529         (Fterm_close_connection): Use the new gpm_tty.
20530         * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20531         * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20533 2007-09-21  Juanma Barranquero  <lekktu@gmail.com>
20535         * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20536         underline_color, to draw strike-through.
20538 2007-09-21  Stefan Monnier  <monnier@iro.umontreal.ca>
20540         * lisp.h (allocate_terminal): Declare.
20542         * window.c (candidate_window_p): Consider frames that are being placed
20543         by the user as somewhere between visible and iconified.
20544         (window_loop): Prefer windows on the current frame.
20545         (Fselect_window): Move the use of select-frame to the beginning so we
20546         can just delegate all the work (it'll call us back anyway).
20548         * frame.c (Qdisplay_environment_variable):
20549         * frame.h (Qdisplay_environment_variable): Delete.
20551         * .gdbinit (xbacktrace): Print the arg's address rather than the value
20552         of the first arg, since that value may be a union.
20554         * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20555         parameter rather than Qdisplay_environment_variable.  If all else
20556         fails, look for DISPLAY in initial-environment.
20558 2007-09-21  Glenn Morris  <rgm@gnu.org>
20560         * Makefile.in (emacstool): Remove target.
20561         (lisp, shortlisp): Remove termdev.elc.
20563 2007-09-21  Markus Triska  <markus.triska@gmx.at>
20565         * xterm.c (x_delete_display): Compile session management conditionally.
20567 2007-09-20  Stefan Monnier  <monnier@iro.umontreal.ca>
20569         * callproc.c (getenv_internal_1): New function.
20570         (getenv_internal): Use it.
20571         (Fgetenv_internal): Use it.  Accept an env-list as optional arg.
20573         * terminal.c (get_terminal): Don't accept ints to represent terminals.
20574         (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20575         (Fset_terminal_parameter): Work with dead terminals as well.
20576         (Fmodify_terminal_parameters): Remove.
20578         * terminal.c (get_terminal): Handle terminals.
20579         Make sure the terminal returned is live.
20580         (create_terminal): Use allocate_terminal.
20581         (mark_terminals): Move to alloc.c.
20582         (delete_terminal): Use terminal->name as liveness status.
20583         NULL out fields after freeing their contents.
20584         Don't deallocate the object.
20585         (Fframe_terminal): Use FRAME_TERMINAL.  Return the terminal object
20586         rather than an int.
20587         (Fterminal_live_p): Accept non-integer arguments.
20588         (Fterminal_list): Return terminal objects rather than an ints.
20590         * alloc.c (enum mem_type): New member for `terminal' objects.
20591         (allocate_terminal): New function.
20592         (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20593         Handle terminals.
20594         (mark_terminal): New fun.
20595         (mark_terminals): Move from terminal.c.
20597         * term.c (get_tty_terminal): Don't treat output_initial specially.
20598         (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20599         (delete_tty): Use terminal->name as liveness status.
20601         * termhooks.h (struct terminal): Make it into a pseudovector.
20602         Remove `deleted' replaced by checking `name's nullness.
20604         * print.c (print_object): Handle terminals.
20606         * lisp.h (enum pvec_type): New `terminal' pseudovector.
20607         (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20609         * frame.c (make_terminal_frame):
20610         * keyboard.c (tty_read_avail_input):
20611         * w32term.c (x_delete_terminal):
20612         * xfns.c (Fx_create_frame, x_create_tip_frame):
20613         * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20615 2007-09-20  Glenn Morris  <rgm@gnu.org>
20617         * process.c (Fmake_network_process): Doc fix.
20619 2007-09-19  Jason Rumney  <jasonr@gnu.org>
20621         * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20623 2007-09-19  Michaël Cadilhac  <michael@cadilhac.name>
20625         * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20626         Fix a C warning regarding variable constness.
20628         * xterm.c (handle_one_xevent): Fix a C warning.
20630 2007-09-18  Jason Rumney  <jasonr@gnu.org>
20632         * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20634 2007-09-17  Jan Djärv  <jan.h.d@swipnet.se>
20636         * gtkutil.c (gdpy_def): New variable.
20637         (xg_initialize): Initialize gdpy_def.
20638         (xg_display_close): If no other display exists, set gdpy_def to a
20639         new connection.
20641 2007-09-16  Jan Djärv  <jan.h.d@swipnet.se>
20643         * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20644         when we have no file name for the icon.
20645         (xg_tool_bar_expose_callback): Remove.
20646         (xg_create_tool_bar): Don't connect expose signal to
20647         xg_tool_bar_expose_callback.
20648         (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20650 2007-09-16  Andreas Schwab  <schwab@suse.de>
20652         * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20653         values instead of zapping them.
20655 2007-09-14  Glenn Morris  <rgm@gnu.org>
20657         * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20658         * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20659         * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20660         scope and rename to omfib_buffer for clarity.
20661         (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20663 2007-09-14  Kenichi Handa  <handa@m17n.org>
20665         * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20667 2007-09-13  Jason Rumney  <jasonr@gnu.org>
20669         * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20671         * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20673         * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20674         (mac_term_init): Call here instead, passing rif.
20676 2007-09-13  Glenn Morris  <rgm@gnu.org>
20678         * s/hpux.h: No longer define `static' as nothing.
20680 2007-09-13  Johan Bockgård  <bojohan@gnu.org>
20682         * callint.c (Fcall_interactively): Remove unused var `fun'.
20684 2007-09-12  Romain Francoise  <romain@orebokech.com>
20686         * window.c (prefer_window_split_horizontally, display_buffer):
20687         Revert 2007-09-08 change.
20689 2007-09-12  Glenn Morris  <rgm@gnu.org>
20691         * alloca.c: Remove file.
20692         * Makefile.in (alloca): Do not undef.
20693         (allocaobj, alloca.o): Remove.
20694         (otherobj): Remove allocaobj.
20695         * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20696         * regex.c (C_ALLOCA): Remove all references and code that was only
20697         used when this was defined.
20698         * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20699         * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20700         * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20702         * Makefile.in (SOURCES, unlock, relock): Delete.
20704         * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20705         (menu_grab_callback): All uses changed.
20707         * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20708         (x_reply_selection_request): All uses changed.
20710 2007-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
20712         * lread.c (load_warn_old_style_backquotes): Change message to look
20713         better when it appears in the middle of byte-compiler messages.
20715 2007-09-10  Dan Nicolaescu  <dann@ics.uci.edu>
20717         * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20719         * xterm.c (x_create_terminal): Add comment.
20721         * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20723 2007-09-10  Richard Stallman  <rms@gnu.org>
20725         * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20727 2007-09-10  Michaël Cadilhac  <michael@cadilhac.name>
20729         * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20730         (DEFUN): Document `intspec', use it instead of `prompt'.
20732         * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20734         * data.c (Finteractive_form): If the interactive specification starts
20735         with a `(', use it as a Lisp form.
20737         * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20738         name and file modes.
20740         * callint.c (Fcall_interactively): Comment fixes.
20742 2007-09-10  Stefan Monnier  <monnier@iro.umontreal.ca>
20744         * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20745         and compiled functions.
20747 2007-09-08  Fredrik Axelsson  <f.axelsson@gmail.com>
20749         * window.c (prefer_window_split_horizontally): New variable.
20750         (display_buffer): Consider splitting window horizontally depending
20751         on prefer_window_split_horizontally.
20753 2007-09-08  Eli Zaretskii  <eliz@gnu.org>
20755         * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20757 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
20759         * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20761         * frame.c (x_set_frame_parameters): Check number is positive before
20762         using XFASTINT.
20764         * window.c (freeze_window_start): Don't presume selected_window holds
20765         a window object.
20766         (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20768 2007-09-07  Angelo Graziosi  <Angelo.Graziosi@roma1.infn.it>  (tiny change)
20770         * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20772 2007-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
20774         * window.c (Vsplit_window_preferred_function): New var.
20775         (Fdisplay_buffer): Use it.
20776         (syms_of_window): Export, and initialize it.
20778 2007-09-06  Pixel  <pixel@mandriva.com>  (tiny change)
20780         * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20782 2007-09-06  Glenn Morris  <rgm@gnu.org>
20784         * gtkutil.c (menu_grab_callback) <cnt>:
20785         * xselect.c (x_reply_selection_request) <cnt>: Move static
20786         variable to file scope.
20788 2007-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
20790         * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20791         consistent values of selected_frame and selected_window.
20793 2007-09-04  Jason Rumney  <jasonr@gnu.org>
20795         * w32console.c (initialize_w32_display): Zero unused hooks.
20797 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
20799         * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20800         (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20802 2007-09-04  Jason Rumney  <jasonr@gnu.org>
20804         * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20805         in w32console.c.  Set up input.  Remove XXX comments that have been
20806         confirmed as correct.
20808         * s/ms-w32.h (MULTI_KBOARD): Define.
20810         * w32console.c (one_and_only_w32cons): Remove.
20811         (initialize_w32_display): Take terminal argument.
20813         * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20814         initialize_w32_display.
20815         (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20817         * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20819         * keyboard.c (discard_mouse_events): Discard it.
20820         (make_lispy_event): Translate it to a lisp event.
20821         (lispy_wheel_names): Add wheel-left and right events.
20822         (syms_of_keyboard): Enlarge wheel_syms.
20824         * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20825         <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20827         * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20829         * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20830         from WM_MOUSEHWHEEL.
20831         (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20833         * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20834         terminal.
20836         * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20837         keyboard for the terminal.
20839 2007-09-04  Dan Nicolaescu  <dann@ics.uci.edu>
20841         * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20842         (Vresume_tty_hook): Rename from Vresume_tty_functions.
20843         (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20844         and resume-tty-function to resume-tty-hook.
20845         (Fsuspend_tty, Fresume_tty): Use new names.
20847 2007-09-02  Jan Djärv  <jan.h.d@swipnet.se>
20849         * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20850         if it starts with "n:".
20852 2007-08-31  Jan Djärv  <jan.h.d@swipnet.se>
20854         * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20856 2007-08-31  Stefan Monnier  <monnier@iro.umontreal.ca>
20858         * frame.h:
20859         * frame.c (Qterm_environment_variable): Remove.
20860         (syms_of_frame): Don't init and staticpro it.
20862         * callproc.c (getenv_internal): Remove special case for $TERM.
20864         * callproc.c (Vinitial_environment): New variable.
20865         (set_initial_environment): Initialize it.
20866         (syms_of_callproc): Declare it.
20867         (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20868         TERM under which a process runs is never related to the TERM in which
20869         Emacs is running.
20871 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
20873         * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20874         * s/darwin.h: ... do it here.
20876 2007-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
20878         * lisp.h (set_initial_environment): Rename from set_global_environment.
20880         * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20881         removed by mistake on the multi-tty branch.
20883         * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20884         (Fmodify_frame_parameters): Return a value.
20886         * image.c (png_load): Comment-out var only used in commented-out code.
20888         * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20889         before passing it to mark_object.
20891         * xfaces.c (internal_resolve_face_name): Return a value.
20892         (internal_resolve_face_name, resolve_face_name_error): Comment out.
20894         * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20895         (x_icon): Comment-out var only used in commented-out code.
20897 2007-08-29  Romain Francoise  <romain@orebokech.com>
20899         * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20900         QUIT hasn't been provided.
20902 2007-08-29  Dan Nicolaescu  <dann@ics.uci.edu>
20904         * callproc.c (child_setup, getenv_internal): Use the
20905         display-environment-variable and term-environment-variable frame params.
20906         (set_initial_environment): Initialise Vprocess_environment.
20908         * config.in: Disable multi-keyboard support on a mac.
20910         * frame.c (Qterm_environment_variable)
20911         (Qdisplay_environment_variable): New variables.
20912         (syms_of_frame): Intern and staticpro them.
20913         (Fmake_terminal_frame): Disable output method test.
20915         * frame.h: Declare them here.
20917         * macfns.c (x_set_mouse_color): Get rif from the frame.
20918         (x_set_tool_bar_lines): Don't use updating_frame.
20919         (mac_window): Add 2 new parameters for consistency with other systems.
20920         (Fx_create_frame): Fix doc string.  Rename the parameter.  Set the
20921         frame parameters following what is done in X11 and w32.  Don't use
20922         FRAME_MAC_DISPLAY_INFO.
20923         (Fx_open_connection, start_hourglass): Remove window-system check.
20924         (x_create_tip_frame): Get the keyboard from the terminal.
20926         * macmenu.c: Reorder includes.
20927         (Fx_popup_menu): Use terminal specific mouse_position_hook.
20929         * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20930         terminal parameter.
20931         (x_clear_frame): Add a frame parameter.
20932         (note_mouse_movement): Get rif from the frame.
20933         (mac_term_init): Initialize the terminal.
20934         (mac_initialize): Make static and move terminal initialization ...
20935         (mac_create_terminal): ... to this new function.
20937         * macterm.h (struct mac_display_info): Add terminal.
20938         (mac_initialize): Delete declaration.
20940         * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20942         * sysdep.c: Comment out text after #endif.
20944         * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20945         is defined.  Better initialize ttys in windows.  Use terminal
20946         specific mouse_position_hook.
20948         * termhooks.h (union display_info): Add mac_display_info.
20950         * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20951         Set the default minibuffer frame, window_system and the rest of the
20952         frame parameters following what is done in X11.
20954         * w32term.c (w32_initialize): Make static.
20956         * xselect.c (x_handle_selection_clear): Only access
20957         terminal->kboard when MULTI_KBOARD is defined.
20959         * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20960         (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20962 2007-08-29  Jason Rumney  <jasonr@gnu.org>
20964         * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20965         (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20967         * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20968         (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20970         * keyboard.c (restore_kboard_configuration): Only define when
20971         MULTI_KBOARD defined.
20973         * makefile.w32-in: Update dependancies from Makefile.in.
20974         (OBJ1): Add terminal.$(O)
20976         * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20977         Don't define function body.
20978         (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20980         * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20982         * w32.c (request_sigio, unrequest_sigio): Remove.
20984         * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20985         (w32con_clear_frame, w32con_clear_end_of_line)
20986         (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20987         (w32con_delete_glyphs, w32con_set_terminal_window)
20988         (scroll_line, w32_sys_ring_bell): Add frame arg.
20989         (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20990         Add terminal arg.
20991         (PICK_FRAME): Remove.
20992         (w32con_write_glyphs): Use frame specific terminal coding.
20993         (one_and_only_w32cons): New global variable.
20994         (initialize_w32_display): Use it for storing hooks.
20995         (create_w32cons_output): New function.
20997         * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20998         arg a frame.
21000         * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21001         Set window_system.
21002         (x_set_tool_bar_lines): Don't use updating_frame.
21003         (Fx_create_frame): Set terminal and ref count.
21004         (Fx_open_connection): Remove window-system check.
21006         * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21008         * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21009         (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21010         (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21011         Add frame arg.
21012         (x_delete_terminal, w32_create_terminal): New functions.
21013         (w32_term_init): Create a terminal.
21014         (w32_initialize): Move terminal specific initialization to
21015         w32_create_terminal.
21017         * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21018         (w32_clear_rect, w32_clear_area): Use background from frame.
21019         (w32_display_info): Add terminal.
21020         (w32_sys_ring_bell, x_delete_display): Declare here.
21022         * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21024         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21026 2007-08-29  Kalle Olavi Niemitalo  <kon@iki.fi>  (tiny change)
21028         * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21029         Fix get_named_tty calls for the controlling tty.
21031 2007-08-29  ARISAWA Akihiro  <ari@mbf.ocn.ne.jp>  (tiny change)
21033         * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
21035 2007-08-29  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>  (tiny change)
21037         * term.c (tty_insert_glyphs): Add missing first parameter.
21039 2007-08-29  Károly Lőrentey  <karoly@lorentey.hu>
21041         * buffer.c (Fbuffer_list, Fbury_buffer):
21042         Take frame->buried_buffer_list into account.
21044         * cm.c (current_tty): New variable, for cmputc().
21045         (cmputc): Use it.
21046         (cmcheckmagic): Add tty parameter, look up terminal streams there.
21047         (calccost): Add tty parameter.  Use emacs_tputs() instead of tputs().
21048         (cmgoto): Add tty parameter.  Pass it on to calccost().
21049         Use emacs_tputs() instead of tputs().
21051         * cm.h (emacs_tputs): New macro to set current_tty, and then call
21052         tputs().
21053         (current_tty): New variable, for cmputc().
21054         (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21056         * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21057         (internal_condition_case, internal_condition_case_1)
21058         (internal_condition_case_2): Don't abort when x_catching_errors.
21060         * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21061         (Fy_or_n_p): Likewise.  Use temporarily_switch_to_single_kboard to
21062         prevent crashes caused by bogus longjmps in read_char.
21064         * keymap.h (Fset_keymap_parent): Add EXFUN.
21066         * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21067         * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21068         Remove redundant definition.
21070         * macfns.c (x_set_mouse_color, x_make_gc):
21071         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21073         * w32term.c (x_free_frame_resources):
21074         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21075         (w32_initialize): Use the accessor macros for terminal characteristics.
21077         * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21078         Use the accessor macros for terminal characteristics.
21079         * msdos.c (internal_terminal_init): Use the accessor macros for
21080         terminal characteristics.
21081         (ScreenVisualBell, internal_terminal_init):
21082         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21084         * termopts.h (no_redraw_on_reenter): Declare.
21086         * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21087         (mark_terminals, mark_ttys): Declare.
21088         (Fgarbage_collect): Call them.
21089         (mark_object): Mark buried_buffer_list.
21091         * prefix-args.c: Include stdlib.h for exit.
21093         * syssignal.h: Add comment.
21095         * indent.c: Include stdio.h.
21097         * window.h (Vinitial_window_system): Declare.
21098         (Vwindow_system): Delete declaration.
21100         * fontset.c (Finternal_char_font): Use FRAME_RIF.
21102         * image.c (lookup_image): Don't initialize `c' until the xasserts
21103         have been run.
21105         * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21106         FRAME_FOREGROUND_PIXEL.
21108         * print.c (print_preprocess): Don't lose print_depth levels while
21109         iterating.
21111         * widget.c (update_from_various_frame_slots):
21112         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21114         * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21115         frames.
21116         (window_internal_height): Remove bogus make_number call.
21117         (init_window_once): Call make_terminal_frame with two zero parameters.
21119         * fileio.c (Fread_file_name): Update comment.
21121         * callint.c (Fcall_interactively):
21122         Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21123         Make sure it is correctly unwound.
21125         * xsmfns.c (x_session_close): New function.
21127         * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21128         Delete declarations.
21130         * xterm.h: Remove declaration for x_fully_uncatch_errors.
21131         (x_output): Remove background_pixel and foreground_pixel fields.
21132         (x_display_info): Add new field TERMINAL.  Remove KBOARD field.
21133         (x_delete_device, x_session_close): Declare.
21135         * lread.c: Include setjmp.h.  Update declaration of `read_char'.
21136         (read_filtered_event): Call `read_char' with a local
21137         `wrong_kboard_jmpbuf'.
21139         * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21140         Don't call single_kboard_state.  Use FRAME_RIF.
21142         * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21143         systems.
21145         * lisp.h (set_process_environment): Rename to `set_global_environment'.
21146         (Fframe_with_environment, Fset_input_meta_mode)
21147         (Fset_quit_char): EXFUN.
21148         (x_create_device, tty_output, terminal, tty_display_info): Declare.
21149         (init_sys_modes, reset_sys_modes): Update prototypes.
21150         (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21152         * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21153         Vlocal_key_translation_map, and Vkeyboard_translate_table.
21154         (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21155         Delete declarations.
21156         (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21157         (temporarily_switch_to_single_kboard, tty_read_avail_input):
21158         New declarations.
21160         * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21161         already does that during init_display().  Call syms_of_keymap
21162         before syms_of_keyboard.  Call `syms_of_terminal'.
21163         Call set_initial_environment, not set_process_environment.
21164         (shut_down_emacs): Call reset_all_sys_modes() instead of
21165         reset_sys_modes().
21167         * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21168         (internal_resolve_face_name, resolve_face_name_error): New functions.
21169         (resolve_face_name): Protect against loops and errors thrown by Fget.
21170         (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21171         (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21173         * scroll.c: Replace CURTTY() with local variables throughout the
21174         file (where applicable).
21175         (calculate_scrolling, calculate_direct_scrolling)
21176         (scrolling_1, scroll_cost): Use the accessor macros for terminal
21177         characteristics.
21179         * keymap.c (Vfunction_key_map): Remove.
21180         (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21181         (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21182         (Vkey_translation_map): Remove.
21183         (syms_of_keymap): Remove DEFVAR for key-translation-map.
21184         (Fdescribe_buffer_bindings)
21185         (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21186         Update for terminal-local key-translation-map.
21188         * Makefile.in (callproc.o): Update dependencies.
21189         (lisp, shortlisp): Add termdev.elc.
21190         (obj): Add terminal.o.
21191         (terminal.o): Add dependencies.
21192         [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21193         (data.o, fns.o): Add termhooks.h dependency.
21194         (SOME_MACHINE_LISP): Add dnd.elc.
21195         (minibuf.o): Fix typo.
21196         Update dependencies.
21198         * data.c (do_symval_forwarding, store_symval_forwarding)
21199         (find_symbol_value): Use the selected frame's keyboard, not
21200         current_kboard.
21202         * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21203         Vwindow_system.
21205         * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21206         Fmenu_bar_open.
21207         (syms_of_xmenu): Update defsubr.
21208         (mouse_position_for_popup, Fx_popup_menu)
21209         (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21210         (set_frame_menubar, free_frame_menubar)
21211         (create_and_show_popup_menu, xmenu_show)
21212         (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21213         an X frame.
21215         * xselect.c (x_own_selection): Abort if not an X frame.
21216         (some_frame_on_display): Check if it is an X frame.
21217         (x_handle_selection_clear): Deal with MULTI_KBOARD.
21219         * coding.c: Include frame.h and termhooks.h.
21220         (terminal_coding, keyboard_coding): Delete.
21221         (Fset_terminal_coding_system_internal)
21222         (Fset_keyboard_coding_system_internal)
21223         (Fkeyboard_coding_system)
21224         (Fterminal_coding_system): Add a terminal parameter.
21225         Get terminal_coding from the terminal.
21226         (init_coding_once): Don't call setup_coding_system here.
21228         * dispextern.h (set_scroll_region, turn_off_insert)
21229         (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21230         (tty_clear_end_of_line, tty_setup_colors)
21231         (delete_tty, updating_frame)
21232         (produce_special_glyphs, produce_glyphs, write_glyphs)
21233         (insert_glyphs): Remove.
21234         (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21235         (tty_turn_off_highlight, get_tty_size): Add declaration.
21236         (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21238         * frame.h (enum output_method): Add output_initial.
21239         (struct x_output): Delete.
21240         (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21241         Access foreground_pixel and background_pixel directly from the frame.
21242         (tty_display): Delete.
21243         (struct frame): Add buried_buffer_list, foreground_pixel,
21244         background_pixel and terminal.  Delete kboard.
21245         (union output_data): Add tty.
21246         (FRAME_KBOARD): Get the kboard from the terminal.
21247         (FRAME_INITIAL_P): New macro.
21248         (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21249         (Qterm_environment_variable, Qdisplay_environment_variable)
21250         (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21251         New declarations.
21253         * termchar.h (tty_output, tty_display_info): New structures.
21254         (tty_list): Declare.
21255         (FRAME_TTY, CURTTY): New macros.
21256         (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21257         (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21258         (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21259         (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21261         * callproc.c: Include frame.h and termhooks.h, for terminal
21262         parameters.
21263         (add_env): New function.
21264         (child_setup): Use it.
21265         (child_setup, getenv_internal): Handle the new Vprocess_environment.
21266         (getenv_internal): Fix get_terminal_param call.
21267         (Fgetenv_internal, egetenv): Update doc.
21268         (syms_of_callproc): Initialize Vprocess_environment to nil.
21269         Register and initialize them.  Remove obsolete defvars.  Update doc
21270         strings.
21271         (child_setup): Handle Vlocal_environment_variables.
21272         (getenv_internal): Add terminal parameter.
21273         Handle Vlocal_environment_variables.
21274         (Fgetenv_internal): Add terminal parameter.
21275         (child_setup, getenv_internal, Fgetenv_internal): Store the local
21276         environment in a frame (not terminal) parameter.  Update doc strings.
21277         (set_initial_environment): Rename from set_global_environment.
21278         Store Emacs environment in initial frame parameter.
21280         * xdisp.c (redisplay_internal): Update references to
21281         `previous_terminal_frame'.
21282         (display_mode_line, Fformat_mode_line): Replace calls to
21283         `push_frame_kboard' with `push_kboard'.
21284         (get_glyph_string_clip_rects): Add extra parentheses and
21285         braces to prevent compiler warnings.
21286         (calc_pixel_width_or_height): Add xassert to check that the
21287         frame is alive.  Don't call `lookup_image' on a termcap frame.
21288         (message2_nolog, message3_nolog, redisplay_internal)
21289         (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21290         (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21291         (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21292         (Fx_display_pixel_width, Fx_display_pixel_height)
21293         (Fx_display_planes, Fx_display_color_cells)
21294         (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21295         (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21296         (Fx_display_backing_store, Fx_display_visual_class)
21297         (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21298         Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21300         * xfns.c (x_set_foreground_color x_set_background_color)
21301         (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21302         Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21303         (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21304         (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21305         terminal that is being deleted.
21306         (Fx_create_frame): Use `store_frame_param' to set `window-system'
21307         frame parameter, and make sure it overrides any user-supplied setting.
21308         (Fx_close_connection, Fx_synchronize): Unify argument names with
21309         the rest of the DEFUNs.
21311         * dispnew.c (Fsend_string_to_terminal): Update call to
21312         `get_tty_terminal'.
21313         (Fredraw_frame, Fsend_string_to_terminal)
21314         (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21315         FRAME_TERMCAP_P and FRAME_TTY.
21316         (window_change_signal): Don't believe width/height values that are
21317         impossibly small.
21318         (Vinitial_window_system): Rename from Vwindow_system.
21319         (termscript, Wcm, rif): Delete.
21321         * termhooks.h (struct terminal): New struct containing the
21322         previously global text display hooks and new members NAME,
21323         DELETED and PARAM_ALIST.
21324         (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21325         (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21326         (FRAME_RIF): New macros.
21327         (get_terminal_param, get_device): New declarations.
21328         (termscript): Delete declaration.
21330         * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21331         (XTflash, x_free_frame_resources, x_scroll_bar_create)
21332         (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21333         FRAME_FOREGROUND_PIXEL.
21334         (x_fully_uncatch_errors): Disable definition.
21335         (x_scroll_bar_expose): Fix reference to foreground pixel.
21336         (XTread_socket): Disable loop on all X displays.
21337         (x_delete_terminal): Don't set terminal->deleted and let
21338         delete_terminal delete the frames on the terminal.
21339         (x_delete_display): Doc update to reflect changes in
21340         delete_terminal.
21341         (x_display_info) <terminal>: Move member earlier in the struct.
21342         (deleting_tty): Remove old variable.
21343         (Fsuspend_tty): Call clear_tty_hooks.
21344         (Fresume_tty, init_tty): Call set_tty_hooks.
21345         (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21346         errors on X frames.
21347         (x_catch_errors_unwind): Abort if x_error_message is NULL.
21348         (handle_one_xevent): Initialize `f' to NULL.
21349         (x_delete_terminal, x_create_terminal): New functions.
21350         (XTset_terminal_modes, XTreset_terminal_modes)
21351         (XTread_socket, x_connection_closed, x_term_init)
21352         (x_term_init, x_delete_display): Add terminal parameter.
21353         (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21354         X connections.
21356         * frame.c: Include termchar.h.
21357         (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21358         (Qwindow_system, Qenvironment, Qterm_environment_variable)
21359         (Qdisplay_environment_variable): New vars.
21360         (Fframep): Deal with output_initial.
21361         (Fframe-live-p): Doc fix.
21362         (Fwindow-system): New function.
21363         (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21364         (make_terminal_frame): Don't create frames on a terminal that is
21365         being deleted.  Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21366         (store_frame_param): Check for found_for_frame before calling XFRAME.
21367         (Fmake_terminal_frame): Handle NULL tty names correctly.
21368         (syms_of_frame): Enhance doc string of `default-frame-alist'.
21369         (Fdelete_frame): Remove unused variable `count'.  Don't allow other
21370         frames to refer to a deleted frame in their 'environment parameter.
21371         (Fframe_with_environment): New function.
21372         (syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.
21373         (get_future_frame_param): New function.
21374         (Fmake_terminal_frame): Use it.
21375         (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21377         * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21378         * sysdep.c (reset_sys_modes): Update for renames.
21380         * keyboard.c (tty_read_avail_input): New function.
21381         (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21382         (syms_of_keyboard): Defsubr them.
21383         (Fset_input_meta_mode, Fset_quit_char): New functions.
21384         (Fset_input_mode): Split to above functions.
21385         (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21386         parameter.  Use it in call to `read_char'.
21387         (read_char): Declare.  Update call to `read_char_minibuf_menu_prompt'.
21388         Set wrong_kboard_jmpbuf correctly in recursive calls.
21389         Use current_kboard to access Vkeyboard_translate_table.
21390         Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21391         Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21392         Update longjmp invocations.  Remember the original current_kboard,
21393         and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21394         changes it.  Comment out unnecessary calls to
21395         `record_single_kboard_state' and `any_kboard_state'.
21396         Update recursive calls.
21397         (wrong_kboard_jmpbuf): Remove global variable.
21398         (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21399         Handle deleted interrupted_kboards correctly; that is a legal
21400         case.  Add `wrong_kboard_jmpbuf' local variable.  Update setjmp
21401         and read_char calls.  Abort if interrupted_kboard died in read_char.
21402         (any_kboard_state, single_kboard_state)
21403         (push_frame_kboard): Remove function.
21404         (pop_kboard): Switch out of single_kboard mode if the kboard has
21405         been deleted.  Remove unused variable.  Help debugging by not
21406         changing current_kboard unnecessarily.  Set current_kboard to the
21407         kboard of the selected frame when the stored kboard object has
21408         been deleted before pop_kboard.
21409         (temporarily_switch_to_single_kboard): Change first parameter to a
21410         frame pointer.  Throw an error when caller wants to change kboards
21411         while in single_kboard mode.  Don't push_kboard if we weren't in
21412         single kboard state.  Don't pop_kboard if we popped into any
21413         kboard state.
21414         (restore_kboard_configuration): Abort if pop_kboard changed the
21415         kboard in single_kboard mode.  Call pop_kboard only after setting
21416         up single_kboard mode.
21417         (Frecursive_edit): Switch to single_kboard mode only in nested
21418         command loops.
21419         (cmd_error, command_loop, command_loop_1, timer_check):
21420         Comment out unnecessary call to `any_kboard_state' and
21421         `record_single_kboard_state'.
21422         (delete_kboard): Exit single_kboard mode if we have just deleted
21423         that kboard.  Use FRAME_KBOARD.
21424         (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21425         `fatal_error_signal'.
21426         (record_single_kboard_state): Don't push_kboard if we weren't in
21427         single kboard state.  Don't pop_kboard if we popped into any
21428         kboard state.
21429         (push_frame_kboard): Rename to push_kboard.
21430         (kbd_buffer_get_event): Use FRAME_TERMINAL.
21431         (read_avail_input): Read input from all terminals.
21432         (mark_kboards): Also mark Vkeyboard_translate_table.
21433         (kbd_buffer_store_event_hold): Simplify condition.
21434         (read_key_sequence): Reinitialize fkey and keytran at each replay.
21435         (Vkeyboard_translate_table): Move to struct kboard.
21436         (init_kboard): Initialize Vkeyboard_translate_table.
21437         (syms_of_keyboard): Use DEFVAR_KBOARD to define
21438         Vkeyboard_translate_table.  Update doc strings.  Update docs of
21439         local-function-key-map and function-key-map.
21441         * terminal.c: New file.
21443         * term.c: Include errno.h.
21444         (Vring_bell_function, device_list, initial_device)
21445         (next_device_id, ring_bell, update_begin, update_end)
21446         (set_terminal_window, cursor_to, raw_cursor_to)
21447         (clear_to_end, clear_frame, clear_end_of_line)
21448         (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21449         (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21450         (syms_of_term): Move their initialization to terminal.c.
21451         (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21452         (Ftty_display_color_cells)
21453         (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21454         (clear_tty_hooks, set_tty_hooks)
21455         (init_tty, maybe_fatal): New functions.
21456         (Ftty_type): Return nil if terminal is not on a tty instead of
21457         throwing an error.  Doc update.
21458         (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21459         Doc update.  Initialize new subrs and variables.
21460         (delete_tty): Use terminal->deleted.
21461         (tty_set_terminal_modes): Rename from set_terminal_modes.
21462         (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21463         (set_scroll_region): Rename to `tty_set_scroll_region'.
21464         (turn_on_insert): Rename to `tty_turn_on_insert'.
21465         (turn_off_insert): Rename to `tty_turn_off_insert'.
21466         (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21467         (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21468         (toggle_highligh): Rename to `tty_toggle_highlight'.
21469         (background_highlight): Rename to `tty_background_highlight'.
21470         (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21471         (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21472         (tty_set_scroll_region, tty_background_highlight)
21473         (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21474         (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21475         (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21476         (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21477         Add static modifier.
21478         (tty_reset_terminal_modes, tty_set_terminal_window)
21479         (tty_set_scroll_region, tty_background_highlight)
21480         (tty_highlight_if_desired, tty_cursor_to)
21481         (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21482         (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21483         (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21484         renames.
21486 2007-08-28  Jan Djärv  <jan.h.d@swipnet.se>
21488         * keyboard.c: Qrtl is new.
21489         (parse_tool_bar_item): Handle :rtl keyword.
21490         (syms_of_keyboard): Intern :rtl keyword.
21492         * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21494         * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21495         so no Lisp code is executed.
21496         (file_for_image, find_rtl_image): New functions.
21497         (xg_get_image_for_pixmap): Use file_for_image.
21498         (update_frame_tool_bar): If direction is RTL, use RTL image if
21499         defined.  Use Gtk stock images if defined.
21501 2007-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21503         * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21504         for nonexistent or zero-width glyph in composition glyph.
21506 2007-08-25  Stefan Monnier  <monnier@iro.umontreal.ca>
21508         * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21510         * xdisp.c (Finvisible_p): New function.
21511         (syms_of_xdisp): defsubr it.
21513 2007-08-24  Juanma Barranquero  <lekktu@gmail.com>
21515         * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21516         Doc fixes.
21518 2007-08-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21520         * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21522 2007-08-24  Martin Rudalics  <rudalics@gmx.at>
21524         * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21525         whether decoding has modified buffer contents.
21527 2007-08-24  Jason Rumney  <jasonr@gnu.org>
21529         * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21530         (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21531         (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21532         (init_svg_functions) [HAVE_NTGUI]: New function.
21533         (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21534         (svg_load_image): Use them.
21535         (svg_load_image) [HAVE_NTGUI]: Implement background.
21537 2007-08-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21539         * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21540         (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21541         (LIBX): Remove @RSVG_LIBS@.
21542         (LIBES): Add $(RSVG_LIBS).
21544         * image.c (svg_load_image): Blend with specified background if exists.
21545         Use IMAGE_BACKGROUND.  Add Mac OS Support.
21547         * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21548         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21549         Remove macros.
21550         [MAC_OSX] (socket_callback): Do nothing.
21551         [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21552         ReceiveNextEvent.
21553         [MAC_OSX] (sys_select): Likewise.  Don't set context as argument to
21554         socket_callback.
21555         (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21557 2007-08-22  Glenn Morris  <rgm@gnu.org>
21559         * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21561 2007-08-22  Paul Pogonyshev  <pogonyshev@gmx.net>
21563         * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21565         * image.c: Add support for SVG images.  Some additional comments
21566         by Joakim Verona <joakim@verona.se>.  When HAVE_RSVG is defined:
21567         (svg_image_p): New function to test for SVG image.
21568         (svg_load): New function to load SVG image.
21569         (svg_load_image): New function, helper for svg_load.
21570         (Qsvg): New Lisp_object.
21571         (svg_keyword_index): New enum.
21572         (svg_format): New static `image_keyword' struct.
21573         (svg_type): New static `image_type' struct.
21574         (librsvg/rsvg.h): Include it.
21576 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
21578         * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21580 2007-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
21582         * lread.c (Qold_style_backquotes): New var.
21583         (syms_of_lread): Init and staticpro it.
21584         (load_warn_old_style_backquotes): New fun.
21585         (Fload): Use them to warn about old style backquotes.
21586         (end_of_file_error, Fload): Remove unused vars.
21588         * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21590         * lread.c (Vold_style_backquotes): New var.
21591         (syms_of_lread): Init and export it to Elisp.
21592         (read1): Set it when we find an old-style (back)quote.
21594 2007-08-22  Jason Rumney  <jasonr@gnu.org>
21596         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21598 2007-08-22  Katsumi Yamaoka  <yamaoka@jpl.org>
21600         * puresize.h (BASE_PURESIZE): Increase to 1140000.
21602 2007-08-19  Richard Stallman  <rms@gnu.org>
21604         * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21606 2007-08-19  Andreas Schwab  <schwab@suse.de>
21608         * alloc.c (pure): Round PURESIZE up.
21610 2007-08-17  Jan Djärv  <jan.h.d@swipnet.se>
21612         * xterm.c (handle_one_xevent): Remove check that mouse click is in
21613         active frame.
21615 2007-08-16  Richard Stallman  <rms@gnu.org>
21617         * eval.c (Fcommandp): Add parens to clarify.
21619         * minibuf.c (Fall_completions): Use enum for type of table.
21621         * emacs.c (USAGE2): Improve text.
21623 2007-08-15  Philippe Waroquiers  <philippe.waroquiers@eurocontrol.int>
21625         * term.c (tty_default_color_capabilities): Declare static
21626         variables in file scope, to avoid HPUX compiler problem.
21628 2007-08-13  Jan Djärv  <jan.h.d@swipnet.se>
21630         * gtkutil.c (update_frame_tool_bar): Use -1 as index
21631         to gtk_toolbar_insert.
21633 2007-08-13  Stefan Monnier  <monnier@iro.umontreal.ca>
21635         * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21637         * insdel.c (reset_var_on_error): New fun.
21638         (signal_before_change, signal_after_change):
21639         Use it to reset (after|before)-change-functions to nil in case of error.
21640         Bind inhibit-modification-hooks to t.
21641         Don't bind (after|before)-change-functions to nil while they run.
21643 2007-08-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21645         * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21646         filling pixmap with stippled background.
21648 2007-08-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21650         * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21651         Don't use invisible frame as parent window for repositioning.
21653 2007-08-10  Stefan Monnier  <monnier@iro.umontreal.ca>
21655         * print.c (new_backquote_output): Rename from old_backquote_output.
21656         (print): Inverse its logic (according to its name) so as to match the
21657         behavior of new_backquote_flag in lread.c.
21659 2007-08-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21661         * gmalloc.c (posix_memalign): New function.
21663         * macterm.c (frame_highlight, frame_unhighlight): Don't call
21664         ActivateControl/DeactivateControl here.
21665         [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21666         frame-notice-user-settings is non-nil.
21667         [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21668         for kEventParamFMFontStyle.
21669         [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21670         mac_pass_command_to_system and mac_pass_control_to_system here.
21671         (XTread_socket): Call ActivateControl/DeactivateControl here.
21672         (XTread_socket) [TARGET_API_MAC_CARBON]:
21673         Check mac_pass_command_to_system and mac_pass_control_to_system here.
21674         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21675         for window repositioning.
21677 2007-08-08  Glenn Morris  <rgm@gnu.org>
21679         * Replace `iff' in doc-strings and comments.
21681 2007-08-07  Chong Yidong  <cyd@stupidchicken.com>
21683         * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21685 2007-08-07  Martin Rudalics  <rudalics@gmx.at>
21687         * fileio.c (Finsert_file_contents): Run format-decode and
21688         after_insert_file_functions on entire buffer when REPLACE is
21689         non-nil and inhibit modification_hooks and point_motion_hooks.
21690         For consistency, run after_insert_file_functions iff something
21691         got inserted.  Move signal_after_change and update_compositions
21692         after code running after_insert_file_functions.  Make sure that
21693         undo_list doesn't record intermediate steps of the decoding process.
21695 2007-08-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21697         * emacs.c (main)
21698         [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21699         Call malloc_enable_thread on interactive startup.
21701         * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21702         (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21703         [USE_PTHREAD]: Conditionalize with it.
21704         (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21705         (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21706         New functions.
21708 2007-08-06  Chong Yidong  <cyd@stupidchicken.com>
21710         * xdisp.c (redisplay_window): When restoring original buffer
21711         position, make sure it is still valid.
21713         * image.c (png_load): Ignore png-supplied background color.
21715 2007-08-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21717         * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21718         Use kCFAbsoluteTimeIntervalSince1970.
21720         * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21721         New variable.
21722         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21723         event loop should be quit.
21724         [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21725         Quit dialog event loop if quit_dialog_event_loop is set.
21727         * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21728         (Selection): New typedef.  Use instead of ScrapRef.
21729         (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21730         (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21731         (mac_clear_selection): Rename from clear_scrap.
21732         (get_flavor_type_from_symbol): New argument SEL and subsume function of
21733         scrap_has_target_type.  All uses changed.
21734         (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21735         (mac_selection_has_target_p): New functions.
21736         (mac_put_selection_value): Rename from put_scrap_string.
21737         (mac_get_selection_value): Rename from get_scrap_string.
21738         (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21739         (put_scrap_private_timestamp, scrap_has_target_type)
21740         (get_scrap_private_timestamp): Remove functions.
21741         (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21742         (x_own_selection, x_get_local_selection):
21743         Use mac_valid_selection_value_p.
21744         (x_own_selection): Don't use put_scrap_private_timestamp.
21745         Record OWNERSHIP-INFO into Vselection_alist instead.
21746         (x_get_local_selection): Don't check type if request is local.
21747         (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21748         Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21750 2007-08-04  Jan Djärv  <jan.h.d@swipnet.se>
21752         * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21753         add comment explaining why.
21755 2007-08-03  Richard Stallman  <rms@gnu.org>
21757         * fileio.c (Fvisited_file_modtime): Use make_time.
21759 2007-08-01  Ryo Yoshitake  <ryo@shiftmode.net>  (tiny change)
21761         * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21762         build.
21764 2007-07-31  Stefan Monnier  <monnier@iro.umontreal.ca>
21766         * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21768 2007-07-30  Katsumi Yamaoka  <yamaoka@jpl.org>
21770         * puresize.h (BASE_PURESIZE): Increase to 1130000.
21772 2007-07-30  Richard Stallman  <rms@gnu.org>
21774         * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21776 2007-07-29  Jan Djärv  <jan.h.d@swipnet.se>
21778         * gmalloc.c (__malloc_initialize): Remove pthread_once.  Not needed.
21780 2007-07-28  Nick Roberts  <nickrob@snap.net.nz>
21782         * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21783         remote default-directory.
21785         * buffer.c (mode-line-format): Update doc string.
21787 2007-07-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
21789         * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21790         scroll bar gap.
21791         (x_scroll_bar_create): Set bar->fringe_extended_p.
21792         (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21793         on frame edge.  Check fringe background extension.  Don't clear
21794         extended fringe background area.
21796         * w32term.h (struct scroll_bar): New member fringe_extended_p.
21797         (w32_fill_area): Enclose multiple statements with do ... while (0).
21799         * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21800         Extend fringe background to scroll bar gap.
21801         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21802         Set bar->fringe_extended_p.
21803         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21804         Put leftmost/rightmost scroll bars on frame edge.  Check fringe
21805         background extension.  Don't clear extended fringe background area.
21807         * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21808         New member fringe_extended_p.
21810 2007-07-25  Glenn Morris  <rgm@gnu.org>
21812         * Relicense all FSF files to GPLv3 or later.
21814         * COPYING: Switch to GPLv3.
21816 2007-07-25  Stefan Monnier  <monnier@iro.umontreal.ca>
21818         * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21820         * data.c (Finteractive_form): Check for the presence of an
21821         `interactive-form' symbol property more thoroughly.
21823         * data.c (Finteractive_form): Use an `interactive-form' property if
21824         present, analogous to the function-documentation property.
21826 2007-07-24  Jason Rumney  <jasonr@gnu.org>
21828         * w32fns.c (x_real_positions): Get real position from OS instead of
21829         calculating it.
21831 2007-07-23  Jason Rumney  <jasonr@gnu.org>
21833         * filelock.c (current_lock_owner): Allow for @ sign in username.
21835 2007-07-22  Nick Roberts  <nickrob@snap.net.nz>
21837         * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21838         remote default-directory.
21840         * buffer.c (mode-line-format): Describe above case in doc string.
21842 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
21844         * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21845         Define if not defined.
21847 2007-07-18  Jason Rumney  <jasonr@gnu.org>
21849         * w32proc.c (w32_executable_type): Handle 64 bit executables.
21851 2007-07-18  Richard Stallman  <rms@gnu.org>
21853         * data.c (Fsetq_default): Doc fix.
21855         * eval.c (Fsetq): Doc fix.
21857 2007-07-18  Juanma Barranquero  <lekktu@gmail.com>
21859         * coding.c (Ffind_operation_coding_system):
21860         * eval.c (For, Fand): Doc fixes.
21861         Reported by Johan Bockgård.
21863 2007-07-18  Jan Djärv  <jan.h.d@swipnet.se>
21865         * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21867         * xterm.h: Declare x_ewmh_activate_frame.
21869         * xterm.c (x_ewmh_activate_frame): New function.
21870         (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21872 2007-07-17  Martin Rudalics  <rudalics@gmx.at>
21874         * window.c (Fdisplay_buffer): If largest or LRU window is the
21875         only window, split it even if it is not eligible for splitting.
21876         This restores the original behavior broken by the 2007-07-15
21877         change.
21879 2007-07-17  Glenn Morris  <rgm@gnu.org>
21881         * abbrev.c (abbrev_check_chars): New function.
21882         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21883         Call abbrev_check_chars to check abbrev characters are word
21884         constituents.  Doc fix.
21886 2007-07-17  Stefan Monnier  <monnier@iro.umontreal.ca>
21888         * process.c (Fstart_process, Fmake_network_process)
21889         (read_process_output): Fix up last changes.
21891 2007-07-16  Eli Zaretskii  <eliz@gnu.org>
21893         * makefile.w32-in (clean): Don't delete *~.
21895 2007-07-16  Andreas Schwab  <schwab@suse.de>
21897         * window.c (Fdisplay_buffer): Use NILP.
21898         (Fset_window_scroll_bars): Likewise.
21900 2007-07-15  Martin Rudalics  <rudalics@gmx.at>
21902         * window.c (window_min_size_2): New function.
21903         (window_min_size_1, size_window, Fdisplay_buffer)
21904         (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21905         windows without mode- or header-lines when window-min-height is
21906         too small.
21907         (size_window): Reset nodelete_p after testing it, following an
21908         earlier note by Kim F. Storm.
21909         (display_buffer): Do not set split_height_threshold to twice the
21910         value of window_min_height to avoid changing the value of a
21911         customizable variable.  Rather explicitly check whether the
21912         height of the window that shall be splitted is at least as large
21913         as split_height_threshold.
21914         (Fwindow_full_width_p): New defun.
21915         (syms_of_window): Defsubr it.
21917         * window.h: Add EXFUN for Fwindow_full_width_p.
21919 2007-07-14  Jason Rumney  <jasonr@gnu.org>
21921         * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21923 2007-07-14  Richard Stallman  <rms@gnu.org>
21925         * eval.c (maybe_call_debugger): New function.
21926         (find_handler_clause): Use maybe_call_debugger.
21927         Call it when the handler says `debug'.
21928         Eliminate DEBUGGER_VALUE_PTR.
21929         (Fsignal): Eliminate debugger_value.
21930         (Qdebug): New variable.
21931         (syms_of_eval): Initialize it.
21933 2007-07-14  Juanma Barranquero  <lekktu@gmail.com>
21935         * eval.c (Fprogn):
21936         * keyboard.c (Ftrack_mouse):
21937         * print.c (Fwith_output_to_temp_buffer):
21938         * window.c (Fsave_window_excursion): Doc fix.
21940 2007-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
21942         * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21944 2007-07-12  Stefan Monnier  <monnier@iro.umontreal.ca>
21946         * process.h (struct Lisp_Process): Turn slots infd, outfd,
21947         kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21948         inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21949         read_output_delay, and read_output_skip from Lisp_Objects to ints.
21950         Remove unused encoding_carryover.
21951         * process.c: Adjust all functions accordingly.
21953 2007-07-12  Richard Stallman  <rms@gnu.org>
21955         * term.c: Include unistd.h only if HAVE_UNISTD_H.
21957 2007-07-11  Jason Rumney  <jasonr@gnu.org>
21959         * makefile.w32-in (LIBS): Include OLE32.
21961         * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21962         (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21964 2007-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
21966         * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21967         * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21968         from a Lisp_Object into a bare pointer.
21969         (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21970         Adjust the code correspondingly.
21972         * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21974         * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21975         (term_show_mouse_face): Remove unused var `j'.
21976         (handle_one_term_event): Remove unused vars `i' and `j'.
21977         Don't cast return value of ttyname since it's not necessary.
21979 2007-07-10  Stefan Monnier  <monnier@iro.umontreal.ca>
21981         * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21982         USE_LSB_TAG.  Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21984         * fns.c (map_char_table): Use an array of int for `indices' rather than
21985         an array of Lisp_Objects (which are only ever integers anyway).
21986         (Fmap_char_table): Update caller.
21987         * lisp.h: Update prototype.
21988         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21989         * fontset.c (Ffontset_info):
21990         * casetab.c (set_case_table): Update callers.
21992         * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21994         * keymap.c (struct accessible_keymaps_data)
21995         (struct where_is_internal_data): New structures.
21996         (accessible_keymaps_1, where_is_internal_1): Use them to change
21997         interface to adhere to the one used by map_keymap.
21998         (Faccessible_keymaps, where_is_internal): Use map_keymap.
21999         (accessible_keymaps_char_table, where_is_internal_2): Remove.
22001         * keymap.h (map_keymap_function_t): More informative prototype.
22003 2007-07-10  Guanpeng Xu  <herberteuler@hotmail.com>
22005         * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22006         (looking_at_1): Don't change search_regs and last_thing_searched
22007         if `inhibit-changing-match-data' is non-nil.
22008         (string_match_1, search_buffer, set_search_regs): Likewise.
22009         (syms_of_search): Add Lisp level definition for
22010         `inhibit-changing-match-data' and set it to nil.
22011         (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22012         start and end of the match, instead of using values in search_regs.
22014 2007-07-01  Stefan Monnier  <monnier@iro.umontreal.ca>
22016         * minibuf.c (Fcompleting_read): New value `confirm-only'
22017         for `require-match'.
22019 2007-06-28  Stefan Monnier  <monnier@iro.umontreal.ca>
22021         * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22022         part of the 2007-06-27 change to syms_of_fileio.
22024 2007-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22026         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22027         Check WINDOWP before using XWINDOW.  Consolidate return statements.
22029 2007-06-27  Richard Stallman  <rms@gnu.org>
22031         * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22033 2007-06-27  Juanma Barranquero  <lekktu@gmail.com>
22035         * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22037 2007-06-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22039         * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22040         (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22041         (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22042         (_free_internal, memalign): Use them.
22043         (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22044         Initialize to PTHREAD_MUTEX_INITIALIZER.
22045         (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22046         (morecore_nolock): Rename from morecore.  All uses changed.
22047         Use only nolock versions of internal allocation functions.
22048         (_malloc_internal_nolock, _realloc_internal_nolock)
22049         (_free_internal_nolock): New functions created from
22050         _malloc_internal, _realloc_internal, and _free_internal.
22051         (_malloc_internal, _realloc_internal, _free_internal): Use them.
22052         Copy hook value to automatic variable before its use.
22053         (memalign): Copy hook value to automatic variable before its use.
22055 2007-06-26  Kenichi Handa  <handa@m17n.org>
22057         * coding.c (Ffind_operation_coding_system): Docstring improved.
22058         (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22060 2007-06-25  David Kastrup  <dak@gnu.org>
22062         * keymap.c (Fcurrent_active_maps): Add `position' argument.
22063         (Fwhere_is_internal): Adjust call to `current-active-maps' to
22064         cater for additional parameter.
22066         * keymap.h: Adjust number of parameters to `current-active-maps'.
22068         * doc.c (Fsubstitute_command_keys): Adjust call of
22069         `current-active-maps'.
22071 2007-06-25  David Kastrup  <dak@gnu.org>
22073         * callint.c (Fcall_interactively): Make the parsing of interactive
22074         specs somewhat more readable.
22076 2007-06-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22078         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22079         to scroll bar gap also when bitmap fills fringe.  Draw only foreground
22080         if extended background has already been filled.
22082 2007-06-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22084         * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22085         (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22087         * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22088         Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22089         in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22090         (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22091         [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22092         instead of QuitAppModalLoopForWindow.  Consolidate QuitEventLoop calls.
22093         (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22094         [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22095         Run timers during dialog popup.
22096         (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22098 2007-06-21  Jason Rumney  <jasonr@gnu.org>
22100         * image.c (convert_mono_to_color_image): Swap fore and background.
22102 2007-06-20  Jason Rumney  <jasonr@gnu.org>
22104         * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22105         (w32_free_bdf_font): Unmap memory not handle.
22107 2007-06-20  Sam Steingold  <sds@gnu.org>
22109         * gmalloc.c (__morecore): Fix the declaration to comply with the
22110         definition.
22112 2007-06-20  Juanma Barranquero  <lekktu@gmail.com>
22114         * w32term.c (w32_delete_display): Remove leftover declaration.
22115         (w32_define_cursor, w32_initialize): Make static.
22117         * w32.c (_wsa_errlist): Fix typo in error message.
22118         (init_environment): Ignore any environment variable from the
22119         registry having a null value.
22121 2007-06-20  Glenn Morris  <rgm@gnu.org>
22123         * Makefile.in (LIBGIF): Default to -lgif.
22125 2007-06-17  Jason Rumney  <jasonr@gnu.org>
22127         * w32menu.c (add_menu_item): Don't use multibyte string functions on
22128         unicode strings.
22130 2007-06-16  Juanma Barranquero  <lekktu@gmail.com>
22132         * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22133         Fix typo in docstring.
22135 2007-06-16  Eli Zaretskii  <eliz@gnu.org>
22137         * w32menu.c (add_menu_item): Escape `&' characters in menu items
22138         and their keybindings.
22140 2007-06-15  Chong Yidong  <cyd@stupidchicken.com>
22142         * composite.c (update_compositions): Fix last fix.
22144 2007-06-14  Jason Rumney  <jasonr@gnu.org>
22146         * w32.c (get_process_times_fn): New function pointer.
22147         (globals_of_w32): Intialize it if present in kernel32.dll.
22148         (w32_get_internal_run_time): New function.
22150         * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22152 2007-06-14  Kenichi Handa  <handa@etlken.m17n.org>
22154         * composite.c (update_compositions): Check the validness of
22155         compositions.
22157 2007-06-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22159         * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22160         (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22162         * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22163         (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22165         * macgui.h (USE_MAC_TOOLBAR): New define.
22167         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22168         Return immediately unless popup is activated.
22170         * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22171         background to scroll bar gap.
22172         (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22173         (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22174         scroll bars on frame edge.  Check fringe background extension.
22175         Don't clear extended fringe background area.
22176         (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22177         (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22178         (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22179         [USE_MAC_TOOLBAR]: New macros.
22180         (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22181         (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22182         (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22183         (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22184         [USE_MAC_TOOLBAR]: New functions.
22185         (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22186         manually if previous repositioning has failed.
22187         (mac_handle_keyboard_event): Use precomputed event kind.
22188         (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22189         as tool bar item click.  Handle mouse movement over tool bar items.
22191         * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22192         toolbar_win_gravity.
22193         (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22194         (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22195         Add externs.
22197         * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22198         [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22200 2007-06-14  Chong Yidong  <cyd@stupidchicken.com>
22202         * image.c (search_image_cache): Remove unused variable.
22204 2007-06-13  Chong Yidong  <cyd@stupidchicken.com>
22206         * xfns.c, xmenu.c: Link to xaw3d if available.
22208 2007-06-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22210         * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22211         frame_foreground and frame_background.
22213         * image.c (lookup_image): Save frame foreground and background colors.
22214         (search_image_cache): Check if saved and current frame colors match.
22216 2007-06-12  Stefan Monnier  <monnier@iro.umontreal.ca>
22218         * regex.c (regex_compile): Remove the `regnum' counter.
22219         Use bufp->re_nsub instead.  Add support for \(?N:RE\).
22221 2007-06-11  Stefan Monnier  <monnier@iro.umontreal.ca>
22223         * term.c: Include intervals.h to declare Fget_text_property.
22225 2007-06-10  Jason Rumney  <jasonr@gnu.org>
22227         * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22229 2007-06-08  Juanma Barranquero  <lekktu@gmail.com>
22231         * callint.c (Fcall_interactively):
22232         * editfns.c (Fdelete_and_extract_region):
22233         * fileio.c (Fread_file_name):
22234         * fns.c (Fmapconcat):
22235         * keyboard.c (cmd_error_internal):
22236         * keymap.c (Fkey_description):
22237         * lread.c (openp):
22238         * minibuf.c (read_minibuf):
22239         * search.c (wordify):
22240         * sunfns.c (sel_read):
22241         * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22242         * xfns.c (x_default_scroll_bar_color_parameter):
22243         * xmenu.c (menu_help_callback):
22244         * xselect.c (Fx_get_atom_name):
22245         * xterm.c (x_term_init): Use empty_unibyte_string.
22247 2007-06-08  Dmitry Antipov  <dmantipov@yandex.ru>  (tiny change)
22249         * alloc.c (init_strings): Initialize canonical empty strings.
22250         (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22251         canonical empty string when the requested size is 0.
22253         * emacs.c (empty_unibyte_string): Rename from empty_string.
22254         (empty_multibyte_string): New canonical empty string.
22255         (syms_of_emacs): Don't initialize empty_string.
22257         * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22258         string, if appropriate.
22259         (empty_unibyte_string, empty_multibyte_string): New externs.
22260         (empty_string): Remove extern.
22262         * lread.c (syms_of_lread): Use empty_unibyte_string.
22264 2007-06-07  Jason Rumney  <jasonr@gnu.org>
22266         * s/ms-w32.h: Don't define HAVE_TZNAME.
22268         * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22270 2007-06-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22272         * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22274         * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22275         (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22277         * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22278         Don't call next handler.
22279         [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22280         Remove argument.  Install handler to application.
22281         (set_frame_menubar): Don't change deep_p.
22282         (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22283         FRAME_OUTER_TO_INNER_DIFF_Y.
22284         (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22285         (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22286         [HAVE_DIALOGS]: New macros.
22287         [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22288         Use them.
22289         (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22291         * macselect.c [MAC_OSX] (install_service_handler): Rename from
22292         init_service_handler.  All callers changed.  Return OSStatus value.
22294         * macterm.c (mac_begin_cg_clip): New arg F.  Call SetPortWindowPort.
22295         All callers changed so as not to call SetPortWindowPort.
22296         (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22297         (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22298         mac_draw_string_common.
22299         (mac_draw_image_string_qd): Likewise.
22300         (mac_draw_string_common): Use them.  Add INLINE.
22301         (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22302         Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22303         GetGlobalMouse.
22304         (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22305         and FRAME_OUTER_TO_INNER_DIFF_Y.
22306         [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22307         [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22308         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22309         repositioning window to mac_handle_window_event.
22310         (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22311         saving window location to mac_handle_window_event
22312         [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22313         (install_menu_target_item_handler): Remove argument in extern.
22314         [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22315         Also accept command events.
22316         (do_keystroke): New function created from XTread_socket.
22317         (init_command_handler): Remove functions.
22318         [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22319         and save window location by kEventWindowShowing and kEventWindowHiding
22320         handlers here.  Don't call next handler for window state change and
22321         focus events.
22322         (mac_handle_application_event, mac_handle_keyboard_event)
22323         [TARGET_API_MAC_CARBON]: New functions.
22324         (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22325         kEventWindowShowing and kEventWindowHiding events.  Move installation
22326         of mouse, font, text input and menu target item handlers to
22327         install_application_handler.
22328         (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22329         (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22330         New function.
22331         (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22332         Register it.
22333         (XTread_socket) [TARGET_API_MAC_CARBON]:
22334         Consolidate SendEventToEventTarget calls.
22335         Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22336         Move application activation handler to mac_handle_application_event.
22337         Move keyboard handler to mac_handle_keyboard_event.
22338         (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22339         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22340         init_command_handler.  Call install_application_handler.
22342         * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22343         (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22345 2007-06-07  Glenn Morris  <rgm@gnu.org>
22347         * emacs.c (main): Use `emacs-copyright' in --version output.
22349 2007-06-06  Chong Yidong  <cyd@stupidchicken.com>
22351         * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22353 2007-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22355         * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22357         * macgui.h: Replace WindowPtr with WindowRef.
22359         * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22360         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
22361         Replace ControlHandle with ControlRef.
22362         (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22364         * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22365         GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
22366         Replace ControlHandle with ControlRef.
22367         (USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
22368         [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22370         * macterm.h (struct scroll_bar): Rename member control_handle_low
22371         and control_handle_high to control_ref_low and control_ref_high.
22372         All uses changed.
22373         (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22374         SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22375         respectively.  All uses changed.
22376         (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22377         (install_window_handler, remove_window_handler): Replace WindowPtr
22378         with WindowRef in externs.
22380 2007-06-05  Juanma Barranquero  <lekktu@gmail.com>
22382         * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22384 2007-06-03  Nick Roberts  <nickrob@snap.net.nz>
22386         * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22388         * frame.c (Fmouse_position, Fmouse_pixel_position):
22389         Condition on HAVE_GPM too.
22391         * term.c (term_mouse_highlight): Remove unused variables.
22392         (Fterm_open_connection): Set gpm_zerobased to 1.
22393         (term_mouse_movement, term_mouse_click, handle_one_term_event):
22394         Use zero based co-ordinates.
22395         (handle_one_term_event): Report a drag as mouse movement too.
22397         * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22399 2007-06-03  Chong Yidong  <cyd@stupidchicken.com>
22401         * image.c (search_image_cache): New function.  Require background
22402         color match if background color is unspecified in the image spec.
22403         (uncache_image, lookup_image): Use it.
22405 2007-06-01  Juanma Barranquero  <lekktu@gmail.com>
22407         * window.c (Fshrink_window): Reflow docstring.
22409 2007-06-02  Chong Yidong  <cyd@stupidchicken.com>
22411         * Version 22.1 released.
22413 2007-06-01  Richard Stallman  <rms@gnu.org>
22415         * xfns.c (x_encode_text): Add GCPRO.
22417 2007-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22419         * xfns.c (x_set_name_internal): Save encoded name before
22420         x_encode_text in case string data is relocated.
22422 2007-05-31  Richard Stallman  <rms@gnu.org>
22424         * buffer.c (syms_of_buffer): Doc fix.
22426 2007-05-30  Nick Roberts  <nickrob@snap.net.nz>
22428         * sysdep.c (init_sys_modes): Add rather than replace with
22429         O_NONBLOCK.
22431         * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22432         term_mouse_moveto.
22434         * termhooks.h (term_mouse_moveto): New extern.
22436         * term.c (mouse_face_window): Rename...
22437         (Qmouse_face_window): ...to this.
22438         (term_show_mouse_face, term_clear_mouse_face)
22439         (term_mouse_highlight): Use Qmouse_face_window.
22440         (term_mouse_moveto): New function.
22441         (term_mouse_position): Make it work.
22442         (syms_of_term): Uncomment assignment to mouse_position_hook.
22443         Staticpro Qmouse_face_window.
22445 2007-05-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22447         * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22448         around current_column call.
22450 2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
22452         * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22453         * xdisp.c (next_element_from_buffer):
22454         * window.c (delete_window):
22455         * term.c (term_mouse_highlight):
22456         * msdos.c (getdefdir):
22457         * macterm.c (mac_create_bitmap_from_bitmap_data)
22458         (init_font_name_table):
22459         * fns.c (Fsxhash):
22460         * data.c (Fmake_local_variable):
22461         * ccl.c (ccl_driver): Likewise.
22463 2007-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22465         * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22466         Call mac_wakeup_from_rne on window size change.
22468 2007-05-25  Chong Yidong  <cyd@stupidchicken.com>
22470         * image.c (uncache_image): Fix typo.
22472 2007-05-23  Johannes Weiner  <hannes@saeurebad.de>  (tiny change)
22474         * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22476 2007-05-22  Richard Stallman  <rms@gnu.org>
22478         * xterm.c (x_connection_closed): Remove NO_RETURN.
22480 2007-05-22  Martin Rudalics  <rudalics@gmx.at>
22482         * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22484 2007-05-21  Chong Yidong  <cyd@stupidchicken.com>
22486         * image.c (uncache_image): New function.
22487         (Fimage_refresh): New function.
22489 2007-05-20  Jan Djärv  <jan.h.d@swipnet.se>
22491         * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22493 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
22495         * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22496         * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22498 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
22500         * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22501         conditional on [HAVE_GPM_H].
22503 2007-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
22505         * syntax.c (skip_chars): Update syntax-table only after we checked that
22506         the new location is valid.
22508 2007-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22510         * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22511         mac_get_window_bounds.
22513 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
22515         * Makefile.in (LIBGPM): Allow it to be set from configure.
22516         If set then link Emacs with it.
22518         * config.in: Regenerate.
22520         * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22521         New externs.
22523         * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22524         Include gpm.h.
22525         (handle_one_term_event, term_gpm): New externs.
22527         * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22528         and allow it to be interrupted by SIGIO.
22530         * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22531         (wait_reading_process_output): Wait on gpm_fd too.
22532         (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22533         (add_gpm_wait_descriptor_called_flag): New variable.
22534         (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22536         * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22537         (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22538         (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22539         Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22540         (make_lispy_event): Add case GPM_CLICK_EVENT.
22541         (read_avail_input): Handle mouse input.
22543         * term.c (write_glyphs_with_face): New function.
22544         [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22545         (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22546         (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22547         (mouse_face_face_id, term_gpm, pos_x, pos_y)
22548         (last_mouse_x, last_mouse_y): New variables.
22549         (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22550         (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22551         (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22552         (Fterm_close_connection): New functions.
22553         (term_init): Initialise mouse_face_window.
22555 2007-05-19  Chong Yidong  <cyd@stupidchicken.com>
22557         * xdisp.c (redisplay_window): If first window line is a
22558         continuation line, recompute the new window start instead of
22559         recentering.
22561 2007-05-18  Glenn Morris  <rgm@gnu.org>
22563         * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22564         Suggested by Alfred M. Szmidt <ams@gnu.org>.
22566 2007-05-17  Glenn Morris  <rgm@gnu.org>
22568         * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22570 2007-05-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22572         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22573         dead key repeat and up events.
22575 2007-05-14  Chong Yidong  <cyd@stupidchicken.com>
22577         * image.c (pbm_load): Check image size for monochrome pbm.
22579 2007-05-13  Chong Yidong  <cyd@stupidchicken.com>
22581         * xterm.c (XTread_socket): Revert last change.
22583 2007-05-12  Chong Yidong  <cyd@stupidchicken.com>
22585         * image.c (pbm_load): Correctly check image size for greyscale pbm.
22587         * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22589 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
22591         * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22592         mixup (YAILOM).
22594 2007-05-07  Andreas Schwab  <schwab@suse.de>
22596         * keymap.c (Flookup_key): Fix typo in last change.
22598 2007-05-07  Stefan Monnier  <monnier@iro.umontreal.ca>
22600         * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22601         mapping for unibyte strings.
22603 2007-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22605         * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22606         (Fx_popup_dialog) [MAC_OSX]: Likewise.
22608 2007-04-29  Richard Stallman  <rms@gnu.org>
22610         * insdel.c (replace_range): For undo, record insertion first.
22612 2007-04-29  Andreas Schwab  <schwab@suse.de>
22614         * lisp.h (VECSIZE): Use OFFSETOF.
22616 2007-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
22618         * xdisp.c (try_window_reusing_current_matrix): Fix number of
22619         disabled lines.
22621 2007-04-28  Richard Stallman  <rms@gnu.org>
22623         * lread.c (read_escape): In a string, \s is always space.
22625 2007-04-27  Jan Djärv  <jan.h.d@swipnet.se>
22627         * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22629         * gtkutil.c (xg_update_menubar, create_menus): Create empty
22630         submenu for menu bar items.
22632 See ChangeLog.10 for earlier changes.
22634 ;; Local Variables:
22635 ;; coding: utf-8
22636 ;; add-log-time-zone-rule: t
22637 ;; End:
22639     Copyright (C) 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
22641   This file is part of GNU Emacs.
22643   GNU Emacs is free software: you can redistribute it and/or modify
22644   it under the terms of the GNU General Public License as published by
22645   the Free Software Foundation, either version 3 of the License, or
22646   (at your option) any later version.
22648   GNU Emacs is distributed in the hope that it will be useful,
22649   but WITHOUT ANY WARRANTY; without even the implied warranty of
22650   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22651   GNU General Public License for more details.
22653   You should have received a copy of the GNU General Public License
22654   along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
22656 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40