From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Slawomir Nowaczyk Newsgroups: gmane.emacs.devel Subject: Re: python-mode patch Date: Tue, 22 Aug 2006 22:07:14 +0200 Message-ID: <20060822215650.4987.SLAWOMIR.NOWACZYK.847@student.lu.se> References: <873bbpftfi.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1156277292 7286 80.91.229.2 (22 Aug 2006 20:08:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 20:08:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 22 22:08:11 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFcXU-0001MN-Vt for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 22:07:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFcXU-0007ms-7t for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 16:07:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFcX7-0007bG-AT for emacs-devel@gnu.org; Tue, 22 Aug 2006 16:07:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFcX0-0007Uf-Aq for emacs-devel@gnu.org; Tue, 22 Aug 2006 16:07:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFcWz-0007U3-Ov for emacs-devel@gnu.org; Tue, 22 Aug 2006 16:07:26 -0400 Original-Received: from [130.235.16.11] (helo=himmelsborg.cs.lth.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GFcef-0002cq-Dg for emacs-devel@gnu.org; Tue, 22 Aug 2006 16:15:21 -0400 Original-Received: from [127.0.0.1] (slawek@dain [130.235.16.76]) by himmelsborg.cs.lth.se (8.13.6/8.13.6/perf-jw-tr) with ESMTP id k7MK7NN1026357 for ; Tue, 22 Aug 2006 22:07:23 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: X-Esmandil_Citation: done X-Mailer-Plugin: Popup Memopad for Becky!2 Ver.0.02 Rev.2 X-Mailer: Becky! ver. 2.25.02 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58745 Archived-At: On Tue, 22 Aug 2006 14:40:15 -0500 Peter Lee 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