Bug#305668: jed-common: jed still mixes tabs and spaces in python mode

Günter Milde g.milde at web.de
Mon Dec 11 16:00:01 CET 2006


Package: jed-common
Version: 0.99.18-6
Followup-For: Bug #305668


Jed in python mode mixes tabs and spaces when indenting lines under
certain (not too uncommon) conditions:

  1.  USE_TABS == 1 and TAB != Py_Indent_Level 
  
  2.  the calculated indentation of the line is more than TAB but not a
      multiple of TAB

Example: 

Set

  USE_TABS = 1; TAB = 8; Py_Indent_Level = 4;

Open a buffer test.py and insert test code like e.g.

def foo():
    if True:
        if True:
            print "hi world"

The second line is indented with 4 spaces
The third line is indented with 1 tab
The fourth line is indented with 1 tab and 4 spaces.

(Check with e.g. 

   * Moving around with the arrow keys and see the cursor jump at tabs
   
   * setting TAB == 0 and see the ^I
   
   * compare POINT and what_column()
   
   * fsearch("\t");

)


Günter Milde

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages jed-common depends on:
ii  debconf [debconf-2.0]         1.5.3      Debian configuration management sy
ii  findutils                     4.2.27-3   utilities for finding files--find,

Versions of packages jed-common recommends:
ii  jed                           0.99.18-6  editor for programmers (textmode v
ii  xjed                          0.99.18-6  editor for programmers (x11 versio

-- debconf information:
  jed-common/rm-site-defaults: false




More information about the Pkg-jed-devel mailing list