1. 26 Sep, 2012 2 commits
  2. 25 Sep, 2012 1 commit
  3. 24 Sep, 2012 2 commits
    • Stefan Monnier's avatar
      Try to let it compile on other platforms · ad942b63
      Stefan Monnier authored
      * src/profiler.c (evict_lower_half): Fix typo.
      (PROFILER_CPU_SUPPORT): Check and define if cpu-profiler is supported.
      Don't compile the cpu-profiler code, if not supported.
      (malloc_probe): Presume memory_log is non-nil.
      (syms_of_profiler): Don't defsubr functions when they aren't defined.
      * src/lisp.h (sample_profiler_running, gc_probe): Don't declare.
      ad942b63
    • Stefan Monnier's avatar
      Rewrite sampler to use Elisp hash-tables. · 3d80c99f
      Stefan Monnier authored
      * src/profiler.c: Remove filtering functionality.
      (is_in_trace, Qgc): Remove vars.
      (make_log, record_backtrace, Fsample_profiler_log):
      Rewrite, using Elisp hash-tables.
      (approximate_median, evict_lower_half): New functions.
      (cpu_log): Rename from sample_log.
      (cpu_gc_count): New var.
      (Fsample_profiler_reset, Fmemory_profiler_reset): Remove.
      (sigprof_handler): Add count to cpu_gc_count during GC, detected via
      backtrace_list.
      (block_sigprof, unblock_sigprof): Remove.
      (gc_probe, mark_profiler): Remove functions.
      (syms_of_profiler): Staticpro cpu_log and memory_log.
      
      * lisp/profiler.el (profiler-sample-interval): Move before first use.
      Change default to 1ms.
      (profiler-entry=, profiler-backtrace-reverse, profiler-log-fixup-slot)
      (profiler-calltree-elapsed<, profiler-calltree-elapsed>): Remove functions.
      (profiler-entry-format): Don't use type-of.
      (profiler-slot, profiler-log): Remove structs.
      (profiler-log-timestamp, profiler-log-type, profiler-log-diff-p):
      Redefine for new log representation.
      (profiler-log-diff, profiler-log-fixup, profiler-calltree-build-1):
      Rewrite for new log representation.
      (profiler-calltree): Remove `elapsed' fields.
      (profiler-calltree-count<, profiler-report-make-entry-part):
      Remove gc special case.
      (profiler-calltree-find): Use equal.
      (profiler-calltree-walk): Remove `args'; rely on closures instead.
      (profiler-calltree-compute-percentages-1): Remove; inlined.
      (profiler-calltree-compute-percentages): Simplify.
      (profiler-report-log, profiler-report-reversed)
      (profiler-report-order): Use defvar-local.
      (profiler-report-line-format): Remove `elapsed', do a bit of CSE.
      (profiler-report-mode-map): Remove up/down bindings.
      (profiler-report-make-buffer-name): Simplify by CSE.
      (profiler-report-mode): Remove redundant code.
      (profiler-report-expand-entry, profiler-report-collapse-entry):
      Use inhibit-read-only.
      (profiler-report-render-calltree-1): Simplify by CSE.
      (profiler-reset): Rewrite for new subroutines.
      (profiler--report-cpu): Rename from sample-profiler-report.
      (profiler--report-memory): Rename from memory-profiler-report.
      
      * src/alloc.c (Fgarbage_collect): Record itself in backtrace_list.
      Don't set is_in_trace any more.  Don't call mark_profiler.
      Only call gc_probe for the memory profiler.
      (syms_of_alloc): Define Qautomatic_gc.
      
      * src/lisp.h (SXHASH_COMBINE): Move back to...
      * src/fns.c (SXHASH_COMBINE): ...here.
      
      * src/xdisp.c (Qautomatic_redisplay): New constant.
      (redisplay_internal): Record itself in backtrace_list.
      (syms_of_xdisp): Define Qautomatic_redisplay.
      
      * .dir-locals.el (indent-tabs-mode): Remove personal preference.
      3d80c99f
  4. 15 Sep, 2012 1 commit
  5. 23 Aug, 2012 1 commit
  6. 22 Aug, 2012 9 commits
  7. 21 Aug, 2012 24 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
    • Eli Zaretskii's avatar
      Fix bug #11860 with displaying composite RTL characters on MS-Windows. · b2f09701
      Eli Zaretskii authored
       src/w32uniscribe.c (uniscribe_shape): Fix producing gstring
       components for RTL text.  Adjust X-OFFSET of each non-base glyph
       for the width of the base character, according to what
       x_draw_composite_glyph_string_foreground expects.  Generate
       WADJUST value according to composition_gstring_width's
       expectations, to produce correct width of the composed character.
       Reverse the sign of the DU offset produced by ScriptPlace.
      b2f09701
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Merge from gnulib. · 01b13eb7
      Paul Eggert authored
      01b13eb7
    • Dmitry Antipov's avatar
      Avoid direct writes to contents member of struct Lisp_Vector. · 086ca913
      Dmitry Antipov authored
      * lisp.h (vcopy): New function to copy data into vector.
      * dispnew.c (Fframe_or_buffer_changed_p): Use AREF and ASET.
      * fns.c (Ffillarray): Use ASET.
      * keyboard.c (timer_check_2): Use AREF and ASET.
      (append_tool_bar_item, Frecent_keys): Use vcopy.
      * lread.c (read_vector): Use ASET.
      * msdos.c (Frecent_doskeys): Use vcopy.
      * xface.c (Finternal_copy_lisp_face): Use vcopy.
      (Finternal_merge_in_global_face): Use ASET and vcopy.
      * xfont.c (xfont_list_pattern): Likewise.
      086ca913
    • Glenn Morris's avatar
      Auto-commit of generated files. · 0e733db9
      Glenn Morris authored
      0e733db9
    • Martin Rudalics's avatar
      Document recent changes for select-window, window-point and set-window-point. · 342dac71
      Martin Rudalics authored
      * windows.texi (Window Point): Document recent changes in
      window-point and set-window-point.
      (Selecting Windows): Document recent change in select-window.
      342dac71
    • Martin Rudalics's avatar
      For selected window have (set-)window-point always operate on buffer's point. · 5481664a
      Martin Rudalics authored
      * window.c (Fwindow_point): For the selected window always return
      the position of its buffer's point.
      (Fset_window_point): For the selected window always go in its
      buffer to the specified position.
      * window.el (window-point-1, set-window-point-1): Remove.
      (window-in-direction, record-window-buffer)
      (set-window-buffer-start-and-point, split-window-below)
      (window--state-get-1, display-buffer-record-window): Replace
      calls to window-point-1 and set-window-point-1 by calls to
      window-point and set-window-point respectively.
      5481664a
    • Glenn Morris's avatar
      Remove still more cal-tex code duplication · 9f1ee09e
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-leftday, cal-tex-rightday): New functions.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week)
      (cal-tex-cursor-filofax-week): Use them.
      9f1ee09e
    • Julien Danjou's avatar
      erc-match: fix erc-match server buffer exclusion · a878d0f2
      Julien Danjou authored
      * erc-match.el (erc-match-message): Use
      `erc-match-exclude-server-buffer' not
      `erc-track-exclude-server-buffer'.
      a878d0f2
    • Glenn Morris's avatar
      Remove more cal-tex code duplication · 79858159
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-lefthead, cal-tex-righthead): New constants.
      (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week)
      (cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use them.
      79858159
    • Glenn Morris's avatar
      Allow multiple cal-tex-buffer buffers to exist · d346b2b4
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-preamble): Generate new buffers.
      (cal-tex-end-document): Don't rely on buffer name.
      d346b2b4
    • Glenn Morris's avatar
      Use cal-tex-arg more · 2d225a3a
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-scriptsize, cal-tex-huge)
      (cal-tex-Huge, cal-tex-large): Use cal-tex-arg.
      2d225a3a
    • Glenn Morris's avatar
      Use cal-tex-* functions more · b2403709
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year): Use cal-tex-vspace.
      (cal-tex-vspace, cal-tex-hspace, cal-tex-em, cal-tex-bf)
      (cal-tex-Huge-bf, cal-tex-large-bf): Use cal-tex-cmd.
      b2403709
    • Glenn Morris's avatar
      Improve cal-tex-cmd usage · 1cebb5c0
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year)
      (cal-tex-cursor-week, cal-tex-cursor-week2)
      (cal-tex-cursor-week-iso, cal-tex-cursor-week-at-a-glance)
      (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
      (cal-tex-cursor-filofax-daily, cal-tex-cursor-day)
      (cal-tex-insert-preamble, cal-tex-b-document)
      (cal-tex-e-document, cal-tex-b-center, cal-tex-e-center):
      Improve cal-tex-cmd usage.
      1cebb5c0
    • Dmitry Antipov's avatar
      Setter macros for fontsets. · 6d470bdd
      Dmitry Antipov 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): New macros.
      Adjust users.
      6d470bdd
    • Glenn Morris's avatar
      Reduce some cal-tex code duplication · c68cd5d4
      Glenn Morris authored
      * lisp/calendar/cal-tex.el (cal-tex-filofax-paper): New function.
      (cal-tex-cursor-filofax-year, cal-tex-cursor-filofax-2week)
      (cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use it.
      (cal-tex-weekly-paper): New function.
      (cal-tex-cursor-week, cal-tex-cursor-week2)
      (cal-tex-cursor-week-iso, cal-tex-cursor-week-monday)
      (cal-tex-cursor-day): Use it.
      c68cd5d4