<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 24: Dislike "working on region in file ...."</title><link>https://sourceforge.net/p/python-mode/bugs/24/</link><description>Recent changes to 24: Dislike "working on region in file ...."</description><atom:link href="https://sourceforge.net/p/python-mode/bugs/24/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 11 Dec 2004 21:08:35 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/python-mode/bugs/24/feed.rss" rel="self" type="application/rss+xml"/><item><title>Dislike "working on region in file ...."</title><link>https://sourceforge.net/p/python-mode/bugs/24/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;These messages are totally meaningless. Why cannot it&lt;br /&gt;
be the code actually being executed? I have modified&lt;br /&gt;
python-mode.el&lt;/p&gt;
&lt;p&gt;==&amp;gt; insert the following line&lt;br /&gt;
(setq text-to-be-executed (concat&lt;br /&gt;
(mapconcat 'identity (split-string&lt;br /&gt;
(buffer-string) "\n")  "\n... " )&lt;br /&gt;
"\n")&lt;br /&gt;
)&lt;br /&gt;
===&amp;gt; before this. (line 1700?)&lt;br /&gt;
(write-region (point-min) (point-max) file nil&lt;br /&gt;
'nomsg))&lt;br /&gt;
(if (not py-file-queue)&lt;br /&gt;
(py-execute-file proc file)&lt;/p&gt;
&lt;p&gt;===&amp;gt; and change&lt;br /&gt;
(msg (format "## working on region in file&lt;br /&gt;
%s...\n" filename))&lt;br /&gt;
===&amp;gt; to (line 1303?)&lt;br /&gt;
(msg text-to-be-executed)&lt;/p&gt;
&lt;p&gt;so that when I execute a region&lt;br /&gt;
a=5&lt;br /&gt;
print a&lt;/p&gt;
&lt;p&gt;I get in python buffer&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; a=5&lt;br /&gt;
... print a&lt;br /&gt;
5&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;As a matter of fact, S-mode (for R or S-plus),&lt;br /&gt;
matlab-mode all work in&lt;br /&gt;
this way and I see no reason why we should tolerate&lt;br /&gt;
"working on region&lt;br /&gt;
in ..." any more.&lt;/p&gt;
&lt;p&gt;Bo&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bo Peng</dc:creator><pubDate>Sat, 11 Dec 2004 21:08:35 -0000</pubDate><guid>https://sourceforge.net780579ff42bc378ed8abbe8fbf1a781e0302bc33</guid></item></channel></rss>