1. 03 Nov, 2012 28 commits
    • Eli Zaretskii's avatar
      Fix Windows build as fallout from 2012-11-03T18:54:17Z!eggert@cs.ucla.edu. · 3a7089c1
      Eli Zaretskii authored
       nt/config.nt (PENDING_OUTPUT_N_BYTES): Define.
      
       lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/fpending.$(O) and
       $(BLD)/close-stream.$(O).
       ($(BLD)/close-stream.$(O)):
       ($(BLD)/fpending.$(O)): New dependencies.
      
      Fixes: debbugs:9574
      3a7089c1
    • Glenn Morris's avatar
      5ccd466c
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Further small cl.texi changes · 92246540
      Glenn Morris authored
      * doc/misc/cl.texi (Creating Symbols, Random Numbers):
      De-emphasize internal variables cl--gensym-counter and cl--random-state. 
      
      * etc/NEWS: Related edits.
      
      Fixes: debbugs:12788
      92246540
    • Paul Eggert's avatar
      Fix data-loss with --batch. · 7ccfb720
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add close-stream.
      * lib/close-stream.c, lib/close-stream.h, lib/fpending.c
      * lib/fpending.h, m4/close-stream.m4, m4/fpending.m4:
      New files, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/emacs.c: Include <close-stream.h>.
      (close_output_streams): New function.
      (main): Pass it to atexit, so that Emacs closes stdout and stderr
      and handles errors appropriately.
      (Fkill_emacs): Don't worry about flushing, as close_output_stream
      does that now.
      
      Fixes: debbugs:9574
      7ccfb720
    • Glenn Morris's avatar
      Rename cl-random-time to cl--random-time · 376a8e83
      Glenn Morris authored
      * emacs-lisp/cl-lib.el (cl--random-time): Rename from cl-random-time. 
      (cl--gensym-counter, cl--random-state): Update callers.
      * emacs-lisp/cl-extra.el (cl-make-random-state): Update callers.
      
      Fixes: debbugs:12773
      376a8e83
    • Paul Eggert's avatar
      Fix a race condition that causes Emacs to mess up glib. · 0b3d4a47
      Paul Eggert authored
      The symptom is a diagnostic "GLib-WARNING **: In call to
      g_spawn_sync(), exit status of a child process was requested but
      SIGCHLD action was set to SIG_IGN and ECHILD was received by
      waitpid(), so exit status can't be returned."  The diagnostic
      is partly wrong, as the SIGCHLD action is not set to SIG_IGN.
      The real bug is a race condition between Emacs and glib: Emacs
      does a waitpid (-1, ...) and reaps glib's subprocess by mistake,
      so that glib can't find it.  Work around the bug by invoking
      waitpid only on subprocesses that Emacs itself creates.
      * process.c (create_process, record_child_status_change):
      Don't use special value -1 in pid field, as the caller now must
      know the pid rather than having the callee infer it.  The
      inference was sometimes incorrect anyway, due to another race.
      (create_process): Set new 'alive' member if child is created.
      (process_status_retrieved): New function.
      (record_child_status_change): Use it.
      Accept negative 1st argument, which means to wait for the
      processes that Emacs already knows about.  Move special-case code
      for DOS_NT (which lacks WNOHANG) here, from caller.  Keep track of
      processes that have already been waited for, by testing and
      clearing new 'alive' member.
      (CAN_HANDLE_MULTIPLE_CHILDREN): Remove, as record_child_status_change
      now does this internally.
      (handle_child_signal): Let record_child_status_change do all
      the work, since we do not want to reap all exited child processes,
      only the child processes that Emacs itself created.
      * process.h (Lisp_Process): New boolean member 'alive'.
      
      Fixes: debbugs:8855
      0b3d4a47
    • Glenn Morris's avatar
      Rename cl-loop-handler, cl-loop-for-handler back to their original names · 49138400
      Glenn Morris authored
      * lisp/emacs-lisp/cl-macs.el (cl-parse-loop-clause):
      Rename handler properties back from cl-- to cl-.
      
      Fixes: debbugs:12788
      49138400
    • Glenn Morris's avatar
      More general edits for cl.texi Appendices · 3a4d1917
      Glenn Morris authored
      3a4d1917
    • Paul Eggert's avatar
      Omit duplicate definitions no longer needed with gcc -g3. · 0d879dca
      Paul Eggert authored
      * lisp.h (GCTYPEBITS, GCALIGNMENT, ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG)
      (VALMASK, MOST_POSITIVE_FIXNUM, MOST_NEGATIVE_FIXNUM):
      Define only as macros.  There's no longer any need to also define
      these symbols as enums or as constants, since we now assume
      gcc -g3 when debugging.
      0d879dca
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Further edits for doc/misc/cl.texi · 685b0026
      Glenn Morris authored
      * cl.texi: Further general copyedits.
      (List Functions): Remove copy-tree, standard elisp for some time.
      (Efficiency Concerns): Comment out examples that no longer apply.
      (Compiler Optimizations): Rename from "Optimizing Compiler"; reword.
      685b0026
    • Chong Yidong's avatar
      * lispref/objects.texi: Fix last change. · 77f6eafe
      Chong Yidong authored
      77f6eafe
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Fix a race condition in wait_reading_process_output (tiny change). · 893cc455
      Chong Yidong authored
      * src/process.c (wait_reading_process_output): Avoid a race condition
      with SIGIO delivery.
      
      Fixes: debbugs:11536
      893cc455
    • Chong Yidong's avatar
      * lisp/cus-start.el: Make cursor-type customizable. · 0f7b074f
      Chong Yidong authored
      * src/buffer.c (cursor_type): Untabify docstring.
      
      Fixes: debbugs:11633
      0f7b074f
    • Eli Zaretskii's avatar
      Adapt MSDOS port to latest changes. · 858f0f24
      Eli Zaretskii authored
       config.bat: Copy lib/execinfo.in.h to lib/execinfo.in-h if needed.
      
       msdos/sedlibmk.inp: Sync with changes in lib/Makefile.in.
       (HAVE_DECL_ENVIRON, GNULIB_ENVIRON): Edit to require declaration
       through lib/unistd.h.
       msdos/sed1v2.inp: Sync with changes in src/Makefile.in.
       msdos/sed2v2.inp: Sync with changes in src/config.in.
      
       src/lisp.mk: Adjust comments to the fact that term/internal is now
       loaded from loadup.el.
       src/msdos.c (msdos_abort): Rename from emacs_abort, and make static.
       (msdos_fatal_signal): New function.
       (XMenuActivate): Adjust the call to kbd_buffer_events_waiting to
       its argument list.
       src/conf_post.h (_GL_EXECINFO_INLINE) [MSDOS]: Define to "inline"
       for GCC versions before 4.
       (emacs_raise): Define to call msdos_fatal_signal.
      
       lisp/term/pc-win.el: Don't load term/internal from here.
       lisp/loadup.el: Load term/internal from here.
      858f0f24
    • Eli Zaretskii's avatar
      Load term/internal from loadup.el. · 1d4341f9
      Eli Zaretskii authored
      1d4341f9
    • Eli Zaretskii's avatar
      b3cf17f6
    • Fabián Ezequiel Gallina's avatar
      * progmodes/python.el (inferior-python-mode): Fix hang in · 12fd5ee1
      Fabián Ezequiel Gallina authored
      jit-lock.
      
      Fixes: debbugs:12645
      12fd5ee1
    • Jan Djärv's avatar
      Backport from trunk. · ad10696b
      Jan Djärv authored
      * widget.c (resize_cb): New function.
      (EmacsFrameRealize): Add resize_cb as event handler.
      (EmacsFrameResize): Check if all is up to date before changing frame
      size.
      
      Fixes: debbugs:12733
      ad10696b
    • Chong Yidong's avatar
      Clarify documentation about escape sequences in strings. · 2395ab64
      Chong Yidong authored
      * objects.texi (General Escape Syntax): Clarify the explanation of
      escape sequences.
      (Non-ASCII in Strings): Clarify when a string is unibyte vs
      multibyte.  Hex escapes do not automatically make a string multibyte.
      2395ab64
    • Martin Rudalics's avatar
      Doc changes related to displaying buffers and quitting windows. · 43bcfda6
      Martin Rudalics authored
      * window.el (switch-to-visible-buffer)
      (switch-to-buffer-preserve-window-point): Fix doc-strings.
      
      * windows.texi (Switching Buffers): Document option
      switch-to-buffer-preserve-window-point.
      (Display Action Functions): Document window-height and
      window-width alist entries.
      (Display Action Functions): Document
      display-buffer-below-selected and
      display-buffer-in-previous-window.
      (Quitting Windows): Document quit-restore-window.  Rewrite
      section.
      (Window Configurations): In window-state-get mention that
      argument window must be valid.
      (Window Parameters): Document quit-restore window parameter
      (Bug#12158).
      43bcfda6
    • Eli Zaretskii's avatar
      Fix bidi initialization in init_from_display_pos. · 67b50ba4
      Eli Zaretskii authored
       src/xdisp.c (init_from_display_pos): Fix initialization of the bidi
       iterator when starting in the middle of a display or overlay
       string.
      
      Fixes: debbugs:12745
      67b50ba4
    • Dmitry Antipov's avatar
      * frame.h (struct frame): Drop can_have_scroll_bars member · 3737fee7
      Dmitry Antipov authored
      which is meaningless for a long time.  Adjust comments.
      (FRAME_CAN_HAVE_SCROLL_BARS): Remove.
      * frame.c, nsfns.m, term.c, w32fns.c, xfns.c: Adjust users.
      3737fee7
    • Dmitry Antipov's avatar
      * window.c (decode_next_window_args): Update window arg after · b6a9e8b1
      Dmitry Antipov authored
      calling decode_live_window and so fix crash reported at
      http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00035.html
      by Juanma Barranquero <lekktu@gmail.com>.
      (Fwindow_body_width, Fwindow_body_height): Simplify a bit.
      * font.c (Ffont_at): Likewise.
      b6a9e8b1
    • Glenn Morris's avatar
      Fix attribution in ChangeLog · f7e65065
      Glenn Morris authored
      f7e65065
    • Glenn Morris's avatar
      * doc/misc/cl.texi: Further general copyedits. · c65b407b
      Glenn Morris authored
      Eg, no longer distinguish between "the optimizing compiler" and "the
      non-optimizing compiler" like they were different entities.
      c65b407b
  2. 02 Nov, 2012 6 commits
  3. 01 Nov, 2012 1 commit
    • Jan Djärv's avatar
      * widget.c (resize_cb): New function. · 600d4768
      Jan Djärv authored
      (EmacsFrameRealize): Add resize_cb as event handler.
      (EmacsFrameResize): Check if all is up to date before changing frame
      size.
      
      Fixes: debbugs:12733
      600d4768
  4. 02 Nov, 2012 5 commits
    • Glenn Morris's avatar
      Add NEWS top-level headings for 24.4. · 95a32efb
      Glenn Morris authored
      95a32efb
    • Eli Zaretskii's avatar
      Implement backtrace output for fatal errors on MS-Windows. · 1005b4b9
      Eli Zaretskii authored
       src/w32fns.c (CaptureStackBackTrace_proc): New typedef.
       (BACKTRACE_LIMIT_MAX): New macro.
       (w32_backtrace): New function.
       (emacs_abort): Use w32_backtrace when the user chooses not to
       attach a debugger.  Update the text of the abort dialog.
      1005b4b9
    • Dmitry Antipov's avatar
      Window-related stuff cleanup here and there. · b9e9df47
      Dmitry Antipov authored
      * dispnew.c (Finternal_show_cursor, Finternal_show_cursor_p):
      Use decode_any_window.
      * fringe.c (Ffringe_bitmaps_at_pos): Likewise.
      * xdisp.c (Fformat_mode_line): Likewise.
      * font.c (Ffont_at): Use decode_live_window.
      * indent.c (Fcompute_motion, Fvertical_motion): Likewise.
      * window.c (decode_next_window_args): Likewise.
      (decode_any_window): Remove static.
      * window.h (decode_any_window): Add prototype.
      * lisp.h (CHECK_VALID_WINDOW, CHECK_LIVE_WINDOW): Move from here...
      * window.h: ...to here, redefine via WINDOW_VALID_P and WINDOW_LIVE_P,
      respectively.
      b9e9df47
    • Glenn Morris's avatar
      Auto-commit of generated files. · c574bc34
      Glenn Morris authored
      c574bc34
    • Dmitry Antipov's avatar
      Remove pad from struct input_event. · 2b371ff7
      Dmitry Antipov authored
      * termhooks.h (struct input_event): Remove padding field.
      Adjust comment.
      * keyboard.c (event_to_kboard): Simplify because frame_or_window
      member is never cons for a long time.  Adjust comment.
      (mark_kboards): Adjust because SELECTION_REQUEST_EVENT and
      SELECTION_CLEAR_EVENT has no Lisp_Objects to mark.  Add comment.
      * xterm.c (handle_one_xevent): Do not initialize frame_or_window
      field of SELECTION_REQUEST_EVENT and SELECTION_CLEAR_EVENT.
      2b371ff7