Rob McMullen wrote:
On Nov 14, 2007 12:11 PM, Don Dwiggins <[EMAIL PROTECTED]> wrote:
- Auto-indentation is working pretty well in Python mode, with one
exception: when the cursor is at the end of an existing "def ..." line,
hitting Enter doesn't indent.  It works fine when typing a new one, however.

I've noticed a similar problem, but for me it only happens rarely and
I've never been able to duplicate it consistently.  Does it always
fail for you?  If you have a test file shows the problem, would you
mind forwarding it to me?
It doesn't need a file; here's a procedure that will recreate it:
- Open a new text file, set the mode to Python.
- Type "def foo(bar):", then newline, then "pass".
- Move the cursor back to just after the colon, press Enter. I get an empty line with the cursor in the first column.

I can also make it happen by opening make-doc.py (in the peppy top folder), going to the end of the "def findChangeLogVersion" line, and hitting Enter.

Good news! I think I've found the cause of the traceback problem on exit: after you do either of the above procedures, exit peppy by using the close box on the window. It seems to be a problem in dealing with a "dirty" buffer during shutdown.

Finally, here's another little glitch: after opening a new file and typing into it, hit Ctrl-S -- peppy complains that saving to "about:untitled" failed.

--

Don Dwiggins
Advanced Publishing Technology

Reply via email to