<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 24: Dislike "working on region in file ...."</title><link href="https://sourceforge.net/p/python-mode/bugs/24/" rel="alternate"/><link href="https://sourceforge.net/p/python-mode/bugs/24/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-mode/bugs/24/</id><updated>2004-12-11T21:08:35Z</updated><subtitle>Recent changes to 24: Dislike "working on region in file ...."</subtitle><entry><title>Dislike "working on region in file ...."</title><link href="https://sourceforge.net/p/python-mode/bugs/24/" rel="alternate"/><published>2004-12-11T21:08:35Z</published><updated>2004-12-11T21:08:35Z</updated><author><name>Bo Peng</name><uri>https://sourceforge.net/u/bpeng2000/</uri></author><id>https://sourceforge.net780579ff42bc378ed8abbe8fbf1a781e0302bc33</id><summary type="html">&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;</summary></entry></feed>