bugfixes, `py-match-paren' now at "%"

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

bugfixes, `py-match-paren' now at "%"

Andreas Röhler-2

Hi,

luckily announce some progress in python-mode.el (branch)

`py-match-paren' now has a key: "%" as in lisp.

`M-x py-match-paren-mode', jump between beg and
end of block pressing "%". To the beginning first, if
inside.

Key "%" is not as suitable as in lisp,
as its more often needed in python.

If `py-match-paren-mode' is on with that key assigned,
to insert a "%" literally do \C-q%.

So the key is to change still probably, it's
customizable.

Also

+ (define-key py-mode-map "\C-\M-n" 'py-forward-block)
 + (define-key py-mode-map "\C-\M-p" 'py-backward-block)
 + (define-key py-mode-map "\C-ca" 'py-beginning-of-block)
 + (define-key py-mode-map "\C-ce" 'py-end-of-block)
 + (define-key py-mode-map "\C-c\C-u" 'py-goto-block-up)


That means: took the keys from forward- backward-list
in Lisp, as a list in python is a block for me.

That experimentally so far. Must I deliver live-jackets? ;)

`py-match-paren' and `py-backward-block' fixed.


Andreas Röhler

--
http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/files
https://code.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: bugfixes, `py-match-paren' now at "%"

Yaroslav Halchenko-5
pardon my ignorance, but was it done on purpose?

in 356. By  Andreas Roehler  on 2009-01-29
,---
| *$> git show 07985672d238301b27353913fc4aa509992571fb --stat
| commit 07985672d238301b27353913fc4aa509992571fb
| Author: Andreas Roehler <[hidden email]>
| Date:   Thu Jan 29 18:33:20 2009 +0100
|
|     py-match-paren
|
|  README          |    7 -
|  doctest-mode.el | 2061 -------------------------------------------------------
|  pycomplete.el   |   50 --
|  pycomplete.py   |  110 ---
|  python-mode.el  |   86 +++
|  5 files changed, 86 insertions(+), 2228 deletions(-)
`---

you've removed all those files in the root of the repository and left only
python-mode (which you also modified in the same commit) and the website
directory

log message ("py-match-paren") is too concise to figure out what was
intended ;-)

P.S. git-bzr is cool -- now I can watch both branches (main and yours)
in the same git repository ;-)

On Wed, 04 Feb 2009, Andreas Roehler wrote:
> Hi,

> luckily announce some progress in python-mode.el (branch)

> `py-match-paren' now has a key: "%" as in lisp.

> `M-x py-match-paren-mode', jump between beg and
> end of block pressing "%". To the beginning first, if
> inside.
--
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]


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

Re: bugfixes, `py-match-paren' now at "%"

Andreas Röhler-2
Yaroslav Halchenko wrote:

> pardon my ignorance, but was it done on purpose?
>
> in 356. By  Andreas Roehler  on 2009-01-29
> ,---
> | *$> git show 07985672d238301b27353913fc4aa509992571fb --stat
> | commit 07985672d238301b27353913fc4aa509992571fb
> | Author: Andreas Roehler <[hidden email]>
> | Date:   Thu Jan 29 18:33:20 2009 +0100
> |
> |     py-match-paren
> |
> |  README          |    7 -
> |  doctest-mode.el | 2061 -------------------------------------------------------
> |  pycomplete.el   |   50 --
> |  pycomplete.py   |  110 ---
> |  python-mode.el  |   86 +++
> |  5 files changed, 86 insertions(+), 2228 deletions(-)
> `---
>
> you've removed all those files in the root of the repository and left only
> python-mode (which you also modified in the same commit) and the website
> directory
>

Hi Yaroslav ,

it's possible I've made an error.

Hi Barry,

could you please check the proceeding?

My concern was not to keep outdated files in my branch,
which may have been changed in the trunk. Therefore I
delete files, not under development in the branch.

Maybe this concern wasn't valid? Maybe another solution
might have been better?

Thanks

Andreas

> log message ("py-match-paren") is too concise to figure out what was
> intended ;-)
>
> P.S. git-bzr is cool -- now I can watch both branches (main and yours)
> in the same git repository ;-)
>
> On Wed, 04 Feb 2009, Andreas Roehler wrote:
>> Hi,
>
>> luckily announce some progress in python-mode.el (branch)
>
>> `py-match-paren' now has a key: "%" as in lisp.
>
>> `M-x py-match-paren-mode', jump between beg and
>> end of block pressing "%". To the beginning first, if
>> inside.

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

Re: bugfixes, `py-match-paren' now at "%"

Andreas Röhler-2
In reply to this post by Yaroslav Halchenko-5
Yaroslav Halchenko wrote:

> pardon my ignorance, but was it done on purpose?
>
> in 356. By  Andreas Roehler  on 2009-01-29
> ,---
> | *$> git show 07985672d238301b27353913fc4aa509992571fb --stat
> | commit 07985672d238301b27353913fc4aa509992571fb
> | Author: Andreas Roehler <[hidden email]>
> | Date:   Thu Jan 29 18:33:20 2009 +0100
> |
> |     py-match-paren
> |
> |  README          |    7 -
> |  doctest-mode.el | 2061 -------------------------------------------------------
> |  pycomplete.el   |   50 --
> |  pycomplete.py   |  110 ---
> |  python-mode.el  |   86 +++
> |  5 files changed, 86 insertions(+), 2228 deletions(-)
> `---
>
> you've removed all those files in the root of the repository and left only
> python-mode (which you also modified in the same commit) and the website
> directory
>
> log message ("py-match-paren") is too concise to figure out what was
> intended ;-)
>
> P.S. git-bzr is cool -- now I can watch both branches (main and yours)
> in the same git repository ;-)
>
> On Wed, 04 Feb 2009, Andreas Roehler wrote:
>> Hi,
>
>> luckily announce some progress in python-mode.el (branch)
>
>> `py-match-paren' now has a key: "%" as in lisp.
>
>> `M-x py-match-paren-mode', jump between beg and
>> end of block pressing "%". To the beginning first, if
>> inside.

Hi Yaroslav,

as Barry seems busy,

are you able to combine pyton-mode.el from branch with remaining files from trunk?

BTW as branch changes still, please tell about your deadlines, if you want to build it in.

No bugs concerning my changing known so far.

Thanks

Andreas



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

Re: bugfixes, `py-match-paren' now at "%"

Yaroslav Halchenko-5
> as Barry seems busy,

> are you able to combine pyton-mode.el from branch with remaining files from
trunk?  well -- now -- "not natively" since if I merge your branch I
loose those removed files:

$> git merge bzr/a-roehler
Merging HEAD with bzr/a-roehler
Removed README
Removed doctest-mode.el
Removed pycomplete.el
Removed pycomplete.py
Auto-merged python-mode.el

may be in bzr there is a native way to handle merges on per-file basis
but unfortunately I am not familiar with bzr.

I can always though generate a patch of your modifications in python-mode and
apply within my local copy of the master branch, but that is not "native"
way and brings even more confusion.

It might be that if you added those files back, bzr would be able to
handle situation gracefully... git does apparently:

So, I've added those files back within a local copy of your branch and then
tried to merge your branch back into the master

*$> git merge a-roehler
Merging HEAD with a-roehler
Auto-merged python-mode.el
Merge made by recursive.
 python-mode.el |  374 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 349 insertions(+), 25 deletions(-)


> BTW as branch changes still, please tell about your deadlines, if you want to build it in.

I am just a little person -- a maintainer of python-mode.el for Debian. I've
already shipped current version into Debian, and would be happy to ship a new
version with your modifications if they propagate reach master
branch

> No bugs concerning my changing known so far.

nothing is good than a real field testing by hunders of users --
unexpected aspects of code functioning get unraveled ;-)

--
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]


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

Re: bugfixes, `py-match-paren' now at "%"

Andreas Röhler-2
Yaroslav Halchenko wrote:

>> as Barry seems busy,
>
>> are you able to combine pyton-mode.el from branch with remaining files from
> trunk?  well -- now -- "not natively" since if I merge your branch I
> loose those removed files:
>
> $> git merge bzr/a-roehler
> Merging HEAD with bzr/a-roehler
> Removed README
> Removed doctest-mode.el
> Removed pycomplete.el
> Removed pycomplete.py
> Auto-merged python-mode.el
>
> may be in bzr there is a native way to handle merges on per-file basis
> but unfortunately I am not familiar with bzr.
>
> I can always though generate a patch of your modifications in python-mode and
> apply within my local copy of the master branch, but that is not "native"
> way and brings even more confusion.
>
> It might be that if you added those files back, bzr would be able to
> handle situation gracefully...

OK. I'll try that.

Have not that much experience with bazaar too...

I'll wait some days still, maybe Barry has another idea.

Cheers

Andreas


> git does apparently:
>
> So, I've added those files back within a local copy of your branch and then
> tried to merge your branch back into the master
>
> *$> git merge a-roehler
> Merging HEAD with a-roehler
> Auto-merged python-mode.el
> Merge made by recursive.
>  python-mode.el |  374 ++++++++++++++++++++++++++++++++++++++++++++++++++++----
>  1 files changed, 349 insertions(+), 25 deletions(-)
>
>
>> BTW as branch changes still, please tell about your deadlines, if you want to build it in.
>
> I am just a little person -- a maintainer of python-mode.el for Debian. I've
> already shipped current version into Debian, and would be happy to ship a new
> version with your modifications if they propagate reach master
> branch
>
>> No bugs concerning my changing known so far.
>
> nothing is good than a real field testing by hunders of users --
> unexpected aspects of code functioning get unraveled ;-)
>

_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode