1. 13 Feb, 2013 15 commits
  2. 12 Feb, 2013 15 commits
  3. 11 Feb, 2013 10 commits
    • Paul Eggert's avatar
      Tune by using memchr and memrchr. · a84b7c53
      Paul Eggert authored
      * .bzrignore: Add string.h.
      * admin/merge-gnulib (GNULIB_MODULES): Add memrchr.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/memrchr.c, lib/string.in.h, m4/memrchr.m4, m4/string_h.m4:
      New files, from gnulib.
      * src/doc.c (Fsnarf_documentation):
      * src/fileio.c (Fsubstitute_in_file_name):
      * src/search.c (find_newline, scan_newline):
      * src/xdisp.c (pos_visible_p, display_count_lines):
      Use memchr and memrchr rather than scanning byte-by-byte.
      * src/search.c (find_newline): Rename from scan_buffer.
      Omit first arg TARGET, as it's always '\n'.  All callers changed.
    • Paul Eggert's avatar
      Merge from gnulib. · 71d4202f
      Paul Eggert authored
    • Stefan Monnier's avatar
      Aidan Gauland <aidalgol@no8wireless.co.nz> · 6659b59c
      Stefan Monnier authored
      Fixes: debbugs:13689
      * lisp/erc/erc-match.el (erc-match-message): Don't truncate action messages.
    • Paul Eggert's avatar
      Improve AIX port. · 227be86d
      Paul Eggert authored
      This doesn't fix the bug, but it makes progress: Emacs builds now.
      * unexaix.c: Include inttypes.h, stdarg.h.
      (report_error, report_error_1): Mark as _Noreturn.
      (report_error): Don't report the wrong errno.
      (report_error_1): Now varargs.  All callers changed.
      (make_hdr): Use uintptr_t, not unsigned, when converting pointers
      to unsigned.  Don't use ADDR_CORRECT, as it no longer exists.
      (write_ptr): Use %p to print address rather than %lx and a cast
      to unsigned long.  Grow buffer a bit, to be safer.
      Fixes: debbugs:13650
    • Paul Eggert's avatar
      Clean up read_key_sequence a tiny bit more. · b09a4810
      Paul Eggert authored
      * keyboard.c (read_char_x_menu_prompt) [HAVE_MENUS]:
      (read_key_sequence): Remove unused locals.
    • Elias Pipping's avatar
      * lisp/doc-view.el (doc-view-current-cache-dir): Beware % escapes. · 4fa60c54
      Elias Pipping authored
      Fixes: debbugs:13679
    • Stefan Monnier's avatar
      Clean up read_key_sequence a bit; reread active keymaps after first event. · 99d0d6dc
      Stefan Monnier authored
      * src/keyboard.c (read_char, read_char_x_menu_prompt)
      Replace nmaps+maps with a single `map' arg.
      (follow_key): Operate on a single map.
      (active_maps): New function.
      (test_undefined): Also return true for nil bindings.
      (read_key_sequence): Use active_maps to replace the arrays of keymaps with
      a single (composed) keymap.  Remember `first_event' to choose the right
      set of active keymaps.  Recompute the set of keymaps after receiving
      the first event.  Remove GOBBLE_FIRST_EVENT.
      (syms_of_keyboard): Remove inhibit_local_menu_bar_menus.
      * src/keyboard.h (read_char): Update declaration.
      * src/lread.c (read_filtered_event): Adjust call to read_char.
      * lisp/cus-start.el (all): Remove inhibit-local-menu-bar-menus.
    • Eli Zaretskii's avatar
      Fix previous commit for bug #13675. · f5e1b680
      Eli Zaretskii authored
       src/xdisp.c (move_it_vertically_backward, move_it_by_lines): Don't
       use the limitation on backwards movement when lines are truncated
       in the window.
    • Eli Zaretskii's avatar
      Fix rare aborts in bidi.c. · 713bfeaa
      Eli Zaretskii authored
       src/bidi.c (bidi_resolve_neutral): After finding the next
       non-neutral character, accept NEUTRAL_ON type as well, because
       directional control characters, such as LRE and RLE, have their
       type converted to that by bidi_resolve_weak.  This avoids aborts
       when LRE/RLE follows a run of neutrals.
       (bidi_move_to_visually_next): Assert that return value of
       bidi_peek_at_next_level is non-negative.  Negative values will
       cause an infloop.
    • Glenn Morris's avatar
      Auto-commit of generated files. · 2f559cd2
      Glenn Morris authored