1. 25 Aug, 2012 3 commits
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      On assertion failure, print backtrace if available. · f4a681b0
      Paul Eggert authored
      Merge from gnulib, incorporating:
      2012-08-24 execinfo: port to FreeBSD
      2012-08-22 execinfo: new module
      * admin/merge-gnulib (GNULIB_MODULES): Add execinfo.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files.
      * src/alloc.c [ENABLE_CHECKING]: Include <execinfo.h>.
      (die) [ENABLE_CHECKING]: Print a backtrace if available.
      * src/Makefile.in (LIB_EXECINFO): New macro.
      (LIBES): Use it.
      f4a681b0
    • Paul Eggert's avatar
      * bytecode.c, callint.c, callproc.c: Use bool for boolean. · 2f221583
      Paul Eggert authored
      * bytecode.c (exec_byte_code):
      * callint.c (check_mark, Fcall_interactively):
      * callproc.c (Fcall_process, add_env, child_setup, getenv_internal_1)
      (getenv_internal, sync_process_alive, call_process_exited):
      * lisp.h (USE_SAFE_ALLOCA):
      Use bool for booleans, instead of int.
      * lisp.h, process.h: Adjust prototypes to match above changes.
      * callint.c (Fcall_interactively): Don't assume the mark's
      offset fits in 'int'.
      2f221583
  2. 24 Aug, 2012 3 commits
    • Michael Albinus's avatar
      * cmdargs.texi (General Variables): Setting · aa0ecd94
      Michael Albinus authored
      $DBUS_SESSION_BUS_ADDRESS to a dummy value suppresses connections
      to the D-Bus session bus.  (Bug#12112)
      aa0ecd94
    • Paul Eggert's avatar
      * buffer.c, buffer.h: Use bool for boolean. · 37ef52bb
      Paul Eggert authored
      * buffer.c (reset_buffer_local_variables)
      (buffer_lisp_local_variables, Fset_buffer_modified_p)
      (Frestore_buffer_modified_p, Fset_buffer_multibyte):
      (overlays_at, overlays_in, mouse_face_overlay_overlaps)
      (overlay_touches_p, overlay_strings, Foverlay_put)
      (report_overlay_modification, call_overlay_mod_hooks):
      (mmap_enlarge, mmap_set_vars):
      * buffer.h (buffer_has_overlays, uppercasep, lowercasep):
      Use bool for booleans, instead of int.
      * buffer.c (compact_buffer, mmap_free_1): Return void, not int,
      since the 1-or-0 return value is always ignored anyway.
      (mmap_initialized_p):
      * buffer.h (struct buffer_text.inhibit_shrinking): Now bool, not int.
      * buffer.h, lisp.h: Adjust prototypes to match above changes.
      37ef52bb
    • Paul Eggert's avatar
      Fix file time stamp problem with bzr and CVS (Bug#12001). · ca5256ad
      Paul Eggert authored
      * vc/vc-cvs.el (vc-cvs-parse-entry): Ignore subsecond information
      in the file's time stamp, since the version control system loses
      that information.
      ca5256ad
  3. 23 Aug, 2012 3 commits
    • Paul Eggert's avatar
      * bidi.c: Use bool for boolean. · 2cc21167
      Paul Eggert authored
      This is a bit more readable, and makes the text segment of bidi.o
      0.4% smaller on my platform (GCC 4.7.1 x86-64, Fedora 15).
      Presumably it's faster too.
      (bidi_initialized, bidi_ignore_explicit_marks_for_paragraph_level):
      Now bool.
      (bidi_cache_find_level_change, bidi_cache_iterator_state)
      (bidi_unshelve_cache, bidi_init_it, bidi_count_bytes)
      (bidi_char_at_pos, bidi_fetch_char, bidi_paragraph_init)
      (bidi_explicit_dir_char, bidi_level_of_next_char)
      (bidi_find_other_level_edge, bidi_move_to_visually_next):
      Use bool for booleans, instead of int.
      * dispextern.h (bidi_init_it, bidi_paragraph_init)
      (bidi_unshelve_cache): Adjust decls to match code.
      2cc21167
    • Martin Rudalics's avatar
      In Fposn_at_x_y do not allow internal window as argument. · 7db4ddf4
      Martin Rudalics authored
      * keyboard.c (Fposn_at_x_y): Do not allow internal window as
      argument.
      7db4ddf4
    • Paul Eggert's avatar
      * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean. · b1bb8011
      Paul Eggert authored
      * atimer.h: Include <stdbool.h>.
      b1bb8011
  4. 22 Aug, 2012 23 commits
  5. 21 Aug, 2012 8 commits
    • Paul Eggert's avatar
      * alloc.c: Use bool for booleans. · fce31d69
      Paul Eggert authored
      (gc_in_progress, abort_on_gc)
      (setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
      (dont_register_blocks) [GC_MALLOC_CHECK]:
      (suppress_checking) [ENABLE_CHECKING]: Now bool, not int.
      (check_string_bytes, make_specified_string, memory_full)
      (live_string_p, live_cons_p, live_symbol_p, live_float_p)
      (live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object)
      (mark_stack, valid_pointer_p, make_pure_string)
      (Fgarbage_collect, survives_gc_p, gc_sweep):
      Use bool for booleans, instead of int.
      (test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
      Remove unused local.
      * alloc.c (PURE_POINTER_P):
      * lisp.h (STRING_MULTIBYTE): Document that it returns a boolean.
      * editfns.c (Fformat):
      * fileio.c (Fexpand_file_name, Fsubstitute_in_file_name)
      (Fdo_auto_save):
      * fns.c (sweep_weak_table):
      * lisp.h (suppress_checking, push_message, survives_gc_p)
      (make_pure_string, gc_in_progress, abort_on_gc):
      * lread.c (readchar, read1):
      * print.c (Fprin1_to_string):
      * xdisp.c (push_message):
      Use bool for booleans affected directly or indirectly by
      alloc.c's changes.
      fce31d69
    • Paul Eggert's avatar
      Make recently-introduced setters macros. · d0d2d26f
      Paul Eggert authored
      * fontset.c (set_fontset_id, set_fontset_name, set_fontset_ascii)
      (set_fontset_base, set_fontset_frame, set_fontset_nofont_face)
      (set_fontset_default, set_fontset_fallback): Rename from their
      upper-case counterparts, and make them functions rather than macros.
      This is more consistent with the other recently-introduced setters.
      These don't need to be inline, since they're local.
      d0d2d26f
    • Andreas Schwab's avatar
      Fixes: debbugs:11805 · c6cc78b8
      Andreas Schwab authored
      * cus-face.el (custom-face-attributes): Fix customize type for the
      :underline attribute.
      c6cc78b8
    • Jan Djärv's avatar
      * nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in · d18e2bb6
      Jan Djärv authored
      the loop.
      
      Fixes: debbugs:12247
      d18e2bb6
    • Glenn Morris's avatar
      79aba012
    • Glenn Morris's avatar
      Remove yet more cal-tex code duplication · b7fa2691
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-weekly-common): New function.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week): Use it.
      b7fa2691
    • Glenn Morris's avatar
      Remove more cal-tex code duplication · 52f56d5a
      Glenn Morris authored
      * calendar/cal-tex.el (cal-tex-rightday): Add optional funcname arg.
      (cal-tex-shortday): New function.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week)
      (cal-tex-cursor-filofax-daily): Use the above.
      52f56d5a
    • Paul Eggert's avatar
      * lisp.h (vcopy): Use memcpy rather than our own loop. · 1b9d9d16
      Paul Eggert authored
      This fixes a performance regression introduced by the recent
      addition of vcopy.  This means 'vcopy' will need to be modified
      for a copying collector, but that's OK.  Also, tighten the
      checking in the assertion.
      1b9d9d16