1. 08 Mar, 2013 9 commits
  2. 07 Mar, 2013 10 commits
    • Dmitry Antipov's avatar
      * bidi.c (bidi_fetch_char): Swap first and second arguments · 36075a19
      Dmitry Antipov authored
      to match other functions accepting character and byte positions.
      Adjust comment.
      (bidi_resolve_explicit_1, bidi_level_of_next_char): Adjust users.
      (bidi_paragraph_init): Likewise.  Use DEC_BOTH which is faster
      when you need just to move to the previous buffer position.
      * xdisp.c (Fcurrent_bidi_paragraph_direction): Use DEC_BOTH.
      36075a19
    • Karl Fogel's avatar
      * bookmark.el: Define a face to highlight bookmark names in · c095b770
      Karl Fogel authored
      bookmark menu buffers, where the default is a bold face similarly
      to buffer names in buffer menu buffers.  Patch by Matthias Meulien
      <orontee {_AT_} gmail.com>.
      
      (bookmark-menu-bookmark): New face to highlight bookmark names.
      (bookmark-insert-location): Removes dupplicated text property to
      conform to buffer list (see `list-buffers')
      (bookmark-bmenu-list, bookmark-bmenu-hide-filenames): Apply face
      `bookmark-menu-bookmark' to bookmark names.
      c095b770
    • Karl Fogel's avatar
      * bookmark.el: Display the bookmark list header similarly to the · 7a78e19f
      Karl Fogel authored
      buffer list header (see `list-buffers'), where the default is now
      an immovable/immutable header line.  Patch by Matthias Meulien
      <orontee {_AT_} gmail.com> with a few tweaks by me.
      
      (bookmark-bmenu-use-header-line): New variable.
      (bookmark-bmenu-inline-header-height): New name for
      `bookmark-bmenu-header-height', to avoid confusion with the code
      for the new immovable header.  All references changed.
      (bookmark-bmenu-set-header): New function.
      (bookmark-bmenu-list, bookmark-bmenu-toggle-filenames):
      Conditionalize header construction accordingly.
      (bookmark-bmenu-ensure-position): Conditionalize the skipping of
      the inline header height.
      (bookmark-bmenu-show-filenames, bookmark-bmenu-hide-filenames):
      Conditionalize the skipping of the inline header height.
      7a78e19f
    • Dmitry Gutov's avatar
    • Eli Zaretskii's avatar
    • Katsumi Yamaoka's avatar
    • Paul Eggert's avatar
      86c86abf
    • Glenn Morris's avatar
      fe5b74fc
    • Dmitry Antipov's avatar
      Avoid character to byte conversions in motion subroutines. · c54aa166
      Dmitry Antipov authored
      * indent.h (compute_motion, vmotion): Add byte position argument.
      * indent.c (compute_motion): Use it and avoid CHAR_TO_BYTE.
      Add eassert.
      (Fcompute_motion): Break long line.  Adjust call to compute_motion.
      Use list5 for return value.
      (vmotion): Use byte position argument and avoid call to CHAR_TO_BYTE.
      Adjust comments, style and calls to compute_motion.
      (Fvertical_motion): Adjust call to vmotion.
      * window.c (Fdelete_other_windows_internal): Record window start
      byte position and adjust call to vmotion.
      (window_scroll_line_based): Likewise with call to compute_motion.
      Use SET_PT_BOTH.
      (Frecenter): Adjust calls to vmotion.
      c54aa166
    • Dmitry Antipov's avatar
      * lisp.h (list2i, list3i): New functions. · 3de717bd
      Dmitry Antipov authored
      (list4i): Move from window.c and make LISP_INLINE.
      * editfns.c (make_lisp_time):
      * fns.c (Flocale_info):
      * keyboard.c (parse_modifiers):
      * xterm.c (x_ewmh_activate_frame): Use list2i.
      * instel.c (signal_after_change):
      * nsfns.m (Fx_server_version, Fxw_color_values):
      * w32fns.c (Fxw_color_values, Fx_server_version):
      * xfns.c (Fxw_color_values, Fx_server_version): Use list3i.
      * fileio.c (Fvisited_file_modtime):
      * nsfns.m (Fns_display_usable_bounds):
      * w32.c (ltime): Use list4i.
      3de717bd
  3. 06 Mar, 2013 11 commits
  4. 05 Mar, 2013 10 commits
    • Dmitry Antipov's avatar
      * lisp.h (find_next_newline_no_quit): Rename to find_next_newline. · ffc65bee
      Dmitry Antipov authored
      * xdisp.c (back_to_previous_line_start, forward_to_next_line_start)
      (get_visually_first_element, move_it_vertically_backward): Ajust users.
      * bidi.c (bidi_find_paragraph_start): Likewise.
      * indent.c (vmotion): Likewise.
      ffc65bee
    • Paul Eggert's avatar
      FILE's lock is now always .#FILE and may be a regular file. · 70743157
      Paul Eggert authored
      * etc/NEWS: Document this.
      * nt/inc/unistd.h (O_NOFOLLOW): New macro.
      * src/filelock.c: Include <c-ctype.h>.
      (MAX_LFINFO): New top-level constant.
      (lock_info_type): Remove members pid, boot_time.  Add members at,
      dot, colon.  Change user member to be the entire buffer, not a
      pointer.  This allows us to handle the case where a foreign
      pid or boot time exceeds the local range.  All uses changed.
      (LINKS_MIGHT_NOT_WORK): New constant.
      (FREE_LOCK_INFO): Remove, as the pieces no longer need freeing.
      (defined_WINDOWSNT): Remove.
      (MAKE_LOCK_NAME, file_in_lock_file_name):
      Always use .#FILE (not .#-FILE) for the file lock,
      even if it is a regular file.
      (rename_lock_file): New function.
      (create_lock_file): Use it.
      (create_lock_file, read_lock_data):
      Prefer a symbolic link for the lock file, falling back on a
      regular file if symlinks don't work.  Do not try to create
      symlinks on MS-Windows, due to security hassles.  Stick with
      POSIXish functions (open, read, write, close, fchmod, readlink, symlink,
      link, rename, unlink, mkstemp) when creating locks, as a GNUish
      host may be using a Windowsish file system, and cannot use
      MS-Windows-only system calls.  Fall back on mktemp if mkstemp
      doesn't work.  Don't fail merely because of a symlink-contents
      length limit in the current file system; fall back on regular
      files.  Increase the symlink contents length limit to 8 KiB, this
      should be big enough for any real use and doesn't crunch the
      stack.
      (create_lock_file, lock_file_1, read_lock_data):
      Simplify allocation of lock file buffers now that they fit in 8 KiB.
      (lock_file_1): Return error number, not bool.  All callers changed.
      (ELOOP): New macro, if not already defined.
      (read_lock_data): Return size of lock file contents, not Lisp object.
      All callers changed.  Handle a race condition if some other process
      replaces a regular-file lock with a symlink lock or vice versa,
      while we're trying to read the lock.
      (current_lock_owner): Parse contents more carefully, to help avoid
      confusing a regular-file lock with some other application's use
      of the file.  Check for lock file contents being too long, or
      not parsing correctly.
      (current_lock_owner, lock_file):
      Allow foreign pid and boot times that exceed the local range.
      (current_lock_owner, lock_if_free, lock_file):
      Simplify allocation of lock file contents.
      * src/w32.c (sys_rename_replace): New function, containing most of
      the contents of the old sys_rename.
      (sys_rename): Use it.
      (fchmod): New dummy function.
      * src/w32.h (sys_rename_replace, fchmod): New decls.
      
      Fixes: debbugs:13807
      70743157
    • Paul Eggert's avatar
      Fix a build failure on OpenBSD 4.x and MirBSD. · 9b1c3271
      Paul Eggert authored
      * sysdep.c (list_system_processes) [__OpenBSD__ || __MirBSD__]:
      Make it a stub in this case; otherwise the build might fail,
      and even if the build worked the function would just return nil anyway.
      Problem reported by Nelson H. F. Beebe in
      <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00021.html>
      and analyzed by Jérémie Courrèges-Anglas in
      <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00062.html>.
      
      Fixes: debbugs:13881
      9b1c3271
    • Eli Zaretskii's avatar
      Don't sync charpos and bytepos in bidi_resolve_explicit_1. · 05e193f1
      Eli Zaretskii authored
       src/bidi.c (bidi_resolve_explicit_1): Don't call CHAR_TO_BYTE or
       bidi_count_bytes, as the callers now arrange for bidi_it->charpos
       to be in sync with bidi_it->bytepos.  Suggested by Dmitry Antipov
       <dmantipov@yandex.ru>.
      05e193f1
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      * configure.ac (TERM_HEADER): Remove duplicate definition. · 3b108d19
      Paul Eggert authored
      It can mess up 'configure' runs.
      
      Fixes: debbugs:13872
      3b108d19
    • Paul Eggert's avatar
    • Michael Albinus's avatar
      * net/tramp-compat.el (tramp-compat-delete-directory): Implement · 11f4d68f
      Michael Albinus authored
      TRASH argument.
      11f4d68f
    • Paul Eggert's avatar
    • Dmitry Gutov's avatar
      Keep pre-existing highlighting in completion candidates. · c7a409b6
      Dmitry Gutov authored
      * lisp/minibuffer.el (completions-first-difference): State that the
      face is "added" in the docstring.
      (completions-common-part): Same.  And don't inherit from default.
      (completion-hilit-commonality): Prepend 'completions-common-part
      and 'completion-first-difference faces to the 'face property,
      instead of replacing the value(s).
      (completion--insert-strings): Same with 'completions-annotations face.
      (completion-hilit-commonality): Use 'face instead of
      'font-lock-face, because it gets priority if the completion
      strings already have 'face set.
      
      Fixes: debbugs:13250
      c7a409b6