From andreas.roehler at online.de Tue Nov 18 08:43:19 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Tue, 18 Nov 2008 08:43:19 +0100 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <49217F09.3060309@harvee.org> References: <491DD44F.8010208@harvee.org> <7bce0749-a13e-4100-8b6c-dc1dd6134690@h23g2000prf.googlegroups.com> <47fe3a4f-0905-42c5-a358-ba82855fdc6c@e38g2000prn.googlegroups.com> <6a0c30ed-f3e3-45ec-9186-9fa8df56111a@e38g2000prn.googlegroups.com> <090e20b8-2a6e-41bc-a8c4-cfb802898f2b@40g2000prx.googlegroups.com> <12cbbbfc0811162315n6133da6ct19b69508034b6fe2@mail.gmail.com> <49217F09.3060309@harvee.org> Message-ID: <49227217.1090200@online.de> Eric S. Johansson wrote: > Jeremiah Dodds wrote: > >> Eric, I don't have a good readily available solution to what you're >> trying to do, but it seems to me that it would be worth your time to get >> comfortable with elisp, and how it's used in emacs. The emacs >> documentation is pretty good, even if you don't know lisp, and I think >> it would be one of the easiest languages to integrate well with voice >> recognition. I don't think you would need to touch what is commonly >> referred to as emacs internals to do what you want. There's a good >> chance that you'd be able to greatly improve emacs voice-recognition >> support pretty easily in a month or twos time. > > for reasons too long to go into, trying to modify Emacs extensively is not a > long-term win. IMO Jeremiah Dodds is right. With all the time spent on this discussion, you could write the needed function in elisp probably. BTW your request seems reasonable. Other python programmers may use it too. Whats Emacs? To an important extent, it's that, you want it to be. So if you have your code, your functions, why it shouldn't it be a long term win? Anyway you should tell, which python-mode and which Emacs you use if any. Andreas R?hler From jjhartley at gmail.com Thu Nov 20 19:00:20 2008 From: jjhartley at gmail.com (James Hartley) Date: Thu, 20 Nov 2008 10:00:20 -0800 Subject: [Python-mode] Emacs 22.2 & automatic indentation in Python mode? Message-ID: I have probably overlooked something obvious, but after installing Emacs 22.2, I am not getting code to automatically indent as I expected in Python mode. Instead, pressing Enter merely takes me back to column 1 of the next line. I am seeing "Python" in the status line at the bottom, so I'm assuming that Python mode is enabled, but if anyone has some insights they would like to share with the clueless, I would be grateful. Thanks. From barry at python.org Thu Nov 20 23:51:24 2008 From: barry at python.org (Barry Warsaw) Date: Thu, 20 Nov 2008 17:51:24 -0500 Subject: [Python-mode] Emacs 22.2 & automatic indentation in Python mode? In-Reply-To: References: Message-ID: <550EE177-9407-4AD1-A92B-17E21C4EF73E@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 20, 2008, at 1:00 PM, James Hartley wrote: > I have probably overlooked something obvious, but after installing > Emacs 22.2, I am not getting code to automatically indent as I > expected in Python mode. Instead, pressing Enter merely takes me back > to column 1 of the next line. > > I am seeing "Python" in the status line at the bottom, so I'm assuming > that Python mode is enabled, but if anyone has some insights they > would like to share with the clueless, I would be grateful. You're probably getting a different python-mode than what this mailing list generally supports. However, there have been grumblings about merging the two. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSSXp7HEjvBPtnXfVAQIP6QP+Jdyuh4Lz+ss9ucAqj5Vdjv6oMEewkIeZ nnKvwnO5VizcViFMKJFS+MoP4/KxH9vkH8DpNEvRNOj+Hbx791EEy8TuIucHZtnH Z01wfU/QfKBYu3jYWibzoMMQ1dzBWINY2z986pfIROmphGRJENNNFTIzoJhgX6oo hUheWyclKf8= =FL2b -----END PGP SIGNATURE----- From skip at pobox.com Fri Nov 21 00:14:09 2008 From: skip at pobox.com (skip at pobox.com) Date: Thu, 20 Nov 2008 17:14:09 -0600 Subject: [Python-mode] Emacs 22.2 & automatic indentation in Python mode? In-Reply-To: <550EE177-9407-4AD1-A92B-17E21C4EF73E@python.org> References: <550EE177-9407-4AD1-A92B-17E21C4EF73E@python.org> Message-ID: <18725.61249.610565.34021@montanaro-dyndns-org.local> >> ... Emacs 22.2 ... Instead, pressing Enter merely takes me back to >> column 1 of the next line. Barry> You're probably getting a different python-mode than what this Barry> mailing list generally supports. Indeed you are. From what I've seen that's a common complaint about the python.el which comes with GNU Emacs. Barry> However, there have been grumblings about merging the two. Nothing very loud as far as I can tell. Skip From esj at harvee.org Tue Nov 18 21:18:26 2008 From: esj at harvee.org (Eric S. Johansson) Date: Tue, 18 Nov 2008 15:18:26 -0500 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <49227217.1090200@online.de> References: <491DD44F.8010208@harvee.org> <7bce0749-a13e-4100-8b6c-dc1dd6134690@h23g2000prf.googlegroups.com> <47fe3a4f-0905-42c5-a358-ba82855fdc6c@e38g2000prn.googlegroups.com> <6a0c30ed-f3e3-45ec-9186-9fa8df56111a@e38g2000prn.googlegroups.com> <090e20b8-2a6e-41bc-a8c4-cfb802898f2b@40g2000prx.googlegroups.com> <12cbbbfc0811162315n6133da6ct19b69508034b6fe2@mail.gmail.com> <49217F09.3060309@harvee.org> <49227217.1090200@online.de> Message-ID: <49232312.1080500@harvee.org> Andreas Roehler wrote: > IMO Jeremiah Dodds is right. With all the time spent on this discussion, you > could write the needed function in elisp probably. BTW your request seems > reasonable. Other python programmers may use it too. I tried learning lisp about 15 years ago. even bought a copy of the little lisper. after a few days, I gave up because there was just too much learning curve for the reward. I know that sounds a touch arrogant but in truth, I'd prefer to put my energy into building a better bridge between NaturallySpeaking and linux apps. bigger pay off helping more people. with reguard to emacs changes I hope for and would appreciate it if someone would partner up with me and help build these (and other) changes into python mode. I will also point out that if another IDE is better suited, I'm open to that too. > Anyway you should tell, which python-mode and which Emacs you use if any. This is GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-09-08 on LENNART-69DE564 (patched) and I'm using the python mode that came with emacs. no version number but... ;;; python.el --- silly walks for Python -*- coding: iso-8859-1 -*- ;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. ;; Author: Dave Love ;; Maintainer: FSF ;; Created: Nov 2003 ;; Keywords: languages > > Andreas R?hler From noreply at sourceforge.net Fri Nov 21 07:58:41 2008 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 21 Nov 2008 06:58:41 +0000 Subject: [Python-mode] [ python-mode-Bugs-2319690 ] compilation problems in gnu emacs (solution provided!) Message-ID: Bugs item #2319690, was opened at 2008-11-21 06:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=2319690&group_id=86916 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Matthias Fischmann (fis) Assigned to: Nobody/Anonymous (nobody) Summary: compilation problems in gnu emacs (solution provided!) Initial Comment: I get a list of warnings when i compile the python-mode.el on GNU Emacs 22.2.1. I have made a few changes that fix these warnings. All of them are clearly harmless, and at least one of them (the devconst thing) looks like a proper bug fix to me. Patch and patched file are attached to this ticket. Please let me know if there is anything else I can do to get this into the next release. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=2319690&group_id=86916 From noreply at sourceforge.net Fri Nov 21 07:59:47 2008 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 21 Nov 2008 06:59:47 +0000 Subject: [Python-mode] [ python-mode-Bugs-2319690 ] compilation problems in gnu emacs (solution provided!) Message-ID: Bugs item #2319690, was opened at 2008-11-21 06:58 Message generated for change (Comment added) made by fis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=2319690&group_id=86916 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Matthias Fischmann (fis) Assigned to: Nobody/Anonymous (nobody) Summary: compilation problems in gnu emacs (solution provided!) Initial Comment: I get a list of warnings when i compile the python-mode.el on GNU Emacs 22.2.1. I have made a few changes that fix these warnings. All of them are clearly harmless, and at least one of them (the devconst thing) looks like a proper bug fix to me. Patch and patched file are attached to this ticket. Please let me know if there is anything else I can do to get this into the next release. ---------------------------------------------------------------------- >Comment By: Matthias Fischmann (fis) Date: 2008-11-21 06:59 Message: File Added: python-mode.el.patched ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=2319690&group_id=86916 From andreas.roehler at online.de Fri Nov 21 19:19:22 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Fri, 21 Nov 2008 19:19:22 +0100 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <49232312.1080500@harvee.org> References: <491DD44F.8010208@harvee.org> <7bce0749-a13e-4100-8b6c-dc1dd6134690@h23g2000prf.googlegroups.com> <47fe3a4f-0905-42c5-a358-ba82855fdc6c@e38g2000prn.googlegroups.com> <6a0c30ed-f3e3-45ec-9186-9fa8df56111a@e38g2000prn.googlegroups.com> <090e20b8-2a6e-41bc-a8c4-cfb802898f2b@40g2000prx.googlegroups.com> <12cbbbfc0811162315n6133da6ct19b69508034b6fe2@mail.gmail.com> <49217F09.3060309@harvee.org> <49227217.1090200@online.de> <49232312.1080500@harvee.org> Message-ID: <4926FBAA.2090605@online.de> Eric S. Johansson wrote: > Andreas Roehler wrote: > >> IMO Jeremiah Dodds is right. With all the time spent on this discussion, you >> could write the needed function in elisp probably. BTW your request seems >> reasonable. Other python programmers may use it too. > > I tried learning lisp about 15 years ago. even bought a copy of the little > lisper. after a few days, I gave up because there was just too much learning > curve for the reward. I know that sounds a touch arrogant but in truth, I'd > prefer to put my energy into building a better bridge between NaturallySpeaking > and linux apps. bigger pay off helping more people. with reguard to emacs > changes I hope for and would appreciate it if someone would partner up with me > and help build these (and other) changes into python mode. I will also point > out that if another IDE is better suited, I'm open to that too. I like Emacs, that's true. However I'm not married with. If a better tools exists for my purposes, I'll use it. Until than lets write the code you need in Emacs Lisp, which should not be that difficult. I use GNU Emacs 22.1.1 (i586-suse-linux-gnu, GTK+ Version 2.12.0) of 2007-11-24 on dede with python-mode.el from http://sourceforge.net/projects/python-mode/ AFAIK its the most advanced mode for all Emacsen. You could give it a try. Meanwhile I'll reflect a draft addressing your needs. BTW, what about this stuff?: http://www.cb1.com/~john/computing/emacs/handsfree/index.html > >> Anyway you should tell, which python-mode and which Emacs you use if any. > > > This is GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) > of 2008-09-08 on LENNART-69DE564 (patched) > > and I'm using the python mode that came with emacs. no version number but... > > ;;; python.el --- silly walks for Python -*- coding: iso-8859-1 -*- > > ;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. > > ;; Author: Dave Love > ;; Maintainer: FSF > ;; Created: Nov 2003 > ;; Keywords: languages > >> Andreas R?hler > > From barry at python.org Fri Nov 21 21:16:51 2008 From: barry at python.org (Barry Warsaw) Date: Fri, 21 Nov 2008 15:16:51 -0500 Subject: [Python-mode] Fwd: Python mode function that I use References: Message-ID: <0BFB1E56-5FB6-48AE-8D50-DFF7C6BEF3F7@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Begin forwarded message: > From: "Yongsub Chung" > Date: November 19, 2008 3:07:27 PM EST > To: bwarsaw at users.sourceforge.net > Subject: Python mode function that I use > Message-Id: > > > Message body follows: > > Hi. I have two python-mode elisp functions that can be > useful. However, since I am very rough on elisp, I hope > that someone can complete this more elegantly. > > Initially, its named after my namespace prefix, but > hopefully, this becomes 'python-insert-import' and > 'python-insert-from-import'. > > Thank you. > > Raymond > > > ;;; code from here ;;; > > (defun ray-py-import (inc top) > "Insert python import without changing buffer-location. > For now, if '^import ' statement appears in the middle of > the code, > it is not smart to skip it. " > (interactive "sImport name: \nsGoing to the top? (y/N) ") > (if (or (string= top "y") (string= top "Y")) > (save-excursion > (beginning-of-buffer) > (goto-char (re-search-forward "^import" nil t)) > (move-beginning-of-line nil) > (insert-string "import " inc "\n")) > (save-excursion > (goto-char (re-search-backward "^import" nil t)) > (move-end-of-line nil) > (insert-string "\n") > (insert-string "import " inc)))) > > (defun ray-py-from-import (from inc top) > "Insert python 'from module import c1,c2' without changing > buffer-location > For now, if '^from ' statement appears in the middle of the > code, > it is not smart to skip it. " > (interactive "sFrom module: \nsImport name: \nsGoing to > the top? (y/N) ") > (if (or (string= top "y") (string= top "Y")) > (save-excursion > (beginning-of-buffer) > (goto-char (re-search-forward "^from " nil t)) > (move-beginning-of-line nil) > (insert-string "from " from " import " inc "\n")) > (save-excursion > (goto-char (re-search-backward "^from " nil t)) > (move-end-of-line nil) > (insert-string "\n") > (insert-string "from " from " import " inc )))) > > > -- > This message has been sent to you, a registered SourceForge.net user, > by another site user, through the SourceForge.net site. This message > has been delivered to your SourceForge.net mail alias. You may reply > to this message using the "Reply" feature of your email client, or > using the messaging facility of SourceForge.net at: > https://sourceforge.net/sendmessage.php?touser=2294541 > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSScXM3EjvBPtnXfVAQIDJwP/YfThDf8WWo9xyZGW7gCShQBMjpGcxptM +FEQE7Wu4z6CWbFeLSHEMbhUABEOjyOam2CYvmY5Oy1u2kk6mWlDbvjXNri7mhsQ 8E5PiEQcYmS5ZMs4ObLNk7jbdGElV18j9znso3Kn37kVdcb764Cop/cRLvi2/taN XyboXjebFrM= =6A1e -----END PGP SIGNATURE----- From barry at python.org Wed Nov 26 17:37:01 2008 From: barry at python.org (Barry Warsaw) Date: Wed, 26 Nov 2008 11:37:01 -0500 Subject: [Python-mode] Time for a new release? Message-ID: <38D7AD24-712E-4C0F-B6C9-BB711280F413@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I think it's long overdue that we officially release a new version of python-mode.el. I just added py-sort-imports (bound to C-c C-f for "from") which is really handing in lexicographically sorting multiline imports. It's been ages since we did a release. I'm happy to do it this weekend. I think it will be as easy as tagging the branch and making an announcement. One question I have is what version number to use. Keyword expansion doesn't work as seamlessly in Bazaar as in Subversion, so using the revision number may not be the best way to go (or I'd need to manually hack it in). Suggestions are welcome. We could just make up a number, like 5.0, or we could use the date of the release, or I could manually hack in the bzr revision number. Thoughts? - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSS17LXEjvBPtnXfVAQLN5QP/Yn8pubLGyX8twFjz1Ql2qxFgm3yuyXgP IAzPBTGRXSeBORBWDp0QbPCeuQyLsvjNwFbZkdTQy7gQu44ootv+skKxC5LZpIci lD7eGvVdGf66FYKyxp0Lq11pSD1+06quOP5vJo4WqWjfHy9yzokGFpiSPHzgIbK4 rg1EQEXcuW4= =8li7 -----END PGP SIGNATURE----- From skip at pobox.com Wed Nov 26 18:39:16 2008 From: skip at pobox.com (skip at pobox.com) Date: Wed, 26 Nov 2008 11:39:16 -0600 Subject: [Python-mode] Time for a new release? In-Reply-To: <38D7AD24-712E-4C0F-B6C9-BB711280F413@python.org> References: <38D7AD24-712E-4C0F-B6C9-BB711280F413@python.org> Message-ID: <18733.35268.143985.879186@montanaro-dyndns-org.local> Barry> I think it's long overdue that we officially release a new Barry> version of python-mode.el. I just added py-sort-imports (bound Barry> to C-c C-f for "from") which is really handing in Barry> lexicographically sorting multiline imports. The only thing I would insure works better before a release is triple-quoted string rendering. I think there are a couple patches floating around, but I know longer know where to look for things. Did SF tracker items get transferred to Launchpad? Barry> Suggestions are welcome. We could just make up a number, like Barry> 5.0, or we could use the date of the release, or I could manually Barry> hack in the bzr revision number. Given that a number of Emacs distros distribute python-mode I think we should probably avoid making major changes in the way we number without good reason. I believe we are in the 4.7x range right now. I suppose 4.80 or 5.00 would be reasonable. Any idea how far reaching the current changes are? Skip From noreply at sourceforge.net Thu Nov 27 05:02:24 2008 From: noreply at sourceforge.net (SourceForge.net) Date: Thu, 27 Nov 2008 04:02:24 +0000 Subject: [Python-mode] [ python-mode-Bugs-2319690 ] compilation problems in gnu emacs (solution provided!) Message-ID: Bugs item #2319690, was opened at 2008-11-21 01:58 Message generated for change (Settings changed) made by bwarsaw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=2319690&group_id=86916 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Matthias Fischmann (fis) Assigned to: Nobody/Anonymous (nobody) Summary: compilation problems in gnu emacs (solution provided!) Initial Comment: I get a list of warnings when i compile the python-mode.el on GNU Emacs 22.2.1. I have made a few changes that fix these warnings. All of them are clearly harmless, and at least one of them (the devconst thing) looks like a proper bug fix to me. Patch and patched file are attached to this ticket. Please let me know if there is anything else I can do to get this into the next release. ---------------------------------------------------------------------- >Comment By: Barry A. Warsaw (bwarsaw) Date: 2008-11-26 23:02 Message: The patch wasn't a unified (or even context) diff so it couldn't be applied, however it did provide a decent start for me to reproduce it. Thanks. ---------------------------------------------------------------------- Comment By: Matthias Fischmann (fis) Date: 2008-11-21 01:59 Message: File Added: python-mode.el.patched ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=581349&aid=2319690&group_id=86916 From barry at python.org Thu Nov 27 05:14:34 2008 From: barry at python.org (Barry Warsaw) Date: Wed, 26 Nov 2008 23:14:34 -0500 Subject: [Python-mode] Time for a new release? In-Reply-To: <18733.35268.143985.879186@montanaro-dyndns-org.local> References: <38D7AD24-712E-4C0F-B6C9-BB711280F413@python.org> <18733.35268.143985.879186@montanaro-dyndns-org.local> Message-ID: <20081126231434.167637a5@resist.wooz.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 26, 2008, at 11:39 AM, skip at pobox.com wrote: > > Barry> I think it's long overdue that we officially release a new > Barry> version of python-mode.el. I just added py-sort-imports (bound > Barry> to C-c C-f for "from") which is really handing in > Barry> lexicographically sorting multiline imports. > >The only thing I would insure works better before a release is triple-quoted >string rendering. I think there are a couple patches floating around, but I >know longer know where to look for things. Did SF tracker items get >transferred to Launchpad? No, unfortunately they did not. I'll see if I can't get that requested. I tried to set the existing trackers to point people to Launchpad, but SF apparently stripped my link. > Barry> Suggestions are welcome. We could just make up a number, like > Barry> 5.0, or we could use the date of the release, or I could manually > Barry> hack in the bzr revision number. > >Given that a number of Emacs distros distribute python-mode I think we >should probably avoid making major changes in the way we number without good >reason. I believe we are in the 4.7x range right now. I suppose 4.80 or >5.00 would be reasonable. Any idea how far reaching the current changes >are? I like going with 5.0. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkuHqoACgkQ2YZpQepbvXFuagCfaealTL0vHHwhdoaUeR5sZHkh rgwAn0uCtrDLf8l4YRVMGVm3c7PnVPUl =nHrH -----END PGP SIGNATURE----- From andreas.roehler at online.de Thu Nov 27 09:13:36 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Thu, 27 Nov 2008 09:13:36 +0100 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <492E3C22.10401@harvee.org> References: <491DD44F.8010208@harvee.org> <7bce0749-a13e-4100-8b6c-dc1dd6134690@h23g2000prf.googlegroups.com> <47fe3a4f-0905-42c5-a358-ba82855fdc6c@e38g2000prn.googlegroups.com> <6a0c30ed-f3e3-45ec-9186-9fa8df56111a@e38g2000prn.googlegroups.com> <090e20b8-2a6e-41bc-a8c4-cfb802898f2b@40g2000prx.googlegroups.com> <12cbbbfc0811162315n6133da6ct19b69508034b6fe2@mail.gmail.com> <49217F09.3060309@harvee.org> <49227217.1090200@online.de> <49232312.1080500@harvee.org> <4926FBAA.2090605@online.de> <492E3C22.10401@harvee.org> Message-ID: <492E56B0.4040800@online.de> Eric S. Johansson wrote: > Andreas Roehler wrote: >> with python-mode.el from >> >> http://sourceforge.net/projects/python-mode/ > > I think there's something wrong with the site because it tells me it's version > 1.0 from year 2005. You are right, sorry. I should tell you the present place. Barry Warsaw, the maintainer, took it to https://launchpad.net/python-mode Please look there for last version. Maybe subscribe the mailing list at python-mode at python.org I suggest to continue there with all questions concerning your needs and python-mode with Emacs. So lets dig through python-mode.el first, if it contains already some code suitable for you. > >> Meanwhile I'll reflect a draft addressing your needs. > > there is a rather sizable set of things that could be added to assist speech > during programming. I'm mostly concerned about the editing aspect of speech > driven programming. > Seems interesting in many respects. >> BTW, what about this stuff?: >> >> http://www.cb1.com/~john/computing/emacs/handsfree/index.html > > it's interesting but most of it is very low level user interface orientation. > Lo level stuff is relatively easy to implement. High-level stuff is much more > difficult than the equivalent GUI abstraction. > > a narrow channel interface stuff is very interesting especially if you take > full advantage of the concept. With regards to programming, a narrow channel > interface would let you choose a relatively low number of "big" items in the > field of vision and then let you continue to narrow until you can easily operate > on the item of interest. > > From deets at web.de Thu Nov 27 10:51:55 2008 From: deets at web.de (Diez B. Roggisch) Date: Thu, 27 Nov 2008 10:51:55 +0100 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <492E56B0.4040800@online.de> References: <491DD44F.8010208@harvee.org> <492E3C22.10401@harvee.org> <492E56B0.4040800@online.de> Message-ID: <200811271051.55690.deets@web.de> On Thursday 27 November 2008 09:13:36 Andreas Roehler wrote: > Eric S. Johansson wrote: > > Andreas Roehler wrote: > >> with python-mode.el from > >> > >> http://sourceforge.net/projects/python-mode/ > > > > I think there's something wrong with the site because it tells me it's > > version 1.0 from year 2005. > > You are right, sorry. I should tell you the present place. > > Barry Warsaw, the maintainer, took it to > > https://launchpad.net/python-mode Can you redirect users to that from the SF-site? I wanted to get a recent copy yesterday, and did not find the launchpad site. Diez From deets at web.de Thu Nov 27 10:54:46 2008 From: deets at web.de (Diez B. Roggisch) Date: Thu, 27 Nov 2008 10:54:46 +0100 Subject: [Python-mode] triple quote patch Message-ID: <200811271054.46651.deets@web.de> Hi, just read the message regarding the "floating patches". This one has been provided by Sebastian Wiesner. Just wanted to make sure you guys have it. Diez -------------- next part -------------- A non-text attachment was scrubbed... Name: python-mode.patch Type: text/x-diff Size: 8183 bytes Desc: not available URL: From barry at python.org Thu Nov 27 15:47:17 2008 From: barry at python.org (Barry Warsaw) Date: Thu, 27 Nov 2008 09:47:17 -0500 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <492E56B0.4040800@online.de> References: <491DD44F.8010208@harvee.org> <7bce0749-a13e-4100-8b6c-dc1dd6134690@h23g2000prf.googlegroups.com> <47fe3a4f-0905-42c5-a358-ba82855fdc6c@e38g2000prn.googlegroups.com> <6a0c30ed-f3e3-45ec-9186-9fa8df56111a@e38g2000prn.googlegroups.com> <090e20b8-2a6e-41bc-a8c4-cfb802898f2b@40g2000prx.googlegroups.com> <12cbbbfc0811162315n6133da6ct19b69508034b6fe2@mail.gmail.com> <49217F09.3060309@harvee.org> <49227217.1090200@online.de> <49232312.1080500@harvee.org> <4926FBAA.2090605@online.de> <492E3C22.10401@harvee.org> <492E56B0.4040800@online.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 27, 2008, at 3:13 AM, Andreas Roehler wrote: > Eric S. Johansson wrote: >> Andreas Roehler wrote: >>> with python-mode.el from >>> >>> http://sourceforge.net/projects/python-mode/ >> >> I think there's something wrong with the site because it tells me >> it's version >> 1.0 from year 2005. > > You are right, sorry. I should tell you the present place. > > Barry Warsaw, the maintainer, took it to > > https://launchpad.net/python-mode > > Please look there for last version. > > Maybe subscribe the mailing list at > python-mode at python.org I've tried as best I could to make it clear on the SF site that we've moved development to Launchpad. SF doesn't make it easy though. Unfortunately, we still haven't been able to import all the tracker issues from SF to LP, though a request is still open on that. For now, all new issues on python-mode.el should be opened here: https://bugs.launchpad.net/python-mode I'm going to try to do a new release of python-mode.el, maybe this weekend, but it won't have much more than what's in the bzr repository right now. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSS6y9nEjvBPtnXfVAQIHkQQApjxeqbv9cfDVKB3b0Pvy3seryYi7++8S J1LXnwUUgq7xUtf72i5tyJrdUPQRl6cQXxMaLczzm+HE0ULdB7mRiYOYpA+eZS/J man5kPe89KbyI6Jvd0NqXe+YJ2ud6XLVQQ37l8Is9vwBgrPFtgmHuxEkz0Ya8iS/ pV/QrTpd6ow= =WuiR -----END PGP SIGNATURE----- From barry at python.org Thu Nov 27 15:47:48 2008 From: barry at python.org (Barry Warsaw) Date: Thu, 27 Nov 2008 09:47:48 -0500 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <200811271051.55690.deets@web.de> References: <491DD44F.8010208@harvee.org> <492E3C22.10401@harvee.org> <492E56B0.4040800@online.de> <200811271051.55690.deets@web.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 27, 2008, at 4:51 AM, Diez B. Roggisch wrote: > On Thursday 27 November 2008 09:13:36 Andreas Roehler wrote: >> Eric S. Johansson wrote: >>> Andreas Roehler wrote: >>>> with python-mode.el from >>>> >>>> http://sourceforge.net/projects/python-mode/ >>> >>> I think there's something wrong with the site because it tells me >>> it's >>> version 1.0 from year 2005. >> >> You are right, sorry. I should tell you the present place. >> >> Barry Warsaw, the maintainer, took it to >> >> https://launchpad.net/python-mode > > Can you redirect users to that from the SF-site? I wanted to get a > recent copy > yesterday, and did not find the launchpad site. SourceForge does not make it possible to redirect. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSS6zFHEjvBPtnXfVAQLglwP/Rziic4eJUrQ2gFGLCAa5wnlLVbzmRak5 MWxPyWrmjbbX5MrK9P7HOykN9+vLvr4vCspUbLcA+X0mYqXDzufUkLdP9OOtluFs au7SwkCxJLQlyFUzDW/YFyHG178gOy0D/gwWFDSFo7mffzk+AP8HpOG2TySPDCuU nSm2M2t1oYY= =oM82 -----END PGP SIGNATURE----- From barry at python.org Thu Nov 27 15:49:35 2008 From: barry at python.org (Barry Warsaw) Date: Thu, 27 Nov 2008 09:49:35 -0500 Subject: [Python-mode] triple quote patch In-Reply-To: <200811271054.46651.deets@web.de> References: <200811271054.46651.deets@web.de> Message-ID: <46E8A00E-5824-4679-8CAB-569F168FCF8D@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 27, 2008, at 4:54 AM, Diez B. Roggisch wrote: > just read the message regarding the "floating patches". > > This one has been provided by Sebastian Wiesner. Just wanted to make > sure you > guys have it. Diez, if possible, could you please submit a bug report and attach the patch to it? https://bugs.launchpad.net/python-mode Or even better, create a bzr branch with the patch applied! https://help.launchpad.net/Code/UploadingABranch Things get lost in inboxes way too easily. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSS6zf3EjvBPtnXfVAQKwNAQAroqkE04WP59rLUHlyqU269fDBmnNGeIz e7W3lTxJurlIC5Rd2kB+kSW4EXDi/+BEeKP9oxJRl2PDoErh++nfumRivsfYGScB guXM/YrfYWClKadIIGAZ22wH7qTvFKG4RDcCe80ERAO6B7LfIdnTPaTtnUmDTPKm VL1C1gRQMjI= =Q0PS -----END PGP SIGNATURE----- From deets at web.de Thu Nov 27 16:17:00 2008 From: deets at web.de (Diez B. Roggisch) Date: Thu, 27 Nov 2008 16:17:00 +0100 Subject: [Python-mode] triple quote patch In-Reply-To: <46E8A00E-5824-4679-8CAB-569F168FCF8D@python.org> References: <200811271054.46651.deets@web.de> <46E8A00E-5824-4679-8CAB-569F168FCF8D@python.org> Message-ID: <200811271617.00603.deets@web.de> On Thursday 27 November 2008 15:49:35 Barry Warsaw wrote: > On Nov 27, 2008, at 4:54 AM, Diez B. Roggisch wrote: > > just read the message regarding the "floating patches". > > > > This one has been provided by Sebastian Wiesner. Just wanted to make > > sure you > > guys have it. > > Diez, if possible, could you please submit a bug report and attach the > patch to it? https://bugs.launchpad.net/bugs/302834 > https://bugs.launchpad.net/python-mode > > Or even better, create a bzr branch with the patch applied! > > https://help.launchpad.net/Code/UploadingABranch > > Things get lost in inboxes way too easily. The problem is that the patch doesn't apply clean for me. So it might not be of to much use :( Diez From skip at pobox.com Thu Nov 27 19:56:15 2008 From: skip at pobox.com (skip at pobox.com) Date: Thu, 27 Nov 2008 12:56:15 -0600 Subject: [Python-mode] triple quote patch In-Reply-To: <200811271054.46651.deets@web.de> References: <200811271054.46651.deets@web.de> Message-ID: <18734.60751.812666.460253@montanaro-dyndns-org.local> Diez> This one has been provided by Sebastian Wiesner. Just wanted to Diez> make sure you guys have it. I applied this to my repository. There were several merge problems since it appears to be for a slightly different version. It failed byte compilation because XEmacs doesn't have string-to-syntax. Also, looking at this note: http://mail.python.org/pipermail/python-list/2008-October/512272.html I see: I just downloaded python-mode.el from svn: http://svn.sourceforge.net/viewvc/python-mode/trunk/python-mode/ and applied this patch (code taken from python.el): Barry, should we accept big chunks of code from python.el? Skip From skip at pobox.com Thu Nov 27 20:09:48 2008 From: skip at pobox.com (skip at pobox.com) Date: Thu, 27 Nov 2008 13:09:48 -0600 Subject: [Python-mode] triple quote patch In-Reply-To: <200811271617.00603.deets@web.de> References: <200811271054.46651.deets@web.de> <46E8A00E-5824-4679-8CAB-569F168FCF8D@python.org> <200811271617.00603.deets@web.de> Message-ID: <18734.61564.51924.107237@montanaro-dyndns-org.local> Diez> The problem is that the patch doesn't apply clean for me. So it Diez> might not be of to much use :( I got the rejects to apply. I can't test it under XEmacs, but I attached it to your bug report. Skip From skip at pobox.com Thu Nov 27 17:27:50 2008 From: skip at pobox.com (skip at pobox.com) Date: Thu, 27 Nov 2008 10:27:50 -0600 Subject: [Python-mode] special editor support for indentation needed. In-Reply-To: <200811271051.55690.deets@web.de> References: <491DD44F.8010208@harvee.org> <492E3C22.10401@harvee.org> <492E56B0.4040800@online.de> <200811271051.55690.deets@web.de> Message-ID: <18734.51846.23342.624480@montanaro-dyndns-org.local> >> Barry Warsaw, the maintainer, took it to >> >> https://launchpad.net/python-mode Diez> Can you redirect users to that from the SF-site? I wanted to get a Diez> recent copy yesterday, and did not find the launchpad site. I think Barry said he tried to put up some information about the project moving to Launchpad but that SF undid his change or something. I'm pretty sure an HTTP redirect wouldn't be possible. Skip From andreas.roehler at online.de Fri Nov 28 11:14:52 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Fri, 28 Nov 2008 11:14:52 +0100 Subject: [Python-mode] updating repository Message-ID: <492FC49C.1010702@online.de> bzr checkout of today delivered ;; Author: 2003-2008 http://sf.net/projects/python-mode probably it should be updated? No mention of launchpad so far. Cheers Andreas R?hler From barry at python.org Fri Nov 28 17:30:59 2008 From: barry at python.org (Barry Warsaw) Date: Fri, 28 Nov 2008 11:30:59 -0500 Subject: [Python-mode] updating repository In-Reply-To: <492FC49C.1010702@online.de> References: <492FC49C.1010702@online.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 28, 2008, at 5:14 AM, Andreas Roehler wrote: > bzr checkout of today delivered > > ;; Author: 2003-2008 http://sf.net/projects/python-mode > > probably it should be updated? > > No mention of launchpad so far. Thanks, fixed in r344. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTAcxHEjvBPtnXfVAQKlegQArdKFlNvKU0I35A/7DYs99mP4Q4JnVkgv RHcUwS4BFnyx5UOQ8cbW8jSUFRLGZgr/lKgks+fJAmTTSuUCiwRyU21MK8nIJZ47 1J9R7X2CkHfXUbNJJ+V8eaQ+bQ8b+5EIX+TwpDz0YwTGDpR/rVPTAEwn2hhGgBk+ hTLNoDGJt4s= =mZO5 -----END PGP SIGNATURE----- From barry at python.org Fri Nov 28 17:54:08 2008 From: barry at python.org (Barry Warsaw) Date: Fri, 28 Nov 2008 11:54:08 -0500 Subject: [Python-mode] ANNOUNCE python-mode.el 5.0.0 (Molluscs) Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It's been ages since we did a formal python-mode.el release, so I took the opportunity to embrace my tryptophan induced hallucinations and release a new version. Skip was suggesting we try to include better triple quoted string support, but my motto for today is JFDI. So here it is for better or worse, and I hope we'll be making further improvements over time. I have no idea what's new since whatever version you have. RTSL and enjoy. Download from: https://launchpad.net/python-mode/+download Bugs and patches: https://launchpad.net/python-mode Cheers, - -Barry P.S. Please note that while we still have lots of artifacts sitting on the SourceForge project, and there's no way to disable them, we've requested an import of those issues into Launchpad. For all new patches and bugs, you must submit them to Launchpad or we'll probably ignore them. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTAiMXEjvBPtnXfVAQJl7gQAj4uiD9xQrn530f/riOG9bRBKZt4mhre4 5wcWsYX3JWeI/gWF3lk6ckjfHTYriJNN/rFtzRL3/YPGs5ftRD2kw1matDPF8uhs Vv+pNwNatnoiVl3RzBx4uGNsaEe04LVNf8DocwheYdVCo321VSllcsC02cqXzMSZ hNpE63kAZJs= =hyn9 -----END PGP SIGNATURE----- From deets at web.de Fri Nov 28 18:08:35 2008 From: deets at web.de (Diez B. Roggisch) Date: Fri, 28 Nov 2008 18:08:35 +0100 Subject: [Python-mode] ANNOUNCE python-mode.el 5.0.0 (Molluscs) In-Reply-To: References: Message-ID: <200811281808.36117.deets@web.de> On Friday 28 November 2008 17:54:08 Barry Warsaw wrote: > It's been ages since we did a formal python-mode.el release, so I took > the opportunity to embrace my tryptophan induced hallucinations and > release a new version. Skip was suggesting we try to include better > triple quoted string support, but my motto for today is JFDI. So here > it is for better or worse, and I hope we'll be making further > improvements over time. Congrats! I started using a recent trunk version and really enjoy the experience. Diez From barry at python.org Fri Nov 28 18:09:33 2008 From: barry at python.org (Barry Warsaw) Date: Fri, 28 Nov 2008 12:09:33 -0500 Subject: [Python-mode] ANNOUNCE python-mode.el 5.0.0 (Molluscs) In-Reply-To: <200811281808.36117.deets@web.de> References: <200811281808.36117.deets@web.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 28, 2008, at 12:08 PM, Diez B. Roggisch wrote: > On Friday 28 November 2008 17:54:08 Barry Warsaw wrote: >> It's been ages since we did a formal python-mode.el release, so I >> took >> the opportunity to embrace my tryptophan induced hallucinations and >> release a new version. Skip was suggesting we try to include better >> triple quoted string support, but my motto for today is JFDI. So >> here >> it is for better or worse, and I hope we'll be making further >> improvements over time. > > Congrats! I started using a recent trunk version and really enjoy the > experience. Great! Once we get the SF trackers imported, I think it will be much easier to fix things going forward. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTAlzXEjvBPtnXfVAQI8FQQArx/3eVsKQCEgww9FN2tSz9KsTVpV7Kx4 r5crWhIlqHyoFWpRf5riDdPDIf6mQgYHfsBO9/gTaIyhG3htEdGqN1a+5UypRWLw MnGlhvmaGRot7jPVW+Wu+y259GXrTHxf0RXOwmL3ZBROD2AbEOJKVzPiZ8L52lZO XT5xR5zxnCY= =PWxk -----END PGP SIGNATURE----- From skip at pobox.com Fri Nov 28 18:22:46 2008 From: skip at pobox.com (skip at pobox.com) Date: Fri, 28 Nov 2008 11:22:46 -0600 Subject: [Python-mode] ANNOUNCE python-mode.el 5.0.0 (Molluscs) In-Reply-To: References: Message-ID: <18736.10470.498919.213848@montanaro-dyndns-org.local> Barry> It's been ages since we did a formal python-mode.el release, so I Barry> took the opportunity to embrace my tryptophan induced Barry> hallucinations and release a new version. Thanks for doing this Barry. I ran bzr pull just now but python-mode.el still gives a version of 5.0.0a1. I saw your checkin messages. bzr info gives this output: % bzr info Standalone tree (format: rich-root-pack) Location: branch root: . Related branches: parent branch: http://bazaar.launchpad.net/%7Epython-mode-devs/python-mode/python-mode/ Am I maybe pointing at the wrong branch? Skip From barry at python.org Fri Nov 28 20:51:12 2008 From: barry at python.org (Barry Warsaw) Date: Fri, 28 Nov 2008 14:51:12 -0500 Subject: [Python-mode] ANNOUNCE python-mode.el 5.0.0 (Molluscs) In-Reply-To: <18736.10470.498919.213848@montanaro-dyndns-org.local> References: <18736.10470.498919.213848@montanaro-dyndns-org.local> Message-ID: <563C7EB1-7029-45C4-AFFC-FC8A7A49D01F@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 28, 2008, at 12:22 PM, skip at pobox.com wrote: > > Barry> It's been ages since we did a formal python-mode.el > release, so I > Barry> took the opportunity to embrace my tryptophan induced > Barry> hallucinations and release a new version. > > Thanks for doing this Barry. I ran bzr pull just now but python- > mode.el > still gives a version of 5.0.0a1. I saw your checkin messages. bzr > info > gives this output: > > % bzr info > Standalone tree (format: rich-root-pack) > Location: > branch root: . > > Related branches: > parent branch: http://bazaar.launchpad.net/%7Epython-mode-devs/python-mode/python-mode/ > > Am I maybe pointing at the wrong branch? Hi Skip. It's possible that the branch scanner is running behind schedule a bit. Try again and you should get r346 which has a post-release tweak. Also, if you visit the http url above you should get to the loggerhead view (like viewcvs) which does show the latest diff. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTBLsXEjvBPtnXfVAQKr1AP/cgy3TABrNvwEhlpXvm7I26KLVtAXlWil prKZV/6clVCnsj7qpSXaTDBkB4GuiyTdJxvojKywpjMGUKqpRmviwXs5fwq6we7O oV5krbEG9NkS2SjadGhT4AYPWJBgk2IRJxkA1aKj2Aanha5s+DK4K+e2Rztrztmg kUlOxb2xwek= =tTgJ -----END PGP SIGNATURE----- From jbauer at rubic.com Sat Nov 29 03:51:32 2008 From: jbauer at rubic.com (Jeff Bauer) Date: Fri, 28 Nov 2008 20:51:32 -0600 Subject: [Python-mode] underscore syntax Message-ID: <4930AE34.3000203@rubic.com> Did the behavior python-mode change with respect to the syntax of vars_with_underscores? Keying M-f or M-b now stops the cursor at the underscores rather than grabbing the entire variable. Prior, in GNU Emacs 21.4, the behavior worked as I expected. -- Jeff Bauer From barry at python.org Sat Nov 29 16:19:20 2008 From: barry at python.org (Barry Warsaw) Date: Sat, 29 Nov 2008 10:19:20 -0500 Subject: [Python-mode] underscore syntax In-Reply-To: <4930AE34.3000203@rubic.com> References: <4930AE34.3000203@rubic.com> Message-ID: <4B76FFF3-C83B-4B59-A59B-BE599EC76AA4@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 28, 2008, at 9:51 PM, Jeff Bauer wrote: > Did the behavior python-mode change with respect to the > syntax of vars_with_underscores? Keying M-f or M-b > now stops the cursor at the underscores rather than > grabbing the entire variable. Prior, in GNU Emacs 21.4, > the behavior worked as I expected. AFAIK, python-mode.el has stopped at underscores since the beginning of time. It's possible that you were using python.el before, which maybe had a different behavior. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTFdeHEjvBPtnXfVAQLO8wQAtiMAkw/q4XHRICCeX/IZUvScrXA56LTB cAGqySSxTlaL/g11Vz3hqrGFDAs7mZEOv7QvE5ABnSs7RRt+DP3SMzwqQFt75Mht LxBmh77CG9DR0qfvhh9eh5vSH3YdSYAJTHI/LRM25qT4YygGJj5p30xCtt8ATzTN ++EKezfJrts= =Q9pA -----END PGP SIGNATURE----- From deets at web.de Sat Nov 29 17:47:31 2008 From: deets at web.de (Diez B. Roggisch) Date: Sat, 29 Nov 2008 17:47:31 +0100 Subject: [Python-mode] underscore syntax In-Reply-To: <4930AE34.3000203@rubic.com> References: <4930AE34.3000203@rubic.com> Message-ID: <49317223.10502@web.de> Jeff Bauer schrieb: > Did the behavior python-mode change with respect to the > syntax of vars_with_underscores? Keying M-f or M-b > now stops the cursor at the underscores rather than > grabbing the entire variable. Prior, in GNU Emacs 21.4, > the behavior worked as I expected. I don't think that's a python-mode issue - rather emacs behaves differently. Dunno how to change that though. My emacs doesn't stop at underscores. Regardless of python-mode-age. Diez From andreas.roehler at online.de Sat Nov 29 18:02:26 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Sat, 29 Nov 2008 18:02:26 +0100 Subject: [Python-mode] M-x beginning-of-defun Message-ID: <493175A2.9080408@online.de> Hi Barry, `beginning-of-defun-raw' in GNU Emacs has a nice feature, enabling functions instead of regexps to determine beginning and end of defun, i.e. function or form. In python-mode.el I see you solved this by binding the beginning- and end-of-defun keys seperatly. (Maybe, because XEmacs lacks this feature?) However, this lets commands like M-x beginning-of-defun empty. My suggestion is to follow GNU conventions here, by introducing the missing forms in XEmacs lisp.el and python-mode.el alike. Herewith a patch against latest python-mode.el, which I enjoy, thanks BTW. Also a patch against latest XEmacs lisp.el. Best wishes Andreas R?hler -------------- next part -------------- A non-text attachment was scrubbed... Name: py-beg-end-of-defun-function.diff Type: text/x-patch Size: 985 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: beginning-end-of-defun-function.diff Type: text/x-patch Size: 2653 bytes Desc: not available URL: From jbauer at rubic.com Sat Nov 29 18:51:25 2008 From: jbauer at rubic.com (Jeff Bauer) Date: Sat, 29 Nov 2008 11:51:25 -0600 Subject: [Python-mode] underscore syntax In-Reply-To: <49317223.10502@web.de> References: <4930AE34.3000203@rubic.com> <49317223.10502@web.de> Message-ID: <4931811D.7090108@rubic.com> Diez B. Roggisch wrote: > Jeff Bauer schrieb: >> Did the behavior python-mode change with respect to the >> syntax of vars_with_underscores? Keying M-f or M-b >> now stops the cursor at the underscores rather than >> grabbing the entire variable. Prior, in GNU Emacs 21.4, >> the behavior worked as I expected. > > I don't think that's a python-mode issue - rather emacs behaves > differently. Dunno how to change that though. > > My emacs doesn't stop at underscores. Regardless of python-mode-age. I was running the standard python-mode that ships with Ubuntu 8.10 when I noticed it stopped at underscores. Downloading the recently announced python-mode.el 5.0.0 from LaunchPad (Thanks, Barry!) fixed this behavior, though I'm sure it had more to do with switching away from whatever python-mode is being shipped in the current Ubuntu. All is now sweetness and light. -Jeff From barry at python.org Sat Nov 29 19:38:20 2008 From: barry at python.org (Barry Warsaw) Date: Sat, 29 Nov 2008 13:38:20 -0500 Subject: [Python-mode] underscore syntax In-Reply-To: <4931811D.7090108@rubic.com> References: <4930AE34.3000203@rubic.com> <49317223.10502@web.de> <4931811D.7090108@rubic.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 29, 2008, at 12:51 PM, Jeff Bauer wrote: > Diez B. Roggisch wrote: >> Jeff Bauer schrieb: >>> Did the behavior python-mode change with respect to the >>> syntax of vars_with_underscores? Keying M-f or M-b >>> now stops the cursor at the underscores rather than >>> grabbing the entire variable. Prior, in GNU Emacs 21.4, >>> the behavior worked as I expected. >> I don't think that's a python-mode issue - rather emacs behaves >> differently. Dunno how to change that though. >> My emacs doesn't stop at underscores. Regardless of python-mode-age. > > I was running the standard python-mode that ships with Ubuntu 8.10 > when I noticed it stopped at underscores. I bet that's python.el (i.e. the one that comes with FSF Emacs). > Downloading the recently > announced python-mode.el 5.0.0 from LaunchPad (Thanks, Barry!) fixed > this behavior, though I'm sure it had more to do with switching > away from whatever python-mode is being shipped in the current > Ubuntu. > > All is now sweetness and light. Great. I realize that I bind M-f and M-b to py-(forward|backward)- into-nomenclature which does stop at underscores. I've been using that for a bazillion years so I'm used to (and like) that behavior. - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTGMHXEjvBPtnXfVAQIvUwQAnO6p2akzlSQujktwkE2zFuw57nLa3SVd BWSzSTAHAZcA2UvySIOUGbO4s7SbLFOGitFdER5S2Le+o3j5JH03MngqYHINMnfF uj3iz4fXolrbFRFuL0Zf9yKpe5ezKgIXONMxWo0iISJiSR3p+2emkquURVEOTGf/ 6l8+J4vsnLk= =A53Z -----END PGP SIGNATURE----- From barry at python.org Sat Nov 29 19:48:34 2008 From: barry at python.org (Barry Warsaw) Date: Sat, 29 Nov 2008 13:48:34 -0500 Subject: [Python-mode] M-x beginning-of-defun In-Reply-To: <493175A2.9080408@online.de> References: <493175A2.9080408@online.de> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 29, 2008, at 12:02 PM, Andreas Roehler wrote: > `beginning-of-defun-raw' in GNU Emacs has a nice > feature, enabling functions instead of regexps to > determine beginning and end of defun, i.e. function or form. > > In python-mode.el I see you solved this by binding the > beginning- and end-of-defun keys seperatly. > (Maybe, because XEmacs lacks this feature?) > > However, this lets commands like M-x beginning-of-defun > empty. > > My suggestion is to follow GNU conventions here, by > introducing the missing forms in XEmacs lisp.el and > python-mode.el alike. > > Herewith a patch against latest python-mode.el, which I > enjoy, thanks BTW. > > Also a patch against latest XEmacs lisp.el. Thanks for the contribution Andreas, but I don't think we can accept a patch that relies on patching XEmacs. I don't have the energy for that. ;) Can you rewrite the patch so that it doesn't rely on a XEmacs change? Also, please open a bug on Launchpad and attach the patch to that, or create a branch with your changes that would be easy for us to review and merge. Having patches sitting in an inbox is a surefire way to have it get lost. Thanks, Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTGOgnEjvBPtnXfVAQLlxAP+J7UUfTG6Ph44w5fKw+LdTdgCtPaeui05 2QjxHc13GUivvGR3kFP7seqfGnMLFy2MIpU/O4HBQ+nQHrHmEHy+tYfSOjimbo/m 54azM0BczDi+B7KeQWBxgMpS6SzMPGqdtDJ/PQlwupMGJW8FHtqPm8q28XQ+Ww1s NjIbF+jc74U= =lris -----END PGP SIGNATURE----- From skip at pobox.com Sat Nov 29 20:10:58 2008 From: skip at pobox.com (skip at pobox.com) Date: Sat, 29 Nov 2008 13:10:58 -0600 Subject: [Python-mode] underscore syntax In-Reply-To: <49317223.10502@web.de> References: <4930AE34.3000203@rubic.com> <49317223.10502@web.de> Message-ID: <18737.37826.808886.694144@montanaro-dyndns-org.local> Diez> I don't think that's a python-mode issue - rather emacs behaves Diez> differently. Dunno how to change that though. Diez> My emacs doesn't stop at underscores. Regardless of Diez> python-mode-age. >From a comment in 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). I don't know if the "I" referenced here is Barry or Tim. Skip From barry at python.org Sat Nov 29 20:15:27 2008 From: barry at python.org (Barry Warsaw) Date: Sat, 29 Nov 2008 14:15:27 -0500 Subject: [Python-mode] underscore syntax In-Reply-To: <18737.37826.808886.694144@montanaro-dyndns-org.local> References: <4930AE34.3000203@rubic.com> <49317223.10502@web.de> <18737.37826.808886.694144@montanaro-dyndns-org.local> Message-ID: <6B6E3A49-191F-46D4-A96D-9EC4F78656FF@python.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 29, 2008, at 2:10 PM, skip at pobox.com wrote: >> From a comment in 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). > > I don't know if the "I" referenced here is Barry or Tim. Ah yes, that was me. - -B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iQCVAwUBSTGUz3EjvBPtnXfVAQKnewQAgTU8BiS1KyFXO6s17TvIZN0WG8brNsfd mANyLg/Bq8B+HxsFRmIxL1bTNTze5NCiPgmDCkzOn9CCdQMJTimMZrmcS3D9twG1 lnZu+u+h9Y/NkbtVzJHF/hvQsAd74DZoYNSKdtEJIcOm+y9699nPOG5HbD9PKvaD j9P5tivnCkY= =HuoU -----END PGP SIGNATURE----- From andreas.roehler at online.de Sat Nov 29 22:10:33 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Sat, 29 Nov 2008 22:10:33 +0100 Subject: [Python-mode] M-x beginning-of-defun In-Reply-To: References: <493175A2.9080408@online.de> Message-ID: <4931AFC9.2030507@online.de> Barry Warsaw wrote: > On Nov 29, 2008, at 12:02 PM, Andreas Roehler wrote: > >> `beginning-of-defun-raw' in GNU Emacs has a nice >> feature, enabling functions instead of regexps to >> determine beginning and end of defun, i.e. function or form. > >> In python-mode.el I see you solved this by binding the >> beginning- and end-of-defun keys seperatly. >> (Maybe, because XEmacs lacks this feature?) > >> However, this lets commands like M-x beginning-of-defun >> empty. > >> My suggestion is to follow GNU conventions here, by >> introducing the missing forms in XEmacs lisp.el and >> python-mode.el alike. > >> Herewith a patch against latest python-mode.el, which I >> enjoy, thanks BTW. > >> Also a patch against latest XEmacs lisp.el. > > Thanks for the contribution Andreas, but I don't think we can accept a > patch that relies on patching XEmacs. It doesn't rely on that lisp.el patch. It simply will not work with XEmacs, i.e. in Xemacs everything will be unchanged, whilst with GNU Emacs "M-x beginning-of-defun" etc. will work then. I don't have the energy for > that. ;) As the matter seems important, I'm rather confident to convince them. As said, there is no restriction or bad thing for python-mode anyway. OTOH should the lisp.el patch be applied, it offers some more chances to clean up the code, using defaults instead of peciular solutions. > > Can you rewrite the patch so that it doesn't rely on a XEmacs change? As mentioned above, no rewrite needed. > Also, please open a bug on Launchpad and attach the patch to that, or > create a branch with your changes that would be easy for us to review > and merge. Ok, I'll try that. Having patches sitting in an inbox is a surefire way to have > it get lost. Probably you are right, I understand that. Thanks again. Andreas > > Thanks, > Barry > From andreas.roehler at online.de Sun Nov 30 17:45:21 2008 From: andreas.roehler at online.de (Andreas Roehler) Date: Sun, 30 Nov 2008 17:45:21 +0100 Subject: [Python-mode] py-newline-and-close-THING Message-ID: <4932C321.305@online.de> Hi, herewith a first solution to requests posted at python-list (defun py-newline-and-close-block () " " (interactive "*") (let ((ci (current-indentation))) (end-of-line) (newline) (indent-to-column (- ci py-indent-offset)))) If this proceeding seems acceptable, I'll figure out py-newline-and-close-function py-newline-and-close-class py-newline-and-close-form (if, while, etc) It would always close the adressed form above, choosing the indent to proceed. Below some examples of requests in python-list posted by Eric S. Johansson Title was: "special editor support for indentation needed": ;;;;;;;;;;; here's an example of the problem: class foo( object): def cat(self) self.x=1 def dog self.x=2 this is legal Python but it's not what you need 99% of the time. There is no cue to the editor to tell it to outdent to give me what I really want which is: class foo( object): def cat(self) self.x=1 def dog self.x=2 ;;;;;;;;;;;;; and at another place ;;;;;;;;;;;;; the current outdent capability conflates multiple outdent events. The outdent events are, at a minimum,: Close block close method close class Another way to look at these events are start method, start class and close block. Now using these events, let's compare a use case against the outdent mechanism. starting with an example of a previous message, class pet (object): """ """ def cat(self): """ """ if food in bowl: self.empty = True def dog(self): to start the dog method, after ending the Method, I would need to say something like: newline tab key Close block close block delta echo foxtrot dog left paren self close paren colon... But if the method ended like: ... def cat(self): """ """ self.empty = True def dog(self): I would only want to use a single "close block" to outdent. unfortunately, this context dependent behavior is frustratingly wrong when it comes to creating speech driven macros to enter templates. it requires user intervention to tell you how may times to outdent and that's counterproductive at best and physically damaging at worst for a disabled user. ;;;;;;;;;;;;;;;;;;;; So far the report.