unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* python setup ?
@ 2009-04-26 10:25 Xavier Maillard
  2009-04-26 11:29 ` thierry.volpiatto
  0 siblings, 1 reply; 35+ messages in thread
From: Xavier Maillard @ 2009-04-26 10:25 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am starting to do some work with python. I am looking for
options/setups to introduce into my .emacs file to have the best
experience possible with this scripting language.

Where should I start ?

Regards

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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-05-01 21:35   ` bbbscarter
  0 siblings, 2 replies; 35+ messages in thread
From: Richard Riley @ 2009-04-26 11:25 UTC (permalink / raw)
  To: help-gnu-emacs

Xavier Maillard <xma@gnu.org> writes:

> Hi,
>
> I am starting to do some work with python. I am looking for
> options/setups to introduce into my .emacs file to have the best
> experience possible with this scripting language.
>
> Where should I start ?
>
> Regards
>
> 	Xavier

I played with some python options last year and it was, unfortunately,
rather messy. There were some conflicts between packages any python
versions. For what its worth, the following was working back when with
emacs 23:

http://www.emacswiki.org/emacs/PythonMode#toc11
http://richardriley.net/projects/emacs/dotprogramming#sec-1.3

It includes autocompletion from autocomplete using pysmell. Another
possible integration for eclim and the eclipse engine I would have
thought.

The iPython bit is commented out - I can't remember why off the top of
my head.  The pymacs git repository seems dead too unfortunately. 

The python-mode used is 5.1.0.




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-26 10:25 Xavier Maillard
@ 2009-04-26 11:29 ` thierry.volpiatto
  0 siblings, 0 replies; 35+ messages in thread
From: thierry.volpiatto @ 2009-04-26 11:29 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Xavier,

Xavier Maillard <xma@gnu.org> writes:

> Hi,
>
> I am starting to do some work with python. I am looking for
> options/setups to introduce into my .emacs file to have the best
> experience possible with this scripting language.
>
> Where should I start ?

I personnaly use python-mode.el that is much better than python.el (that
come with emacs).
https://code.launchpad.net/~python-mode-devs/python-mode/python-mode

I use also ipython as python shell that integrate fine in emacs.

http://farm4.static.flickr.com/3417/3476168380_ac540f1f02_o.png

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  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-05-01 21:35   ` bbbscarter
  1 sibling, 2 replies; 35+ messages in thread
From: Richard Riley @ 2009-04-26 13:16 UTC (permalink / raw)
  To: help-gnu-emacs

Richard Riley <rileyrgdev@googlemail.com> writes:

> Xavier Maillard <xma@gnu.org> writes:
>
>> Hi,
>>
>> I am starting to do some work with python. I am looking for
>> options/setups to introduce into my .emacs file to have the best
>> experience possible with this scripting language.
>>
>> Where should I start ?
>>
>> Regards
>>
>> 	Xavier
>
> I played with some python options last year and it was, unfortunately,
> rather messy. There were some conflicts between packages any python
> versions. For what its worth, the following was working back when with
> emacs 23:
>
> http://www.emacswiki.org/emacs/PythonMode#toc11
> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>
> It includes autocompletion from autocomplete using pysmell. Another
> possible integration for eclim and the eclipse engine I would have
> thought.
>
> The iPython bit is commented out - I can't remember why off the top of
> my head.  The pymacs git repository seems dead too unfortunately. 
>
> The python-mode used is 5.1.0.
>
>

Just to follow up, I re-enabled the ipython bit and it worked fine. I
had ipython 0.9.1 installed.

The python config (for Linux) is then done in
~/.ipython/ipy_user_conf.py


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  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>
  1 sibling, 0 replies; 35+ messages in thread
From: Andreas Röhler @ 2009-04-27  7:42 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs, thierry.volpiatto

Richard Riley wrote:
> Richard Riley <rileyrgdev@googlemail.com> writes:
>
>   
>> Xavier Maillard <xma@gnu.org> writes:
>>
>>     
>>> Hi,
>>>
>>> I am starting to do some work with python. I am looking for
>>> options/setups to introduce into my .emacs file to have the best
>>> experience possible with this scripting language.
>>>
>>> Where should I start ?
>>>
>>> Regards
>>>
>>> 	Xavier
>>>       
>> I played with some python options last year and it was, unfortunately,
>> rather messy. There were some conflicts between packages any python
>> versions. For what its worth, the following was working back when with
>> emacs 23:
>>
>> http://www.emacswiki.org/emacs/PythonMode#toc11
>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>>
>> It includes autocompletion from autocomplete using pysmell. Another
>> possible integration for eclim and the eclipse engine I would have
>> thought.
>>
>> The iPython bit is commented out - I can't remember why off the top of
>> my head.  The pymacs git repository seems dead too unfortunately. 
>>
>> The python-mode used is 5.1.0.
>>
>>
>>     
>
> Just to follow up, I re-enabled the ipython bit and it worked fine. I
> had ipython 0.9.1 installed.
>
> The python config (for Linux) is then done in
> ~/.ipython/ipy_user_conf.py
>
>   

Hi,

I've changed python-mode a little bit.
Purpose was to make movements a little bit easier,
more predictible.

Comments welcome.

BTW have a look at pydb from Rocky Bernstein, if not done already.

Andreas

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






^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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  8:58       ` Richard Riley
  1 sibling, 2 replies; 35+ messages in thread
From: Richard Riley @ 2009-04-27  8:53 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Richard Riley wrote:
>> Richard Riley <rileyrgdev@googlemail.com> writes:
>>
>>   
>>> Xavier Maillard <xma@gnu.org> writes:
>>>
>>>     
>>>> Hi,
>>>>
>>>> I am starting to do some work with python. I am looking for
>>>> options/setups to introduce into my .emacs file to have the best
>>>> experience possible with this scripting language.
>>>>
>>>> Where should I start ?
>>>>
>>>> Regards
>>>>
>>>> 	Xavier
>>>>       
>>> I played with some python options last year and it was, unfortunately,
>>> rather messy. There were some conflicts between packages any python
>>> versions. For what its worth, the following was working back when with
>>> emacs 23:
>>>
>>> http://www.emacswiki.org/emacs/PythonMode#toc11
>>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>>>
>>> It includes autocompletion from autocomplete using pysmell. Another
>>> possible integration for eclim and the eclipse engine I would have
>>> thought.
>>>
>>> The iPython bit is commented out - I can't remember why off the top of
>>> my head.  The pymacs git repository seems dead too unfortunately. 
>>>
>>> The python-mode used is 5.1.0.
>>>
>>>
>>>     
>>
>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
>> had ipython 0.9.1 installed.
>>
>> The python config (for Linux) is then done in
>> ~/.ipython/ipy_user_conf.py
>>
>>   
>
> Hi,
>
> I've changed python-mode a little bit.
> Purpose was to make movements a little bit easier,
> more predictible.
>
> Comments welcome.
>
> BTW have a look at pydb from Rocky Bernstein, if not done already.
>
> Andreas

I see you have a pycomplete. Nicholaj Schum has jus put together a
company mode backend for pysmell. How does pycomplete compare to
pysmell?


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

-- 


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [not found]     ` <mailman.6094.1240818145.31690.help-gnu-emacs@gnu.org>
  2009-04-27  8:53       ` Richard Riley
@ 2009-04-27  8:58       ` Richard Riley
  2009-04-27 11:20         ` Andreas Röhler
  1 sibling, 1 reply; 35+ messages in thread
From: Richard Riley @ 2009-04-27  8:58 UTC (permalink / raw)
  To: help-gnu-emacs


Hi Andreas,

I need some clarification as to versions.

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> I've changed python-mode a little bit.
> Purpose was to make movements a little bit easier,
> more predictible.
>

The one I already have is

(defconst py-version "5.1.0"

yet yours is

(defconst py-version "5.0.0+"

so it's still a tad confusing as to which to use.

Can you comment on the versioning here please?

I got mine from:

https://launchpad.net/python-mode

where the latest update was from january.

Python has a lot of competing SW it seems! It can get quite confusing.


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  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>
  1 sibling, 0 replies; 35+ messages in thread
From: Andreas Röhler @ 2009-04-27 11:08 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs

Richard Riley wrote:
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>   
>> Richard Riley wrote:
>>     
>>> Richard Riley <rileyrgdev@googlemail.com> writes:
>>>
>>>   
>>>       
>>>> Xavier Maillard <xma@gnu.org> writes:
>>>>
>>>>     
>>>>         
>>>>> Hi,
>>>>>
>>>>> I am starting to do some work with python. I am looking for
>>>>> options/setups to introduce into my .emacs file to have the best
>>>>> experience possible with this scripting language.
>>>>>
>>>>> Where should I start ?
>>>>>
>>>>> Regards
>>>>>
>>>>> 	Xavier
>>>>>       
>>>>>           
>>>> I played with some python options last year and it was, unfortunately,
>>>> rather messy. There were some conflicts between packages any python
>>>> versions. For what its worth, the following was working back when with
>>>> emacs 23:
>>>>
>>>> http://www.emacswiki.org/emacs/PythonMode#toc11
>>>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>>>>
>>>> It includes autocompletion from autocomplete using pysmell. Another
>>>> possible integration for eclim and the eclipse engine I would have
>>>> thought.
>>>>
>>>> The iPython bit is commented out - I can't remember why off the top of
>>>> my head.  The pymacs git repository seems dead too unfortunately. 
>>>>
>>>> The python-mode used is 5.1.0.
>>>>
>>>>
>>>>     
>>>>         
>>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
>>> had ipython 0.9.1 installed.
>>>
>>> The python config (for Linux) is then done in
>>> ~/.ipython/ipy_user_conf.py
>>>
>>>   
>>>       
>> Hi,
>>
>> I've changed python-mode a little bit.
>> Purpose was to make movements a little bit easier,
>> more predictible.
>>
>> Comments welcome.
>>
>> BTW have a look at pydb from Rocky Bernstein, if not done already.
>>
>> Andreas
>>     
>
> I see you have a pycomplete. Nicholaj Schum has jus put together a
> company mode backend for pysmell. How does pycomplete compare to
> pysmell?
>   

Thats part of the package kept by Barry Warsaw.  Made a branch from it,
but changed only python-mode.el.

I'm not sure to keep this files in my branch or not.

Nonetheless, thanks for your question. I shall have a look at it and try
an answer next days.

BTW as more things are at stake as python-mode.el, what would you think
about an archiv
emacs-python, where all the stuff to edit python-code with emacs is
collected?

For me Launchpad seems perfect for such a thing with its email- and
bug-report-integration.

There we could discuss the probably best emacs-python configuration -
which will change,
if someone brings up new things.


Andreas



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





^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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>
  0 siblings, 2 replies; 35+ messages in thread
From: Richard Riley @ 2009-04-27 11:15 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Richard Riley wrote:
>> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>>
>>   
>>> Richard Riley wrote:
>>>     
>>>> Richard Riley <rileyrgdev@googlemail.com> writes:
>>>>
>>>>   
>>>>       
>>>>> Xavier Maillard <xma@gnu.org> writes:
>>>>>
>>>>>     
>>>>>         
>>>>>> Hi,
>>>>>>
>>>>>> I am starting to do some work with python. I am looking for
>>>>>> options/setups to introduce into my .emacs file to have the best
>>>>>> experience possible with this scripting language.
>>>>>>
>>>>>> Where should I start ?
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> 	Xavier
>>>>>>       
>>>>>>           
>>>>> I played with some python options last year and it was, unfortunately,
>>>>> rather messy. There were some conflicts between packages any python
>>>>> versions. For what its worth, the following was working back when with
>>>>> emacs 23:
>>>>>
>>>>> http://www.emacswiki.org/emacs/PythonMode#toc11
>>>>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>>>>>
>>>>> It includes autocompletion from autocomplete using pysmell. Another
>>>>> possible integration for eclim and the eclipse engine I would have
>>>>> thought.
>>>>>
>>>>> The iPython bit is commented out - I can't remember why off the top of
>>>>> my head.  The pymacs git repository seems dead too unfortunately. 
>>>>>
>>>>> The python-mode used is 5.1.0.
>>>>>
>>>>>
>>>>>     
>>>>>         
>>>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
>>>> had ipython 0.9.1 installed.
>>>>
>>>> The python config (for Linux) is then done in
>>>> ~/.ipython/ipy_user_conf.py
>>>>
>>>>   
>>>>       
>>> Hi,
>>>
>>> I've changed python-mode a little bit.
>>> Purpose was to make movements a little bit easier,
>>> more predictible.
>>>
>>> Comments welcome.
>>>
>>> BTW have a look at pydb from Rocky Bernstein, if not done already.
>>>
>>> Andreas
>>>     
>>
>> I see you have a pycomplete. Nicholaj Schum has jus put together a
>> company mode backend for pysmell. How does pycomplete compare to
>> pysmell?
>>   
>
> Thats part of the package kept by Barry Warsaw.  Made a branch from it,
> but changed only python-mode.el.
>
> I'm not sure to keep this files in my branch or not.
>
> Nonetheless, thanks for your question. I shall have a look at it and try
> an answer next days.
>
> BTW as more things are at stake as python-mode.el, what would you think
> about an archiv
> emacs-python, where all the stuff to edit python-code with emacs is
> collected?

To be honest, my feeling is that the last thing anyone needs is yet
another python place. The wiki is already a mess of questions and
answers and mode specific difficulties. Tie that in with emacs 23/22 and
ipython or not, the numerous ways you can do python completion etc, it
needs to be simplified not extended.

Thanks for the heads up about pydb btw, nice.

>
> For me Launchpad seems perfect for such a thing with its email- and
> bug-report-integration.
>
> There we could discuss the probably best emacs-python configuration -
> which will change,
> if someone brings up new things.

I think the emacs wiki is best for this stuff purely because its "there"
and there are numerous utilities to integrate emacs with emacs wiki
pages. Just keep links to relevant pages.

You might be right : point the wiki to launchpad and remove all the out
of date stuff. What do others think?

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

-- 


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-27  8:58       ` Richard Riley
@ 2009-04-27 11:20         ` Andreas Röhler
       [not found]           ` <49f5b71c.0305560a.6147.25ed@mx.google.com>
  0 siblings, 1 reply; 35+ messages in thread
From: Andreas Röhler @ 2009-04-27 11:20 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs

Richard Riley wrote:
> Hi Andreas,
>
> I need some clarification as to versions.
>
> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>   
>> I've changed python-mode a little bit.
>> Purpose was to make movements a little bit easier,
>> more predictible.
>>
>>     
>
> The one I already have is
>
> (defconst py-version "5.1.0"
>
> yet yours is
>
> (defconst py-version "5.0.0+"
>
> so it's still a tad confusing as to which to use.
>   

Yes, sorry. It was and isn't still clear yet how to proceed.

I branched from "5.0.0+"

Later Barry took GPLv3 and changed version to "5.1.0".

There is some confusion  about (re)licensing process too.
As soon as XEmacs switched to v3 I intend to follow.

To check whats changed, best is to read bazaars history with its
own numbering.



> Can you comment on the versioning here please?
>
> I got mine from:
>
> https://launchpad.net/python-mode
>
> where the latest update was from january.
>
> Python has a lot of competing SW it seems! 

Its a dynamicly evolving language still. Concerning Emacs I estimate we
are only half
the way to explore its capabilties for and with python.

> It can get quite confusing.
>
>   






^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  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>
  1 sibling, 0 replies; 35+ messages in thread
From: thierry.volpiatto @ 2009-04-27 13:50 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Richard,

Richard Riley <rileyrgdev@googlemail.com> writes:

> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>
>> Richard Riley wrote:
>>> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>>>
>>>   
>>>> Richard Riley wrote:
>>>>     
>>>>> Richard Riley <rileyrgdev@googlemail.com> writes:
>>>>>
>>>>>   
>>>>>       
>>>>>> Xavier Maillard <xma@gnu.org> writes:
>>>>>>
>>>>>>     
>>>>>>         
>>>>>>> Hi,
>>>>>>>
>>>>>>> I am starting to do some work with python. I am looking for
>>>>>>> options/setups to introduce into my .emacs file to have the best
>>>>>>> experience possible with this scripting language.
>>>>>>>
>>>>>>> Where should I start ?
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> 	Xavier
>>>>>>>       
>>>>>>>           
>>>>>> I played with some python options last year and it was, unfortunately,
>>>>>> rather messy. There were some conflicts between packages any python
>>>>>> versions. For what its worth, the following was working back when with
>>>>>> emacs 23:
>>>>>>
>>>>>> http://www.emacswiki.org/emacs/PythonMode#toc11
>>>>>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>>>>>>
>>>>>> It includes autocompletion from autocomplete using pysmell. Another
>>>>>> possible integration for eclim and the eclipse engine I would have
>>>>>> thought.
>>>>>>
>>>>>> The iPython bit is commented out - I can't remember why off the top of
>>>>>> my head.  The pymacs git repository seems dead too unfortunately. 
>>>>>>
>>>>>> The python-mode used is 5.1.0.
>>>>>>
>>>>>>
>>>>>>     
>>>>>>         
>>>>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
>>>>> had ipython 0.9.1 installed.
>>>>>
>>>>> The python config (for Linux) is then done in
>>>>> ~/.ipython/ipy_user_conf.py
>>>>>
>>>>>   
>>>>>       
>>>> Hi,
>>>>
>>>> I've changed python-mode a little bit.
>>>> Purpose was to make movements a little bit easier,
>>>> more predictible.
>>>>
>>>> Comments welcome.
>>>>
>>>> BTW have a look at pydb from Rocky Bernstein, if not done already.
>>>>
>>>> Andreas
>>>>     
>>>
>>> I see you have a pycomplete. Nicholaj Schum has jus put together a
>>> company mode backend for pysmell. How does pycomplete compare to
>>> pysmell?

I use this actually:
http://article.gmane.org/gmane.emacs.help/50837/match=pycomplete

That is the only pycomplete that work fine for me, it's really nice, the
author should put it on emacswiki or send it as a patch for python-mode
package.
 
The pycomplete that come with python-mode doesn't work for me.

I don't know pysmell, and i don't use company, auto-complete etc...

>>
>> Thats part of the package kept by Barry Warsaw.  Made a branch from it,
>> but changed only python-mode.el.
>>
>> I'm not sure to keep this files in my branch or not.
>>
>> Nonetheless, thanks for your question. I shall have a look at it and try
>> an answer next days.
>>
>> BTW as more things are at stake as python-mode.el, what would you think
>> about an archiv
>> emacs-python, where all the stuff to edit python-code with emacs is
>> collected?
>
> To be honest, my feeling is that the last thing anyone needs is yet
> another python place. The wiki is already a mess of questions and
> answers and mode specific difficulties. Tie that in with emacs 23/22 and
> ipython or not, the numerous ways you can do python completion etc, it
> needs to be simplified not extended.
>
> Thanks for the heads up about pydb btw, nice.
>
>>
>> For me Launchpad seems perfect for such a thing with its email- and
>> bug-report-integration.
>>
>> There we could discuss the probably best emacs-python configuration -
>> which will change,
>> if someone brings up new things.
>
> I think the emacs wiki is best for this stuff purely because its "there"
> and there are numerous utilities to integrate emacs with emacs wiki
> pages. Just keep links to relevant pages.
>
> You might be right : point the wiki to launchpad and remove all the out
> of date stuff. What do others think?
>
>>
>>
>> Andreas
>>
>>
>>
>>>
>>>   
>>>> --
>>>> http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/files
>>>> https://code.launchpad.net/s-x-emacs-werkstatt/
>>>>
>>>>
>>>>
>>>>
>>>>     
>>>
>>>   
>>
>>
>>

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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>
  0 siblings, 2 replies; 35+ messages in thread
From: Richard Riley @ 2009-04-27 14:12 UTC (permalink / raw)
  To: help-gnu-emacs

thierry.volpiatto@gmail.com writes:

> Hi Richard,
>
>>>> I see you have a pycomplete. Nicholaj Schum has jus put together a
>>>> company mode backend for pysmell. How does pycomplete compare to
>>>> pysmell?
>
> I use this actually:
> http://article.gmane.org/gmane.emacs.help/50837/match=pycomplete
>
> That is the only pycomplete that work fine for me, it's really nice, the
> author should put it on emacswiki or send it as a patch for python-mode
> package.
>  
> The pycomplete that come with python-mode doesn't work for me.
>
> I don't know pysmell, and i don't use company, auto-complete etc...

Nicholaj has promised a pycomplete backend for company too. I can
recommend company-mode. The documentation for it is not the best
unfortunately but its being improved all the time. company-mode even has
completion for ispell dictionaries which is nice and also has a semantic
back end for talking to cedet so can complete any language semantic can
parse. recommended. But I have to say that completion is one of the
messiest areas in emacs - many possibilities all reinventing the wheel
in some cases. I intend to try pycomplete too.

regards,

r.




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  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>
  1 sibling, 0 replies; 35+ messages in thread
From: thierry.volpiatto @ 2009-04-27 15:23 UTC (permalink / raw)
  To: help-gnu-emacs

Richard Riley <rileyrgdev@googlemail.com> writes:

> thierry.volpiatto@gmail.com writes:
>
>> Hi Richard,
>>
>>>>> I see you have a pycomplete. Nicholaj Schum has jus put together a
>>>>> company mode backend for pysmell. How does pycomplete compare to
>>>>> pysmell?
>>
>> I use this actually:
>> http://article.gmane.org/gmane.emacs.help/50837/match=pycomplete
>>
>> That is the only pycomplete that work fine for me, it's really nice, the
>> author should put it on emacswiki or send it as a patch for python-mode
>> package.
>>  
>> The pycomplete that come with python-mode doesn't work for me.
>>
>> I don't know pysmell, and i don't use company, auto-complete etc...
>
> Nicholaj has promised a pycomplete backend for company too. I can
> recommend company-mode. The documentation for it is not the best
> unfortunately but its being improved all the time. company-mode even has
> completion for ispell dictionaries which is nice and also has a semantic
> back end for talking to cedet so can complete any language semantic can
> parse. recommended. But I have to say that completion is one of the
> messiest areas in emacs - many possibilities all reinventing the wheel
> in some cases. I intend to try pycomplete too.
Thank you Richard, i will have a look at company-mode when it will have
support for pycomplete.
May be an anything extension would be nice also...

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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>
  0 siblings, 2 replies; 35+ messages in thread
From: superbobry @ 2009-04-28  0:55 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,
Can anyone help me with python code folding please? I tried:
* hs-minor-mode (doesn't work with python)
* outline mode (it does the folding part, but is really buggy with
python)

Is there a solution?
Thank you,
Sergei


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
@ 2009-04-28  6:34 Xavier Maillard
  2009-04-28  6:42 ` thierry.volpiatto
  2009-04-28  8:51 ` Andreas Röhler
  0 siblings, 2 replies; 35+ messages in thread
From: Xavier Maillard @ 2009-04-28  6:34 UTC (permalink / raw)
  To: thierry.volpiatto; +Cc: help-gnu-emacs

Hi

   Xavier Maillard <xma@gnu.org> writes:

   > I am starting to do some work with python. I am looking for
   > options/setups to introduce into my .emacs file to have the best
   > experience possible with this scripting language.
   >
   > Where should I start ?

   I personnaly use python-mode.el that is much better than python.el (that
   come with emacs).

In what is it better ?

   I use also ipython as python shell that integrate fine in emacs.

Phew, how many new dependances should I install in order to have
something simple to use ? :) I thought python was something for
beginners, it is not. I find it easier to play lisp...

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
@ 2009-04-28  6:34 Xavier Maillard
  2009-04-28  8:04 ` thierry.volpiatto
  0 siblings, 1 reply; 35+ messages in thread
From: Xavier Maillard @ 2009-04-28  6:34 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs


   Richard Riley <rileyrgdev@googlemail.com> writes:

   Just to follow up, I re-enabled the ipython bit and it worked fine. I
   had ipython 0.9.1 installed.

Would you mind explaingin briefly what makes ipython so
attractive (compared to default bundled mode and/or with
python-mode).

Thank you.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
@ 2009-04-28  6:34 Xavier Maillard
  0 siblings, 0 replies; 35+ messages in thread
From: Xavier Maillard @ 2009-04-28  6:34 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs


   Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

   > Richard Riley wrote:
   > I've changed python-mode a little bit.
   > Purpose was to make movements a little bit easier,
   > more predictible.
   >

   I see you have a pycomplete. Nicholaj Schum has jus put together a
   company mode backend for pysmell. How does pycomplete compare to
   pysmell?

How my gosh ! What are all these tools ? :/

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
@ 2009-04-28  6:34 Xavier Maillard
  0 siblings, 0 replies; 35+ messages in thread
From: Xavier Maillard @ 2009-04-28  6:34 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs, rileyrgdev


   Richard Riley wrote:
   > Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
   >
   >   
   >> Richard Riley wrote:
   >>     
   >>> Richard Riley <rileyrgdev@googlemail.com> writes:
   >>>
   >>>   
   >>>       
   >>>> Xavier Maillard <xma@gnu.org> writes:
   >>>>
   >>>>     
   >>>>         
   >>>>> Hi,
   >>>>>
   >>>>> I am starting to do some work with python. I am looking for
   >>>>> options/setups to introduce into my .emacs file to have the best
   >>>>> experience possible with this scripting language.
   >>>>>
   >>>>> Where should I start ?
   >>>>>
   >>>>> Regards
   >>>>>
   >>>>> 	Xavier
   >>>>>       
   >>>>>           
   >>>> I played with some python options last year and it was, unfortunately,
   >>>> rather messy. There were some conflicts between packages any python
   >>>> versions. For what its worth, the following was working back when with
   >>>> emacs 23:
   >>>>
   >>>> http://www.emacswiki.org/emacs/PythonMode#toc11
   >>>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
   >>>>
   >>>> It includes autocompletion from autocomplete using pysmell. Another
   >>>> possible integration for eclim and the eclipse engine I would have
   >>>> thought.
   >>>>
   >>>> The iPython bit is commented out - I can't remember why off the top of
   >>>> my head.  The pymacs git repository seems dead too unfortunately. 
   >>>>
   >>>> The python-mode used is 5.1.0.
   >>>>
   >>>>
   >>>>     
   >>>>         
   >>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
   >>> had ipython 0.9.1 installed.
   >>>
   >>> The python config (for Linux) is then done in
   >>> ~/.ipython/ipy_user_conf.py
   >>>
   >>>   
   >>>       
   >> Hi,
   >>
   >> I've changed python-mode a little bit.
   >> Purpose was to make movements a little bit easier,
   >> more predictible.
   >>
   >> Comments welcome.
   >>
   >> BTW have a look at pydb from Rocky Bernstein, if not done already.
   >>
   >> Andreas
   >>     
   >
   > I see you have a pycomplete. Nicholaj Schum has jus put together a
   > company mode backend for pysmell. How does pycomplete compare to
   > pysmell?
   >   

   Thats part of the package kept by Barry Warsaw.  Made a branch from it,
   but changed only python-mode.el.

   I'm not sure to keep this files in my branch or not.

   Nonetheless, thanks for your question. I shall have a look at it and try
   an answer next days.

   BTW as more things are at stake as python-mode.el, what would you think
   about an archiv
   emacs-python, where all the stuff to edit python-code with emacs is
   collected?

I vote for this idea. A kind of "python starter kit" would be
very appreciated given how messy python (in emacs world) is... It
is practically impossible to understand which tool is good and
for what it is good.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-28  6:34 Xavier Maillard
@ 2009-04-28  6:42 ` thierry.volpiatto
  2009-04-28  8:51 ` Andreas Röhler
  1 sibling, 0 replies; 35+ messages in thread
From: thierry.volpiatto @ 2009-04-28  6:42 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs

Hi,
Xavier Maillard <xma@gnu.org> writes:

> Hi
>
>    Xavier Maillard <xma@gnu.org> writes:
>
>    > I am starting to do some work with python. I am looking for
>    > options/setups to introduce into my .emacs file to have the best
>    > experience possible with this scripting language.
>    >
>    > Where should I start ?
>
>    I personnaly use python-mode.el that is much better than python.el (that
>    come with emacs).
>
> In what is it better ?

Just one example:
When you are in your python file
use C-c ! to open the python-interpreter
then run C-c C-c, the program is evaluated and output is send to
interpreter. that's nice to debug.

python.el doesn't show output in interpreter.


>    I use also ipython as python shell that integrate fine in emacs.
>
> Phew, how many new dependances should I install in order to have

Install python-mode.el and add the 3 or 4 lines mentionned in headers of
file. that's it. In off for a basic usage of python.

> something simple to use ? :) I thought python was something for
> beginners, it is not. I find it easier to play lisp...


-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-28  6:34 Xavier Maillard
@ 2009-04-28  8:04 ` thierry.volpiatto
  0 siblings, 0 replies; 35+ messages in thread
From: thierry.volpiatto @ 2009-04-28  8:04 UTC (permalink / raw)
  To: help-gnu-emacs

Xavier Maillard <xma@gnu.org> writes:

>    Richard Riley <rileyrgdev@googlemail.com> writes:
>
>    Just to follow up, I re-enabled the ipython bit and it worked fine. I
>    had ipython 0.9.1 installed.
>
> Would you mind explaingin briefly what makes ipython so
> attractive (compared to default bundled mode and/or with
> python-mode).
No, ipython is a replacement for the default interpreter python.
It doesn't replace python-mode.el nor python.el.

If you install it, you can use it with python-mode.el.
AFAIK not with python.el.

It is called by the py-shell command.

It is an enhanced python interpreter. (see screenshot in precedent post).
-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France





^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-28  6:34 Xavier Maillard
  2009-04-28  6:42 ` thierry.volpiatto
@ 2009-04-28  8:51 ` Andreas Röhler
  1 sibling, 0 replies; 35+ messages in thread
From: Andreas Röhler @ 2009-04-28  8:51 UTC (permalink / raw)
  To: Xavier Maillard
  Cc: python-list, help-gnu-emacs, Richard Riley, thierry.volpiatto

Xavier Maillard wrote:
> Hi
>
>    Xavier Maillard <xma@gnu.org> writes:
>
>    > I am starting to do some work with python. I am looking for
>    > options/setups to introduce into my .emacs file to have the best
>    > experience possible with this scripting language.
>    >
>    > Where should I start ?
>
>    I personnaly use python-mode.el that is much better than python.el (that
>    come with emacs).
>
> In what is it better ?
>
>    I use also ipython as python shell that integrate fine in emacs.
>
> Phew, how many new dependances should I install in order to have
> something simple to use ? :) I thought python was something for
> beginners, it is not. I find it easier to play lisp...
>
> 	Xavier
>   
Hi Xavier,

as its well known, you are not a beginner with Emacs,
please permit to take your comment as occasion:

Your question and experience with Emacs and Python
reflects IMHO some general strength and likewise
present limitation.

The strength is, clearly: with that many files out
there, that many people who wrote already something for
python, with some Emacs Lisp knowledge you'll be able
to install a reasonable environment.

OTOH: how many people did that already, spent hours to
collect and adapt utilities from the net? And
afterwards? If we take together all this time from
users configuring an python-environment, we could
probably get more useful results from it. So there is a
lose of time.

Can we do better? ... :)

One thing, thats to realize IMO: times are gone where
one person with some knowledge of a language may write
a mode and thats it. Even maintaining it alone seems to
surpass any personal capacity. If we want to keep path,
we have to establish developer-groups caring for a
language. That happened already with C-modes AFAIS. We
need that for any major language.

Concerning python, we have enough man-power to
perform excellent things. To the extent, user have to do
`M-x python,' and an environment with all up-to-date
debugging facilities gets installed.

No question its great whats done at

http://www.emacswiki.org/emacs/PythonMode

Emacswiki was helpful many times for me.

However, for pure development issues, designed
platforms like Launchpad seem more suitable for the
purpose for me. Beside excellent bazaar behind, lets mention
its email- and bugreport integration.

As it happens we have with Barry Warsaw not just an
experienced Emacs Lisper, but a python core developer
with its python-mode account: we should try our chance
to proceed with his gentle help occasionally.

AFAIS we need tailored accounts, where we maintain
flavours of possible environments, learning and lifting
from each other, enabling distributions to select and
pull for delivering.

So far

Andreas

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



--
http://mail.python.org/mailman/listinfo/python-list


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-28  0:55                   ` superbobry
@ 2009-04-28 10:43                     ` Bernardo
       [not found]                     ` <mailman.6165.1240915318.31690.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 35+ messages in thread
From: Bernardo @ 2009-04-28 10:43 UTC (permalink / raw)
  To: help-gnu-emacs

> Hello,
> Can anyone help me with python code folding please? I tried:
> * hs-minor-mode (doesn't work with python)
> * outline mode (it does the folding part, but is really buggy with
> python)
> 
> Is there a solution?
> Thank you,
> Sergei
> 
hi,

which version of Emacs are you using?
i remember there was a hideshow problem introduced somewhere after v22.1 
and i added this 'quick-n-dirty' hack into my .emacs

(defun bb-python-hs-helper (arg)
   "Helper function for the bb-use-old-hideshow-setting below"
   (python-end-of-defun)
   (skip-chars-backward " \t\n"))

(defun bb-use-old-hideshow-setting ()
   "Restore the hs-special-modes-alist setting that used to work fine in 
v22.1.1"
   (if (and (= emacs-major-version 22)
            (>= emacs-minor-version 2))
       (progn
         (setq hs-special-modes-alist
               (assq-delete-all 'python-mode  hs-special-modes-alist))
         (add-to-list 'hs-special-modes-alist
                      '(python-mode "^\\s-*def\\>" nil "#"
                                    bb-python-hs-helper
                                    nil)))))

(add-hook 'python-mode-hook
   (lambda ()
     (hs-minor-mode 1)
     (bb-use-old-hideshow-setting)
     ;other stuff
     ))


this fixed the folding problem in v22.3 but may or may not help with 
your issue

however, version pre-23 seems to work without this ugly hack

HTH




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [not found]                     ` <mailman.6165.1240915318.31690.help-gnu-emacs@gnu.org>
@ 2009-04-28 11:25                       ` superbobry
  0 siblings, 0 replies; 35+ messages in thread
From: superbobry @ 2009-04-28 11:25 UTC (permalink / raw)
  To: help-gnu-emacs

On Apr 28, 2:43 pm, Bernardo <bernardo.ba...@pobox.com> wrote:
> > Hello,
> > Can anyone help me with python code folding please? I tried:
> > * hs-minor-mode (doesn't work with python)
> > * outline mode (it does the folding part, but is really buggy with
> > python)
>
> > Is there a solution?
> > Thank you,
> > Sergei
>
> hi,
>
> which version of Emacs are you using?
> i remember there was a hideshow problem introduced somewhere after v22.1
> and i added this 'quick-n-dirty' hack into my .emacs
>
> (defun bb-python-hs-helper (arg)
>    "Helper function for the bb-use-old-hideshow-setting below"
>    (python-end-of-defun)
>    (skip-chars-backward " \t\n"))
>
> (defun bb-use-old-hideshow-setting ()
>    "Restore the hs-special-modes-alist setting that used to work fine in
> v22.1.1"
>    (if (and (= emacs-major-version 22)
>             (>= emacs-minor-version 2))
>        (progn
>          (setq hs-special-modes-alist
>                (assq-delete-all 'python-mode  hs-special-modes-alist))
>          (add-to-list 'hs-special-modes-alist
>                       '(python-mode "^\\s-*def\\>" nil "#"
>                                     bb-python-hs-helper
>                                     nil)))))
>
> (add-hook 'python-mode-hook
>    (lambda ()
>      (hs-minor-mode 1)
>      (bb-use-old-hideshow-setting)
>      ;other stuff
>      ))
>
> this fixed the folding problem in v22.3 but may or may not help with
> your issue
>
> however, version pre-23 seems to work without this ugly hack
>
> HTH

Hello,
I'm using 23.0 from, built from cvs. I tryed the hack above already,
and it wasnt working 100% with me. Anyway, i managed to solve the
problem using semantic (from CEDET tools).
Cheers,
Sergei


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [not found] <mailman.6155.1240900544.31690.help-gnu-emacs@gnu.org>
@ 2009-04-28 16:55 ` Richard Riley
  0 siblings, 0 replies; 35+ messages in thread
From: Richard Riley @ 2009-04-28 16:55 UTC (permalink / raw)
  To: help-gnu-emacs

Xavier Maillard <xma@gnu.org> writes:

>    Richard Riley wrote:
>    > Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>    >
>    >   
>    >> Richard Riley wrote:
>    >>     
>    >>> Richard Riley <rileyrgdev@googlemail.com> writes:
>    >>>
>    >>>   
>    >>>       
>    >>>> Xavier Maillard <xma@gnu.org> writes:
>    >>>>
>    >>>>     
>    >>>>         
>    >>>>> Hi,
>    >>>>>
>    >>>>> I am starting to do some work with python. I am looking for
>    >>>>> options/setups to introduce into my .emacs file to have the best
>    >>>>> experience possible with this scripting language.
>    >>>>>
>    >>>>> Where should I start ?
>    >>>>>
>    >>>>> Regards
>    >>>>>
>    >>>>> 	Xavier
>    >>>>>       
>    >>>>>           
>    >>>> I played with some python options last year and it was, unfortunately,
>    >>>> rather messy. There were some conflicts between packages any python
>    >>>> versions. For what its worth, the following was working back when with
>    >>>> emacs 23:
>    >>>>
>    >>>> http://www.emacswiki.org/emacs/PythonMode#toc11
>    >>>> http://richardriley.net/projects/emacs/dotprogramming#sec-1.3
>    >>>>
>    >>>> It includes autocompletion from autocomplete using pysmell. Another
>    >>>> possible integration for eclim and the eclipse engine I would have
>    >>>> thought.
>    >>>>
>    >>>> The iPython bit is commented out - I can't remember why off the top of
>    >>>> my head.  The pymacs git repository seems dead too unfortunately. 
>    >>>>
>    >>>> The python-mode used is 5.1.0.
>    >>>>
>    >>>>
>    >>>>     
>    >>>>         
>    >>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
>    >>> had ipython 0.9.1 installed.
>    >>>
>    >>> The python config (for Linux) is then done in
>    >>> ~/.ipython/ipy_user_conf.py
>    >>>
>    >>>   
>    >>>       
>    >> Hi,
>    >>
>    >> I've changed python-mode a little bit.
>    >> Purpose was to make movements a little bit easier,
>    >> more predictible.
>    >>
>    >> Comments welcome.
>    >>
>    >> BTW have a look at pydb from Rocky Bernstein, if not done already.
>    >>
>    >> Andreas
>    >>     
>    >
>    > I see you have a pycomplete. Nicholaj Schum has jus put together a
>    > company mode backend for pysmell. How does pycomplete compare to
>    > pysmell?
>    >   
>
>    Thats part of the package kept by Barry Warsaw.  Made a branch from it,
>    but changed only python-mode.el.
>
>    I'm not sure to keep this files in my branch or not.
>
>    Nonetheless, thanks for your question. I shall have a look at it and try
>    an answer next days.
>
>    BTW as more things are at stake as python-mode.el, what would you think
>    about an archiv
>    emacs-python, where all the stuff to edit python-code with emacs is
>    collected?
>
> I vote for this idea. A kind of "python starter kit" would be
> very appreciated given how messy python (in emacs world) is... It
> is practically impossible to understand which tool is good and
> for what it is good.
>
> 	Xavier

Yes, but keep it in the emacs wiki. Not "yet another" source - half the
problem now is that its scattered all over the place. The issues with
python-mode versioning is one such.


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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
  0 siblings, 1 reply; 35+ messages in thread
From: Richard Riley @ 2009-04-28 16:56 UTC (permalink / raw)
  To: help-gnu-emacs

Xavier Maillard <xma@gnu.org> writes:

>    Richard Riley <rileyrgdev@googlemail.com> writes:
>
>    Just to follow up, I re-enabled the ipython bit and it worked fine. I
>    had ipython 0.9.1 installed.
>
> Would you mind explaingin briefly what makes ipython so
> attractive (compared to default bundled mode and/or with
> python-mode).
>
> Thank you.
>
> 	Xavier

http://ipython.scipy.org/moin/

Some people dont like it saying its not "real python". You need to make
up your own mind really.


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
@ 2009-04-29 22:25 Xavier Maillard
  2009-04-30  5:42 ` Andreas Röhler
  0 siblings, 1 reply; 35+ messages in thread
From: Xavier Maillard @ 2009-04-29 22:25 UTC (permalink / raw)
  To: superbobry; +Cc: help-gnu-emacs

Hi,

   On Apr 28, 2:43 pm, Bernardo <bernardo.ba...@pobox.com> wrote:
   > > Can anyone help me with python code folding please? I tried:
   > > * hs-minor-mode (doesn't work with python)
   > > * outline mode (it does the folding part, but is really buggy with
   > > python)
   >
   > i remember there was a hideshow problem introduced somewhere after v22.1
   > and i added this 'quick-n-dirty' hack into my .emacs
   >
   >
   > however, version pre-23 seems to work without this ugly hack
   >
   > HTH

   Hello,
   I'm using 23.0 from, built from cvs. I tryed the hack above already,
   and it wasnt working 100% with me. Anyway, i managed to solve the
   problem using semantic (from CEDET tools).

Why not report this wrong behaviour to the emacs development team ?

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
@ 2009-04-29 22:25 Xavier Maillard
  0 siblings, 0 replies; 35+ messages in thread
From: Xavier Maillard @ 2009-04-29 22:25 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs



   http://ipython.scipy.org/moin/

   Some people dont like it saying its not "real python". You need to make
   up your own mind really.

Thank you. I installed it onto my home PC.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org




^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-29 22:25 Xavier Maillard
@ 2009-04-30  5:42 ` Andreas Röhler
  0 siblings, 0 replies; 35+ messages in thread
From: Andreas Röhler @ 2009-04-30  5:42 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs

Xavier Maillard wrote:
> Hi,
>
>    On Apr 28, 2:43 pm, Bernardo <bernardo.ba...@pobox.com> wrote:
>    > > Can anyone help me with python code folding please? I tried:
>    > > * hs-minor-mode (doesn't work with python)
>    > > * outline mode (it does the folding part, but is really buggy with
>    > > python)
>   

`show-body' and `hide-all' work for me right out of the box.

Interested to know, where the error occurs.

Andreas
>    >
>    > i remember there was a hideshow problem introduced somewhere after v22.1
>    > and i added this 'quick-n-dirty' hack into my .emacs
>    >
>    >
>    > however, version pre-23 seems to work without this ugly hack
>    >
>    > HTH
>
>    Hello,
>    I'm using 23.0 from, built from cvs. I tryed the hack above already,
>    and it wasnt working 100% with me. Anyway, i managed to solve the
>    problem using semantic (from CEDET tools).
>
> Why not report this wrong behaviour to the emacs development team ?
>
> 	Xavier
>   





^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [not found] <200904280634.n3S6YctW009278@zogzog.maillard.mobi>
@ 2009-04-30  7:25 ` Andreas Röhler
  2009-04-30 13:24   ` Barry Warsaw
  0 siblings, 1 reply; 35+ messages in thread
From: Andreas Röhler @ 2009-04-30  7:25 UTC (permalink / raw)
  To: Xavier Maillard; +Cc: help-gnu-emacs, Richard Riley, python-mode

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
>   

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-30  7:25 ` python setup ? Andreas Röhler
@ 2009-04-30 13:24   ` Barry Warsaw
  2009-05-04 16:57     ` Richard Riley
  0 siblings, 1 reply; 35+ messages in thread
From: Barry Warsaw @ 2009-04-30 13:24 UTC (permalink / raw)
  To: Andreas Röhler
  Cc: Xavier Maillard, help-gnu-emacs, Richard Riley, python-mode


[-- Attachment #1.1: Type: text/plain, Size: 1127 bytes --]

On Apr 30, 2009, at 3:25 AM, Andreas Röhler wrote:

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

This is true, and experimentation a good thing in the short term.  In  
the long term though, a proliferation of branches just confuses people  
because no one's sure which is the official branch.  Our lives are  
more difficult too because of the python-mode.el/python.el split.

So I encourage you to experiment and get user feedback.  Old-timers  
(and remember, python-mode.el's been in widespread use for 15 years)  
will be wedded to their muscle memory, but if you introduce a user- 
visible change that people like, they can be made configurable with  
defaults providing the old behavior.  Then it will be possible to  
merge your changes back into the official branch.  If you modularize  
your changes, then the less controversial ones can get merged in sooner.

-Barry


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 304 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-26 11:25 ` Richard Riley
  2009-04-26 13:16   ` Richard Riley
@ 2009-05-01 21:35   ` bbbscarter
  1 sibling, 0 replies; 35+ messages in thread
From: bbbscarter @ 2009-05-01 21:35 UTC (permalink / raw)
  To: help-gnu-emacs

Actually, as an aside, what sort of workflows do people have when
using emacs with something like python? Being relatively new to emacs
I've been struggling slightly with finding an optimal workflow.

For example, in other editors/IDEs my workflow would be something
along the lines of:
1. Edit code
2. Run something like pylint or pychecker over the code, run the unit
tests, etc
3. Run the app via the debugger
4. Catch any crashes or problems in the debugger, fix them, and start
again.

In emacs, cycling from editing code to running it under the debugger
seems a touch fiddly, largely because it seems to involve more than
hitting a single key. I've also tried the 'run/reimport buffer into
the interpreter workflow' without much success, in that I usually just
want to rerun my app from scratch rather than reload just the file I'm
working on.

I suspect that I'm so used to the usual IDE workflow that I'm
overlooking something fundamental. Any insights would be much
appreciated.

Thanks!

Simon


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-30 13:24   ` Barry Warsaw
@ 2009-05-04 16:57     ` Richard Riley
  0 siblings, 0 replies; 35+ messages in thread
From: Richard Riley @ 2009-05-04 16:57 UTC (permalink / raw)
  To: Barry Warsaw; +Cc: python-mode, Richard Riley, Xavier, help-gnu-emacs

Barry Warsaw <barry@python.org> writes:

> On Apr 30, 2009, at 3:25 AM, Andreas Röhler wrote:
>
>> 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.
>
> This is true, and experimentation a good thing in the short term.  In  
> the long term though, a proliferation of branches just confuses people  
> because no one's sure which is the official branch.  Our lives are  
> more difficult too because of the python-mode.el/python.el split.
>
> So I encourage you to experiment and get user feedback.  Old-timers  
> (and remember, python-mode.el's been in widespread use for 15 years)  
> will be wedded to their muscle memory, but if you introduce a user- 
> visible change that people like, they can be made configurable with  
> defaults providing the old behavior.  Then it will be possible to  
> merge your changes back into the official branch.  If you modularize  
> your changes, then the less controversial ones can get merged in sooner.
>
> -Barry
>
>


IMO any new "obviously useful" features should be enabled by
default. Old Timers should have no problem reverting to older
configurations via settings. A point which generates much contention I
know. As it is, Python set up is/was a minefield. I have a reasonable
set up here fwiw,

This includes pysmell completions for hippie expand and company-mode.

http://richardriley.net/projects/emacs/dotprogramming#sec-1.3






^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [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>
  1 sibling, 0 replies; 35+ messages in thread
From: Andreas Röhler @ 2009-05-08  9:16 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs, python-mode

Richard Riley wrote:
> hi Andreas,
>
> but can one list breakpoints in pydb? Cant see how.
>
> r.
>
>   

info breakpoints

http://bashdb.sourceforge.net/pydb/pydb/lib/subsubsection-info.html

Grüße

Andreas
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
       [not found]             ` <mailman.6842.1241774145.31690.help-gnu-emacs@gnu.org>
@ 2009-05-08 16:36               ` Richard Riley
  0 siblings, 0 replies; 35+ messages in thread
From: Richard Riley @ 2009-05-08 16:36 UTC (permalink / raw)
  To: help-gnu-emacs

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

> Richard Riley wrote:
>> hi Andreas,
>>
>> but can one list breakpoints in pydb? Cant see how.
>>
>> r.
>>
>>   
>
> info breakpoints
>
> http://bashdb.sourceforge.net/pydb/pydb/lib/subsubsection-info.html
>
> Grüße
>
> Andreas
>
>

Yeah, I found it shortly after emailing you. Whenever I go back to gdb
that one always eludes me too - it just seems wrong. I always try "b
list" and so forth :-;

But thanks for the link. pydb is nice.


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: python setup ?
  2009-04-28 16:56 ` Richard Riley
@ 2009-05-13 21:05   ` Piet van Oostrum
  0 siblings, 0 replies; 35+ messages in thread
From: Piet van Oostrum @ 2009-05-13 21:05 UTC (permalink / raw)
  To: help-gnu-emacs

>>>>> Richard Riley <rileyrgdev@googlemail.com> (RR) wrote:

>RR> Xavier Maillard <xma@gnu.org> writes:
>>> Richard Riley <rileyrgdev@googlemail.com> writes:
>>> 
>>> Just to follow up, I re-enabled the ipython bit and it worked fine. I
>>> had ipython 0.9.1 installed.
>>> 
>>> Would you mind explaingin briefly what makes ipython so
>>> attractive (compared to default bundled mode and/or with
>>> python-mode).
>>> 
>>> Thank you.
>>> 
>>> Xavier

>RR> http://ipython.scipy.org/moin/

I was interested and installed iPython. However, when I enable it in
Emacs (Carbon Emacs 22.3 on Mac OS X 10.4) the comint mode gets into
problems. E.g when I do find-name-dired I get this error:

Debugger entered--Lisp error: (error "Marker does not point anywhere")
  ipython-indentation-hook("")
  run-hook-with-args(ipython-indentation-hook "")
  comint-send-input(t t)
  comint-skip-input()
  comint-stop-subjob()
  run-hooks(comint-mode-hook shell-mode-hook)
  apply(run-hooks (comint-mode-hook shell-mode-hook))
  run-mode-hooks(shell-mode-hook)
  shell-mode()
  shell-command("find . \\( -iname test \\) -exec ls -ld \\{\\} \\;&" #<buffer *Find*>)
  find-dired("~/TEST/PYTHON/PythonCard/" "-iname test")
  find-name-dired("~/TEST/PYTHON/PythonCard/" "test")
  call-interactively(find-name-dired)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)

Does anybody know why this happens and how I can prevent it?
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org


^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2009-05-13 21:05 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200904280634.n3S6YctW009278@zogzog.maillard.mobi>
2009-04-30  7:25 ` python setup ? Andreas Röhler
2009-04-30 13:24   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).