Re: [Python-mode] special editor support for indentation needed.

2008-11-27 Thread Barry Warsaw
-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 v

Re: special editor support for indentation needed.

2008-11-27 Thread MRAB
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. Meanwhile I'll reflect a draft addressing your needs. there is a rather

Re: special editor support for indentation needed.

2008-11-27 Thread Andreas Roehler
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. Bar

Re: special editor support for indentation needed.

2008-11-26 Thread Eric S. Johansson
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. > Meanwhile I'll reflect a draft addressing your needs. there is a rather sizable set of thin

Re: special editor support for indentation needed.

2008-11-21 Thread Andreas Roehler
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

Re: special editor support for indentation needed.

2008-11-18 Thread Eric S. Johansson
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

Re: special editor support for indentation needed.

2008-11-17 Thread Andreas Roehler
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, ev

Re: special editor support for indentation needed.

2008-11-17 Thread Eric S. Johansson
John Yeung wrote: > On Nov 15, 8:50 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> well, therein lies the rub. I don't know lisp, >> I don't know Emacs internals let alone python mode. > > Unfortunately, neither do I. Actually, I haven't touched Emacs since > my college days, and barely r

Re: special editor support for indentation needed.

2008-11-17 Thread Eric S. Johansson
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

Re: special editor support for indentation needed.

2008-11-16 Thread Jeremiah Dodds
On Mon, Nov 17, 2008 at 1:36 AM, John Yeung <[EMAIL PROTECTED]>wrote: > On Nov 15, 8:50 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > > well, therein lies the rub. I don't know lisp, > > I don't know Emacs internals let alone python mode. > > Is vr-mode a "major" mode? If so, I suppose it

Re: special editor support for indentation needed.

2008-11-16 Thread John Yeung
On Nov 15, 8:50 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > well, therein lies the rub.  I don't know lisp, > I don't know Emacs internals let alone python mode. Unfortunately, neither do I. Actually, I haven't touched Emacs since my college days, and barely remember any of it. I figure

Re: special editor support for indentation needed.

2008-11-16 Thread Aahz
In article <[EMAIL PROTECTED]>, Eric S. Johansson <[EMAIL PROTECTED]> wrote: > >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 t

Re: special editor support for indentation needed.

2008-11-16 Thread Steve Holden
Eric S. Johansson wrote: > Aaron Brady wrote: [...] > one step up from speaking the keyboard is forcing the user to say the same > command multiple times to achieve a single effect. For example, if you want > to > move to the beginning of the line for the end of the line, you can say "move > word

Re: special editor support for indentation needed.

2008-11-15 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > I still don't understand. I elaborated on some of these points in a post to Aaron Brady. If you missed it on the list, let me know and I will forward you a copy. It seems that you want to be able to do: > "END_CLASS" to end the current class. > > "END_DEF" to end t

Re: special editor support for indentation needed.

2008-11-15 Thread Eric S. Johansson
John Yeung wrote: > This is such a fascinating and compelling thread that it has pulled me > out of lurker mode. > > Eric, I would like to say I also admire your initiative, but even more > so your patience. You seem to handle comments of all types > gracefully. Should have seen me 20 years ago.

Re: special editor support for indentation needed.

2008-11-15 Thread Eric S. Johansson
Aaron Brady wrote: > You see examples here from time to time that don't follow the rigid C+ > + formatting. Some examples: > > def classmaker( ): > class X: > something > return X > > class X: > class Y: > something > > if something: > class X: > pass > else: > def X( ): >

Re: special editor support for indentation needed.

2008-11-15 Thread [EMAIL PROTECTED]
On Nov 14, 9:01 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >  I don't understand. If you don't want to terminate the "if", why do > > you hit backspace? What is it that you would like to have happen? > > the goal is to make some aspects of indentation behave the

Re: special editor support for indentation needed.

2008-11-15 Thread John Yeung
This is such a fascinating and compelling thread that it has pulled me out of lurker mode. Eric, I would like to say I also admire your initiative, but even more so your patience. You seem to handle comments of all types gracefully. Perhaps it comes from working with speech recognition so much.

Re: special editor support for indentation needed.

2008-11-14 Thread Aaron Brady
On Nov 14, 11:28 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > Aaron Brady wrote: > > On Nov 14, 8:01 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: > >>>  I don't understand. If you don't want to terminate the "if", why do > >>> you hit backspace? What is i

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
Aaron Brady wrote: > On Nov 14, 8:01 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> I don't understand. If you don't want to terminate the "if", why do >>> you hit backspace? What is it that you would like to have happen? >> the goal is to make some aspects of i

Re: special editor support for indentation needed.

2008-11-14 Thread Aaron Brady
On Nov 14, 8:01 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >  I don't understand. If you don't want to terminate the "if", why do > > you hit backspace? What is it that you would like to have happen? > > the goal is to make some aspects of indentation behave the

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > I don't understand. If you don't want to terminate the "if", why do > you hit backspace? What is it that you would like to have happen? the goal is to make some aspects of indentation behave the same without context dependency. this goal exists for many features of pr

Re: special editor support for indentation needed.

2008-11-14 Thread [EMAIL PROTECTED]
On Nov 14, 5:27 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Nov 14, 4:08 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > >> Almar Klein wrote: > >>> Hi Eric, > >>> First of all, I like your initiative. > >> there's nothing like self interest to drive on

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > On Nov 14, 4:08 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: >> Almar Klein wrote: >>> Hi Eric, >>> First of all, I like your initiative. >> there's nothing like self interest to drive one's initiative. :-) 14 years >> with >> speech recognition and counting. I'm

Re: special editor support for indentation needed.

2008-11-14 Thread [EMAIL PROTECTED]
On Nov 14, 4:08 pm, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > Almar Klein wrote: > > Hi Eric, > > > First of all, I like your initiative. > > there's nothing like self interest to drive one's initiative.  :-) 14 years > with > speech recognition and counting.  I'm so looking to my 15th anni

Re: special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
Almar Klein wrote: > Hi Eric, > > First of all, I like your initiative. there's nothing like self interest to drive one's initiative. :-) 14 years with speech recognition and counting. I'm so looking to my 15th anniversary of being injured next year another initiative is exporting the spee

Re: special editor support for indentation needed.

2008-11-14 Thread Matimus
On Nov 14, 11:41 am, "Eric S. Johansson" <[EMAIL PROTECTED]> wrote: > in trying to make programming in Python more accessible to disabled > programmers > (specifically mobility impaired speech recognition users), and hitting a bit > of > a wall.  The wall (for today) is indentation.  I need a met

Re: special editor support for indentation needed.

2008-11-14 Thread Almar Klein
Hi Eric, First of all, I like your initiative. I'm not sure if I undestand you correctly, but can't you just increase indentation after each line that ends with a colon? That's how I do it in my editor. The user would then only need to specify when to decrease indentation. Cheers, Almar 2008/

special editor support for indentation needed.

2008-11-14 Thread Eric S. Johansson
in trying to make programming in Python more accessible to disabled programmers (specifically mobility impaired speech recognition users), and hitting a bit of a wall. The wall (for today) is indentation. I need a method of getting the "right indentation" without having to speak a bunch of unnece