Fix previous change. Define ftfont_variation_glyphs
[bpt/emacs.git] / src / ChangeLog
index ed8102e..2b743f6 100644 (file)
@@ -1,3 +1,419 @@
+2009-03-30  Kenichi Handa  <handa@m17n.org>
+
+       * ftfont.c: Fix previous change.  Define ftfont_variation_glyphs
+       even if HAVE_M17N_FLT is not defined.
+
+2009-03-29  Sebastian Rose  <sebastian_rose@gmx.de>  (tiny change)
+
+       * ftfont.c: Conditionalize prototyping and use of
+       ftfont_variation_glyphs.
+
+2009-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * frame.c (delete_frame): Work around compiler bug.
+
+       * editfns.c (general_insert_function): Adjust to insdel.c changes.
+       * insdel.c (prepare_to_modify_buffer, signal_before_change):
+       Some more EMACS_INT.
+       * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
+
+       * xdisp.c (dump_glyph): Fix typo.
+
+       * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
+       (adjust_markers_gap_motion, adjust_markers_for_delete)
+       (adjust_markers_for_insert, adjust_point)
+       (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
+       (make_gap, copy_text, count_size_as_multibyte, insert)
+       (insert_and_inherit, insert_before_markers)
+       (insert_before_markers_and_inherit, insert_1)
+       (count_combining_before, count_combining_after, insert_1_both)
+       (insert_from_string, insert_from_string_before_markers)
+       (insert_from_string_1, insert_from_gap, insert_from_buffer)
+       (insert_from_buffer_1, adjust_after_replace)
+       (adjust_after_replace_noundo, adjust_after_insert, replace_range)
+       (replace_range_2, del_range, del_range_1, del_range_byte)
+       (del_range_both, del_range_2, modify_region)
+       (prepare_to_modify_buffer, signal_before_change)
+       (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
+       for buffer positions and sizes.
+       * lisp.h: Adjust prototypes accordingly.
+
+       * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
+       (non_regular_inserted, non_regular_nbytes, read_non_regular)
+       (Finsert_file_contents): Use EMACS_INT for buffer positions.
+
+       * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
+
+2009-03-27  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
+       lines and columns so we keep the same pixel height and width.
+
+       * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
+       the property _NET_WM_STATE has changed.
+       updated.
+       (x_handle_net_wm_state): New function to update frame parameter
+       fullscreen.
+       (x_term_init): Initialize atoms for _NET_WM_STATE.
+
+       * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
+
+2009-03-27  Kevin Ryde  <user42@zip.com.au>
+
+       * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
+       Gpm_GetEvent as an error that justifies closing the filedescriptor.
+       * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
+       (Fgpm_mouse_stop): Pass that new parameter.
+       * termhooks.h (close_gpm): Adjust prototype.
+
+2009-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * lisp.h (Fx_focus_frame): Declare.
+
+       * callint.c (Fcall_interactively): For '^' just delegate the work to
+       handle-shift-selection.
+       (syms_of_callint): Move declaration of shift-select-mode to simple.el.
+
+2009-03-24  Chong Yidong  <cyd@stupidchicken.com>
+
+       * editfns.c (Ffloat_time): Doc fix (Bug#2768).
+
+       * data.c (Qinteractive_form): New variable.
+       (Finteractive_form): Use it.
+
+       * eval.c (Fcommandp): Use Qinteractive_form.
+
+2009-03-24  Jason Rumney  <jasonr@gnu.org>
+
+       * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
+       Calculate total size precisely.  Decode environment variables
+       before substituting.  (Bug#38)
+
+2009-03-24  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (find_font_encoding): Return Qnil for unsupported
+       encoding (Bug#2722).
+
+2009-03-23  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
+       that gdpy is set.
+
+2009-03-22  Alan Mackenzie  <acm@muc.de>
+
+       * callint.c (Finteractive): Clarify the doc string - even
+       promptless elements need \n separators.
+
+2009-03-22  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.c (syms_of_w32term): Doc fix for
+       x-use-underline-position-properties.
+
+2009-03-21  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (getpwuid): Change argument type to unsigned.
+       (struct w32_id): Change type of `rid' member to unsigned.
+       (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
+       argument ID to unsigned.  All callers changed.
+       (getuid, geteuid, getgid, getegid): Change return type to unsigned.
+
+2009-03-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
+       negative, produce a float value.
+
+       * dired.c (make_uid, make_gid): New functions.
+       (Ffile_attributes): Use them to avoid negative UID and GID.
+
+2009-03-20  Juanma Barranquero  <lekktu@gmail.com>
+
+       * keyboard.c (Fcurrent_idle_time): Reflow docstring.
+       (syms_of_keyboard) <command-hook-internal, input-method-function>:
+       Fix typos in docstrings.
+
+2009-03-19  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (Fset_fontset_font): When a spec of ASCII font is
+       changed, use font_load_for_lface to get a new font object.
+       Call free_realized_fontset after handling ASCII font change.
+
+       * frame.c (x_set_font): Handle the case that ARG is a cons.
+
+2009-03-19  Glenn Morris  <rgm@gnu.org>
+
+       * fileio.c (Fsubstitute_in_file_name): Doc fix.
+
+2009-03-19  Chong Yidong  <cyd@stupidchicken.com>
+
+       * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
+
+2009-03-19  Kenichi Handa  <handa@m17n.org>
+
+       * charset.c (load_charset_map_from_file): When a mapfile can't be
+       loaded, signal an error.
+
+2009-03-18  Eli Zaretskii  <eliz@gnu.org>
+
+       * dired.c (Ffile_attributes): Make sure UID and GID are always
+       positive, even if the value is too large for a positive EMACS_INT.
+       Doc fix.
+
+       * editfns.c (Fuser_login_name): Support float arguments.  Doc fix.
+
+2009-03-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * xmenu.c (xdialog_show): Move Fredisplay call ...
+       (Fx_popup_dialog): ... here.
+
+2009-03-18  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * dired.c (file_name_completion): Disable the first optimization just
+       installed, since it is not implemented correctly.
+
+2009-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * dired.c (file_name_completion): Check completion-ignored-extensions
+       only if the entry can affect bestmatch.
+       Stop the search early, as Ftry_completion already does.
+
+2009-03-17  Chong Yidong  <cyd@stupidchicken.com>
+
+       * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
+
+2009-03-15  Chong Yidong  <cyd@stupidchicken.com>
+
+       * keyboard.c (parse_menu_item): Don't display remappings as menu
+       equivalent bindings (Bug#788).
+
+2009-03-15  Jason Rumney  <jasonr@gnu.org>
+
+       * w32term.h (WM_EMACS_PAINT): New message.
+       * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
+       * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
+       before passing to lisp thread.  (Bug#950)
+
+2009-03-14  David Reitter  <david.reitter@gmail.com>
+
+       * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
+       variable as it was never reset.
+       (ns_term_init): Remove initialization of Lisp-settable defaults
+       and ns_expand_space.
+       (-setPanelFromDefaultValues): Remove ns_expand_space.
+       (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
+       * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
+       i.e. no additional spacing, similar to Carbon port.
+
+       * nsterm.h: Define KEY_NS_SHOW_PREFS key.
+       * nsfns.m (ns-popup-prefs-panel): Remove.
+
+2009-03-14  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * sound.c (alsa_configure): Remove call to deprecated
+       snd_pcm_sw_params_set_xfer_align.
+
+2009-03-14  Stephen Berman  <stephen.berman@gmx.net>
+
+       * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
+       after clicking in a detached tool bar.
+       (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
+
+2009-03-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
+       int/Lisp_Object mixup).
+
+2009-03-13  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
+       Handle NAME nil and t correctly.  Callers changed.
+       (font_def_arg, add_arg, from_arg, to_arg): Delete them.
+       (set_fontset_font): Change ARG to a vector.  Handle range_list in
+       ARG correctly.
+       (Fset_fontset_font): Fix the case that TARGET is both a script
+       name and charset name.  Adjust the arg to set_fontset_font for
+       the above change.
+       (fontset_from_font): Fix previous change.
+       (Ffontset_info): Adjust for the 2008-07-09 change of fontset
+       entry.  If FONTSET is the default fontset, don't set the extra
+       slot of the returning char-table.
+
+2009-03-12  Juanma Barranquero  <lekktu@gmail.com>
+
+       * nsfns.m (Fx_close_connection): Doc fix.
+       (Fns_do_applescript): Reflow docstring.
+       (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
+       (Fx_display_pixel_width, Fx_display_pixel_height)
+       (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
+       Fix typos in docstrings.
+       (Fns_set_alpha): Fix typos in error messages.
+
+2009-03-12  David Reitter  <david.reitter@gmail.com>
+
+       * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
+       non-key system events on NS.  Formerly, NON_ASCII_KEYSTROKE_EVENT
+       were used for such events.
+
+       * nsterm.m (newFrame, openFile, fulfillService, changeFont)
+       (toggleToolbar, performDragOperation, runHelp): Use it.
+
+       * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
+       NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
+
+2009-03-11  Kenichi Handa  <handa@m17n.org>
+
+       * font.h (font_open_by_spec): Extern it.
+
+       * font.c (font_open_by_spec): New function.
+       (font_open_by_name): Use font_open_by_spec.
+
+       * frame.c (x_set_font): When ARG is a font-object, don't alter the
+       fontset of the frame.
+
+       * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
+       modify the default font of frames that use this fontset.
+       (num_auto_fontsets): New variable.
+       (fontset_from_font): Use num_auto_fontsets to decide a fontset
+       name.  Be sure to set FONTSET_ASCII to the correct font name.
+       (update_auto_fontset_alist): New function.
+
+2009-03-11  Juanma Barranquero  <lekktu@gmail.com>
+
+       * makefile.w32-in: Update dependencies.
+
+2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsfns.m (syms_of_nsfns): Remove Qbuffered.
+
+2009-03-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
+
+2009-03-10  Chong Yidong  <cyd@stupidchicken.com>
+
+       * lread.c (Feval_buffer): Doc fix.
+
+2009-03-09  Kenichi Handa  <handa@m17n.org>
+
+       * charset.c (Qfile_name_handler_alist): Extern it.
+       (load_charset_map_from_file): Temporarily bind
+       `file-name-handler-alist' to nil while calling openp.  (Bug#2435)
+
+2009-03-06  Aaron Ecay  <aaronecay@gmail.com>  (tiny change)
+
+       * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
+       not two, and use NSRectFill instead of NSDrawGroove.  (Bug#2352)
+
+2009-03-06  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
+       (x_set_window_size): Change back to calculated method of setting
+       toolbar height under Cocoa.  (Bug#2546)
+       (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
+       (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
+
+       * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
+
+       * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
+       accelerator in parens under GNUstep.
+
+2009-03-06  Kenichi Handa  <handa@m17n.org>
+
+       These changes are to detect incorrect composition sequence without
+       looking ahead the source.  (Bug#2370)
+
+       * coding.h: Include "composite.h".
+       (enum compisition_state): New enum.
+       (struct compisition_status): New struct.
+       (struct iso_2022_spec): New member cmp_status.
+       (struct emacs_mule_spec): New struct.
+       (struct coding_system): New members ctext_extended_segment_len and
+       embedded_utf_8.  Change the union member
+       spec.emacs_mule_full_support to spec.emacs_mule.
+
+       * coding.c (CODING_ISO_CMP_STATUS): New macro.
+       (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
+       (MAX_ANNOTATION_LENGTH): Defined to 5.
+       (ADD_COMPOSITION_DATA): New arg nbytes.
+       (emacs_mule_char): New arg cmp_status.
+       (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
+       (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
+       (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
+       (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
+       (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
+       (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
+       (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
+       (EMACS_MULE_COMPOSITION_END): New macro.
+       (emacs_mule_finish_composition): New function.
+       (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
+       (decode_coding_emacs_mule): Avoid long looking ahead while
+       handling composition.
+       (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
+       (ENCODE_COMPOSITION_RULE): New macro.
+       (finish_composition): New function.
+       (MAYBE_FINISH_COMPOSITION): Call finish_composition.
+       (DECODE_COMPOSITION_START): New implementation.
+       (DECODE_COMPOSITION_END): Likewise.
+       (STORE_COMPOSITION_RULE): New macro.
+       (decode_coding_iso_2022): Avoid long looking ahead while handling
+       composition, CTEXT extended segment, and embedded UTF-8.
+       (setup_coding_system): For a coding of type iso-2022, reset
+       CODING_ISO_EXTSEGMENT_LEN (coding) and
+       CODING_ISO_EMBEDDED_UTF_8 (coding).
+       (get_translation): Delete arguments last_block, from_nchars,
+       to_nchars.  Callers changed.
+       (produce_chars): Don't modify charbuf.  Adjusted for the change of
+       get_translation.
+       (produce_composition): Adjusted for the new annotation sequence.
+       (handle_composition_annotation): Likewise.
+       (consume_chars): Adjusted for the change of get_translation.
+
+2009-03-05  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+       * nsterm.m (ns_select): Shortcircuit if reentrant call.  (Bug#2564)
+
+2009-03-05  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (font_select_entity): New function.
+       (font_find_for_lface): Use font_select_entity to select a font.
+
+       * fontset.c (fontset_find_font): If a font found without
+       restricting of the characters C doen't support C, try to find a
+       font with C restriction.
+
+2009-03-04  Nikolaj Schumacher  <me@nschum.de>  (tiny change)
+
+       * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
+
+2009-03-04  Jason Rumney  <jasonr@gnu.org>
+
+       * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
+       characters that have already been read.  (Bug#2569)
+
+       * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
+       Log an error message if check_image_size failed.
+       (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
+       (gs_load): Mention max-image-size in size error message.  (Bug#2560)
+
+2009-03-02  Eli Zaretskii  <eliz@gnu.org>
+
+       * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
+       when decoding process output.
+
+2009-03-01  Richard M Stallman  <rms@gnu.org>
+
+       * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
+
+       * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
+
+2009-02-28  Eli Zaretskii  <eliz@gnu.org>
+
+       * coding.c (decode_coding_utf_8, decode_coding_utf_16)
+       (decode_coding_emacs_mule, decode_coding_iso_2022)
+       (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
+       (decode_coding_raw_text, decode_coding_charset)
+       (setup_coding_system, decode_eol, decode_coding, consume_chars):
+       Honor inhibit-eol-conversion.  (Bug #2186)
+
 2009-02-28  Jason Rumney  <jasonr@gnu.org>
 
        * coding.c (detect_coding_charset): If not checking latin extra,
@@ -6,7 +422,7 @@
 2009-02-28  Eli Zaretskii  <eliz@gnu.org>
 
        * coding.c (detect_coding_charset): Fix change from 2008-10-21.
-       Also, check iso-latin-*, not only iso-8859-*.
+       Also, check iso-latin-*, not only iso-8859-*.  (Bug#2497)
 
 2009-02-27  Glenn Morris  <rgm@gnu.org>
 
 2009-01-09  Glenn Morris  <rgm@gnu.org>
 
        * keyboard.c (last_command_char): For clarity, rename to...
-       (last_command-event): ... and update all users.
+       (last_command_event): ... and update all users.
        (last_input_char): For clarity, rename to...
        (last_input_event): ... and update all users.
        (last-command-char, last-input-char): Move to subr.el as aliases.
 
 2008-09-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
-       * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
+       * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
        mixup (YAILOM).
 
 2008-09-17  Chong Yidong  <cyd@stupidchicken.com>
 
        * font.h (font_range):
        * fileio.c (report_file_error):
-       * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
+       * composite.c (composition_update_it): Yet another int/Lisp_Object
+       mixup (YAILOM).
 
 2008-08-30  Glenn Morris  <rgm@gnu.org>
 
        * font.c (check_gstring): Use them and AREF to access the vector before
        we know it's really a gstring.
        (Ffont_shape_text): Fix typo.
-       (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
+       (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
 
        * composite.h (Fcompose_region_internal, Fcompose_string_internal):
        Declare.