undo tab

Discussion in 'Python' started by Tom, Jul 2, 2003.

  1. Tom

    Tom Guest

    Hi,

    as we all know we need tabs if we use for, if ... commands. Sometimes I
    find an easier way to do something and I can get rid of one or more for,
    if ... loops. Unfortunately I couldn't find a convenient way to get rid
    of the now unnecessary tabs. I am looking for something as convenient as
    inserting tabs (mark everything and push the tab key). I tried shift+tab
    and all other possible variations with alt/shift/ctrl. :)

    Thanks for your help.
    Tom
     
    Tom, Jul 2, 2003
    #1
    1. Advertisements

  2. Hi,

    > Maybe you can just give me a general hint how you do it and which editor
    > you use. That would probably also help.


    I use Xemacs, and do it with "Ctrl-c <"
    I don't know about Emacs on Windows, but the "GNU Emacs FAQ For Windows"
    can probably help you with this:

    http://www.gnu.org/software/emacs/windows/ntemacs.html

    HTH,
    Andreas
     
    Andreas Kuntzagk, Jul 2, 2003
    #2
    1. Advertisements

  3. Tom

    Ulrich Petri Guest

    "Tom" <> schrieb im Newsbeitrag news:...
    > Hi,
    >
    > it doesn't work with any editor that I tried. The one I use on a regular
    > basis is the standard python IDLE. Sometimes I also use the editor of
    > pythonwin and Boa-Constructor.
    >
    > Maybe you can just give me a general hint how you do it and which editor
    > you use. That would probably also help.
    >
    > Thank you, Tom.
    >


    I use UltraEdit-32. There it works with Shift-Tab.

    Ciao Ulrich
     
    Ulrich Petri, Jul 2, 2003
    #3
  4. Tom <> wrote in message news:<>...
    > Hi,
    >
    > it doesn't work with any editor that I tried. The one I use on a regular
    > basis is the standard python IDLE. Sometimes I also use the editor of
    > pythonwin and Boa-Constructor.
    >
    > Maybe you can just give me a general hint how you do it and which editor
    > you use. That would probably also help.
    >
    > Thank you, Tom.


    I had to change IDLE a bit for it to work. In Python path, go to
    Tools/idle and edit AutoIndent.py. Find windows_keydefs or unix_keydefs
    depending on your platform and change "<<dedent-region>>"-line to:

    '<<dedent-region>>': ['<Shift-Key-Tab>'],
     
    =?ISO-8859-1?Q?Hannu_Kankaanp=E4=E4?=, Jul 2, 2003
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marco Liedekerken

    Undo in TextBox

    Marco Liedekerken, Jun 26, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,501
    Marco Liedekerken
    Jun 26, 2003
  2. News Sympatico
    Replies:
    0
    Views:
    473
    News Sympatico
    May 21, 2005
  3. tab 2 into tab 4 ?

    , Jun 19, 2005, in forum: Python
    Replies:
    2
    Views:
    517
  4. sfp
    Replies:
    1
    Views:
    783
    mrcakey \(The Eclectic Electric\)
    Feb 5, 2007
  5. max
    Replies:
    2
    Views:
    562
    Lambik
    Apr 1, 2007
  6. HopfZ
    Replies:
    0
    Views:
    499
    HopfZ
    Jan 8, 2007
  7. JoJo
    Replies:
    1
    Views:
    302
  8. Andrew Pollock
    Replies:
    1
    Views:
    264
    Captain Paralytic
    Sep 16, 2009
Loading...