[Python-mode] python-mode.el-6.0.12 released

Andreas Röhler andreas.roehler at online.de
Fri Sep 28 08:17:17 CEST 2012


Hi Barry, hi all,

fastening Python edits while lowering the learning curve for beginners by PyEdit menu is the focus of this release.


New in version 6.0.12
---------------------

- py-sexp-function,
   When set, it's value is called instead of `forward-sexp', `backward-sexp
   Choices are py-partial-expression, py-expression, default nil

- `py-partial-expression' reconsidered.
    Beside common moves like `defun', `statement' specific Python-mode edits are delivered:

   `py-expression' and `py-partial-expression'.

   Statement below is considered composed of two `py-expression'

   a = ['spam', 'eggs', 100, 1234]
   |_| |_________________________|

   Assigment operator and all inside comments is ignored.

   `py-partial-expression' would match six sections

    a = ['spam', 'eggs', 100, 1234]
   |_|   |_____|  |____| |__| |__|
        |_________________________|

   When traversing code, `py-partial-expression' climbs down and up
   all levels encountered, i.e. at opening `[' `py-expression' would return ['spam', 'eggs', 100, 1234], while one char behind at `''
   it yields `'spam','

- `py-find-definition' also detects non-imported definition in current buffer

- Choice between `py-imenu-create-index-new' and series 5.
   py-imenu-create-index-function made easier.
   Customizable variable `py-imenu-create-index-function' provided, see also
   command in PyTools

- New commands addressing BOL as start/end:
   py-beginning-of-block-bol
   py-end-of-block-bol
   py-mark-block-bol
   py-copy-block-bol
   py-kill-block-bol
   py-delete-block-bol
   py-end-of-clause-bol
   etc.

- While commands "py-beginning..." resp. "py-end..." compute the context,
   selecting the corresponding beginning or end,
   new "py-up...", "py-down..." jump regexp-based to the
   next element in buffer.
   See also menu PyEdit


Thanks to all contributors,
Thanks Urs, making Pymacs-based py-complete more smart py-complete again,

enjoy,

Andreas





More information about the Python-mode mailing list