Handle overflow when computing char display width (Bug#9496).
[bpt/emacs.git] / src / ChangeLog
index 83e703e..d6decb7 100644 (file)
@@ -1,5 +1,138 @@
+2012-02-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Handle overflow when computing char display width (Bug#9496).
+       * character.c (char_width): Return EMACS_INT, not int.
+       (char_width, c_string_width): Check for overflow when
+       computing the width; this is possible now that individual
+       characters can have unbounded width.  Problem introduced
+       by merge from Emacs 23 on 2012-01-19.
+
+2012-02-02  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (Fdbus_register_method): Mention the return value
+       :ignore in the docstring.
+
+2012-02-02  Glenn Morris  <rgm@gnu.org>
+
+       * callproc.c (Fcall_process, Fcall_process_region): Doc fix.
+
+       * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
+       Unconditionally set to t.  (Bug#10673)
+       * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
+       * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
+       * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Doc fix.
+
+2012-02-02  Kenichi Handa  <handa@m17n.org>
+
+       (x_produce_glyphs): Cancel previous change.  If cmp->glyph_len is
+       0, do not call append_composite_glyph.
+
+2012-02-02  Kenichi Handa  <handa@m17n.org>
+
+       * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Initialize first_s to
+       NULL (Bug#6988).
+       (x_produce_glyphs): If the component of a composition is a null
+       string, set it->pixel_width to 1 to avoid zero-width glyph.
+
+2012-02-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its
+       first 2 arguments are identical.  This makes inserting large
+       output from a subprocess an order of magnitude faster on
+       MS-Windows, where all sbrk'ed memory is always contiguous.
+
+2012-01-31  Glenn Morris  <rgm@gnu.org>
+
+       * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
+       * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
+       * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
+
+2012-01-29  Glenn Morris  <rgm@gnu.org>
+
+       * gnutls.c (syms_of_gnutls): More doc (from etc/NEWS).
+
+2012-01-28  Samuel Thibault  <sthibault@debian.org>  (tiny change)
+
+       * s/gnu.h: Define POSIX_SIGNALS (Bug#10552).
+
+2012-01-28  Chong Yidong  <cyd@gnu.org>
+
+       * minibuf.c (syms_of_minibuf): Doc fix (Bug#10550).
+
+2012-01-26  Chong Yidong  <cyd@gnu.org>
+
+       * keyboard.c (Vecho_keystrokes): Document zero value (Bug#10503).
+
+       * search.c (Fsearch_forward, Fsearch_backward): Document negative
+       repeat counts (Bug#10507).
+
+2012-01-26  Glenn Morris  <rgm@gnu.org>
+
+       * lread.c (syms_of_lread): Doc fix.
+
+2012-01-25  HIROSHI OOTA  <nil@mad.dog.cx>  (tiny change)
+
+       * coding.c (encode_designation_at_bol): Change return value to
+       EMACS_INT.
+
+2012-01-25  Chong Yidong  <cyd@gnu.org>
+
+       * eval.c (Fuser_variable_p): Doc fix; mention custom-variable-p.
+
+2012-01-21  Chong Yidong  <cyd@gnu.org>
+
+       * floatfns.c (Fcopysign): Make the second argument non-optional,
+       since nil is not allowed anyway.
+
+2012-01-21  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (read_process_output): Use p instead of XPROCESS (proc).
+       (send_process): Likewise.
+
+2012-01-19  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (save_window_save, Fcurrent_window_configuration)
+       (Vwindow_persistent_parameters): Do not use Qstate.  Rewrite
+       doc-strings.
+
+2012-01-19  Kenichi Handa  <handa@m17n.org>
+
+       * character.c (char_width): New function.
+       (Fchar_width, c_string_width, lisp_string_width):
+       Use char_width (Bug#9496).
+
+2012-01-16  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Vwindow_persistent_parameters): New variable.
+       (Fset_window_configuration, save_window_save): Handle persistent
+       window parameters.
+
+2012-01-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (signal_user_input): Don't do a QUIT, to avoid
+       thrashing the stack of the thread.  (Bug#9087)
+
+2012-01-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses.
+
+2012-01-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (rows_from_pos_range): Handle the case where the
+       highlight ends on a newline.  (Bug#10464)
+       (mouse_face_from_buffer_pos): Fix off-by-one error in calculating
+       he end column for display of highlight that ends on a newline
+       before a R2L line.
+
+2012-01-11  Glenn Morris  <rgm@gnu.org>
+
+       * lread.c (init_lread): If no-site-lisp, remove site-lisp dirs
+       from load-path also when installation-directory is nil.  (Bug#10208)
+
 2012-01-10  Glenn Morris  <rgm@gnu.org>
 
+       * emacs.c (syms_of_emacs) <installation-directory>: Doc fix.
+
        * epaths.in (PATH_LOADSEARCH, PATH_EXEC, PATH_DATA, PATH_DOC):
        Update template values to be closer to their typical values these days.
 
        Remove unreachable code.
        (read_hex, load_charset_map_from_file): Check for integer overflow.
 
-       * xterm.c: don't go over XClientMessageEvent limit
+       * xterm.c: Don't go over XClientMessageEvent limit.
        (scroll_bar_windows_size): Now ptrdiff_t, as we prefer signed.
        (x_send_scroll_bar_event): Likewise.  Check that the size does not
        exceed limits imposed by XClientMessageEvent, as well as the usual
 
        * ccl.c (ccl_driver): Redo slightly to avoid the need for 'unsigned'.
 
-       ccl: add integer overflow checks
+       ccl: Add integer overflow checks.
        * ccl.c (CCL_CODE_MAX, GET_CCL_RANGE, GET_CCL_CODE, GET_CCL_INT):
        (IN_INT_RANGE): New macros.
        (ccl_driver): Use them to check for integer overflow when