1. 20 Jul, 2012 2 commits
    • Dmitry Antipov's avatar
      Cleanup calls to Fgarbage_collect. · 765e61e3
      Dmitry Antipov authored
      * lisp.h (maybe_gc): New prototype.
      (consing_since_gc, gc_relative_threshold, memory_full_cons_threshold):
      Remove declarations.
      * alloc.c (maybe_gc): New function.
      (consing_since_gc, gc_relative_threshold, memory_full_cons_threshold):
      Make them static.
      * bytecode.c (MAYBE_GC): Use maybe_gc.
      * eval.c (eval_sub, Ffuncall): Likewise.
      * keyboard.c (read_char): Likewise.  Adjust call to maybe_gc
      to avoid dependency from auto-save feature.
      765e61e3
    • Dmitry Antipov's avatar
      Drop idle buffer compaction due to an absence of the · 89dea803
      Dmitry Antipov authored
      proved efficiency.
      * lisp/compact.el: Remove.
      89dea803
  2. 19 Jul, 2012 8 commits
    • Paul Eggert's avatar
      * buffer.h (FOR_EACH_BUFFER): Rename from 'for_each_buffer'. · 52b852c7
      Paul Eggert authored
      (FOR_EACH_PER_BUFFER_OBJECT_AT): Rename from
      'for_each_per_buffer_object_at'.
      All uses changed.  It's better to use upper-case for macros that
      cannot be implemented as functions, to give the reader a clue
      that they're special.
      52b852c7
    • Sam Steingold's avatar
      * lisp/vc/vc-dispatcher.el (vc-compilation-mode): Add, based on · 8a4e6db8
      Sam Steingold authored
      vc-bzr-pull & vc-bzr-merge-branch.
      * lisp/vc/vc-bzr.el (vc-bzr-pull, vc-bzr-merge-branch): Use it.
      (vc-bzr-error-regexp-alist): Rename from vc-bzr-error-regex-alist
      for consistency with compilation-error-regexp-alist.
      * lisp/vc/vc-git.el (vc-git-error-regexp-alist): Add.
      (vc-git-pull, vc-git-merge-branch): Call vc-compilation-mode.
      * lisp/vc/vc-hg.el (vc-hg-error-regexp-alist): Add.
      (vc-hg-pull, vc-hg-merge-branch): Call vc-compilation-mode.
      8a4e6db8
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/chart.el: Use lexical-binding. · 5db81e33
      Stefan Monnier authored
      (chart-emacs-storage): Don't hardcode the list of entries.
      * src/alloc.c (Fgarbage_collect): Tweak docstring.
      5db81e33
    • Dmitry Antipov's avatar
      Tweak the value returned from Fgarbage_collect again. · 5b835e1d
      Dmitry Antipov authored
      * src/alloc.c (Fgarbage_collect): New return value, as confirmed in
      http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00418.html.
      Adjust documentation.
      (total_vector_bytes): Rename to total_vector_slots, adjust
      accounting.
      (total_free_vector_bytes): Rename to total_free_vector_slots,
      adjust accounting.
      (Qstring_bytes, Qvector_slots): New symbols.
      (syms_of_alloc): DEFSYM them.
      * lisp/emacs-lisp/chart.el (chart-emacs-storage): Adjust again.
      5b835e1d
    • Dmitry Antipov's avatar
      Compact buffers when idle. · 9cd47b72
      Dmitry Antipov authored
      * lisp/compact.el: New file.
      * src/buffer.c (compact_buffer, Fcompact_buffer): New function.
      (syms_of_buffer): Register Fcompact_buffer.
      * src/alloc.c (Fgarbage_collect): Use compact_buffer.
      * src/buffer.h (compact_buffer): New prototype.
      (struct buffer_text): New member.
      9cd47b72
    • Stefan Monnier's avatar
      * lisp/subr.el (eventp): Presume that if it looks vaguely like an event, · 1d6fc0df
      Stefan Monnier authored
      it's an event.
      
      Fixes: debbugs:10190
      1d6fc0df
    • Dmitry Antipov's avatar
      New macro to iterate over all buffers, miscellaneous cleanups. · d17337e5
      Dmitry Antipov authored
      * lisp.h (all_buffers): Remove declaration.
      * buffer.h (all_buffers): Add declaration, with comment.
      (for_each_buffer): New macro.
      * alloc.c (Fgarbage_collect, mark_object): Use it.
      * buffer.c (Fkill_buffer, Fbuffer_swap_text, Fset_buffer_multibyte)
      (init_buffer): Likewise.
      * data.c (Fset_default): Likewise.
      * coding.c (code_conversion_restore): Remove redundant check
      for dead buffer.
      * buffer.c (Fkill_buffer): Likewise.  Remove obsolete comment.
      d17337e5
    • Fabián Ezequiel Gallina's avatar
      Enhancements to ppss related code (thanks Stefan). · 1d29cc7d
      Fabián Ezequiel Gallina authored
      * progmodes/python.el (python-indent-context)
      (python-indent-calculate-indentation, python-indent-dedent-line)
      (python-indent-electric-colon, python-nav-forward-block)
      (python-mode-abbrev-table)
      (python-info-assignment-continuation-line-p): Simplified checks
      for ppss context.
      (python-info-continuation-line-p): Cleanup.
      (python-info-ppss-context): Do not catch 'quote.
      (python-info-ppss-context-type)
      (python-info-ppss-comment-or-string-p): Simplify.
      1d29cc7d
  3. 18 Jul, 2012 23 commits
  4. 17 Jul, 2012 7 commits