all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Xavier Maillard <xma@gnu.org>
Cc: help-gnu-emacs@gnu.org, Richard Riley <rileyrgdev@googlemail.com>,
	python-mode@python.org
Subject: Re: python setup ?
Date: Thu, 30 Apr 2009 09:25:40 +0200	[thread overview]
Message-ID: <49F95274.4000801@easy-emacs.de> (raw)
In-Reply-To: <200904280634.n3S6YctW009278@zogzog.maillard.mobi>

Xavier Maillard wrote:
> Hi,
>
>    Richard Riley wrote:
>
>    >> The python-mode used is 5.1.0.
>
>    I've changed python-mode a little bit.
>    Purpose was to make movements a little bit easier,
>    more predictible.
>
> Easier, how easier ? What is so difficult with the default
> bindings ? (serious questions).
>   

Hi Xavier,

well, what means "easier"?

Our personal notion about whats best or fittest not
always is acknowledged by others obviously. Tastes
differ. From that I mean its better not just to look
for the one-and-all solution, but to offer flavors of
modes, so people have the choice. Thats already done
with perl-mode and cperl-mode for example. Nonetheless,
the one-and-all idea seems deep-rooted not just in
religion.

With python-mode.el, people may have good reasons, to
use it as it is - and me to leave it as it is.  Thats
fine with bazaar and other DVCs, we can do that. My
branch doesn't hamper the origin and any further branch
will not. Its just freedom to try and see.

Branch orginated from some request, to close forms more
definitely, more specific. Whilst python looks easy and
indeed is, editing it poses some specific difficulties
resulting from special meaning of whitespace.

Python-mode solved this by offering some repeats: if
you are not at the right indentation, just try the next
one - outer or inner.

Thats OK, thats a possible approach. Here the request
came from a user, who must care to save keystrokes.

Thus I wrote commands precisely closing function or
class, resp. last block. Block conceived as the
smollest hierarchical unit - themselves if no hierarchy
exists.

Too I had some other things in mind: reduction of
complexity, generalisation. Something remains to be
done.

Some reporting facilities have been introduced and
shall be still.

Here new functions as `bzr log' displays it:

`py-next-statement' and `py-previous-statement' set cursor at first char
on line instead of beginning of line
 
py-forward-block, py-backward-block

  py-beginning-of-def-or-class
  py-class-at-point
  py-function-at-point
  py-beginning-of-function
  py-beginning-of-class
  py-end-of-function
  py-end-of-class
  py-end-of-def-or-class
  py-line-at-point
  py-block-at-point
  py-beginning-of-block
  py-end-of-block
 
  py-whats-at-point
 
  py-beginning-of-def-or-class (really "or")
 
  py-beginning-of-def-or-class-if-arg

########

So far

Andreas Röhler

--
http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/
https://code.launchpad.net/s-x-emacs-werkstatt/

>    BTW have a look at pydb from Rocky Bernstein, if not done already.
>
> What is it useful for ?
>
> 	Xavier
>   

       reply	other threads:[~2009-04-30  7:25 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200904280634.n3S6YctW009278@zogzog.maillard.mobi>
2009-04-30  7:25 ` Andreas Röhler [this message]
2009-04-30 13:24   ` python setup ? Barry Warsaw
2009-05-04 16:57     ` Richard Riley
2009-04-29 22:25 Xavier Maillard
  -- strict thread matches above, loose matches on Subject: below --
2009-04-29 22:25 Xavier Maillard
2009-04-30  5:42 ` Andreas Röhler
     [not found] <mailman.6159.1240901979.31690.help-gnu-emacs@gnu.org>
2009-04-28 16:56 ` Richard Riley
2009-05-13 21:05   ` Piet van Oostrum
     [not found] <mailman.6155.1240900544.31690.help-gnu-emacs@gnu.org>
2009-04-28 16:55 ` Richard Riley
2009-04-28  6:34 Xavier Maillard
2009-04-28  6:34 Xavier Maillard
2009-04-28  6:34 Xavier Maillard
2009-04-28  8:04 ` thierry.volpiatto
2009-04-28  6:34 Xavier Maillard
2009-04-28  6:42 ` thierry.volpiatto
2009-04-28  8:51 ` Andreas Röhler
     [not found] <mailman.6045.1240741475.31690.help-gnu-emacs@gnu.org>
2009-04-26 11:25 ` Richard Riley
2009-04-26 13:16   ` Richard Riley
2009-04-27  7:42     ` Andreas Röhler
     [not found]     ` <mailman.6094.1240818145.31690.help-gnu-emacs@gnu.org>
2009-04-27  8:53       ` Richard Riley
2009-04-27 11:08         ` Andreas Röhler
     [not found]         ` <mailman.6098.1240830481.31690.help-gnu-emacs@gnu.org>
2009-04-27 11:15           ` Richard Riley
2009-04-27 13:50             ` thierry.volpiatto
     [not found]             ` <mailman.6107.1240840677.31690.help-gnu-emacs@gnu.org>
2009-04-27 14:12               ` Richard Riley
2009-04-27 15:23                 ` thierry.volpiatto
     [not found]                 ` <mailman.6113.1240846261.31690.help-gnu-emacs@gnu.org>
2009-04-28  0:55                   ` superbobry
2009-04-28 10:43                     ` Bernardo
     [not found]                     ` <mailman.6165.1240915318.31690.help-gnu-emacs@gnu.org>
2009-04-28 11:25                       ` superbobry
2009-04-27  8:58       ` Richard Riley
2009-04-27 11:20         ` Andreas Röhler
     [not found]           ` <49f5b71c.0305560a.6147.25ed@mx.google.com>
2009-05-08  9:16             ` Andreas Röhler
     [not found]             ` <mailman.6842.1241774145.31690.help-gnu-emacs@gnu.org>
2009-05-08 16:36               ` Richard Riley
2009-05-01 21:35   ` bbbscarter
2009-04-26 10:25 Xavier Maillard
2009-04-26 11:29 ` thierry.volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49F95274.4000801@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=python-mode@python.org \
    --cc=rileyrgdev@googlemail.com \
    --cc=xma@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.