1. 11 Jan, 2013 1 commit
    • Paul Eggert's avatar
      Fix SIGDANGER handlers, for AIX. · b6f960a0
      Paul Eggert authored
      * sysdep.c.c (handle_danger_signal, deliver_danger_signal) [SIGDANGER]:
      Move handlers here from emacs.c; they were out of place.
      
      Fixes: debbugs:13408
      b6f960a0
  2. 05 Jan, 2013 1 commit
    • Eli Zaretskii's avatar
      Improve display of glyph matrix by dump-glyph-matrix. · b630991b
      Eli Zaretskii authored
       src/xdisp.c (dump_glyph): Align glyph data better.  Use "pD" instead
       of a non-portable "t" to print ptrdiff_t values.  Allow up to 9
       digits for buffer positions, before misalignment starts.  Display
       "0" for integer "object" field.
       (dump_glyph_row): Adapt the header line to changes in dump_glyph.
       Display the newline glyph more unambiguously.
      b630991b
  3. 04 Jan, 2013 2 commits
  4. 01 Jan, 2013 1 commit
  5. 31 Dec, 2012 1 commit
  6. 29 Dec, 2012 1 commit
    • Andreas Schwab's avatar
      Properly configure GNUstep libraries · 2550c6e4
      Andreas Schwab authored
      * configure.ac (TEMACS_LDFLAGS2): Don't define.
      (LIBS_GNUSTEP): Set for GNUstep and substitute.
      (LD_SWITCH_SYSTEM_TEMACS): Don't set for GNUstep.
      
      * src/Makefile.in (TEMACS_LDFLAGS2): Remove.
      (LIBS_GNUSTEP): Define.
      (LIBES): Add $(LIBS_GNUSTEP).
      (temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).
      2550c6e4
  7. 27 Dec, 2012 2 commits
  8. 24 Dec, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #13262 with crashes in completion on MS-Windows with non-ASCII filenames. · f5c81c80
      Eli Zaretskii authored
       src/fileio.c (file_name_as_directory, directory_file_name): Accept
       an additional argument MULTIBYTE to indicate whether the input C
       came from a multibyte or a unibyte Lisp string; all callers
       adjusted.  Don't assume the input string is always multibyte.
       (Ffile_name_directory) [DOS_NT]: Handle unibyte strings correctly:
       don't ENCODE_FILE them, and return a unibyte string if the input
       was unibyte.
       (Fexpand_file_name): Don't mix unibyte with multibyte strings, and
       don't assume the input strings will always be multibyte.  If the
       input strings are multibyte, decode strings obtained from C
       library functions.
      f5c81c80
  9. 22 Dec, 2012 1 commit
  10. 21 Dec, 2012 3 commits
  11. 15 Dec, 2012 1 commit
  12. 14 Dec, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #12621 with crashes on MS-Windows in LookupAccountSid. · 92340ec7
      Eli Zaretskii authored
       src/w32.c (get_name_and_id): Always pass NULL as the first argument
       of lookup_account_sid.  Avoids crashes with UNC file names that
       refer to DFS domains, not to specific machine names.  (Bug#12621)
       Remove now unused argument FNAME; all callers changed.
       (get_file_owner_and_group): Remove now unused argument FNAME; all
       callers changed.
      92340ec7
  13. 11 Dec, 2012 1 commit
  14. 10 Dec, 2012 4 commits
  15. 08 Dec, 2012 3 commits
  16. 07 Dec, 2012 2 commits
  17. 05 Dec, 2012 2 commits
  18. 04 Dec, 2012 1 commit
  19. 01 Dec, 2012 1 commit
  20. 30 Nov, 2012 1 commit
    • Fabrice Popineau's avatar
      Fix compilation problems with 64-bit MSVC compiler. · c7b36b95
      Fabrice Popineau authored
       src/w32fns.c: Remove prototype of atof.
       (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit
       builds.
       (file_dialog_callback): Declared UINT_PTR.
       src/w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility
       with 64-bit builds.
       src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
       (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already
       defined.
      c7b36b95
  21. 27 Nov, 2012 2 commits
  22. 26 Nov, 2012 1 commit
  23. 24 Nov, 2012 3 commits
  24. 23 Nov, 2012 3 commits
    • Paul Eggert's avatar
      Fix a race condition with glib (Bug#8855). · 6d4e8f62
      Paul Eggert authored
      This is a backport from the trunk, consisting of:
      
      2012-11-17  Eli Zaretskii  <eliz@gnu.org>
      
      * nt/inc/sys/wait.h: New file, with prototype of waitpid and
      definitions of macros it needs.
      * nt/inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore.
      (sys_wait): Remove prototype.
      * nt/config.nt (HAVE_SYS_WAIT_H): Define to 1.
      * src/w32proc.c (create_child): Don't clip the PID of the child
      process to fit into an Emacs integer, as this is no longer a
      restriction.
      (waitpid): Rename from sys_wait.  Emulate a Posix 'waitpid' by
      reaping only the process specified by PID argument, if that is
      positive.  Use PID instead of dead_child to know which process to
      reap.  Wait for the child to die only if WNOHANG is not in
      OPTIONS.
      (sys_select): Don't set dead_child.
      * src/sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion,
      as it is no longer needed.
      * src/process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions,
      no longer needed.
      (record_child_status_change): Remove the setting of
      record_at_most_one_child for the !WNOHANG case.
      
      2012-11-03  Paul Eggert  <eggert@cs.ucla.edu>
      
      Fix a race condition that causes Emacs to mess up glib (Bug#8855).
      This is a backport from the trunk.
      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.
      * src/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.
      * src/process.h (Lisp_Process): New boolean member 'alive'.
      6d4e8f62
    • Eli Zaretskii's avatar
      Fix cursor display when several display strings follow each other. · 24becea4
      Eli Zaretskii authored
       src/xdisp.c (set_cursor_from_row): Skip step 2 only if point is not
       between bpos_covered and bpos_max.  This fixes cursor display when
       several display strings follow each other.
      24becea4
    • Eli Zaretskii's avatar
      Fix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined. · 8654a41b
      Eli Zaretskii authored
       src/.gdbinit (pgx): If the glyph's object is a string, display the
       pointer to string data, rather than the value of the string object
       itself (which barfs under CHECK_LISP_OBJECT_TYPE).
      8654a41b