1. 13 Feb, 2013 11 commits
  2. 12 Feb, 2013 15 commits
  3. 11 Feb, 2013 14 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.
      a84b7c53
    • Paul Eggert's avatar
      Merge from gnulib. · 71d4202f
      Paul Eggert authored
      71d4202f
    • 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.
      6659b59c
    • 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
      227be86d
    • 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.
      b09a4810
    • Elias Pipping's avatar
      * lisp/doc-view.el (doc-view-current-cache-dir): Beware % escapes. · 4fa60c54
      Elias Pipping authored
      Fixes: debbugs:13679
      4fa60c54
    • 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)
      (read_char_minibuf_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.
      99d0d6dc
    • 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.
      f5e1b680
    • 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.
      713bfeaa
    • Glenn Morris's avatar
      Auto-commit of generated files. · 2f559cd2
      Glenn Morris authored
      2f559cd2
    • Michael Albinus's avatar
      * NEWS: Add autorevert changes. · add89f61
      Michael Albinus authored
      add89f61
    • Dmitry Antipov's avatar
      * marker.c (set_marker_internal): If desired position is passed · f74de345
      Dmitry Antipov authored
      as a marker, avoid call to buf_charpos_to_bytepos.
      * window.c (Fset_window_point): Omit redundant type checking.
      (Fset_window_start): Likewise.  Format comment.
      (window_scroll_pixel_based): Use set_marker_restricted_both
      with character and byte positions obtained from an iterator.
      (Fset_window_configuration): Use set_marker_restricted_both.
      * xdisp.c (message_dolog): Likewise.
      f74de345
    • Glenn Morris's avatar
      Check whether diff supports --label before using it · 5109429f
      Glenn Morris authored
      * lisp/vc/diff.el (diff-use-labels): New variable.
      (diff-no-select): Use --label rather than -L, and first
      check that it is supported.
      
      Fixes: debbugs:11067
      5109429f
    • Glenn Morris's avatar
      Add `enable-dir-local-variables' · 97a1cd9d
      Glenn Morris authored
      * lisp/files.el (enable-dir-local-variables): New variable.
      (hack-dir-local-variables): Respect enable-dir-local-variables.
      
      * lisp/tutorial.el (help-with-tutorial): Ignore directory-local variables.
      
      Fixes: debbugs:11127
      97a1cd9d