~tcaswell-gmail/python-mode/execute_refactor

Viewing all changes in revision 1166.

  • Committer: Thomas Caswell
  • Date: 2013-01-02 06:23:30 UTC
  • Revision ID: tcaswell@gmail.com-20130102062330-9t7cdyr5p5c240yx

First pass at re-factoring py-execute-*.

The functions py-execute-buffer-finally and py-execute-buffer-file
are almost identical and can be merged up into py-execute-base.  This
is beneficial because than all of the commands that might muck with
the buffer or window configuration can be wrapped in (save-window-excursion)
which will guarantee that we can then run (py-execute-manage-windows) on
the exact same configuration the user had when they started the execution.

This commit has at least (what I think) are the basic use cases
covered (but no window management yet).  I stripped out a lot of stuff that looked like it
wasn't used, or wasn't needed that may very well need to go back in.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: