1. 08 Oct, 2012 12 commits
  2. 07 Oct, 2012 6 commits
    • Eli Zaretskii's avatar
      Don't abort when ralloc.c:relinquish cannot return a heap to the system. · 98daa893
      Eli Zaretskii authored
       src/ralloc.c (relinquish): If a heap is ready to be relinquished,
       but it still has blocs in it, don't return it to the system,
       instead of aborting.  (Bug#12402)
    • Jan Djärv's avatar
      Reformat last entries to fit 80 columns. · 8ad5b73b
      Jan Djärv authored
    • Jan Djärv's avatar
    • Jan Djärv's avatar
      Check for OSX >= 10.4 to match what the maunal says and what we actually support. · 335f5ae4
      Jan Djärv authored
      * configure.ac: Check that OSX is 10.4 or newer.
      * etc/NEWS (NextStep/OSX port changes): OSX 10.4 or newer is required.
      * src/nsfns.m (Fns_list_services): Remove comment and check for OSX < 10.4.
      (ns_do_applescript): Remove check for >= MAC_OS_X_VERSION_10_4.
      * src/nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger.
      * src/nsmenu.m (fillWithWidgetValue:): Remove code for < MAC_OS_X_VERSION_10_2.
      * src/nsselect.m (ns_string_from_pasteboard): Remove check for >=
      * src/nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove.
      (EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4.
      (struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3.
    • Jan Djärv's avatar
      * nsfns.m (ns_in_resize): Remove. · 3bc0a2f7
      Jan Djärv authored
      (x_set_icon_name, ns_set_name, ns_set_name_as_filename):  Remove ns_in_resize
      * nsterm.m (ns_in_resize): Remove.
      (ns_resize_handle_rect, mouseDown, mouseUp, mouseDragged): Remove.
      (ns_clear_frame, sendEvent, windowDidResize, drawRect:): Remove ns_in_resize
      (ns_clear_frame_area): Remove resize handle code.
      Fixes: debbugs:12479
    • Paul Eggert's avatar
      Improve sys_siglist detection. · c622b48f
      Paul Eggert authored
      * configure.ac (sys_siglist): Look for its decl in <signal.h>.
      Otherwise, it's not found in either Fedora 17 or Solaris 11.
      * src/sysdep.c (sys_siglist, init_signals): Use _sys_siglist if it's
      defined as a macro, as is done in Solaris.
      (sys_siglist_entries): New macro.
      (save_strsignal): Use it.
      * src/syssignal.h (safe_strsignal): Now ATTRIBUTE_CONST, to pacify
      GCC 4.7.2 on Fedora 17 with the fixed sys_siglist detection.
  3. 06 Oct, 2012 2 commits
    • Jan Djärv's avatar
      Handle fullscreen parameter in initial/defult-frame-alist for NS. · 04fafa46
      Jan Djärv authored
      * nsfns.m (Fx_create_frame): Call x_default_parameter with
      * nsterm.h (EmacsView): Rename tbar_height to tibar_height.
      tobar_height is new.
      * nsterm.m (x_make_frame_visible): Check for fullscreen.
      (ns_fullscreen_hook): Activate old style fullscreen with a timer.
      (ns_term_init): Set activateIgnoringOtherApps if old style fullscreen.
      (windowDidResize:): Check for correct window if old style fullscreen.
      Capitalize word in comment.  Remove incorrect comment.
      (initFrameFromEmacs:): tbar_height renamed tibar_height.
      (windowDidEnterFullScreen:): Toggle toolbar for fullscreen to fix
      error in drawing background.
      (toggleFullScreen:): Remove comment. Rearrange calls.
      Set toolbar values to zero, save old height in tobar_height.
      Restore tool bar height when leaving fullscreen.
      (canBecomeMainWindow): New function.
    • Paul Eggert's avatar
  4. 05 Oct, 2012 2 commits
    • Eli Zaretskii's avatar
      Fix a typo in a w32proc.c declaration. · a65fbb5f
      Eli Zaretskii authored
       src/w32proc.c (stop_timer_thread): Fix declaration of 'err'.
    • Eli Zaretskii's avatar
      Support setting file times of directories on MS-Windows. · 0d9f584b
      Eli Zaretskii authored
       src/w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so
       that time stamps of directories could also be changed.  Don't
       request the too broad GENERIC_WRITE, only the more restrictive
       FILE_WRITE_ATTRIBUTES access rights.
       src/fileio.c (Fset_file_times): Special-case ignoring errors for
       directories only on MSDOS, not on MS-Windows.
  5. 04 Oct, 2012 4 commits
  6. 02 Oct, 2012 8 commits
    • Paul Eggert's avatar
      * profiler.c (handle_profiler_signal): Fix a malloc race · a3c5c0c5
      Paul Eggert authored
      that caused Emacs to hang on Fedora 17 when profiling Lisp.
    • Jan Djärv's avatar
    • Eli Zaretskii's avatar
      Fix compilation warnings in the MS-Windows build. · d8ab37a8
      Eli Zaretskii authored
       src/w32proc.c (sys_wait): Declare 'signame' 'const char *', to be
       consistent with the change in return value of 'safe_strsignal'.
       nt/preprep.c (RVA_TO_PTR): Cast the result to 'void *', to avoid
       compiler warnings when using the value.
    • Paul Eggert's avatar
      Prefer plain 'static' to 'static inline'. · 0a99eee1
      Paul Eggert authored
      * bidi.c (bidi_get_type, bidi_check_type, bidi_get_category)
      (bidi_set_sor_type, bidi_push_embedding_level)
      (bidi_pop_embedding_level, bidi_remember_char, bidi_copy_it)
      (bidi_cache_reset, bidi_cache_shrink, bidi_cache_fetch_state)
      (bidi_cache_search, bidi_cache_ensure_space)
      (bidi_cache_iterator_state, bidi_cache_find)
      (bidi_peek_at_next_level, bidi_set_paragraph_end)
      (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char)
      (bidi_explicit_dir_char, bidi_resolve_neutral_1):
      Now 'static', not 'static inline'.
      Fixes: debbugs:12541
    • Paul Eggert's avatar
      Count overruns when profiling; change units to ns. · b3ecad33
      Paul Eggert authored
      * lisp/profiler.el (profiler-sampling-interval): Change units
      from ms to ns, multiplying the default by 1000000 so that
      it remains 1 ms.
      (profiler-report-cpu-line-format): Give enough room for
      the maximum counters on 64-bit hosts.
      (profiler-report-render-calltree-1): Call them "CPU samples",
      not "Time (ms)", since they are not milliseconds now (and
      never really were).
      * src/profiler.c (handle_profiler_signal): Count sampling intervals, not ms.
      Give extra weight to samples after overruns, to attempt to count
      the time more accurately.
      (setup_cpu_timer): Change sampling interval units from ms to ns, since
      the underlying primitives nominally do ns.
      (Fprofiler_cpu_start): Document the change.  Mention that
      the sampling intervals are only approximate.
    • Stefan Monnier's avatar
      * src/buffer.c (Fmake_overlay): Fix last change. · 64edc777
      Stefan Monnier authored
      (fix_start_end_in_overlays): Remove redundant recentering.
    • Stefan Monnier's avatar
      Misc minor simplifications in C code. · 090cf9db
      Stefan Monnier authored
      * src/buffer.c (Fset_buffer_multibyte): Signal an error instead of widening.
      (Fmake_overlay): Remove redundant tests.
      * src/coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special
      case for the special 0 coding-system.
      * src/frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP.
    • Juanma Barranquero's avatar
  7. 01 Oct, 2012 6 commits
    • Paul Eggert's avatar
      Fix a malloc race condition involving strsignal. · aa1ba90e
      Paul Eggert authored
      A signal can arrive in the middle of a malloc, and Emacs's signal
      handler can invoke strsignal, which can invoke malloc, which is
      not portable.  This race condition bug makes Emacs hang on GNU/Linux.
      Fix it by altering the signal handler so that it does not invoke
      * emacs.c (shut_down_emacs): Use safe_strsignal, not strsignal.
      * process.c (status_message): Use const pointer, in case strsignal
      is #defined to safe_strsignal.
      * sysdep.c (sys_siglist, init_signals): Always define and
      initialize a substitute sys_siglist if the system does not define
      one, even if HAVE_STRSIGNAL.
      (safe_strsignal): Rename from strsignal.  Always define,
      using sys_siglist.  Return a const pointer.
      * syssignal.h (safe_strsignal): New decl.
      (strsignal) [!HAVE_STRSIGNAL]: Define in terms of safe_strsignal.
    • Eli Zaretskii's avatar
      Fix high CPU usage in profiling on MS-Windows. · ace917bd
      Eli Zaretskii authored
       src/w32proc.c (timer_loop): Fix code that waits for timer
       expiration, to avoid high CPU usage.
    • Stefan Monnier's avatar
      * src/fns.c (check_hash_table, get_key_arg, maybe_resize_hash_table) · 9eb71b9c
      Stefan Monnier authored
      (sweep_weak_table): Remove redundant prototypes.
    • Fabrice Popineau's avatar
      Fix minor compilation problem with MSVC. · b3317662
      Fabrice Popineau authored
       src/emacs.c: Move the inclusion of TERM_HEADER after including
       windows.h on WINDOWSNT.  This avoids compilation problems with
    • Eli Zaretskii's avatar
      Clean up the Windows x64 changes. · 2d7d1608
      Eli Zaretskii authored
       nt/preprep.c (RVA_TO_PTR): Use 'unsigned char *' instead of
       'void *', for pointer arithmetics.
       macro arguments in parentheses.
       src/unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET)
       (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses.
       (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *',
       as the previous version used 'void *'.
       src/ralloc.c (ROUNDUP): Fix last change.
       (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type
      Fixes: debbugs:12544
    • Eli Zaretskii's avatar
      Improve 'alarm' implementation on MS-Windows. · 4cdfbb89
      Eli Zaretskii authored
       src/w32proc.c (alarm) [HAVE_SETITIMER]: Be more conformant to the expected
       return results.
       [!HAVE_SETITIMER]: Behave as the previous version that didn't
       support timers.