1. 13 Oct, 2011 1 commit
  2. 12 Oct, 2011 5 commits
  3. 11 Oct, 2011 3 commits
  4. 08 Oct, 2011 5 commits
  5. 07 Oct, 2011 3 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
    • Paul Eggert's avatar
      * alloc.c (mark_memory): Omit 3rd (offset) arg; caller changed. · 3164aeac
      Paul Eggert authored
      Don't assume EMACS_INT alignment is the same as pointer alignment.
      (GC_POINTER_ALIGNMENT): New macro.
      3164aeac
  6. 06 Oct, 2011 1 commit
    • Paul Eggert's avatar
      [ChangeLog] · c9af454e
      Paul Eggert authored
      * configure.in (GC_LISP_OBJECT_ALIGNMENT): Remove.
      This is now done by src/alloc.c.
      [src/ChangeLog]
      * alloc.c: (GC_LISP_OBJECT_ARGUMENT):
      Use offsetof, not __alignof__ or sizeof.  __alignof__ gives
      the wrong answer on the x86 with GCC.
      c9af454e
  7. 03 Oct, 2011 1 commit
  8. 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
  9. 01 Oct, 2011 1 commit
  10. 30 Sep, 2011 7 commits
    • Paul Eggert's avatar
      * buffer.c (Fmove_overlay): Delete an evaporating overlay · 79cce3f2
      Paul Eggert authored
      if it becomes empty after its bounds are adjusted to fit within
      its buffer.  Without this fix, in a nonempty buffer (let ((o
      (make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
      yields an empty overlay that has the evaporate property, which is
      not supposed to happen.  (Bug#9642)
      79cce3f2
    • 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
    • Eli Zaretskii's avatar
      src/ChangeLog: Minor typos fixed. · 04c70788
      Eli Zaretskii authored
      04c70788
    • Paul Eggert's avatar
      Port --enable-checking=all to Fedora 14 x86-64. · 3930c88b
      Paul Eggert authored
      * charset.c (syms_of_charset): Also account for glibc malloc's
      internal overhead when calculating the initial malloc maximum.
      3930c88b
    • Paul Eggert's avatar
      Port --enable-checking=all to Fedora 14 x86. · cb993c58
      Paul Eggert authored
      * alloc.c (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
      Move to lisp.h.
      (xmalloc_put_size, xmalloc_get_size, overrun_check_malloc)
      (overrun_check_realloc, overrun_check_free):
      Use XMALLOC_OVERRUN_SIZE_SIZE, not sizeof (size_t).
      That way, xmalloc returns a properly-aligned pointer even if
      XMALLOC_OVERRUN_CHECK is defined.  The old debugging code happened
      to align OK on typical 64-bit hosts, but not on Fedora 14 x86.
      * charset.c (syms_of_charset): Take XMALLOC_OVERRUN_CHECK_OVERHEAD
      into account when calculating the initial malloc maximum.
      * lisp.h (XMALLOC_OVERRUN_CHECK_OVERHEAD, XMALLOC_OVERRUN_CHECK_SIZE):
      Move here from alloc.c, so that charset.c can use it too.
      Properly align; the old code wasn't right for common 32-bit hosts
      when configured with --enable-checking=all.
      (XMALLOC_BASE_ALIGNMENT, COMMON_MULTIPLE, XMALLOC_HEADER_ALIGNMENT)
      (XMALLOC_OVERRUN_SIZE_SIZE): New macros.
      cb993c58
  11. 29 Sep, 2011 2 commits
    • Eli Zaretskii's avatar
      Fix the MSDOS build. · 31bed486
      Eli Zaretskii authored
       msdos/mainmake.v2 (boot): Condition the value on the existence of
       autogen/README, not admin/admin.el, since the latter is now part
       of the release tarball.
       (install): Don't copy lib-src/fns.el, as that file is no longer
       generated in that directory.
       msdos/sed1v2.inp (LIB_PTHREAD, LIB_PTHREAD_SIGMASK): Edit to empty.
       (SETTINGS_CFLAGS, SETTINGS_LIBS): Edit these instead of
       GCONF_CFLAGS and GCONF_LIBS.
       msdos/sedlibmk.inp (ALLOCA_H, AR, ARFLAGS, GNULIB_CHDIR, GNULIB_DUP)
       (GNULIB_FDATASYNC, GNULIB_FDOPEN, GNULIB_FSTAT, GNULIB_PCLOSE)
       (GNULIB_PTHREAD_SIGMASK, GNULIB_RAISE, GNULIB_SIGACTION)
       (GNULIB_SIGPROCMASK, GNULIB_SIGNAL_H_SIGPIPE, HAVE_FDATASYNC)
       (HAVE_PCLOSE, HAVE_POPEN, HAVE_POSIX_SIGNALBLOCKING)
       (HAVE_PTHREAD_SIGMASK, HAVE_RAISE, HAVE_SIGACTION)
       (HAVE_SIGHANDLER_T, HAVE_SIGINFO_T, HAVE_SIGSET_T)
       (HAVE_STRUCT_SIGACTION_SA_SIGACTION)
       (HAVE_TYPE_VOLATILE_SIG_ATOMIC_T, LIB_PTHREAD)
       (LIB_PTHREAD_SIGMASK, NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H)
       (NEXT_SIGNAL_H, REPLACE_FDOPEN, REPLACE_PTHREAD_SIGMASK)
       (REPLACE_RAISE): New edits.
       (gl_LIBOBJS): Remove md5.o, filemode.o, and sha1.o.  Add
       pthread_sigmask.o.
       (@GL_GENERATE_ALLOCA_H_TRUE@, @GL_GENERATE_ALLOCA_H_FALSE@): Edit
       to comment out unneeded lines.
       (warn-on-use.h): Edit the recipe commands to work with DJGPP
       without requiring a Unixy shell.
       msdos/inttypes.h (strtoimax) [DJGPP < 2.04]: New macro.
       msdos/sed2v2.inp (HAVE_ALLOCA, HAVE_DECL_STRTOLL, HAVE_DECL_STRTOIMAX)
       (HAVE_STRTOLL, HAVE_SIGSET_T, HAVE_SNPRINTF): New edits.
      
       .bzrignore: Add ./GNUMakefile.unix.
       config.bat: Rename GNUMakefile, so it is not run on MS-DOS.
       Rename signal.in.h and alloca.in.h.
      
       src/sysdep.c (snprintf) [EOVERFLOW]: If EOVERFLOW is not defined,
       use EDOM.
      31bed486
    • Paul Eggert's avatar
      * alloc.c: Do not assume sizeof (size_t) is a multiple of 8 · 38532ce6
      Paul Eggert authored
      when debugging.
      (alignof, XMALLOC_BASE_ALIGNMENT, XMALLOC_HEADER_ALIGNMENT)
      (XMALLOC_OVERRUN_SIZE_SIZE): New macros.
      (XMALLOC_OVERRUN_CHECK_OVERHEAD, xmalloc_put_size, xmalloc_get_size)
      (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
      Replace uses of sizeof (size_t) with XMALLOC_OVERRUN_SIZE_SIZE.
      38532ce6
  12. 28 Sep, 2011 2 commits
    • Eli Zaretskii's avatar
      Fix bug #9624 with crashes in Muse mode. · fbcaa2f3
      Eli Zaretskii authored
       src/xdisp.c (compute_display_string_end): If there's no display
       string at CHARPOS, return -1.
       src/bidi.c (bidi_fetch_char): When compute_display_string_end
       returns a negative value, treat the character as a normal
       character not covered by a display string.
      fbcaa2f3
    • Juanma Barranquero's avatar
      Fix typos. · a239d4e9
      Juanma Barranquero authored
      a239d4e9
  13. 27 Sep, 2011 7 commits