emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python-mode patch


From: Slawomir Nowaczyk
Subject: Re: python-mode patch
Date: Tue, 22 Aug 2006 22:07:14 +0200

On Tue, 22 Aug 2006 14:40:15 -0500
Peter Lee <address@hidden> wrote:

#> from test.py buffer create interactive shell: C-c C-!

C-c C-! is undefined in python-mode I use... and the "shell" terminology
is not used in our mode, only in the other one. But I assume you mean 
python-switch-to-python command.

#> 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

Nothing reverts for me... I have a strong impression you are not using
python-mode from CVS, as this mode doesn't do anything special about
pdb AFAICT (the pdb tracking feature is only present in the other mode).

#> and loses fontification.

I would imagine the reason for that is that "python-11756sPY" doesn't
look like name of python file, so python-mode doesn't get turned on.
Try "C-h m" and maybe play with auto-mode-alist.

#> Ideally there would be no tmp buffer at all, it would use the real
#> file... and if not loaded would load it.

Yes, I imagine it would be the right way to implement that.

#> 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.

Actually, C-c C-c works... the only thing is it doesn't show Inferior
Python by default, so you would need to switch to *Python* buffer
manually. Still, that's only two commands, not 4 :)

But I am thinking about improving that.

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( address@hidden )

The PROPER way to handle HTML postings is to cancel the article, then
hire a hitman to kill the poster, his wife and kids, and fuck his dog
and smash his computer into little bits. Anything more is just
extremism. -- Paul Tomblin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]