pymode.sl patch not working
Jörg Sommer
joerg at alea.gnuu.de
Mon Dec 4 20:28:31 CET 2006
Hello G.,
G. Milde schrieb am Mon 04. Dec, 08:42 (+0100):
> Example
>
> USE_TABS = 1; TAB = 8; Py_Indent_Level = 4;
>
> After pressing TAB on every of the code lines below, the second is indented
> with 4 spaces while the third is indented with one tab and the last with a
> mix of tab and spaces in one line!
I can't reproduce it:
% cat /tmp/test.py
def unindent(self, indent=None):
if indent is None:
if self.min_indent():
return
% md5sum /tmp/test.py
c1d1a57b8c585cfa923ef0d2fba9acf9 /tmp/test.py
% xjed -batch -l /usr/share/jed/lib/pymode.sl \
-f 'USE_TABS = 1; TAB = 8; Py_Indent_Level = 4;' \
/tmp/test.py \
-f 'do { indent_line(); message(string(what_column())); } while (down(1));'
loading /usr/share/jed/lib/pymode.sl
Reading /tmp/test.py
1
5
9
13
9
% md5sum /usr/share/jed/lib/pymode.sl
15415eae7e347d5d71a394bdaa2aa069 /usr/share/jed/lib/pymode.sl
Is the above the correct setup? What does it output at you?
Bye, Jörg.
--
“Politics is for the moment, equations are forever”
(Albert Einstein)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-jed-devel/attachments/20061204/0b82348f/attachment.pgp
More information about the Pkg-jed-devel
mailing list