all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
Subject: Re: python-mode patch
Date: Tue, 22 Aug 2006 22:07:14 +0200	[thread overview]
Message-ID: <20060822215650.4987.SLAWOMIR.NOWACZYK.847@student.lu.se> (raw)
In-Reply-To: <ufyfo36g0.fsf@gmail.com>

On Tue, 22 Aug 2006 14:40:15 -0500
Peter Lee <pete.a.lee@gmail.com> 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
     ( slawomir.nowaczyk.847@student.lu.se )

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	other threads:[~2006-08-22 20:07 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 10:43 python-mode patch Slawomir Nowaczyk
2006-08-10 11:22 ` Nick Roberts
2006-08-10 16:12   ` Slawomir Nowaczyk
2006-08-10 20:19   ` Richard Stallman
2006-08-20 19:53     ` Slawomir Nowaczyk
2006-08-20 20:31       ` Steven Huwig
2006-08-21  9:39         ` Slawomir Nowaczyk
2006-08-20 21:08       ` Edward O'Connor
2006-08-21  9:03         ` Piet van Oostrum
2006-08-21  9:39           ` Slawomir Nowaczyk
2006-08-21 17:57         ` Peter Lee
2006-08-22  1:31           ` Stefan Monnier
2006-08-22 19:40             ` Peter Lee
2006-08-22 20:07               ` Slawomir Nowaczyk [this message]
2006-08-22 20:31                 ` Peter Lee
2006-08-23 20:10                   ` Slawomir Nowaczyk
2006-09-09 19:48                     ` Stefan Monnier
2006-08-20 21:41       ` Nick Roberts
2006-08-21  9:39         ` Slawomir Nowaczyk
2006-08-20 22:33       ` Stefan Monnier
2006-08-21  9:39         ` Slawomir Nowaczyk
2006-08-21 15:58           ` Stefan Monnier
2006-08-21 11:13       ` Richard Stallman
2006-08-23 20:10         ` Slawomir Nowaczyk
2006-08-25  7:43           ` Richard Stallman
2006-08-25  8:11             ` David Kastrup
2006-08-25  8:26             ` Nick Roberts
2006-08-26 10:08               ` Richard Stallman
2006-09-26 21:56                 ` Nick Roberts
2006-09-27  3:41                   ` Stefan Monnier
2006-09-27  5:30                     ` Nick Roberts
2006-09-27  3:59                   ` Ken Manheimer
2006-09-28  2:13                     ` Richard Stallman
2006-08-25  7:43           ` Richard Stallman
2006-08-25 15:44             ` Slawomir Nowaczyk
2006-08-21 18:27       ` Ken Manheimer
2006-08-23  8:12         ` Nick Roberts
2006-08-23 15:03           ` Ken Manheimer
2006-08-24 19:08         ` Slawomir Nowaczyk
2006-08-24 22:06           ` Nick Roberts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060822215650.4987.SLAWOMIR.NOWACZYK.847@student.lu.se \
    --to=slawomir.nowaczyk.847@student.lu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.