1. 02 Mar, 2013 5 commits
  2. 27 Feb, 2013 3 commits
  3. 26 Feb, 2013 2 commits
    • Bastien Guerry's avatar
      3b166f09
    • Paul Eggert's avatar
      Minor textprop integer cleanup. · ecc0fdd4
      Paul Eggert authored
      * intervals.h, textprop.c (add_text_properties_from_list):
      Return void, not int, since nobody uses the return value.
      * textprop.c (validate_plist, add_properties, remove_properties)
      (Fadd_text_properties):
      Don't assume list length fits in int.
      (interval_has_all_properties, interval_has_some_properties)
      (interval_has_some_properties_list, add_properties, remove_properties)
      (Fadd_text_properties, Fremove_text_properties)
      (Fremove_list_of_text_properties, text_property_stickiness):
      Use bool for booleans.
      (Fadd_text_properties, Fremove_text_properties):
      (Fremove_list_of_text_properties):
      Reindent do-while as per GNU style.
      ecc0fdd4
  4. 25 Feb, 2013 4 commits
    • Eli Zaretskii's avatar
      Implement CLASH_DETECTION for MS-Windows. · 343a2aef
      Eli Zaretskii authored
       src/filelock.c [WINDOWSNT]: Include w32.h.
       (MAKE_LOCK_NAME): Don't use 'lock', it clashes with MS runtime
       function of that name.  Up-case the macro arguments.
       (IS_LOCK_FILE): New macro.
       (fill_in_lock_file_name): Use IS_LOCK_FILE instead of S_ISLNK.
       (create_lock_file): New function, with body extracted from
       lock_file_1.
       [WINDOWSNT]: Implement lock files by writing a regular file with
       the lock information as its contents.
       (read_lock_data): New function, on Posix platforms just calls
       emacs_readlinkat.
       [WINDOWSNT]: Read the lock info from the file.
       (current_lock_owner): Call read_lock_data instead of calling
       emacs_readlinkat directly.
       (lock_file) [WINDOWSNT]: Run the file name through
       dostounix_filename.
       src/w32proc.c (sys_kill): Support the case of SIG = 0, in which case
       just check if the process by that PID exists.
       src/w32.c (sys_open): Don't reset the _O_CREAT flag if _O_EXCL is
       also present, as doing so will fail to error out if the file
       already exists.
       src/makefile.w32-in ($(BLD)/filelock.$(O)): Depend on src/w32.h.
      
       nt/inc/ms-w32.h (BOOT_TIME_FILE): Define.
       nt/config.nt (CLASH_DETECTION): Define to 1.
      
       lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Reject files
       that match "\`\.#", to avoid compiling lock files, even if they
       are readable (as they are on MS-Windows).
      
       doc/emacs/files.texi (Interlocking): Don't refer to symlinks as the
       exclusive means of locking files.
      
       etc/NEWS: Mention support for lock files on MS-Windows.
      343a2aef
    • Eli Zaretskii's avatar
      Fix bug #13743 with crashes due to recursive add-text-properties. · 0248b0d7
      Eli Zaretskii authored
       src/textprop.c (Fadd_text_properties, Fremove_text_properties)
       (Fremove_list_of_text_properties): Skip all of the intervals in
       the region between START and END that already have resp. don't
       have the requested properties, not just the first one.  Add
       assertions that the loop afterwards always modifies the
       properties.
      0248b0d7
    • Stefan Monnier's avatar
      * src/callint.c (Fcall_interactively): Use the right lexical environment · b5071fc7
      Stefan Monnier authored
      for `interactive' specs.
      * src/eval.c (Feval): Accept a lexical environment.
      
      Fixes: debbugs:13811
      b5071fc7
    • Paul Eggert's avatar
      Simplify data_start configuration. · 1ddc2bd6
      Paul Eggert authored
      This is a followon simplification to the fix for Bug#13650.
      * admin/CPP-DEFINES (DATA_START, ORDINARY_LINK): Remove.
      * configure.ac (CRT_DIR, LIB_STANDARD, START_FILES, DATA_START)
      (LD_FIRSTFLAG, ORDINARY_LINK, LIB_GCC): Remove.
      (AC_CHECK_HEADERS_ONCE): Remove sys/resource.h, as it's
      not always needed.
      (HAVE_DATA_START): New macro.
      * etc/PROBLEMS (LIBS_SYSTEM, LIBS_MACHINE, LIBS_STANDARD): Remove.
      Remove legacy-systems section, as this stuff is no longer
      applicable with current linking strategies.
      * src/Makefile.in (LD_FIRSTFLAG, LIB_GCC, CRT_DIR, LIB_STANDARD)
      (START_FILES): Remove.  All uses removed.
      (otherobj): Remove $(VMLIMIT_OBJ), as it's now first.
      (ALLOBJS): Move here from autodeps.mk, and with VMLIMITS_OBJ first.
      (buildobj.h): Use it.
      ($(ALLOBJS)): Depend on globals.h.
      (temacs$(EXEEXT)): Use $(ALLOBJS).
      * src/autodeps.mk (ALLOBJS): Move to Makefile.in.
      * src/deps.mk (vm-limit.o):
      * src/makefile.w32-in ($(BLD)/vm-limit.$(O)):
      Do not depend on mem-limits.h.
      * src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
      (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__)
      [__GNUC__ && !ORDINARY_LINK]: Remove.
      * src/mem-limits.h, src/pre-crt0.c: Remove.
      * src/unexaix.c, src/unexcoff.c: Don't include mem-limits.h.
      * src/unexcoff.c (etext): New decl.
      (make_hdr): Use it instead of start_of_data.
      * src/vm-limit.c: Move most of mem-limits.h's contents here.
      (data_start): New decl.  It's OK if this is approximate,
      so simplify-away some unnecessary exactness.
      (POINTER): Remove; all uses removed.
      (data_space_start): Now char *, to avoid casts.
      (exceeds_lisp_ptr): New function, replacing the old
      EXCEEDS_LISP_PTR macro.  All uses changed.
      (check_memory_limits): Simplify and remove casts.
      (start_of_data) [!CANNOT_DUMP || !SYSTEM_MALLOC]: Remove.
      (memory_warnings): Use data_start instead of start_of_data.
      
      Fixes: debbugs:13783
      1ddc2bd6
  5. 24 Feb, 2013 2 commits
  6. 22 Feb, 2013 2 commits
    • Paul Eggert's avatar
      Assume C89 or better. · fcee5028
      Paul Eggert authored
      * ralloc.c (SIZE, POINTER, NIL):
      * vm-limit.c (POINTER):
      Remove, replacing all uses with C89 equivalents.  These old
      symbols were present only for porting to pre-C89 platforms.
      fcee5028
    • Claudio Bley's avatar
      Don't call 'select' from emacs_gnutls_pull. · d78cf5ed
      Claudio Bley authored
       src/w32.c (emacs_gnutls_pull): Don't call 'select', and don't loop.
       This avoids warning messages reported as part of Bug#13546.
      d78cf5ed
  7. 21 Feb, 2013 1 commit
  8. 20 Feb, 2013 4 commits
  9. 18 Feb, 2013 1 commit
  10. 17 Feb, 2013 4 commits
    • Eli Zaretskii's avatar
      Fix bug #13735 with network streams on MS-Windows. · ae11bda5
      Eli Zaretskii authored
      Revert changes to w32proc.c done since 2012-11-30T09:23:15Z!eliz@gnu.org.
      
      Do NOT merge to trunk!
      
       src/w32proc.c (new_child): Remove the loop that attempted to salvage
       slots of dead processes.
       (new_child, delete_child, find_child_pid): Don't insist on
       procinfo.hProcess be NULL for a process slot to be considered
       inactive, or be non-NULL to be considered active.
       (reader_thread): Don't set the FILE_AT_EOF flag of a file
       descriptor if the corresponding child was deleted and its
       char_avail handle is NULL.
       (reap_subprocess): Don't reset the FILE_AT_EOF flag.
       (sys_select): Don't pass a NULL process handle to
       WaitForMultipleObjects.
      
      Fixes: debbugs:13735 debbugs:13546
      ae11bda5
    • Stefan Monnier's avatar
      Prefer `message1' over `message'. · 2f73da9c
      Stefan Monnier authored
      * src/xml.c (init_libxml2_functions):
      * src/sound.c (sound_warning):
      * src/sheap.c (report_sheap_usage):
      * src/process.c (wait_reading_process_output):
      * src/msdos.c (XMenuActivate):
      * src/macros.c (Fstart_kbd_macro, Fend_kbd_macro):
      * src/keyboard.c (top_level_1):
      * src/editfns.c (Fmessage, Fmessage_box):
      * src/callint.c (Fcall_interactively):
      * src/fns.c (Fyes_or_no_p): Prefer `message1' over `message'.
      2f73da9c
    • Eli Zaretskii's avatar
      Fix bug #13723 with redrawing vertical border in GUI sessions. · fd80c659
      Eli Zaretskii authored
       src/xdisp.c (x_draw_vertical_border): For a window that is neither
       the leftmost nor the rightmost, redraw both the left and the right
       vertical borders.
      fd80c659
    • Jan Djärv's avatar
      Move scroll-bar-adjust-thumb-portion. · fd9547e8
      Jan Djärv authored
      * xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ...
      
      * frame.c (syms_of_frame): ... to here.
      fd9547e8
  11. 16 Feb, 2013 3 commits
  12. 15 Feb, 2013 6 commits
  13. 14 Feb, 2013 3 commits
    • Paul Eggert's avatar
      Backport GCPRO fix from trunk. · 974c7646
      Paul Eggert authored
      The bug was reported for AIX before today's changes.
      I reproduced the problem on Fedora 17 x86-64 when setting
      GC_MARK_STACK by hand, and I presume it occurs with default
      configurations on HP-UX and Unixware.
      Trunk fix on 2013-01-14 by Dmitry Antipov <dmantipov@yandex.ru>:
      Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
      * eval.c (eval_sub): Protect `form' from being GCed before its
      car and cdr becomes protected with the backtrace entry.
      
      Fixes: debbugs:13650
      974c7646
    • Paul Eggert's avatar
      Fix AIX port. · 35b3a27e
      Paul Eggert authored
      * configure.ac (DATA_START, DATA_SEG_BITS): Set to 0x20000000 on AIX.
      (GC_MARK_STACK): Do not set to GC_USE_GCPROS_AS_BEFORE, as that
      runs afoul of some other bug in Emacs, and the default value
      GC_MAKE_GCPROS_NOOPS has been tested and works.
      * src/lisp.h (XPNTR) [!USE_LSB_TAG && DATA_SEG_BITS]:
      Fix bug introduced in 2012-07-27 change.  DATA_SEG_BITS, if set,
      was #undeffed earlier, so it cannot be used as a macro here.
      Use the constant and not the macro.  Tested on AIX.
      * src/unexaix.c: Revert 2013-02-11 and 2013-02-12 changes to this
      file.  They're almost surely OK but we're just before a release so
      we should avoid changes unless they're clearly needed.  Instead,
      make the following minor change:
      (ADDR_CORRECT): New macro.
      
      Fixes: debbugs:13650
      35b3a27e
    • Jan Djärv's avatar
      * gtkutil.c (tb_size_cb): New function. · 51b3a99c
      Jan Djärv authored
      (xg_create_tool_bar): Connect size-allocate to tb_size_cb.
      
      Fixes: debbugs:13512
      51b3a99c