[Python-checkins] CVS: python/nondist/peps pep-0042.txt,1.49,1.50

Thomas Wouters thomas@xs4all.net
Sun, 18 Mar 2001 00:34:51 +0100


On Sat, Mar 17, 2001 at 11:52:34AM -0800, Tim Peters wrote:

> +     - Would be nice if IDLE showed which structure was being closed upon
> +       typing one of "})]".  Heck, a string too, for that matter.
> +       The bug report also says something about TAB I didn't grok.

> +       http://sourceforge.net/tracker/?func=detail&aid=404444&group_id=5470&atid=105470

The TAB comment is pretty easy to explain: the user wants IDLE to re-indent
the *current* line whenever he presses TAB, regardless of where his cursor
is at that moment. I first noticed this behaviour from (X)Emacs last week,
while writing some HTML in the xml-html mode. Instead of needing to jump to
the start of the line, delete all whitespace and press tab to indent, just
press tab once. I'll have to say that it's a lot spiffier in HTML mode (and
probably most programming modes) because it has block-closing markers :-)

(You would type:
  <p>
    <stuff>
    <stuff>
    </p>TAB
and the </p> would be re-aligned with <p>, not with <stuff>)

The right response to this kind of request might be 'use python-mode
instead', though ;-P

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!