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-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).



Python-mode mailing list
[hidden email]
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

Install looks good. I was able to

BCD_RFP="tools/" # 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}"

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]