From skapoor102 at yahoo.com Sat Apr 14 01:25:26 2007 From: skapoor102 at yahoo.com (Sanjay Kapoor) Date: Fri, 13 Apr 2007 16:25:26 -0700 (PDT) Subject: [Python-mode] Basic question Message-ID: <214114.32281.qm@web31005.mail.mud.yahoo.com> Hey, I'm just getting back into using Emacs for the first time in awhile. Now that I've just downloaded the Python Mode tar from sourceForge and ran pycomplete.py, how do I use Emacs in Python Mode? Sanjay --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-mode/attachments/20070413/7b869b20/attachment.html From kelvie at ieee.org Mon Apr 23 02:38:35 2007 From: kelvie at ieee.org (Kelvie Wong) Date: Sun, 22 Apr 2007 17:38:35 -0700 Subject: [Python-mode] Still active? Message-ID: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> Looking at the complete lack of documentation and updates, I'm wondering, is python-mode still being developed? Or perhaps it's being merged into the main emacs project? Cheers -- Kelvie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-mode/attachments/20070422/bd09d599/attachment.htm From skip at pobox.com Mon Apr 23 04:03:34 2007 From: skip at pobox.com (skip at pobox.com) Date: Sun, 22 Apr 2007 21:03:34 -0500 Subject: [Python-mode] Still active? In-Reply-To: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> References: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> Message-ID: <17964.5110.691721.674406@montanaro.dyndns.org> Kelvie> Looking at the complete lack of documentation and updates, I'm Kelvie> wondering, is python-mode still being developed? Or perhaps Kelvie> it's being merged into the main emacs project? Well, no merging is going on, but I really don't have time to mess with it either. The longer I'm away from it the worse my Emacs Lisp skills get and the more complex the APIs get. Skip From barry at python.org Mon Apr 23 04:32:29 2007 From: barry at python.org (Barry Warsaw) Date: Sun, 22 Apr 2007 22:32:29 -0400 Subject: [Python-mode] Still active? In-Reply-To: <17964.5110.691721.674406@montanaro.dyndns.org> References: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> <17964.5110.691721.674406@montanaro.dyndns.org> Message-ID: <8B74CB8B-C7C7-4741-909C-90973A7561BD@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Apr 22, 2007, at 10:03 PM, skip at pobox.com wrote: > > Kelvie> Looking at the complete lack of documentation and > updates, I'm > Kelvie> wondering, is python-mode still being developed? Or > perhaps > Kelvie> it's being merged into the main emacs project? > > Well, no merging is going on, but I really don't have time to mess > with it > either. The longer I'm away from it the worse my Emacs Lisp skills > get and > the more complex the APIs get. The way I look at it is that python-mode pretty much does what most of us developing it want it to do, so there's little incentive to keep hacking on it. I do occasionally add support for new keywords and such (Python 2.5's with-statement being a recent addition). Other than that, not much development is going on, but we certainly welcome new blood if someone wants to start working on it again. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iQCVAwUBRiwavnEjvBPtnXfVAQK2JAP8Cx4M+TGEwd8LjKYYnBdynLWzEe9Ihr0U HSCBv4C2XzlQjVEyswjpoO5LC2Sey4AlaPwDOgEkN9lTxATJa+adUWLVV66Xl0m4 Xd0fMmE00d7mj5Q62SbbipshnNDr1xopF56VWDYkdaodNgw6uWwEfgACfpeLzQ8J +XWBO/QJf9A= =swcV -----END PGP SIGNATURE----- From kelvie at ieee.org Mon Apr 23 05:34:48 2007 From: kelvie at ieee.org (Kelvie Wong) Date: Sun, 22 Apr 2007 20:34:48 -0700 Subject: [Python-mode] Still active? In-Reply-To: <8B74CB8B-C7C7-4741-909C-90973A7561BD@python.org> References: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> <17964.5110.691721.674406@montanaro.dyndns.org> <8B74CB8B-C7C7-4741-909C-90973A7561BD@python.org> Message-ID: <94ccbe710704222034j4e62d082v570ef47a178fd6d7@mail.gmail.com> Yeah, I am quite interested in this project; sadly, I don't know any elisp, but I'll start doing some reading over the summer. I also have a project course coming up (I'm an engineering undergrad), and I'd also like to do something for the open source community as part of that, and seeing as how I use python so often, and use emacs, this would be an ideal project (it starts in January, which is still a way's away). I'm especially interested in making a more featureful auto-completion method, or would you guys have any ideas on something I can embark on? I can put about 12-20 hours on it a week for about 3 months, twice that if I can find a partner :P Cheers, Kelvie PS. Any recommended reading material? On 4/22/07, Barry Warsaw wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Apr 22, 2007, at 10:03 PM, skip at pobox.com wrote: > > > > > Kelvie> Looking at the complete lack of documentation and > > updates, I'm > > Kelvie> wondering, is python-mode still being developed? Or > > perhaps > > Kelvie> it's being merged into the main emacs project? > > > > Well, no merging is going on, but I really don't have time to mess > > with it > > either. The longer I'm away from it the worse my Emacs Lisp skills > > get and > > the more complex the APIs get. > > The way I look at it is that python-mode pretty much does what most > of us developing it want it to do, so there's little incentive to > keep hacking on it. I do occasionally add support for new keywords > and such (Python 2.5's with-statement being a recent addition). > Other than that, not much development is going on, but we certainly > welcome new blood if someone wants to start working on it again. > > - -Barry > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > > iQCVAwUBRiwavnEjvBPtnXfVAQK2JAP8Cx4M+TGEwd8LjKYYnBdynLWzEe9Ihr0U > HSCBv4C2XzlQjVEyswjpoO5LC2Sey4AlaPwDOgEkN9lTxATJa+adUWLVV66Xl0m4 > Xd0fMmE00d7mj5Q62SbbipshnNDr1xopF56VWDYkdaodNgw6uWwEfgACfpeLzQ8J > +XWBO/QJf9A= > =swcV > -----END PGP SIGNATURE----- > -- Kelvie -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-mode/attachments/20070422/2ff5312f/attachment.htm From tk at dydimustk.com Mon Apr 23 15:00:05 2007 From: tk at dydimustk.com (thomas knoll) Date: Mon, 23 Apr 2007 08:00:05 -0500 Subject: [Python-mode] Still active? In-Reply-To: <94ccbe710704222034j4e62d082v570ef47a178fd6d7@mail.gmail.com> References: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> <17964.5110.691721.674406@montanaro.dyndns.org> <8B74CB8B-C7C7-4741-909C-90973A7561BD@python.org> <94ccbe710704222034j4e62d082v570ef47a178fd6d7@mail.gmail.com> Message-ID: <59a26bd90704230600x3d3ebf51me0434467dd7a6722@mail.gmail.com> On 4/22/07, Kelvie Wong wrote: > I'm especially interested in making a more featureful auto-completion > method, or would you guys have any ideas on something I can embark on? Pymacs has not had much love and affection for a while. I wonder if these two projects aren't worth rolling into one, and a few of us newbies can take a turn updating the code. I'm not an expert at python or emacs, but they are already my two favorite tools, so I would love to see a more robust interaction between the two. I would be glad to help out as much as I am able. > PS. Any recommended reading material? Every time I've asked this question in #emacs, the majority swear by the info pages in emacs. Apparently it is the best intro to elisp anywhere. (I would be happy for someone to disagree.) gratia vobis et pax, TK + .:dydimustk.com:. | Freelance Apostle ________________________________________ Thomas Knoll 651.210.2321 tk at dydimustk.com skype:dydimustk From barry at python.org Mon Apr 23 15:07:40 2007 From: barry at python.org (Barry Warsaw) Date: Mon, 23 Apr 2007 09:07:40 -0400 Subject: [Python-mode] Still active? In-Reply-To: <59a26bd90704230600x3d3ebf51me0434467dd7a6722@mail.gmail.com> References: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> <17964.5110.691721.674406@montanaro.dyndns.org> <8B74CB8B-C7C7-4741-909C-90973A7561BD@python.org> <94ccbe710704222034j4e62d082v570ef47a178fd6d7@mail.gmail.com> <59a26bd90704230600x3d3ebf51me0434467dd7a6722@mail.gmail.com> Message-ID: <5A7A06E6-40A4-4E1C-8048-126EA9A818D7@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Apr 23, 2007, at 9:00 AM, thomas knoll wrote: >> PS. Any recommended reading material? > > Every time I've asked this question in #emacs, the majority swear by > the info pages in emacs. Apparently it is the best intro to elisp > anywhere. (I would be happy for someone to disagree.) It's been ages since I read any elisp tutorials or intros. These days, I swear by the Lispref manual that comes with XEmacs. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iQCVAwUBRiyvo3EjvBPtnXfVAQJ7hAP/W9CRh9XZ/IE74bIHEYByk5XMOeKkjXjB +cubvVL3Wt/zCzrKetXmDEy7eaXe8KQKxSwbyjisrqv5Pr3bY4a8yOSLtVF8wF4c 2ouSKEfSpjHuxKZM4hAuJCnTtbLrb+uCW/KgAxtC6QlB/A76qr4Kc7BYbcZJN1Ga H7Be0lYMWBE= =hnlf -----END PGP SIGNATURE----- From skip at pobox.com Mon Apr 23 18:34:15 2007 From: skip at pobox.com (skip at pobox.com) Date: Mon, 23 Apr 2007 11:34:15 -0500 Subject: [Python-mode] Still active? In-Reply-To: <94ccbe710704222034j4e62d082v570ef47a178fd6d7@mail.gmail.com> References: <94ccbe710704221738y85c9ebeob4c53884f1d49594@mail.gmail.com> <17964.5110.691721.674406@montanaro.dyndns.org> <8B74CB8B-C7C7-4741-909C-90973A7561BD@python.org> <94ccbe710704222034j4e62d082v570ef47a178fd6d7@mail.gmail.com> Message-ID: <17964.57351.604216.603688@montanaro.dyndns.org> Kelvie> Yeah, I am quite interested in this project; sadly, I don't know Kelvie> any elisp, but I'll start doing some reading over the summer. As someone else indicated Pymacs might be a good way to go. I don't see any harm in supporting an effort to redesign/rewrite python-mode using Pymacs. If successful I think there's a lot of room to improve what python-mode can do. If not, then either this version of python-mode or the GNU Emacs version are both still there as backstops. Kelvie> I also have a project course coming up (I'm an engineering Kelvie> undergrad), and I'd also like to do something for the open Kelvie> source community as part of that, and seeing as how I use python Kelvie> so often, and use emacs, this would be an ideal project (it Kelvie> starts in January, which is still a way's away). In that case, I think you'd have more fun with Pymacs, probably have fewer barriers to surmount (little Emacs Lisp) and maybe lay the groundwork for a very cool 2008 Google Summer of Code project. ;-) Kelvie> I'm especially interested in making a more featureful Kelvie> auto-completion method, or would you guys have any ideas on Kelvie> something I can embark on? I can put about 12-20 hours on it a Kelvie> week for about 3 months, twice that if I can find a partner :P Check the code out of CVS^H^H^HSubversion and look at pycomplete.{el,py}. Skip From itz at madbat.mine.nu Fri Apr 27 05:46:15 2007 From: itz at madbat.mine.nu (Ian Zimmerman) Date: 26 Apr 2007 23:46:15 -0400 Subject: [Python-mode] Underscore syntax class Message-ID: <871wi6h43c.fsf@unicorn.ahiker.homeip.net> This has the feel of a faq. Forgive, I am a python newbie, and this issue, as strange as it may seem to you, could stop me from studying python further. >From python-mode.el: ;; For historical reasons, underscore is word class instead of ;; symbol class. GNU conventions say it should be symbol class, but ;; there's a natural conflict between what major mode authors want ;; and what users expect from `forward-word' and `backward-word'. ;; Guido and I have hashed this out and have decided to keep ;; underscore in word class. If you're tempted to change it, try ;; binding M-f and M-b to py-forward-into-nomenclature and ;; py-backward-into-nomenclature instead. This doesn't help in all ;; situations where you'd want the different behavior ;; (e.g. backward-kill-word). (modify-syntax-entry ?\_ "w" py-mode-syntax-table) When you talk about conflict, I am not sure on which side you imagine the users to be. _This_ longtime Emacs user definitely expects _ as a symbol (i.e. M-f and M-b move into the middle of an identifier, if there's an embedded underscore). These are some of the most frequently used Emacs commands of all, so the different behavior really is a big deal. It's just like the resentment you feel when you boot into single user mode and get ash as the interactive shell instead of bash with its readline features. And it's impossible to "get used" to it, because naturally I continue to edit a dozen other languages as well and all of _their_ modes follow the convention. So, rant over - what bad things will happen when I change it? Does the code internally depend on the syntax somehow? The suspect parts would be highlighting and indentation, of course - anywhere you do something like (re-search-backward "\") because with the changed syntax it will find "foo_while_bar" as well. But Emacs has a mechanism to deal with this: you should do as follows, (let internal-python-syntax-table (make-syntax-table)) . . . (modify-syntax-entry ?\_ "_" internal-python-syntax-table) . . . (with-syntax-table internal-python-syntax-table (re-search-backward "\)) This is what I do in the major modes I write. Thanks for your attention and understanding. -- This line is completely ham.