1. 27 Oct, 2011 2 commits
  2. 26 Oct, 2011 2 commits
  3. 25 Oct, 2011 3 commits
  4. 20 Oct, 2011 2 commits
    • Eli Zaretskii's avatar
      Improve the speedup of bidi display introduced in 2011-10-18T16:56:09Z!eliz@gnu.org for bug#9771. · 7b5d6677
      Eli Zaretskii authored
       src/dispextern.h (struct bidi_it): New member next_en_type.
       src/bidi.c (bidi_line_init): Initialize the next_en_type member.
       (bidi_resolve_explicit_1): When next_en_pos is valid for the
       current character, check also for next_en_type being WEAK_EN.
       (bidi_resolve_weak): Don't enter the expensive loop if the current
       position is before next_en_pos.  Record the bidi type of the first
       non-ET, non-BN character we find, in addition to its position.
       (bidi_level_of_next_char): Invalidate next_en_type when
       next_en_pos is over-stepped.
      7b5d6677
    • Paul Eggert's avatar
      Time zone name fixes for non-ASCII locales (Bug#641, Bug#9794) · 7da0b018
      Paul Eggert authored
      * configure.in (AC_STRUCT_TM, AC_STRUCT_TIMEZONE, HAVE_TM_GMTOFF):
      Remove; no longer needed, now that we defer to strftime for time
      zone names.
      * src/editfns.c: Rewrite current-time-zone so that it invokes
      the equivalent of (format-time-string "%Z") to get the time zone name.
      This fixes a bug when the time zone name contains characters that
      need converting from the system time locale to Emacs internal format.
      This fixes a shortcoming that I introduced in my 1999-10-19 patch:
      that patch fixed format-time-string to do the conversion, but
      I forgot to fix current-time-zone.
      (format_time_string): New function, containing most of
      what Fformat_time_string used to contain.
      (Fformat_time_string): Rewrite in terms of format_time_string.
      This doesn't change this function's behavior.
      (current-time-zone): Rewrite to use format_time_string.
      This fixes the bug reported by Michael Schierl in
      <http://lists.gnu.org/archive/html/emacs-devel/2007-06/msg00334.html>.
      Jason Rumney's 2007-06-07 change worked around this bug, but
      didn't fix it.
      * src/systime.h (tzname, timezone): Remove no-longer-used declarations.
      7da0b018
  5. 19 Oct, 2011 2 commits
  6. 18 Oct, 2011 2 commits
    • Chong Yidong's avatar
      Have nobreak-char-display handle U+2010 and U+2011. · 4e948d15
      Chong Yidong authored
      See discussion at
      http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg00747.html
      
      * src/xdisp.c (get_next_display_element): Handle U+2010 and U+2011
      with nobreak-char-display too.
      4e948d15
    • Eli Zaretskii's avatar
      Fix bug #9771 with slow redisplay in long lines full of control characters. · 4787455f
      Eli Zaretskii authored
       src/bidi.c (bidi_line_init): Initialize next_en_pos to zero, not -1.
       (bidi_resolve_neutral): Don't enter the expensive loop looking for
       non-neutral characters if the current character is a paragraph
       separator (a.k.a. Newline).  This avoids running the same
       expensive loop twice, once when we consume the preceding newline
       and the other time when the line actually needs to be displayed.
       Avoid the loop when we see neutrals on the base embedding level
       following a character whose directionality is the same as the
       paragraph's.  This avoids running the expensive loop when a line
       ends in a long sequence of neutrals, like control characters.
       Add assertion against STRONG_AL type.  Slightly rearrange code
       that determines the type of a neutral given the first non-neutral
       that follows it.
       (bidi_level_of_next_char): Set next_en_pos to zero when
       invalidating its info.
      4787455f
  7. 17 Oct, 2011 2 commits
  8. 15 Oct, 2011 1 commit
  9. 14 Oct, 2011 1 commit
  10. 13 Oct, 2011 2 commits
  11. 12 Oct, 2011 7 commits
  12. 11 Oct, 2011 2 commits
  13. 08 Oct, 2011 4 commits
  14. 07 Oct, 2011 2 commits
    • Stefan Monnier's avatar
      * src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don't · a66cfb1c
      Stefan Monnier authored
      advertise functionality which we discourage or doesn't work.
      a66cfb1c
    • Paul Eggert's avatar
      Fix alignment-related core dump during GC. · 7c5ee88e
      Paul Eggert authored
      * configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove.
      This is now done by src/alloc.c.
      * src/alloc.c (GC_LISP_OBJECT_ALIGNMENT): Use offsetof, not __alignof__
      or sizeof.  __alignof__ gives the wrong answer on Fedora x86-64
      with GCC 4.6.1 when configured with CC='gcc -m32' --with-wide-int;
      this makes Emacs dump core during garbage collection on rare
      occasions.  sizeof is obviously inferior to offsetof here, so
      stick with offsetof.
      (GC_POINTER_ALIGNMENT): New macro.
      (mark_memory): Omit 3rd (offset) arg; caller changed.
      Don't assume EMACS_INT alignment is the same as pointer alignment.
      7c5ee88e
  15. 03 Oct, 2011 1 commit
  16. 02 Oct, 2011 2 commits
    • Stefan Monnier's avatar
      * lisp/pcomplete.el: Require comint. · 32c1fffd
      Stefan Monnier authored
      (pcomplete--common-suffix): Remove.
      (pcomplete--common-quoted-suffix): Use comint--common-suffix instead.
      (pcomplete--table-subvert): Sync with comint--table-subvert.
      (pcomplete--entries): Use comint-completion-file-name-table.
      * lisp/comint.el (comint-unquote-filename): Simplify.
      (comint-completion-file-name-table): New function.
      (comint--complete-file-name-data): Use it.
      * src/dired.c (file_name_completion): Don't expand file name.
      (Ffile_name_completion, Ffile_name_all_completions): Expand file name
      before checking file name handler.
      
      Fixes: debbugs:9616
      32c1fffd
    • Stefan Monnier's avatar
      * src/minibuf.c (Finternal_complete_buffer): Only show internal buffers if · 51553db6
      Stefan Monnier authored
      they've been requested explicitly.
      
      Fixes: debbugs:9591
      51553db6
  17. 30 Sep, 2011 3 commits
    • Paul Eggert's avatar
      * buffer.h (struct buffer): Use time_t, not int, for a time stamp. · 4222c55d
      Paul Eggert authored
      This fixes a Y2038 bug on 64-bit hosts.
      * buffer.c (reset_buffer):
      * fileio.c (Fdo_auto_save, Fset_buffer_auto_saved)
      (Fclear_buffer_auto_save_failure):
      Use 0, not -1, to represent an unset failure time, since time_t
      might not be signed.
      4222c55d
    • Paul Eggert's avatar
      Remove dependency on glibc malloc internals. · f701dc2a
      Paul Eggert authored
      * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
      Move back here from lisp.h, but with their new implementations.
      (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
      (XMALLOC_OVERRUN_SIZE_SIZE): Move these new lisp.h macros here.
      * charset.c (charset_table_init): New static var.
      (syms_of_charset): Use it instead of xmalloc.  This removes a
      dependency on glibc malloc internals.  See Eli Zaretskii's comment in
      <http://lists.gnu.org/archive/html/emacs-devel/2011-09/msg00815.html>.
      * lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
      Move back to alloc.c.
      (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
      (XMALLOC_OVERRUN_SIZE_SIZE): Move to alloc.c.
      f701dc2a
    • Jan Djärv's avatar
      * nsterm.m (windowDidResize): Call x_set_window_size only when · 9ceebf39
      Jan Djärv authored
      ns_in_resize is true.  Otherwise set pixelwidth/height and
      call change_frame_size.
      
      Fixes: debbugs:9628
      9ceebf39