From andreas.roehler at online.de Sat Apr 25 09:44:01 2009 From: andreas.roehler at online.de (Andreas Roehler) Date: Sat, 25 Apr 2009 09:44:01 +0200 Subject: [Python-mode] pdbtrack Message-ID: <49F2BF41.6050600@online.de> Hi Ken, thanks a lot writing `pdbtrack'. AFAIU it starts, if `py-pdbtrack-do-tracking-p' is set to `t' and an error occurs. Would prefer to have it started as soon `py-pdbtrack-do-tracking-p' is set. Presently I get that, inserting a pdb.set_trace() into the head of the python-file. Do you or does someone know a better solution here? Thanks again Andreas R?hler -- http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/files https://code.launchpad.net/s-x-emacs-werkstatt/ From barry at python.org Sat Apr 25 16:49:40 2009 From: barry at python.org (Barry Warsaw) Date: Sat, 25 Apr 2009 10:49:40 -0400 Subject: [Python-mode] pdbtrack In-Reply-To: <49F2BF41.6050600@online.de> References: <49F2BF41.6050600@online.de> Message-ID: <71A9FB80-5E02-4173-B0BF-869E8E4C5A3A@python.org> On Apr 25, 2009, at 3:44 AM, Andreas Roehler wrote: > thanks a lot writing `pdbtrack'. > > AFAIU it starts, if `py-pdbtrack-do-tracking-p' is set > to `t' and an error occurs. I'm not quite sure what you mean here. It always just starts for me when I hit a pdb prompt. > > Would prefer to have it started as soon > `py-pdbtrack-do-tracking-p' is set. > > Presently I get that, inserting a pdb.set_trace() into > the head of the python-file. > > Do you or does someone know a better solution here? -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 304 bytes Desc: This is a digitally signed message part URL: From andreas.roehler at easy-emacs.de Mon Apr 27 14:41:34 2009 From: andreas.roehler at easy-emacs.de (=?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?=) Date: Mon, 27 Apr 2009 14:41:34 +0200 Subject: [Python-mode] [Fwd: Re: python setup ?] Message-ID: <49F5A7FE.1030608@easy-emacs.de> Hi Barry, as some questions about Emacs and python are raised, I forward that here. Tend to delete all files beside python-mode.el from my branch. Good idea? Agreed? Andreas -------------- next part -------------- An embedded message was scrubbed... From: Richard Riley Subject: Re: python setup ? Date: Mon, 27 Apr 2009 13:15:40 +0200 Size: 6621 URL: From barry at python.org Mon Apr 27 15:21:07 2009 From: barry at python.org (Barry Warsaw) Date: Mon, 27 Apr 2009 09:21:07 -0400 Subject: [Python-mode] [Fwd: Re: python setup ?] In-Reply-To: <49F5A7FE.1030608@easy-emacs.de> References: <49F5A7FE.1030608@easy-emacs.de> Message-ID: <17149201-1E96-405E-90D8-7B7C98613E04@python.org> On Apr 27, 2009, at 8:41 AM, Andreas R?hler wrote: > as some questions about Emacs and python are raised, I forward that > here. > > Tend to delete all files beside python-mode.el from my branch. > > Good idea? Agreed? I generally leave the other files there, but only use python-mode.el. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 304 bytes Desc: This is a digitally signed message part URL: From andreas.roehler at easy-emacs.de Mon Apr 27 16:34:47 2009 From: andreas.roehler at easy-emacs.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Mon, 27 Apr 2009 16:34:47 +0200 Subject: [Python-mode] [Fwd: Re: python setup ?] In-Reply-To: <17149201-1E96-405E-90D8-7B7C98613E04@python.org> References: <49F5A7FE.1030608@easy-emacs.de> <17149201-1E96-405E-90D8-7B7C98613E04@python.org> Message-ID: <49F5C287.8000901@easy-emacs.de> Barry Warsaw wrote: > On Apr 27, 2009, at 8:41 AM, Andreas R?hler wrote: > >> as some questions about Emacs and python are raised, I forward that >> here. >> >> Tend to delete all files beside python-mode.el from my branch. >> >> Good idea? Agreed? > > I generally leave the other files there, but only use python-mode.el. > > -Barry > The point is, I don't really understand until now, if I should branch these files into my repo or not. Sure, you should keep it. Or better to say: we should keep a general repo for python-tools written so far. OTOH, while developing certain files, we must not clone the whole repo. Or must we because of zar bazaars will? Cheers Andreas From andreas.roehler at easy-emacs.de Mon Apr 27 16:54:25 2009 From: andreas.roehler at easy-emacs.de (=?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?=) Date: Mon, 27 Apr 2009 16:54:25 +0200 Subject: [Python-mode] [Fwd: Re: python setup ?] Message-ID: <49F5C721.3070105@easy-emacs.de> Hi Thierry, thanks for the help. Forwarded it to python-mode at python.org and will see, if we get it into the archive at launchpad. (BTW seeing no contradiction towards emacs-wiki, just different tools /possibilities. Vive la difference!) Andreas -------------- next part -------------- An embedded message was scrubbed... From: thierry.volpiatto at gmail.com Subject: Re: python setup ? Date: Mon, 27 Apr 2009 15:50:32 +0200 Size: 9070 URL: From barry at python.org Mon Apr 27 17:04:51 2009 From: barry at python.org (Barry Warsaw) Date: Mon, 27 Apr 2009 11:04:51 -0400 Subject: [Python-mode] [Fwd: Re: python setup ?] In-Reply-To: <49F5C287.8000901@easy-emacs.de> References: <49F5A7FE.1030608@easy-emacs.de> <17149201-1E96-405E-90D8-7B7C98613E04@python.org> <49F5C287.8000901@easy-emacs.de> Message-ID: <1CCC425C-D157-4034-BEF0-D992FD46C501@python.org> On Apr 27, 2009, at 10:34 AM, Andreas R?hler wrote: > Barry Warsaw wrote: >> On Apr 27, 2009, at 8:41 AM, Andreas R?hler wrote: >> >>> as some questions about Emacs and python are raised, I forward that >>> here. >>> >>> Tend to delete all files beside python-mode.el from my branch. >>> >>> Good idea? Agreed? >> >> I generally leave the other files there, but only use python-mode.el. >> >> -Barry >> > > The point is, I don't really understand until now, if I should branch > these files into my repo or not. > > Sure, you should keep it. Or better to say: we should keep a general > repo for python-tools written so far. > OTOH, while developing certain files, we must not clone the whole > repo. > Or must we > because of zar bazaars will? If you 'bzr branch lp:python-mode' you'll get all the files. I always just leave them there when I work on branches of the code. There's really no reason to delete them. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 304 bytes Desc: This is a digitally signed message part URL: From andreas.roehler at easy-emacs.de Thu Apr 30 09:25:40 2009 From: andreas.roehler at easy-emacs.de (=?ISO-8859-1?Q?Andreas_R=F6hler?=) Date: Thu, 30 Apr 2009 09:25:40 +0200 Subject: [Python-mode] python setup ? In-Reply-To: <200904280634.n3S6YctW009278@zogzog.maillard.mobi> References: <200904280634.n3S6YctW009278@zogzog.maillard.mobi> Message-ID: <49F95274.4000801@easy-emacs.de> 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 > From barry at python.org Thu Apr 30 15:24:46 2009 From: barry at python.org (Barry Warsaw) Date: Thu, 30 Apr 2009 09:24:46 -0400 Subject: [Python-mode] python setup ? In-Reply-To: <49F95274.4000801@easy-emacs.de> References: <200904280634.n3S6YctW009278@zogzog.maillard.mobi> <49F95274.4000801@easy-emacs.de> Message-ID: 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 304 bytes Desc: This is a digitally signed message part URL: From andreas.roehler at online.de Thu Apr 30 22:07:48 2009 From: andreas.roehler at online.de (Andreas Roehler) Date: Thu, 30 Apr 2009 22:07:48 +0200 Subject: [Python-mode] pdbtrack Message-ID: <49FA0514.4020107@online.de> Hi Barry, I'll send you two screenshots offlist. Please feel free to forward them to interested persons, just didn't want to publish my path at the list. 20090428_pdbtrack3.png displays pdbtrack opened second windows, cursor displayed at line 4 "import" With 20090428_pdbtrack4.png you see shell-output from line 8, but cursor in second window still is at line 4. Always get "Traceback cue not found" Cause seems var `py-pdbtrack-stack-entry-regexp'. That doesn't happen, if pdb.set_trace() is inside the python-file. Did someone else remark this? Andreas