From: Peter G. <pe...@ar...> - 2003-07-03 23:17:31
|
On Thu, 3 Jul 2003 at 23:58:45 +0200, Ludovico Magnocavallo wrote: > It's a small thing, but when pasting python code J has the bad habit > of trying to reindent it and usually does a mess, due to python not > having {} around code blocks. =2E.. > This behaviour is different from any other editor I've worked with, > where reindenting is not applied to paste operations. In python, > reindenting after pasting is only safe when you paste a single line, > and you could get the same result by pressing a single tab after > pasting. > > My workaround is to switch the mode to plain text before pasting, > then switch to python mode again after pasting, but it's a bit > annoying and sometimes I forget to do it, and notice the mess only > after some time where the original code is no more around (I know cvs > is your friend, but still....). > > Any chance of getting this fixed? > > Thanks > > Ludo This is fixed in 0.20.0.8, which is now up: http://armedbear.org/j.zip (source and documentation) http://armedbear.org/j-jar.zip (just j.jar) J no longer tries to indent pastes (at all, even for a single line) in Python mode. Thanks for reporting this problem! -Peter |