python-mode.el-6.0.3 released

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

python-mode.el-6.0.3 released

Andreas Röhler-2
Hi all,

gladly announcing the release of python-mode.el-6.0.3.

Thanks Barry, Georg and all people assisting with
reports. Special thanks to Thomas Caswell and Tavis
Rudd, whose branches have been merged.

New in version 6.0.3:

- commands `ipython', `python2', `python3', `jython', `python'
   opening a respective python shell

- ipython integration started

-  py-shift-block-left, py-shift-block-right etc.
   Implemented forms that way are
   "paragraph" "block" "clause" "def" "class" "line" "statement"

- py-dedent
   Dedent line according to `py-indent-offset'. With
   arg, do it that many times. If point is between
   indent levels, dedent to next level. Stops at BOL.
   Returns column reached, if dedent done, nil otherwise.

- py-indent-forward-line
   Indent line and move one line forward. If
   `py-kill-empty-line' is non-nil, delete an empty
   line. When closing a form, use py-close-block et al,
   which will move and indent likewise. Returns position.

- py-down-block
   Go to the beginning of next block below current level.
   Returns position if block inside found, nil otherwise.

- py-close-block, -clause, -def, class
   Set indent level to that of beginning of definition.
   If final line isn't empty and
   `py-close-block-provides-newline' non-nil, insert a
   newline. Returns column.

- new commands specifying the shell override
   `py-shell-name' for execution
   implemented shells are "python" "python2" "python2.7"
   "python3" "python3.2" "jython"

   available with default, -switch and -no-switch
   option, i.e.
   py-execute-region-python3.2
   py-execute-region-python3.2-switch
   py-execute-region-python3.2-no-switch etc.

   Docstring of py-execute-region-python3.2-switch for
   example: "Send the region to a common shell calling the
   python3.2 interpreter. Ignores setting of
   `py-shell-switch-buffers-on-execute', output-buffer
   will being switched to."

- Declarations
   Deal with assignments resp. statements in current
   level which don't open blocks. Provides common edit
   functions as copy, mark, kill, go to beg/end.

   Functions will be used typically to grasp
   initialisations resp. assignments of variables
   between the definition of a class or method and it's
   body, likewise global stuff at the head of a file.

- column-marker.el added
   Commands `column-marker-1', `column-marker-2', and
   `column-marker-3' each highlight a given column
   (using different background colors by default).

Source:
http://launchpad.net/python-mode/trunk/6.0.3/+download/python-mode.el-6.0.3.tar.gz


Andreas

--
https://launchpad.net/python-mode
https://launchpad.net/s-x-emacs-werkstatt/
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|

Re: python-mode.el-6.0.3 released

Tom Roche

Andreas Röhler Thu, 06 Oct 2011 21:00:14 +0200
> http://launchpad.net/python-mode/trunk/6.0.3/+download/python-mode.el-6.0.3.tar.gz

Install looks good. I was able to

VERSION="6.0.3"
PKG_URI="http://launchpad.net/python-mode/trunk/${VERSION}/+download/python-mode.el-${VERSION}.tar.gz"
ROOT_DIR="${HOME}/.emacs.d/site-lisp/python"
VERSION_DIR="${ROOT_DIR}/python-mode.el-${VERSION}"
BCD_RFP="tools/byte-compile-directory.sh" # path relative to ${VERSION_DIR}
for CMD in \
  "pushd ${ROOT_DIR}" \
  "wget -O - ${PKG_URI} | tar xfz -" \
  "popd" \
  "pushd ${VERSION_DIR}" \
  "find ./ -name '*.el' | wc -l" \
  "find ./ -name '*.elc' | wc -l" \
  "chmod a+x ${BCD_RFP}" \
  "${BCD_RFP}" \
  "find ./ -name '*.el' | wc -l" \
  "find ./ -name '*.elc' | wc -l" \
  "popd" \
; do
  echo -e "${CMD}"
  eval "${CMD}"
done

and the only error I got was

> test/python-mode-test.el:27:1:Error: Cannot open load file: py-bug-numbered-tests

The scriptlet above finished with

> find ./ -name '*.el' | wc -l
> 10
> find ./ -name '*.elc' | wc -l
> 9

After I make my init.el call python-mode.el-6.0.3 and restart emacs: no errors, and `M-x ipython` and `M-x python3` both work appropriately.
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode