[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-04-25 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Backported to release26-maint: r71911 Also issue for 3.0.1, which distributes Tk8.5 on Windows. Was forwardported to py3k: r71189 Backported to release30-maint: r71944 -- status: pending -> closed versions: +Python 3.0 _

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-30 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-30 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: r70723. Thanks for the patch! Backport to 2.6.2 -- keywords: +26backport resolution: -> accepted versions: +Python 2.7, Python 3.1 ___ Python tracker _

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-24 Thread Guilherme Polo
Guilherme Polo added the comment: platform: Windows XP In a file (cf attached file) with mixed tabs and spaces, the line following "else:" appears at the same level than "else:", while the file probably still works with Python 2.6. At least, IDLE 2.5 or IDLE 2.4 or vim don't have this problem.

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-24 Thread Guilherme Polo
Changes by Guilherme Polo : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/op

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-23 Thread Guilherme Polo
Guilherme Polo added the comment: Patch attached, if someone can create a test for it then that would be very good. -- keywords: +patch Added file: http://bugs.python.org/file13404/fix_5129.diff ___ Python tracker

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-23 Thread Guilherme Polo
Guilherme Polo added the comment: You do not need IDLE to reproduce the problem: import Tkinter text = Tkinter.Text() text.pack() text.insert('1.0', 'class C:\n\tdef m(self, c):\n' 'if c:\nc = False\n' '\t\t\tc = False\n

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-23 Thread Guilherme Polo
Guilherme Polo added the comment: It turns out that the problem is not in differences between IDLE in 2.5 and the one in 2.6, instead it is caused by the usage of Tk 8.5 by IDLE 2.6 (included in the Windows package). Changing to Tk 8.4, IDLE 2.6 displays in the same way as 2.5 (tested on Linux w

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-03-23 Thread Guilherme Polo
Guilherme Polo added the comment: I just tried it here under Windows XP (using python 2.6.1 from python.org) and the untabify dialog showed up with 8 as the default number of columns per tab (although there are at least two bugs with this dialog: i) I clicked on cancel but it still untabified th

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-02-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> kbk nosy: +kbk priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-02-02 Thread sy12
sy12 added the comment: The problem appeared in the initial display, with a file similar to bug.py. Here is how to reproduce it: 1. open the bug.py file with IDLE 2.5 (or with Firefox from the bugs.python.org website): the display shows the file the way the compiler will (probably) see it; 2. o

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't see a problem with Untabify. IDLE cannot know how big you intended your tabs to be, so it presents a dialog asking you. That seems reasonable to me. In most cases, the default is pretty good -- it attempts to infer the tab width by finding the firs

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-02-02 Thread sy12
sy12 added the comment: IDLE's "untabify" feature (required by IDLE 2.6 when running from IDLE) seems to do the job correctly but this function doesn't inspire trust and might damage the code, because IDLE 2.6 is not able to correctly display mixed spaces and tabs (maybe for a reason linked to p

[issue5129] indentation in IDLE 2.6 different from IDLE 2.5, 2.4 or vim

2009-02-02 Thread sy12
New submission from sy12 : platform: Windows XP In a file (cf attached file) with mixed tabs and spaces, the line following "else:" appears at the same level than "else:", while the file probably still works with Python 2.6. At least, IDLE 2.5 or IDLE 2.4 or vim don't have this problem. ---