From: Paul Eggert Date: Tue, 31 May 2011 05:45:07 +0000 (-0700) Subject: Merge from trunk. X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~45^2~4 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86f3178890f56cb408949e125d5d99e3124dd48f;p=emacs.git Merge from trunk. --- 86f3178890f56cb408949e125d5d99e3124dd48f diff --cc ChangeLog index f64a271f77c,f72f530b480..15d60a55706 --- a/ChangeLog +++ b/ChangeLog @@@ -1,12 -1,8 +1,15 @@@ 2011-05-30 Paul Eggert + Malloc failure behavior now depends on size of allocation. + * lib/allocator.h (struct allocator.die): New size arg. + * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function. + If the actual problem is an ssize_t limitation, not a size_t or + malloc failure, fail with errno == ENAMETOOLONG instead of calling + 'die'. (Bug#8762) + + Use 'inline', not 'INLINE'. + * configure.in (INLINE): Remove. + 2011-05-29 Paul Eggert Adjust to recent gnulib change for @GUARD_PREFIX@. diff --cc src/ChangeLog index fda9e440422,fa8022b0d4d..90344adbe27 --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,21 -1,37 +1,55 @@@ - 2011-05-30 Paul Eggert + 2011-05-31 Paul Eggert + Malloc failure behavior now depends on size of allocation. + * alloc.c (buffer_memory_full, memory_full): New arg NBYTES. + * lisp.h: Change signatures accordingly. + * alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c: + All callers changed. (Bug#8762) + + Use 'inline', not 'INLINE'. + + * alloc.c, fontset.c (INLINE): Remove. + * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: + * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: + * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. + * gmalloc.c (register_heapinfo): Use inline unconditionally. + * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__. + + 2011-05-31 Dan Nicolaescu + + Make it possible to run ./temacs. + + * callproc.c (set_initial_environment): Remove CANNOT_DUMP code, + syms_of_callproc does the same thing. Remove test for + "initialized", do it in the caller. + * emacs.c (main): Avoid calling set_initial_environment when dumping. + + 2011-05-31 Stefan Monnier + + * minibuf.c (Finternal_complete_buffer): Return `category' metadata. + (read_minibuf): Use get_minibuffer. + (syms_of_minibuf): Use DEFSYM. + (Qmetadata): New var. + * data.c (Qbuffer): Don't make it static. + (syms_of_data): Use DEFSYM. + + 2011-05-31 Paul Eggert + + * ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751) + (CCL_CODE_MIN): New macro. + ++2011-05-30 Paul Eggert ++ + * gnutls.c: Use Emacs's memory allocators. + Without this change, the gnutls library would invoke malloc etc. + directly, which causes problems on non-SYNC_INPUT hosts, and which + runs afoul of improving memory_full behavior. (Bug#8761) + (fn_gnutls_global_set_mem_functions): New macro or function pointer. + (emacs_gnutls_global_init): Use it to specify xmalloc, xrealloc, + xfree instead of the default malloc, realloc, free. + (Fgnutls_boot): No need to check for memory allocation failure, + since xmalloc does that for us. + 2011-05-30 Paul Eggert * alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.