[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-mode patch
From: |
Peter Lee |
Subject: |
Re: python-mode patch |
Date: |
Tue, 22 Aug 2006 14:40:15 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
>>>> Stefan Monnier writes:
> Can you give us some step-by-step explanation of what you're thinking of?
create test.py:
---------------
import pdb
pdb.set_trace()
a = 1
b = 2
print a + b
---------------
from test.py buffer create interactive shell: C-c C-!
switch back to test.py: C-x o
run it: C-c C-c
switch back to interactive shell: C-x o
step: n
test.py reverts to /usr/tmp/python-11756sPY and loses fontification.
sf.net's python-mode also reverts to a tmp buffer but does not lose
fontification.
Ideally there would be no tmp buffer at all, it would use the real file... and
if not loaded would load it. I can't tell you how many times I've edited a tmp
buffer... really maddening. Ironically editing the tmp buffer by mistake is
less likely with CVS python-mode because it doesn't fontify it. But if I had to
choose, I'd go with fontification.
Also, it would also be nice to have a binding that would both start the shell
and execute the current buffer rather than the 4 commands needed currently.
- Re: python-mode patch, (continued)
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/10
- Re: python-mode patch, Richard Stallman, 2006/08/10
- Re: python-mode patch, Edward O'Connor, 2006/08/20
- Re: python-mode patch, Piet van Oostrum, 2006/08/21
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/21
- Re: python-mode patch, Peter Lee, 2006/08/21
- Re: python-mode patch, Stefan Monnier, 2006/08/21
- Re: python-mode patch,
Peter Lee <=
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/22
- Re: python-mode patch, Peter Lee, 2006/08/22
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/23
- Re: python-mode patch, Nick Roberts, 2006/08/20
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/21
- Re: python-mode patch, Stefan Monnier, 2006/08/20
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/21
- Re: python-mode patch, Stefan Monnier, 2006/08/21
- Re: python-mode patch, Richard Stallman, 2006/08/21
- Re: python-mode patch, Slawomir Nowaczyk, 2006/08/23