1. 09 May, 2013 1 commit
  2. 08 May, 2013 3 commits
  3. 07 May, 2013 8 commits
    • Paul Eggert's avatar
      Use Gnulib ACL implementation, for benefit of Solaris etc. · ffdc270a
      Paul Eggert authored
      * configure.ac: Remove -with-acl option, since Gnulib does that for
      us now.
      (LIBACL_LIBS): Remove; no longer needed.
      * lib/Makefile.am (CLEANFILES, SUFFIXES): New (empty) macros,
      for the benefit of the new ACL implementation.
      * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/acl-errno-valid.$(O).
      ($(BLD)/acl-errno-valid.$(O)): New rule.
      * lib/acl-errno-valid.c, lib/acl-internal.h, lib/acl.h:
      * lib/acl_entries.c, lib/errno.in.h, lib/file-has-acl.c:
      * lib/qcopy-acl.c, lib/qset-acl.c, m4/acl.m4, m4/errno_h.m4:
      New files, taken from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * admin/merge-gnulib (GNULIB_MODULES): Add qacl.
      (GNULIB_TOOL_FLAGS): Do not avoid errno.
      * etc/NEWS: Emacs is no longer limited to POSIX ACLs.  --disable-acl,
      not --without-acl, since we're now using Gnulib's implementation.
      * nt/config.nt (HAVE_ACL_SET_FILE): Rename from HAVE_POSIX_ACL.
      * nt/inc/ms-w32.h (EOPNOTSUPP): New macro.
      * src/Makefile.in (LIB_ACL): New macro.
      (LIBACL_LIBS): Remove.
      (LIBES): Use LIB_ACL, not LIBACL_LIBS.
      * src/fileio.c: Include <acl.h>.
      Use HAVE_ACL_SET_FILE rather than HAVE_POSIX_ACL.
      (ACL_NOT_WELL_SUPPORTED): Remove.  All uses replaced by
      !acl_errno_valid.
      (Fcopy_file) [!WINDOWSNT]: Use qcopy_acl instead of rolling
      it ourselves.
      
      Fixes: debbugs:14295
      ffdc270a
    • Paul Eggert's avatar
      * unexelf.c: Don't assume ElfW (Half) fits in int. · f269bc61
      Paul Eggert authored
      (entry_address, find_section, unexec): Use ptrdiff_t, not int,
      when dealing with ElfW (Half) values, since they can exceed 2**31
      on 64-bit OpenBSD hosts.  Problem reported privately by Han Boetes.
      (entry_address): Omit unused NUM arg.  All uses changed.
      f269bc61
    • Juri Linkov's avatar
      * src/callint.c (Fcall_interactively): Set `visargs[i]' for code 'n' · a261c53e
      Juri Linkov authored
      to the string converted from number with `Fnumber_to_string'.
      
      Fixes: debbugs:14254
      a261c53e
    • Paul Eggert's avatar
      * xfns.c (x_get_net_workarea): Define only if !GTK || GTK<3.4. · 2b66427d
      Paul Eggert authored
      This fixes a problem introduced by my previous change.
      2b66427d
    • Glenn Morris's avatar
    • Jan Djärv's avatar
    • Paul Eggert's avatar
      Static checking by GCC 4.8.0. · e0c9d565
      Paul Eggert authored
      * xfns.c (x_get_net_workarea, struct MonitorInfo, free_monitors)
      (x_get_monitor_for_frame, x_make_monitor_attribute_list)
      (x_get_monitor_attributes_fallback)
      (x_get_monitor_attributes_xinerama)
      (x_get_monitor_attributes_xrandr, x_get_monitor_attributes):
      Define only if USE_GTK.
      (free_monitors): Define only if HAVE_XINERAMA || HAVE_XRANDR.
      (x_get_monitor_attributes_fallback): Omit unused locals.
      (x_get_monitor_attributes_xinerama, Fx_display_monitor_attributes_list):
      Use double, not float, to avoid mixed-mode floating point arithmetic.
      e0c9d565
    • YAMAMOTO Mitsuharu's avatar
      Add multi-monitor support on X11. · 4e3f9230
      YAMAMOTO Mitsuharu authored
      4e3f9230
  4. 06 May, 2013 3 commits
    • Eli Zaretskii's avatar
      Fix bug #14241 with posn-at-point at the beginning of an image display prop. · 05839b6a
      Eli Zaretskii authored
       src/xdisp.c (pos_visible_p): Use the special code for finding the
       beginning of a display property or overlay for any "replacing"
       display property, not just for display strings.  This solves
       incorrect reporting of position by posn-at-point.
      05839b6a
    • Paul Eggert's avatar
      * unexelf.c: Fix some 32-bit integer problems, notably when debugging. · 5ee94506
      Paul Eggert authored
      Include <limits.h>, <stdbool.h>, <intprops.h>, <verify.h>.
      Verify that ElfW (Half) fits in int.
      (fatal): Use same signature as lisp.h.
      (UNEXELF_DEBUG): New macro, replacing DEBUG, so that people can
      configure and build with -DUNEXELF_DEBUG without worrying about
      other modules that use DEBUG.
      (DEBUG_LOG) [UNEXELF_DEBUG]: New macro.  All debug code that prints
      possibly-wide integers now uses it instead of plain fprintf.
      (entry_address): New function, which avoids problems with 32-bit
      overflow on 64-bit hosts.
      (OLD_SECTION_H, NEW_SECTION_H, NEW_PROGRAM_H): Use it.
      (round_up): Don't assume the remainder fits in int.
      (find_section): Use bool for boolean.  Simplify debug code.
      (unexec): Don't assume file sizes fit in int or size_t.
      Omit unnecessary trailing newline in 'fatal' format.
      Use strerror rather than outputting decimal error number.
      Remove unused code when emacs is not defined;
      this file relies on Emacs now.
      Don't assume e_phnum and e_shnum are positive.
      5ee94506
    • Paul Eggert's avatar
      * regex.c: Fix problems when DEBUG is defined. · dc4a2ee0
      Paul Eggert authored
      (extract_number, extract_number_and_incr): Define regardless of
      whether DEBUG is defined; that's simpler and makes the code less
      likely to go stale in the normal case when DEBUG is not defined.
      Return int rather than taking an int * arg.  All callers changed.
      (DEBUG_PRINT1, DEBUG_PRINT2, DEBUG_PRINT3, DEBUG_PRINT4):
      Remove, replacing with ...
      (DEBUG_PRINT): New macro.  All callers changed.
      (DEBUG_COMPILES_ARGUMENTS): New macro.
      (print_fastmap, print_partial_compiled_pattern) [DEBUG]:
      (print_compiled_pattern, print_double_string) [DEBUG]:
      Use prototype rather than old-style definition.
      (print_partial_compiled_pattern, print_compiled_pattern) [DEBUG]:
      (ENSURE_FAIL_STACK, PUSH_FAILURE_REG) [DEBUG]:
      (POP_FAILURE_REG_OR_COUNT, PUSH_FAILURE_POINT) [DEBUG]:
      (POP_FAILURE_POINT, re_match_2_internal) [DEBUG]:
      Don't assume ptrdiff_t, size_t, and long are the same width as int.
      (POINTER_TO_OFFSET): Return ptrdiff_t, not regoff_t.
      This matters only when DEBUG is defined.
      dc4a2ee0
  5. 05 May, 2013 3 commits
  6. 04 May, 2013 2 commits
    • Stefan Monnier's avatar
      * lisp/simple.el (read-expression-map): Use completion-at-point. · 30c7e542
      Stefan Monnier authored
      Move the declaration from C.
      (read-minibuffer, eval-minibuffer): Move from C.
      (completion-setup-function): Avoid minibuffer-completion-contents.
      * src/minibuf.c (Fread_minibuffer, Feval_minibuffer): Move to Elisp.
      (syms_of_minibuf): Adjust accodingly.
      * src/lread.c (Fread):
      * src/callint.c (Fcall_interactively): Adjust calls accordingly.
      
      Fixes: debbugs:14255
      30c7e542
    • Eli Zaretskii's avatar
      Fix bug #14062 with assertion violations on MS-Windows. · 5bebd186
      Eli Zaretskii authored
       src/dispextern.h (WINDOW_WANTS_HEADER_LINE_P): Verify that
       w->contents is a buffer before computing everything else.  Use
       parentheses to disambiguate last part of the condition.
       src/w32fns.c (w32_wnd_proc): Remove temporary code used to trap
       assertion violations.
      5bebd186
  7. 01 May, 2013 1 commit
  8. 28 Apr, 2013 3 commits
  9. 27 Apr, 2013 3 commits
  10. 26 Apr, 2013 1 commit
    • Paul Eggert's avatar
      Port better to AIX. · f780d632
      Paul Eggert authored
      * configure.ac (CFLAGS): Append -O if the user did not specify CFLAGS,
      we did not already infer an optimization option, and -O works.
      AIX xlc needs -O, otherwise garbage collection doesn't work.
      * src/lisp.h (ENUM_BF) [__IBMC__]: Make it 'unsigned int' here, too,
      to pacify AIX xlc.
      
      Fixes: debbugs:14258
      f780d632
  11. 24 Apr, 2013 1 commit
  12. 22 Apr, 2013 1 commit
  13. 16 Apr, 2013 2 commits
  14. 15 Apr, 2013 2 commits
    • Eli Zaretskii's avatar
      ChangeLog for the last commit. · 5fbcd237
      Eli Zaretskii authored
      5fbcd237
    • Eli Zaretskii's avatar
      More debugging code to investigate bug #14062. · fd16b54c
      Eli Zaretskii authored
       src/w32fns.c (w32_wnd_proc): Add more assertions to investigate
       bug#14062.
       src/frame.h (WINDOW_FRAME): Protect macro and its argument with
       parentheses.
       src/dispextern.h (CURRENT_MODE_LINE_HEIGHT)
       (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P)
       (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with
       parentheses where appropriate.
      fd16b54c
  15. 14 Apr, 2013 2 commits
  16. 13 Apr, 2013 1 commit
  17. 12 Apr, 2013 1 commit
  18. 11 Apr, 2013 1 commit
    • Eli Zaretskii's avatar
      Fix bug #14170 with window-end returning a stale value. · fcc1fe85
      Eli Zaretskii authored
      This bug was introduced in 2012-10-15T09:03:56Z!rudalics@gmx.at
      while solving bug #12600.
      
       src/window.c (Fwindow_end): Test more flags, including the buffer's
       last_overlay_modified flag, to determine whether the window's
       display is really up-to-date.  Prevents the function from
       returning a stale value.
       (Fwindow_line_height): Fix the test for up-to-date-ness of the
       current matrix.
      fcc1fe85
  19. 10 Apr, 2013 1 commit