From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.devel Subject: Re: python-mode patch Date: Tue, 22 Aug 2006 14:40:15 -0500 Organization: x Message-ID: References: <17627.5883.285449.474785@kahikatea.snap.net.nz> <20060820214937.48E0.SLAWOMIR.NOWACZYK.847@student.lu.se> <873bbpftfi.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1156275680 1588 80.91.229.2 (22 Aug 2006 19:41:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 19:41:20 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 22 21:41:17 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 1GFc7Z-0004q2-UD for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 21:41:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFc7Z-0006gz-Ee for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 15:41:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFc7N-0006ex-6X for emacs-devel@gnu.org; Tue, 22 Aug 2006 15:40:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFc7L-0006eW-Nh for emacs-devel@gnu.org; Tue, 22 Aug 2006 15:40:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFc7L-0006eT-LG for emacs-devel@gnu.org; Tue, 22 Aug 2006 15:40:55 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GFcF1-0008PP-3c for emacs-devel@gnu.org; Tue, 22 Aug 2006 15:48:51 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GFc7C-0004md-DE for emacs-devel@gnu.org; Tue, 22 Aug 2006 21:40:46 +0200 Original-Received: from 66-194-80-196.static.twtelecom.net ([66.194.80.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Aug 2006 21:40:46 +0200 Original-Received: from pete.a.lee by 66-194-80-196.static.twtelecom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Aug 2006 21:40:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 66-194-80-196.static.twtelecom.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:H90EPBDsaPArMhIszmvlfop7Kp0= 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:58743 Archived-At: >>>> 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.