+2013-06-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ * frame.c (x_report_frame_params): Cast parent_desc to uintptr_t.
+ Needed if HAVE_NTGUI. Reported by Juanma Barranquero.
+
+ * nsfont.m (ns_registry_to_script): Parenthesize while expression.
+
+2013-06-17 Eli Zaretskii <eliz@gnu.org>
+
+ * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
+ unless we know that the window w's frame is a frame object.
+ Another attempt at solving bug#14062 and bug#14630.
+
+2013-06-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * textprop.c (property_set_type): New enum.
+ (add_properties): Allow appending/prepending text properties.
+ (add_text_properties_1): Factored out of Fadd_text_properties.
+ (Fadd_text_properties): Moved all the code into
+ add_text_properties_1.
+ (Fadd_face_text_property): New function that calls
+ add_text_properties_1.
+
+2013-06-17 Paul Eggert <eggert@cs.ucla.edu>
+
+ Move functions from lisp.h to individual modules when possible.
+ From a suggestion by Andreas Schwab in <http://bugs.gnu.org/11935#68>.
+ * alloc.c (XFLOAT_INIT, set_symbol_name):
+ * buffer.c (CHECK_OVERLAY):
+ * chartab.c (CHECK_CHAR_TABLE, set_char_table_ascii)
+ (set_char_table_parent):
+ * coding.c (CHECK_NATNUM_CAR, CHECK_NATNUM_CDR):
+ * data.c (BOOLFWDP, INTFWDP, KBOARD_OBJFWDP, OBJFWDP, XBOOLFWD)
+ (XKBOARD_OBJFWD, XINTFWD, XOBJFWD, CHECK_SUBR, set_blv_found)
+ (blv_value, set_blv_value, set_blv_where, set_blv_defcell)
+ (set_blv_valcell):
+ * emacs.c (setlocale) [!HAVE_SETLOCALE]:
+ * eval.c (specpdl_symbol, specpdl_old_value, specpdl_where)
+ (specpdl_arg, specpdl_func, backtrace_function, backtrace_nargs)
+ (backtrace_args, backtrace_debug_on_exit):
+ * floatfns.c (CHECK_FLOAT):
+ * fns.c (CHECK_HASH_TABLE, CHECK_LIST_END)
+ (set_hash_key_and_value, set_hash_next, set_hash_next_slot)
+ (set_hash_hash, set_hash_hash_slot, set_hash_index)
+ (set_hash_index_slot):
+ * keymap.c (CHECK_VECTOR_OR_CHAR_TABLE):
+ * marker.c (CHECK_MARKER):
+ * textprop.c (CHECK_STRING_OR_BUFFER):
+ * window.c (CHECK_WINDOW_CONFIGURATION):
+ Move here from lisp.h, and make these functions static rather than
+ extern inline.
+ * buffer.c (Qoverlayp):
+ * data.c (Qsubrp):
+ * fns.c (Qhash_table_p):
+ * window.c (Qwindow_configuration_p):
+ Now static.
+ * lisp.h: Remove the abovementioned defns and decls.
+
+ Use functions, not macros, for XINT etc. (Bug#11935).
+ In lisp.h, prefer functions to function-like macros, and
+ constants to object-like macros, when either will do. This:
+ . simplifies use, as there's no more need to worry about
+ arguments' side effects being evaluated multiple times.
+ . makes the code easier to debug on some platforms.
+ However, when using gcc -O0, keep using function-like macros
+ for a few critical operations, for performance reasons.
+ This sort of thing isn't needed with gcc -Og, but -Og
+ is a GCC 4.8 feature and isn't widely-enough available yet.
+ * alloc.c (gdb_make_enums_visible) [USE_LSB_TAG]:
+ Remove enum lsb_bits; no longer needed.
+ (allocate_misc, free_misc): Don't use XMISCTYPE as an lvalue.
+ * buffer.c (Qoverlap):
+ * data.c (Qsubrp):
+ * fns.c (Qhash_table_p):
+ Now extern, so lisp.h can use these symbols.
+ * dispextern.h: Include character.h, for MAX_CHAR etc.
+ (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE)
+ (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
+ (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P)
+ (GLYPH_CODE_P): Move here from lisp.h.
+ (GLYPH_CHAR, GLYPH_FACE, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
+ (GLYPH_CHAR_VALID_P, GLYPH_CODE_P): Now functions, not macros.
+ (GLYPH_MODE_LINE_FACE): Now enums, not macros.
+ * eval.c (Fautoload): Cast XUNTAG output to intptr_t, since
+ XUNTAG now returns void *.
+ * lisp.h (lisp_h_XLI, lisp_h_XIL, lisp_h_CHECK_LIST_CONS)
+ (lisp_h_CHECK_NUMBER CHECK_SYMBOL, lisp_h_CHECK_TYPE)
+ (lisp_h_CONSP, lisp_h_EQ, lisp_h_FLOATP, lisp_h_INTEGERP)
+ (lisp_h_MARKERP, lisp_h_MISCP, lisp_h_NILP)
+ (lisp_h_SET_SYMBOL_VAL, lisp_h_SYMBOL_CONSTANT_P)
+ (lisp_h_SYMBOL_VAL, lisp_h_SYMBOLP, lisp_h_VECTORLIKEP)
+ (lisp_h_XCAR, lisp_h_XCDR, lisp_h_XCONS, lisp_h_XHASH)
+ (lisp_h_XPNTR, lisp_h_XSYMBOL):
+ New macros, renamed from their sans-lisp_h_ counterparts.
+ (XLI, XIL, CHECK_LIST_CONS, CHECK_NUMBER CHECK_SYMBOL)
+ (CHECK_TYPE, CONSP, EQ, FLOATP, INTEGERP, MARKERP)
+ (MISCP, NILP, SET_SYMBOL_VAL, SYMBOL_CONSTANT_P, SYMBOL_VAL, SYMBOLP)
+ (VECTORLIKEP, XCAR, XCDR, XCONS, XHASH, XPNTR, XSYMBOL):
+ If compiling via GCC without optimization, define these as macros
+ in addition to inline functions.
+ To disable this, compile with -DINLINING=0.
+ (LISP_MACRO_DEFUN, LISP_MACRO_DEFUN_VOID): New macros.
+ (check_cons_list) [!GC_CHECK_CONS_LIST]: Likewise.
+ (make_number, XFASTINT, XINT, XTYPE, XUNTAG): Likewise, but
+ hand-optimize only in the USE_LSB_TAG case, as GNUish hosts do that.
+ (INTMASK, VALMASK): Now macros, since static values cannot be
+ accessed from extern inline functions.
+ (VALMASK): Also a constant, for benefit of old GDB.
+ (LISP_INT_TAG_P): Remove; no longer needed as the only caller
+ is INTEGERP, which can fold it in.
+ (XLI, XIL, XHASH, XTYPE,XINT, XFASTINT, XUINT)
+ (make_number, XPNTR, XUNTAG, EQ, XCONS, XVECTOR, XSTRING, XSYMBOL)
+ (XFLOAT, XPROCESS, XWINDOW, XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE)
+ (XSUB_CHAR_TABLE, XBOOL_VECTOR, make_lisp_ptr, CHECK_TYPE)
+ (CHECK_STRING_OR_BUFFER, XCAR, XCDR, XSETCAR, XSETCDR, CAR, CDR)
+ (CAR_SAFE, CDR_SAFE, STRING_MULTIBYTE, SDATA, SSDATA, SREF, SSET)
+ (SCHARS, STRING_BYTES, SBYTES, STRING_SET_CHARS, STRING_COPYIN, AREF)
+ (ASIZE, ASET, CHAR_TABLE_REF_ASCII, CHAR_TABLE_REF)
+ (CHAR_TABLE_SET, CHAR_TABLE_EXTRA_SLOTS, SYMBOL_VAL, SYMBOL_ALIAS)
+ (SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL, SET_SYMBOL_ALIAS)
+ (SET_SYMBOL_BLV, SET_SYMBOL_FWD, SYMBOL_NAME, SYMBOL_INTERNED_P)
+ (SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P, SYMBOL_CONSTANT_P)
+ (XHASH_TABLE, HASH_TABLE_P, CHECK_HASH_TABLE, HASH_KEY, HASH_VALUE)
+ (HASH_NEXT, HASH_HASH, HASH_INDEX, HASH_TABLE_SIZE)
+ (XMISC, XMISCANY, XMARKER, XOVERLAY, XSAVE_VALUE, XFWDTYPE)
+ (XINTFWD, XBOOLFWD, XOBJFWD, XBUFFER_OBJFWD, XKBOARD_OBJFWD)
+ (XFLOAT_DATA, XFLOAT_INIT, NILP, NUMBERP, NATNUMP)
+ (RANGED_INTEGERP, CONSP, FLOATP, MISCP, STRINGP, SYMBOLP)
+ (INTEGERP, VECTORLIKEP, VECTORP, OVERLAYP)
+ (MARKERP, SAVE_VALUEP, AUTOLOADP, INTFWDP, BOOLFWDP, OBJFWDP)
+ (BUFFER_OBJFWDP, KBOARD_OBJFWDP, PSEUDOVECTOR_TYPEP)
+ (PSEUDOVECTORP, WINDOW_CONFIGURATIONP, PROCESSP, WINDOWP)
+ (TERMINALP, SUBRP, COMPILEDP, BUFFERP, CHAR_TABLE_P)
+ (SUB_CHAR_TABLE_P, BOOL_VECTOR_P, FRAMEP, IMAGEP, ARRAYP)
+ (CHECK_LIST, CHECK_LIST_CONS, CHECK_LIST_END, CHECK_STRING)
+ (CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
+ (CHECK_VECTOR, CHECK_VECTOR_OR_STRING, CHECK_ARRAY)
+ (CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER, CHECK_WINDOW)
+ (CHECK_WINDOW_CONFIGURATION, CHECK_PROCESS, CHECK_SUBR)
+ (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, XFLOATINT)
+ (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT, CHECK_OVERLAY)
+ (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR, CHECK_NATNUM_CAR)
+ (CHECK_NATNUM_CDR, FUNCTIONP, SPECPDL_INDEX, LOADHIST_ATTACH)
+ Now functions.
+ (check_cons_list) [!GC_CHECK_CONS_LIST]: New empty function.
+ (LISP_MAKE_RVALUE, TYPEMASK): Remove; no longer needed.
+ (VALMASK): Define in one place rather than in two, merging the
+ USE_LSB_TAG parts; this is simpler.
+ (aref_addr, gc_aset, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM)
+ (max, min, struct Lisp_String, UNSIGNED_CMP, ASCII_CHAR_P):
+ Move up, to avoid use before definition.
+ Also include "globals.h" earlier, for the same reason.
+ (make_natnum): New function.
+ (XUNTAG): Now returns void *, not intptr_t, as this means fewer casts.
+ (union Lisp_Fwd, BOOLFWDP, BOOL_VECTOR_P, BUFFER_OBJFWDP, BUFFERP)
+ (CHAR_TABLE_P, CHAR_TABLE_REF_ASCII, CONSP, FLOATP, INTEGERP, INTFWDP)
+ (KBOARD_OBJFWDP, MARKERP, MISCP, NILP, OBJFWDP, OVERLAYP, PROCESSP)
+ (PSEUDOVECTORP, SAVE_VALUEP, STRINGP, SUB_CHAR_TABLE_P, SUBRP, SYMBOLP)
+ (VECTORLIKEP, WINDOWP, Qoverlayp, char_table_ref, char_table_set)
+ (char_table_translate, Qarrayp, Qbufferp, Qbuffer_or_string_p)
+ (Qchar_table_p, Qconsp, Qfloatp, Qintegerp, Qlambda, Qlistp, Qmarkerp)
+ (Qnil, Qnumberp, Qsubrp, Qstringp, Qsymbolp, Qvectorp)
+ (Qvector_or_char_table_p, Qwholenump, Ffboundp, wrong_type_argument)
+ (initialized, Qhash_table_p, extract_float, Qprocessp, Qwindowp)
+ (Qwindow_configuration_p, Qimage): New forward declarations.
+ (XSETFASTINT): Simplify by rewriting in terms of make_natnum.
+ (STRING_COPYIN): Remove; unused.
+ (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Remove these macros, replacing with ...
+ (xcar_addr, xcdr_addr): New functions. All uses changed.
+ (IEEE_FLOATING_POINT): Now a constant, not a macro.
+ (GLYPH, GLYPH_CHAR, GLYPH_FACE, SET_GLYPH_CHAR, SET_GLYPH_FACE)
+ (SET_GLYPH, GLYPH_CODE_CHAR, GLYPH_CODE_FACE)
+ (SET_GLYPH_FROM_GLYPH_CODE, GLYPH_MODE_LINE_FACE, GLYPH_CHAR_VALID_P)
+ (GLYPH_CODE_P): Move to dispextern.h, to avoid define-before-use.
+ (TYPE_RANGED_INTEGERP): Simplify.
+ (Qsubrp, Qhash_table_p, Qoverlayp): New extern decls.
+ (setlocale, fixup_locale, synchronize_system_messages_locale)
+ (synchronize_system_time_locale) [!HAVE_SETLOCALE]:
+ Now empty functions, not macros.
+ (functionp): Return bool, not int.
+ * window.c (Qwindow_configuration_p): Now extern,
+ so window.h can use it.
+ * window.h (Qwindowp): Move decl back to lisp.h.
+
+2013-06-15 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (Fline_pixel_height): New function, required for solving
+ bug #14567.
+
+2013-06-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * fns.c (Fcopy_sequence): Simplify XTYPE calculation.
+
+2013-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * lread.c (syms_of_lread):
+ * fns.c (Fprovide): Adjust to new format of after-load-alist.
+
+2013-06-13 Kelly Dean <kellydeanch@yahoo.com> (tiny change)
+
+ * fileio.c (Fdo_auto_save): Trap errors in auto-save-hook. (Bug#14479)
+
+2013-06-12 Xue Fuqiao <xfq.free@gmail.com>
+
+ * fileio.c (expand_file_name): Doc fix.
+
+2013-06-11 Paul Eggert <eggert@cs.ucla.edu>
+
+ Tickle glib by waiting for Emacs itself, not for process 0 (Bug#14569).
+ * process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]:
+ Wait for self, not for 0. This can't hurt on GNU or similar
+ system, and may help with Cygwin.
+
+ * keyboard.c: Don't use PROP (...) as an lvalue.
+ (parse_tool_bar_item) [!USE_GTK && !HAVE_NS]:
+ Use set_prop (A, B), not PROP (A) = B.
+
+2013-06-10 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (get_it_property): Use it->window instead of generating
+ a Lisp object from it->w.
+
+2013-06-09 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (get_it_property): If it->object is a buffer, pass to
+ get-char-property the window that is being rendered, instead of
+ the buffer, to support window-specific overlays. (Bug#14575)
+ (compute_display_string_pos): When W is NULL, use the current
+ buffer as the object to pass to get-char-property.
+ (Fcurrent_bidi_paragraph_direction): Assign NULL to the window
+ pointer member of the bidi iterator, since no window is pertinent
+ to this function.
+
+2013-06-08 Eli Zaretskii <eliz@gnu.org>
+
+ * bidi.c (bidi_fetch_char): Accept additional argument, the window
+ being displayed, and pass it to compute_display_string_pos.
+ (bidi_level_of_next_char, bidi_resolve_explicit_1)
+ (bidi_paragraph_init): All callers changed.
+
+ * xdisp.c (init_from_display_pos, init_iterator)
+ (handle_single_display_spec, next_overlay_string)
+ (get_overlay_strings_1, reseat_1, reseat_to_string)
+ (push_prefix_prop, Fcurrent_bidi_paragraph_direction):
+ Set bidi_it.w member from it->w.
+ (compute_display_string_pos): Accept additional argument, the
+ window being displayed, and pass it to Fget_char_property.
+ (Bug#14575)
+
+ * dispextern.h (struct bidi_it): New member w, the window being
+ displayed.
+ (compute_display_string_pos): Adjust prototype.
+
+2013-06-08 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xgselect.c: Remove unneeded include xterm.h.
+
+ * process.c (wait_reading_process_output): Check for NS before GLIB.
+ GLIB may be linked in due to rsvg, but ns_select must be called.
+
+ * xgselect.c (xg_select): Remove call to window_system_available
+ and g_main_context_pending at the top, so Gdk events (i.e. file
+ notify) are processed when Emacs is started with -nw.
+
+2013-06-07 Eli Zaretskii <eliz@gnu.org>
+
+ * Makefile.in (ctagsfiles1, ctagsfiles2): Don't include *.m files.
+ (ctagsfiles3): New variable, includes only *.m files.
+ (TAGS): Use an explicit language name in the regular expressions,
+ to avoid transformation of '/SOMETHING' by MSYS to
+ 'c:\MSYS\SOMETHING'.
+
+2013-06-07 Richard Copley <rcopley@gmail.com> (tiny change)
+
+ * epaths.in: Fix commentary to PATH_SITELOADSEARCH.
+
+2013-06-06 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (note_mouse_highlight): When mouse-highlight is off,
+ still need to set the mouse pointer shape and activate help-echo.
+ (Bug#14558)
+
+2013-06-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ A few porting etc. fixes for the new file monitor code.
+ See the thread containing
+ <http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00109.html>.
+ * gfilenotify.c (dir_monitor_callback, Fgfile_add_watch)
+ (Fgfile_rm_watch): Don't assume EMACS_INT is the same width as a pointer.
+ (dir_monitor_callback, Fgfile_rm_watch):
+ Use assq_no_quit instead of Fassoc, for speed.
+ (dir_monitor_callback, Fgfile_rm_watch):
+ eassert that the monitor is a fixnum.
+ (dir_monitor_callback): No need for CDR_SAFE.
+ Simplify building of lisp with alternative tails.
+ (Fgfile_add_watch, Fgfile_rm_watch):
+ Do not assume glib functions set errno reliably on failure.
+ (Fgfile_add_watch): Check that the monitor survives the XIL trick,
+ and signal an error otherwise.
+ (Fgfile_rm_watch): Prefer CONSP to !NILP.
+ Use Fdelq instead of Fdelete, for speed.
+
+2013-06-05 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (handle_tool_bar_click): When mouse-highlight is off,
+ don't insist on being invoked on a highlighted tool-bar button.
+ Avoids losing tool-bar functionality when mouse-highlight is nil.
+ (note_tool_bar_highlight, note_mode_line_or_margin_highlight):
+ Don't highlight when mouse-highlight is nil.
+ (note_mouse_highlight): When mouse-highlight is nil, don't return
+ right away; instead, run tool-bar and mode-line highlight
+ subroutine, clear any existing highlight, and revert the mouse
+ pointer to its default shape. (Bug#14558)
+
+2013-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * lisp.mk (lisp): Add prog-mode.el.
+
+2013-06-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ Chain glib's SIGCHLD handler from Emacs's (Bug#14474).
+ * process.c (dummy_handler): New function.
+ (lib_child_handler): New static var.
+ (handle_child_signal): Invoke it.
+ (catch_child_signal): If a library has set up a signal handler,
+ save it into lib_child_handler.
+ (init_process_emacs): If using glib and not on Windows, tickle glib's
+ child-handling code so that it initializes its private SIGCHLD handler.
+ * syssignal.h (SA_SIGINFO): Default to 0.
+ * xterm.c (x_term_init): Remove D-bus hack that I installed on May
+ 31; it should no longer be needed now.
+
+2013-06-05 Michael Albinus <michael.albinus@gmx.de>
+
+ * emacs.c (main) [HAVE_GFILENOTIFY]: Call globals_of_gfilenotify.
+
+ * gfilenotify.c (globals_of_gfilenotify): New function.
+ (syms_of_gfilenotify): Move global initialization there.
+
+ * lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
+
+2013-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keymap.c (Fcurrent_active_maps, Fdescribe_buffer_bindings):
+ * keyboard.c (menu_bar_items, tool_bar_items):
+ * doc.c (Fsubstitute_command_keys): Voverriding_terminal_local_map does
+ not override local keymaps any more.
+
+2013-06-04 Eli Zaretskii <eliz@gnu.org>
+
+ * window.c (Fpos_visible_in_window_p): Doc fix. (Bug#14540)
+
+2013-06-03 Eli Zaretskii <eliz@gnu.org>
+
+ * w32console.c (initialize_w32_display): Return the dimensions of
+ the console window via 2 additional arguments, not via the current
+ frame. This avoids crashes due to overrunning the bounds of
+ frame's decode_mode_spec_buffer, which is not resized following
+ the change of the frame dimensions from the initial 10x10.
+
+ * w32term.h (w32_initialize_display_info): Adjust prototype.
+
+ * term.c (init_tty): Take dimensions of the frame from the values
+ returned by initialize_w32_display.
+
+ * Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
+ (ALL_CFLAGS): Add $(GFILENOTIFY_CFLAGS).
+ (LIBES): Add $(GFILENOTIFY_LIBS).
+
+ * w32inevt.c (handle_file_notifications): Add dummy implementation
+ for !HAVE_W32NOTIFY.
+
+ * w32term.c: Wrap code with HAVE_W32NOTIFY.
+
+2013-06-03 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.
+
+ * process.c (wait_reading_process_output): Call xg_select if HAVE_GLIB.
+
+ * Makefile.in (XGSELOBJ): New, xgselect.o if GLib is used, or empty.
+
+2013-06-03 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix minor problems found by static checking.
+ * data.c (pure_write_error):
+ Use xsignal2, not Fsignal, as Fsignal might return.
+ * eval.c (set_backtrace_debug_on_exit): Now static.
+ (backtrace_p, backtrace_top, backtrace_next, record_in_backtrace):
+ No longer inline. EXTERN_INLINE is needed only for functions
+ defined in .h files. Reindent function header as per GNU style.
+ (backtrace_p, backtrace_top, backtrace_next):
+ Mark EXTERNALLY_VISIBLE so they don't get optimized away by the
+ compiler or linker. Add extern decls to pacify gcc -Wall.
+ * frame.c, frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource):
+ Now static.
+ * frame.c (free_monitors): Define only on platforms that need it.
+ * nsterm.m (ns_term_init):
+ * process.c (catch_child_signal):
+ Don't worry about whether SIGCHLD is defined, as SIGCHLD is
+ defined on all porting targets these days.
+ * process.c, process.h (catch_child_signal):
+ Make it extern only if NS_IMPL_GNUSTEP is defined.
+
+2013-06-03 Eli Zaretskii <eliz@gnu.org>
+
+ * w32.c (gettimeofday): Make the signature identical to prototype
+ in nt/inc/sys/time.h.
+
+2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * eval.c (backtrace_p, backtrace_top, backtrace_next): Export them to
+ .gdbinit.
+
+ * keyboard.c (safe_run_hooks_error): Improve error message.
+
+ * data.c (pure_write_error): Add `object' argument.
+ * puresize.h (CHECK_IMPURE): Use it.
+
+2013-06-03 Michael Albinus <michael.albinus@gmx.de>
+
+ * Makefile.in (NOTIFY_OBJ): New variable.
+ (base_obj): Replace inotify.o by $(NOTIFY_OBJ).
+
+ * emacs.c (main): Use HAVE_W32NOTIFY to wrap respective code.
+ Call syms_of_gfilenotify.
+
+ * gfilenotify.c: New file.
+
+ * keyboard.c (Qfile_notify): New variable. Replaces Qfile_inotify
+ and Qfile_w32notify.
+ (top): Wrap respective code by HAVE_GFILENOTIFY, HAVE_INOTIFY,
+ HAVE_W32NOTIFY and USE_FILE_NOTIFY.
+
+ * lisp.h: Declare syms_of_gfilenotify.
+
+ * termhooks.h (e): Wrap enum by USE_FILE_NOTIFY.
+
+2013-06-03 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ Merge the specpdl and backtrace stacks. Make the structure of the
+ specpdl entries more obvious via a tagged union of structs.
+ * lisp.h (BITS_PER_PTRDIFF_T): New constant.
+ (enum specbind_tag): New enum.
+ (struct specbinding): Make it a tagged union of structs.
+ Add a case for backtrace records.
+ (specpdl_symbol, specpdl_old_value, specpdl_where, specpdl_arg)
+ (specpdl_func, backtrace_function, backtrace_nargs, backtrace_args)
+ (backtrace_debug_on_exit): New accessors.
+ (struct backtrace): Remove.
+ (struct catchtag): Remove backlist field.
+ * data.c (let_shadows_buffer_binding_p, let_shadows_global_binding_p):
+ Move to eval.c.
+ (Flocal_variable_p): Speed up the common case where the binding is
+ already loaded.
+ * eval.c (backtrace_list): Remove.
+ (set_specpdl_symbol, set_specpdl_old_value): Remove.
+ (set_backtrace_args, set_backtrace_nargs)
+ (set_backtrace_debug_on_exit, backtrace_p, backtrace_top)
+ (backtrace_next): New functions.
+ (Fdefvaralias, Fdefvar): Adjust to new specpdl format.
+ (unwind_to_catch, internal_lisp_condition_case)
+ (internal_condition_case, internal_condition_case_1)
+ (internal_condition_case_2, internal_condition_case_n): Don't bother
+ with backtrace_list any more.
+ (Fsignal): Adjust to new backtrace format.
+ (grow_specpdl): Move up.
+ (record_in_backtrace): New function.
+ (eval_sub, Ffuncall): Use it.
+ (apply_lambda): Adjust to new backtrace format.
+ (let_shadows_buffer_binding_p, let_shadows_global_binding_p): Move from
+ data.c.
+ (specbind): Adjust to new specpdl format. Simplify.
+ (record_unwind_protect, unbind_to): Adjust to new specpdl format.
+ (Fbacktrace_debug, Fbacktrace, Fbacktrace_frame): Adjust to new
+ backtrace format.
+ (mark_backtrace): Remove.
+ (mark_specpdl, get_backtrace, backtrace_top_function): New functions.
+ * xdisp.c (redisplay_internal): Use record_in_backtrace.
+ * alloc.c (Fgarbage_collect): Use record_in_backtrace.
+ Use mark_specpdl.
+ * profiler.c (record_backtrace): Use get_backtrace.
+ (handle_profiler_signal): Use backtrace_top_function.
+ * .gdbinit (xbacktrace, hookpost-backtrace): Use new backtrace
+ accessor functions.
+
+2013-06-02 Jan Djärv <jan.h.d@swipnet.se>
+
+ * process.h (catch_child_signal): Declare.
+
+ * process.c (catch_child_signal): New function.
+ (init_process_emacs): Call it.
+
+ * nsterm.m: Include process.h if NS_IMPL_GNUSTEP.
+ (ns_menu_bar_is_hidden, menu_will_open_state): Define only if
+ NS_IMPL_COCOA.
+ (x_set_cursor_type): Remove declaration.
+ (ns_update_begin): Only use r and bp if NS_IMPL_COCOA.
+ (ns_update_end, ns_focus, ns_unfocus): Remove GNUStep specific code.
+ (x_set_window_size): Remove 3 pixels from toolbar if NS_IMPL_GNUSTEP.
+ (ns_get_color): Use F suffix on float.
+ (ns_color_to_lisp, ns_query_color): Use EmacsCGFloat.
+ (ns_get_rgb_color): Remove.
+ (x_set_frame_alpha): Move view inside NS_IMPL_COCOA.
+ (note_mouse_movement): x and y are CGFloat.
+ (ns_draw_fringe_bitmap): Remove unused rowY.
+ Change #if to COCOA && >= 10_6.
+ (ns_draw_window_cursor): Remove unused overspill.
+ (ns_draw_underwave): width and x are EamcsCGFloat.
+ (ns_draw_box): thickness is CGFloat.
+ (ns_dumpglyphs_image): Change #if to COCOA && >= 10_6.
+ (ns_send_appdefined): When NS_IMPL_GNUSTEP, redirect to main thread
+ if not in main thread.
+ (ns_get_pending_menu_title, ns_check_menu_open)
+ (ns_check_pending_open_menu): Put inside #if COCOA && >= 10_5.
+ (ns_term_init): Call catch_child_signal if NS_IMPL_GNUSTEP && SIGCHLD.
+ (sendFromMainThread:): New method.
+ (changeFont:): size is CGFloat.
+ (keyDown:): Check for Delete when NS_IMPL_GNUSTEP.
+ Disable warning about permanent text.
+ (characterIndexForPoint:): Adjust return type depending on GNUStep
+ version.
+ (mouseDown:): delta is CGFloat.
+ (updateFrameSize): Remove unised variable f.
+ (initFrameFromEmacs): Move toggleButton inside NS_IMPL_COCOA.
+ Cast float to EmacsCGFloat.
+ (windowWillUseStandardFrame:defaultFrame:): Set maximized_height
+ also to -1 when restoring.
+ (windowDidExitFullScreen:): Put call to updateCollectionBehaviour
+ inside NS_IMPL_COCOA.
+ (toggleFullScreen:): Put call to toggleFullScreen inside
+ NS_IMPL_COCOA. Cast float to EmacsCGFloat.
+ (setPosition:portion:whole:): por is CGFloat.
+ (getMouseMotionPart:window:x:y:): Add F suffix to float.
+ (mouseDown:): Use CGFloat.
+ (mouseDragged:): Remove unised variable edge.
+ (EmacsDocument): Implement for NS_IMPL_GNUSTEP.
+
+ * nsterm.h (EmacsCGFloat): Typedef for OSX and GNUStep when the size
+ of CGFloat differs.
+ (EmacsApp): New variable nextappdefined. Declare sendFromMainThread
+ when NS_IMPL_GNUSTEP.
+ (EmacsDocument): Declare when NS_IMPL_GNUSTEP.
+ (EmacsView): Remove unlockFocusNeedsFlush, add windowDidMove.
+ (EmacsToolbar): Add clearAll. Add tag argument to
+ addDisplayItemWithImage.
+ (EmacsSavePanel, EmacsOpenPanel): Remove getFilename and getDirectory.
+
+ * nsselect.m (ns_get_local_selection): Remove unused variable type.
+
+ * nsmenu.m (ns_update_menubar): Make static.
+ (x_activate_menubar): Surround with ifdef NS_IMPL_COCOA
+ (fillWithWidgetValue:): Add cast to SEL for setAction.
+ (addSubmenuWithTitle:forFrame:): Add cast to SEL for action.
+ (update_frame_tool_bar): Update code for GNUStep.
+ (clearAll): New method.
+ (addDisplayItemWithImage:idx:tag:helpText:enabled:): Handle new tag
+ argument. Call insertItemWithItemIdentifier when NS_IMPL_GNUSTEP.
+ Move identifierToItem setObject and activeIdentifiers addObject before
+ call to insertItemWithItemIdentifier.
+ (validateVisibleItems): Fix indentation.
+ (toolbarAllowedItemIdentifiers:): Return activeIdentifiers.
+ (initWithContentRect:styleMask:backing:defer:): Add ClosableWindow and
+ UtilityWindow to aStyle, remove call to setStyleMask.
+
+ * nsimage.m (setXBMColor:, getPixelAtX:Y:): Use EmacsCGFloat.
+
+ * nsfont.m (ns_attribute_fvalue, ns_spec_to_descriptor)
+ (ns_charset_covers, ns_get_covering_families, nsfont_open):
+ Use F suffix on floats.
+ (ns_char_width): Returns CGFloat.
+ (ns_ascii_average_width): w is CGFloat instead of float.
+ (nsfont_draw): cbuf and c are unsigned. Cast to char* in call to
+ DPSxshow.
+ (ns_glyph_metrics): CGFloat instead of float.
+
+ * nsfns.m (x_set_foreground_color, x_set_background_color):
+ Use EmacsCGFloat.
+ (ns_implicitly_set_icon_type, Fx_create_frame): Make static,
+ remove unused variables.
+ (Fns_read_file_name): Keep track if panel is for save.
+ Use ns_filename_from_panel/ns_directory_from_panel.
+ (Fns_list_services): delegate only used for COCOA.
+ (Fns_convert_utf8_nfd_to_nfc): Remove warning for GNUStep.
+ Just return the input if GNUStep.
+ (x_screen_planes): Remove.
+ (Fxw_color_values): Use EmacsCGFloat
+ (Fns_display_monitor_attributes_list): Only get screen number for
+ Cocoa.
+ (getDirectory, getFilename): Removed from EmacsOpenPanel and
+ EmacsSavePanel.
+ (EmacsOpenPanel:ok:): Use ns_filename_from_panel and
+ ns_directory_from_panel.
+
+2013-06-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ * process.c (handle_child_signal): Also use WCONTINUED.
+ This is so that list-processes doesn't mistakenly list the process
+ as stopped, when the process has actually been continued and is
+ now running.
+
+2013-05-31 Paul Eggert <eggert@cs.ucla.edu>
+
+ Don't let D-bus autolaunch mess up SIGCHLD handling (Bug#14474).
+ * xterm.c (x_term_init): Inhibit D-Bus autolaunch if D-Bus is
+ not already configured.
+
+ * fileio.c (Finsert_file_contents): Remove unused local (Bug#8447).
+
+2013-05-29 Eli Zaretskii <eliz@gnu.org>
+
+ * Makefile.in (mostlyclean): Remove *.res files.
+
+2013-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * fileio.c (Finsert_file_contents): Preserve undo info when reverting
+ a buffer (bug#8447).
+
+2013-05-27 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (pos_visible_p): When CHARPOS is displayed frrom a
+ display vector, and we backtrack, handle the case that the
+ previous character position is also displayed from a display
+ vector or covered by a display string or image. (Bug#14476)
+
+2013-05-25 Jan Djärv <jan.h.d@swipnet.se>
+
+ * xfns.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
+ (struct MonitorInfo, free_monitors): Remove.
+ (x_make_monitor_attribute_list): Call make_monitor_attribute_list.
+ (Fx_display_monitor_attributes_list): Call make_monitor_attribute_list.
+ (syms_of_xfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
+ Qframes, Qsource.
+
+ * nsfns.m (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Remove.
+ (struct MonitorInfo, free_monitors): Remove.
+ (ns_screen_name): Make static.
+ (ns_make_monitor_attribute_list): Call make_monitor_attribute_list.
+ (syms_of_nsfns): Remove DEFSYM for Qgeometry, Qworkarea, Qmm_size,
+ Qframes, Qsource.
+
+ * frame.h (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
+ (struct MonitorInfo): New struct.
+ (free_monitors, make_monitor_attribute_list): Declare.
+
+ * frame.c (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource):
+ New Lisp_Object:s.
+ (free_monitors, make_monitor_attribute_list): New functions.
+ (syms_of_frame): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes,
+ Qsource.
+
+2013-05-25 Xue Fuqiao <xfq.free@gmail.com>
+
+ * callproc.c (call_process): Refine the doc string. (Bug#14045)
+
+2013-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keyboard.c: Apply keyboard decoding only to events that come directly
+ from the tty, not from unread-command-events (bug#14368).
+ (read_event_from_main_queue): New function, extracted from read_char).
+ (read_decoded_char): Remove.
+ (read_decoded_event_from_main_queue): New function to replace it.
+ (read_char): Use it.
+ (read_key_sequence): Use read_char rather than read_decoded_char.
+
+ * keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403).
+
+2013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
+
+ * casetab.c (init_casetab_once): Fix last change (bug#14424).
+
+2013-05-22 Kenichi Handa <handa@gnu.org>
+
+ The following changes are to fix the setting of
+ buffer-file-coding-system on, for instance, C-x RET c unix RET
+ _FILE_OF_DOS_EOL_TYPE_ RET.
+
+ * coding.h (struct coding_system): New member detected_utf8_chars.
+
+ * coding.c (detect_coding_utf_8): Count characters and check EOL
+ format. Include CATEGORY_MASK_UTF_8_AUTO in detect_info->found if
+ BOM is there.
+ (setup_coding_system): Do not initialize coding->head_ascii.
+ (check_ascii): Do not set coding->eol_seen but update it. Do not
+ call adjust_coding_eol_type here.
+ (detect_coding): Fix detection of BOM for utf-8 and utf-16.
+ If the eol-type of CODING is already specified, adjust the eol type
+ of the found coding-system.
+ (decode_coding_gap): Cancel previous change. Utilize the
+ character numbers counted by detect_coding_utf_8. Fix detection
+ of BOM for utf-8.
+
+2013-05-21 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
+
+ * search.c (looking_at_1): Only set last_thing_searched if the match
+ changed the match-data (bug#14281).
+
+2013-05-21 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * xdisp.c (reseat_at_previous_visible_line_start):
+ Already declared in dispextern.h, so remove it here.
+ (move_it_vertically_backward): Likewise.
+
+2013-05-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
+
+ * xfns.c (check_x_display_info): Don't use XINT for terminal object.
+ (Fx_display_pixel_width, Fx_display_pixel_height)
+ (Fx_display_mm_width, Fx_display_mm_height):
+ Mention `display-monitor-attributes-list' in docstrings.
+
+ * nsfns.m (ns_get_screen): Remove function. All uses removed.
+ (check_ns_display_info): Sync with check_x_display_info in xfns.c.
+ (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
+ (Fx_display_screens, Fx_display_mm_width, Fx_display_mm_height)
+ (Fx_display_backing_store, Fx_display_visual_class)
+ (Fx_display_save_under, Fx_close_connection, Fxw_display_color_p)
+ (Fx_display_grayscale_p, Fx_display_pixel_width)
+ (Fx_display_pixel_height, Fx_display_planes)
+ (Fx_display_color_cells): Sync args and docstrings with xfns.c.
+ (Fx_display_screens): Don't confuse X11 screens with NS screens.
+ (Fx_display_mm_width, Fx_display_mm_height)
+ (Fx_display_pixel_width, Fx_display_pixel_width): Return width or
+ height for all physical monitors as in X11.
+
+ * nsterm.m (x_display_pixel_width, x_display_pixel_height):
+ Return pixel width or height for all physical monitors as in X11.
+
+2013-05-18 Paul Eggert <eggert@cs.ucla.edu>
+
+ Port --enable-gcc-warnings to clang.
+ * bytecode.c (exec_byte_code):
+ * regex.c:
+ Redo diagnostic pragmas to pacify clang, too.
+ * dbusbind.c (xd_retrieve_arg): Do not use uninitialized variable.
+ * editfns.c (Fencode_time):
+ * fileio.c (file_accessible_directory_p):
+ * font.c (font_unparse_xlfd):
+ Use '&"string"[index]' instead of '"string" + (index)'.
+ * undo.c (user_error): Remove; unused.
+
+2013-05-16 Eli Zaretskii <eliz@gnu.org>
+
+ * insdel.c (insert_1_both): Document the arguments, instead of
+ referring to insert_1, which no longer exists.
+
+ * xdisp.c (message_dolog): If the *Messages* buffer is shown in
+ some window, increment windows_or_buffers_changed, so that
+ *Messages* display in that window is updated. (Bug#14408)
+
+ * w32.c: Include epaths.h.
+ (init_environment): Use cmdproxy.exe without leading directories.
+ Support emacs.exe in src; point SHELL to cmdproxy in ../nt in that
+ case.
+ (gettimeofday): Adjust signature and return value to Posix
+ expectations.
+
+ * unexw32.c (open_output_file): Delete the existing emacs.exe
+ before creating it, to break the hard link to the versioned
+ executable.
+
+ * Makefile.in (EMACS_MANIFEST, CM_OBJ, TEMACS_POST_LINK)
+ (ADDSECTION, EMACS_HEAPSIZE, MINGW_TEMACS_POST_LINK)
+ (FIRSTFILE_OBJ): New variables.
+ (W32_RES): Rename to EMACSRES. All users changed.
+ (base_obj): Use $(CM_OBJ).
+ (ALLOBJS): Use $(FIRSTFILE_OBJ).
+ (emacs$(EXEEXT)): Depend on $(ADDSECTION).
+ (temacs$(EXEEXT)): Use $(TEMACS_POST_LINK), and move
+ $(W32_RES_LINK) before $(LIBES).
+ (emacs.res): Depend on $(EMACS_MANIFEST). Put emacs.rc in nt.
+
+2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * makefile.w32-in (DOC): Use just "DOC".
+
+ * Makefile.in (bootstrap-clean): DOC-* doesn't exist any more.
+
+ * process.c: Export default filters and sentinels to Elisp.
+ (Qinternal_default_process_sentinel, Qinternal_default_process_filter):
+ New constants.
+ (pset_filter, pset_sentinel, make_process, Fset_process_filter)
+ (Fset_process_sentinel, Fformat_network_address):
+ Default to them instead of nil.
+ (server_accept_connection): Sentinels can't be nil any more.
+ (read_and_dispose_of_process_output): New function, extracted from
+ read_process_output.
+ (read_process_output): Use it; filters can't be nil.
+ (Finternal_default_process_filter): New function, extracted from
+ read_process_output.
+ (exec_sentinel_unwind): Remove function.
+ (exec_sentinel): Don't zilch sentinel while running.
+ (status_notify): Sentinels can't be nil.
+ (Finternal_default_process_sentinel): New function extracted from
+ status_notify.
+ (setup_process_coding_systems): Default filter is not nil any more.
+ (syms_of_process): Export new Elisp functions and initialize
+ new constants.
+ * lisp.h (make_lisp_proc): New function.
+
+2013-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * regex.c (regex_compile) [\=, \>, \<]: Don't forget to set laststart.
+
+2013-05-14 Eli Zaretskii <eliz@gnu.org>
+
+ * w32fns.c (w32_wnd_proc): Don't call WINDOW_HEADER_LINE_HEIGHT
+ unless we know that the window w is a leaf window.
+ Another attempt at solving bug#14062.
+
+2013-05-14 Jan Djärv <jan.h.d@swipnet.se>
+
+ * nsfont.m (ns_spec_to_descriptor): Retain and autorelease
+ fdesc (Bug#14375).
+
+2013-05-12 Paul Eggert <eggert@cs.ucla.edu>
+
+ * image.c (gif_load): Check that subimages fit (Bug#14345).
+
+2013-05-09 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * lread.c (skip_dyn_eof): New function.
+ (read1): Use it to skip the end of a file in response to #@00.
+
+ * doc.c (get_doc_string): Slightly relax the sanity checking.
+
+2013-05-09 Jan Djärv <jan.h.d@swipnet.se>
+
+ * nsfns.m: Include IOGraphicsLib.h if Cocoa.
+ (Qgeometry, Qworkarea, Qmm_size, Qframes, Qsource): Declare.
+ (MonitorInfo): New struct.
+ (free_monitors, ns_screen_name, ns_make_monitor_attribute_list)
+ (Fns_display_monitor_attributes_list): New functions.
+ (display-usable-bounds): Remove.
+ (syms_of_nsfns): DEFSYM Qgeometry, Qworkarea, Qmm_size, Qframes and
+ Qsource.
+
+2013-05-09 Paul Eggert <eggert@cs.ucla.edu>
+
+ * xterm.h (GTK_PREREQ): Remove, replacing with GTK_CHECK_VERSION.
+ (GTK_CHECK_VERSION): New macro, if not already defined.
+ All uses of GTK_PREREQ, GTK_MAJOR_VERSION, etc.
+ replaced by GTK_CHECK_VERSION.
+
+2013-05-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ * xterm.h (GTK_PREREQ): New macro.
+ All simple uses of GTK_MAJOR_VERSION and GTK_MINOR_VERSION changed
+ to use this macro instead, for consistency and clarity.
+
+2013-05-08 Eli Zaretskii <eliz@gnu.org>
+
+ * xdisp.c (row_for_charpos_p): New function, with code of
+ cursor_row_p, but accepts an additional argument CHARPOS instead
+ of using a hardcoded PT.
+ (cursor_row_p): Call row_for_charpos_p with 2nd argument PT.
+ (row_containing_pos): Call row_for_charpos_p instead of partially
+ doing the same. Fixes cursor positioning under longlines-mode
+ when longlines-show-effect includes more than one newline, when
+ moving the cursor vertically up.
+
2013-05-08 Juanma Barranquero <lekktu@gmail.com>
* makefile.w32-in (ACL_H): New macro.
2013-05-07 Paul Eggert <eggert@cs.ucla.edu>
- Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295)
+ Use Gnulib ACL implementation, for benefit of Solaris etc. (Bug#14295)
* Makefile.in (LIB_ACL): New macro.
(LIBACL_LIBS): Remove.
(LIBES): Use LIB_ACL, not LIBACL_LIBS.
2012-12-31 Adam Sjøgren <asjo@koldfront.dk> (tiny change)
* xterm.c (scroll-bar-adjust-thumb-portion): New variable to
- determine whether scroll bar thumb size should be adjusted or
- not. Use variable for MOTIF.
+ determine whether scroll bar thumb size should be adjusted or not.
+ Use variable for MOTIF.
- * gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for
- GTK.
+ * gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for GTK.
2013-01-13 Jan Djärv <jan.h.d@swipnet.se>
2012-12-14 Paul Eggert <eggert@cs.ucla.edu>
- Fix permissions bugs with setgid directories etc. (Bug#13125)
+ Fix permissions bugs with setgid directories etc. (Bug#13125)
* dired.c (Ffile_attributes): Return t as the 9th attribute,
to mark it as a placeholder. The old value was often wrong.
The only user of this attribute has been changed to use
Use xputenv instead of setenv or putenv, to detect memory exhaustion.
* editfns.c (initial_tz): Move static var decl up.
(tzvalbuf_in_environ): New static var.
- (init_editfns): Initialize these two static vars.
+ (init_editfns): Initialize these two static vars.
(Fencode_time): Don't assume arbitrary limit on EMACS_INT width.
Save old TZ value on stack, if it's small.
(Fencode_time, set_time_zone_rule): Don't modify 'environ' directly;
Use execve to avoid need to munge environ (Bug#13054).
* callproc.c (Fcall_process):
* process.c (create_process):
- Don't save and restore environ; no longer needed.
+ Don't save and restore environ; no longer needed.
* callproc.c (child_setup):
Use execve, not execvp, to preserve environ.
* w32term.c (x_window_to_scroll_bar): Likewise.
* window.c (window_list): Likewise.
* xdisp.c (x_consider_frame_title): Likewise.
- * xfaces.c ( Fdisplay_supports_face_attributes_p): Likewise.
+ * xfaces.c (Fdisplay_supports_face_attributes_p): Likewise.
* xfns.c (x_window_to_frame, x_any_window_to_frame)
(x_menubar_window_to_frame, x_top_window_to_frame): Likewise.
* xmenu.c (menubar_id_to_frame): Likewise.
Fix memory allocation problems in Cygwin build (Bug#9273).
- * unexcw.c ( __malloc_initialized): Declare external variable.
+ * unexcw.c (__malloc_initialized): Declare external variable.
(fixup_executable): Force the dumped emacs to reinitialize malloc.
* gmalloc.c [CYGWIN] (bss_sbrk_heapbase, bss_sbrk_heapinfo):